2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289 echo_test_string=`eval $cmd` &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
359 # maybe with a smaller string...
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 # Oops. We lost completely, so just stick with echo.
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file="common-src/amanda.h"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
433 # include <sys/types.h>
436 # include <sys/stat.h>
447 # if !STDC_HEADERS && HAVE_MEMORY_H
453 # include <strings.h>
456 # include <inttypes.h>
467 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CONFIGURE_COMMAND INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar SNAPSHOT_STAMP VERSION_MAJOR VERSION_MINOR VERSION_PATCH VERSION_COMMENT VERSION_SUFFIX CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB CPP EGREP GL_COND_LIBTOOL_TRUE GL_COND_LIBTOOL_FALSE ALLOCA ALLOCA_H ARPA_INET_H SYS_SOCKET_H LIBPTH LTLIBPTH LIBPTH_PREFIX LIBTHREAD LTLIBTHREAD LIBMULTITHREAD LTLIBMULTITHREAD NETINET_IN_H STDBOOL_H HAVE__BOOL HAVE_DECL_MEMMEM HAVE_MEMPCPY HAVE_DECL_MEMRCHR HAVE_STPCPY HAVE_STPNCPY HAVE_DECL_STRNCASECMP HAVE_STRCHRNUL HAVE_DECL_STRDUP HAVE_STRNDUP HAVE_DECL_STRNDUP HAVE_DECL_STRNLEN HAVE_STRPBRK HAVE_STRSEP HAVE_DECL_STRTOK_R REPLACE_STRCASECMP REPLACE_STRSTR REPLACE_STRCASESTR ABSOLUTE_STRING_H MKDIR_P EOVERFLOW CFLAG_VISIBILITY HAVE_VISIBILITY GREP AMLINT AMLINTFLAGS DUMPER_DIR CONFIG_DIR USE_VERSION_SUFFIXES CLIENT_SCRIPTS_OPT DEFAULT_SERVER CLIENT_LOGIN SETUID_GROUP BINARY_OWNER DEFAULT_CONFIG DEFAULT_TAPE_SERVER DEFAULT_TAPE_DEVICE EXAMPLE_TAPEDEV DEFAULT_RAW_TAPE_DEVICE DEFAULT_CHANGER_DEVICE GNUTAR_LISTED_INCREMENTAL_DIRX GNUTAR_LISTED_INCREMENTAL_DIR SSH MAXTAPEBLOCKSIZE AMANDA_TMPDIR AMANDA_DBGDIR AMANDA_DEBUG_DAYS SERVICE_SUFFIX MT_FILE_FLAG AR YACC CAT COMPRESS DD GETCONF GNUPLOT GNUTAR SAMBA_CLIENT GZIP SORT MAILER MT CHIO CHS MTX MCUTIL PRINT PCAT PERL DUMP RESTORE XFSDUMP XFSRESTORE VXDUMP VXRESTORE VDUMP VRESTORE AMPLOT_COMPRESS AMPLOT_CAT_GZIP AMPLOT_CAT_COMPRESS AMPLOT_CAT_PACK LL_FMT LL_RFMT LN_S ECHO ac_ct_AR CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS LEX LEXLIB LEX_OUTPUT_ROOT READLINE_LIBS DB_EXT ac_n ac_c WANT_CLIENT_TRUE WANT_CLIENT_FALSE WANT_SAMBA_TRUE WANT_SAMBA_FALSE WANT_RESTORE_TRUE WANT_RESTORE_FALSE WANT_SERVER_TRUE WANT_SERVER_FALSE WANT_RECOVER_TRUE WANT_RECOVER_FALSE WANT_TAPE_TRUE WANT_TAPE_FALSE WANT_AMPLOT_TRUE WANT_AMPLOT_FALSE WANT_CHG_SCSI_TRUE WANT_CHG_SCSI_FALSE WANT_CHIO_SCSI_TRUE WANT_CHIO_SCSI_FALSE WANT_RUNTIME_PSEUDO_RELOC_TRUE WANT_RUNTIME_PSEUDO_RELOC_FALSE WANT_SETUID_CLIENT_TRUE WANT_SETUID_CLIENT_FALSE WANT_SSH_SECURITY_TRUE WANT_SSH_SECURITY_FALSE LTLIBOBJS LTALLOCA DOC_BUILD_DATE XSLTPROC_FLAGS XSLTPROC ENABLE_MANPAGE_BUILD_TRUE ENABLE_MANPAGE_BUILD_FALSE GCC_COMPILER_TRUE GCC_COMPILER_FALSE AM_CFLAGS LIBOBJS gl_LIBOBJS gl_LTLIBOBJS'
470 # Initialize some variables set by options.
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
482 program_transform_name=s,x,x,
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520 # Accept the important Cygnus configure options, so we can diagnose typos.
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
542 cache_file=config.cache ;;
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 datadir=$ac_optarg ;;
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 eval "enable_$ac_feature='$ac_optarg'" ;;
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
585 -help | --help | --hel | --he | -h)
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
609 -libdir | --libdir | --libdi | --libd)
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636 # Obsolete; use --without-fp.
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 sbindir=$ac_optarg ;;
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 sharedstatedir=$ac_optarg ;;
713 -site | --site | --sit)
715 -site=* | --site=* | --sit=*)
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 -version | --version | --versio | --versi | --vers | -V)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 eval "with_$ac_package='$ac_optarg'" ;;
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
764 # Obsolete; use --with-x.
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807 if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
816 eval ac_val=$`echo $ac_var`
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
828 eval ac_val=$`echo $ac_var`
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857 test "$silent" = yes && exec 6>/dev/null
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
877 if test ! -r $srcdir/$ac_unique_file; then
881 ac_srcdir_defaulted=no
883 if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
950 # Report the --help message.
952 if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
956 \`configure' configures this package to adapt to many kinds of systems.
958 Usage: $0 [OPTION]... [VAR=VALUE]...
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE. See below for descriptions of some of the useful variables.
963 Defaults for the options are specified in brackets.
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
979 Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
990 For better control, use the options below.
992 Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1010 --program-prefix=PREFIX prepend PREFIX to installed program names
1011 --program-suffix=SUFFIX append SUFFIX to installed program names
1012 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1015 --build=BUILD configure for building on BUILD [guessed]
1016 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1017 --target=TARGET configure for building compilers for TARGET [HOST]
1021 if test -n "$ac_init_help"; then
1026 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1027 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1028 --disable-dependency-tracking speeds up one-time build
1029 --enable-dependency-tracking do not reject slow dependency extractors
1030 --enable-threads={posix|solaris|pth|win32}
1031 specify multithreading API
1032 --disable-threads build without multithread safety
1033 --disable-rpath do not hardcode runtime library paths
1034 --disable-largefile omit support for large files
1035 --enable-shared[=PKGS]
1036 build shared libraries [default=yes]
1037 --enable-static[=PKGS]
1038 build static libraries [default=yes]
1039 --enable-fast-install[=PKGS]
1040 optimize for fast installation [default=yes]
1041 --disable-libtool-lock avoid locking (might break parallel builds)
1042 --enable-manpage-build Build the manpages from their XML source (shipped
1043 manpages are usually sufficient)
1046 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1047 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1048 --with-cflags=CFLAGS arguments to the c compiler (-Wall, -g, etc)
1049 --with-gnu-ld assume the C compiler uses GNU ld default=no
1050 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1051 --without-libpth-prefix don't search for libpth in includedir and libdir
1052 --with-includes=DIR site header files for readline, etc in DIR
1053 --with-libraries=DIR site library directories for readline, etc in DIR
1054 --with-dumperdir=DIR where we install the dumpers [EPREFIX/dumper]
1055 --with-configdir=DIR runtime config files in DIR [sysconfdir/amanda]
1056 --with-indexdir deprecated, use indexdir in amanda.conf
1057 --with-dbdir deprecated, use infofile in amanda.conf
1058 --with-logdir deprecated, use logfile in amanda.conf
1059 --with-suffixes install binaries with version string appended to name
1060 --with-client-only deprecated, use --without-server
1061 --with-server-only deprecated, use --without-client
1062 --without-client do not build client stuff
1063 --without-server do not build server stuff (set --without-restore)
1064 --without-restore do not build amrestore nor amidxtaped
1065 --without-amrecover do not build amrecover
1066 --with-index-server=HOST default amanda index server [`uname -n`]
1067 --without-force-uid do not force the uid to --with-user
1068 --with-user=USER force execution to USER on client systems [required]
1069 --with-group=GROUP group allowed to execute setuid-root programs [required]
1070 --with-owner=USER force ownership of files to USER [default == --with-user value]
1071 --with-rundump use rundump (setuid-root) to invoke dump
1072 --with-config=CONFIG default configuration [DailySet1]
1073 --with-tape-server=HOST default restoring tape server is HOST [same as --with-index-server]
1074 --with-tape-device=ARG restoring tape server HOST's no rewinding tape drive
1075 --with-ftape-rawdevice=ARG raw device on tape server HOST's if using Linux ftape >=3.04d
1076 --with-rew-tape deprecated, use --with-tape-device
1077 --with-norew-tape=ARG deprecated, use --with-tape-device
1078 --with-changer-device=ARG default tape changer device [/dev/ch0 if it exists]
1079 --with-fqdn use FQDN's to backup multiple networks
1080 --with-broken-fsf only enable if tape fsf calls fail mid-file
1081 --without-reuseaddr Don't closed network connections to be reused until full timeout period.
1082 --with-gnutar[=PROG] use PROG as GNU tar executable [default: looks for one]
1083 --with-smbclient[=PROG] use PROG as Samba's smbclient executable [default: looks for one]
1084 --with-samba-user was deprecated
1085 --with-gnutar-listdir=DIR gnutar directory lists go in DIR [localstatedir/amanda/gnutar-lists]
1086 --with-gnutar-listed-incremental was deprecated, use --with-gnutar-listdir
1087 --without-bsd-security do not use BSD rsh/rlogin style security
1088 --without-amandahosts use .rhosts instead of .amandahosts
1089 --with-dbmalloc=DIR Location of dbmalloc libs and headers
1090 --with-ipv6 If IPv6 must be enabled (Default)
1091 --without-ipv6 If IPv6 must be disable
1092 --with-krb4-security=DIR Location of Kerberos software [/usr/kerberos /usr/cygnus /usr /opt/kerberos]
1093 --with-rsh-security use rsh as a transport
1094 --with-ssh-security use ssh as a transport
1095 --with-ssh-options=[OPTIONS]
1096 Use these ssh options for ssh security; the default
1098 --with-bsdtcp-security use tcp as a transport
1099 --with-bsdudp-security use udp as a transport
1100 --with-server-principal=ARG server host principal ["amanda"]
1101 --with-server-instance=ARG server host instance ["amanda"]
1102 --with-server-keyfile=ARG server host key file ["/.amanda"]
1103 --with-client-principal=ARG client host principal ["rcmd"]
1104 --with-client-instance=ARG client host instance [HOSTNAME_INSTANCE]
1105 --with-client-keyfile=ARG client host key file [KEYFILE]
1106 --with-ticket-lifetime=ARG ticket lifetime [128]
1107 --with-krb5-security=DIR Location of Kerberos V software [/usr/kerberos /usr/cygnus /usr /opt/kerberos]
1108 --with-low-tcpportrange=low,high bind reserved TCP server sockets to ports within this range unlimited (mainly for amrecover)
1109 --with-tcpportrange=low,high bind unreserved TCP server sockets to ports within this range [unlimited]
1110 --with-udpportrange=low,high bind reserved UDP server sockets to ports within this range [unlimited]
1111 --with-maxtapeblocksize=kb Maximum size of a tape block
1112 --with-db={text,db,dbm,gdbm,ndbm} use the selected database format [text]
1113 --with-mmap force use of mmap instead of shared memory support
1114 --with-buffered-dump buffer the dumping sockets on the server for speed
1115 --with-assertions compile assertions into code
1116 --with-tmpdir=/temp/dir area Amanda can use for temp files [/tmp/amanda]
1117 --with[out]-debugging[=/debug/dir] [do not] record runtime debugging information in specified directory [--with-tmpdir]
1118 --with-debug-days=NN number of days to keep debugging files [default=4]
1119 --with-testing[=suffix] use alternate service names
1120 --with-gnuplot=PATH use gnuplot executable at PATH in amplot
1121 --with-dump-honor-nodump if dump supports -h, use it for level0s too
1122 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1123 --with-pic try to use only PIC/non-PIC objects [default=use
1126 include additional configurations [automatic]
1127 --with-xsltproc[=PATH]
1128 Use the xsltproc binary in in PATH.
1129 --with-xsltproc-flags=FLAGS
1130 Flags to pass to xsltproc (default --nonet)
1132 Some influential environment variables:
1133 CC C compiler command
1134 CFLAGS C compiler flags
1135 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1136 nonstandard directory <lib dir>
1137 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1138 headers in a nonstandard directory <include dir>
1140 CXX C++ compiler command
1141 CXXFLAGS C++ compiler flags
1142 CXXCPP C++ preprocessor
1143 F77 Fortran 77 compiler command
1144 FFLAGS Fortran 77 compiler flags
1146 Use these variables to override the choices made by `configure' or to help
1147 it to find libraries and programs with nonstandard names/locations.
1152 if test "$ac_init_help" = "recursive"; then
1153 # If there are subdirs, report their specific --help.
1155 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1156 test -d $ac_dir || continue
1159 if test "$ac_dir" != .; then
1160 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1161 # A "../" for each directory in $ac_dir_suffix.
1162 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1164 ac_dir_suffix= ac_top_builddir=
1168 .) # No --srcdir option. We are building in place.
1170 if test -z "$ac_top_builddir"; then
1173 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1175 [\\/]* | ?:[\\/]* ) # Absolute path.
1176 ac_srcdir=$srcdir$ac_dir_suffix;
1177 ac_top_srcdir=$srcdir ;;
1179 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1180 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1183 # Do not use `cd foo && pwd` to compute absolute paths, because
1184 # the directories may not exist.
1186 .) ac_abs_builddir="$ac_dir";;
1189 .) ac_abs_builddir=`pwd`;;
1190 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1191 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1194 case $ac_abs_builddir in
1195 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1197 case ${ac_top_builddir}. in
1198 .) ac_abs_top_builddir=$ac_abs_builddir;;
1199 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1200 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1203 case $ac_abs_builddir in
1204 .) ac_abs_srcdir=$ac_srcdir;;
1207 .) ac_abs_srcdir=$ac_abs_builddir;;
1208 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1209 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1212 case $ac_abs_builddir in
1213 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1215 case $ac_top_srcdir in
1216 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1217 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1218 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1223 # Check for guested configure; otherwise get Cygnus style configure.
1224 if test -f $ac_srcdir/configure.gnu; then
1226 $SHELL $ac_srcdir/configure.gnu --help=recursive
1227 elif test -f $ac_srcdir/configure; then
1229 $SHELL $ac_srcdir/configure --help=recursive
1230 elif test -f $ac_srcdir/configure.ac ||
1231 test -f $ac_srcdir/configure.in; then
1233 $ac_configure --help
1235 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1241 test -n "$ac_init_help" && exit 0
1242 if $ac_init_version; then
1245 Copyright (C) 2003 Free Software Foundation, Inc.
1246 This configure script is free software; the Free Software Foundation
1247 gives unlimited permission to copy, distribute and modify it.
1253 This file contains any messages produced by compilers while
1254 running configure, to aid debugging if configure makes a mistake.
1256 It was created by $as_me, which was
1257 generated by GNU Autoconf 2.59. Invocation command line was
1268 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1269 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1270 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1271 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1272 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1274 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1275 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1277 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1278 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1279 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1280 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1281 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1282 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1283 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1291 test -z "$as_dir" && as_dir=.
1292 echo "PATH: $as_dir"
1307 # Keep a trace of the command line.
1308 # Strip out --no-create and --no-recursion so they do not pile up.
1309 # Strip out --silent because we don't want to record it for future runs.
1310 # Also quote any args containing shell meta-characters.
1311 # Make two passes to allow for proper duplicate-argument suppression.
1316 ac_must_keep_next=false
1322 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1324 | -silent | --silent | --silen | --sile | --sil)
1326 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1327 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1330 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1332 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1333 if test $ac_must_keep_next = true; then
1334 ac_must_keep_next=false # Got value, back to normal.
1337 *=* | --config-cache | -C | -disable-* | --disable-* \
1338 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1339 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1340 | -with-* | --with-* | -without-* | --without-* | --x)
1341 case "$ac_configure_args0 " in
1342 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1345 -* ) ac_must_keep_next=true ;;
1348 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1349 # Get rid of the leading space.
1355 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1356 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1358 # When interrupted or exit'd, cleanup temporary files, and complete
1359 # config.log. We remove comments because anyway the quotes in there
1360 # would cause problems or look ugly.
1361 # WARNING: Be sure not to use single quotes in there, as some shells,
1362 # such as our DU 5.0 friend, will then `close' the trap.
1363 trap 'exit_status=$?
1364 # Save into config.log some information that might help in debugging.
1369 ## ---------------- ##
1370 ## Cache variables. ##
1371 ## ---------------- ##
1374 # The following way of writing the cache mishandles newlines in values,
1377 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1380 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1381 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1385 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1392 ## ----------------- ##
1393 ## Output variables. ##
1394 ## ----------------- ##
1397 for ac_var in $ac_subst_vars
1399 eval ac_val=$`echo $ac_var`
1400 echo "$ac_var='"'"'$ac_val'"'"'"
1404 if test -n "$ac_subst_files"; then
1411 for ac_var in $ac_subst_files
1413 eval ac_val=$`echo $ac_var`
1414 echo "$ac_var='"'"'$ac_val'"'"'"
1419 if test -s confdefs.h; then
1426 sed "/^$/d" confdefs.h | sort
1429 test "$ac_signal" != 0 &&
1430 echo "$as_me: caught signal $ac_signal"
1431 echo "$as_me: exit $exit_status"
1433 rm -f core *.core &&
1434 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1437 for ac_signal in 1 2 13 15; do
1438 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1442 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1443 rm -rf conftest* confdefs.h
1444 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1447 # Predefined preprocessor variables.
1449 cat >>confdefs.h <<_ACEOF
1450 #define PACKAGE_NAME "$PACKAGE_NAME"
1454 cat >>confdefs.h <<_ACEOF
1455 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1459 cat >>confdefs.h <<_ACEOF
1460 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1464 cat >>confdefs.h <<_ACEOF
1465 #define PACKAGE_STRING "$PACKAGE_STRING"
1469 cat >>confdefs.h <<_ACEOF
1470 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1474 # Let the site file select an alternate cache file if it wants to.
1475 # Prefer explicitly selected file to automatically selected ones.
1476 if test -z "$CONFIG_SITE"; then
1477 if test "x$prefix" != xNONE; then
1478 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1480 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1483 for ac_site_file in $CONFIG_SITE; do
1484 if test -r "$ac_site_file"; then
1485 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1486 echo "$as_me: loading site script $ac_site_file" >&6;}
1487 sed 's/^/| /' "$ac_site_file" >&5
1492 if test -r "$cache_file"; then
1493 # Some versions of bash will fail to source /dev/null (special
1494 # files actually), so we avoid doing that.
1495 if test -f "$cache_file"; then
1496 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1497 echo "$as_me: loading cache $cache_file" >&6;}
1499 [\\/]* | ?:[\\/]* ) . $cache_file;;
1500 *) . ./$cache_file;;
1504 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1505 echo "$as_me: creating cache $cache_file" >&6;}
1509 # Check that the precious variables saved in the cache have kept the same
1511 ac_cache_corrupted=false
1512 for ac_var in `(set) 2>&1 |
1513 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1514 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1515 eval ac_new_set=\$ac_env_${ac_var}_set
1516 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1517 eval ac_new_val="\$ac_env_${ac_var}_value"
1518 case $ac_old_set,$ac_new_set in
1520 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1521 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1522 ac_cache_corrupted=: ;;
1524 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1525 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1526 ac_cache_corrupted=: ;;
1529 if test "x$ac_old_val" != "x$ac_new_val"; then
1530 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1531 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1532 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1533 echo "$as_me: former value: $ac_old_val" >&2;}
1534 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1535 echo "$as_me: current value: $ac_new_val" >&2;}
1536 ac_cache_corrupted=:
1539 # Pass precious variables to config.status.
1540 if test "$ac_new_set" = set; then
1542 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1543 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1544 *) ac_arg=$ac_var=$ac_new_val ;;
1546 case " $ac_configure_args " in
1547 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1548 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1552 if $ac_cache_corrupted; then
1553 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1554 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1555 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1556 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1557 { (exit 1); exit 1; }; }
1561 ac_cpp='$CPP $CPPFLAGS'
1562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1567 gl_header_list="$gl_header_list arpa/inet.h"
1568 gl_header_list="$gl_header_list sys/socket.h"
1569 gl_header_list="$gl_header_list netinet/in.h"
1570 gl_header_list="$gl_header_list netdb.h"
1571 gl_header_list="$gl_header_list string.h"
1591 for ac_dir in config $srcdir/config; do
1592 if test -f $ac_dir/install-sh; then
1594 ac_install_sh="$ac_aux_dir/install-sh -c"
1596 elif test -f $ac_dir/install.sh; then
1598 ac_install_sh="$ac_aux_dir/install.sh -c"
1600 elif test -f $ac_dir/shtool; then
1602 ac_install_sh="$ac_aux_dir/shtool install -c"
1606 if test -z "$ac_aux_dir"; then
1607 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1608 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1609 { (exit 1); exit 1; }; }
1611 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1612 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1613 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1615 # Make sure we can run config.sub.
1616 $ac_config_sub sun4 >/dev/null 2>&1 ||
1617 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1618 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1619 { (exit 1); exit 1; }; }
1621 echo "$as_me:$LINENO: checking build system type" >&5
1622 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1623 if test "${ac_cv_build+set}" = set; then
1624 echo $ECHO_N "(cached) $ECHO_C" >&6
1626 ac_cv_build_alias=$build_alias
1627 test -z "$ac_cv_build_alias" &&
1628 ac_cv_build_alias=`$ac_config_guess`
1629 test -z "$ac_cv_build_alias" &&
1630 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1631 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1632 { (exit 1); exit 1; }; }
1633 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1634 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1635 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1636 { (exit 1); exit 1; }; }
1639 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1640 echo "${ECHO_T}$ac_cv_build" >&6
1642 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1643 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1644 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1647 echo "$as_me:$LINENO: checking host system type" >&5
1648 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1649 if test "${ac_cv_host+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1652 ac_cv_host_alias=$host_alias
1653 test -z "$ac_cv_host_alias" &&
1654 ac_cv_host_alias=$ac_cv_build_alias
1655 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1656 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1657 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1658 { (exit 1); exit 1; }; }
1661 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1662 echo "${ECHO_T}$ac_cv_host" >&6
1664 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1665 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1666 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1669 echo "$as_me:$LINENO: checking target system type" >&5
1670 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1671 if test "${ac_cv_target+set}" = set; then
1672 echo $ECHO_N "(cached) $ECHO_C" >&6
1674 ac_cv_target_alias=$target_alias
1675 test "x$ac_cv_target_alias" = "x" &&
1676 ac_cv_target_alias=$ac_cv_host_alias
1677 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1678 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1679 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1680 { (exit 1); exit 1; }; }
1683 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1684 echo "${ECHO_T}$ac_cv_target" >&6
1685 target=$ac_cv_target
1686 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1687 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1688 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1691 # The aliases save the names the user supplied, while $host etc.
1692 # will get canonicalized.
1693 test -n "$target_alias" &&
1694 test "$program_prefix$program_suffix$program_transform_name" = \
1696 program_prefix=${target_alias}-
1699 CONFIGURE_COMMAND="'$0'"
1701 CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$arg'"
1704 cat >>confdefs.h <<_ACEOF
1705 #define CONFIGURE_COMMAND "$CONFIGURE_COMMAND"
1710 am__api_version="1.9"
1711 # Find a good install program. We prefer a C program (faster),
1712 # so one script is as good as another. But avoid the broken or
1713 # incompatible versions:
1714 # SysV /etc/install, /usr/sbin/install
1715 # SunOS /usr/etc/install
1716 # IRIX /sbin/install
1718 # AmigaOS /C/install, which installs bootblocks on floppy discs
1719 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1720 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1721 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1722 # OS/2's system install, which has a completely different semantic
1723 # ./install, which can be erroneously created by make from ./install.sh.
1724 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1725 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1726 if test -z "$INSTALL"; then
1727 if test "${ac_cv_path_install+set}" = set; then
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
1730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734 test -z "$as_dir" && as_dir=.
1735 # Account for people who put trailing slashes in PATH elements.
1737 ./ | .// | /cC/* | \
1738 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1739 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1742 # OSF1 and SCO ODT 3.0 have their own names for install.
1743 # Don't use installbsd from OSF since it installs stuff as root
1745 for ac_prog in ginstall scoinst install; do
1746 for ac_exec_ext in '' $ac_executable_extensions; do
1747 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1748 if test $ac_prog = install &&
1749 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1750 # AIX install. It has an incompatible calling convention.
1752 elif test $ac_prog = install &&
1753 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1754 # program-specific install script used by HP pwplus--don't use.
1757 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1769 if test "${ac_cv_path_install+set}" = set; then
1770 INSTALL=$ac_cv_path_install
1772 # As a last resort, use the slow shell script. We don't cache a
1773 # path for INSTALL within a source directory, because that will
1774 # break other packages using the cache if that directory is
1775 # removed, or if the path is relative.
1776 INSTALL=$ac_install_sh
1779 echo "$as_me:$LINENO: result: $INSTALL" >&5
1780 echo "${ECHO_T}$INSTALL" >&6
1782 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1783 # It thinks the first close brace ends the variable substitution.
1784 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1786 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1788 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1790 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1791 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1794 echo timestamp > conftest.file
1795 # Do `set' in a subshell so we don't clobber the current shell's
1796 # arguments. Must try -L first in case configure is actually a
1797 # symlink; some systems play weird games with the mod time of symlinks
1798 # (eg FreeBSD returns the mod time of the symlink's containing
1801 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1802 if test "$*" = "X"; then
1804 set X `ls -t $srcdir/configure conftest.file`
1807 if test "$*" != "X $srcdir/configure conftest.file" \
1808 && test "$*" != "X conftest.file $srcdir/configure"; then
1810 # If neither matched, then we have a broken ls. This can happen
1811 # if, for instance, CONFIG_SHELL is bash and it inherits a
1812 # broken ls alias from the environment. This has actually
1813 # happened. Such a system could not be considered "sane".
1814 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1815 alias in your environment" >&5
1816 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1817 alias in your environment" >&2;}
1818 { (exit 1); exit 1; }; }
1821 test "$2" = conftest.file
1827 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1828 Check your system clock" >&5
1829 echo "$as_me: error: newly created file is older than distributed files!
1830 Check your system clock" >&2;}
1831 { (exit 1); exit 1; }; }
1833 echo "$as_me:$LINENO: result: yes" >&5
1834 echo "${ECHO_T}yes" >&6
1835 test "$program_prefix" != NONE &&
1836 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1837 # Use a double $ so make ignores it.
1838 test "$program_suffix" != NONE &&
1839 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1840 # Double any \ or $. echo might interpret backslashes.
1841 # By default was `s,x,x', remove it if useless.
1842 cat <<\_ACEOF >conftest.sed
1843 s/[\\$]/&&/g;s/;s,x,x,$//
1845 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1848 # expand $ac_aux_dir to an absolute path
1849 am_aux_dir=`cd $ac_aux_dir && pwd`
1851 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1852 # Use eval to expand $SHELL
1853 if eval "$MISSING --run true"; then
1854 am_missing_run="$MISSING --run "
1857 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1858 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1861 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1862 # We used to keeping the `.' as first argument, in order to
1863 # allow $(mkdir_p) to be used without argument. As in
1864 # $(mkdir_p) $(somedir)
1865 # where $(somedir) is conditionally defined. However this is wrong
1867 # 1. if the package is installed by a user who cannot write `.'
1868 # make install will fail,
1869 # 2. the above comment should most certainly read
1870 # $(mkdir_p) $(DESTDIR)$(somedir)
1871 # so it does not work when $(somedir) is undefined and
1872 # $(DESTDIR) is not.
1873 # To support the latter case, we have to write
1874 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1875 # so the `.' trick is pointless.
1876 mkdir_p='mkdir -p --'
1878 # On NextStep and OpenStep, the `mkdir' command does not
1879 # recognize any option. It will interpret all options as
1880 # directories to create, and then abort because `.' already
1882 for d in ./-p ./--version;
1884 test -d $d && rmdir $d
1886 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1887 if test -f "$ac_aux_dir/mkinstalldirs"; then
1888 mkdir_p='$(mkinstalldirs)'
1890 mkdir_p='$(install_sh) -d'
1894 for ac_prog in gawk mawk nawk awk
1896 # Extract the first word of "$ac_prog", so it can be a program name with args.
1897 set dummy $ac_prog; ac_word=$2
1898 echo "$as_me:$LINENO: checking for $ac_word" >&5
1899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1900 if test "${ac_cv_prog_AWK+set}" = set; then
1901 echo $ECHO_N "(cached) $ECHO_C" >&6
1903 if test -n "$AWK"; then
1904 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1910 test -z "$as_dir" && as_dir=.
1911 for ac_exec_ext in '' $ac_executable_extensions; do
1912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1913 ac_cv_prog_AWK="$ac_prog"
1914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1923 if test -n "$AWK"; then
1924 echo "$as_me:$LINENO: result: $AWK" >&5
1925 echo "${ECHO_T}$AWK" >&6
1927 echo "$as_me:$LINENO: result: no" >&5
1928 echo "${ECHO_T}no" >&6
1931 test -n "$AWK" && break
1934 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1935 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1936 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1937 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1938 echo $ECHO_N "(cached) $ECHO_C" >&6
1940 cat >conftest.make <<\_ACEOF
1942 @echo 'ac_maketemp="$(MAKE)"'
1944 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1945 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1946 if test -n "$ac_maketemp"; then
1947 eval ac_cv_prog_make_${ac_make}_set=yes
1949 eval ac_cv_prog_make_${ac_make}_set=no
1953 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1954 echo "$as_me:$LINENO: result: yes" >&5
1955 echo "${ECHO_T}yes" >&6
1958 echo "$as_me:$LINENO: result: no" >&5
1959 echo "${ECHO_T}no" >&6
1960 SET_MAKE="MAKE=${MAKE-make}"
1963 rm -rf .tst 2>/dev/null
1964 mkdir .tst 2>/dev/null
1965 if test -d .tst; then
1970 rmdir .tst 2>/dev/null
1972 # test to see if srcdir already configured
1973 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1974 test -f $srcdir/config.status; then
1975 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1976 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1977 { (exit 1); exit 1; }; }
1980 # test whether we have cygpath
1981 if test -z "$CYGPATH_W"; then
1982 if (cygpath --version) >/dev/null 2>/dev/null; then
1983 CYGPATH_W='cygpath -w'
1990 # Define the identity of the package.
1995 cat >>confdefs.h <<_ACEOF
1996 #define PACKAGE "$PACKAGE"
2000 cat >>confdefs.h <<_ACEOF
2001 #define VERSION "$VERSION"
2004 # Some tools Automake needs.
2006 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2009 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2012 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2015 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2018 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2020 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2022 # Installed binaries are usually stripped using `strip' when the user
2023 # run `make install-strip'. However `strip' might not be the right
2024 # tool to use in cross-compilation environments, therefore Automake
2025 # will honor the `STRIP' environment variable to overrule this program.
2026 if test "$cross_compiling" != no; then
2027 if test -n "$ac_tool_prefix"; then
2028 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2029 set dummy ${ac_tool_prefix}strip; ac_word=$2
2030 echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2032 if test "${ac_cv_prog_STRIP+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 if test -n "$STRIP"; then
2036 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 test -z "$as_dir" && as_dir=.
2043 for ac_exec_ext in '' $ac_executable_extensions; do
2044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2045 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054 STRIP=$ac_cv_prog_STRIP
2055 if test -n "$STRIP"; then
2056 echo "$as_me:$LINENO: result: $STRIP" >&5
2057 echo "${ECHO_T}$STRIP" >&6
2059 echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6
2064 if test -z "$ac_cv_prog_STRIP"; then
2066 # Extract the first word of "strip", so it can be a program name with args.
2067 set dummy strip; ac_word=$2
2068 echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 if test -n "$ac_ct_STRIP"; then
2074 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080 test -z "$as_dir" && as_dir=.
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083 ac_cv_prog_ac_ct_STRIP="strip"
2084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2090 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2093 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2094 if test -n "$ac_ct_STRIP"; then
2095 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2096 echo "${ECHO_T}$ac_ct_STRIP" >&6
2098 echo "$as_me:$LINENO: result: no" >&5
2099 echo "${ECHO_T}no" >&6
2104 STRIP="$ac_cv_prog_STRIP"
2108 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2110 # We need awk for the "check" target. The system "awk" is bad on
2112 # Always define AMTAR for backward compatibility.
2114 AMTAR=${AMTAR-"${am_missing_run}tar"}
2116 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2122 ac_config_headers="$ac_config_headers config/config.h"
2126 if test -f "$srcdir/SNAPSHOT"; then
2127 cat < "$srcdir/SNAPSHOT"
2129 snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
2131 test -z "$snapdate" || VERSION="$VERSION-$snapdate"
2132 SNAPSHOT_STAMP=SNAPSHOT
2138 if test -f config.local; then
2139 echo "running local script ./config.local"
2144 VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
2145 VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
2146 VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
2147 VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
2150 VERSION_SUFFIX="$VERSION"
2157 SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/opt/SUNWspro/bin:/usr/ucb:/usr/bsd:/etc:/usr/etc"
2159 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2160 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
2161 eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin"
2163 SYSLOCPATH="$SYSPATH:$LOCPATH"
2164 LOCSYSPATH="$LOCPATH:$SYSPATH"
2168 # Check whether --with-cflags or --without-cflags was given.
2169 if test "${with_cflags+set}" = set; then
2170 withval="$with_cflags"
2173 "" | y | ye | yes | n | no)
2174 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-cflags option." >&5
2175 echo "$as_me: error: *** You must supply an argument to the --with-cflags option." >&2;}
2176 { (exit 1); exit 1; }; }
2183 CFLAGS="-D_GNU_SOURCE $CFLAGS"
2186 ac_cpp='$CPP $CPPFLAGS'
2187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2190 if test -n "$ac_tool_prefix"; then
2191 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2192 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2193 echo "$as_me:$LINENO: checking for $ac_word" >&5
2194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2195 if test "${ac_cv_prog_CC+set}" = set; then
2196 echo $ECHO_N "(cached) $ECHO_C" >&6
2198 if test -n "$CC"; then
2199 ac_cv_prog_CC="$CC" # Let the user override the test.
2201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205 test -z "$as_dir" && as_dir=.
2206 for ac_exec_ext in '' $ac_executable_extensions; do
2207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2208 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218 if test -n "$CC"; then
2219 echo "$as_me:$LINENO: result: $CC" >&5
2220 echo "${ECHO_T}$CC" >&6
2222 echo "$as_me:$LINENO: result: no" >&5
2223 echo "${ECHO_T}no" >&6
2227 if test -z "$ac_cv_prog_CC"; then
2229 # Extract the first word of "gcc", so it can be a program name with args.
2230 set dummy gcc; ac_word=$2
2231 echo "$as_me:$LINENO: checking for $ac_word" >&5
2232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2233 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2234 echo $ECHO_N "(cached) $ECHO_C" >&6
2236 if test -n "$ac_ct_CC"; then
2237 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243 test -z "$as_dir" && as_dir=.
2244 for ac_exec_ext in '' $ac_executable_extensions; do
2245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2246 ac_cv_prog_ac_ct_CC="gcc"
2247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2255 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2256 if test -n "$ac_ct_CC"; then
2257 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2258 echo "${ECHO_T}$ac_ct_CC" >&6
2260 echo "$as_me:$LINENO: result: no" >&5
2261 echo "${ECHO_T}no" >&6
2269 if test -z "$CC"; then
2270 if test -n "$ac_tool_prefix"; then
2271 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2272 set dummy ${ac_tool_prefix}cc; ac_word=$2
2273 echo "$as_me:$LINENO: checking for $ac_word" >&5
2274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2275 if test "${ac_cv_prog_CC+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2278 if test -n "$CC"; then
2279 ac_cv_prog_CC="$CC" # Let the user override the test.
2281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285 test -z "$as_dir" && as_dir=.
2286 for ac_exec_ext in '' $ac_executable_extensions; do
2287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2288 ac_cv_prog_CC="${ac_tool_prefix}cc"
2289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2298 if test -n "$CC"; then
2299 echo "$as_me:$LINENO: result: $CC" >&5
2300 echo "${ECHO_T}$CC" >&6
2302 echo "$as_me:$LINENO: result: no" >&5
2303 echo "${ECHO_T}no" >&6
2307 if test -z "$ac_cv_prog_CC"; then
2309 # Extract the first word of "cc", so it can be a program name with args.
2310 set dummy cc; ac_word=$2
2311 echo "$as_me:$LINENO: checking for $ac_word" >&5
2312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2313 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2316 if test -n "$ac_ct_CC"; then
2317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2326 ac_cv_prog_ac_ct_CC="cc"
2327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2336 if test -n "$ac_ct_CC"; then
2337 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2338 echo "${ECHO_T}$ac_ct_CC" >&6
2340 echo "$as_me:$LINENO: result: no" >&5
2341 echo "${ECHO_T}no" >&6
2350 if test -z "$CC"; then
2351 # Extract the first word of "cc", so it can be a program name with args.
2352 set dummy cc; ac_word=$2
2353 echo "$as_me:$LINENO: checking for $ac_word" >&5
2354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2355 if test "${ac_cv_prog_CC+set}" = set; then
2356 echo $ECHO_N "(cached) $ECHO_C" >&6
2358 if test -n "$CC"; then
2359 ac_cv_prog_CC="$CC" # Let the user override the test.
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366 test -z "$as_dir" && as_dir=.
2367 for ac_exec_ext in '' $ac_executable_extensions; do
2368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2369 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2370 ac_prog_rejected=yes
2374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2380 if test $ac_prog_rejected = yes; then
2381 # We found a bogon in the path, so make sure we never use it.
2382 set dummy $ac_cv_prog_CC
2384 if test $# != 0; then
2385 # We chose a different compiler from the bogus one.
2386 # However, it has the same basename, so the bogon will be chosen
2387 # first if we set CC to just the basename; use the full file name.
2389 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2395 if test -n "$CC"; then
2396 echo "$as_me:$LINENO: result: $CC" >&5
2397 echo "${ECHO_T}$CC" >&6
2399 echo "$as_me:$LINENO: result: no" >&5
2400 echo "${ECHO_T}no" >&6
2404 if test -z "$CC"; then
2405 if test -n "$ac_tool_prefix"; then
2408 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2409 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2410 echo "$as_me:$LINENO: checking for $ac_word" >&5
2411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2412 if test "${ac_cv_prog_CC+set}" = set; then
2413 echo $ECHO_N "(cached) $ECHO_C" >&6
2415 if test -n "$CC"; then
2416 ac_cv_prog_CC="$CC" # Let the user override the test.
2418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422 test -z "$as_dir" && as_dir=.
2423 for ac_exec_ext in '' $ac_executable_extensions; do
2424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2425 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2435 if test -n "$CC"; then
2436 echo "$as_me:$LINENO: result: $CC" >&5
2437 echo "${ECHO_T}$CC" >&6
2439 echo "$as_me:$LINENO: result: no" >&5
2440 echo "${ECHO_T}no" >&6
2443 test -n "$CC" && break
2446 if test -z "$CC"; then
2450 # Extract the first word of "$ac_prog", so it can be a program name with args.
2451 set dummy $ac_prog; ac_word=$2
2452 echo "$as_me:$LINENO: checking for $ac_word" >&5
2453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2454 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2457 if test -n "$ac_ct_CC"; then
2458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2467 ac_cv_prog_ac_ct_CC="$ac_prog"
2468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2477 if test -n "$ac_ct_CC"; then
2478 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2479 echo "${ECHO_T}$ac_ct_CC" >&6
2481 echo "$as_me:$LINENO: result: no" >&5
2482 echo "${ECHO_T}no" >&6
2485 test -n "$ac_ct_CC" && break
2494 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2495 See \`config.log' for more details." >&5
2496 echo "$as_me: error: no acceptable C compiler found in \$PATH
2497 See \`config.log' for more details." >&2;}
2498 { (exit 1); exit 1; }; }
2500 # Provide some information about the compiler.
2501 echo "$as_me:$LINENO:" \
2502 "checking for C compiler version" >&5
2503 ac_compiler=`set X $ac_compile; echo $2`
2504 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2505 (eval $ac_compiler --version </dev/null >&5) 2>&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }
2509 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2510 (eval $ac_compiler -v </dev/null >&5) 2>&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }
2514 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2515 (eval $ac_compiler -V </dev/null >&5) 2>&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }
2520 cat >conftest.$ac_ext <<_ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2535 ac_clean_files_save=$ac_clean_files
2536 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2537 # Try to create an executable without -o first, disregard a.out.
2538 # It will help us diagnose broken compilers, and finding out an intuition
2540 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2541 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2542 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2543 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2544 (eval $ac_link_default) 2>&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; then
2548 # Find the output, starting from the most likely. This scheme is
2549 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2552 # Be careful to initialize this variable, since it used to be cached.
2553 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2555 # b.out is created by i960 compilers.
2556 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2558 test -f "$ac_file" || continue
2560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2563 # This is the source file.
2566 # We found the default executable, but exeext='' is most
2570 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2571 # FIXME: I believe we export ac_cv_exeext for Libtool,
2572 # but it would be cool to find out if it's true. Does anybody
2573 # maintain Libtool? --akim.
2581 echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2584 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2585 See \`config.log' for more details." >&5
2586 echo "$as_me: error: C compiler cannot create executables
2587 See \`config.log' for more details." >&2;}
2588 { (exit 77); exit 77; }; }
2591 ac_exeext=$ac_cv_exeext
2592 echo "$as_me:$LINENO: result: $ac_file" >&5
2593 echo "${ECHO_T}$ac_file" >&6
2595 # Check the compiler produces executables we can run. If not, either
2596 # the compiler is broken, or we cross compile.
2597 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2598 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2599 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2600 # If not cross compiling, check that we can run a simple program.
2601 if test "$cross_compiling" != yes; then
2602 if { ac_try='./$ac_file'
2603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; }; then
2610 if test "$cross_compiling" = maybe; then
2613 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2614 If you meant to cross compile, use \`--host'.
2615 See \`config.log' for more details." >&5
2616 echo "$as_me: error: cannot run C compiled programs.
2617 If you meant to cross compile, use \`--host'.
2618 See \`config.log' for more details." >&2;}
2619 { (exit 1); exit 1; }; }
2623 echo "$as_me:$LINENO: result: yes" >&5
2624 echo "${ECHO_T}yes" >&6
2626 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2627 ac_clean_files=$ac_clean_files_save
2628 # Check the compiler produces executables we can run. If not, either
2629 # the compiler is broken, or we cross compile.
2630 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2631 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2632 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2633 echo "${ECHO_T}$cross_compiling" >&6
2635 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2636 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2638 (eval $ac_link) 2>&5
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; then
2642 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2643 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2644 # work properly (i.e., refer to `conftest.exe'), while it won't with
2646 for ac_file in conftest.exe conftest conftest.*; do
2647 test -f "$ac_file" || continue
2649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2650 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2657 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2658 See \`config.log' for more details." >&5
2659 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2660 See \`config.log' for more details." >&2;}
2661 { (exit 1); exit 1; }; }
2664 rm -f conftest$ac_cv_exeext
2665 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2666 echo "${ECHO_T}$ac_cv_exeext" >&6
2668 rm -f conftest.$ac_ext
2669 EXEEXT=$ac_cv_exeext
2671 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2672 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2673 if test "${ac_cv_objext+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 cat >conftest.$ac_ext <<_ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2691 rm -f conftest.o conftest.obj
2692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2693 (eval $ac_compile) 2>&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }; then
2697 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2700 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2705 echo "$as_me: failed program was:" >&5
2706 sed 's/^/| /' conftest.$ac_ext >&5
2708 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2709 See \`config.log' for more details." >&5
2710 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2711 See \`config.log' for more details." >&2;}
2712 { (exit 1); exit 1; }; }
2715 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2717 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2718 echo "${ECHO_T}$ac_cv_objext" >&6
2719 OBJEXT=$ac_cv_objext
2721 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2722 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2723 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2726 cat >conftest.$ac_ext <<_ACEOF
2729 cat confdefs.h >>conftest.$ac_ext
2730 cat >>conftest.$ac_ext <<_ACEOF
2731 /* end confdefs.h. */
2744 rm -f conftest.$ac_objext
2745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746 (eval $ac_compile) 2>conftest.er1
2748 grep -v '^ *+' conftest.er1 >conftest.err
2750 cat conftest.err >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
2753 { ac_try='test -z "$ac_c_werror_flag"
2754 || test ! -s conftest.err'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; } &&
2760 { ac_try='test -s conftest.$ac_objext'
2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; }; then
2768 echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2774 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2777 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2778 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2779 GCC=`test $ac_compiler_gnu = yes && echo yes`
2780 ac_test_CFLAGS=${CFLAGS+set}
2781 ac_save_CFLAGS=$CFLAGS
2783 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2784 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2785 if test "${ac_cv_prog_cc_g+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2788 cat >conftest.$ac_ext <<_ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h. */
2803 rm -f conftest.$ac_objext
2804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2805 (eval $ac_compile) 2>conftest.er1
2807 grep -v '^ *+' conftest.er1 >conftest.err
2809 cat conftest.err >&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); } &&
2812 { ac_try='test -z "$ac_c_werror_flag"
2813 || test ! -s conftest.err'
2814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; } &&
2819 { ac_try='test -s conftest.$ac_objext'
2820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; }; then
2827 echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2834 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2835 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2836 if test "$ac_test_CFLAGS" = set; then
2837 CFLAGS=$ac_save_CFLAGS
2838 elif test $ac_cv_prog_cc_g = yes; then
2839 if test "$GCC" = yes; then
2845 if test "$GCC" = yes; then
2851 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2852 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2853 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2856 ac_cv_prog_cc_stdc=no
2858 cat >conftest.$ac_ext <<_ACEOF
2861 cat confdefs.h >>conftest.$ac_ext
2862 cat >>conftest.$ac_ext <<_ACEOF
2863 /* end confdefs.h. */
2866 #include <sys/types.h>
2867 #include <sys/stat.h>
2868 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2869 struct buf { int x; };
2870 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2871 static char *e (p, i)
2877 static char *f (char * (*g) (char **, int), char **p, ...)
2882 s = g (p, va_arg (v,int));
2887 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2888 function prototypes and stuff, but not '\xHH' hex character constants.
2889 These don't provoke an error unfortunately, instead are silently treated
2890 as 'x'. The following induces an error, until -std1 is added to get
2891 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2892 array size at least. It's necessary to write '\x00'==0 to get something
2893 that's true only with -std1. */
2894 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2896 int test (int i, double x);
2897 struct s1 {int (*f) (int a);};
2898 struct s2 {int (*f) (double a);};
2899 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2905 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2910 # Don't try gcc -ansi; that turns off useful extensions and
2911 # breaks some systems' header files.
2912 # AIX -qlanglvl=ansi
2913 # Ultrix and OSF/1 -std1
2914 # HP-UX 10.20 and later -Ae
2915 # HP-UX older versions -Aa -D_HPUX_SOURCE
2916 # SVR4 -Xc -D__EXTENSIONS__
2917 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2919 CC="$ac_save_CC $ac_arg"
2920 rm -f conftest.$ac_objext
2921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2922 (eval $ac_compile) 2>conftest.er1
2924 grep -v '^ *+' conftest.er1 >conftest.err
2926 cat conftest.err >&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); } &&
2929 { ac_try='test -z "$ac_c_werror_flag"
2930 || test ! -s conftest.err'
2931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; } &&
2936 { ac_try='test -s conftest.$ac_objext'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; }; then
2942 ac_cv_prog_cc_stdc=$ac_arg
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2949 rm -f conftest.err conftest.$ac_objext
2951 rm -f conftest.$ac_ext conftest.$ac_objext
2956 case "x$ac_cv_prog_cc_stdc" in
2958 echo "$as_me:$LINENO: result: none needed" >&5
2959 echo "${ECHO_T}none needed" >&6 ;;
2961 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2962 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2963 CC="$CC $ac_cv_prog_cc_stdc" ;;
2966 # Some people use a C++ compiler to compile C. Since we use `exit',
2967 # in C++ we need to declare it. In case someone uses the same compiler
2968 # for both compiling C and C++ we need to have the C++ compiler decide
2969 # the declaration of exit, since it's the most demanding environment.
2970 cat >conftest.$ac_ext <<_ACEOF
2975 rm -f conftest.$ac_objext
2976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2977 (eval $ac_compile) 2>conftest.er1
2979 grep -v '^ *+' conftest.er1 >conftest.err
2981 cat conftest.err >&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } &&
2984 { ac_try='test -z "$ac_c_werror_flag"
2985 || test ! -s conftest.err'
2986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; } &&
2991 { ac_try='test -s conftest.$ac_objext'
2992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; }; then
2997 for ac_declaration in \
2999 'extern "C" void std::exit (int) throw (); using std::exit;' \
3000 'extern "C" void std::exit (int); using std::exit;' \
3001 'extern "C" void exit (int) throw ();' \
3002 'extern "C" void exit (int);' \
3005 cat >conftest.$ac_ext <<_ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3021 rm -f conftest.$ac_objext
3022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3023 (eval $ac_compile) 2>conftest.er1
3025 grep -v '^ *+' conftest.er1 >conftest.err
3027 cat conftest.err >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } &&
3030 { ac_try='test -z "$ac_c_werror_flag"
3031 || test ! -s conftest.err'
3032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; } &&
3037 { ac_try='test -s conftest.$ac_objext'
3038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }; }; then
3045 echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3051 cat >conftest.$ac_ext <<_ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3066 rm -f conftest.$ac_objext
3067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3068 (eval $ac_compile) 2>conftest.er1
3070 grep -v '^ *+' conftest.er1 >conftest.err
3072 cat conftest.err >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } &&
3075 { ac_try='test -z "$ac_c_werror_flag"
3076 || test ! -s conftest.err'
3077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; } &&
3082 { ac_try='test -s conftest.$ac_objext'
3083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; }; then
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3097 if test -n "$ac_declaration"; then
3098 echo '#ifdef __cplusplus' >>confdefs.h
3099 echo $ac_declaration >>confdefs.h
3100 echo '#endif' >>confdefs.h
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3110 ac_cpp='$CPP $CPPFLAGS'
3111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3114 DEPDIR="${am__leading_dot}deps"
3116 ac_config_commands="$ac_config_commands depfiles"
3119 am_make=${MAKE-make}
3120 cat > confinc << 'END'
3125 # If we don't find an include directive, just comment out the code.
3126 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3127 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3131 # First try GNU make style include.
3132 echo "include confinc" > confmf
3133 # We grep out `Entering directory' and `Leaving directory'
3134 # messages which can occur if `w' ends up in MAKEFLAGS.
3135 # In particular we don't look at `^make:' because GNU make might
3136 # be invoked under some other name (usually "gmake"), in which
3137 # case it prints its new name instead of `make'.
3138 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3143 # Now try BSD make style include.
3144 if test "$am__include" = "#"; then
3145 echo '.include "confinc"' > confmf
3146 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3147 am__include=.include
3154 echo "$as_me:$LINENO: result: $_am_result" >&5
3155 echo "${ECHO_T}$_am_result" >&6
3156 rm -f confinc confmf
3158 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3159 if test "${enable_dependency_tracking+set}" = set; then
3160 enableval="$enable_dependency_tracking"
3163 if test "x$enable_dependency_tracking" != xno; then
3164 am_depcomp="$ac_aux_dir/depcomp"
3169 if test "x$enable_dependency_tracking" != xno; then
3180 depcc="$CC" am_compiler_list=
3182 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3183 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3184 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3187 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3188 # We make a subdir and do the tests there. Otherwise we can end up
3189 # making bogus files that we don't know about and never remove. For
3190 # instance it was reported that on HP-UX the gcc test will end up
3191 # making a dummy file named `D' -- because `-MD' means `put the output
3194 # Copy depcomp to subdir because otherwise we won't find it if we're
3195 # using a relative directory.
3196 cp "$am_depcomp" conftest.dir
3198 # We will build objects and dependencies in a subdirectory because
3199 # it helps to detect inapplicable dependency modes. For instance
3200 # both Tru64's cc and ICC support -MD to output dependencies as a
3201 # side effect of compilation, but ICC will put the dependencies in
3202 # the current directory while Tru64 will put them in the object
3206 am_cv_CC_dependencies_compiler_type=none
3207 if test "$am_compiler_list" = ""; then
3208 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3210 for depmode in $am_compiler_list; do
3211 # Setup a source with many dependencies, because some compilers
3212 # like to wrap large dependency lists on column 80 (with \), and
3213 # we should not choose a depcomp mode which is confused by this.
3215 # We need to recreate these files for each test, as the compiler may
3216 # overwrite some of them when testing with obscure command lines.
3217 # This happens at least with the AIX C compiler.
3219 for i in 1 2 3 4 5 6; do
3220 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3221 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3222 # Solaris 8's {/usr,}/bin/sh.
3223 touch sub/conftst$i.h
3225 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3229 # after this tag, mechanisms are not by side-effect, so they'll
3230 # only be used when explicitly requested
3231 if test "x$enable_dependency_tracking" = xyes; then
3239 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3240 # mode. It turns out that the SunPro C++ compiler does not properly
3241 # handle `-M -o', and we need to detect this.
3242 if depmode=$depmode \
3243 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3244 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3245 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3246 >/dev/null 2>conftest.err &&
3247 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3248 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3249 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3250 # icc doesn't choke on unknown options, it will just issue warnings
3251 # or remarks (even with -Werror). So we grep stderr for any message
3252 # that says an option was ignored or not supported.
3253 # When given -MP, icc 7.0 and 7.1 complain thusly:
3254 # icc: Command line warning: ignoring option '-M'; no argument required
3255 # The diagnosis changed in icc 8.0:
3256 # icc: Command line remark: option '-MP' not supported
3257 if (grep 'ignoring option' conftest.err ||
3258 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3259 am_cv_CC_dependencies_compiler_type=$depmode
3268 am_cv_CC_dependencies_compiler_type=none
3272 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3273 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3274 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3279 test "x$enable_dependency_tracking" != xno \
3280 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3282 am__fastdepCC_FALSE='#'
3284 am__fastdepCC_TRUE='#'
3285 am__fastdepCC_FALSE=
3289 if test -n "$ac_tool_prefix"; then
3290 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3291 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3292 echo "$as_me:$LINENO: checking for $ac_word" >&5
3293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3294 if test "${ac_cv_prog_RANLIB+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3297 if test -n "$RANLIB"; then
3298 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 test -z "$as_dir" && as_dir=.
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3307 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3316 RANLIB=$ac_cv_prog_RANLIB
3317 if test -n "$RANLIB"; then
3318 echo "$as_me:$LINENO: result: $RANLIB" >&5
3319 echo "${ECHO_T}$RANLIB" >&6
3321 echo "$as_me:$LINENO: result: no" >&5
3322 echo "${ECHO_T}no" >&6
3326 if test -z "$ac_cv_prog_RANLIB"; then
3327 ac_ct_RANLIB=$RANLIB
3328 # Extract the first word of "ranlib", so it can be a program name with args.
3329 set dummy ranlib; ac_word=$2
3330 echo "$as_me:$LINENO: checking for $ac_word" >&5
3331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3332 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3335 if test -n "$ac_ct_RANLIB"; then
3336 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 test -z "$as_dir" && as_dir=.
3343 for ac_exec_ext in '' $ac_executable_extensions; do
3344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3345 ac_cv_prog_ac_ct_RANLIB="ranlib"
3346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3352 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3355 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3356 if test -n "$ac_ct_RANLIB"; then
3357 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3358 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3360 echo "$as_me:$LINENO: result: no" >&5
3361 echo "${ECHO_T}no" >&6
3364 RANLIB=$ac_ct_RANLIB
3366 RANLIB="$ac_cv_prog_RANLIB"
3370 cat >>confdefs.h <<\_ACEOF
3371 #define _GNU_SOURCE 1
3377 ac_cpp='$CPP $CPPFLAGS'
3378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3381 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3382 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3383 # On Suns, sometimes $CPP names a directory.
3384 if test -n "$CPP" && test -d "$CPP"; then
3387 if test -z "$CPP"; then
3388 if test "${ac_cv_prog_CPP+set}" = set; then
3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3391 # Double quotes because CPP needs to be expanded
3392 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3395 for ac_c_preproc_warn_flag in '' yes
3397 # Use a header file that comes with gcc, so configuring glibc
3398 # with a fresh cross-compiler works.
3399 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3400 # <limits.h> exists even on freestanding compilers.
3401 # On the NeXT, cc -E runs the code through the compiler's parser,
3402 # not just through cpp. "Syntax error" is here to catch this case.
3403 cat >conftest.$ac_ext <<_ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h. */
3410 # include <limits.h>
3412 # include <assert.h>
3416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3419 grep -v '^ *+' conftest.er1 >conftest.err
3421 cat conftest.err >&5
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); } >/dev/null; then
3424 if test -s conftest.err; then
3425 ac_cpp_err=$ac_c_preproc_warn_flag
3426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3433 if test -z "$ac_cpp_err"; then
3436 echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3439 # Broken: fails on valid input.
3442 rm -f conftest.err conftest.$ac_ext
3444 # OK, works on sane cases. Now check whether non-existent headers
3445 # can be detected and how.
3446 cat >conftest.$ac_ext <<_ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h. */
3452 #include <ac_nonexistent.h>
3454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3457 grep -v '^ *+' conftest.er1 >conftest.err
3459 cat conftest.err >&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } >/dev/null; then
3462 if test -s conftest.err; then
3463 ac_cpp_err=$ac_c_preproc_warn_flag
3464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3471 if test -z "$ac_cpp_err"; then
3472 # Broken: success on invalid input.
3475 echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3478 # Passes both tests.
3482 rm -f conftest.err conftest.$ac_ext
3485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3486 rm -f conftest.err conftest.$ac_ext
3487 if $ac_preproc_ok; then
3499 echo "$as_me:$LINENO: result: $CPP" >&5
3500 echo "${ECHO_T}$CPP" >&6
3502 for ac_c_preproc_warn_flag in '' yes
3504 # Use a header file that comes with gcc, so configuring glibc
3505 # with a fresh cross-compiler works.
3506 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3507 # <limits.h> exists even on freestanding compilers.
3508 # On the NeXT, cc -E runs the code through the compiler's parser,
3509 # not just through cpp. "Syntax error" is here to catch this case.
3510 cat >conftest.$ac_ext <<_ACEOF
3513 cat confdefs.h >>conftest.$ac_ext
3514 cat >>conftest.$ac_ext <<_ACEOF
3515 /* end confdefs.h. */
3517 # include <limits.h>
3519 # include <assert.h>
3523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3526 grep -v '^ *+' conftest.er1 >conftest.err
3528 cat conftest.err >&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } >/dev/null; then
3531 if test -s conftest.err; then
3532 ac_cpp_err=$ac_c_preproc_warn_flag
3533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3540 if test -z "$ac_cpp_err"; then
3543 echo "$as_me: failed program was:" >&5
3544 sed 's/^/| /' conftest.$ac_ext >&5
3546 # Broken: fails on valid input.
3549 rm -f conftest.err conftest.$ac_ext
3551 # OK, works on sane cases. Now check whether non-existent headers
3552 # can be detected and how.
3553 cat >conftest.$ac_ext <<_ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3559 #include <ac_nonexistent.h>
3561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3564 grep -v '^ *+' conftest.er1 >conftest.err
3566 cat conftest.err >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } >/dev/null; then
3569 if test -s conftest.err; then
3570 ac_cpp_err=$ac_c_preproc_warn_flag
3571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3578 if test -z "$ac_cpp_err"; then
3579 # Broken: success on invalid input.
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3585 # Passes both tests.
3589 rm -f conftest.err conftest.$ac_ext
3592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3593 rm -f conftest.err conftest.$ac_ext
3594 if $ac_preproc_ok; then
3597 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3598 See \`config.log' for more details." >&5
3599 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3600 See \`config.log' for more details." >&2;}
3601 { (exit 1); exit 1; }; }
3605 ac_cpp='$CPP $CPPFLAGS'
3606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3611 echo "$as_me:$LINENO: checking for egrep" >&5
3612 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3613 if test "${ac_cv_prog_egrep+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3617 then ac_cv_prog_egrep='grep -E'
3618 else ac_cv_prog_egrep='egrep'
3621 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3622 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3623 EGREP=$ac_cv_prog_egrep
3627 echo "$as_me:$LINENO: checking for AIX" >&5
3628 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3629 cat >conftest.$ac_ext <<_ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h. */
3640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3641 $EGREP "yes" >/dev/null 2>&1; then
3642 echo "$as_me:$LINENO: result: yes" >&5
3643 echo "${ECHO_T}yes" >&6
3644 cat >>confdefs.h <<\_ACEOF
3645 #define _ALL_SOURCE 1
3649 echo "$as_me:$LINENO: result: no" >&5
3650 echo "${ECHO_T}no" >&6
3655 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3656 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3657 if test "${ac_cv_header_stdc+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3660 cat >conftest.$ac_ext <<_ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h. */
3679 rm -f conftest.$ac_objext
3680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3681 (eval $ac_compile) 2>conftest.er1
3683 grep -v '^ *+' conftest.er1 >conftest.err
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } &&
3688 { ac_try='test -z "$ac_c_werror_flag"
3689 || test ! -s conftest.err'
3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; } &&
3695 { ac_try='test -s conftest.$ac_objext'
3696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; }; then
3701 ac_cv_header_stdc=yes
3703 echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3706 ac_cv_header_stdc=no
3708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3710 if test $ac_cv_header_stdc = yes; then
3711 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3712 cat >conftest.$ac_ext <<_ACEOF
3715 cat confdefs.h >>conftest.$ac_ext
3716 cat >>conftest.$ac_ext <<_ACEOF
3717 /* end confdefs.h. */
3721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3722 $EGREP "memchr" >/dev/null 2>&1; then
3725 ac_cv_header_stdc=no
3731 if test $ac_cv_header_stdc = yes; then
3732 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3733 cat >conftest.$ac_ext <<_ACEOF
3736 cat confdefs.h >>conftest.$ac_ext
3737 cat >>conftest.$ac_ext <<_ACEOF
3738 /* end confdefs.h. */
3742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3743 $EGREP "free" >/dev/null 2>&1; then
3746 ac_cv_header_stdc=no
3752 if test $ac_cv_header_stdc = yes; then
3753 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3754 if test "$cross_compiling" = yes; then
3757 cat >conftest.$ac_ext <<_ACEOF
3760 cat confdefs.h >>conftest.$ac_ext
3761 cat >>conftest.$ac_ext <<_ACEOF
3762 /* end confdefs.h. */
3764 #if ((' ' & 0x0FF) == 0x020)
3765 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3766 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3768 # define ISLOWER(c) \
3769 (('a' <= (c) && (c) <= 'i') \
3770 || ('j' <= (c) && (c) <= 'r') \
3771 || ('s' <= (c) && (c) <= 'z'))
3772 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3775 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3780 for (i = 0; i < 256; i++)
3781 if (XOR (islower (i), ISLOWER (i))
3782 || toupper (i) != TOUPPER (i))
3787 rm -f conftest$ac_exeext
3788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3789 (eval $ac_link) 2>&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; }; then
3800 echo "$as_me: program exited with status $ac_status" >&5
3801 echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3805 ac_cv_header_stdc=no
3807 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3811 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3812 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3813 if test $ac_cv_header_stdc = yes; then
3815 cat >>confdefs.h <<\_ACEOF
3816 #define STDC_HEADERS 1
3821 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3831 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3832 inttypes.h stdint.h unistd.h
3834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3835 echo "$as_me:$LINENO: checking for $ac_header" >&5
3836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3838 echo $ECHO_N "(cached) $ECHO_C" >&6
3840 cat >conftest.$ac_ext <<_ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h. */
3846 $ac_includes_default
3848 #include <$ac_header>
3850 rm -f conftest.$ac_objext
3851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3852 (eval $ac_compile) 2>conftest.er1
3854 grep -v '^ *+' conftest.er1 >conftest.err
3856 cat conftest.err >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } &&
3859 { ac_try='test -z "$ac_c_werror_flag"
3860 || test ! -s conftest.err'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; } &&
3866 { ac_try='test -s conftest.$ac_objext'
3867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; }; then
3872 eval "$as_ac_Header=yes"
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3877 eval "$as_ac_Header=no"
3879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3884 cat >>confdefs.h <<_ACEOF
3885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3893 if test "${ac_cv_header_minix_config_h+set}" = set; then
3894 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3895 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3896 if test "${ac_cv_header_minix_config_h+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3899 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3900 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3902 # Is the header compilable?
3903 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3904 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3905 cat >conftest.$ac_ext <<_ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3911 $ac_includes_default
3912 #include <minix/config.h>
3914 rm -f conftest.$ac_objext
3915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3916 (eval $ac_compile) 2>conftest.er1
3918 grep -v '^ *+' conftest.er1 >conftest.err
3920 cat conftest.err >&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } &&
3923 { ac_try='test -z "$ac_c_werror_flag"
3924 || test ! -s conftest.err'
3925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); }; } &&
3930 { ac_try='test -s conftest.$ac_objext'
3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; }; then
3936 ac_header_compiler=yes
3938 echo "$as_me: failed program was:" >&5
3939 sed 's/^/| /' conftest.$ac_ext >&5
3941 ac_header_compiler=no
3943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3944 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3945 echo "${ECHO_T}$ac_header_compiler" >&6
3947 # Is the header present?
3948 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3949 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3950 cat >conftest.$ac_ext <<_ACEOF
3953 cat confdefs.h >>conftest.$ac_ext
3954 cat >>conftest.$ac_ext <<_ACEOF
3955 /* end confdefs.h. */
3956 #include <minix/config.h>
3958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3961 grep -v '^ *+' conftest.er1 >conftest.err
3963 cat conftest.err >&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } >/dev/null; then
3966 if test -s conftest.err; then
3967 ac_cpp_err=$ac_c_preproc_warn_flag
3968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3975 if test -z "$ac_cpp_err"; then
3976 ac_header_preproc=yes
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3981 ac_header_preproc=no
3983 rm -f conftest.err conftest.$ac_ext
3984 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3985 echo "${ECHO_T}$ac_header_preproc" >&6
3987 # So? What about this header?
3988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3990 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3991 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3992 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3993 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3994 ac_header_preproc=yes
3997 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3998 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3999 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4000 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4001 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4002 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4003 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4004 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4005 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4006 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4007 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4008 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4011 ## ------------------------------------------ ##
4012 ## Report this to the AC_PACKAGE_NAME lists. ##
4013 ## ------------------------------------------ ##
4016 sed "s/^/$as_me: WARNING: /" >&2
4019 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4020 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4021 if test "${ac_cv_header_minix_config_h+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 ac_cv_header_minix_config_h=$ac_header_preproc
4026 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4027 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4030 if test $ac_cv_header_minix_config_h = yes; then
4037 if test "$MINIX" = yes; then
4039 cat >>confdefs.h <<\_ACEOF
4040 #define _POSIX_SOURCE 1
4044 cat >>confdefs.h <<\_ACEOF
4045 #define _POSIX_1_SOURCE 2
4049 cat >>confdefs.h <<\_ACEOF
4065 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4066 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4067 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 cat >conftest.$ac_ext <<_ACEOF
4073 cat confdefs.h >>conftest.$ac_ext
4074 cat >>conftest.$ac_ext <<_ACEOF
4075 /* end confdefs.h. */
4077 # define __EXTENSIONS__ 1
4078 $ac_includes_default
4087 rm -f conftest.$ac_objext
4088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4089 (eval $ac_compile) 2>conftest.er1
4091 grep -v '^ *+' conftest.er1 >conftest.err
4093 cat conftest.err >&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } &&
4096 { ac_try='test -z "$ac_c_werror_flag"
4097 || test ! -s conftest.err'
4098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; } &&
4103 { ac_try='test -s conftest.$ac_objext'
4104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); }; }; then
4109 ac_cv_safe_to_define___extensions__=yes
4111 echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.$ac_ext >&5
4114 ac_cv_safe_to_define___extensions__=no
4116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4118 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4119 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4120 test $ac_cv_safe_to_define___extensions__ = yes &&
4121 cat >>confdefs.h <<\_ACEOF
4122 #define __EXTENSIONS__ 1
4125 cat >>confdefs.h <<\_ACEOF
4126 #define _POSIX_PTHREAD_SEMANTICS 1
4129 cat >>confdefs.h <<\_ACEOF
4130 #define _TANDEM_SOURCE 1
4138 # Check whether --enable-threads or --disable-threads was given.
4139 if test "${enable_threads+set}" = set; then
4140 enableval="$enable_threads"
4141 gl_use_threads=$enableval
4144 osf*) gl_use_threads=no ;;
4145 *) gl_use_threads=yes ;;
4149 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
4150 # For using <pthread.h>:
4153 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
4154 # groks <pthread.h>. cc also understands the flag -pthread, but
4155 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
4156 # 2. putting a flag into CPPFLAGS that has an effect on the linker
4157 # causes the AC_TRY_LINK test below to succeed unexpectedly,
4158 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
4159 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
4162 # Some systems optimize for single-threaded programs by default, and
4163 # need special flags to disable these optimizations. For example, the
4164 # definition of 'errno' in <errno.h>.
4166 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
4167 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
4180 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4181 # for constant arguments. Useless!
4182 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4183 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4184 if test "${ac_cv_working_alloca_h+set}" = set; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 cat >conftest.$ac_ext <<_ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4197 char *p = (char *) alloca (2 * sizeof (int));
4202 rm -f conftest.$ac_objext conftest$ac_exeext
4203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4204 (eval $ac_link) 2>conftest.er1
4206 grep -v '^ *+' conftest.er1 >conftest.err
4208 cat conftest.err >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } &&
4211 { ac_try='test -z "$ac_c_werror_flag"
4212 || test ! -s conftest.err'
4213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }; } &&
4218 { ac_try='test -s conftest$ac_exeext'
4219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; }; then
4224 ac_cv_working_alloca_h=yes
4226 echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4229 ac_cv_working_alloca_h=no
4231 rm -f conftest.err conftest.$ac_objext \
4232 conftest$ac_exeext conftest.$ac_ext
4234 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4235 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4236 if test $ac_cv_working_alloca_h = yes; then
4238 cat >>confdefs.h <<\_ACEOF
4239 #define HAVE_ALLOCA_H 1
4244 echo "$as_me:$LINENO: checking for alloca" >&5
4245 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4246 if test "${ac_cv_func_alloca_works+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 cat >conftest.$ac_ext <<_ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4256 # define alloca __builtin_alloca
4259 # include <malloc.h>
4260 # define alloca _alloca
4263 # include <alloca.h>
4268 # ifndef alloca /* predefined by HP cc +Olibcalls */
4279 char *p = (char *) alloca (1);
4284 rm -f conftest.$ac_objext conftest$ac_exeext
4285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4286 (eval $ac_link) 2>conftest.er1
4288 grep -v '^ *+' conftest.er1 >conftest.err
4290 cat conftest.err >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } &&
4293 { ac_try='test -z "$ac_c_werror_flag"
4294 || test ! -s conftest.err'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; } &&
4300 { ac_try='test -s conftest$ac_exeext'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; }; then
4306 ac_cv_func_alloca_works=yes
4308 echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4311 ac_cv_func_alloca_works=no
4313 rm -f conftest.err conftest.$ac_objext \
4314 conftest$ac_exeext conftest.$ac_ext
4316 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4317 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4319 if test $ac_cv_func_alloca_works = yes; then
4321 cat >>confdefs.h <<\_ACEOF
4322 #define HAVE_ALLOCA 1
4326 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4327 # that cause trouble. Some versions do not even contain alloca or
4328 # contain a buggy version. If you still want to use their alloca,
4329 # use ar to extract alloca.o from them instead of compiling alloca.c.
4331 ALLOCA=alloca.$ac_objext
4333 cat >>confdefs.h <<\_ACEOF
4338 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4339 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4340 if test "${ac_cv_os_cray+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 cat >conftest.$ac_ext <<_ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h. */
4349 #if defined(CRAY) && ! defined(CRAY2)
4356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4357 $EGREP "webecray" >/dev/null 2>&1; then
4365 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4366 echo "${ECHO_T}$ac_cv_os_cray" >&6
4367 if test $ac_cv_os_cray = yes; then
4368 for ac_func in _getb67 GETB67 getb67; do
4369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4370 echo "$as_me:$LINENO: checking for $ac_func" >&5
4371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4372 if eval "test \"\${$as_ac_var+set}\" = set"; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 cat >conftest.$ac_ext <<_ACEOF
4378 cat confdefs.h >>conftest.$ac_ext
4379 cat >>conftest.$ac_ext <<_ACEOF
4380 /* end confdefs.h. */
4381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4383 #define $ac_func innocuous_$ac_func
4385 /* System header to define __stub macros and hopefully few prototypes,
4386 which can conflict with char $ac_func (); below.
4387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4388 <limits.h> exists even on freestanding compilers. */
4391 # include <limits.h>
4393 # include <assert.h>
4398 /* Override any gcc2 internal prototype to avoid an error. */
4403 /* We use char because int might match the return type of a gcc2
4404 builtin and then its argument prototype would still apply. */
4406 /* The GNU C library defines this for functions which it implements
4407 to always fail with ENOSYS. Some functions are actually named
4408 something starting with __ and the normal name is an alias. */
4409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4412 char (*f) () = $ac_func;
4421 return f != $ac_func;
4426 rm -f conftest.$ac_objext conftest$ac_exeext
4427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4428 (eval $ac_link) 2>conftest.er1
4430 grep -v '^ *+' conftest.er1 >conftest.err
4432 cat conftest.err >&5
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); } &&
4435 { ac_try='test -z "$ac_c_werror_flag"
4436 || test ! -s conftest.err'
4437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; } &&
4442 { ac_try='test -s conftest$ac_exeext'
4443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; }; then
4448 eval "$as_ac_var=yes"
4450 echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4453 eval "$as_ac_var=no"
4455 rm -f conftest.err conftest.$ac_objext \
4456 conftest$ac_exeext conftest.$ac_ext
4458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4459 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4460 if test `eval echo '${'$as_ac_var'}'` = yes; then
4462 cat >>confdefs.h <<_ACEOF
4463 #define CRAY_STACKSEG_END $ac_func
4472 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4473 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4474 if test "${ac_cv_c_stack_direction+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
4477 if test "$cross_compiling" = yes; then
4478 ac_cv_c_stack_direction=0
4480 cat >conftest.$ac_ext <<_ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h. */
4487 find_stack_direction ()
4489 static char *addr = 0;
4494 return find_stack_direction ();
4497 return (&dummy > addr) ? 1 : -1;
4503 exit (find_stack_direction () < 0);
4506 rm -f conftest$ac_exeext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4508 (eval $ac_link) 2>&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; }; then
4517 ac_cv_c_stack_direction=1
4519 echo "$as_me: program exited with status $ac_status" >&5
4520 echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.$ac_ext >&5
4524 ac_cv_c_stack_direction=-1
4526 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4529 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4530 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4532 cat >>confdefs.h <<_ACEOF
4533 #define STACK_DIRECTION $ac_cv_c_stack_direction
4544 for ac_header in $gl_header_list
4546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4548 echo "$as_me:$LINENO: checking for $ac_header" >&5
4549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4556 # Is the header compilable?
4557 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4559 cat >conftest.$ac_ext <<_ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h. */
4565 $ac_includes_default
4566 #include <$ac_header>
4568 rm -f conftest.$ac_objext
4569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4570 (eval $ac_compile) 2>conftest.er1
4572 grep -v '^ *+' conftest.er1 >conftest.err
4574 cat conftest.err >&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); } &&
4577 { ac_try='test -z "$ac_c_werror_flag"
4578 || test ! -s conftest.err'
4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; } &&
4584 { ac_try='test -s conftest.$ac_objext'
4585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); }; }; then
4590 ac_header_compiler=yes
4592 echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4595 ac_header_compiler=no
4597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4598 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4599 echo "${ECHO_T}$ac_header_compiler" >&6
4601 # Is the header present?
4602 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4603 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4604 cat >conftest.$ac_ext <<_ACEOF
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h. */
4610 #include <$ac_header>
4612 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4613 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4615 grep -v '^ *+' conftest.er1 >conftest.err
4617 cat conftest.err >&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); } >/dev/null; then
4620 if test -s conftest.err; then
4621 ac_cpp_err=$ac_c_preproc_warn_flag
4622 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4629 if test -z "$ac_cpp_err"; then
4630 ac_header_preproc=yes
4632 echo "$as_me: failed program was:" >&5
4633 sed 's/^/| /' conftest.$ac_ext >&5
4635 ac_header_preproc=no
4637 rm -f conftest.err conftest.$ac_ext
4638 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4639 echo "${ECHO_T}$ac_header_preproc" >&6
4641 # So? What about this header?
4642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4648 ac_header_preproc=yes
4651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4654 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4658 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4665 ## ------------------------------------------ ##
4666 ## Report this to the AC_PACKAGE_NAME lists. ##
4667 ## ------------------------------------------ ##
4670 sed "s/^/$as_me: WARNING: /" >&2
4673 echo "$as_me:$LINENO: checking for $ac_header" >&5
4674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4678 eval "$as_ac_Header=\$ac_header_preproc"
4680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4685 cat >>confdefs.h <<_ACEOF
4686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4698 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4699 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4700 if test "${ac_cv_c_restrict+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 # Try the official restrict keyword, then gcc's __restrict, and
4705 # the less common variants.
4706 for ac_kw in restrict __restrict __restrict__ _Restrict; do
4707 cat >conftest.$ac_ext <<_ACEOF
4710 cat confdefs.h >>conftest.$ac_ext
4711 cat >>conftest.$ac_ext <<_ACEOF
4712 /* end confdefs.h. */
4715 rm -f conftest.$ac_objext
4716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4717 (eval $ac_compile) 2>conftest.er1
4719 grep -v '^ *+' conftest.er1 >conftest.err
4721 cat conftest.err >&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } &&
4724 { ac_try='test -z "$ac_c_werror_flag"
4725 || test ! -s conftest.err'
4726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); }; } &&
4731 { ac_try='test -s conftest.$ac_objext'
4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; }; then
4737 ac_cv_c_restrict=$ac_kw; break
4739 echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.$ac_ext >&5
4743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4747 echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4748 echo "${ECHO_T}$ac_cv_c_restrict" >&6
4749 case $ac_cv_c_restrict in
4752 cat >>confdefs.h <<\_ACEOF
4756 *) cat >>confdefs.h <<_ACEOF
4757 #define restrict $ac_cv_c_restrict
4776 if test $ac_cv_header_sys_socket_h = yes; then
4781 for ac_header in winsock2.h ws2tcpip.h
4783 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4785 echo "$as_me:$LINENO: checking for $ac_header" >&5
4786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4793 # Is the header compilable?
4794 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4796 cat >conftest.$ac_ext <<_ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h. */
4802 $ac_includes_default
4803 #include <$ac_header>
4805 rm -f conftest.$ac_objext
4806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4807 (eval $ac_compile) 2>conftest.er1
4809 grep -v '^ *+' conftest.er1 >conftest.err
4811 cat conftest.err >&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); } &&
4814 { ac_try='test -z "$ac_c_werror_flag"
4815 || test ! -s conftest.err'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; } &&
4821 { ac_try='test -s conftest.$ac_objext'
4822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; }; then
4827 ac_header_compiler=yes
4829 echo "$as_me: failed program was:" >&5
4830 sed 's/^/| /' conftest.$ac_ext >&5
4832 ac_header_compiler=no
4834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4835 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4836 echo "${ECHO_T}$ac_header_compiler" >&6
4838 # Is the header present?
4839 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4841 cat >conftest.$ac_ext <<_ACEOF
4844 cat confdefs.h >>conftest.$ac_ext
4845 cat >>conftest.$ac_ext <<_ACEOF
4846 /* end confdefs.h. */
4847 #include <$ac_header>
4849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4852 grep -v '^ *+' conftest.er1 >conftest.err
4854 cat conftest.err >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } >/dev/null; then
4857 if test -s conftest.err; then
4858 ac_cpp_err=$ac_c_preproc_warn_flag
4859 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4866 if test -z "$ac_cpp_err"; then
4867 ac_header_preproc=yes
4869 echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4872 ac_header_preproc=no
4874 rm -f conftest.err conftest.$ac_ext
4875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4876 echo "${ECHO_T}$ac_header_preproc" >&6
4878 # So? What about this header?
4879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4885 ac_header_preproc=yes
4888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4891 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4895 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4902 ## ------------------------------------------ ##
4903 ## Report this to the AC_PACKAGE_NAME lists. ##
4904 ## ------------------------------------------ ##
4907 sed "s/^/$as_me: WARNING: /" >&2
4910 echo "$as_me:$LINENO: checking for $ac_header" >&5
4911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4913 echo $ECHO_N "(cached) $ECHO_C" >&6
4915 eval "$as_ac_Header=\$ac_header_preproc"
4917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4922 cat >>confdefs.h <<_ACEOF
4923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4930 SYS_SOCKET_H='sys/socket.h'
4950 echo "$as_me:$LINENO: checking for IPv4 sockets" >&5
4951 echo $ECHO_N "checking for IPv4 sockets... $ECHO_C" >&6
4952 if test "${gl_cv_socket_ipv4+set}" = set; then
4953 echo $ECHO_N "(cached) $ECHO_C" >&6
4955 cat >conftest.$ac_ext <<_ACEOF
4958 cat confdefs.h >>conftest.$ac_ext
4959 cat >>conftest.$ac_ext <<_ACEOF
4960 /* end confdefs.h. */
4961 #include <sys/types.h>
4962 #ifdef HAVE_SYS_SOCKET_H
4963 #include <sys/socket.h>
4965 #ifdef HAVE_NETINET_IN_H
4966 #include <netinet/in.h>
4968 #ifdef HAVE_WINSOCK2_H
4969 #include <winsock2.h>
4974 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
4975 if (&x && &y && &z) return 0;
4980 rm -f conftest.$ac_objext
4981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4982 (eval $ac_compile) 2>conftest.er1
4984 grep -v '^ *+' conftest.er1 >conftest.err
4986 cat conftest.err >&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); } &&
4989 { ac_try='test -z "$ac_c_werror_flag"
4990 || test ! -s conftest.err'
4991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }; } &&
4996 { ac_try='test -s conftest.$ac_objext'
4997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); }; }; then
5002 gl_cv_socket_ipv4=yes
5004 echo "$as_me: failed program was:" >&5
5005 sed 's/^/| /' conftest.$ac_ext >&5
5007 gl_cv_socket_ipv4=no
5009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5012 echo "$as_me:$LINENO: result: $gl_cv_socket_ipv4" >&5
5013 echo "${ECHO_T}$gl_cv_socket_ipv4" >&6
5014 if test $gl_cv_socket_ipv4 = yes; then
5016 cat >>confdefs.h <<\_ACEOF
5022 echo "$as_me:$LINENO: checking for IPv6 sockets" >&5
5023 echo $ECHO_N "checking for IPv6 sockets... $ECHO_C" >&6
5024 if test "${gl_cv_socket_ipv6+set}" = set; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 cat >conftest.$ac_ext <<_ACEOF
5030 cat confdefs.h >>conftest.$ac_ext
5031 cat >>conftest.$ac_ext <<_ACEOF
5032 /* end confdefs.h. */
5033 #include <sys/types.h>
5034 #ifdef HAVE_SYS_SOCKET_H
5035 #include <sys/socket.h>
5037 #ifdef HAVE_NETINET_IN_H
5038 #include <netinet/in.h>
5040 #ifdef HAVE_WINSOCK2_H
5041 #include <winsock2.h>
5046 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
5047 if (&x && &y && &z) return 0;
5052 rm -f conftest.$ac_objext
5053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5054 (eval $ac_compile) 2>conftest.er1
5056 grep -v '^ *+' conftest.er1 >conftest.err
5058 cat conftest.err >&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } &&
5061 { ac_try='test -z "$ac_c_werror_flag"
5062 || test ! -s conftest.err'
5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; } &&
5068 { ac_try='test -s conftest.$ac_objext'
5069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); }; }; then
5074 gl_cv_socket_ipv6=yes
5076 echo "$as_me: failed program was:" >&5
5077 sed 's/^/| /' conftest.$ac_ext >&5
5079 gl_cv_socket_ipv6=no
5081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5084 echo "$as_me:$LINENO: result: $gl_cv_socket_ipv6" >&5
5085 echo "${ECHO_T}$gl_cv_socket_ipv6" >&6
5086 if test $gl_cv_socket_ipv6 = yes; then
5088 cat >>confdefs.h <<\_ACEOF
5094 echo "$as_me:$LINENO: checking for inline" >&5
5095 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5096 if test "${ac_cv_c_inline+set}" = set; then
5097 echo $ECHO_N "(cached) $ECHO_C" >&6
5100 for ac_kw in inline __inline__ __inline; do
5101 cat >conftest.$ac_ext <<_ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h. */
5109 static $ac_kw foo_t static_foo () {return 0; }
5110 $ac_kw foo_t foo () {return 0; }
5114 rm -f conftest.$ac_objext
5115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5116 (eval $ac_compile) 2>conftest.er1
5118 grep -v '^ *+' conftest.er1 >conftest.err
5120 cat conftest.err >&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } &&
5123 { ac_try='test -z "$ac_c_werror_flag"
5124 || test ! -s conftest.err'
5125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; } &&
5130 { ac_try='test -s conftest.$ac_objext'
5131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; }; then
5136 ac_cv_c_inline=$ac_kw; break
5138 echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5146 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5147 echo "${ECHO_T}$ac_cv_c_inline" >&6
5150 case $ac_cv_c_inline in
5153 case $ac_cv_c_inline in
5155 *) ac_val=$ac_cv_c_inline;;
5157 cat >>confdefs.h <<_ACEOF
5159 #define inline $ac_val
5172 if test "X$prefix" = "XNONE"; then
5173 acl_final_prefix="$ac_default_prefix"
5175 acl_final_prefix="$prefix"
5177 if test "X$exec_prefix" = "XNONE"; then
5178 acl_final_exec_prefix='${prefix}'
5180 acl_final_exec_prefix="$exec_prefix"
5182 acl_save_prefix="$prefix"
5183 prefix="$acl_final_prefix"
5184 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5185 prefix="$acl_save_prefix"
5188 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5189 if test "${with_gnu_ld+set}" = set; then
5190 withval="$with_gnu_ld"
5191 test "$withval" = no || with_gnu_ld=yes
5195 # Prepare PATH_SEPARATOR.
5196 # The user is always right.
5197 if test "${PATH_SEPARATOR+set}" != set; then
5198 echo "#! /bin/sh" >conf$$.sh
5199 echo "exit 0" >>conf$$.sh
5201 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5209 if test "$GCC" = yes; then
5210 # Check if gcc -print-prog-name=ld gives a path.
5211 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5212 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5215 # gcc leaves a trailing carriage return which upsets mingw
5216 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5218 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5221 # Accept absolute paths.
5222 [\\/]* | [A-Za-z]:[\\/]*)
5223 re_direlt='/[^/][^/]*/\.\./'
5224 # Canonicalize the path of ld
5225 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5226 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5227 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5229 test -z "$LD" && LD="$ac_prog"
5232 # If it fails, then pretend we aren't using GCC.
5236 # If it is relative, then search for the first ld in PATH.
5240 elif test "$with_gnu_ld" = yes; then
5241 echo "$as_me:$LINENO: checking for GNU ld" >&5
5242 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5244 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5245 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5247 if test "${acl_cv_path_LD+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5250 if test -z "$LD"; then
5251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5252 for ac_dir in $PATH; do
5253 test -z "$ac_dir" && ac_dir=.
5254 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5255 acl_cv_path_LD="$ac_dir/$ac_prog"
5256 # Check to see if the program is GNU ld. I'd rather use --version,
5257 # but apparently some GNU ld's only accept -v.
5258 # Break only if it was the GNU/non-GNU ld that we prefer.
5259 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5260 *GNU* | *'with BFD'*)
5261 test "$with_gnu_ld" != no && break ;;
5263 test "$with_gnu_ld" != yes && break ;;
5269 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5273 LD="$acl_cv_path_LD"
5274 if test -n "$LD"; then
5275 echo "$as_me:$LINENO: result: $LD" >&5
5276 echo "${ECHO_T}$LD" >&6
5278 echo "$as_me:$LINENO: result: no" >&5
5279 echo "${ECHO_T}no" >&6
5281 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5282 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5283 { (exit 1); exit 1; }; }
5284 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5285 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5286 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5289 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5290 case `$LD -v 2>&1 </dev/null` in
5291 *GNU* | *'with BFD'*)
5292 acl_cv_prog_gnu_ld=yes ;;
5294 acl_cv_prog_gnu_ld=no ;;
5297 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5298 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5299 with_gnu_ld=$acl_cv_prog_gnu_ld
5304 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5305 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5306 if test "${acl_cv_rpath+set}" = set; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5310 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5311 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5317 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5318 echo "${ECHO_T}$acl_cv_rpath" >&6
5320 acl_libext="$acl_cv_libext"
5321 acl_shlibext="$acl_cv_shlibext"
5322 acl_libname_spec="$acl_cv_libname_spec"
5323 acl_library_names_spec="$acl_cv_library_names_spec"
5324 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5325 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5326 acl_hardcode_direct="$acl_cv_hardcode_direct"
5327 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5328 # Check whether --enable-rpath or --disable-rpath was given.
5329 if test "${enable_rpath+set}" = set; then
5330 enableval="$enable_rpath"
5338 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5339 if test -n "$searchpath"; then
5340 acl_save_IFS="${IFS= }"; IFS=":"
5341 for searchdir in $searchpath; do
5342 if test -d "$searchdir"; then
5343 case "$searchdir" in
5344 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5345 *) searchdir=`cd "$searchdir" && pwd`
5346 case "$searchdir" in
5347 */lib64 ) acl_libdirstem=lib64 ;;
5362 if test "$gl_use_threads" != no; then
5363 echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
5364 echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6
5366 cat >conftest.$ac_ext <<_ACEOF
5369 cat confdefs.h >>conftest.$ac_ext
5370 cat >>conftest.$ac_ext <<_ACEOF
5371 /* end confdefs.h. */
5372 extern void xyzzy ();
5382 rm -f conftest.$ac_objext conftest$ac_exeext
5383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5384 (eval $ac_link) 2>conftest.er1
5386 grep -v '^ *+' conftest.er1 >conftest.err
5388 cat conftest.err >&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } &&
5391 { ac_try='test -z "$ac_c_werror_flag"
5392 || test ! -s conftest.err'
5393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); }; } &&
5398 { ac_try='test -s conftest$ac_exeext'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; }; then
5406 echo "$as_me: failed program was:" >&5
5407 sed 's/^/| /' conftest.$ac_ext >&5
5410 rm -f conftest.err conftest.$ac_objext \
5411 conftest$ac_exeext conftest.$ac_ext
5412 echo "$as_me:$LINENO: result: $gl_have_weak" >&5
5413 echo "${ECHO_T}$gl_have_weak" >&6
5414 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
5415 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
5416 # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
5417 if test "${ac_cv_header_pthread_h+set}" = set; then
5418 echo "$as_me:$LINENO: checking for pthread.h" >&5
5419 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5420 if test "${ac_cv_header_pthread_h+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5423 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5424 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5426 # Is the header compilable?
5427 echo "$as_me:$LINENO: checking pthread.h usability" >&5
5428 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
5429 cat >conftest.$ac_ext <<_ACEOF
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h. */
5435 $ac_includes_default
5436 #include <pthread.h>
5438 rm -f conftest.$ac_objext
5439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5440 (eval $ac_compile) 2>conftest.er1
5442 grep -v '^ *+' conftest.er1 >conftest.err
5444 cat conftest.err >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } &&
5447 { ac_try='test -z "$ac_c_werror_flag"
5448 || test ! -s conftest.err'
5449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }; } &&
5454 { ac_try='test -s conftest.$ac_objext'
5455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }; }; then
5460 ac_header_compiler=yes
5462 echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5465 ac_header_compiler=no
5467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5469 echo "${ECHO_T}$ac_header_compiler" >&6
5471 # Is the header present?
5472 echo "$as_me:$LINENO: checking pthread.h presence" >&5
5473 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
5474 cat >conftest.$ac_ext <<_ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h. */
5480 #include <pthread.h>
5482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5485 grep -v '^ *+' conftest.er1 >conftest.err
5487 cat conftest.err >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } >/dev/null; then
5490 if test -s conftest.err; then
5491 ac_cpp_err=$ac_c_preproc_warn_flag
5492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5499 if test -z "$ac_cpp_err"; then
5500 ac_header_preproc=yes
5502 echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5505 ac_header_preproc=no
5507 rm -f conftest.err conftest.$ac_ext
5508 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5509 echo "${ECHO_T}$ac_header_preproc" >&6
5511 # So? What about this header?
5512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5514 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
5515 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5516 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
5517 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
5518 ac_header_preproc=yes
5521 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
5522 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
5523 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
5524 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
5525 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
5526 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
5527 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
5528 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
5529 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
5530 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
5531 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
5532 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
5535 ## ------------------------------------------ ##
5536 ## Report this to the AC_PACKAGE_NAME lists. ##
5537 ## ------------------------------------------ ##
5540 sed "s/^/$as_me: WARNING: /" >&2
5543 echo "$as_me:$LINENO: checking for pthread.h" >&5
5544 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5545 if test "${ac_cv_header_pthread_h+set}" = set; then
5546 echo $ECHO_N "(cached) $ECHO_C" >&6
5548 ac_cv_header_pthread_h=$ac_header_preproc
5550 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5551 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5554 if test $ac_cv_header_pthread_h = yes; then
5555 gl_have_pthread_h=yes
5557 gl_have_pthread_h=no
5561 if test "$gl_have_pthread_h" = yes; then
5562 # Other possible tests:
5563 # -lpthreads (FSU threads, PCthreads)
5566 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
5567 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
5568 # the second one only in libpthread, and lock.c needs it.
5569 cat >conftest.$ac_ext <<_ACEOF
5572 cat confdefs.h >>conftest.$ac_ext
5573 cat >>conftest.$ac_ext <<_ACEOF
5574 /* end confdefs.h. */
5575 #include <pthread.h>
5579 pthread_mutex_lock((pthread_mutex_t*)0);
5580 pthread_mutexattr_init((pthread_mutexattr_t*)0);
5585 rm -f conftest.$ac_objext conftest$ac_exeext
5586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5587 (eval $ac_link) 2>conftest.er1
5589 grep -v '^ *+' conftest.er1 >conftest.err
5591 cat conftest.err >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } &&
5594 { ac_try='test -z "$ac_c_werror_flag"
5595 || test ! -s conftest.err'
5596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); }; } &&
5601 { ac_try='test -s conftest$ac_exeext'
5602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; }; then
5609 echo "$as_me: failed program was:" >&5
5610 sed 's/^/| /' conftest.$ac_ext >&5
5613 rm -f conftest.err conftest.$ac_objext \
5614 conftest$ac_exeext conftest.$ac_ext
5615 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
5616 # since it is defined as a macro on OSF/1.)
5617 if test -n "$gl_have_pthread"; then
5618 # The program links fine without libpthread. But it may actually
5619 # need to link with libpthread in order to create multiple threads.
5620 echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
5621 echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6
5622 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
5625 ac_check_lib_save_LIBS=$LIBS
5626 LIBS="-lpthread $LIBS"
5627 cat >conftest.$ac_ext <<_ACEOF
5630 cat confdefs.h >>conftest.$ac_ext
5631 cat >>conftest.$ac_ext <<_ACEOF
5632 /* end confdefs.h. */
5634 /* Override any gcc2 internal prototype to avoid an error. */
5638 /* We use char because int might match the return type of a gcc2
5639 builtin and then its argument prototype would still apply. */
5640 char pthread_kill ();
5649 rm -f conftest.$ac_objext conftest$ac_exeext
5650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5651 (eval $ac_link) 2>conftest.er1
5653 grep -v '^ *+' conftest.er1 >conftest.err
5655 cat conftest.err >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); } &&
5658 { ac_try='test -z "$ac_c_werror_flag"
5659 || test ! -s conftest.err'
5660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); }; } &&
5665 { ac_try='test -s conftest$ac_exeext'
5666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }; }; then
5671 ac_cv_lib_pthread_pthread_kill=yes
5673 echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5676 ac_cv_lib_pthread_pthread_kill=no
5678 rm -f conftest.err conftest.$ac_objext \
5679 conftest$ac_exeext conftest.$ac_ext
5680 LIBS=$ac_check_lib_save_LIBS
5682 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
5683 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6
5684 if test $ac_cv_lib_pthread_pthread_kill = yes; then
5685 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
5686 # On Solaris and HP-UX, most pthread functions exist also in libc.
5687 # Therefore pthread_in_use() needs to actually try to create a
5688 # thread: pthread_create from libc will fail, whereas
5689 # pthread_create will actually create a thread.
5693 cat >>confdefs.h <<\_ACEOF
5694 #define PTHREAD_IN_USE_DETECTION_HARD 1
5702 # Some library is needed. Try libpthread and libc_r.
5703 echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
5704 echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6
5705 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
5708 ac_check_lib_save_LIBS=$LIBS
5709 LIBS="-lpthread $LIBS"
5710 cat >conftest.$ac_ext <<_ACEOF
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h. */
5717 /* Override any gcc2 internal prototype to avoid an error. */
5721 /* We use char because int might match the return type of a gcc2
5722 builtin and then its argument prototype would still apply. */
5723 char pthread_kill ();
5732 rm -f conftest.$ac_objext conftest$ac_exeext
5733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5734 (eval $ac_link) 2>conftest.er1
5736 grep -v '^ *+' conftest.er1 >conftest.err
5738 cat conftest.err >&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); } &&
5741 { ac_try='test -z "$ac_c_werror_flag"
5742 || test ! -s conftest.err'
5743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; } &&
5748 { ac_try='test -s conftest$ac_exeext'
5749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }; }; then
5754 ac_cv_lib_pthread_pthread_kill=yes
5756 echo "$as_me: failed program was:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5759 ac_cv_lib_pthread_pthread_kill=no
5761 rm -f conftest.err conftest.$ac_objext \
5762 conftest$ac_exeext conftest.$ac_ext
5763 LIBS=$ac_check_lib_save_LIBS
5765 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
5766 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6
5767 if test $ac_cv_lib_pthread_pthread_kill = yes; then
5769 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
5770 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
5773 if test -z "$gl_have_pthread"; then
5775 echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
5776 echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6
5777 if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5780 ac_check_lib_save_LIBS=$LIBS
5782 cat >conftest.$ac_ext <<_ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5789 /* Override any gcc2 internal prototype to avoid an error. */
5793 /* We use char because int might match the return type of a gcc2
5794 builtin and then its argument prototype would still apply. */
5795 char pthread_kill ();
5804 rm -f conftest.$ac_objext conftest$ac_exeext
5805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5806 (eval $ac_link) 2>conftest.er1
5808 grep -v '^ *+' conftest.er1 >conftest.err
5810 cat conftest.err >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } &&
5813 { ac_try='test -z "$ac_c_werror_flag"
5814 || test ! -s conftest.err'
5815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); }; } &&
5820 { ac_try='test -s conftest$ac_exeext'
5821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; }; then
5826 ac_cv_lib_c_r_pthread_kill=yes
5828 echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5831 ac_cv_lib_c_r_pthread_kill=no
5833 rm -f conftest.err conftest.$ac_objext \
5834 conftest$ac_exeext conftest.$ac_ext
5835 LIBS=$ac_check_lib_save_LIBS
5837 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
5838 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6
5839 if test $ac_cv_lib_c_r_pthread_kill = yes; then
5841 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
5842 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
5847 if test -n "$gl_have_pthread"; then
5848 gl_threads_api=posix
5850 cat >>confdefs.h <<\_ACEOF
5851 #define USE_POSIX_THREADS 1
5854 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
5855 if test $gl_have_weak = yes; then
5857 cat >>confdefs.h <<\_ACEOF
5858 #define USE_POSIX_THREADS_WEAK 1
5865 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
5866 # pthread_rwlock_* functions.
5867 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
5868 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
5869 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
5870 echo $ECHO_N "(cached) $ECHO_C" >&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 #include <pthread.h>
5883 if ((pthread_rwlock_t *) 0)
5885 if (sizeof (pthread_rwlock_t))
5891 rm -f conftest.$ac_objext
5892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5893 (eval $ac_compile) 2>conftest.er1
5895 grep -v '^ *+' conftest.er1 >conftest.err
5897 cat conftest.err >&5
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); } &&
5900 { ac_try='test -z "$ac_c_werror_flag"
5901 || test ! -s conftest.err'
5902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); }; } &&
5907 { ac_try='test -s conftest.$ac_objext'
5908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); }; }; then
5913 ac_cv_type_pthread_rwlock_t=yes
5915 echo "$as_me: failed program was:" >&5
5916 sed 's/^/| /' conftest.$ac_ext >&5
5918 ac_cv_type_pthread_rwlock_t=no
5920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5922 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
5923 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
5924 if test $ac_cv_type_pthread_rwlock_t = yes; then
5926 cat >>confdefs.h <<\_ACEOF
5927 #define HAVE_PTHREAD_RWLOCK 1
5932 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
5933 cat >conftest.$ac_ext <<_ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h. */
5939 #include <pthread.h>
5943 #if __FreeBSD__ == 4
5944 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
5946 int x = (int)PTHREAD_MUTEX_RECURSIVE;
5953 rm -f conftest.$ac_objext
5954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5955 (eval $ac_compile) 2>conftest.er1
5957 grep -v '^ *+' conftest.er1 >conftest.err
5959 cat conftest.err >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } &&
5962 { ac_try='test -z "$ac_c_werror_flag"
5963 || test ! -s conftest.err'
5964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; } &&
5969 { ac_try='test -s conftest.$ac_objext'
5970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); }; }; then
5976 cat >>confdefs.h <<\_ACEOF
5977 #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
5981 echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5989 if test -z "$gl_have_pthread"; then
5990 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
5991 gl_have_solaristhread=
5992 gl_save_LIBS="$LIBS"
5993 LIBS="$LIBS -lthread"
5994 cat >conftest.$ac_ext <<_ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h. */
6010 rm -f conftest.$ac_objext conftest$ac_exeext
6011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6012 (eval $ac_link) 2>conftest.er1
6014 grep -v '^ *+' conftest.er1 >conftest.err
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } &&
6019 { ac_try='test -z "$ac_c_werror_flag"
6020 || test ! -s conftest.err'
6021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); }; } &&
6026 { ac_try='test -s conftest$ac_exeext'
6027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; }; then
6032 gl_have_solaristhread=yes
6034 echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6038 rm -f conftest.err conftest.$ac_objext \
6039 conftest$ac_exeext conftest.$ac_ext
6040 LIBS="$gl_save_LIBS"
6041 if test -n "$gl_have_solaristhread"; then
6042 gl_threads_api=solaris
6044 LTLIBTHREAD=-lthread
6045 LIBMULTITHREAD="$LIBTHREAD"
6046 LTLIBMULTITHREAD="$LTLIBTHREAD"
6048 cat >>confdefs.h <<\_ACEOF
6049 #define USE_SOLARIS_THREADS 1
6052 if test $gl_have_weak = yes; then
6054 cat >>confdefs.h <<\_ACEOF
6055 #define USE_SOLARIS_THREADS_WEAK 1
6064 if test "$gl_use_threads" = pth; then
6065 gl_save_CPPFLAGS="$CPPFLAGS"
6071 echo "$as_me:$LINENO: checking how to link with libpth" >&5
6072 echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6
6073 if test "${ac_cv_libpth_libs+set}" = set; then
6074 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 acl_save_prefix="$prefix"
6084 prefix="$acl_final_prefix"
6085 acl_save_exec_prefix="$exec_prefix"
6086 exec_prefix="$acl_final_exec_prefix"
6088 eval additional_includedir=\"$includedir\"
6089 eval additional_libdir=\"$libdir\"
6091 exec_prefix="$acl_save_exec_prefix"
6092 prefix="$acl_save_prefix"
6095 # Check whether --with-libpth-prefix or --without-libpth-prefix was given.
6096 if test "${with_libpth_prefix+set}" = set; then
6097 withval="$with_libpth_prefix"
6099 if test "X$withval" = "Xno"; then
6102 if test "X$withval" = "X"; then
6104 acl_save_prefix="$prefix"
6105 prefix="$acl_final_prefix"
6106 acl_save_exec_prefix="$exec_prefix"
6107 exec_prefix="$acl_final_exec_prefix"
6109 eval additional_includedir=\"$includedir\"
6110 eval additional_libdir=\"$libdir\"
6112 exec_prefix="$acl_save_exec_prefix"
6113 prefix="$acl_save_prefix"
6116 additional_includedir="$withval/include"
6117 additional_libdir="$withval/$acl_libdirstem"
6128 names_already_handled=
6129 names_next_round='pth '
6130 while test -n "$names_next_round"; do
6131 names_this_round="$names_next_round"
6133 for name in $names_this_round; do
6135 for n in $names_already_handled; do
6136 if test "$n" = "$name"; then
6141 if test -z "$already_handled"; then
6142 names_already_handled="$names_already_handled $name"
6143 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6144 eval value=\"\$HAVE_LIB$uppername\"
6145 if test -n "$value"; then
6146 if test "$value" = yes; then
6147 eval value=\"\$LIB$uppername\"
6148 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
6149 eval value=\"\$LTLIB$uppername\"
6150 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
6159 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6160 if test -n "$acl_shlibext"; then
6161 shrext=".$acl_shlibext" # typically: shrext=.so
6165 if test $use_additional = yes; then
6166 dir="$additional_libdir"
6167 if test -n "$acl_shlibext"; then
6168 if test -f "$dir/$libname$shrext"; then
6170 found_so="$dir/$libname$shrext"
6172 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6173 ver=`(cd "$dir" && \
6174 for f in "$libname$shrext".*; do echo "$f"; done \
6175 | sed -e "s,^$libname$shrext\\\\.,," \
6176 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6177 | sed 1q ) 2>/dev/null`
6178 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6180 found_so="$dir/$libname$shrext.$ver"
6183 eval library_names=\"$acl_library_names_spec\"
6184 for f in $library_names; do
6185 if test -f "$dir/$f"; then
6194 if test "X$found_dir" = "X"; then
6195 if test -f "$dir/$libname.$acl_libext"; then
6197 found_a="$dir/$libname.$acl_libext"
6200 if test "X$found_dir" != "X"; then
6201 if test -f "$dir/$libname.la"; then
6202 found_la="$dir/$libname.la"
6206 if test "X$found_dir" = "X"; then
6207 for x in $LDFLAGS $LTLIBPTH; do
6209 acl_save_prefix="$prefix"
6210 prefix="$acl_final_prefix"
6211 acl_save_exec_prefix="$exec_prefix"
6212 exec_prefix="$acl_final_exec_prefix"
6214 exec_prefix="$acl_save_exec_prefix"
6215 prefix="$acl_save_prefix"
6219 dir=`echo "X$x" | sed -e 's/^X-L//'`
6220 if test -n "$acl_shlibext"; then
6221 if test -f "$dir/$libname$shrext"; then
6223 found_so="$dir/$libname$shrext"
6225 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6226 ver=`(cd "$dir" && \
6227 for f in "$libname$shrext".*; do echo "$f"; done \
6228 | sed -e "s,^$libname$shrext\\\\.,," \
6229 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6230 | sed 1q ) 2>/dev/null`
6231 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6233 found_so="$dir/$libname$shrext.$ver"
6236 eval library_names=\"$acl_library_names_spec\"
6237 for f in $library_names; do
6238 if test -f "$dir/$f"; then
6247 if test "X$found_dir" = "X"; then
6248 if test -f "$dir/$libname.$acl_libext"; then
6250 found_a="$dir/$libname.$acl_libext"
6253 if test "X$found_dir" != "X"; then
6254 if test -f "$dir/$libname.la"; then
6255 found_la="$dir/$libname.la"
6260 if test "X$found_dir" != "X"; then
6265 if test "X$found_dir" != "X"; then
6266 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
6267 if test "X$found_so" != "X"; then
6268 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
6269 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6272 for x in $ltrpathdirs; do
6273 if test "X$x" = "X$found_dir"; then
6278 if test -z "$haveit"; then
6279 ltrpathdirs="$ltrpathdirs $found_dir"
6281 if test "$acl_hardcode_direct" = yes; then
6282 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6284 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6285 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6287 for x in $rpathdirs; do
6288 if test "X$x" = "X$found_dir"; then
6293 if test -z "$haveit"; then
6294 rpathdirs="$rpathdirs $found_dir"
6298 for x in $LDFLAGS $LIBPTH; do
6300 acl_save_prefix="$prefix"
6301 prefix="$acl_final_prefix"
6302 acl_save_exec_prefix="$exec_prefix"
6303 exec_prefix="$acl_final_exec_prefix"
6305 exec_prefix="$acl_save_exec_prefix"
6306 prefix="$acl_save_prefix"
6308 if test "X$x" = "X-L$found_dir"; then
6313 if test -z "$haveit"; then
6314 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
6316 if test "$acl_hardcode_minus_L" != no; then
6317 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6319 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
6325 if test "X$found_a" != "X"; then
6326 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
6328 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
6331 additional_includedir=
6332 case "$found_dir" in
6333 */$acl_libdirstem | */$acl_libdirstem/)
6334 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6335 LIBPTH_PREFIX="$basedir"
6336 additional_includedir="$basedir/include"
6339 if test "X$additional_includedir" != "X"; then
6340 if test "X$additional_includedir" != "X/usr/include"; then
6342 if test "X$additional_includedir" = "X/usr/local/include"; then
6343 if test -n "$GCC"; then
6345 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6349 if test -z "$haveit"; then
6350 for x in $CPPFLAGS $INCPTH; do
6352 acl_save_prefix="$prefix"
6353 prefix="$acl_final_prefix"
6354 acl_save_exec_prefix="$exec_prefix"
6355 exec_prefix="$acl_final_exec_prefix"
6357 exec_prefix="$acl_save_exec_prefix"
6358 prefix="$acl_save_prefix"
6360 if test "X$x" = "X-I$additional_includedir"; then
6365 if test -z "$haveit"; then
6366 if test -d "$additional_includedir"; then
6367 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
6373 if test -n "$found_la"; then
6374 save_libdir="$libdir"
6376 */* | *\\*) . "$found_la" ;;
6377 *) . "./$found_la" ;;
6379 libdir="$save_libdir"
6380 for dep in $dependency_libs; do
6383 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6384 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
6386 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
6387 if test -n "$GCC"; then
6389 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6393 if test -z "$haveit"; then
6395 for x in $LDFLAGS $LIBPTH; do
6397 acl_save_prefix="$prefix"
6398 prefix="$acl_final_prefix"
6399 acl_save_exec_prefix="$exec_prefix"
6400 exec_prefix="$acl_final_exec_prefix"
6402 exec_prefix="$acl_save_exec_prefix"
6403 prefix="$acl_save_prefix"
6405 if test "X$x" = "X-L$additional_libdir"; then
6410 if test -z "$haveit"; then
6411 if test -d "$additional_libdir"; then
6412 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
6416 for x in $LDFLAGS $LTLIBPTH; do
6418 acl_save_prefix="$prefix"
6419 prefix="$acl_final_prefix"
6420 acl_save_exec_prefix="$exec_prefix"
6421 exec_prefix="$acl_final_exec_prefix"
6423 exec_prefix="$acl_save_exec_prefix"
6424 prefix="$acl_save_prefix"
6426 if test "X$x" = "X-L$additional_libdir"; then
6431 if test -z "$haveit"; then
6432 if test -d "$additional_libdir"; then
6433 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
6440 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6441 if test "$enable_rpath" != no; then
6443 for x in $rpathdirs; do
6444 if test "X$x" = "X$dir"; then
6449 if test -z "$haveit"; then
6450 rpathdirs="$rpathdirs $dir"
6453 for x in $ltrpathdirs; do
6454 if test "X$x" = "X$dir"; then
6459 if test -z "$haveit"; then
6460 ltrpathdirs="$ltrpathdirs $dir"
6465 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6468 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6471 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
6472 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
6478 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
6479 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
6485 if test "X$rpathdirs" != "X"; then
6486 if test -n "$acl_hardcode_libdir_separator"; then
6488 for found_dir in $rpathdirs; do
6489 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6491 acl_save_libdir="$libdir"
6493 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6494 libdir="$acl_save_libdir"
6495 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
6497 for found_dir in $rpathdirs; do
6498 acl_save_libdir="$libdir"
6500 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6501 libdir="$acl_save_libdir"
6502 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
6506 if test "X$ltrpathdirs" != "X"; then
6507 for found_dir in $ltrpathdirs; do
6508 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
6512 ac_cv_libpth_libs="$LIBPTH"
6513 ac_cv_libpth_ltlibs="$LTLIBPTH"
6514 ac_cv_libpth_cppflags="$INCPTH"
6515 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
6518 echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
6519 echo "${ECHO_T}$ac_cv_libpth_libs" >&6
6520 LIBPTH="$ac_cv_libpth_libs"
6521 LTLIBPTH="$ac_cv_libpth_ltlibs"
6522 INCPTH="$ac_cv_libpth_cppflags"
6523 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
6525 for element in $INCPTH; do
6527 for x in $CPPFLAGS; do
6529 acl_save_prefix="$prefix"
6530 prefix="$acl_final_prefix"
6531 acl_save_exec_prefix="$exec_prefix"
6532 exec_prefix="$acl_final_exec_prefix"
6534 exec_prefix="$acl_save_exec_prefix"
6535 prefix="$acl_save_prefix"
6537 if test "X$x" = "X$element"; then
6542 if test -z "$haveit"; then
6543 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6555 gl_save_LIBS="$LIBS"
6557 cat >conftest.$ac_ext <<_ACEOF
6560 cat confdefs.h >>conftest.$ac_ext
6561 cat >>conftest.$ac_ext <<_ACEOF
6562 /* end confdefs.h. */
6572 rm -f conftest.$ac_objext conftest$ac_exeext
6573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6574 (eval $ac_link) 2>conftest.er1
6576 grep -v '^ *+' conftest.er1 >conftest.err
6578 cat conftest.err >&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); } &&
6581 { ac_try='test -z "$ac_c_werror_flag"
6582 || test ! -s conftest.err'
6583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; } &&
6588 { ac_try='test -s conftest$ac_exeext'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; }; then
6596 echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6600 rm -f conftest.err conftest.$ac_objext \
6601 conftest$ac_exeext conftest.$ac_ext
6602 LIBS="$gl_save_LIBS"
6603 if test -n "$gl_have_pth"; then
6606 LTLIBTHREAD="$LTLIBPTH"
6607 LIBMULTITHREAD="$LIBTHREAD"
6608 LTLIBMULTITHREAD="$LTLIBTHREAD"
6610 cat >>confdefs.h <<\_ACEOF
6611 #define USE_PTH_THREADS 1
6614 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
6615 if test $gl_have_weak = yes; then
6617 cat >>confdefs.h <<\_ACEOF
6618 #define USE_PTH_THREADS_WEAK 1
6626 CPPFLAGS="$gl_save_CPPFLAGS"
6629 if test -z "$gl_have_pthread"; then
6630 if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
6631 if { case "$host_os" in
6636 gl_threads_api=win32
6638 cat >>confdefs.h <<\_ACEOF
6639 #define USE_WIN32_THREADS 1
6646 echo "$as_me:$LINENO: checking for multithread API to use" >&5
6647 echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6
6648 echo "$as_me:$LINENO: result: $gl_threads_api" >&5
6649 echo "${ECHO_T}$gl_threads_api" >&6
6656 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
6657 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
6658 if test "${ac_cv_have_decl_snprintf+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6661 cat >conftest.$ac_ext <<_ACEOF
6664 cat confdefs.h >>conftest.$ac_ext
6665 cat >>conftest.$ac_ext <<_ACEOF
6666 /* end confdefs.h. */
6667 $ac_includes_default
6672 char *p = (char *) snprintf;
6679 rm -f conftest.$ac_objext
6680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6681 (eval $ac_compile) 2>conftest.er1
6683 grep -v '^ *+' conftest.er1 >conftest.err
6685 cat conftest.err >&5
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); } &&
6688 { ac_try='test -z "$ac_c_werror_flag"
6689 || test ! -s conftest.err'
6690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); }; } &&
6695 { ac_try='test -s conftest.$ac_objext'
6696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; }; then
6701 ac_cv_have_decl_snprintf=yes
6703 echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6706 ac_cv_have_decl_snprintf=no
6708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6710 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
6711 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
6712 if test $ac_cv_have_decl_snprintf = yes; then
6714 cat >>confdefs.h <<_ACEOF
6715 #define HAVE_DECL_SNPRINTF 1
6720 cat >>confdefs.h <<_ACEOF
6721 #define HAVE_DECL_SNPRINTF 0
6729 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
6730 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
6731 if test "${ac_cv_header_stdbool_h+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6734 cat >conftest.$ac_ext <<_ACEOF
6737 cat confdefs.h >>conftest.$ac_ext
6738 cat >>conftest.$ac_ext <<_ACEOF
6739 /* end confdefs.h. */
6741 #include <stdbool.h>
6743 "error: bool is not defined"
6746 "error: false is not defined"
6749 "error: false is not 0"
6752 "error: true is not defined"
6755 "error: true is not 1"
6757 #ifndef __bool_true_false_are_defined
6758 "error: __bool_true_false_are_defined is not defined"
6761 struct s { _Bool s: 1; _Bool t; } s;
6763 char a[true == 1 ? 1 : -1];
6764 char b[false == 0 ? 1 : -1];
6765 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6766 char d[(bool) 0.5 == true ? 1 : -1];
6768 char f[(_Bool) 0.0 == false ? 1 : -1];
6770 char h[sizeof (_Bool)];
6772 enum { j = false, k = true, l = false * true, m = true * 256 };
6774 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
6775 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
6776 #if defined __xlc__ || defined __GNUC__
6777 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
6778 reported by James Lemley on 2005-10-05; see
6779 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
6780 This test is not quite right, since xlc is allowed to
6781 reject this program, as the initializer for xlcbug is
6782 not one of the forms that C requires support for.
6783 However, doing the test right would require a run-time
6784 test, and that would make cross-compilation harder.
6785 Let us hope that IBM fixes the xlc bug, and also adds
6786 support for this kind of constant expression. In the
6787 meantime, this test will reject xlc, which is OK, since
6788 our stdbool.h substitute should suffice. We also test
6789 this with GCC, where it should work, to detect more
6790 quickly whether someone messes up the test in the
6792 char digs[] = "0123456789";
6793 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
6795 /* Catch a bug in an HP-UX C compiler. See
6796 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6797 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
6808 /* Refer to every declared value, to avoid compiler optimizations. */
6809 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
6810 + !m + !n + !o + !p + !q + !pq);
6816 rm -f conftest.$ac_objext
6817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6818 (eval $ac_compile) 2>conftest.er1
6820 grep -v '^ *+' conftest.er1 >conftest.err
6822 cat conftest.err >&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); } &&
6825 { ac_try='test -z "$ac_c_werror_flag"
6826 || test ! -s conftest.err'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; } &&
6832 { ac_try='test -s conftest.$ac_objext'
6833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); }; }; then
6838 ac_cv_header_stdbool_h=yes
6840 echo "$as_me: failed program was:" >&5
6841 sed 's/^/| /' conftest.$ac_ext >&5
6843 ac_cv_header_stdbool_h=no
6845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6847 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
6848 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
6849 echo "$as_me:$LINENO: checking for _Bool" >&5
6850 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
6851 if test "${ac_cv_type__Bool+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6854 cat >conftest.$ac_ext <<_ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6860 $ac_includes_default
6872 rm -f conftest.$ac_objext
6873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6874 (eval $ac_compile) 2>conftest.er1
6876 grep -v '^ *+' conftest.er1 >conftest.err
6878 cat conftest.err >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } &&
6881 { ac_try='test -z "$ac_c_werror_flag"
6882 || test ! -s conftest.err'
6883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); }; } &&
6888 { ac_try='test -s conftest.$ac_objext'
6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; }; then
6894 ac_cv_type__Bool=yes
6896 echo "$as_me: failed program was:" >&5
6897 sed 's/^/| /' conftest.$ac_ext >&5
6901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6903 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
6904 echo "${ECHO_T}$ac_cv_type__Bool" >&6
6905 if test $ac_cv_type__Bool = yes; then
6907 cat >>confdefs.h <<_ACEOF
6908 #define HAVE__BOOL 1
6914 if test $ac_cv_header_stdbool_h = yes; then
6916 cat >>confdefs.h <<\_ACEOF
6917 #define HAVE_STDBOOL_H 1
6924 HAVE_DECL_MEMRCHR=1;
6927 HAVE_DECL_STRNCASECMP=1;
6931 HAVE_DECL_STRNDUP=1;
6932 HAVE_DECL_STRNLEN=1;
6935 HAVE_DECL_STRTOK_R=1;
6936 REPLACE_STRCASECMP=0;
6938 REPLACE_STRCASESTR=0;
6941 echo "$as_me:$LINENO: checking whether strdup is declared" >&5
6942 echo $ECHO_N "checking whether strdup is declared... $ECHO_C" >&6
6943 if test "${ac_cv_have_decl_strdup+set}" = set; then
6944 echo $ECHO_N "(cached) $ECHO_C" >&6
6946 cat >conftest.$ac_ext <<_ACEOF
6949 cat confdefs.h >>conftest.$ac_ext
6950 cat >>conftest.$ac_ext <<_ACEOF
6951 /* end confdefs.h. */
6952 $ac_includes_default
6957 char *p = (char *) strdup;
6964 rm -f conftest.$ac_objext
6965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6966 (eval $ac_compile) 2>conftest.er1
6968 grep -v '^ *+' conftest.er1 >conftest.err
6970 cat conftest.err >&5
6971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972 (exit $ac_status); } &&
6973 { ac_try='test -z "$ac_c_werror_flag"
6974 || test ! -s conftest.err'
6975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; } &&
6980 { ac_try='test -s conftest.$ac_objext'
6981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); }; }; then
6986 ac_cv_have_decl_strdup=yes
6988 echo "$as_me: failed program was:" >&5
6989 sed 's/^/| /' conftest.$ac_ext >&5
6991 ac_cv_have_decl_strdup=no
6993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6995 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
6996 echo "${ECHO_T}$ac_cv_have_decl_strdup" >&6
6997 if test $ac_cv_have_decl_strdup = yes; then
6999 cat >>confdefs.h <<_ACEOF
7000 #define HAVE_DECL_STRDUP 1
7005 cat >>confdefs.h <<_ACEOF
7006 #define HAVE_DECL_STRDUP 0
7023 echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
7024 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
7025 if test "${gl_cv_absolute_string_h+set}" = set; then
7026 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 if test $ac_cv_header_string_h = yes; then
7035 cat >conftest.$ac_ext <<_ACEOF
7038 cat confdefs.h >>conftest.$ac_ext
7039 cat >>conftest.$ac_ext <<_ACEOF
7040 /* end confdefs.h. */
7043 gl_cv_absolute_string_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7044 sed -n '\#/string.h#{s#.*"\(.*/string.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
7048 echo "$as_me:$LINENO: result: $gl_cv_absolute_string_h" >&5
7049 echo "${ECHO_T}$gl_cv_absolute_string_h" >&6
7050 cat >>confdefs.h <<_ACEOF
7051 #define ABSOLUTE_STRING_H "$gl_cv_absolute_string_h"
7055 ABSOLUTE_STRING_H=\"$gl_cv_absolute_string_h\"
7060 echo "$as_me:$LINENO: checking for EOVERFLOW" >&5
7061 echo $ECHO_N "checking for EOVERFLOW... $ECHO_C" >&6
7062 if test "${ac_cv_decl_EOVERFLOW+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7066 cat >conftest.$ac_ext <<_ACEOF
7069 cat confdefs.h >>conftest.$ac_ext
7070 cat >>conftest.$ac_ext <<_ACEOF
7071 /* end confdefs.h. */
7079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7080 $EGREP "yes" >/dev/null 2>&1; then
7085 if test -n "$have_eoverflow"; then
7086 ac_cv_decl_EOVERFLOW=yes
7088 cat >conftest.$ac_ext <<_ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7095 #define _XOPEN_SOURCE_EXTENDED 1
7102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7103 $EGREP "yes" >/dev/null 2>&1; then
7108 if test -n "$have_eoverflow"; then
7109 if test "$cross_compiling" = yes; then
7110 # Depending upon the size, compute the lo and hi bounds.
7111 cat >conftest.$ac_ext <<_ACEOF
7114 cat confdefs.h >>conftest.$ac_ext
7115 cat >>conftest.$ac_ext <<_ACEOF
7116 /* end confdefs.h. */
7118 #define _XOPEN_SOURCE_EXTENDED 1
7120 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7127 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
7134 rm -f conftest.$ac_objext
7135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7136 (eval $ac_compile) 2>conftest.er1
7138 grep -v '^ *+' conftest.er1 >conftest.err
7140 cat conftest.err >&5
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); } &&
7143 { ac_try='test -z "$ac_c_werror_flag"
7144 || test ! -s conftest.err'
7145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); }; } &&
7150 { ac_try='test -s conftest.$ac_objext'
7151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); }; }; then
7158 cat >conftest.$ac_ext <<_ACEOF
7161 cat confdefs.h >>conftest.$ac_ext
7162 cat >>conftest.$ac_ext <<_ACEOF
7163 /* end confdefs.h. */
7165 #define _XOPEN_SOURCE_EXTENDED 1
7167 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7174 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
7181 rm -f conftest.$ac_objext
7182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7183 (eval $ac_compile) 2>conftest.er1
7185 grep -v '^ *+' conftest.er1 >conftest.err
7187 cat conftest.err >&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); } &&
7190 { ac_try='test -z "$ac_c_werror_flag"
7191 || test ! -s conftest.err'
7192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }; } &&
7197 { ac_try='test -s conftest.$ac_objext'
7198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); }; }; then
7203 ac_hi=$ac_mid; break
7205 echo "$as_me: failed program was:" >&5
7206 sed 's/^/| /' conftest.$ac_ext >&5
7208 ac_lo=`expr $ac_mid + 1`
7209 if test $ac_lo -le $ac_mid; then
7213 ac_mid=`expr 2 '*' $ac_mid + 1`
7215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7218 echo "$as_me: failed program was:" >&5
7219 sed 's/^/| /' conftest.$ac_ext >&5
7221 cat >conftest.$ac_ext <<_ACEOF
7224 cat confdefs.h >>conftest.$ac_ext
7225 cat >>conftest.$ac_ext <<_ACEOF
7226 /* end confdefs.h. */
7228 #define _XOPEN_SOURCE_EXTENDED 1
7230 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7237 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
7244 rm -f conftest.$ac_objext
7245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7246 (eval $ac_compile) 2>conftest.er1
7248 grep -v '^ *+' conftest.er1 >conftest.err
7250 cat conftest.err >&5
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); } &&
7253 { ac_try='test -z "$ac_c_werror_flag"
7254 || test ! -s conftest.err'
7255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); }; } &&
7260 { ac_try='test -s conftest.$ac_objext'
7261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); }; }; then
7268 cat >conftest.$ac_ext <<_ACEOF
7271 cat confdefs.h >>conftest.$ac_ext
7272 cat >>conftest.$ac_ext <<_ACEOF
7273 /* end confdefs.h. */
7275 #define _XOPEN_SOURCE_EXTENDED 1
7277 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7284 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
7291 rm -f conftest.$ac_objext
7292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7293 (eval $ac_compile) 2>conftest.er1
7295 grep -v '^ *+' conftest.er1 >conftest.err
7297 cat conftest.err >&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } &&
7300 { ac_try='test -z "$ac_c_werror_flag"
7301 || test ! -s conftest.err'
7302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); }; } &&
7307 { ac_try='test -s conftest.$ac_objext'
7308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); }; }; then
7313 ac_lo=$ac_mid; break
7315 echo "$as_me: failed program was:" >&5
7316 sed 's/^/| /' conftest.$ac_ext >&5
7318 ac_hi=`expr '(' $ac_mid ')' - 1`
7319 if test $ac_mid -le $ac_hi; then
7323 ac_mid=`expr 2 '*' $ac_mid`
7325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7328 echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.$ac_ext >&5
7333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7336 # Binary search between lo and hi bounds.
7337 while test "x$ac_lo" != "x$ac_hi"; do
7338 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7339 cat >conftest.$ac_ext <<_ACEOF
7342 cat confdefs.h >>conftest.$ac_ext
7343 cat >>conftest.$ac_ext <<_ACEOF
7344 /* end confdefs.h. */
7346 #define _XOPEN_SOURCE_EXTENDED 1
7348 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7355 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
7362 rm -f conftest.$ac_objext
7363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7364 (eval $ac_compile) 2>conftest.er1
7366 grep -v '^ *+' conftest.er1 >conftest.err
7368 cat conftest.err >&5
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); } &&
7371 { ac_try='test -z "$ac_c_werror_flag"
7372 || test ! -s conftest.err'
7373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); }; } &&
7378 { ac_try='test -s conftest.$ac_objext'
7379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); }; }; then
7386 echo "$as_me: failed program was:" >&5
7387 sed 's/^/| /' conftest.$ac_ext >&5
7389 ac_lo=`expr '(' $ac_mid ')' + 1`
7391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7394 ?*) ac_cv_decl_EOVERFLOW=$ac_lo;;
7398 if test "$cross_compiling" = yes; then
7399 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7400 See \`config.log' for more details." >&5
7401 echo "$as_me: error: cannot run test program while cross compiling
7402 See \`config.log' for more details." >&2;}
7403 { (exit 1); exit 1; }; }
7405 cat >conftest.$ac_ext <<_ACEOF
7408 cat confdefs.h >>conftest.$ac_ext
7409 cat >>conftest.$ac_ext <<_ACEOF
7410 /* end confdefs.h. */
7412 #define _XOPEN_SOURCE_EXTENDED 1
7414 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7418 long longval () { return EOVERFLOW; }
7419 unsigned long ulongval () { return EOVERFLOW; }
7426 FILE *f = fopen ("conftest.val", "w");
7429 if ((EOVERFLOW) < 0)
7431 long i = longval ();
7432 if (i != (EOVERFLOW))
7434 fprintf (f, "%ld\n", i);
7438 unsigned long i = ulongval ();
7439 if (i != (EOVERFLOW))
7441 fprintf (f, "%lu\n", i);
7443 exit (ferror (f) || fclose (f) != 0);
7449 rm -f conftest$ac_exeext
7450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7451 (eval $ac_link) 2>&5
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); }; }; then
7460 ac_cv_decl_EOVERFLOW=`cat conftest.val`
7462 echo "$as_me: program exited with status $ac_status" >&5
7463 echo "$as_me: failed program was:" >&5
7464 sed 's/^/| /' conftest.$ac_ext >&5
7467 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7472 ac_cv_decl_EOVERFLOW=E2BIG
7477 echo "$as_me:$LINENO: result: $ac_cv_decl_EOVERFLOW" >&5
7478 echo "${ECHO_T}$ac_cv_decl_EOVERFLOW" >&6
7479 if test "$ac_cv_decl_EOVERFLOW" != yes; then
7481 cat >>confdefs.h <<_ACEOF
7482 #define EOVERFLOW $ac_cv_decl_EOVERFLOW
7485 EOVERFLOW="$ac_cv_decl_EOVERFLOW"
7490 echo "$as_me:$LINENO: checking for long long int" >&5
7491 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
7492 if test "${ac_cv_type_long_long_int+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 cat >conftest.$ac_ext <<_ACEOF
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h. */
7501 long long int ll = 9223372036854775807ll;
7502 long long int nll = -9223372036854775807LL;
7503 typedef int a[((-9223372036854775807LL < 0
7504 && 0 < 9223372036854775807ll)
7510 long long int llmax = 9223372036854775807ll;
7511 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7512 | (llmax / ll) | (llmax % ll));
7517 rm -f conftest.$ac_objext conftest$ac_exeext
7518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7519 (eval $ac_link) 2>conftest.er1
7521 grep -v '^ *+' conftest.er1 >conftest.err
7523 cat conftest.err >&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } &&
7526 { ac_try='test -z "$ac_c_werror_flag"
7527 || test ! -s conftest.err'
7528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); }; } &&
7533 { ac_try='test -s conftest$ac_exeext'
7534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); }; }; then
7539 if test "$cross_compiling" = yes; then
7540 ac_cv_type_long_long_int=yes
7542 cat >conftest.$ac_ext <<_ACEOF
7545 cat confdefs.h >>conftest.$ac_ext
7546 cat >>conftest.$ac_ext <<_ACEOF
7547 /* end confdefs.h. */
7551 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7552 # define LLONG_MAX (HALF - 1 + HALF)
7557 long long int n = 1;
7561 long long int m = n << i;
7564 if (LLONG_MAX / 2 < m)
7572 rm -f conftest$ac_exeext
7573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7574 (eval $ac_link) 2>&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); }; }; then
7583 ac_cv_type_long_long_int=yes
7585 echo "$as_me: program exited with status $ac_status" >&5
7586 echo "$as_me: failed program was:" >&5
7587 sed 's/^/| /' conftest.$ac_ext >&5
7590 ac_cv_type_long_long_int=no
7592 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7595 echo "$as_me: failed program was:" >&5
7596 sed 's/^/| /' conftest.$ac_ext >&5
7598 ac_cv_type_long_long_int=no
7600 rm -f conftest.err conftest.$ac_objext \
7601 conftest$ac_exeext conftest.$ac_ext
7603 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
7604 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
7605 if test $ac_cv_type_long_long_int = yes; then
7607 cat >>confdefs.h <<\_ACEOF
7608 #define HAVE_LONG_LONG_INT 1
7614 echo "$as_me:$LINENO: checking for long double" >&5
7615 echo $ECHO_N "checking for long double... $ECHO_C" >&6
7616 if test "${gt_cv_c_long_double+set}" = set; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7619 if test "$GCC" = yes; then
7620 gt_cv_c_long_double=yes
7622 cat >conftest.$ac_ext <<_ACEOF
7625 cat confdefs.h >>conftest.$ac_ext
7626 cat >>conftest.$ac_ext <<_ACEOF
7627 /* end confdefs.h. */
7629 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
7630 long double foo = 0.0;
7631 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
7632 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
7642 rm -f conftest.$ac_objext
7643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7644 (eval $ac_compile) 2>conftest.er1
7646 grep -v '^ *+' conftest.er1 >conftest.err
7648 cat conftest.err >&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); } &&
7651 { ac_try='test -z "$ac_c_werror_flag"
7652 || test ! -s conftest.err'
7653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); }; } &&
7658 { ac_try='test -s conftest.$ac_objext'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; }; then
7664 gt_cv_c_long_double=yes
7666 echo "$as_me: failed program was:" >&5
7667 sed 's/^/| /' conftest.$ac_ext >&5
7669 gt_cv_c_long_double=no
7671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7674 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
7675 echo "${ECHO_T}$gt_cv_c_long_double" >&6
7676 if test $gt_cv_c_long_double = yes; then
7678 cat >>confdefs.h <<\_ACEOF
7679 #define HAVE_LONG_DOUBLE 1
7685 echo "$as_me:$LINENO: checking for wchar_t" >&5
7686 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
7687 if test "${gt_cv_c_wchar_t+set}" = set; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7690 cat >conftest.$ac_ext <<_ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h. */
7697 wchar_t foo = (wchar_t)'\0';
7706 rm -f conftest.$ac_objext
7707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7708 (eval $ac_compile) 2>conftest.er1
7710 grep -v '^ *+' conftest.er1 >conftest.err
7712 cat conftest.err >&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); } &&
7715 { ac_try='test -z "$ac_c_werror_flag"
7716 || test ! -s conftest.err'
7717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); }; } &&
7722 { ac_try='test -s conftest.$ac_objext'
7723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); }; }; then
7730 echo "$as_me: failed program was:" >&5
7731 sed 's/^/| /' conftest.$ac_ext >&5
7735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7737 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
7738 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
7739 if test $gt_cv_c_wchar_t = yes; then
7741 cat >>confdefs.h <<\_ACEOF
7742 #define HAVE_WCHAR_T 1
7748 echo "$as_me:$LINENO: checking for wint_t" >&5
7749 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
7750 if test "${gt_cv_c_wint_t+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 cat >conftest.$ac_ext <<_ACEOF
7756 cat confdefs.h >>conftest.$ac_ext
7757 cat >>conftest.$ac_ext <<_ACEOF
7758 /* end confdefs.h. */
7760 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7762 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
7763 before <wchar.h>. */
7768 wint_t foo = (wchar_t)'\0';
7777 rm -f conftest.$ac_objext
7778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7779 (eval $ac_compile) 2>conftest.er1
7781 grep -v '^ *+' conftest.er1 >conftest.err
7783 cat conftest.err >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); } &&
7786 { ac_try='test -z "$ac_c_werror_flag"
7787 || test ! -s conftest.err'
7788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); }; } &&
7793 { ac_try='test -s conftest.$ac_objext'
7794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; }; then
7801 echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.$ac_ext >&5
7806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7808 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
7809 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
7810 if test $gt_cv_c_wint_t = yes; then
7812 cat >>confdefs.h <<\_ACEOF
7813 #define HAVE_WINT_T 1
7818 echo "$as_me:$LINENO: checking for size_t" >&5
7819 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7820 if test "${ac_cv_type_size_t+set}" = set; then
7821 echo $ECHO_N "(cached) $ECHO_C" >&6
7823 cat >conftest.$ac_ext <<_ACEOF
7826 cat confdefs.h >>conftest.$ac_ext
7827 cat >>conftest.$ac_ext <<_ACEOF
7828 /* end confdefs.h. */
7829 $ac_includes_default
7835 if (sizeof (size_t))
7841 rm -f conftest.$ac_objext
7842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7843 (eval $ac_compile) 2>conftest.er1
7845 grep -v '^ *+' conftest.er1 >conftest.err
7847 cat conftest.err >&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); } &&
7850 { ac_try='test -z "$ac_c_werror_flag"
7851 || test ! -s conftest.err'
7852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); }; } &&
7857 { ac_try='test -s conftest.$ac_objext'
7858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); }; }; then
7863 ac_cv_type_size_t=yes
7865 echo "$as_me: failed program was:" >&5
7866 sed 's/^/| /' conftest.$ac_ext >&5
7868 ac_cv_type_size_t=no
7870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7872 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7873 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7874 if test $ac_cv_type_size_t = yes; then
7878 cat >>confdefs.h <<_ACEOF
7879 #define size_t unsigned
7885 echo "$as_me:$LINENO: checking for inttypes.h" >&5
7886 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7887 if test "${gl_cv_header_inttypes_h+set}" = set; then
7888 echo $ECHO_N "(cached) $ECHO_C" >&6
7890 cat >conftest.$ac_ext <<_ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h. */
7896 #include <sys/types.h>
7897 #include <inttypes.h>
7901 uintmax_t i = (uintmax_t) -1; return !i;
7906 rm -f conftest.$ac_objext
7907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7908 (eval $ac_compile) 2>conftest.er1
7910 grep -v '^ *+' conftest.er1 >conftest.err
7912 cat conftest.err >&5
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); } &&
7915 { ac_try='test -z "$ac_c_werror_flag"
7916 || test ! -s conftest.err'
7917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); }; } &&
7922 { ac_try='test -s conftest.$ac_objext'
7923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); }; }; then
7928 gl_cv_header_inttypes_h=yes
7930 echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7933 gl_cv_header_inttypes_h=no
7935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7937 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7938 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7939 if test $gl_cv_header_inttypes_h = yes; then
7941 cat >>confdefs.h <<_ACEOF
7942 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7948 echo "$as_me:$LINENO: checking for stdint.h" >&5
7949 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7950 if test "${gl_cv_header_stdint_h+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
7953 cat >conftest.$ac_ext <<_ACEOF
7956 cat confdefs.h >>conftest.$ac_ext
7957 cat >>conftest.$ac_ext <<_ACEOF
7958 /* end confdefs.h. */
7959 #include <sys/types.h>
7964 uintmax_t i = (uintmax_t) -1; return !i;
7969 rm -f conftest.$ac_objext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7971 (eval $ac_compile) 2>conftest.er1
7973 grep -v '^ *+' conftest.er1 >conftest.err
7975 cat conftest.err >&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); } &&
7978 { ac_try='test -z "$ac_c_werror_flag"
7979 || test ! -s conftest.err'
7980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; } &&
7985 { ac_try='test -s conftest.$ac_objext'
7986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; }; then
7991 gl_cv_header_stdint_h=yes
7993 echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7996 gl_cv_header_stdint_h=no
7998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8000 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8001 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
8002 if test $gl_cv_header_stdint_h = yes; then
8004 cat >>confdefs.h <<_ACEOF
8005 #define HAVE_STDINT_H_WITH_UINTMAX 1
8012 ac_cv_type_long_long=$ac_cv_type_long_long_int
8013 if test $ac_cv_type_long_long = yes; then
8015 cat >>confdefs.h <<\_ACEOF
8016 #define HAVE_LONG_LONG 1
8024 echo "$as_me:$LINENO: checking for intmax_t" >&5
8025 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
8026 if test "${gt_cv_c_intmax_t+set}" = set; then
8027 echo $ECHO_N "(cached) $ECHO_C" >&6
8029 cat >conftest.$ac_ext <<_ACEOF
8032 cat confdefs.h >>conftest.$ac_ext
8033 cat >>conftest.$ac_ext <<_ACEOF
8034 /* end confdefs.h. */
8038 #if HAVE_STDINT_H_WITH_UINTMAX
8041 #if HAVE_INTTYPES_H_WITH_UINTMAX
8042 #include <inttypes.h>
8048 intmax_t x = -1; return !x;
8053 rm -f conftest.$ac_objext
8054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8055 (eval $ac_compile) 2>conftest.er1
8057 grep -v '^ *+' conftest.er1 >conftest.err
8059 cat conftest.err >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } &&
8062 { ac_try='test -z "$ac_c_werror_flag"
8063 || test ! -s conftest.err'
8064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); }; } &&
8069 { ac_try='test -s conftest.$ac_objext'
8070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); }; }; then
8075 gt_cv_c_intmax_t=yes
8077 echo "$as_me: failed program was:" >&5
8078 sed 's/^/| /' conftest.$ac_ext >&5
8082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8084 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8085 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
8086 if test $gt_cv_c_intmax_t = yes; then
8088 cat >>confdefs.h <<\_ACEOF
8089 #define HAVE_INTMAX_T 1
8094 test $ac_cv_type_long_long = yes \
8095 && ac_type='long long' \
8098 cat >>confdefs.h <<_ACEOF
8099 #define intmax_t $ac_type
8111 GL_COND_LIBTOOL_TRUE=
8112 GL_COND_LIBTOOL_FALSE='#'
8114 GL_COND_LIBTOOL_TRUE='#'
8115 GL_COND_LIBTOOL_FALSE=
8118 gl_cond_libtool=true
8119 gl_source_base='gnulib'
8125 if test $ac_cv_func_alloca_works = no; then
8129 # Define an additional variable used in the Makefile substitution.
8130 if test $ac_cv_working_alloca_h = yes; then
8131 echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
8132 echo $ECHO_N "checking for alloca as a compiler built-in... $ECHO_C" >&6
8133 if test "${gl_cv_rpl_alloca+set}" = set; then
8134 echo $ECHO_N "(cached) $ECHO_C" >&6
8137 cat >conftest.$ac_ext <<_ACEOF
8140 cat confdefs.h >>conftest.$ac_ext
8141 cat >>conftest.$ac_ext <<_ACEOF
8142 /* end confdefs.h. */
8144 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
8149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8150 $EGREP "Need own alloca" >/dev/null 2>&1; then
8151 gl_cv_rpl_alloca=yes
8159 echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
8160 echo "${ECHO_T}$gl_cv_rpl_alloca" >&6
8161 if test $gl_cv_rpl_alloca = yes; then
8163 cat >>confdefs.h <<\_ACEOF
8164 #define HAVE_ALLOCA 1
8177 cat >>confdefs.h <<\_ACEOF
8178 #define HAVE_ALLOCA_H 1
8190 if test $ac_cv_header_arpa_inet_h = yes; then
8193 ARPA_INET_H='arpa/inet.h'
8198 { echo "$as_me:$LINENO: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
8199 echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
8201 echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
8202 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6
8203 if test "${ac_cv_search_getaddrinfo+set}" = set; then
8204 echo $ECHO_N "(cached) $ECHO_C" >&6
8206 ac_func_search_save_LIBS=$LIBS
8207 ac_cv_search_getaddrinfo=no
8208 cat >conftest.$ac_ext <<_ACEOF
8211 cat confdefs.h >>conftest.$ac_ext
8212 cat >>conftest.$ac_ext <<_ACEOF
8213 /* end confdefs.h. */
8215 /* Override any gcc2 internal prototype to avoid an error. */
8219 /* We use char because int might match the return type of a gcc2
8220 builtin and then its argument prototype would still apply. */
8221 char getaddrinfo ();
8230 rm -f conftest.$ac_objext conftest$ac_exeext
8231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8232 (eval $ac_link) 2>conftest.er1
8234 grep -v '^ *+' conftest.er1 >conftest.err
8236 cat conftest.err >&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); } &&
8239 { ac_try='test -z "$ac_c_werror_flag"
8240 || test ! -s conftest.err'
8241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); }; } &&
8246 { ac_try='test -s conftest$ac_exeext'
8247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); }; }; then
8252 ac_cv_search_getaddrinfo="none required"
8254 echo "$as_me: failed program was:" >&5
8255 sed 's/^/| /' conftest.$ac_ext >&5
8258 rm -f conftest.err conftest.$ac_objext \
8259 conftest$ac_exeext conftest.$ac_ext
8260 if test "$ac_cv_search_getaddrinfo" = no; then
8261 for ac_lib in nsl socket; do
8262 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8263 cat >conftest.$ac_ext <<_ACEOF
8266 cat confdefs.h >>conftest.$ac_ext
8267 cat >>conftest.$ac_ext <<_ACEOF
8268 /* end confdefs.h. */
8270 /* Override any gcc2 internal prototype to avoid an error. */
8274 /* We use char because int might match the return type of a gcc2
8275 builtin and then its argument prototype would still apply. */
8276 char getaddrinfo ();
8285 rm -f conftest.$ac_objext conftest$ac_exeext
8286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8287 (eval $ac_link) 2>conftest.er1
8289 grep -v '^ *+' conftest.er1 >conftest.err
8291 cat conftest.err >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } &&
8294 { ac_try='test -z "$ac_c_werror_flag"
8295 || test ! -s conftest.err'
8296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }; } &&
8301 { ac_try='test -s conftest$ac_exeext'
8302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; }; then
8307 ac_cv_search_getaddrinfo="-l$ac_lib"
8310 echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8314 rm -f conftest.err conftest.$ac_objext \
8315 conftest$ac_exeext conftest.$ac_ext
8318 LIBS=$ac_func_search_save_LIBS
8320 echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
8321 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6
8322 if test "$ac_cv_search_getaddrinfo" != no; then
8323 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS="$ac_cv_search_getaddrinfo $LIBS"
8328 for ac_func in getaddrinfo
8330 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8331 echo "$as_me:$LINENO: checking for $ac_func" >&5
8332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8333 if eval "test \"\${$as_ac_var+set}\" = set"; then
8334 echo $ECHO_N "(cached) $ECHO_C" >&6
8336 cat >conftest.$ac_ext <<_ACEOF
8339 cat confdefs.h >>conftest.$ac_ext
8340 cat >>conftest.$ac_ext <<_ACEOF
8341 /* end confdefs.h. */
8342 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8344 #define $ac_func innocuous_$ac_func
8346 /* System header to define __stub macros and hopefully few prototypes,
8347 which can conflict with char $ac_func (); below.
8348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8349 <limits.h> exists even on freestanding compilers. */
8352 # include <limits.h>
8354 # include <assert.h>
8359 /* Override any gcc2 internal prototype to avoid an error. */
8364 /* We use char because int might match the return type of a gcc2
8365 builtin and then its argument prototype would still apply. */
8367 /* The GNU C library defines this for functions which it implements
8368 to always fail with ENOSYS. Some functions are actually named
8369 something starting with __ and the normal name is an alias. */
8370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8373 char (*f) () = $ac_func;
8382 return f != $ac_func;
8387 rm -f conftest.$ac_objext conftest$ac_exeext
8388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8389 (eval $ac_link) 2>conftest.er1
8391 grep -v '^ *+' conftest.er1 >conftest.err
8393 cat conftest.err >&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); } &&
8396 { ac_try='test -z "$ac_c_werror_flag"
8397 || test ! -s conftest.err'
8398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); }; } &&
8403 { ac_try='test -s conftest$ac_exeext'
8404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; }; then
8409 eval "$as_ac_var=yes"
8411 echo "$as_me: failed program was:" >&5
8412 sed 's/^/| /' conftest.$ac_ext >&5
8414 eval "$as_ac_var=no"
8416 rm -f conftest.err conftest.$ac_objext \
8417 conftest$ac_exeext conftest.$ac_ext
8419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8421 if test `eval echo '${'$as_ac_var'}'` = yes; then
8422 cat >>confdefs.h <<_ACEOF
8423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8428 echo "$as_me:$LINENO: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
8429 echo $ECHO_N "checking for getaddrinfo in ws2tcpip.h and -lws2_32... $ECHO_C" >&6
8430 if test "${gl_cv_w32_getaddrinfo+set}" = set; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8434 gl_cv_w32_getaddrinfo=no
8435 am_save_LIBS="$LIBS"
8436 LIBS="$LIBS -lws2_32"
8437 cat >conftest.$ac_ext <<_ACEOF
8440 cat confdefs.h >>conftest.$ac_ext
8441 cat >>conftest.$ac_ext <<_ACEOF
8442 /* end confdefs.h. */
8444 #ifdef HAVE_WS2TCPIP_H
8445 #include <ws2tcpip.h>
8451 getaddrinfo(0, 0, 0, 0);
8456 rm -f conftest.$ac_objext conftest$ac_exeext
8457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8458 (eval $ac_link) 2>conftest.er1
8460 grep -v '^ *+' conftest.er1 >conftest.err
8462 cat conftest.err >&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); } &&
8465 { ac_try='test -z "$ac_c_werror_flag"
8466 || test ! -s conftest.err'
8467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); }; } &&
8472 { ac_try='test -s conftest$ac_exeext'
8473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }; }; then
8478 gl_cv_w32_getaddrinfo=yes
8480 echo "$as_me: failed program was:" >&5
8481 sed 's/^/| /' conftest.$ac_ext >&5
8484 rm -f conftest.err conftest.$ac_objext \
8485 conftest$ac_exeext conftest.$ac_ext
8486 LIBS="$am_save_LIBS"
8488 echo "$as_me:$LINENO: result: $gl_cv_w32_getaddrinfo" >&5
8489 echo "${ECHO_T}$gl_cv_w32_getaddrinfo" >&6
8490 if test "$gl_cv_w32_getaddrinfo" = "yes"; then
8491 LIBS="$LIBS -lws2_32"
8493 gl_LIBOBJS="$gl_LIBOBJS getaddrinfo.$ac_objext"
8501 for ac_func in gai_strerror
8503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8504 echo "$as_me:$LINENO: checking for $ac_func" >&5
8505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8506 if eval "test \"\${$as_ac_var+set}\" = set"; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8509 cat >conftest.$ac_ext <<_ACEOF
8512 cat confdefs.h >>conftest.$ac_ext
8513 cat >>conftest.$ac_ext <<_ACEOF
8514 /* end confdefs.h. */
8515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8517 #define $ac_func innocuous_$ac_func
8519 /* System header to define __stub macros and hopefully few prototypes,
8520 which can conflict with char $ac_func (); below.
8521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8522 <limits.h> exists even on freestanding compilers. */
8525 # include <limits.h>
8527 # include <assert.h>
8532 /* Override any gcc2 internal prototype to avoid an error. */
8537 /* We use char because int might match the return type of a gcc2
8538 builtin and then its argument prototype would still apply. */
8540 /* The GNU C library defines this for functions which it implements
8541 to always fail with ENOSYS. Some functions are actually named
8542 something starting with __ and the normal name is an alias. */
8543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8546 char (*f) () = $ac_func;
8555 return f != $ac_func;
8560 rm -f conftest.$ac_objext conftest$ac_exeext
8561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8562 (eval $ac_link) 2>conftest.er1
8564 grep -v '^ *+' conftest.er1 >conftest.err
8566 cat conftest.err >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); } &&
8569 { ac_try='test -z "$ac_c_werror_flag"
8570 || test ! -s conftest.err'
8571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); }; } &&
8576 { ac_try='test -s conftest$ac_exeext'
8577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); }; }; then
8582 eval "$as_ac_var=yes"
8584 echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8587 eval "$as_ac_var=no"
8589 rm -f conftest.err conftest.$ac_objext \
8590 conftest$ac_exeext conftest.$ac_ext
8592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8593 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8594 if test `eval echo '${'$as_ac_var'}'` = yes; then
8595 cat >>confdefs.h <<_ACEOF
8596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8600 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
8605 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8606 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
8607 if test "${ac_cv_search_gethostbyname+set}" = set; then
8608 echo $ECHO_N "(cached) $ECHO_C" >&6
8610 ac_func_search_save_LIBS=$LIBS
8611 ac_cv_search_gethostbyname=no
8612 cat >conftest.$ac_ext <<_ACEOF
8615 cat confdefs.h >>conftest.$ac_ext
8616 cat >>conftest.$ac_ext <<_ACEOF
8617 /* end confdefs.h. */
8619 /* Override any gcc2 internal prototype to avoid an error. */
8623 /* We use char because int might match the return type of a gcc2
8624 builtin and then its argument prototype would still apply. */
8625 char gethostbyname ();
8634 rm -f conftest.$ac_objext conftest$ac_exeext
8635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8636 (eval $ac_link) 2>conftest.er1
8638 grep -v '^ *+' conftest.er1 >conftest.err
8640 cat conftest.err >&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); } &&
8643 { ac_try='test -z "$ac_c_werror_flag"
8644 || test ! -s conftest.err'
8645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); }; } &&
8650 { ac_try='test -s conftest$ac_exeext'
8651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); }; }; then
8656 ac_cv_search_gethostbyname="none required"
8658 echo "$as_me: failed program was:" >&5
8659 sed 's/^/| /' conftest.$ac_ext >&5
8662 rm -f conftest.err conftest.$ac_objext \
8663 conftest$ac_exeext conftest.$ac_ext
8664 if test "$ac_cv_search_gethostbyname" = no; then
8665 for ac_lib in inet nsl; do
8666 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8667 cat >conftest.$ac_ext <<_ACEOF
8670 cat confdefs.h >>conftest.$ac_ext
8671 cat >>conftest.$ac_ext <<_ACEOF
8672 /* end confdefs.h. */
8674 /* Override any gcc2 internal prototype to avoid an error. */
8678 /* We use char because int might match the return type of a gcc2
8679 builtin and then its argument prototype would still apply. */
8680 char gethostbyname ();
8689 rm -f conftest.$ac_objext conftest$ac_exeext
8690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8691 (eval $ac_link) 2>conftest.er1
8693 grep -v '^ *+' conftest.er1 >conftest.err
8695 cat conftest.err >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } &&
8698 { ac_try='test -z "$ac_c_werror_flag"
8699 || test ! -s conftest.err'
8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; } &&
8705 { ac_try='test -s conftest$ac_exeext'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; }; then
8711 ac_cv_search_gethostbyname="-l$ac_lib"
8714 echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8718 rm -f conftest.err conftest.$ac_objext \
8719 conftest$ac_exeext conftest.$ac_ext
8722 LIBS=$ac_func_search_save_LIBS
8724 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
8725 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
8726 if test "$ac_cv_search_gethostbyname" != no; then
8727 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
8731 echo "$as_me:$LINENO: checking for library containing getservbyname" >&5
8732 echo $ECHO_N "checking for library containing getservbyname... $ECHO_C" >&6
8733 if test "${ac_cv_search_getservbyname+set}" = set; then
8734 echo $ECHO_N "(cached) $ECHO_C" >&6
8736 ac_func_search_save_LIBS=$LIBS
8737 ac_cv_search_getservbyname=no
8738 cat >conftest.$ac_ext <<_ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8745 /* Override any gcc2 internal prototype to avoid an error. */
8749 /* We use char because int might match the return type of a gcc2
8750 builtin and then its argument prototype would still apply. */
8751 char getservbyname ();
8760 rm -f conftest.$ac_objext conftest$ac_exeext
8761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8762 (eval $ac_link) 2>conftest.er1
8764 grep -v '^ *+' conftest.er1 >conftest.err
8766 cat conftest.err >&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); } &&
8769 { ac_try='test -z "$ac_c_werror_flag"
8770 || test ! -s conftest.err'
8771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); }; } &&
8776 { ac_try='test -s conftest$ac_exeext'
8777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); }; }; then
8782 ac_cv_search_getservbyname="none required"
8784 echo "$as_me: failed program was:" >&5
8785 sed 's/^/| /' conftest.$ac_ext >&5
8788 rm -f conftest.err conftest.$ac_objext \
8789 conftest$ac_exeext conftest.$ac_ext
8790 if test "$ac_cv_search_getservbyname" = no; then
8791 for ac_lib in inet nsl socket xnet; do
8792 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8793 cat >conftest.$ac_ext <<_ACEOF
8796 cat confdefs.h >>conftest.$ac_ext
8797 cat >>conftest.$ac_ext <<_ACEOF
8798 /* end confdefs.h. */
8800 /* Override any gcc2 internal prototype to avoid an error. */
8804 /* We use char because int might match the return type of a gcc2
8805 builtin and then its argument prototype would still apply. */
8806 char getservbyname ();
8815 rm -f conftest.$ac_objext conftest$ac_exeext
8816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8817 (eval $ac_link) 2>conftest.er1
8819 grep -v '^ *+' conftest.er1 >conftest.err
8821 cat conftest.err >&5
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); } &&
8824 { ac_try='test -z "$ac_c_werror_flag"
8825 || test ! -s conftest.err'
8826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); }; } &&
8831 { ac_try='test -s conftest$ac_exeext'
8832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; }; then
8837 ac_cv_search_getservbyname="-l$ac_lib"
8840 echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8844 rm -f conftest.err conftest.$ac_objext \
8845 conftest$ac_exeext conftest.$ac_ext
8848 LIBS=$ac_func_search_save_LIBS
8850 echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname" >&5
8851 echo "${ECHO_T}$ac_cv_search_getservbyname" >&6
8852 if test "$ac_cv_search_getservbyname" != no; then
8853 test "$ac_cv_search_getservbyname" = "none required" || LIBS="$ac_cv_search_getservbyname $LIBS"
8858 for ac_func in gethostbyname
8860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8861 echo "$as_me:$LINENO: checking for $ac_func" >&5
8862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8863 if eval "test \"\${$as_ac_var+set}\" = set"; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8866 cat >conftest.$ac_ext <<_ACEOF
8869 cat confdefs.h >>conftest.$ac_ext
8870 cat >>conftest.$ac_ext <<_ACEOF
8871 /* end confdefs.h. */
8872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8874 #define $ac_func innocuous_$ac_func
8876 /* System header to define __stub macros and hopefully few prototypes,
8877 which can conflict with char $ac_func (); below.
8878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8879 <limits.h> exists even on freestanding compilers. */
8882 # include <limits.h>
8884 # include <assert.h>
8889 /* Override any gcc2 internal prototype to avoid an error. */
8894 /* We use char because int might match the return type of a gcc2
8895 builtin and then its argument prototype would still apply. */
8897 /* The GNU C library defines this for functions which it implements
8898 to always fail with ENOSYS. Some functions are actually named
8899 something starting with __ and the normal name is an alias. */
8900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8903 char (*f) () = $ac_func;
8912 return f != $ac_func;
8917 rm -f conftest.$ac_objext conftest$ac_exeext
8918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8919 (eval $ac_link) 2>conftest.er1
8921 grep -v '^ *+' conftest.er1 >conftest.err
8923 cat conftest.err >&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); } &&
8926 { ac_try='test -z "$ac_c_werror_flag"
8927 || test ! -s conftest.err'
8928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); }; } &&
8933 { ac_try='test -s conftest$ac_exeext'
8934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); }; }; then
8939 eval "$as_ac_var=yes"
8941 echo "$as_me: failed program was:" >&5
8942 sed 's/^/| /' conftest.$ac_ext >&5
8944 eval "$as_ac_var=no"
8946 rm -f conftest.err conftest.$ac_objext \
8947 conftest$ac_exeext conftest.$ac_ext
8949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8950 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8951 if test `eval echo '${'$as_ac_var'}'` = yes; then
8952 cat >>confdefs.h <<_ACEOF
8953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8958 echo "$as_me:$LINENO: checking for gethostbyname in winsock2.h and -lws2_32" >&5
8959 echo $ECHO_N "checking for gethostbyname in winsock2.h and -lws2_32... $ECHO_C" >&6
8960 if test "${gl_cv_w32_gethostbyname+set}" = set; then
8961 echo $ECHO_N "(cached) $ECHO_C" >&6
8964 gl_cv_w32_gethostbyname=no
8965 am_save_LIBS="$LIBS"
8966 LIBS="$LIBS -lws2_32"
8967 cat >conftest.$ac_ext <<_ACEOF
8970 cat confdefs.h >>conftest.$ac_ext
8971 cat >>conftest.$ac_ext <<_ACEOF
8972 /* end confdefs.h. */
8974 #ifdef HAVE_WINSOCK2_H
8975 #include <winsock2.h>
8986 rm -f conftest.$ac_objext conftest$ac_exeext
8987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8988 (eval $ac_link) 2>conftest.er1
8990 grep -v '^ *+' conftest.er1 >conftest.err
8992 cat conftest.err >&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); } &&
8995 { ac_try='test -z "$ac_c_werror_flag"
8996 || test ! -s conftest.err'
8997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); }; } &&
9002 { ac_try='test -s conftest$ac_exeext'
9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; }; then
9008 gl_cv_w32_gethostbyname=yes
9010 echo "$as_me: failed program was:" >&5
9011 sed 's/^/| /' conftest.$ac_ext >&5
9014 rm -f conftest.err conftest.$ac_objext \
9015 conftest$ac_exeext conftest.$ac_ext
9016 LIBS="$am_save_LIBS"
9018 echo "$as_me:$LINENO: result: $gl_cv_w32_gethostbyname" >&5
9019 echo "${ECHO_T}$gl_cv_w32_gethostbyname" >&6
9020 if test "$gl_cv_w32_gethostbyname" = "yes"; then
9021 LIBS="$LIBS -lws2_32"
9042 echo "$as_me:$LINENO: checking whether getaddrinfo is declared" >&5
9043 echo $ECHO_N "checking whether getaddrinfo is declared... $ECHO_C" >&6
9044 if test "${ac_cv_have_decl_getaddrinfo+set}" = set; then
9045 echo $ECHO_N "(cached) $ECHO_C" >&6
9047 cat >conftest.$ac_ext <<_ACEOF
9050 cat confdefs.h >>conftest.$ac_ext
9051 cat >>conftest.$ac_ext <<_ACEOF
9052 /* end confdefs.h. */
9054 /* sys/types.h is not needed according to POSIX, but the
9055 sys/socket.h in i386-unknown-freebsd4.10 and
9056 powerpc-apple-darwin5.5 required it. */
9057 #include <sys/types.h>
9058 #ifdef HAVE_SYS_SOCKET_H
9059 #include <sys/socket.h>
9064 #ifdef HAVE_WS2TCPIP_H
9065 #include <ws2tcpip.h>
9073 char *p = (char *) getaddrinfo;
9080 rm -f conftest.$ac_objext
9081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9082 (eval $ac_compile) 2>conftest.er1
9084 grep -v '^ *+' conftest.er1 >conftest.err
9086 cat conftest.err >&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); } &&
9089 { ac_try='test -z "$ac_c_werror_flag"
9090 || test ! -s conftest.err'
9091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); }; } &&
9096 { ac_try='test -s conftest.$ac_objext'
9097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); }; }; then
9102 ac_cv_have_decl_getaddrinfo=yes
9104 echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9107 ac_cv_have_decl_getaddrinfo=no
9109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9111 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getaddrinfo" >&5
9112 echo "${ECHO_T}$ac_cv_have_decl_getaddrinfo" >&6
9113 if test $ac_cv_have_decl_getaddrinfo = yes; then
9115 cat >>confdefs.h <<_ACEOF
9116 #define HAVE_DECL_GETADDRINFO 1
9121 cat >>confdefs.h <<_ACEOF
9122 #define HAVE_DECL_GETADDRINFO 0
9127 echo "$as_me:$LINENO: checking whether freeaddrinfo is declared" >&5
9128 echo $ECHO_N "checking whether freeaddrinfo is declared... $ECHO_C" >&6
9129 if test "${ac_cv_have_decl_freeaddrinfo+set}" = set; then
9130 echo $ECHO_N "(cached) $ECHO_C" >&6
9132 cat >conftest.$ac_ext <<_ACEOF
9135 cat confdefs.h >>conftest.$ac_ext
9136 cat >>conftest.$ac_ext <<_ACEOF
9137 /* end confdefs.h. */
9139 /* sys/types.h is not needed according to POSIX, but the
9140 sys/socket.h in i386-unknown-freebsd4.10 and
9141 powerpc-apple-darwin5.5 required it. */
9142 #include <sys/types.h>
9143 #ifdef HAVE_SYS_SOCKET_H
9144 #include <sys/socket.h>
9149 #ifdef HAVE_WS2TCPIP_H
9150 #include <ws2tcpip.h>
9157 #ifndef freeaddrinfo
9158 char *p = (char *) freeaddrinfo;
9165 rm -f conftest.$ac_objext
9166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9167 (eval $ac_compile) 2>conftest.er1
9169 grep -v '^ *+' conftest.er1 >conftest.err
9171 cat conftest.err >&5
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); } &&
9174 { ac_try='test -z "$ac_c_werror_flag"
9175 || test ! -s conftest.err'
9176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); }; } &&
9181 { ac_try='test -s conftest.$ac_objext'
9182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); }; }; then
9187 ac_cv_have_decl_freeaddrinfo=yes
9189 echo "$as_me: failed program was:" >&5
9190 sed 's/^/| /' conftest.$ac_ext >&5
9192 ac_cv_have_decl_freeaddrinfo=no
9194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9196 echo "$as_me:$LINENO: result: $ac_cv_have_decl_freeaddrinfo" >&5
9197 echo "${ECHO_T}$ac_cv_have_decl_freeaddrinfo" >&6
9198 if test $ac_cv_have_decl_freeaddrinfo = yes; then
9200 cat >>confdefs.h <<_ACEOF
9201 #define HAVE_DECL_FREEADDRINFO 1
9206 cat >>confdefs.h <<_ACEOF
9207 #define HAVE_DECL_FREEADDRINFO 0
9212 echo "$as_me:$LINENO: checking whether gai_strerror is declared" >&5
9213 echo $ECHO_N "checking whether gai_strerror is declared... $ECHO_C" >&6
9214 if test "${ac_cv_have_decl_gai_strerror+set}" = set; then
9215 echo $ECHO_N "(cached) $ECHO_C" >&6
9217 cat >conftest.$ac_ext <<_ACEOF
9220 cat confdefs.h >>conftest.$ac_ext
9221 cat >>conftest.$ac_ext <<_ACEOF
9222 /* end confdefs.h. */
9224 /* sys/types.h is not needed according to POSIX, but the
9225 sys/socket.h in i386-unknown-freebsd4.10 and
9226 powerpc-apple-darwin5.5 required it. */
9227 #include <sys/types.h>
9228 #ifdef HAVE_SYS_SOCKET_H
9229 #include <sys/socket.h>
9234 #ifdef HAVE_WS2TCPIP_H
9235 #include <ws2tcpip.h>
9242 #ifndef gai_strerror
9243 char *p = (char *) gai_strerror;
9250 rm -f conftest.$ac_objext
9251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9252 (eval $ac_compile) 2>conftest.er1
9254 grep -v '^ *+' conftest.er1 >conftest.err
9256 cat conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } &&
9259 { ac_try='test -z "$ac_c_werror_flag"
9260 || test ! -s conftest.err'
9261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; } &&
9266 { ac_try='test -s conftest.$ac_objext'
9267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
9272 ac_cv_have_decl_gai_strerror=yes
9274 echo "$as_me: failed program was:" >&5
9275 sed 's/^/| /' conftest.$ac_ext >&5
9277 ac_cv_have_decl_gai_strerror=no
9279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9281 echo "$as_me:$LINENO: result: $ac_cv_have_decl_gai_strerror" >&5
9282 echo "${ECHO_T}$ac_cv_have_decl_gai_strerror" >&6
9283 if test $ac_cv_have_decl_gai_strerror = yes; then
9285 cat >>confdefs.h <<_ACEOF
9286 #define HAVE_DECL_GAI_STRERROR 1
9291 cat >>confdefs.h <<_ACEOF
9292 #define HAVE_DECL_GAI_STRERROR 0
9297 echo "$as_me:$LINENO: checking whether getnameinfo is declared" >&5
9298 echo $ECHO_N "checking whether getnameinfo is declared... $ECHO_C" >&6
9299 if test "${ac_cv_have_decl_getnameinfo+set}" = set; then
9300 echo $ECHO_N "(cached) $ECHO_C" >&6
9302 cat >conftest.$ac_ext <<_ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h. */
9309 /* sys/types.h is not needed according to POSIX, but the
9310 sys/socket.h in i386-unknown-freebsd4.10 and
9311 powerpc-apple-darwin5.5 required it. */
9312 #include <sys/types.h>
9313 #ifdef HAVE_SYS_SOCKET_H
9314 #include <sys/socket.h>
9319 #ifdef HAVE_WS2TCPIP_H
9320 #include <ws2tcpip.h>
9328 char *p = (char *) getnameinfo;
9335 rm -f conftest.$ac_objext
9336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9337 (eval $ac_compile) 2>conftest.er1
9339 grep -v '^ *+' conftest.er1 >conftest.err
9341 cat conftest.err >&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); } &&
9344 { ac_try='test -z "$ac_c_werror_flag"
9345 || test ! -s conftest.err'
9346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); }; } &&
9351 { ac_try='test -s conftest.$ac_objext'
9352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); }; }; then
9357 ac_cv_have_decl_getnameinfo=yes
9359 echo "$as_me: failed program was:" >&5
9360 sed 's/^/| /' conftest.$ac_ext >&5
9362 ac_cv_have_decl_getnameinfo=no
9364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9366 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getnameinfo" >&5
9367 echo "${ECHO_T}$ac_cv_have_decl_getnameinfo" >&6
9368 if test $ac_cv_have_decl_getnameinfo = yes; then
9370 cat >>confdefs.h <<_ACEOF
9371 #define HAVE_DECL_GETNAMEINFO 1
9376 cat >>confdefs.h <<_ACEOF
9377 #define HAVE_DECL_GETNAMEINFO 0
9384 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
9385 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
9386 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
9387 echo $ECHO_N "(cached) $ECHO_C" >&6
9389 cat >conftest.$ac_ext <<_ACEOF
9392 cat confdefs.h >>conftest.$ac_ext
9393 cat >>conftest.$ac_ext <<_ACEOF
9394 /* end confdefs.h. */
9396 #include <sys/types.h>
9397 #ifdef HAVE_SYS_SOCKET_H
9398 #include <sys/socket.h>
9403 #ifdef HAVE_WS2TCPIP_H
9404 #include <ws2tcpip.h>
9411 if ((struct addrinfo *) 0)
9413 if (sizeof (struct addrinfo))
9419 rm -f conftest.$ac_objext
9420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9421 (eval $ac_compile) 2>conftest.er1
9423 grep -v '^ *+' conftest.er1 >conftest.err
9425 cat conftest.err >&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } &&
9428 { ac_try='test -z "$ac_c_werror_flag"
9429 || test ! -s conftest.err'
9430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); }; } &&
9435 { ac_try='test -s conftest.$ac_objext'
9436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); }; }; then
9441 ac_cv_type_struct_addrinfo=yes
9443 echo "$as_me: failed program was:" >&5
9444 sed 's/^/| /' conftest.$ac_ext >&5
9446 ac_cv_type_struct_addrinfo=no
9448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9450 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
9451 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
9452 if test $ac_cv_type_struct_addrinfo = yes; then
9454 cat >>confdefs.h <<_ACEOF
9455 #define HAVE_STRUCT_ADDRINFO 1
9465 for ac_func in inet_ntop
9467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9468 echo "$as_me:$LINENO: checking for $ac_func" >&5
9469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9470 if eval "test \"\${$as_ac_var+set}\" = set"; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 cat >conftest.$ac_ext <<_ACEOF
9476 cat confdefs.h >>conftest.$ac_ext
9477 cat >>conftest.$ac_ext <<_ACEOF
9478 /* end confdefs.h. */
9479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9481 #define $ac_func innocuous_$ac_func
9483 /* System header to define __stub macros and hopefully few prototypes,
9484 which can conflict with char $ac_func (); below.
9485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9486 <limits.h> exists even on freestanding compilers. */
9489 # include <limits.h>
9491 # include <assert.h>
9496 /* Override any gcc2 internal prototype to avoid an error. */
9501 /* We use char because int might match the return type of a gcc2
9502 builtin and then its argument prototype would still apply. */
9504 /* The GNU C library defines this for functions which it implements
9505 to always fail with ENOSYS. Some functions are actually named
9506 something starting with __ and the normal name is an alias. */
9507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9510 char (*f) () = $ac_func;
9519 return f != $ac_func;
9524 rm -f conftest.$ac_objext conftest$ac_exeext
9525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9526 (eval $ac_link) 2>conftest.er1
9528 grep -v '^ *+' conftest.er1 >conftest.err
9530 cat conftest.err >&5
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); } &&
9533 { ac_try='test -z "$ac_c_werror_flag"
9534 || test ! -s conftest.err'
9535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); }; } &&
9540 { ac_try='test -s conftest$ac_exeext'
9541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); }; }; then
9546 eval "$as_ac_var=yes"
9548 echo "$as_me: failed program was:" >&5
9549 sed 's/^/| /' conftest.$ac_ext >&5
9551 eval "$as_ac_var=no"
9553 rm -f conftest.err conftest.$ac_objext \
9554 conftest$ac_exeext conftest.$ac_ext
9556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9557 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9558 if test `eval echo '${'$as_ac_var'}'` = yes; then
9559 cat >>confdefs.h <<_ACEOF
9560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9564 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
9579 echo "$as_me:$LINENO: checking whether inet_ntop is declared" >&5
9580 echo $ECHO_N "checking whether inet_ntop is declared... $ECHO_C" >&6
9581 if test "${ac_cv_have_decl_inet_ntop+set}" = set; then
9582 echo $ECHO_N "(cached) $ECHO_C" >&6
9584 cat >conftest.$ac_ext <<_ACEOF
9587 cat confdefs.h >>conftest.$ac_ext
9588 cat >>conftest.$ac_ext <<_ACEOF
9589 /* end confdefs.h. */
9590 #include <arpa/inet.h>
9596 char *p = (char *) inet_ntop;
9603 rm -f conftest.$ac_objext
9604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9605 (eval $ac_compile) 2>conftest.er1
9607 grep -v '^ *+' conftest.er1 >conftest.err
9609 cat conftest.err >&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } &&
9612 { ac_try='test -z "$ac_c_werror_flag"
9613 || test ! -s conftest.err'
9614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; } &&
9619 { ac_try='test -s conftest.$ac_objext'
9620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; }; then
9625 ac_cv_have_decl_inet_ntop=yes
9627 echo "$as_me: failed program was:" >&5
9628 sed 's/^/| /' conftest.$ac_ext >&5
9630 ac_cv_have_decl_inet_ntop=no
9632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9634 echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_ntop" >&5
9635 echo "${ECHO_T}$ac_cv_have_decl_inet_ntop" >&6
9636 if test $ac_cv_have_decl_inet_ntop = yes; then
9638 cat >>confdefs.h <<_ACEOF
9639 #define HAVE_DECL_INET_NTOP 1
9644 cat >>confdefs.h <<_ACEOF
9645 #define HAVE_DECL_INET_NTOP 0
9671 if test $ac_cv_header_netinet_in_h = yes; then
9674 NETINET_IN_H='netinet/in.h'
9680 for ac_header in stdint.h
9682 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9684 echo "$as_me:$LINENO: checking for $ac_header" >&5
9685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9690 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9692 # Is the header compilable?
9693 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9695 cat >conftest.$ac_ext <<_ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h. */
9701 $ac_includes_default
9702 #include <$ac_header>
9704 rm -f conftest.$ac_objext
9705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9706 (eval $ac_compile) 2>conftest.er1
9708 grep -v '^ *+' conftest.er1 >conftest.err
9710 cat conftest.err >&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); } &&
9713 { ac_try='test -z "$ac_c_werror_flag"
9714 || test ! -s conftest.err'
9715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); }; } &&
9720 { ac_try='test -s conftest.$ac_objext'
9721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; }; then
9726 ac_header_compiler=yes
9728 echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9731 ac_header_compiler=no
9733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9734 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9735 echo "${ECHO_T}$ac_header_compiler" >&6
9737 # Is the header present?
9738 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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 <$ac_header>
9748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9751 grep -v '^ *+' conftest.er1 >conftest.err
9753 cat conftest.err >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } >/dev/null; then
9756 if test -s conftest.err; then
9757 ac_cpp_err=$ac_c_preproc_warn_flag
9758 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9765 if test -z "$ac_cpp_err"; then
9766 ac_header_preproc=yes
9768 echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9771 ac_header_preproc=no
9773 rm -f conftest.err conftest.$ac_ext
9774 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9775 echo "${ECHO_T}$ac_header_preproc" >&6
9777 # So? What about this header?
9778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9780 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9781 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9783 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9784 ac_header_preproc=yes
9787 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9788 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9789 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9790 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9791 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9792 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9793 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9794 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9797 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9798 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9801 ## ------------------------------------------ ##
9802 ## Report this to the AC_PACKAGE_NAME lists. ##
9803 ## ------------------------------------------ ##
9806 sed "s/^/$as_me: WARNING: /" >&2
9809 echo "$as_me:$LINENO: checking for $ac_header" >&5
9810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9814 eval "$as_ac_Header=\$ac_header_preproc"
9816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9821 cat >>confdefs.h <<_ACEOF
9822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9829 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9830 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9831 if test "${gl_cv_size_max+set}" = set; then
9832 echo $ECHO_N "(cached) $ECHO_C" >&6
9836 cat >conftest.$ac_ext <<_ACEOF
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h. */
9852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9853 $EGREP "Found it" >/dev/null 2>&1; then
9858 if test -z "$gl_cv_size_max"; then
9859 if test "$cross_compiling" = yes; then
9860 # Depending upon the size, compute the lo and hi bounds.
9861 cat >conftest.$ac_ext <<_ACEOF
9864 cat confdefs.h >>conftest.$ac_ext
9865 cat >>conftest.$ac_ext <<_ACEOF
9866 /* end confdefs.h. */
9872 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
9879 rm -f conftest.$ac_objext
9880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9881 (eval $ac_compile) 2>conftest.er1
9883 grep -v '^ *+' conftest.er1 >conftest.err
9885 cat conftest.err >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); } &&
9888 { ac_try='test -z "$ac_c_werror_flag"
9889 || test ! -s conftest.err'
9890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); }; } &&
9895 { ac_try='test -s conftest.$ac_objext'
9896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); }; }; then
9903 cat >conftest.$ac_ext <<_ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h. */
9914 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
9921 rm -f conftest.$ac_objext
9922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9923 (eval $ac_compile) 2>conftest.er1
9925 grep -v '^ *+' conftest.er1 >conftest.err
9927 cat conftest.err >&5
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); } &&
9930 { ac_try='test -z "$ac_c_werror_flag"
9931 || test ! -s conftest.err'
9932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; } &&
9937 { ac_try='test -s conftest.$ac_objext'
9938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); }; }; then
9943 ac_hi=$ac_mid; break
9945 echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9948 ac_lo=`expr $ac_mid + 1`
9949 if test $ac_lo -le $ac_mid; then
9953 ac_mid=`expr 2 '*' $ac_mid + 1`
9955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9958 echo "$as_me: failed program was:" >&5
9959 sed 's/^/| /' conftest.$ac_ext >&5
9961 cat >conftest.$ac_ext <<_ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h. */
9972 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
9979 rm -f conftest.$ac_objext
9980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9981 (eval $ac_compile) 2>conftest.er1
9983 grep -v '^ *+' conftest.er1 >conftest.err
9985 cat conftest.err >&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); } &&
9988 { ac_try='test -z "$ac_c_werror_flag"
9989 || test ! -s conftest.err'
9990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; } &&
9995 { ac_try='test -s conftest.$ac_objext'
9996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; }; then
10003 cat >conftest.$ac_ext <<_ACEOF
10006 cat confdefs.h >>conftest.$ac_ext
10007 cat >>conftest.$ac_ext <<_ACEOF
10008 /* end confdefs.h. */
10009 #include <stddef.h>
10010 #include <limits.h>
10014 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
10021 rm -f conftest.$ac_objext
10022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10023 (eval $ac_compile) 2>conftest.er1
10025 grep -v '^ *+' conftest.er1 >conftest.err
10027 cat conftest.err >&5
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); } &&
10030 { ac_try='test -z "$ac_c_werror_flag"
10031 || test ! -s conftest.err'
10032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033 (eval $ac_try) 2>&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; } &&
10037 { ac_try='test -s conftest.$ac_objext'
10038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10039 (eval $ac_try) 2>&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); }; }; then
10043 ac_lo=$ac_mid; break
10045 echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10048 ac_hi=`expr '(' $ac_mid ')' - 1`
10049 if test $ac_mid -le $ac_hi; then
10053 ac_mid=`expr 2 '*' $ac_mid`
10055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10058 echo "$as_me: failed program was:" >&5
10059 sed 's/^/| /' conftest.$ac_ext >&5
10063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10066 # Binary search between lo and hi bounds.
10067 while test "x$ac_lo" != "x$ac_hi"; do
10068 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10069 cat >conftest.$ac_ext <<_ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h. */
10075 #include <stddef.h>
10076 #include <limits.h>
10080 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
10087 rm -f conftest.$ac_objext
10088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10089 (eval $ac_compile) 2>conftest.er1
10091 grep -v '^ *+' conftest.er1 >conftest.err
10093 cat conftest.err >&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); } &&
10096 { ac_try='test -z "$ac_c_werror_flag"
10097 || test ! -s conftest.err'
10098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099 (eval $ac_try) 2>&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; } &&
10103 { ac_try='test -s conftest.$ac_objext'
10104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105 (eval $ac_try) 2>&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }; then
10111 echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10114 ac_lo=`expr '(' $ac_mid ')' + 1`
10116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10119 ?*) size_t_bits_minus_1=$ac_lo;;
10120 '') size_t_bits_minus_1= ;;
10123 if test "$cross_compiling" = yes; then
10124 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10125 See \`config.log' for more details." >&5
10126 echo "$as_me: error: cannot run test program while cross compiling
10127 See \`config.log' for more details." >&2;}
10128 { (exit 1); exit 1; }; }
10130 cat >conftest.$ac_ext <<_ACEOF
10133 cat confdefs.h >>conftest.$ac_ext
10134 cat >>conftest.$ac_ext <<_ACEOF
10135 /* end confdefs.h. */
10136 #include <stddef.h>
10137 #include <limits.h>
10138 long longval () { return sizeof (size_t) * CHAR_BIT - 1; }
10139 unsigned long ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
10141 #include <stdlib.h>
10146 FILE *f = fopen ("conftest.val", "w");
10149 if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
10151 long i = longval ();
10152 if (i != (sizeof (size_t) * CHAR_BIT - 1))
10154 fprintf (f, "%ld\n", i);
10158 unsigned long i = ulongval ();
10159 if (i != (sizeof (size_t) * CHAR_BIT - 1))
10161 fprintf (f, "%lu\n", i);
10163 exit (ferror (f) || fclose (f) != 0);
10169 rm -f conftest$ac_exeext
10170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10171 (eval $ac_link) 2>&5
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176 (eval $ac_try) 2>&5
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; }; then
10180 size_t_bits_minus_1=`cat conftest.val`
10182 echo "$as_me: program exited with status $ac_status" >&5
10183 echo "$as_me: failed program was:" >&5
10184 sed 's/^/| /' conftest.$ac_ext >&5
10186 ( exit $ac_status )
10187 size_t_bits_minus_1=
10189 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10193 if test "$cross_compiling" = yes; then
10194 # Depending upon the size, compute the lo and hi bounds.
10195 cat >conftest.$ac_ext <<_ACEOF
10198 cat confdefs.h >>conftest.$ac_ext
10199 cat >>conftest.$ac_ext <<_ACEOF
10200 /* end confdefs.h. */
10201 #include <stddef.h>
10205 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10212 rm -f conftest.$ac_objext
10213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10214 (eval $ac_compile) 2>conftest.er1
10216 grep -v '^ *+' conftest.er1 >conftest.err
10218 cat conftest.err >&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } &&
10221 { ac_try='test -z "$ac_c_werror_flag"
10222 || test ! -s conftest.err'
10223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224 (eval $ac_try) 2>&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; } &&
10228 { ac_try='test -s conftest.$ac_objext'
10229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10230 (eval $ac_try) 2>&5
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); }; }; then
10236 cat >conftest.$ac_ext <<_ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h. */
10242 #include <stddef.h>
10246 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10253 rm -f conftest.$ac_objext
10254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10255 (eval $ac_compile) 2>conftest.er1
10257 grep -v '^ *+' conftest.er1 >conftest.err
10259 cat conftest.err >&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); } &&
10262 { ac_try='test -z "$ac_c_werror_flag"
10263 || test ! -s conftest.err'
10264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10265 (eval $ac_try) 2>&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }; } &&
10269 { ac_try='test -s conftest.$ac_objext'
10270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10271 (eval $ac_try) 2>&5
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); }; }; then
10275 ac_hi=$ac_mid; break
10277 echo "$as_me: failed program was:" >&5
10278 sed 's/^/| /' conftest.$ac_ext >&5
10280 ac_lo=`expr $ac_mid + 1`
10281 if test $ac_lo -le $ac_mid; then
10285 ac_mid=`expr 2 '*' $ac_mid + 1`
10287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10290 echo "$as_me: failed program was:" >&5
10291 sed 's/^/| /' conftest.$ac_ext >&5
10293 cat >conftest.$ac_ext <<_ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h. */
10299 #include <stddef.h>
10303 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10310 rm -f conftest.$ac_objext
10311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10312 (eval $ac_compile) 2>conftest.er1
10314 grep -v '^ *+' conftest.er1 >conftest.err
10316 cat conftest.err >&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); } &&
10319 { ac_try='test -z "$ac_c_werror_flag"
10320 || test ! -s conftest.err'
10321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322 (eval $ac_try) 2>&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); }; } &&
10326 { ac_try='test -s conftest.$ac_objext'
10327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328 (eval $ac_try) 2>&5
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); }; }; then
10334 cat >conftest.$ac_ext <<_ACEOF
10337 cat confdefs.h >>conftest.$ac_ext
10338 cat >>conftest.$ac_ext <<_ACEOF
10339 /* end confdefs.h. */
10340 #include <stddef.h>
10344 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10351 rm -f conftest.$ac_objext
10352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10353 (eval $ac_compile) 2>conftest.er1
10355 grep -v '^ *+' conftest.er1 >conftest.err
10357 cat conftest.err >&5
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); } &&
10360 { ac_try='test -z "$ac_c_werror_flag"
10361 || test ! -s conftest.err'
10362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363 (eval $ac_try) 2>&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); }; } &&
10367 { ac_try='test -s conftest.$ac_objext'
10368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10369 (eval $ac_try) 2>&5
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); }; }; then
10373 ac_lo=$ac_mid; break
10375 echo "$as_me: failed program was:" >&5
10376 sed 's/^/| /' conftest.$ac_ext >&5
10378 ac_hi=`expr '(' $ac_mid ')' - 1`
10379 if test $ac_mid -le $ac_hi; then
10383 ac_mid=`expr 2 '*' $ac_mid`
10385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10388 echo "$as_me: failed program was:" >&5
10389 sed 's/^/| /' conftest.$ac_ext >&5
10393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10396 # Binary search between lo and hi bounds.
10397 while test "x$ac_lo" != "x$ac_hi"; do
10398 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10399 cat >conftest.$ac_ext <<_ACEOF
10402 cat confdefs.h >>conftest.$ac_ext
10403 cat >>conftest.$ac_ext <<_ACEOF
10404 /* end confdefs.h. */
10405 #include <stddef.h>
10409 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10416 rm -f conftest.$ac_objext
10417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10418 (eval $ac_compile) 2>conftest.er1
10420 grep -v '^ *+' conftest.er1 >conftest.err
10422 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } &&
10425 { ac_try='test -z "$ac_c_werror_flag"
10426 || test ! -s conftest.err'
10427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428 (eval $ac_try) 2>&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); }; } &&
10432 { ac_try='test -s conftest.$ac_objext'
10433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434 (eval $ac_try) 2>&5
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); }; }; then
10440 echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10443 ac_lo=`expr '(' $ac_mid ')' + 1`
10445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10448 ?*) fits_in_uint=$ac_lo;;
10449 '') fits_in_uint= ;;
10452 if test "$cross_compiling" = yes; then
10453 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10454 See \`config.log' for more details." >&5
10455 echo "$as_me: error: cannot run test program while cross compiling
10456 See \`config.log' for more details." >&2;}
10457 { (exit 1); exit 1; }; }
10459 cat >conftest.$ac_ext <<_ACEOF
10462 cat confdefs.h >>conftest.$ac_ext
10463 cat >>conftest.$ac_ext <<_ACEOF
10464 /* end confdefs.h. */
10465 #include <stddef.h>
10466 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10467 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10469 #include <stdlib.h>
10474 FILE *f = fopen ("conftest.val", "w");
10477 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10479 long i = longval ();
10480 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10482 fprintf (f, "%ld\n", i);
10486 unsigned long i = ulongval ();
10487 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10489 fprintf (f, "%lu\n", i);
10491 exit (ferror (f) || fclose (f) != 0);
10497 rm -f conftest$ac_exeext
10498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10499 (eval $ac_link) 2>&5
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10504 (eval $ac_try) 2>&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); }; }; then
10508 fits_in_uint=`cat conftest.val`
10510 echo "$as_me: program exited with status $ac_status" >&5
10511 echo "$as_me: failed program was:" >&5
10512 sed 's/^/| /' conftest.$ac_ext >&5
10514 ( exit $ac_status )
10517 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10521 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10522 if test $fits_in_uint = 1; then
10523 cat >conftest.$ac_ext <<_ACEOF
10526 cat confdefs.h >>conftest.$ac_ext
10527 cat >>conftest.$ac_ext <<_ACEOF
10528 /* end confdefs.h. */
10529 #include <stddef.h>
10531 extern unsigned long foo;
10541 rm -f conftest.$ac_objext
10542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10543 (eval $ac_compile) 2>conftest.er1
10545 grep -v '^ *+' conftest.er1 >conftest.err
10547 cat conftest.err >&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } &&
10550 { ac_try='test -z "$ac_c_werror_flag"
10551 || test ! -s conftest.err'
10552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553 (eval $ac_try) 2>&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; } &&
10557 { ac_try='test -s conftest.$ac_objext'
10558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559 (eval $ac_try) 2>&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; }; then
10565 echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10571 if test $fits_in_uint = 1; then
10572 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10574 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10577 gl_cv_size_max='((size_t)~(size_t)0)'
10583 echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
10584 echo "${ECHO_T}$gl_cv_size_max" >&6
10585 if test "$gl_cv_size_max" != yes; then
10587 cat >>confdefs.h <<_ACEOF
10588 #define SIZE_MAX $gl_cv_size_max
10595 for ac_func in snprintf
10597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10598 echo "$as_me:$LINENO: checking for $ac_func" >&5
10599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10600 if eval "test \"\${$as_ac_var+set}\" = set"; then
10601 echo $ECHO_N "(cached) $ECHO_C" >&6
10603 cat >conftest.$ac_ext <<_ACEOF
10606 cat confdefs.h >>conftest.$ac_ext
10607 cat >>conftest.$ac_ext <<_ACEOF
10608 /* end confdefs.h. */
10609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10611 #define $ac_func innocuous_$ac_func
10613 /* System header to define __stub macros and hopefully few prototypes,
10614 which can conflict with char $ac_func (); below.
10615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10616 <limits.h> exists even on freestanding compilers. */
10619 # include <limits.h>
10621 # include <assert.h>
10626 /* Override any gcc2 internal prototype to avoid an error. */
10631 /* We use char because int might match the return type of a gcc2
10632 builtin and then its argument prototype would still apply. */
10634 /* The GNU C library defines this for functions which it implements
10635 to always fail with ENOSYS. Some functions are actually named
10636 something starting with __ and the normal name is an alias. */
10637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10640 char (*f) () = $ac_func;
10649 return f != $ac_func;
10654 rm -f conftest.$ac_objext conftest$ac_exeext
10655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10656 (eval $ac_link) 2>conftest.er1
10658 grep -v '^ *+' conftest.er1 >conftest.err
10660 cat conftest.err >&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } &&
10663 { ac_try='test -z "$ac_c_werror_flag"
10664 || test ! -s conftest.err'
10665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666 (eval $ac_try) 2>&5
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); }; } &&
10670 { ac_try='test -s conftest$ac_exeext'
10671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672 (eval $ac_try) 2>&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); }; }; then
10676 eval "$as_ac_var=yes"
10678 echo "$as_me: failed program was:" >&5
10679 sed 's/^/| /' conftest.$ac_ext >&5
10681 eval "$as_ac_var=no"
10683 rm -f conftest.err conftest.$ac_objext \
10684 conftest$ac_exeext conftest.$ac_ext
10686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10688 if test `eval echo '${'$as_ac_var'}'` = yes; then
10689 cat >>confdefs.h <<_ACEOF
10690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10694 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
10707 echo "$as_me:$LINENO: checking for socklen_t" >&5
10708 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10709 if test "${ac_cv_type_socklen_t+set}" = set; then
10710 echo $ECHO_N "(cached) $ECHO_C" >&6
10712 cat >conftest.$ac_ext <<_ACEOF
10715 cat confdefs.h >>conftest.$ac_ext
10716 cat >>conftest.$ac_ext <<_ACEOF
10717 /* end confdefs.h. */
10718 #include <sys/types.h>
10719 #if HAVE_SYS_SOCKET_H
10720 # include <sys/socket.h>
10721 #elif HAVE_WS2TCPIP_H
10722 # include <ws2tcpip.h>
10728 if ((socklen_t *) 0)
10730 if (sizeof (socklen_t))
10736 rm -f conftest.$ac_objext
10737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10738 (eval $ac_compile) 2>conftest.er1
10740 grep -v '^ *+' conftest.er1 >conftest.err
10742 cat conftest.err >&5
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); } &&
10745 { ac_try='test -z "$ac_c_werror_flag"
10746 || test ! -s conftest.err'
10747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10748 (eval $ac_try) 2>&5
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); }; } &&
10752 { ac_try='test -s conftest.$ac_objext'
10753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754 (eval $ac_try) 2>&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); }; }; then
10758 ac_cv_type_socklen_t=yes
10760 echo "$as_me: failed program was:" >&5
10761 sed 's/^/| /' conftest.$ac_ext >&5
10763 ac_cv_type_socklen_t=no
10765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10767 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
10768 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
10769 if test $ac_cv_type_socklen_t = yes; then
10772 echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
10773 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
10774 if test "${gl_cv_gl_cv_socklen_t_equiv+set}" = set; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10777 # Systems have either "struct sockaddr *" or
10778 # "void *" as the second argument to getpeername
10779 gl_cv_socklen_t_equiv=
10780 for arg2 in "struct sockaddr" void; do
10781 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
10782 cat >conftest.$ac_ext <<_ACEOF
10785 cat confdefs.h >>conftest.$ac_ext
10786 cat >>conftest.$ac_ext <<_ACEOF
10787 /* end confdefs.h. */
10788 #include <sys/types.h>
10789 #include <sys/socket.h>
10791 int getpeername (int, $arg2 *, $t *);
10796 getpeername (0, 0, &len);
10801 rm -f conftest.$ac_objext
10802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10803 (eval $ac_compile) 2>conftest.er1
10805 grep -v '^ *+' conftest.er1 >conftest.err
10807 cat conftest.err >&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); } &&
10810 { ac_try='test -z "$ac_c_werror_flag"
10811 || test ! -s conftest.err'
10812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813 (eval $ac_try) 2>&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; } &&
10817 { ac_try='test -s conftest.$ac_objext'
10818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10819 (eval $ac_try) 2>&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); }; }; then
10823 gl_cv_socklen_t_equiv="$t"
10825 echo "$as_me: failed program was:" >&5
10826 sed 's/^/| /' conftest.$ac_ext >&5
10829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10830 test "$gl_cv_socklen_t_equiv" != "" && break
10832 test "$gl_cv_socklen_t_equiv" != "" && break
10837 if test "$gl_cv_socklen_t_equiv" = ""; then
10838 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
10839 echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
10840 { (exit 1); exit 1; }; }
10842 echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
10843 echo "${ECHO_T}$gl_cv_socklen_t_equiv" >&6
10845 cat >>confdefs.h <<_ACEOF
10846 #define socklen_t $gl_cv_socklen_t_equiv
10854 # Define two additional variables used in the Makefile substitution.
10856 if test "$ac_cv_header_stdbool_h" = yes; then
10859 STDBOOL_H='stdbool.h'
10863 if test "$ac_cv_type__Bool" = yes; then
10873 for ac_func in strdup
10875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10876 echo "$as_me:$LINENO: checking for $ac_func" >&5
10877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10878 if eval "test \"\${$as_ac_var+set}\" = set"; then
10879 echo $ECHO_N "(cached) $ECHO_C" >&6
10881 cat >conftest.$ac_ext <<_ACEOF
10884 cat confdefs.h >>conftest.$ac_ext
10885 cat >>conftest.$ac_ext <<_ACEOF
10886 /* end confdefs.h. */
10887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10889 #define $ac_func innocuous_$ac_func
10891 /* System header to define __stub macros and hopefully few prototypes,
10892 which can conflict with char $ac_func (); below.
10893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10894 <limits.h> exists even on freestanding compilers. */
10897 # include <limits.h>
10899 # include <assert.h>
10904 /* Override any gcc2 internal prototype to avoid an error. */
10909 /* We use char because int might match the return type of a gcc2
10910 builtin and then its argument prototype would still apply. */
10912 /* The GNU C library defines this for functions which it implements
10913 to always fail with ENOSYS. Some functions are actually named
10914 something starting with __ and the normal name is an alias. */
10915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10918 char (*f) () = $ac_func;
10927 return f != $ac_func;
10932 rm -f conftest.$ac_objext conftest$ac_exeext
10933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10934 (eval $ac_link) 2>conftest.er1
10936 grep -v '^ *+' conftest.er1 >conftest.err
10938 cat conftest.err >&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } &&
10941 { ac_try='test -z "$ac_c_werror_flag"
10942 || test ! -s conftest.err'
10943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10944 (eval $ac_try) 2>&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); }; } &&
10948 { ac_try='test -s conftest$ac_exeext'
10949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950 (eval $ac_try) 2>&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; }; then
10954 eval "$as_ac_var=yes"
10956 echo "$as_me: failed program was:" >&5
10957 sed 's/^/| /' conftest.$ac_ext >&5
10959 eval "$as_ac_var=no"
10961 rm -f conftest.err conftest.$ac_objext \
10962 conftest$ac_exeext conftest.$ac_ext
10964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10966 if test `eval echo '${'$as_ac_var'}'` = yes; then
10967 cat >>confdefs.h <<_ACEOF
10968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10972 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
10983 if test $ac_cv_have_decl_strdup = no; then
10999 if test $ac_cv_header_sys_socket_h = yes; then
11004 for ac_header in winsock2.h ws2tcpip.h
11006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11008 echo "$as_me:$LINENO: checking for $ac_header" >&5
11009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11011 echo $ECHO_N "(cached) $ECHO_C" >&6
11013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11016 # Is the header compilable?
11017 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11019 cat >conftest.$ac_ext <<_ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11025 $ac_includes_default
11026 #include <$ac_header>
11028 rm -f conftest.$ac_objext
11029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11030 (eval $ac_compile) 2>conftest.er1
11032 grep -v '^ *+' conftest.er1 >conftest.err
11034 cat conftest.err >&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } &&
11037 { ac_try='test -z "$ac_c_werror_flag"
11038 || test ! -s conftest.err'
11039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11040 (eval $ac_try) 2>&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; } &&
11044 { ac_try='test -s conftest.$ac_objext'
11045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046 (eval $ac_try) 2>&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); }; }; then
11050 ac_header_compiler=yes
11052 echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.$ac_ext >&5
11055 ac_header_compiler=no
11057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11059 echo "${ECHO_T}$ac_header_compiler" >&6
11061 # Is the header present?
11062 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11063 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11064 cat >conftest.$ac_ext <<_ACEOF
11067 cat confdefs.h >>conftest.$ac_ext
11068 cat >>conftest.$ac_ext <<_ACEOF
11069 /* end confdefs.h. */
11070 #include <$ac_header>
11072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11075 grep -v '^ *+' conftest.er1 >conftest.err
11077 cat conftest.err >&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); } >/dev/null; then
11080 if test -s conftest.err; then
11081 ac_cpp_err=$ac_c_preproc_warn_flag
11082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11089 if test -z "$ac_cpp_err"; then
11090 ac_header_preproc=yes
11092 echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.$ac_ext >&5
11095 ac_header_preproc=no
11097 rm -f conftest.err conftest.$ac_ext
11098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11099 echo "${ECHO_T}$ac_header_preproc" >&6
11101 # So? What about this header?
11102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11104 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11105 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11107 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11108 ac_header_preproc=yes
11111 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11112 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11113 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11114 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11115 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11116 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11117 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11118 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11120 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11121 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11122 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11125 ## ------------------------------------------ ##
11126 ## Report this to the AC_PACKAGE_NAME lists. ##
11127 ## ------------------------------------------ ##
11130 sed "s/^/$as_me: WARNING: /" >&2
11133 echo "$as_me:$LINENO: checking for $ac_header" >&5
11134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11136 echo $ECHO_N "(cached) $ECHO_C" >&6
11138 eval "$as_ac_Header=\$ac_header_preproc"
11140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11145 cat >>confdefs.h <<_ACEOF
11146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11153 SYS_SOCKET_H='sys/socket.h'
11157 MKDIR_P='$(mkdir_p)'
11162 for ac_func in vasnprintf
11164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11165 echo "$as_me:$LINENO: checking for $ac_func" >&5
11166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11167 if eval "test \"\${$as_ac_var+set}\" = set"; then
11168 echo $ECHO_N "(cached) $ECHO_C" >&6
11170 cat >conftest.$ac_ext <<_ACEOF
11173 cat confdefs.h >>conftest.$ac_ext
11174 cat >>conftest.$ac_ext <<_ACEOF
11175 /* end confdefs.h. */
11176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11178 #define $ac_func innocuous_$ac_func
11180 /* System header to define __stub macros and hopefully few prototypes,
11181 which can conflict with char $ac_func (); below.
11182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11183 <limits.h> exists even on freestanding compilers. */
11186 # include <limits.h>
11188 # include <assert.h>
11193 /* Override any gcc2 internal prototype to avoid an error. */
11198 /* We use char because int might match the return type of a gcc2
11199 builtin and then its argument prototype would still apply. */
11201 /* The GNU C library defines this for functions which it implements
11202 to always fail with ENOSYS. Some functions are actually named
11203 something starting with __ and the normal name is an alias. */
11204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11207 char (*f) () = $ac_func;
11216 return f != $ac_func;
11221 rm -f conftest.$ac_objext conftest$ac_exeext
11222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11223 (eval $ac_link) 2>conftest.er1
11225 grep -v '^ *+' conftest.er1 >conftest.err
11227 cat conftest.err >&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); } &&
11230 { ac_try='test -z "$ac_c_werror_flag"
11231 || test ! -s conftest.err'
11232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233 (eval $ac_try) 2>&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; } &&
11237 { ac_try='test -s conftest$ac_exeext'
11238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }; }; then
11243 eval "$as_ac_var=yes"
11245 echo "$as_me: failed program was:" >&5
11246 sed 's/^/| /' conftest.$ac_ext >&5
11248 eval "$as_ac_var=no"
11250 rm -f conftest.err conftest.$ac_objext \
11251 conftest$ac_exeext conftest.$ac_ext
11253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11254 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11255 if test `eval echo '${'$as_ac_var'}'` = yes; then
11256 cat >>confdefs.h <<_ACEOF
11257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11261 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
11265 if test $ac_cv_func_vasnprintf = no; then
11266 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
11267 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
11268 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
11281 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11282 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
11283 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11284 echo $ECHO_N "(cached) $ECHO_C" >&6
11286 cat >conftest.$ac_ext <<_ACEOF
11289 cat confdefs.h >>conftest.$ac_ext
11290 cat >>conftest.$ac_ext <<_ACEOF
11291 /* end confdefs.h. */
11292 $ac_includes_default
11296 if ((ptrdiff_t *) 0)
11298 if (sizeof (ptrdiff_t))
11304 rm -f conftest.$ac_objext
11305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11306 (eval $ac_compile) 2>conftest.er1
11308 grep -v '^ *+' conftest.er1 >conftest.err
11310 cat conftest.err >&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); } &&
11313 { ac_try='test -z "$ac_c_werror_flag"
11314 || test ! -s conftest.err'
11315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11316 (eval $ac_try) 2>&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); }; } &&
11320 { ac_try='test -s conftest.$ac_objext'
11321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11322 (eval $ac_try) 2>&5
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); }; }; then
11326 ac_cv_type_ptrdiff_t=yes
11328 echo "$as_me: failed program was:" >&5
11329 sed 's/^/| /' conftest.$ac_ext >&5
11331 ac_cv_type_ptrdiff_t=no
11333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11335 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11336 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
11337 if test $ac_cv_type_ptrdiff_t = yes; then
11339 cat >>confdefs.h <<_ACEOF
11340 #define HAVE_PTRDIFF_T 1
11356 for ac_func in snprintf wcslen
11358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11359 echo "$as_me:$LINENO: checking for $ac_func" >&5
11360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11361 if eval "test \"\${$as_ac_var+set}\" = set"; then
11362 echo $ECHO_N "(cached) $ECHO_C" >&6
11364 cat >conftest.$ac_ext <<_ACEOF
11367 cat confdefs.h >>conftest.$ac_ext
11368 cat >>conftest.$ac_ext <<_ACEOF
11369 /* end confdefs.h. */
11370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11372 #define $ac_func innocuous_$ac_func
11374 /* System header to define __stub macros and hopefully few prototypes,
11375 which can conflict with char $ac_func (); below.
11376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11377 <limits.h> exists even on freestanding compilers. */
11380 # include <limits.h>
11382 # include <assert.h>
11387 /* Override any gcc2 internal prototype to avoid an error. */
11392 /* We use char because int might match the return type of a gcc2
11393 builtin and then its argument prototype would still apply. */
11395 /* The GNU C library defines this for functions which it implements
11396 to always fail with ENOSYS. Some functions are actually named
11397 something starting with __ and the normal name is an alias. */
11398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11401 char (*f) () = $ac_func;
11410 return f != $ac_func;
11415 rm -f conftest.$ac_objext conftest$ac_exeext
11416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11417 (eval $ac_link) 2>conftest.er1
11419 grep -v '^ *+' conftest.er1 >conftest.err
11421 cat conftest.err >&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); } &&
11424 { ac_try='test -z "$ac_c_werror_flag"
11425 || test ! -s conftest.err'
11426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11427 (eval $ac_try) 2>&5
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); }; } &&
11431 { ac_try='test -s conftest$ac_exeext'
11432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11433 (eval $ac_try) 2>&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); }; }; then
11437 eval "$as_ac_var=yes"
11439 echo "$as_me: failed program was:" >&5
11440 sed 's/^/| /' conftest.$ac_ext >&5
11442 eval "$as_ac_var=no"
11444 rm -f conftest.err conftest.$ac_objext \
11445 conftest$ac_exeext conftest.$ac_ext
11447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11449 if test `eval echo '${'$as_ac_var'}'` = yes; then
11450 cat >>confdefs.h <<_ACEOF
11451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11466 if test -n "$GCC"; then
11467 echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
11468 echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6
11469 if test "${gl_cv_cc_visibility+set}" = set; then
11470 echo $ECHO_N "(cached) $ECHO_C" >&6
11473 gl_save_CFLAGS="$CFLAGS"
11474 CFLAGS="$CFLAGS -fvisibility=hidden"
11475 cat >conftest.$ac_ext <<_ACEOF
11478 cat confdefs.h >>conftest.$ac_ext
11479 cat >>conftest.$ac_ext <<_ACEOF
11480 /* end confdefs.h. */
11481 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
11482 extern __attribute__((__visibility__("default"))) int exportedvar;
11483 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
11484 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
11493 rm -f conftest.$ac_objext
11494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11495 (eval $ac_compile) 2>conftest.er1
11497 grep -v '^ *+' conftest.er1 >conftest.err
11499 cat conftest.err >&5
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); } &&
11502 { ac_try='test -z "$ac_c_werror_flag"
11503 || test ! -s conftest.err'
11504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505 (eval $ac_try) 2>&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; } &&
11509 { ac_try='test -s conftest.$ac_objext'
11510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11511 (eval $ac_try) 2>&5
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); }; }; then
11515 gl_cv_cc_visibility=yes
11517 echo "$as_me: failed program was:" >&5
11518 sed 's/^/| /' conftest.$ac_ext >&5
11520 gl_cv_cc_visibility=no
11522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11523 CFLAGS="$gl_save_CFLAGS"
11526 echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
11527 echo "${ECHO_T}$gl_cv_cc_visibility" >&6
11528 if test $gl_cv_cc_visibility = yes; then
11529 CFLAG_VISIBILITY="-fvisibility=hidden"
11536 cat >>confdefs.h <<_ACEOF
11537 #define HAVE_VISIBILITY $HAVE_VISIBILITY
11545 for ac_header in stdint.h
11547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11549 echo "$as_me:$LINENO: checking for $ac_header" >&5
11550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11552 echo $ECHO_N "(cached) $ECHO_C" >&6
11554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11557 # Is the header compilable?
11558 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11560 cat >conftest.$ac_ext <<_ACEOF
11563 cat confdefs.h >>conftest.$ac_ext
11564 cat >>conftest.$ac_ext <<_ACEOF
11565 /* end confdefs.h. */
11566 $ac_includes_default
11567 #include <$ac_header>
11569 rm -f conftest.$ac_objext
11570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11571 (eval $ac_compile) 2>conftest.er1
11573 grep -v '^ *+' conftest.er1 >conftest.err
11575 cat conftest.err >&5
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); } &&
11578 { ac_try='test -z "$ac_c_werror_flag"
11579 || test ! -s conftest.err'
11580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11581 (eval $ac_try) 2>&5
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); }; } &&
11585 { ac_try='test -s conftest.$ac_objext'
11586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11587 (eval $ac_try) 2>&5
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); }; }; then
11591 ac_header_compiler=yes
11593 echo "$as_me: failed program was:" >&5
11594 sed 's/^/| /' conftest.$ac_ext >&5
11596 ac_header_compiler=no
11598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11599 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11600 echo "${ECHO_T}$ac_header_compiler" >&6
11602 # Is the header present?
11603 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11605 cat >conftest.$ac_ext <<_ACEOF
11608 cat confdefs.h >>conftest.$ac_ext
11609 cat >>conftest.$ac_ext <<_ACEOF
11610 /* end confdefs.h. */
11611 #include <$ac_header>
11613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11616 grep -v '^ *+' conftest.er1 >conftest.err
11618 cat conftest.err >&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); } >/dev/null; then
11621 if test -s conftest.err; then
11622 ac_cpp_err=$ac_c_preproc_warn_flag
11623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11630 if test -z "$ac_cpp_err"; then
11631 ac_header_preproc=yes
11633 echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.$ac_ext >&5
11636 ac_header_preproc=no
11638 rm -f conftest.err conftest.$ac_ext
11639 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11640 echo "${ECHO_T}$ac_header_preproc" >&6
11642 # So? What about this header?
11643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11649 ac_header_preproc=yes
11652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11659 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11666 ## ------------------------------------------ ##
11667 ## Report this to the AC_PACKAGE_NAME lists. ##
11668 ## ------------------------------------------ ##
11671 sed "s/^/$as_me: WARNING: /" >&2
11674 echo "$as_me:$LINENO: checking for $ac_header" >&5
11675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11679 eval "$as_ac_Header=\$ac_header_preproc"
11681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11686 cat >>confdefs.h <<_ACEOF
11687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11702 # Check whether --enable-largefile or --disable-largefile was given.
11703 if test "${enable_largefile+set}" = set; then
11704 enableval="$enable_largefile"
11707 if test "$enable_largefile" != no; then
11709 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
11710 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
11711 if test "${ac_cv_sys_largefile_CC+set}" = set; then
11712 echo $ECHO_N "(cached) $ECHO_C" >&6
11714 ac_cv_sys_largefile_CC=no
11715 if test "$GCC" != yes; then
11718 # IRIX 6.2 and later do not support large files by default,
11719 # so use the C compiler's -n32 option if that helps.
11720 cat >conftest.$ac_ext <<_ACEOF
11723 cat confdefs.h >>conftest.$ac_ext
11724 cat >>conftest.$ac_ext <<_ACEOF
11725 /* end confdefs.h. */
11726 #include <sys/types.h>
11727 /* Check that off_t can represent 2**63 - 1 correctly.
11728 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11729 since some C++ compilers masquerading as C compilers
11730 incorrectly reject 9223372036854775807. */
11731 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11732 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11733 && LARGE_OFF_T % 2147483647 == 1)
11743 rm -f conftest.$ac_objext
11744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11745 (eval $ac_compile) 2>conftest.er1
11747 grep -v '^ *+' conftest.er1 >conftest.err
11749 cat conftest.err >&5
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); } &&
11752 { ac_try='test -z "$ac_c_werror_flag"
11753 || test ! -s conftest.err'
11754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11755 (eval $ac_try) 2>&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); }; } &&
11759 { ac_try='test -s conftest.$ac_objext'
11760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11761 (eval $ac_try) 2>&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); }; }; then
11767 echo "$as_me: failed program was:" >&5
11768 sed 's/^/| /' conftest.$ac_ext >&5
11771 rm -f conftest.err conftest.$ac_objext
11773 rm -f conftest.$ac_objext
11774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11775 (eval $ac_compile) 2>conftest.er1
11777 grep -v '^ *+' conftest.er1 >conftest.err
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } &&
11782 { ac_try='test -z "$ac_c_werror_flag"
11783 || test ! -s conftest.err'
11784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785 (eval $ac_try) 2>&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; } &&
11789 { ac_try='test -s conftest.$ac_objext'
11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; }; then
11795 ac_cv_sys_largefile_CC=' -n32'; break
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11801 rm -f conftest.err conftest.$ac_objext
11805 rm -f conftest.$ac_ext
11808 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
11809 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
11810 if test "$ac_cv_sys_largefile_CC" != no; then
11811 CC=$CC$ac_cv_sys_largefile_CC
11814 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11815 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
11816 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6
11820 ac_cv_sys_file_offset_bits=no
11821 cat >conftest.$ac_ext <<_ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h. */
11827 #include <sys/types.h>
11828 /* Check that off_t can represent 2**63 - 1 correctly.
11829 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11830 since some C++ compilers masquerading as C compilers
11831 incorrectly reject 9223372036854775807. */
11832 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11833 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11834 && LARGE_OFF_T % 2147483647 == 1)
11844 rm -f conftest.$ac_objext
11845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11846 (eval $ac_compile) 2>conftest.er1
11848 grep -v '^ *+' conftest.er1 >conftest.err
11850 cat conftest.err >&5
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); } &&
11853 { ac_try='test -z "$ac_c_werror_flag"
11854 || test ! -s conftest.err'
11855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11856 (eval $ac_try) 2>&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; } &&
11860 { ac_try='test -s conftest.$ac_objext'
11861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11862 (eval $ac_try) 2>&5
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); }; }; then
11868 echo "$as_me: failed program was:" >&5
11869 sed 's/^/| /' conftest.$ac_ext >&5
11872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11873 cat >conftest.$ac_ext <<_ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h. */
11879 #define _FILE_OFFSET_BITS 64
11880 #include <sys/types.h>
11881 /* Check that off_t can represent 2**63 - 1 correctly.
11882 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11883 since some C++ compilers masquerading as C compilers
11884 incorrectly reject 9223372036854775807. */
11885 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11886 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11887 && LARGE_OFF_T % 2147483647 == 1)
11897 rm -f conftest.$ac_objext
11898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11899 (eval $ac_compile) 2>conftest.er1
11901 grep -v '^ *+' conftest.er1 >conftest.err
11903 cat conftest.err >&5
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); } &&
11906 { ac_try='test -z "$ac_c_werror_flag"
11907 || test ! -s conftest.err'
11908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11909 (eval $ac_try) 2>&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); }; } &&
11913 { ac_try='test -s conftest.$ac_objext'
11914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11915 (eval $ac_try) 2>&5
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); }; }; then
11919 ac_cv_sys_file_offset_bits=64; break
11921 echo "$as_me: failed program was:" >&5
11922 sed 's/^/| /' conftest.$ac_ext >&5
11925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11929 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
11930 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
11931 if test "$ac_cv_sys_file_offset_bits" != no; then
11933 cat >>confdefs.h <<_ACEOF
11934 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11939 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
11940 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
11941 if test "${ac_cv_sys_large_files+set}" = set; then
11942 echo $ECHO_N "(cached) $ECHO_C" >&6
11945 ac_cv_sys_large_files=no
11946 cat >conftest.$ac_ext <<_ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h. */
11952 #include <sys/types.h>
11953 /* Check that off_t can represent 2**63 - 1 correctly.
11954 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11955 since some C++ compilers masquerading as C compilers
11956 incorrectly reject 9223372036854775807. */
11957 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11958 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11959 && LARGE_OFF_T % 2147483647 == 1)
11969 rm -f conftest.$ac_objext
11970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11971 (eval $ac_compile) 2>conftest.er1
11973 grep -v '^ *+' conftest.er1 >conftest.err
11975 cat conftest.err >&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); } &&
11978 { ac_try='test -z "$ac_c_werror_flag"
11979 || test ! -s conftest.err'
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; } &&
11985 { ac_try='test -s conftest.$ac_objext'
11986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11987 (eval $ac_try) 2>&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); }; }; then
11993 echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11998 cat >conftest.$ac_ext <<_ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h. */
12004 #define _LARGE_FILES 1
12005 #include <sys/types.h>
12006 /* Check that off_t can represent 2**63 - 1 correctly.
12007 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12008 since some C++ compilers masquerading as C compilers
12009 incorrectly reject 9223372036854775807. */
12010 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12011 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12012 && LARGE_OFF_T % 2147483647 == 1)
12022 rm -f conftest.$ac_objext
12023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12024 (eval $ac_compile) 2>conftest.er1
12026 grep -v '^ *+' conftest.er1 >conftest.err
12028 cat conftest.err >&5
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); } &&
12031 { ac_try='test -z "$ac_c_werror_flag"
12032 || test ! -s conftest.err'
12033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12034 (eval $ac_try) 2>&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); }; } &&
12038 { ac_try='test -s conftest.$ac_objext'
12039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040 (eval $ac_try) 2>&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; }; then
12044 ac_cv_sys_large_files=1; break
12046 echo "$as_me: failed program was:" >&5
12047 sed 's/^/| /' conftest.$ac_ext >&5
12050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12054 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
12055 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
12056 if test "$ac_cv_sys_large_files" != no; then
12058 cat >>confdefs.h <<_ACEOF
12059 #define _LARGE_FILES $ac_cv_sys_large_files
12067 for ac_prog in grep
12069 # Extract the first word of "$ac_prog", so it can be a program name with args.
12070 set dummy $ac_prog; ac_word=$2
12071 echo "$as_me:$LINENO: checking for $ac_word" >&5
12072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12073 if test "${ac_cv_path_GREP+set}" = set; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
12078 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
12081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082 for as_dir in $LOCSYSPATH
12085 test -z "$as_dir" && as_dir=.
12086 for ac_exec_ext in '' $ac_executable_extensions; do
12087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12088 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
12089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12098 GREP=$ac_cv_path_GREP
12100 if test -n "$GREP"; then
12101 echo "$as_me:$LINENO: result: $GREP" >&5
12102 echo "${ECHO_T}$GREP" >&6
12104 echo "$as_me:$LINENO: result: no" >&5
12105 echo "${ECHO_T}no" >&6
12108 test -n "$GREP" && break
12111 if test -z "$GREP"; then
12115 cat >>confdefs.h <<_ACEOF
12116 #define GREP "$GREP"
12119 for ac_prog in egrep
12121 # Extract the first word of "$ac_prog", so it can be a program name with args.
12122 set dummy $ac_prog; ac_word=$2
12123 echo "$as_me:$LINENO: checking for $ac_word" >&5
12124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12125 if test "${ac_cv_path_EGREP+set}" = set; then
12126 echo $ECHO_N "(cached) $ECHO_C" >&6
12130 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
12133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12134 for as_dir in $LOCSYSPATH
12137 test -z "$as_dir" && as_dir=.
12138 for ac_exec_ext in '' $ac_executable_extensions; do
12139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12140 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
12141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12150 EGREP=$ac_cv_path_EGREP
12152 if test -n "$EGREP"; then
12153 echo "$as_me:$LINENO: result: $EGREP" >&5
12154 echo "${ECHO_T}$EGREP" >&6
12156 echo "$as_me:$LINENO: result: no" >&5
12157 echo "${ECHO_T}no" >&6
12160 test -n "$EGREP" && break
12164 for ac_prog in lint
12166 # Extract the first word of "$ac_prog", so it can be a program name with args.
12167 set dummy $ac_prog; ac_word=$2
12168 echo "$as_me:$LINENO: checking for $ac_word" >&5
12169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12170 if test "${ac_cv_path_AMLINT+set}" = set; then
12171 echo $ECHO_N "(cached) $ECHO_C" >&6
12175 ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
12178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12179 as_dummy="/opt/SUNWspro/bin:$SYSLOCPATH"
12180 for as_dir in $as_dummy
12183 test -z "$as_dir" && as_dir=.
12184 for ac_exec_ext in '' $ac_executable_extensions; do
12185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12186 ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
12187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12196 AMLINT=$ac_cv_path_AMLINT
12198 if test -n "$AMLINT"; then
12199 echo "$as_me:$LINENO: result: $AMLINT" >&5
12200 echo "${ECHO_T}$AMLINT" >&6
12202 echo "$as_me:$LINENO: result: no" >&5
12203 echo "${ECHO_T}no" >&6
12206 test -n "$AMLINT" && break
12209 if test ! -z "$AMLINT"; then
12210 $AMLINT -flags | $GREP -- '-errfmt=' 2>&1 > /dev/null
12211 if test $? -eq 0; then
12212 AMLINTFLAGS="-n -s -u -m -x"
12213 AMLINTFLAGS="$AMLINTFLAGS -errchk=%all"
12214 AMLINTFLAGS="$AMLINTFLAGS -errfmt=macro"
12215 AMLINTFLAGS="$AMLINTFLAGS -errhdr=no%/usr/include"
12216 AMLINTFLAGS="$AMLINTFLAGS -errhdr=%user"
12217 AMLINTFLAGS="$AMLINTFLAGS -errsecurity=extended"
12218 AMLINTFLAGS="$AMLINTFLAGS -errtags=yes"
12219 AMLINTFLAGS="$AMLINTFLAGS -Ncheck=%all"
12220 AMLINTFLAGS="$AMLINTFLAGS -Nlevel=2"
12221 AMLINTFLAGS="$AMLINTFLAGS -erroff=E_ASGN_NEVER_USED"
12222 AMLINTFLAGS="$AMLINTFLAGS,E_ASGN_RESET"
12223 AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_CONST_TO_SMALL_INT"
12224 AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_TO_SMALL_INT"
12225 AMLINTFLAGS="$AMLINTFLAGS,E_CAST_UINT_TO_SIGNED_INT"
12226 AMLINTFLAGS="$AMLINTFLAGS,E_CONSTANT_CONDITION"
12227 AMLINTFLAGS="$AMLINTFLAGS,E_ENUM_UNUSE"
12228 AMLINTFLAGS="$AMLINTFLAGS,E_EXPR_NULL_EFFECT"
12229 AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_ALWAYS_IGNOR"
12230 AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_MAYBE_IGNORED"
12231 AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK0"
12232 AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK1"
12233 AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK2"
12234 AMLINTFLAGS="$AMLINTFLAGS,E_INCL_MNUSD"
12235 AMLINTFLAGS="$AMLINTFLAGS,E_INCL_NUSD"
12236 AMLINTFLAGS="$AMLINTFLAGS,E_MCR_NODIFF"
12237 AMLINTFLAGS="$AMLINTFLAGS,E_NAME_MULTIPLY_DEF"
12238 AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_NULL_PSBL"
12239 AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_SUSP"
12240 AMLINTFLAGS="$AMLINTFLAGS,E_PTRDIFF_OVERFLOW"
12241 AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_NULL_PSBL"
12242 AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_SUSP"
12243 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_ACCESS_WARN"
12244 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHDIR_WARN"
12245 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHMOD_WARN"
12246 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CREAT_WITHOUT_EXCL"
12247 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_PATH"
12248 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_WARN"
12249 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_FOPEN_MODE"
12250 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_GETENV_WARN"
12251 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_MKDIR_WARN"
12252 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_PRINTF_VAR_FMT"
12253 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_RAND_WARN"
12254 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SCANF_VAR_FMT"
12255 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SELECT_WARN"
12256 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SHELL_WARN"
12257 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_STRNCPY_WARN"
12258 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_UMASK_WARN"
12259 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_USE_AFTER_STAT"
12260 AMLINTFLAGS="$AMLINTFLAGS,E_SIGN_EXTENSION_PSBL"
12261 AMLINTFLAGS="$AMLINTFLAGS,E_TYPEDEF_UNUSE"
12262 AMLINTFLAGS="$AMLINTFLAGS,E_UNCAL_F"
12267 for ac_prog in splint
12269 # Extract the first word of "$ac_prog", so it can be a program name with args.
12270 set dummy $ac_prog; ac_word=$2
12271 echo "$as_me:$LINENO: checking for $ac_word" >&5
12272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12273 if test "${ac_cv_path_AMLINT+set}" = set; then
12274 echo $ECHO_N "(cached) $ECHO_C" >&6
12278 ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
12281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12282 for as_dir in $SYSLOCPATH
12285 test -z "$as_dir" && as_dir=.
12286 for ac_exec_ext in '' $ac_executable_extensions; do
12287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12288 ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
12289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12298 AMLINT=$ac_cv_path_AMLINT
12300 if test -n "$AMLINT"; then
12301 echo "$as_me:$LINENO: result: $AMLINT" >&5
12302 echo "${ECHO_T}$AMLINT" >&6
12304 echo "$as_me:$LINENO: result: no" >&5
12305 echo "${ECHO_T}no" >&6
12308 test -n "$AMLINT" && break
12311 if test ! -z "$AMLINT"; then
12314 AMLINTFLAGS='+show-scan +unixlib -weak -globs +usedef +usereleased +impouts -paramimptemp -varuse -warnposix -redef -preproc -fixedformalarray -retval -unrecog -usevarargs -formatcode'
12319 # Check whether --with-includes or --without-includes was given.
12320 if test "${with_includes+set}" = set; then
12321 withval="$with_includes"
12324 "" | y | ye | yes | n | no)
12325 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-includes option." >&5
12326 echo "$as_me: error: *** You must supply an argument to the --with-includes option." >&2;}
12327 { (exit 1); exit 1; }; }
12330 INCLUDE_DIRS="$withval"
12334 if test "$INCLUDE_DIRS"; then
12335 for dir in $INCLUDE_DIRS; do
12336 if test -d "$dir"; then
12337 AMANDA_CPPFLAGS="$AMANDA_CPPFLAGS -I$dir"
12339 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
12340 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
12346 # Check whether --with-libraries or --without-libraries was given.
12347 if test "${with_libraries+set}" = set; then
12348 withval="$with_libraries"
12351 "" | y | ye | yes | n | no)
12352 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-libraries option." >&5
12353 echo "$as_me: error: *** You must supply an argument to the --with-libraries option." >&2;}
12354 { (exit 1); exit 1; }; }
12357 LIBRARY_DIRS="$withval"
12361 if test "$LIBRARY_DIRS"; then
12362 for dir in $LIBRARY_DIRS; do
12363 if test -d "$dir"; then
12365 *-solaris2*,*-netbsd*)
12366 AMANDA_LDFLAGS="$AMANDA_LDFLAGS -R$dir"
12369 AMANDA_LDFLAGS="$AMANDA_LDFLAGS -L$dir"
12371 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
12372 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
12379 # Check whether --with-dumperdir or --without-dumperdir was given.
12380 if test "${with_dumperdir+set}" = set; then
12381 withval="$with_dumperdir"
12384 "" | y | ye | yes | n | no)
12385 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-dumperdir option." >&5
12386 echo "$as_me: error: *** You must supply an argument to the --with-dumperdir option." >&2;}
12387 { (exit 1); exit 1; }; }
12390 DUMPER_DIR="$withval"
12394 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12395 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
12396 DUMPER_DIR=$exec_prefix/dumper
12401 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12402 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
12403 eval echo "$DUMPER_DIR"
12406 cat >>confdefs.h <<_ACEOF
12407 #define DUMPER_DIR "$DUMPER_DIR"
12413 # Check whether --with-configdir or --without-configdir was given.
12414 if test "${with_configdir+set}" = set; then
12415 withval="$with_configdir"
12418 "" | y | ye | yes | n | no)
12419 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-configdir option." >&5
12420 echo "$as_me: error: *** You must supply an argument to the --with-configdir option." >&2;}
12421 { (exit 1); exit 1; }; }
12423 *) CONFIG_DIR="$withval"
12428 : ${CONFIG_DIR="$sysconfdir/amanda"}
12432 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12433 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
12434 eval echo "$CONFIG_DIR"
12437 cat >>confdefs.h <<_ACEOF
12438 #define CONFIG_DIR "$CONFIG_DIR"
12444 # Check whether --with-indexdir or --without-indexdir was given.
12445 if test "${with_indexdir+set}" = set; then
12446 withval="$with_indexdir"
12447 { { echo "$as_me:$LINENO: error: *** --with-indexdir is deprecated, use indexdir in amanda.conf instead." >&5
12448 echo "$as_me: error: *** --with-indexdir is deprecated, use indexdir in amanda.conf instead." >&2;}
12449 { (exit 1); exit 1; }; }
12454 # Check whether --with-dbdir or --without-dbdir was given.
12455 if test "${with_dbdir+set}" = set; then
12456 withval="$with_dbdir"
12457 { { echo "$as_me:$LINENO: error: *** --with-dbdir is deprecated, use infofile in amanda.conf instead." >&5
12458 echo "$as_me: error: *** --with-dbdir is deprecated, use infofile in amanda.conf instead." >&2;}
12459 { (exit 1); exit 1; }; }
12464 # Check whether --with-logdir or --without-logdir was given.
12465 if test "${with_logdir+set}" = set; then
12466 withval="$with_logdir"
12467 { { echo "$as_me:$LINENO: error: *** --with-logdir is deprecated, use logdir in amanda.conf instead." >&5
12468 echo "$as_me: error: *** --with-logdir is deprecated, use logdir in amanda.conf instead." >&2;}
12469 { (exit 1); exit 1; }; }
12474 # Check whether --with-suffixes or --without-suffixes was given.
12475 if test "${with_suffixes+set}" = set; then
12476 withval="$with_suffixes"
12477 USE_VERSION_SUFFIXES=$withval
12479 : ${USE_VERSION_SUFFIXES=no}
12482 case "$USE_VERSION_SUFFIXES" in
12485 cat >>confdefs.h <<\_ACEOF
12486 #define USE_VERSION_SUFFIXES 1
12490 program_suffix="-$VERSION"
12491 # This is from the output of configure.in.
12492 if test "x$program_transform_name" = xs,x,x,; then
12493 program_transform_name=
12495 # Double any \ or $. echo might interpret backslashes.
12496 cat <<\EOF_SED > conftestsed
12497 s,\\,\\\\,g; s,\$,$$,g
12499 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
12502 test "x$program_prefix" != xNONE &&
12503 program_transform_name="s,^,${program_prefix},; $program_transform_name"
12504 # Use a double $ so make ignores it.
12505 test "x$program_suffix" != xNONE &&
12506 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
12508 # sed with no file args requires a program.
12509 test "x$program_transform_name" = "" && program_transform_name="xs,x,x,"
12510 # Remove empty command
12511 cat <<\EOF_SED > conftestsed
12512 s,\;\;,\;,g; s,\; \$,,g; s,\;$,,g
12514 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
12517 n | no) USE_VERSION_SUFFIXES=no
12519 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-suffixes option." >&5
12520 echo "$as_me: error: *** You must not supply an argument to --with-suffixes option." >&2;}
12521 { (exit 1); exit 1; }; }
12528 CLIENT_SCRIPTS_OPT=amhpfixdevs
12531 CLIENT_SCRIPTS_OPT=amsinixfixdevs
12534 CLIENT_SCRIPTS_OPT=
12541 # Check whether --with-client-only or --without-client-only was given.
12542 if test "${with_client_only+set}" = set; then
12543 withval="$with_client_only"
12544 { { echo "$as_me:$LINENO: error: *** --with-client-only is deprecated, use --without-server instead." >&5
12545 echo "$as_me: error: *** --with-client-only is deprecated, use --without-server instead." >&2;}
12546 { (exit 1); exit 1; }; }
12550 # Check whether --with-server-only or --without-server-only was given.
12551 if test "${with_server_only+set}" = set; then
12552 withval="$with_server_only"
12553 { { echo "$as_me:$LINENO: error: *** --with-server-only is deprecated, use --without-client instead." >&5
12554 echo "$as_me: error: *** --with-server-only is deprecated, use --without-client instead." >&2;}
12555 { (exit 1); exit 1; }; }
12560 # Check whether --with-client or --without-client was given.
12561 if test "${with_client+set}" = set; then
12562 withval="$with_client"
12565 y | ye | yes) NO_CLIENT_MODE=false;;
12566 n | no) NO_CLIENT_MODE=true;;
12568 { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-client option." >&5
12569 echo "$as_me: error: *** You must not supply an argument to --with-client option." >&2;}
12570 { (exit 1); exit 1; }; }
12578 # Check whether --with-server or --without-server was given.
12579 if test "${with_server+set}" = set; then
12580 withval="$with_server"
12583 y | ye | yes) NO_SERVER_MODE=false ;;
12584 n | no) NO_SERVER_MODE=true;NO_RESTORE_MODE=true;;
12586 { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-server option. Maybe you meant --with-index-server=$withval" >&5
12587 echo "$as_me: error: *** You must not supply an argument to --with-server option. Maybe you meant --with-index-server=$withval" >&2;}
12588 { (exit 1); exit 1; }; }
12594 if test "x${NO_SERVER_MODE+set}" != xset ; then
12595 NO_SERVER_MODE=false
12599 # Check whether --with-restore or --without-restore was given.
12600 if test "${with_restore+set}" = set; then
12601 withval="$with_restore"
12604 y | ye | yes) NO_RESTORE_MODE=false;;
12605 n | no) NO_RESTORE_MODE=true;;
12607 { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-restore option." >&5
12608 echo "$as_me: error: *** You must not supply an argument to --with-restore option." >&2;}
12609 { (exit 1); exit 1; }; }
12615 if test "x${NO_RESTORE_MODE+set}" != xset ; then
12616 NO_RESTORE_MODE=${NO_SERVER_MODE-false}
12619 if ${NO_SERVER_MODE-false}; then
12620 if ${NO_RESTORE_MODE-false}; then
12623 { { echo "$as_me:$LINENO: error: *** --without-server requires --without-restore" >&5
12624 echo "$as_me: error: *** --without-server requires --without-restore" >&2;}
12625 { (exit 1); exit 1; }; }
12630 # Check whether --with-amrecover or --without-amrecover was given.
12631 if test "${with_amrecover+set}" = set; then
12632 withval="$with_amrecover"
12636 if ${NO_CLIENT_MODE-false}; then
12637 { { echo "$as_me:$LINENO: error: *** --without-client and --with-amrecover are incompatible" >&5
12638 echo "$as_me: error: *** --without-client and --with-amrecover are incompatible" >&2;}
12639 { (exit 1); exit 1; }; }
12641 NO_RECOVER_MODE=false;;
12642 n | no) NO_RECOVER_MODE=true;;
12644 { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-amrecover option." >&5
12645 echo "$as_me: error: *** You must not supply an argument to --with-amrecover option." >&2;}
12646 { (exit 1); exit 1; }; }
12654 # Check whether --with-index-server or --without-index-server was given.
12655 if test "${with_index_server+set}" = set; then
12656 withval="$with_index_server"
12659 "" | y | ye | yes | n | no)
12660 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-index-server option." >&5
12661 echo "$as_me: error: *** You must supply an argument to the --with-index-server option." >&2;}
12662 { (exit 1); exit 1; }; }
12664 *) DEFAULT_SERVER="$withval"
12669 : ${DEFAULT_SERVER=`uname -n`}
12673 cat >>confdefs.h <<_ACEOF
12674 #define DEFAULT_SERVER "$DEFAULT_SERVER"
12680 # Check whether --with-force-uid or --without-force-uid was given.
12681 if test "${with_force_uid+set}" = set; then
12682 withval="$with_force_uid"
12683 FORCE_USERID="$withval"
12685 : ${FORCE_USERID=yes}
12688 case "$FORCE_USERID" in
12690 cat >>confdefs.h <<\_ACEOF
12691 #define FORCE_USERID 1
12697 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-force-uid option." >&5
12698 echo "$as_me: error: *** You must not supply an argument to --with-force-uid option." >&2;}
12699 { (exit 1); exit 1; }; }
12703 # Check whether --with-user or --without-user was given.
12704 if test "${with_user+set}" = set; then
12705 withval="$with_user"
12708 "" | y | ye | yes | n | no)
12709 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-user option." >&5
12710 echo "$as_me: error: *** You must supply an argument to the --with-user option." >&2;}
12711 { (exit 1); exit 1; }; }
12713 *) CLIENT_LOGIN="$withval"
12719 if test "x${CLIENT_LOGIN+set}" != xset; then
12720 { { echo "$as_me:$LINENO: error: *** --with-user=USER is missing" >&5
12721 echo "$as_me: error: *** --with-user=USER is missing" >&2;}
12722 { (exit 1); exit 1; }; }
12725 cat >>confdefs.h <<_ACEOF
12726 #define CLIENT_LOGIN "$CLIENT_LOGIN"
12732 # Check whether --with-group or --without-group was given.
12733 if test "${with_group+set}" = set; then
12734 withval="$with_group"
12737 "" | y | ye | yes | n | no)
12738 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-group option." >&5
12739 echo "$as_me: error: *** You must supply an argument to the --with-group option." >&2;}
12740 { (exit 1); exit 1; }; }
12742 *) SETUID_GROUP="$withval"
12748 if test "x${SETUID_GROUP+set}" != xset; then
12749 { { echo "$as_me:$LINENO: error: *** --with-group=GROUP is missing" >&5
12750 echo "$as_me: error: *** --with-group=GROUP is missing" >&2;}
12751 { (exit 1); exit 1; }; }
12756 # Check whether --with-owner or --without-owner was given.
12757 if test "${with_owner+set}" = set; then
12758 withval="$with_owner"
12761 "" | y | ye | yes | n | no)
12762 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-owner option." >&5
12763 echo "$as_me: error: *** You must supply an argument to the --with-owner option." >&2;}
12764 { (exit 1); exit 1; }; }
12766 *) BINARY_OWNER="$withval"
12772 if test "x${BINARY_OWNER+set}" != xset ; then
12773 BINARY_OWNER=$CLIENT_LOGIN
12776 cat >>confdefs.h <<_ACEOF
12777 #define BINARY_OWNER "$BINARY_OWNER"
12783 # Check whether --with-rundump or --without-rundump was given.
12784 if test "${with_rundump+set}" = set; then
12785 withval="$with_rundump"
12788 n | no | y | ye | yes) FORCE_USE_RUNDUMP="$withval";;
12789 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-rundump option." >&5
12790 echo "$as_me: error: *** You must not supply an argument to --with-rundump option." >&2;}
12791 { (exit 1); exit 1; }; };;
12798 # Check whether --with-config or --without-config was given.
12799 if test "${with_config+set}" = set; then
12800 withval="$with_config"
12803 "" | y | ye | yes | n | no)
12804 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-config option." >&5
12805 echo "$as_me: error: *** You must supply an argument to the --with-config option." >&2;}
12806 { (exit 1); exit 1; }; }
12808 *) DEFAULT_CONFIG="$withval"
12813 : ${DEFAULT_CONFIG=DailySet1}
12817 cat >>confdefs.h <<_ACEOF
12818 #define DEFAULT_CONFIG "$DEFAULT_CONFIG"
12824 # Check whether --with-tape-server or --without-tape-server was given.
12825 if test "${with_tape_server+set}" = set; then
12826 withval="$with_tape_server"
12829 "" | y | ye | yes | n | no)
12830 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-server option." >&5
12831 echo "$as_me: error: *** You must supply an argument to the --with-tape-server option." >&2;}
12832 { (exit 1); exit 1; }; }
12834 *) DEFAULT_TAPE_SERVER="$withval"
12839 : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
12843 cat >>confdefs.h <<_ACEOF
12844 #define DEFAULT_TAPE_SERVER "$DEFAULT_TAPE_SERVER"
12850 # Check whether --with-tape-device or --without-tape-device was given.
12851 if test "${with_tape_device+set}" = set; then
12852 withval="$with_tape_device"
12855 "" | y | ye | yes | n | no)
12856 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-device option." >&5
12857 echo "$as_me: error: *** You must supply an argument to the --with-tape-device option." >&2;}
12858 { (exit 1); exit 1; }; }
12860 *) DEFAULT_TAPE_DEVICE="$withval"
12867 if test ! -z "$DEFAULT_TAPE_DEVICE"; then
12869 cat >>confdefs.h <<_ACEOF
12870 #define DEFAULT_TAPE_DEVICE "$DEFAULT_TAPE_DEVICE"
12874 EXAMPLE_TAPEDEV=$DEFAULT_TAPE_DEVICE
12876 EXAMPLE_TAPEDEV="/dev/null"
12881 # Check whether --with-ftape-raw-device or --without-ftape-raw-device was given.
12882 if test "${with_ftape_raw_device+set}" = set; then
12883 withval="$with_ftape_raw_device"
12886 "" | y | ye | yes | n | no)
12887 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-ftape-rawdevice option." >&5
12888 echo "$as_me: error: *** You must supply an argument to the --with-ftape-rawdevice option." >&2;}
12889 { (exit 1); exit 1; }; }
12891 *) DEFAULT_RAW_TAPE_DEVICE="$withval"
12897 if test -z "$DEFAULT_RAW_TAPE_DEVICE"; then
12898 echo "$as_me:$LINENO: checking for raw ftape device" >&5
12899 echo $ECHO_N "checking for raw ftape device... $ECHO_C" >&6
12900 raw_tape_dev=/dev/null
12901 for num in 3 2 1 0 ; do
12902 td=/dev/rawft${num}
12903 if test -r $td; then
12907 DEFAULT_RAW_TAPE_DEVICE=$raw_tape_dev
12908 echo "$as_me:$LINENO: result: $DEFAULT_RAW_TAPE_DEVICE" >&5
12909 echo "${ECHO_T}$DEFAULT_RAW_TAPE_DEVICE" >&6
12915 if test -z "$DEFAULT_RAW_TAPE_DEVICE"; then
12916 DEFAULT_RAW_TAPE_DEVICE=/dev/null
12920 cat >>confdefs.h <<_ACEOF
12921 #define DEFAULT_RAW_TAPE_DEVICE "$DEFAULT_RAW_TAPE_DEVICE"
12927 # Check whether --with-rew-tape or --without-rew-tape was given.
12928 if test "${with_rew_tape+set}" = set; then
12929 withval="$with_rew_tape"
12930 { { echo "$as_me:$LINENO: error: *** --with-rew-tape is deprecated, use --with-tape-device instead." >&5
12931 echo "$as_me: error: *** --with-rew-tape is deprecated, use --with-tape-device instead." >&2;}
12932 { (exit 1); exit 1; }; }
12937 # Check whether --with-norew-tape or --without-norew-tape was given.
12938 if test "${with_norew_tape+set}" = set; then
12939 withval="$with_norew_tape"
12940 { { echo "$as_me:$LINENO: error: *** --with-norew-tape is deprecated, use --with-tape-device instead." >&5
12941 echo "$as_me: error: *** --with-norew-tape is deprecated, use --with-tape-device instead." >&2;}
12942 { (exit 1); exit 1; }; }
12947 # Check whether --with-changer-device or --without-changer-device was given.
12948 if test "${with_changer_device+set}" = set; then
12949 withval="$with_changer_device"
12952 "" | y | ye | yes | n | no)
12953 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-changer-device option." >&5
12954 echo "$as_me: error: *** You must supply an argument to the --with-changer-device option." >&2;}
12955 { (exit 1); exit 1; }; }
12957 *) DEFAULT_CHANGER_DEVICE="$withval"
12963 if test -z "$DEFAULT_CHANGER_DEVICE" &&
12964 test -f /dev/ch0; then
12965 DEFAULT_CHANGER_DEVICE=/dev/ch0
12971 if test -z "$DEFAULT_CHANGER_DEVICE"; then
12972 DEFAULT_CHANGER_DEVICE=/dev/null
12976 cat >>confdefs.h <<_ACEOF
12977 #define DEFAULT_CHANGER_DEVICE "$DEFAULT_CHANGER_DEVICE"
12983 # Check whether --with-fqdn or --without-fqdn was given.
12984 if test "${with_fqdn+set}" = set; then
12985 withval="$with_fqdn"
12991 case "$USE_FQDN" in
12994 cat >>confdefs.h <<\_ACEOF
12999 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-fqdn option." >&5
13000 echo "$as_me: error: *** You must not supply an argument to --with-fqdn option." >&2;}
13001 { (exit 1); exit 1; }; }
13006 # Check whether --with-broken-fsf or --without-broken-fsf was given.
13007 if test "${with_broken_fsf+set}" = set; then
13008 withval="$with_broken_fsf"
13009 HAVE_BROKEN_FSF=$withval
13011 : ${HAVE_BROKEN_FSF=no}
13014 case "$HAVE_BROKEN_FSF" in
13017 cat >>confdefs.h <<\_ACEOF
13018 #define HAVE_BROKEN_FSF 1
13022 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-broken-fsf option." >&5
13023 echo "$as_me: error: *** You must not supply an argument to --with-broken-fsf option." >&2;}
13024 { (exit 1); exit 1; }; }
13029 # Check whether --with-reuseports or --without-reuseports was given.
13030 if test "${with_reuseports+set}" = set; then
13031 withval="$with_reuseports"
13044 case "$REUSEADDR" in
13049 cat >>confdefs.h <<\_ACEOF
13050 #define USE_REUSEADDR 1
13055 { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-reuseports option." >&5
13056 echo "$as_me: error: *** You must not supply an argument to --with-reuseports option." >&2;}
13057 { (exit 1); exit 1; }; }
13062 # Check whether --with-gnutar or --without-gnutar was given.
13063 if test "${with_gnutar+set}" = set; then
13064 withval="$with_gnutar"
13067 /*) GNUTAR="$withval";;
13070 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar" >&5
13071 echo "$as_me: error: *** You must supply a full pathname to --with-gnutar" >&2;}
13072 { (exit 1); exit 1; }; };;
13079 # Check whether --with-smbclient or --without-smbclient was given.
13080 if test "${with_smbclient+set}" = set; then
13081 withval="$with_smbclient"
13084 /*) SAMBA_CLIENT="$withval";;
13086 n|no) SAMBA_CLIENT=;;
13087 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-smbclient" >&5
13088 echo "$as_me: error: *** You must supply a full pathname to --with-smbclient" >&2;}
13089 { (exit 1); exit 1; }; };;
13096 # Check whether --with-samba-user or --without-samba-user was given.
13097 if test "${with_samba_user+set}" = set; then
13098 withval="$with_samba_user"
13099 { { echo "$as_me:$LINENO: error: *** The samba-user option was deprecated, the username go in the amandapass" >&5
13100 echo "$as_me: error: *** The samba-user option was deprecated, the username go in the amandapass" >&2;}
13101 { (exit 1); exit 1; }; }
13107 # Check whether --with-gnutar-listdir or --without-gnutar-listdir was given.
13108 if test "${with_gnutar_listdir+set}" = set; then
13109 withval="$with_gnutar_listdir"
13112 n | no) unset GNUTAR_LISTDIR ;;
13113 y | ye | yes) : ${GNUTAR_LISTDIR=$localstatedir/amanda/gnutar-lists} ;;
13114 /*) GNUTAR_LISTDIR="$withval" ;;
13115 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar-listdir" >&5
13116 echo "$as_me: error: *** You must supply a full pathname to --with-gnutar-listdir" >&2;}
13117 { (exit 1); exit 1; }; }
13121 : ${GNUTAR_LISTDIR="$localstatedir/amanda/gnutar-lists"}
13124 if test "$GNUTAR_LISTDIR"; then
13126 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13127 eval echo "$GNUTAR_LISTDIR"
13130 cat >>confdefs.h <<_ACEOF
13131 #define GNUTAR_LISTED_INCREMENTAL_DIR "$GNUTAR_LISTDIR"
13134 GNUTAR_LISTED_INCREMENTAL_DIRX=$GNUTAR_LISTDIR
13136 GNUTAR_LISTED_INCREMENTAL_DIRX=
13141 # Check whether --with-gnutar-listed-incremental or --without-gnutar-listed-incremental was given.
13142 if test "${with_gnutar_listed_incremental+set}" = set; then
13143 withval="$with_gnutar_listed_incremental"
13144 { { echo "$as_me:$LINENO: error: *** The gnutar-listed-incremental option was deprecated, use gnutar-listdir instead" >&5
13145 echo "$as_me: error: *** The gnutar-listed-incremental option was deprecated, use gnutar-listdir instead" >&2;}
13146 { (exit 1); exit 1; }; }
13150 GNUTAR_LISTED_INCREMENTAL_DIR=$GNUTAR_LISTDIR
13154 # Check whether --with-bsd-security or --without-bsd-security was given.
13155 if test "${with_bsd_security+set}" = set; then
13156 withval="$with_bsd_security"
13157 BSD_SECURITY=$withval
13159 : ${BSD_SECURITY=yes}
13162 case "$BSD_SECURITY" in
13165 cat >>confdefs.h <<\_ACEOF
13166 #define BSD_SECURITY 1
13170 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsd-security option." >&5
13171 echo "$as_me: error: *** You must not supply an argument to --with-bsd-security option." >&2;}
13172 { (exit 1); exit 1; }; }
13177 # Check whether --with-amandahosts or --without-amandahosts was given.
13178 if test "${with_amandahosts+set}" = set; then
13179 withval="$with_amandahosts"
13180 USE_AMANDAHOSTS=$withval
13182 : ${USE_AMANDAHOSTS=yes}
13185 case "$USE_AMANDAHOSTS" in
13188 case "$BSD_SECURITY" in
13190 cat >>confdefs.h <<\_ACEOF
13191 #define USE_AMANDAHOSTS 1
13197 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-amandahosts option." >&5
13198 echo "$as_me: error: *** You must not supply an argument to --with-amandahosts option." >&2;}
13199 { (exit 1); exit 1; }; }
13205 # Check whether --with-dbmalloc or --without-dbmalloc was given.
13206 if test "${with_dbmalloc+set}" = set; then
13207 withval="$with_dbmalloc"
13208 DBMALLOC="$withval"
13214 case "$DBMALLOC" in
13221 echo "$as_me:$LINENO: checking for malloc in -ldbmalloc" >&5
13222 echo $ECHO_N "checking for malloc in -ldbmalloc... $ECHO_C" >&6
13223 if test "${ac_cv_lib_dbmalloc_malloc+set}" = set; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
13226 ac_check_lib_save_LIBS=$LIBS
13227 LIBS="-ldbmalloc $LIBS"
13228 cat >conftest.$ac_ext <<_ACEOF
13231 cat confdefs.h >>conftest.$ac_ext
13232 cat >>conftest.$ac_ext <<_ACEOF
13233 /* end confdefs.h. */
13235 /* Override any gcc2 internal prototype to avoid an error. */
13239 /* We use char because int might match the return type of a gcc2
13240 builtin and then its argument prototype would still apply. */
13250 rm -f conftest.$ac_objext conftest$ac_exeext
13251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13252 (eval $ac_link) 2>conftest.er1
13254 grep -v '^ *+' conftest.er1 >conftest.err
13256 cat conftest.err >&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); } &&
13259 { ac_try='test -z "$ac_c_werror_flag"
13260 || test ! -s conftest.err'
13261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13262 (eval $ac_try) 2>&5
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); }; } &&
13266 { ac_try='test -s conftest$ac_exeext'
13267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13268 (eval $ac_try) 2>&5
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); }; }; then
13272 ac_cv_lib_dbmalloc_malloc=yes
13274 echo "$as_me: failed program was:" >&5
13275 sed 's/^/| /' conftest.$ac_ext >&5
13277 ac_cv_lib_dbmalloc_malloc=no
13279 rm -f conftest.err conftest.$ac_objext \
13280 conftest$ac_exeext conftest.$ac_ext
13281 LIBS=$ac_check_lib_save_LIBS
13283 echo "$as_me:$LINENO: result: $ac_cv_lib_dbmalloc_malloc" >&5
13284 echo "${ECHO_T}$ac_cv_lib_dbmalloc_malloc" >&6
13285 if test $ac_cv_lib_dbmalloc_malloc = yes; then
13286 cat >>confdefs.h <<_ACEOF
13287 #define HAVE_LIBDBMALLOC 1
13290 LIBS="-ldbmalloc $LIBS"
13294 if test "x$ac_cv_lib_dbmalloc_malloc" != "xyes"; then
13295 { echo "$as_me:$LINENO: WARNING: *** dbmalloc library not found - no malloc debugging support!" >&5
13296 echo "$as_me: WARNING: *** dbmalloc library not found - no malloc debugging support!" >&2;}
13300 DBMALLOCCFLAGS="-I$DBMALLOC -DUSE_DBMALLOC"
13301 DBMALLOCLIBS="-L$DBMALLOC -ldbmalloc"
13307 # Check whether --with-ipv6 or --without-ipv6 was given.
13308 if test "${with_ipv6+set}" = set; then
13309 withval="$with_ipv6"
13312 y | ye | yes) amanda_ipv6=true;;
13313 n | no) amanda_ipv6=false;;
13315 { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-ipv6 option." >&5
13316 echo "$as_me: error: *** You must not supply an argument to --with-ipv6 option." >&2;}
13317 { (exit 1); exit 1; }; }
13325 : ${KRB4_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
13328 # Check whether --with-krb4-security or --without-krb4-security was given.
13329 if test "${with_krb4_security+set}" = set; then
13330 withval="$with_krb4_security"
13331 KRB4_SECURITY="$withval"
13333 : ${KRB4_SECURITY=no}
13337 case "$KRB4_SECURITY" in
13338 n | no) KRB4_SECURITY=no ;;
13340 *) KRB4_SPOTS="$KRB4_SECURITY"
13345 echo "$as_me:$LINENO: checking for Kerberos and Amanda kerberos4 bits" >&5
13346 echo $ECHO_N "checking for Kerberos and Amanda kerberos4 bits... $ECHO_C" >&6
13347 if test "x${KRB4_SECURITY}" = xyes -a -f ${srcdir-.}/common-src/krb4-security.c ; then
13348 for dir in $KRB4_SPOTS; do
13349 if test -f ${dir}/lib/libkrb.a -a -f ${dir}/lib/libdes.a ; then
13351 # This is the original Kerberos 4.
13353 echo "$as_me:$LINENO: result: found in $dir" >&5
13354 echo "${ECHO_T}found in $dir" >&6
13357 cat >>confdefs.h <<\_ACEOF
13358 #define KRB4_SECURITY 1
13361 if test -d $dir/include/kerberosIV ; then
13363 # This handles BSD/OS.
13365 KRB4INCLUDES=-I$dir/include/kerberosIV
13367 KRB4INCLUDES=-I$dir/include
13369 KRB4LDFLAGS=-L$dir/lib
13370 KRB4LIBS="-lkrb -ldes"
13371 if test -f ${dir}/lib/libcom_err.a; then
13372 KRB4LIBS="$KRB4LIBS -lcom_err"
13375 elif test -f ${dir}/lib/libkrb4.a &&
13376 test -f ${dir}/lib/libcrypto.a &&
13377 test -f ${dir}/lib/libdes425.a ; then
13379 # This is Kerberos 5 with Kerberos 4 back-support.
13381 echo "$as_me:$LINENO: result: found in $dir" >&5
13382 echo "${ECHO_T}found in $dir" >&6
13385 cat >>confdefs.h <<\_ACEOF
13386 #define KRB4_SECURITY 1
13389 KRB4INCLUDES="-I$dir/include -I$dir/include/kerberosIV"
13390 KRB4LDFLAGS=-L$dir/lib
13391 if test -f ${dir}/lib/libkrb5.a &&
13392 test -f ${dir}/lib/libcom_err.a; then
13393 KRB4LIBS="-lkrb4 -lkrb5 -lcrypto -ldes425 -lcom_err"
13395 KRB4LIBS="-lkrb4 -lcrypto -ldes425"
13401 if test "x$KRB4LDFLAGS" = "x" ; then
13402 echo "$as_me:$LINENO: result: no libraries found" >&5
13403 echo "${ECHO_T}no libraries found" >&6
13406 echo "$as_me:$LINENO: result: no" >&5
13407 echo "${ECHO_T}no" >&6
13411 # Check whether --with-rsh-security or --without-rsh-security was given.
13412 if test "${with_rsh_security+set}" = set; then
13413 withval="$with_rsh_security"
13414 RSH_SECURITY=$withval
13416 : ${RSH_SECURITY=yes}
13419 case "$RSH_SECURITY" in
13422 cat >>confdefs.h <<\_ACEOF
13423 #define RSH_SECURITY 1
13427 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument the to --with-rsh-security option." >&5
13428 echo "$as_me: error: *** You must not supply an argument the to --with-rsh-security option." >&2;}
13429 { (exit 1); exit 1; }; }
13434 # Check whether --with-ssh-security or --without-ssh-security was given.
13435 if test "${with_ssh_security+set}" = set; then
13436 withval="$with_ssh_security"
13437 SSH_SECURITY=$withval
13439 : ${SSH_SECURITY=no}
13442 case "$SSH_SECURITY" in
13445 cat >>confdefs.h <<\_ACEOF
13446 #define SSH_SECURITY 1
13449 SSH_SECURITY_SET=true
13451 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-ssh-security." >&5
13452 echo "$as_me: error: *** You must not supply an argument to --with-ssh-security." >&2;}
13453 { (exit 1); exit 1; }; }
13457 # find SSH and check for SSH options if we're using SSH security
13458 if test x"$SSH_SECURITY" = "xyes"; then
13461 # Extract the first word of "$ac_prog", so it can be a program name with args.
13462 set dummy $ac_prog; ac_word=$2
13463 echo "$as_me:$LINENO: checking for $ac_word" >&5
13464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13465 if test "${ac_cv_path_SSH+set}" = set; then
13466 echo $ECHO_N "(cached) $ECHO_C" >&6
13470 ac_cv_path_SSH="$SSH" # Let the user override the test with a path.
13473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13474 for as_dir in $LOCSYSPATH
13477 test -z "$as_dir" && as_dir=.
13478 for ac_exec_ext in '' $ac_executable_extensions; do
13479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13480 ac_cv_path_SSH="$as_dir/$ac_word$ac_exec_ext"
13481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13490 SSH=$ac_cv_path_SSH
13492 if test -n "$SSH"; then
13493 echo "$as_me:$LINENO: result: $SSH" >&5
13494 echo "${ECHO_T}$SSH" >&6
13496 echo "$as_me:$LINENO: result: no" >&5
13497 echo "${ECHO_T}no" >&6
13500 test -n "$SSH" && break
13504 cat >>confdefs.h <<_ACEOF
13510 # Check whether --with-ssh-options or --without-ssh-options was given.
13511 if test "${with_ssh_options+set}" = set; then
13512 withval="$with_ssh_options"
13513 SSH_OPTIONS="$withval"
13519 case "$SSH_OPTIONS" in
13520 y | ye | yes | n | no)
13521 { { echo "$as_me:$LINENO: error: *** You must supply an argument to --with-ssh-options." >&5
13522 echo "$as_me: error: *** You must supply an argument to --with-ssh-options." >&2;}
13523 { (exit 1); exit 1; }; };;
13527 echo "$as_me:$LINENO: checking SSH options" >&5
13528 echo $ECHO_N "checking SSH options... $ECHO_C" >&6
13529 # if we didn't get SSH options from the user, figure them out for ourselves
13530 if test -z "$SSH_OPTIONS"; then
13531 # TODO - quote these (or break them up in ssh-security??)
13532 case `$SSH -V 2>&1` in
13533 OpenSSH*) SSH_OPTIONS='-x -o BatchMode=yes -o PreferredAuthentications=publickey';;
13534 *) SSH_OPTIONS='-x -o BatchMode=yes'
13538 # now convert that to a comma-separated list of C strings
13539 eval "set dummy ${SSH_OPTIONS}"; shift
13541 for i in "${@}"; do SSH_OPTIONS="${SSH_OPTIONS}${SSH_OPTIONS:+, }\"${i/\"/\\\"}\""; done
13542 echo "$as_me:$LINENO: result: $SSH_OPTIONS" >&5
13543 echo "${ECHO_T}$SSH_OPTIONS" >&6
13546 cat >>confdefs.h <<_ACEOF
13547 #define SSH_OPTIONS $SSH_OPTIONS
13553 # Check whether --with-bsdtcp-security or --without-bsdtcp-security was given.
13554 if test "${with_bsdtcp_security+set}" = set; then
13555 withval="$with_bsdtcp_security"
13556 BSDTCP_SECURITY=$withval
13558 : ${BSDTCP_SECURITY=yes}
13561 case "$BSDTCP_SECURITY" in
13564 cat >>confdefs.h <<\_ACEOF
13565 #define BSDTCP_SECURITY 1
13568 BSDTCP_SECURITY_SET=true
13570 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument the to --with-bsdtcp-security option." >&5
13571 echo "$as_me: error: *** You must not supply an argument the to --with-bsdtcp-security option." >&2;}
13572 { (exit 1); exit 1; }; }
13577 # Check whether --with-bsdudp-security or --without-bsdudp-security was given.
13578 if test "${with_bsdudp_security+set}" = set; then
13579 withval="$with_bsdudp_security"
13580 BSDUDP_SECURITY=$withval
13582 : ${BSDUDP_SECURITY=yes}
13585 case "$BSDUDP_SECURITY" in
13588 cat >>confdefs.h <<\_ACEOF
13589 #define BSDUDP_SECURITY 1
13592 BSDUDP_SECURITY_SET=true
13594 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument the to --with-bsdudp-security option." >&5
13595 echo "$as_me: error: *** You must not supply an argument the to --with-bsdudp-security option." >&2;}
13596 { (exit 1); exit 1; }; }
13601 # Check whether --with-server-principal or --without-server-principal was given.
13602 if test "${with_server_principal+set}" = set; then
13603 withval="$with_server_principal"
13606 "" | y | ye | yes | n | no)
13607 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-principal option." >&5
13608 echo "$as_me: error: *** You must supply an argument to the --with-server-principal option." >&2;}
13609 { (exit 1); exit 1; }; }
13612 SERVER_HOST_PRINCIPLE="$withval"
13617 : ${SERVER_HOST_PRINCIPLE="amanda"}
13621 cat >>confdefs.h <<_ACEOF
13622 #define SERVER_HOST_PRINCIPLE "$SERVER_HOST_PRINCIPLE"
13627 # Check whether --with-server-instance or --without-server-instance was given.
13628 if test "${with_server_instance+set}" = set; then
13629 withval="$with_server_instance"
13632 "" | y | ye | yes | n | no)
13633 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-instance option." >&5
13634 echo "$as_me: error: *** You must supply an argument to the --with-server-instance option." >&2;}
13635 { (exit 1); exit 1; }; }
13637 *) SERVER_HOST_INSTANCE="$withval"
13642 : ${SERVER_HOST_INSTANCE="amanda"}
13646 cat >>confdefs.h <<_ACEOF
13647 #define SERVER_HOST_INSTANCE "$SERVER_HOST_INSTANCE"
13652 # Check whether --with-server-keyfile or --without-server-keyfile was given.
13653 if test "${with_server_keyfile+set}" = set; then
13654 withval="$with_server_keyfile"
13657 "" | y | ye | yes | n | no)
13658 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-keyfile option." >&5
13659 echo "$as_me: error: *** You must supply an argument to the --with-server-keyfile option." >&2;}
13660 { (exit 1); exit 1; }; }
13662 *) SERVER_HOST_KEY_FILE="$withval"
13667 : ${SERVER_HOST_KEY_FILE="/.amanda"}
13671 cat >>confdefs.h <<_ACEOF
13672 #define SERVER_HOST_KEY_FILE "$SERVER_HOST_KEY_FILE"
13677 # Check whether --with-client-principal or --without-client-principal was given.
13678 if test "${with_client_principal+set}" = set; then
13679 withval="$with_client_principal"
13682 "" | y | ye | yes | n | no)
13683 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-principal option." >&5
13684 echo "$as_me: error: *** You must supply an argument to the --with-client-principal option." >&2;}
13685 { (exit 1); exit 1; }; }
13687 *) CLIENT_HOST_PRINCIPLE="$withval"
13692 : ${CLIENT_HOST_PRINCIPLE="rcmd"}
13696 cat >>confdefs.h <<_ACEOF
13697 #define CLIENT_HOST_PRINCIPLE "$CLIENT_HOST_PRINCIPLE"
13702 # Check whether --with-client-instance or --without-client-instance was given.
13703 if test "${with_client_instance+set}" = set; then
13704 withval="$with_client_instance"
13707 "" | y | ye | yes | n | no)
13708 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-instance option." >&5
13709 echo "$as_me: error: *** You must supply an argument to the --with-client-instance option." >&2;}
13710 { (exit 1); exit 1; }; }
13712 *) CLIENT_HOST_INSTANCE="$withval"
13717 : ${CLIENT_HOST_INSTANCE=HOSTNAME_INSTANCE}
13721 cat >>confdefs.h <<_ACEOF
13722 #define CLIENT_HOST_INSTANCE $CLIENT_HOST_INSTANCE
13727 # Check whether --with-client-keyfile or --without-client-keyfile was given.
13728 if test "${with_client_keyfile+set}" = set; then
13729 withval="$with_client_keyfile"
13732 "" | y | ye | yes | n | no)
13733 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-keyfile option." >&5
13734 echo "$as_me: error: *** You must supply an argument to the --with-client-keyfile option." >&2;}
13735 { (exit 1); exit 1; }; }
13737 *) CLIENT_HOST_KEY_FILE="$withval"
13742 : ${CLIENT_HOST_KEY_FILE=KEYFILE}
13746 # Assume it's either KEYFILE (defined in krb.h), or a string filename...
13747 if test "x$CLIENT_HOST_KEY_FILE" != "xKEYFILE"; then
13748 CLIENT_HOST_KEY_FILE="\"$CLIENT_HOST_KEY_FILE\""
13752 cat >>confdefs.h <<_ACEOF
13753 #define CLIENT_HOST_KEY_FILE $CLIENT_HOST_KEY_FILE
13758 # Check whether --with-ticket-lifetime or --without-ticket-lifetime was given.
13759 if test "${with_ticket_lifetime+set}" = set; then
13760 withval="$with_ticket_lifetime"
13763 "" | y | ye | yes | n | no)
13764 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-ticket-lifetime option." >&5
13765 echo "$as_me: error: *** You must supply an argument to the --with-ticket-lifetime option." >&2;}
13766 { (exit 1); exit 1; }; }
13768 *) TICKET_LIFETIME="$withval"
13773 : ${TICKET_LIFETIME=128}
13777 cat >>confdefs.h <<_ACEOF
13778 #define TICKET_LIFETIME $TICKET_LIFETIME
13783 : ${KRB5_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
13786 # Check whether --with-krb5-security or --without-krb5-security was given.
13787 if test "${with_krb5_security+set}" = set; then
13788 withval="$with_krb5_security"
13789 KRB5_SECURITY="$withval"
13791 : ${KRB5_SECURITY=no}
13795 case "$KRB5_SECURITY" in
13796 n | no) KRB5_SECURITY=no
13800 *) KRB5_SPOTS="$KRB5_SECURITY"
13805 # if found, force the static versions of these libs (.a) by linking directly
13806 # with the .a files. I don't know how to get -R dependancies checked
13807 # in autoconf at this time. -kashmir
13808 echo "$as_me:$LINENO: checking for Kerberos V" >&5
13809 echo $ECHO_N "checking for Kerberos V... $ECHO_C" >&6
13812 for dir in $KRB5_SPOTS; do
13813 for lib in lib lib64; do
13814 k5libdir=${dir}/${lib}
13815 if test -f ${k5libdir}/libkrb5.a -a -f ${k5libdir}/libgssapi_krb5.a -a -f ${k5libdir}/libcom_err.a; then
13816 if test -f ${k5libdir}/libk5crypto.a; then
13817 K5CRYPTO=-lk5crypto
13818 elif test -f ${k5libdir}/libcrypto.a; then
13823 if test -f ${k5libdir}/libkrb5support.a; then
13824 K5SUPPORT=-lkrb5support
13828 KRB5_DIR_FOUND=$dir
13829 KRB5LIBS="-lgssapi_krb5 -lkrb5 $K5CRYPTO $K5SUPPORT -lcom_err"
13832 elif test -f ${k5libdir}/libkrb5.a -a -f ${k5libdir}/libasn1.a -a -f ${k5libdir}/libgssapi.a; then
13833 KRB5_DIR_FOUND=$dir
13834 KRB5LIBS="-lgssapi.a -lkrb5.a -lasn1.a"
13835 KRB5_CFLAGS="-DKRB5_HEIMDAL_INCLUDES"
13841 if test "$KRB5_DIR_FOUND"; then
13842 echo "$as_me:$LINENO: result: found in $KRB5_DIR_FOUND" >&5
13843 echo "${ECHO_T}found in $KRB5_DIR_FOUND" >&6
13846 cat >>confdefs.h <<\_ACEOF
13847 #define KRB5_SECURITY 1
13851 # some OS's, such as NetBSD, stick krb5 includes out of the way...
13852 # should probably just use autoconf to look for various include
13853 # options and set them, but don't quite want to do that until I've
13854 # dug into it a bit more.
13856 if test -d "$KRB5_DIR_FOUND/krb5" ; then
13857 KRB5INCLUDES="-I$KRB5_DIR_FOUND/include/krb5"
13859 KRB5INCLUDES="-I$KRB5_DIR_FOUND/include"
13861 if test "$KRB5_CFLAGS" ; then
13862 KRB5INCLUDES="$KRB5INCLUDES $KRB5_CFLAGS"
13865 echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
13866 echo $ECHO_N "checking for main in -lkrb5support... $ECHO_C" >&6
13867 if test "${ac_cv_lib_krb5support_main+set}" = set; then
13868 echo $ECHO_N "(cached) $ECHO_C" >&6
13870 ac_check_lib_save_LIBS=$LIBS
13871 LIBS="-lkrb5support $LIBS"
13872 cat >conftest.$ac_ext <<_ACEOF
13875 cat confdefs.h >>conftest.$ac_ext
13876 cat >>conftest.$ac_ext <<_ACEOF
13877 /* end confdefs.h. */
13888 rm -f conftest.$ac_objext conftest$ac_exeext
13889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13890 (eval $ac_link) 2>conftest.er1
13892 grep -v '^ *+' conftest.er1 >conftest.err
13894 cat conftest.err >&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); } &&
13897 { ac_try='test -z "$ac_c_werror_flag"
13898 || test ! -s conftest.err'
13899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13900 (eval $ac_try) 2>&5
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); }; } &&
13904 { ac_try='test -s conftest$ac_exeext'
13905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13906 (eval $ac_try) 2>&5
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); }; }; then
13910 ac_cv_lib_krb5support_main=yes
13912 echo "$as_me: failed program was:" >&5
13913 sed 's/^/| /' conftest.$ac_ext >&5
13915 ac_cv_lib_krb5support_main=no
13917 rm -f conftest.err conftest.$ac_objext \
13918 conftest$ac_exeext conftest.$ac_ext
13919 LIBS=$ac_check_lib_save_LIBS
13921 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
13922 echo "${ECHO_T}$ac_cv_lib_krb5support_main" >&6
13923 if test $ac_cv_lib_krb5support_main = yes; then
13924 cat >>confdefs.h <<_ACEOF
13925 #define HAVE_LIBKRB5SUPPORT 1
13928 LIBS="-lkrb5support $LIBS"
13932 KRB5LDFLAGS=-L$k5libdir
13936 if test "x$KRB5LDFLAGS" = "x" ; then
13937 echo "$as_me:$LINENO: result: no krb5 system libraries found" >&5
13938 echo "${ECHO_T}no krb5 system libraries found" >&6
13943 # Check whether --with-low-tcpportrange or --without-low-tcpportrange was given.
13944 if test "${with_low_tcpportrange+set}" = set; then
13945 withval="$with_low_tcpportrange"
13947 LOW_TCPPORTRANGE="$withval"
13952 if test x"${LOW_TCPPORTRANGE+set}" = x"set"; then
13953 if test x`echo "$LOW_TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
13954 { { echo "$as_me:$LINENO: error: *** --with-low-tcpportrange requires two comma-separated positive numbers" >&5
13955 echo "$as_me: error: *** --with-low-tcpportrange requires two comma-separated positive numbers" >&2;}
13956 { (exit 1); exit 1; }; }
13958 min_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/,.*//'`
13959 max_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/.*,//'`
13960 if test $min_low_tcp_port -gt $max_low_tcp_port; then
13961 { { echo "$as_me:$LINENO: error: *** the second TCP port number must be greater than the first in --with-low-tcpportrange" >&5
13962 echo "$as_me: error: *** the second TCP port number must be greater than the first in --with-low-tcpportrange" >&2;}
13963 { (exit 1); exit 1; }; }
13965 if test $min_low_tcp_port -lt 512; then
13966 { echo "$as_me:$LINENO: WARNING: *** the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&5
13967 echo "$as_me: WARNING: *** the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&2;}
13969 if test $max_low_tcp_port -ge 1024; then
13970 { echo "$as_me:$LINENO: WARNING: *** the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&5
13971 echo "$as_me: WARNING: *** the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&2;}
13974 cat >>confdefs.h <<_ACEOF
13975 #define LOW_TCPPORTRANGE $LOW_TCPPORTRANGE
13981 # Check whether --with-tcpportrange or --without-tcpportrange was given.
13982 if test "${with_tcpportrange+set}" = set; then
13983 withval="$with_tcpportrange"
13985 TCPPORTRANGE="$withval"
13989 if test x"${TCPPORTRANGE+set}" = x"set"; then
13990 if test x`echo "$TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
13991 { { echo "$as_me:$LINENO: error: *** --with-tcpportrange requires two comma-separated positive numbers" >&5
13992 echo "$as_me: error: *** --with-tcpportrange requires two comma-separated positive numbers" >&2;}
13993 { (exit 1); exit 1; }; }
13995 min_tcp_port=`echo "$TCPPORTRANGE" | sed 's/,.*//'`
13996 max_tcp_port=`echo "$TCPPORTRANGE" | sed 's/.*,//'`
13997 if test $min_tcp_port -gt $max_tcp_port; then
13998 { { echo "$as_me:$LINENO: error: *** the second TCP port number must be greater than the first in --with-tcpportrange" >&5
13999 echo "$as_me: error: *** the second TCP port number must be greater than the first in --with-tcpportrange" >&2;}
14000 { (exit 1); exit 1; }; }
14002 if test $min_tcp_port -lt 1024; then
14003 { echo "$as_me:$LINENO: WARNING: *** the TCP port range should be 1024 or greater in --with-tcpportrange" >&5
14004 echo "$as_me: WARNING: *** the TCP port range should be 1024 or greater in --with-tcpportrange" >&2;}
14006 if test $max_tcp_port -ge 65536; then
14007 { echo "$as_me:$LINENO: WARNING: *** the TCP port range should be less than 65536 in --with-tcpportrange" >&5
14008 echo "$as_me: WARNING: *** the TCP port range should be less than 65536 in --with-tcpportrange" >&2;}
14011 cat >>confdefs.h <<_ACEOF
14012 #define TCPPORTRANGE $TCPPORTRANGE
14018 # Check whether --with-udpportrange or --without-udpportrange was given.
14019 if test "${with_udpportrange+set}" = set; then
14020 withval="$with_udpportrange"
14022 UDPPORTRANGE="$withval"
14026 if test x"${UDPPORTRANGE+set}" = x"set"; then
14027 if test x`echo "$UDPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
14028 { { echo "$as_me:$LINENO: error: *** --with-udpportrange requires two comma-separated positive numbers" >&5
14029 echo "$as_me: error: *** --with-udpportrange requires two comma-separated positive numbers" >&2;}
14030 { (exit 1); exit 1; }; }
14032 min_udp_port=`echo "$UDPPORTRANGE" | sed 's/,.*//'`
14033 max_udp_port=`echo "$UDPPORTRANGE" | sed 's/.*,//'`
14034 if test $min_udp_port -gt $max_udp_port; then
14035 { { echo "$as_me:$LINENO: error: *** the second UDP port number must be greater than the first in --with-udpportrange" >&5
14036 echo "$as_me: error: *** the second UDP port number must be greater than the first in --with-udpportrange" >&2;}
14037 { (exit 1); exit 1; }; }
14039 if test $max_udp_port -ge 1024; then
14040 { echo "$as_me:$LINENO: WARNING: *** the UDP port range should be less than 1024 in --with-udpportrange" >&5
14041 echo "$as_me: WARNING: *** the UDP port range should be less than 1024 in --with-udpportrange" >&2;}
14043 if test $min_udp_port -le 0; then
14044 { echo "$as_me:$LINENO: WARNING: *** the UDP port range should be greater than 0 in --with-udpportrange" >&5
14045 echo "$as_me: WARNING: *** the UDP port range should be greater than 0 in --with-udpportrange" >&2;}
14048 cat >>confdefs.h <<_ACEOF
14049 #define UDPPORTRANGE $UDPPORTRANGE
14055 # Check whether --with-maxtapeblocksize or --without-maxtapeblocksize was given.
14056 if test "${with_maxtapeblocksize+set}" = set; then
14057 withval="$with_maxtapeblocksize"
14059 MAXTAPEBLOCKSIZE="$withval"
14062 : ${MAXTAPEBLOCKSIZE=32}
14067 cat >>confdefs.h <<_ACEOF
14068 #define MAX_TAPE_BLOCK_KB ($MAXTAPEBLOCKSIZE)
14074 # Check whether --with-db or --without-db was given.
14075 if test "${with_db+set}" = set; then
14079 "" | y | ye | yes | n | no)
14080 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-db option." >&5
14081 echo "$as_me: error: *** You must supply an argument to the --with-db option." >&2;}
14082 { (exit 1); exit 1; }; }
14084 *) DB_STYLE="$withval"
14090 if test "$DB_STYLE"; then
14091 case "$DB_STYLE" in
14092 db | dbm | gdbm | ndbm | text) ;;
14094 { { echo "$as_me:$LINENO: error: *** Unknown argument $DB_STYLE given to --with-db. Choose from db, dbm, gdbm, ndbm, text." >&5
14095 echo "$as_me: error: *** Unknown argument $DB_STYLE given to --with-db. Choose from db, dbm, gdbm, ndbm, text." >&2;}
14096 { (exit 1); exit 1; }; }
14103 # Check whether --with-mmap or --without-mmap was given.
14104 if test "${with_mmap+set}" = set; then
14105 withval="$with_mmap"
14106 FORCE_MMAP=$withval
14111 case "$FORCE_MMAP" in
14112 y | ye | yes | n | no) : ;;
14113 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-mmap." >&5
14114 echo "$as_me: error: *** You must not supply an argument to --with-mmap." >&2;}
14115 { (exit 1); exit 1; }; }
14120 # Check whether --with-buffered-dump or --without-buffered-dump was given.
14121 if test "${with_buffered_dump+set}" = set; then
14122 withval="$with_buffered_dump"
14123 DUMPER_SOCKET_BUFFERING=$withval
14125 : ${DUMPER_SOCKET_BUFFERING=no}
14128 case "$DUMPER_SOCKET_BUFFERING" in
14132 cat >>confdefs.h <<\_ACEOF
14133 #define DUMPER_SOCKET_BUFFERING 1
14137 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-buffered-dump." >&5
14138 echo "$as_me: error: *** You must not supply an argument to --with-buffered-dump." >&2;}
14139 { (exit 1); exit 1; }; }
14144 # Check whether --with-assertions or --without-assertions was given.
14145 if test "${with_assertions+set}" = set; then
14146 withval="$with_assertions"
14147 ASSERTIONS="$withval"
14152 case "$ASSERTIONS" in
14155 cat >>confdefs.h <<\_ACEOF
14156 #define ASSERTIONS 1
14160 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-assertions option." >&5
14161 echo "$as_me: error: *** You must not supply an argument to --with-assertions option." >&2;}
14162 { (exit 1); exit 1; }; }
14167 # Check whether --with-tmpdir or --without-tmpdir was given.
14168 if test "${with_tmpdir+set}" = set; then
14169 withval="$with_tmpdir"
14176 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14177 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
14178 eval echo "$tmpdir"
14181 n | no) { { echo "$as_me:$LINENO: error: *** --without-tmpdir is not allowed." >&5
14182 echo "$as_me: error: *** --without-tmpdir is not allowed." >&2;}
14183 { (exit 1); exit 1; }; };;
14185 AMANDA_TMPDIR="/tmp/amanda";;
14187 AMANDA_TMPDIR="$tmpdir";;
14188 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-tmpdir option." >&5
14189 echo "$as_me: error: *** You must supply a full pathname to --with-tmpdir option." >&2;}
14190 { (exit 1); exit 1; }; };;
14193 cat >>confdefs.h <<_ACEOF
14194 #define AMANDA_TMPDIR "$AMANDA_TMPDIR"
14200 # Check whether --with-debugging or --without-debugging was given.
14201 if test "${with_debugging+set}" = set; then
14202 withval="$with_debugging"
14203 debugging="$withval"
14209 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14210 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
14211 eval echo "$debugging"
14213 case "$debugging" in
14214 n | no) AMANDA_DBGDIR="";;
14215 y | ye | yes) AMANDA_DBGDIR="$AMANDA_TMPDIR";;
14216 /*) AMANDA_DBGDIR="$debugging";;
14217 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-debugging option." >&5
14218 echo "$as_me: error: *** You must supply a full pathname to --with-debugging option." >&2;}
14219 { (exit 1); exit 1; }; }
14222 case "$AMANDA_DBGDIR" in
14225 cat >>confdefs.h <<\_ACEOF
14226 #define DEBUG_CODE 1
14230 cat >>confdefs.h <<_ACEOF
14231 #define AMANDA_DBGDIR "$AMANDA_DBGDIR"
14238 # Check whether --with-debug_days or --without-debug_days was given.
14239 if test "${with_debug_days+set}" = set; then
14240 withval="$with_debug_days"
14241 debug_days="$withval"
14246 case "$debug_days" in
14247 n | no) AMANDA_DEBUG_DAYS=0 ;;
14248 y | ye | yes) AMANDA_DEBUG_DAYS=4 ;;
14249 [0-9] | [0-9][0-9] | [0-9][0-9][0-9]) AMANDA_DEBUG_DAYS="$debug_days" ;;
14250 *) { { echo "$as_me:$LINENO: error: *** --with-debug-days value not numeric or out of range." >&5
14251 echo "$as_me: error: *** --with-debug-days value not numeric or out of range." >&2;}
14252 { (exit 1); exit 1; }; }
14256 cat >>confdefs.h <<_ACEOF
14257 #define AMANDA_DEBUG_DAYS $AMANDA_DEBUG_DAYS
14263 # Check whether --with-testing or --without-testing was given.
14264 if test "${with_testing+set}" = set; then
14265 withval="$with_testing"
14272 n | no) SERVICE_SUFFIX="";;
14273 y | ye | yes) SERVICE_SUFFIX="-test";;
14274 *) SERVICE_SUFFIX="-$TESTING";;
14276 AMANDA_SERVICE_NAME="amanda$SERVICE_SUFFIX"
14277 KAMANDA_SERVICE_NAME="kamanda$SERVICE_SUFFIX"
14280 cat >>confdefs.h <<_ACEOF
14281 #define SERVICE_SUFFIX "$SERVICE_SUFFIX"
14285 cat >>confdefs.h <<_ACEOF
14286 #define AMANDA_SERVICE_NAME "$AMANDA_SERVICE_NAME"
14290 cat >>confdefs.h <<_ACEOF
14291 #define KAMANDA_SERVICE_NAME "$KAMANDA_SERVICE_NAME"
14296 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14297 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
14299 tmp=`eval echo "$bindir"`
14301 cat >>confdefs.h <<_ACEOF
14302 #define bindir "$tmp"
14306 tmp=`eval echo "$sbindir"`
14308 cat >>confdefs.h <<_ACEOF
14309 #define sbindir "$tmp"
14313 tmp=`eval echo "$libexecdir"`
14315 cat >>confdefs.h <<_ACEOF
14316 #define libexecdir "$tmp"
14320 tmp=`eval echo $mandir`
14322 cat >>confdefs.h <<_ACEOF
14323 #define mandir "$tmp"
14328 DUMP_PROGRAMS="ufsdump dump backup"
14336 cat >>confdefs.h <<\_ACEOF
14337 #define STATFS_OSF1 1
14342 DUMP_PROGRAMS="dump "$DUMP_PROGRAMS
14343 : ${USE_RUNDUMP=yes}
14354 GETCONF_LFS="XBS5_ILP32_OFFBIG"
14357 AMANDA_CPPFLAGS="-D__STDC_EXT__ $AMANDA_CPPFLAGS"
14360 AMANDA_CFLAGS="-Ae $AMANDA_CFLAGS"
14365 GETCONF_LFS="XBS5_ILP32_OFFBIG"
14366 DUMP_PROGRAMS="backup "$DUMP_PROGRAMS
14368 cat >>confdefs.h <<\_ACEOF
14369 #define AIX_TAPEIO 1
14373 cat >>confdefs.h <<\_ACEOF
14374 #define AIX_BACKUP 1
14378 m88k-motorola-sysv4)
14412 : ${USE_RUNDUMP=yes}
14414 cat >>confdefs.h <<\_ACEOF
14415 #define STATFS_ULTRIX 1
14422 cat >>confdefs.h <<\_ACEOF
14423 #define UWARE_TAPEIO 1
14434 cat >>confdefs.h <<\_ACEOF
14435 #define STATFS_SCO_OS5 1
14446 cat >>confdefs.h <<\_ACEOF
14447 #define IGNORE_TAR_ERRORS 1
14450 # Cygwin needs PATH to find cygwin1.dll
14452 cat >>confdefs.h <<\_ACEOF
14453 #define NEED_PATH_ENV 1
14457 cat >>confdefs.h <<\_ACEOF
14458 #define IGNORE_UID_CHECK 1
14462 cat >>confdefs.h <<\_ACEOF
14463 #define IGNORE_FSTAB 1
14467 cat >>confdefs.h <<\_ACEOF
14468 #define DONT_SUID_ROOT 1
14471 NEED_SETUID_CLIENT=false
14472 NEED_RUNTIME_PSEUDO_RELOC=true
14479 This machine, target type $target, is not known
14480 to be fully supported by this configure script. If the
14481 installation of Amanda on this system succeeds or needed
14482 any patches, please email amanda-hackers@amanda.org with
14483 the patches or an indication of the sucess or failure of
14484 the Amanda installation on your system.
14491 if test -n "$dump_returns_1"; then
14493 cat >>confdefs.h <<\_ACEOF
14494 #define DUMP_RETURNS_1 1
14499 if test -n "$xenix_tapeio"; then
14501 cat >>confdefs.h <<\_ACEOF
14502 #define XENIX_TAPEIO 1
14507 AMANDA_CFLAGS="$AMANDA_CFLAGS $KRB4INCLUDES $KRB5INCLUDES $DBMALLOCCFLAGS"
14508 AMANDA_CPPFLAGS="$AMANDA_CPPFLAGS $KRB4INCLUDES $KRB5INCLUDES $DBMALLOCINCLUDES"
14509 AMANDA_LDFLAGS="$AMANDA_LDFLAGS $KRB4LDFLAGS $KRB5LDFLAGS"
14510 AMANDA_LIBS="$KRB4LIBS $KRB5LIBS $DBMALLOCLIBS $AMANDA_LIBS"
14511 CFLAGS="$CFLAGS $AMANDA_CFLAGS"
14512 CPPFLAGS="$CPPFLAGS $AMANDA_CPPFLAGS"
14513 LDFLAGS="$LDFLAGS $AMANDA_LDFLAGS"
14514 LIBS="$AMANDA_LIBS $LIBS"
14517 : ${MT_FILE_FLAG="-f"}
14520 cat >>confdefs.h <<_ACEOF
14521 #define MT_FILE_FLAG "$MT_FILE_FLAG"
14525 # ------ AX CREATE STDINT H -------------------------------------
14526 echo "$as_me:$LINENO: checking for stdint types" >&5
14527 echo $ECHO_N "checking for stdint types... $ECHO_C" >&6
14528 ac_stdint_h=`echo common-src/amanda-int.h`
14529 # try to shortcircuit - if the default include path of the compiler
14530 # can find a "stdint.h" header then we assume that all compilers can.
14531 if test "${ac_cv_header_stdint_t+set}" = set; then
14532 echo $ECHO_N "(cached) $ECHO_C" >&6
14535 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
14536 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
14537 old_CFLAGS="$CFLAGS" ; CFLAGS=""
14538 cat >conftest.$ac_ext <<_ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h. */
14544 #include <stdint.h>
14548 int_least32_t v = 0;
14553 rm -f conftest.$ac_objext
14554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14555 (eval $ac_compile) 2>conftest.er1
14557 grep -v '^ *+' conftest.er1 >conftest.err
14559 cat conftest.err >&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } &&
14562 { ac_try='test -z "$ac_c_werror_flag"
14563 || test ! -s conftest.err'
14564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14565 (eval $ac_try) 2>&5
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }; } &&
14569 { ac_try='test -s conftest.$ac_objext'
14570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14571 (eval $ac_try) 2>&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); }; }; then
14575 ac_cv_stdint_result="(assuming C99 compatible system)"
14576 ac_cv_header_stdint_t="stdint.h";
14578 echo "$as_me: failed program was:" >&5
14579 sed 's/^/| /' conftest.$ac_ext >&5
14581 ac_cv_header_stdint_t=""
14583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14584 CXXFLAGS="$old_CXXFLAGS"
14585 CPPFLAGS="$old_CPPFLAGS"
14586 CFLAGS="$old_CFLAGS"
14590 v="... $ac_cv_header_stdint_h"
14591 if test "$ac_stdint_h" = "stdint.h" ; then
14592 echo "$as_me:$LINENO: result: (are you sure you want them in ./stdint.h?)" >&5
14593 echo "${ECHO_T}(are you sure you want them in ./stdint.h?)" >&6
14594 elif test "$ac_stdint_h" = "inttypes.h" ; then
14595 echo "$as_me:$LINENO: result: (are you sure you want them in ./inttypes.h?)" >&5
14596 echo "${ECHO_T}(are you sure you want them in ./inttypes.h?)" >&6
14597 elif test "_$ac_cv_header_stdint_t" = "_" ; then
14598 echo "$as_me:$LINENO: result: (putting them into $ac_stdint_h)$v" >&5
14599 echo "${ECHO_T}(putting them into $ac_stdint_h)$v" >&6
14601 ac_cv_header_stdint="$ac_cv_header_stdint_t"
14602 echo "$as_me:$LINENO: result: $ac_cv_header_stdint (shortcircuit)" >&5
14603 echo "${ECHO_T}$ac_cv_header_stdint (shortcircuit)" >&6
14606 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
14609 inttype_headers=`echo | sed -e 's/,/ /g'`
14611 ac_cv_stdint_result="(no helpful system typedefs seen)"
14613 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
14614 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
14615 if test "${ac_cv_header_stdint_x+set}" = set; then
14616 echo $ECHO_N "(cached) $ECHO_C" >&6
14619 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
14620 echo "$as_me:$LINENO: result: (..)" >&5
14621 echo "${ECHO_T}(..)" >&6
14622 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
14623 unset ac_cv_type_uintptr_t
14624 unset ac_cv_type_uint64_t
14625 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14626 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14627 if test "${ac_cv_type_uintptr_t+set}" = set; then
14628 echo $ECHO_N "(cached) $ECHO_C" >&6
14630 cat >conftest.$ac_ext <<_ACEOF
14633 cat confdefs.h >>conftest.$ac_ext
14634 cat >>conftest.$ac_ext <<_ACEOF
14635 /* end confdefs.h. */
14641 if ((uintptr_t *) 0)
14643 if (sizeof (uintptr_t))
14649 rm -f conftest.$ac_objext
14650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14651 (eval $ac_compile) 2>conftest.er1
14653 grep -v '^ *+' conftest.er1 >conftest.err
14655 cat conftest.err >&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); } &&
14658 { ac_try='test -z "$ac_c_werror_flag"
14659 || test ! -s conftest.err'
14660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661 (eval $ac_try) 2>&5
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; } &&
14665 { ac_try='test -s conftest.$ac_objext'
14666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14667 (eval $ac_try) 2>&5
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); }; }; then
14671 ac_cv_type_uintptr_t=yes
14673 echo "$as_me: failed program was:" >&5
14674 sed 's/^/| /' conftest.$ac_ext >&5
14676 ac_cv_type_uintptr_t=no
14678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14680 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14681 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14682 if test $ac_cv_type_uintptr_t = yes; then
14683 ac_cv_header_stdint_x=$i
14688 echo "$as_me:$LINENO: checking for uint64_t" >&5
14689 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14690 if test "${ac_cv_type_uint64_t+set}" = set; then
14691 echo $ECHO_N "(cached) $ECHO_C" >&6
14693 cat >conftest.$ac_ext <<_ACEOF
14696 cat confdefs.h >>conftest.$ac_ext
14697 cat >>conftest.$ac_ext <<_ACEOF
14698 /* end confdefs.h. */
14704 if ((uint64_t *) 0)
14706 if (sizeof (uint64_t))
14712 rm -f conftest.$ac_objext
14713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14714 (eval $ac_compile) 2>conftest.er1
14716 grep -v '^ *+' conftest.er1 >conftest.err
14718 cat conftest.err >&5
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); } &&
14721 { ac_try='test -z "$ac_c_werror_flag"
14722 || test ! -s conftest.err'
14723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14724 (eval $ac_try) 2>&5
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); }; } &&
14728 { ac_try='test -s conftest.$ac_objext'
14729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14730 (eval $ac_try) 2>&5
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); }; }; then
14734 ac_cv_type_uint64_t=yes
14736 echo "$as_me: failed program was:" >&5
14737 sed 's/^/| /' conftest.$ac_ext >&5
14739 ac_cv_type_uint64_t=no
14741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14743 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14744 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14745 if test $ac_cv_type_uint64_t = yes; then
14751 stdint.h inttypes.h sys/inttypes.h $inttype_headers
14754 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
14755 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
14758 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5
14759 echo "${ECHO_T}$ac_cv_header_stdint_x" >&6
14762 if test "_$ac_cv_header_stdint_x" = "_" ; then
14764 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
14765 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
14766 if test "${ac_cv_header_stdint_o+set}" = set; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14770 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
14771 echo "$as_me:$LINENO: result: (..)" >&5
14772 echo "${ECHO_T}(..)" >&6
14773 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
14774 unset ac_cv_type_uint32_t
14775 unset ac_cv_type_uint64_t
14776 echo "$as_me:$LINENO: checking for uint32_t" >&5
14777 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
14778 if test "${ac_cv_type_uint32_t+set}" = set; then
14779 echo $ECHO_N "(cached) $ECHO_C" >&6
14781 cat >conftest.$ac_ext <<_ACEOF
14784 cat confdefs.h >>conftest.$ac_ext
14785 cat >>conftest.$ac_ext <<_ACEOF
14786 /* end confdefs.h. */
14792 if ((uint32_t *) 0)
14794 if (sizeof (uint32_t))
14800 rm -f conftest.$ac_objext
14801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14802 (eval $ac_compile) 2>conftest.er1
14804 grep -v '^ *+' conftest.er1 >conftest.err
14806 cat conftest.err >&5
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); } &&
14809 { ac_try='test -z "$ac_c_werror_flag"
14810 || test ! -s conftest.err'
14811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812 (eval $ac_try) 2>&5
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); }; } &&
14816 { ac_try='test -s conftest.$ac_objext'
14817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14818 (eval $ac_try) 2>&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); }; }; then
14822 ac_cv_type_uint32_t=yes
14824 echo "$as_me: failed program was:" >&5
14825 sed 's/^/| /' conftest.$ac_ext >&5
14827 ac_cv_type_uint32_t=no
14829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14831 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
14832 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
14833 if test $ac_cv_type_uint32_t = yes; then
14834 ac_cv_header_stdint_o=$i
14839 echo "$as_me:$LINENO: checking for uint64_t" >&5
14840 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14841 if test "${ac_cv_type_uint64_t+set}" = set; then
14842 echo $ECHO_N "(cached) $ECHO_C" >&6
14844 cat >conftest.$ac_ext <<_ACEOF
14847 cat confdefs.h >>conftest.$ac_ext
14848 cat >>conftest.$ac_ext <<_ACEOF
14849 /* end confdefs.h. */
14855 if ((uint64_t *) 0)
14857 if (sizeof (uint64_t))
14863 rm -f conftest.$ac_objext
14864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14865 (eval $ac_compile) 2>conftest.er1
14867 grep -v '^ *+' conftest.er1 >conftest.err
14869 cat conftest.err >&5
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); } &&
14872 { ac_try='test -z "$ac_c_werror_flag"
14873 || test ! -s conftest.err'
14874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14875 (eval $ac_try) 2>&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); }; } &&
14879 { ac_try='test -s conftest.$ac_objext'
14880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881 (eval $ac_try) 2>&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); }; }; then
14885 ac_cv_type_uint64_t=yes
14887 echo "$as_me: failed program was:" >&5
14888 sed 's/^/| /' conftest.$ac_ext >&5
14890 ac_cv_type_uint64_t=no
14892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14894 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14895 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14896 if test $ac_cv_type_uint64_t = yes; then
14902 inttypes.h sys/inttypes.h stdint.h $inttype_headers
14906 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
14907 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
14910 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5
14911 echo "${ECHO_T}$ac_cv_header_stdint_o" >&6
14915 if test "_$ac_cv_header_stdint_x" = "_" ; then
14916 if test "_$ac_cv_header_stdint_o" = "_" ; then
14918 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
14919 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
14920 if test "${ac_cv_header_stdint_u+set}" = set; then
14921 echo $ECHO_N "(cached) $ECHO_C" >&6
14924 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
14925 echo "$as_me:$LINENO: result: (..)" >&5
14926 echo "${ECHO_T}(..)" >&6
14927 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
14928 unset ac_cv_type_u_int32_t
14929 unset ac_cv_type_u_int64_t
14930 echo "$as_me:$LINENO: checking for u_int32_t" >&5
14931 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14932 if test "${ac_cv_type_u_int32_t+set}" = set; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14935 cat >conftest.$ac_ext <<_ACEOF
14938 cat confdefs.h >>conftest.$ac_ext
14939 cat >>conftest.$ac_ext <<_ACEOF
14940 /* end confdefs.h. */
14946 if ((u_int32_t *) 0)
14948 if (sizeof (u_int32_t))
14954 rm -f conftest.$ac_objext
14955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14956 (eval $ac_compile) 2>conftest.er1
14958 grep -v '^ *+' conftest.er1 >conftest.err
14960 cat conftest.err >&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); } &&
14963 { ac_try='test -z "$ac_c_werror_flag"
14964 || test ! -s conftest.err'
14965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14966 (eval $ac_try) 2>&5
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); }; } &&
14970 { ac_try='test -s conftest.$ac_objext'
14971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972 (eval $ac_try) 2>&5
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); }; }; then
14976 ac_cv_type_u_int32_t=yes
14978 echo "$as_me: failed program was:" >&5
14979 sed 's/^/| /' conftest.$ac_ext >&5
14981 ac_cv_type_u_int32_t=no
14983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14985 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14986 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14987 if test $ac_cv_type_u_int32_t = yes; then
14988 ac_cv_header_stdint_u=$i
14993 echo "$as_me:$LINENO: checking for u_int64_t" >&5
14994 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14995 if test "${ac_cv_type_u_int64_t+set}" = set; then
14996 echo $ECHO_N "(cached) $ECHO_C" >&6
14998 cat >conftest.$ac_ext <<_ACEOF
15001 cat confdefs.h >>conftest.$ac_ext
15002 cat >>conftest.$ac_ext <<_ACEOF
15003 /* end confdefs.h. */
15009 if ((u_int64_t *) 0)
15011 if (sizeof (u_int64_t))
15017 rm -f conftest.$ac_objext
15018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15019 (eval $ac_compile) 2>conftest.er1
15021 grep -v '^ *+' conftest.er1 >conftest.err
15023 cat conftest.err >&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } &&
15026 { ac_try='test -z "$ac_c_werror_flag"
15027 || test ! -s conftest.err'
15028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029 (eval $ac_try) 2>&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; } &&
15033 { ac_try='test -s conftest.$ac_objext'
15034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15035 (eval $ac_try) 2>&5
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); }; }; then
15039 ac_cv_type_u_int64_t=yes
15041 echo "$as_me: failed program was:" >&5
15042 sed 's/^/| /' conftest.$ac_ext >&5
15044 ac_cv_type_u_int64_t=no
15046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15048 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
15049 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
15050 if test $ac_cv_type_u_int64_t = yes; then
15056 sys/types.h inttypes.h sys/inttypes.h $inttype_headers
15060 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
15061 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
15064 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5
15065 echo "${ECHO_T}$ac_cv_header_stdint_u" >&6
15069 if test "_$ac_cv_header_stdint_x" = "_" ; then
15070 echo "$as_me:$LINENO: checking for stdint datatype model" >&5
15071 echo $ECHO_N "checking for stdint datatype model... $ECHO_C" >&6
15072 echo "$as_me:$LINENO: result: (..)" >&5
15073 echo "${ECHO_T}(..)" >&6
15075 echo "$as_me:$LINENO: checking for char" >&5
15076 echo $ECHO_N "checking for char... $ECHO_C" >&6
15077 if test "${ac_cv_type_char+set}" = set; then
15078 echo $ECHO_N "(cached) $ECHO_C" >&6
15080 cat >conftest.$ac_ext <<_ACEOF
15083 cat confdefs.h >>conftest.$ac_ext
15084 cat >>conftest.$ac_ext <<_ACEOF
15085 /* end confdefs.h. */
15086 $ac_includes_default
15098 rm -f conftest.$ac_objext
15099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15100 (eval $ac_compile) 2>conftest.er1
15102 grep -v '^ *+' conftest.er1 >conftest.err
15104 cat conftest.err >&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } &&
15107 { ac_try='test -z "$ac_c_werror_flag"
15108 || test ! -s conftest.err'
15109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110 (eval $ac_try) 2>&5
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; } &&
15114 { ac_try='test -s conftest.$ac_objext'
15115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15116 (eval $ac_try) 2>&5
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); }; }; then
15120 ac_cv_type_char=yes
15122 echo "$as_me: failed program was:" >&5
15123 sed 's/^/| /' conftest.$ac_ext >&5
15127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15129 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15130 echo "${ECHO_T}$ac_cv_type_char" >&6
15132 echo "$as_me:$LINENO: checking size of char" >&5
15133 echo $ECHO_N "checking size of char... $ECHO_C" >&6
15134 if test "${ac_cv_sizeof_char+set}" = set; then
15135 echo $ECHO_N "(cached) $ECHO_C" >&6
15137 if test "$ac_cv_type_char" = yes; then
15138 # The cast to unsigned long works around a bug in the HP C Compiler
15139 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15140 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15141 # This bug is HP SR number 8606223364.
15142 if test "$cross_compiling" = yes; then
15143 # Depending upon the size, compute the lo and hi bounds.
15144 cat >conftest.$ac_ext <<_ACEOF
15147 cat confdefs.h >>conftest.$ac_ext
15148 cat >>conftest.$ac_ext <<_ACEOF
15149 /* end confdefs.h. */
15150 $ac_includes_default
15154 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15161 rm -f conftest.$ac_objext
15162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15163 (eval $ac_compile) 2>conftest.er1
15165 grep -v '^ *+' conftest.er1 >conftest.err
15167 cat conftest.err >&5
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); } &&
15170 { ac_try='test -z "$ac_c_werror_flag"
15171 || test ! -s conftest.err'
15172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15173 (eval $ac_try) 2>&5
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); }; } &&
15177 { ac_try='test -s conftest.$ac_objext'
15178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179 (eval $ac_try) 2>&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; }; then
15185 cat >conftest.$ac_ext <<_ACEOF
15188 cat confdefs.h >>conftest.$ac_ext
15189 cat >>conftest.$ac_ext <<_ACEOF
15190 /* end confdefs.h. */
15191 $ac_includes_default
15195 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15202 rm -f conftest.$ac_objext
15203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15204 (eval $ac_compile) 2>conftest.er1
15206 grep -v '^ *+' conftest.er1 >conftest.err
15208 cat conftest.err >&5
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); } &&
15211 { ac_try='test -z "$ac_c_werror_flag"
15212 || test ! -s conftest.err'
15213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15214 (eval $ac_try) 2>&5
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); }; } &&
15218 { ac_try='test -s conftest.$ac_objext'
15219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15220 (eval $ac_try) 2>&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); }; }; then
15224 ac_hi=$ac_mid; break
15226 echo "$as_me: failed program was:" >&5
15227 sed 's/^/| /' conftest.$ac_ext >&5
15229 ac_lo=`expr $ac_mid + 1`
15230 if test $ac_lo -le $ac_mid; then
15234 ac_mid=`expr 2 '*' $ac_mid + 1`
15236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15239 echo "$as_me: failed program was:" >&5
15240 sed 's/^/| /' conftest.$ac_ext >&5
15242 cat >conftest.$ac_ext <<_ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h. */
15248 $ac_includes_default
15252 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15259 rm -f conftest.$ac_objext
15260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15261 (eval $ac_compile) 2>conftest.er1
15263 grep -v '^ *+' conftest.er1 >conftest.err
15265 cat conftest.err >&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); } &&
15268 { ac_try='test -z "$ac_c_werror_flag"
15269 || test ! -s conftest.err'
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; } &&
15275 { ac_try='test -s conftest.$ac_objext'
15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
15283 cat >conftest.$ac_ext <<_ACEOF
15286 cat confdefs.h >>conftest.$ac_ext
15287 cat >>conftest.$ac_ext <<_ACEOF
15288 /* end confdefs.h. */
15289 $ac_includes_default
15293 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15300 rm -f conftest.$ac_objext
15301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15302 (eval $ac_compile) 2>conftest.er1
15304 grep -v '^ *+' conftest.er1 >conftest.err
15306 cat conftest.err >&5
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); } &&
15309 { ac_try='test -z "$ac_c_werror_flag"
15310 || test ! -s conftest.err'
15311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15312 (eval $ac_try) 2>&5
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); }; } &&
15316 { ac_try='test -s conftest.$ac_objext'
15317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318 (eval $ac_try) 2>&5
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); }; }; then
15322 ac_lo=$ac_mid; break
15324 echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15327 ac_hi=`expr '(' $ac_mid ')' - 1`
15328 if test $ac_mid -le $ac_hi; then
15332 ac_mid=`expr 2 '*' $ac_mid`
15334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15337 echo "$as_me: failed program was:" >&5
15338 sed 's/^/| /' conftest.$ac_ext >&5
15342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15345 # Binary search between lo and hi bounds.
15346 while test "x$ac_lo" != "x$ac_hi"; do
15347 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15348 cat >conftest.$ac_ext <<_ACEOF
15351 cat confdefs.h >>conftest.$ac_ext
15352 cat >>conftest.$ac_ext <<_ACEOF
15353 /* end confdefs.h. */
15354 $ac_includes_default
15358 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15365 rm -f conftest.$ac_objext
15366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15367 (eval $ac_compile) 2>conftest.er1
15369 grep -v '^ *+' conftest.er1 >conftest.err
15371 cat conftest.err >&5
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); } &&
15374 { ac_try='test -z "$ac_c_werror_flag"
15375 || test ! -s conftest.err'
15376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377 (eval $ac_try) 2>&5
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); }; } &&
15381 { ac_try='test -s conftest.$ac_objext'
15382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383 (eval $ac_try) 2>&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); }; }; then
15389 echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15392 ac_lo=`expr '(' $ac_mid ')' + 1`
15394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15397 ?*) ac_cv_sizeof_char=$ac_lo;;
15398 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15399 See \`config.log' for more details." >&5
15400 echo "$as_me: error: cannot compute sizeof (char), 77
15401 See \`config.log' for more details." >&2;}
15402 { (exit 1); exit 1; }; } ;;
15405 if test "$cross_compiling" = yes; then
15406 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15407 See \`config.log' for more details." >&5
15408 echo "$as_me: error: cannot run test program while cross compiling
15409 See \`config.log' for more details." >&2;}
15410 { (exit 1); exit 1; }; }
15412 cat >conftest.$ac_ext <<_ACEOF
15415 cat confdefs.h >>conftest.$ac_ext
15416 cat >>conftest.$ac_ext <<_ACEOF
15417 /* end confdefs.h. */
15418 $ac_includes_default
15419 long longval () { return (long) (sizeof (char)); }
15420 unsigned long ulongval () { return (long) (sizeof (char)); }
15422 #include <stdlib.h>
15427 FILE *f = fopen ("conftest.val", "w");
15430 if (((long) (sizeof (char))) < 0)
15432 long i = longval ();
15433 if (i != ((long) (sizeof (char))))
15435 fprintf (f, "%ld\n", i);
15439 unsigned long i = ulongval ();
15440 if (i != ((long) (sizeof (char))))
15442 fprintf (f, "%lu\n", i);
15444 exit (ferror (f) || fclose (f) != 0);
15450 rm -f conftest$ac_exeext
15451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15452 (eval $ac_link) 2>&5
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15457 (eval $ac_try) 2>&5
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); }; }; then
15461 ac_cv_sizeof_char=`cat conftest.val`
15463 echo "$as_me: program exited with status $ac_status" >&5
15464 echo "$as_me: failed program was:" >&5
15465 sed 's/^/| /' conftest.$ac_ext >&5
15467 ( exit $ac_status )
15468 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15469 See \`config.log' for more details." >&5
15470 echo "$as_me: error: cannot compute sizeof (char), 77
15471 See \`config.log' for more details." >&2;}
15472 { (exit 1); exit 1; }; }
15474 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15479 ac_cv_sizeof_char=0
15482 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15483 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15484 cat >>confdefs.h <<_ACEOF
15485 #define SIZEOF_CHAR $ac_cv_sizeof_char
15489 echo "$as_me:$LINENO: checking for short" >&5
15490 echo $ECHO_N "checking for short... $ECHO_C" >&6
15491 if test "${ac_cv_type_short+set}" = set; then
15492 echo $ECHO_N "(cached) $ECHO_C" >&6
15494 cat >conftest.$ac_ext <<_ACEOF
15497 cat confdefs.h >>conftest.$ac_ext
15498 cat >>conftest.$ac_ext <<_ACEOF
15499 /* end confdefs.h. */
15500 $ac_includes_default
15506 if (sizeof (short))
15512 rm -f conftest.$ac_objext
15513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15514 (eval $ac_compile) 2>conftest.er1
15516 grep -v '^ *+' conftest.er1 >conftest.err
15518 cat conftest.err >&5
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); } &&
15521 { ac_try='test -z "$ac_c_werror_flag"
15522 || test ! -s conftest.err'
15523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524 (eval $ac_try) 2>&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; } &&
15528 { ac_try='test -s conftest.$ac_objext'
15529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15530 (eval $ac_try) 2>&5
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); }; }; then
15534 ac_cv_type_short=yes
15536 echo "$as_me: failed program was:" >&5
15537 sed 's/^/| /' conftest.$ac_ext >&5
15539 ac_cv_type_short=no
15541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15543 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15544 echo "${ECHO_T}$ac_cv_type_short" >&6
15546 echo "$as_me:$LINENO: checking size of short" >&5
15547 echo $ECHO_N "checking size of short... $ECHO_C" >&6
15548 if test "${ac_cv_sizeof_short+set}" = set; then
15549 echo $ECHO_N "(cached) $ECHO_C" >&6
15551 if test "$ac_cv_type_short" = yes; then
15552 # The cast to unsigned long works around a bug in the HP C Compiler
15553 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15554 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15555 # This bug is HP SR number 8606223364.
15556 if test "$cross_compiling" = yes; then
15557 # Depending upon the size, compute the lo and hi bounds.
15558 cat >conftest.$ac_ext <<_ACEOF
15561 cat confdefs.h >>conftest.$ac_ext
15562 cat >>conftest.$ac_ext <<_ACEOF
15563 /* end confdefs.h. */
15564 $ac_includes_default
15568 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15575 rm -f conftest.$ac_objext
15576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15577 (eval $ac_compile) 2>conftest.er1
15579 grep -v '^ *+' conftest.er1 >conftest.err
15581 cat conftest.err >&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } &&
15584 { ac_try='test -z "$ac_c_werror_flag"
15585 || test ! -s conftest.err'
15586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587 (eval $ac_try) 2>&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); }; } &&
15591 { ac_try='test -s conftest.$ac_objext'
15592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593 (eval $ac_try) 2>&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); }; }; then
15599 cat >conftest.$ac_ext <<_ACEOF
15602 cat confdefs.h >>conftest.$ac_ext
15603 cat >>conftest.$ac_ext <<_ACEOF
15604 /* end confdefs.h. */
15605 $ac_includes_default
15609 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15616 rm -f conftest.$ac_objext
15617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15618 (eval $ac_compile) 2>conftest.er1
15620 grep -v '^ *+' conftest.er1 >conftest.err
15622 cat conftest.err >&5
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); } &&
15625 { ac_try='test -z "$ac_c_werror_flag"
15626 || test ! -s conftest.err'
15627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15628 (eval $ac_try) 2>&5
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); }; } &&
15632 { ac_try='test -s conftest.$ac_objext'
15633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15634 (eval $ac_try) 2>&5
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); }; }; then
15638 ac_hi=$ac_mid; break
15640 echo "$as_me: failed program was:" >&5
15641 sed 's/^/| /' conftest.$ac_ext >&5
15643 ac_lo=`expr $ac_mid + 1`
15644 if test $ac_lo -le $ac_mid; then
15648 ac_mid=`expr 2 '*' $ac_mid + 1`
15650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15653 echo "$as_me: failed program was:" >&5
15654 sed 's/^/| /' conftest.$ac_ext >&5
15656 cat >conftest.$ac_ext <<_ACEOF
15659 cat confdefs.h >>conftest.$ac_ext
15660 cat >>conftest.$ac_ext <<_ACEOF
15661 /* end confdefs.h. */
15662 $ac_includes_default
15666 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15673 rm -f conftest.$ac_objext
15674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15675 (eval $ac_compile) 2>conftest.er1
15677 grep -v '^ *+' conftest.er1 >conftest.err
15679 cat conftest.err >&5
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); } &&
15682 { ac_try='test -z "$ac_c_werror_flag"
15683 || test ! -s conftest.err'
15684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15685 (eval $ac_try) 2>&5
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); }; } &&
15689 { ac_try='test -s conftest.$ac_objext'
15690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691 (eval $ac_try) 2>&5
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; }; then
15697 cat >conftest.$ac_ext <<_ACEOF
15700 cat confdefs.h >>conftest.$ac_ext
15701 cat >>conftest.$ac_ext <<_ACEOF
15702 /* end confdefs.h. */
15703 $ac_includes_default
15707 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15714 rm -f conftest.$ac_objext
15715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15716 (eval $ac_compile) 2>conftest.er1
15718 grep -v '^ *+' conftest.er1 >conftest.err
15720 cat conftest.err >&5
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); } &&
15723 { ac_try='test -z "$ac_c_werror_flag"
15724 || test ! -s conftest.err'
15725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726 (eval $ac_try) 2>&5
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); }; } &&
15730 { ac_try='test -s conftest.$ac_objext'
15731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15732 (eval $ac_try) 2>&5
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); }; }; then
15736 ac_lo=$ac_mid; break
15738 echo "$as_me: failed program was:" >&5
15739 sed 's/^/| /' conftest.$ac_ext >&5
15741 ac_hi=`expr '(' $ac_mid ')' - 1`
15742 if test $ac_mid -le $ac_hi; then
15746 ac_mid=`expr 2 '*' $ac_mid`
15748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15751 echo "$as_me: failed program was:" >&5
15752 sed 's/^/| /' conftest.$ac_ext >&5
15756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15759 # Binary search between lo and hi bounds.
15760 while test "x$ac_lo" != "x$ac_hi"; do
15761 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15762 cat >conftest.$ac_ext <<_ACEOF
15765 cat confdefs.h >>conftest.$ac_ext
15766 cat >>conftest.$ac_ext <<_ACEOF
15767 /* end confdefs.h. */
15768 $ac_includes_default
15772 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15779 rm -f conftest.$ac_objext
15780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15781 (eval $ac_compile) 2>conftest.er1
15783 grep -v '^ *+' conftest.er1 >conftest.err
15785 cat conftest.err >&5
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); } &&
15788 { ac_try='test -z "$ac_c_werror_flag"
15789 || test ! -s conftest.err'
15790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15791 (eval $ac_try) 2>&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); }; } &&
15795 { ac_try='test -s conftest.$ac_objext'
15796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15797 (eval $ac_try) 2>&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); }; }; then
15803 echo "$as_me: failed program was:" >&5
15804 sed 's/^/| /' conftest.$ac_ext >&5
15806 ac_lo=`expr '(' $ac_mid ')' + 1`
15808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15811 ?*) ac_cv_sizeof_short=$ac_lo;;
15812 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15813 See \`config.log' for more details." >&5
15814 echo "$as_me: error: cannot compute sizeof (short), 77
15815 See \`config.log' for more details." >&2;}
15816 { (exit 1); exit 1; }; } ;;
15819 if test "$cross_compiling" = yes; then
15820 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15821 See \`config.log' for more details." >&5
15822 echo "$as_me: error: cannot run test program while cross compiling
15823 See \`config.log' for more details." >&2;}
15824 { (exit 1); exit 1; }; }
15826 cat >conftest.$ac_ext <<_ACEOF
15829 cat confdefs.h >>conftest.$ac_ext
15830 cat >>conftest.$ac_ext <<_ACEOF
15831 /* end confdefs.h. */
15832 $ac_includes_default
15833 long longval () { return (long) (sizeof (short)); }
15834 unsigned long ulongval () { return (long) (sizeof (short)); }
15836 #include <stdlib.h>
15841 FILE *f = fopen ("conftest.val", "w");
15844 if (((long) (sizeof (short))) < 0)
15846 long i = longval ();
15847 if (i != ((long) (sizeof (short))))
15849 fprintf (f, "%ld\n", i);
15853 unsigned long i = ulongval ();
15854 if (i != ((long) (sizeof (short))))
15856 fprintf (f, "%lu\n", i);
15858 exit (ferror (f) || fclose (f) != 0);
15864 rm -f conftest$ac_exeext
15865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15866 (eval $ac_link) 2>&5
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15871 (eval $ac_try) 2>&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); }; }; then
15875 ac_cv_sizeof_short=`cat conftest.val`
15877 echo "$as_me: program exited with status $ac_status" >&5
15878 echo "$as_me: failed program was:" >&5
15879 sed 's/^/| /' conftest.$ac_ext >&5
15881 ( exit $ac_status )
15882 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15883 See \`config.log' for more details." >&5
15884 echo "$as_me: error: cannot compute sizeof (short), 77
15885 See \`config.log' for more details." >&2;}
15886 { (exit 1); exit 1; }; }
15888 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15893 ac_cv_sizeof_short=0
15896 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15897 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15898 cat >>confdefs.h <<_ACEOF
15899 #define SIZEOF_SHORT $ac_cv_sizeof_short
15903 echo "$as_me:$LINENO: checking for int" >&5
15904 echo $ECHO_N "checking for int... $ECHO_C" >&6
15905 if test "${ac_cv_type_int+set}" = set; then
15906 echo $ECHO_N "(cached) $ECHO_C" >&6
15908 cat >conftest.$ac_ext <<_ACEOF
15911 cat confdefs.h >>conftest.$ac_ext
15912 cat >>conftest.$ac_ext <<_ACEOF
15913 /* end confdefs.h. */
15914 $ac_includes_default
15926 rm -f conftest.$ac_objext
15927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15928 (eval $ac_compile) 2>conftest.er1
15930 grep -v '^ *+' conftest.er1 >conftest.err
15932 cat conftest.err >&5
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); } &&
15935 { ac_try='test -z "$ac_c_werror_flag"
15936 || test ! -s conftest.err'
15937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15938 (eval $ac_try) 2>&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); }; } &&
15942 { ac_try='test -s conftest.$ac_objext'
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; }; then
15950 echo "$as_me: failed program was:" >&5
15951 sed 's/^/| /' conftest.$ac_ext >&5
15955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15957 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15958 echo "${ECHO_T}$ac_cv_type_int" >&6
15960 echo "$as_me:$LINENO: checking size of int" >&5
15961 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15962 if test "${ac_cv_sizeof_int+set}" = set; then
15963 echo $ECHO_N "(cached) $ECHO_C" >&6
15965 if test "$ac_cv_type_int" = yes; then
15966 # The cast to unsigned long works around a bug in the HP C Compiler
15967 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15968 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15969 # This bug is HP SR number 8606223364.
15970 if test "$cross_compiling" = yes; then
15971 # Depending upon the size, compute the lo and hi bounds.
15972 cat >conftest.$ac_ext <<_ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h. */
15978 $ac_includes_default
15982 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15989 rm -f conftest.$ac_objext
15990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15991 (eval $ac_compile) 2>conftest.er1
15993 grep -v '^ *+' conftest.er1 >conftest.err
15995 cat conftest.err >&5
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); } &&
15998 { ac_try='test -z "$ac_c_werror_flag"
15999 || test ! -s conftest.err'
16000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16001 (eval $ac_try) 2>&5
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); }; } &&
16005 { ac_try='test -s conftest.$ac_objext'
16006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16007 (eval $ac_try) 2>&5
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); }; }; then
16013 cat >conftest.$ac_ext <<_ACEOF
16016 cat confdefs.h >>conftest.$ac_ext
16017 cat >>conftest.$ac_ext <<_ACEOF
16018 /* end confdefs.h. */
16019 $ac_includes_default
16023 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16030 rm -f conftest.$ac_objext
16031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16032 (eval $ac_compile) 2>conftest.er1
16034 grep -v '^ *+' conftest.er1 >conftest.err
16036 cat conftest.err >&5
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); } &&
16039 { ac_try='test -z "$ac_c_werror_flag"
16040 || test ! -s conftest.err'
16041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042 (eval $ac_try) 2>&5
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); }; } &&
16046 { ac_try='test -s conftest.$ac_objext'
16047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16048 (eval $ac_try) 2>&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); }; }; then
16052 ac_hi=$ac_mid; break
16054 echo "$as_me: failed program was:" >&5
16055 sed 's/^/| /' conftest.$ac_ext >&5
16057 ac_lo=`expr $ac_mid + 1`
16058 if test $ac_lo -le $ac_mid; then
16062 ac_mid=`expr 2 '*' $ac_mid + 1`
16064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16067 echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16070 cat >conftest.$ac_ext <<_ACEOF
16073 cat confdefs.h >>conftest.$ac_ext
16074 cat >>conftest.$ac_ext <<_ACEOF
16075 /* end confdefs.h. */
16076 $ac_includes_default
16080 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16087 rm -f conftest.$ac_objext
16088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16089 (eval $ac_compile) 2>conftest.er1
16091 grep -v '^ *+' conftest.er1 >conftest.err
16093 cat conftest.err >&5
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); } &&
16096 { ac_try='test -z "$ac_c_werror_flag"
16097 || test ! -s conftest.err'
16098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099 (eval $ac_try) 2>&5
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; } &&
16103 { ac_try='test -s conftest.$ac_objext'
16104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105 (eval $ac_try) 2>&5
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; }; then
16111 cat >conftest.$ac_ext <<_ACEOF
16114 cat confdefs.h >>conftest.$ac_ext
16115 cat >>conftest.$ac_ext <<_ACEOF
16116 /* end confdefs.h. */
16117 $ac_includes_default
16121 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16128 rm -f conftest.$ac_objext
16129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16130 (eval $ac_compile) 2>conftest.er1
16132 grep -v '^ *+' conftest.er1 >conftest.err
16134 cat conftest.err >&5
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); } &&
16137 { ac_try='test -z "$ac_c_werror_flag"
16138 || test ! -s conftest.err'
16139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16140 (eval $ac_try) 2>&5
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); }; } &&
16144 { ac_try='test -s conftest.$ac_objext'
16145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16146 (eval $ac_try) 2>&5
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); }; }; then
16150 ac_lo=$ac_mid; break
16152 echo "$as_me: failed program was:" >&5
16153 sed 's/^/| /' conftest.$ac_ext >&5
16155 ac_hi=`expr '(' $ac_mid ')' - 1`
16156 if test $ac_mid -le $ac_hi; then
16160 ac_mid=`expr 2 '*' $ac_mid`
16162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16165 echo "$as_me: failed program was:" >&5
16166 sed 's/^/| /' conftest.$ac_ext >&5
16170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16173 # Binary search between lo and hi bounds.
16174 while test "x$ac_lo" != "x$ac_hi"; do
16175 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16176 cat >conftest.$ac_ext <<_ACEOF
16179 cat confdefs.h >>conftest.$ac_ext
16180 cat >>conftest.$ac_ext <<_ACEOF
16181 /* end confdefs.h. */
16182 $ac_includes_default
16186 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16193 rm -f conftest.$ac_objext
16194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16195 (eval $ac_compile) 2>conftest.er1
16197 grep -v '^ *+' conftest.er1 >conftest.err
16199 cat conftest.err >&5
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); } &&
16202 { ac_try='test -z "$ac_c_werror_flag"
16203 || test ! -s conftest.err'
16204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205 (eval $ac_try) 2>&5
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; } &&
16209 { ac_try='test -s conftest.$ac_objext'
16210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16211 (eval $ac_try) 2>&5
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); }; }; then
16217 echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16220 ac_lo=`expr '(' $ac_mid ')' + 1`
16222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16225 ?*) ac_cv_sizeof_int=$ac_lo;;
16226 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16227 See \`config.log' for more details." >&5
16228 echo "$as_me: error: cannot compute sizeof (int), 77
16229 See \`config.log' for more details." >&2;}
16230 { (exit 1); exit 1; }; } ;;
16233 if test "$cross_compiling" = yes; then
16234 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16235 See \`config.log' for more details." >&5
16236 echo "$as_me: error: cannot run test program while cross compiling
16237 See \`config.log' for more details." >&2;}
16238 { (exit 1); exit 1; }; }
16240 cat >conftest.$ac_ext <<_ACEOF
16243 cat confdefs.h >>conftest.$ac_ext
16244 cat >>conftest.$ac_ext <<_ACEOF
16245 /* end confdefs.h. */
16246 $ac_includes_default
16247 long longval () { return (long) (sizeof (int)); }
16248 unsigned long ulongval () { return (long) (sizeof (int)); }
16250 #include <stdlib.h>
16255 FILE *f = fopen ("conftest.val", "w");
16258 if (((long) (sizeof (int))) < 0)
16260 long i = longval ();
16261 if (i != ((long) (sizeof (int))))
16263 fprintf (f, "%ld\n", i);
16267 unsigned long i = ulongval ();
16268 if (i != ((long) (sizeof (int))))
16270 fprintf (f, "%lu\n", i);
16272 exit (ferror (f) || fclose (f) != 0);
16278 rm -f conftest$ac_exeext
16279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16280 (eval $ac_link) 2>&5
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16285 (eval $ac_try) 2>&5
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); }; }; then
16289 ac_cv_sizeof_int=`cat conftest.val`
16291 echo "$as_me: program exited with status $ac_status" >&5
16292 echo "$as_me: failed program was:" >&5
16293 sed 's/^/| /' conftest.$ac_ext >&5
16295 ( exit $ac_status )
16296 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16297 See \`config.log' for more details." >&5
16298 echo "$as_me: error: cannot compute sizeof (int), 77
16299 See \`config.log' for more details." >&2;}
16300 { (exit 1); exit 1; }; }
16302 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16310 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16311 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16312 cat >>confdefs.h <<_ACEOF
16313 #define SIZEOF_INT $ac_cv_sizeof_int
16317 echo "$as_me:$LINENO: checking for long" >&5
16318 echo $ECHO_N "checking for long... $ECHO_C" >&6
16319 if test "${ac_cv_type_long+set}" = set; then
16320 echo $ECHO_N "(cached) $ECHO_C" >&6
16322 cat >conftest.$ac_ext <<_ACEOF
16325 cat confdefs.h >>conftest.$ac_ext
16326 cat >>conftest.$ac_ext <<_ACEOF
16327 /* end confdefs.h. */
16328 $ac_includes_default
16340 rm -f conftest.$ac_objext
16341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16342 (eval $ac_compile) 2>conftest.er1
16344 grep -v '^ *+' conftest.er1 >conftest.err
16346 cat conftest.err >&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } &&
16349 { ac_try='test -z "$ac_c_werror_flag"
16350 || test ! -s conftest.err'
16351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16352 (eval $ac_try) 2>&5
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); }; } &&
16356 { ac_try='test -s conftest.$ac_objext'
16357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16358 (eval $ac_try) 2>&5
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); }; }; then
16362 ac_cv_type_long=yes
16364 echo "$as_me: failed program was:" >&5
16365 sed 's/^/| /' conftest.$ac_ext >&5
16369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16371 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16372 echo "${ECHO_T}$ac_cv_type_long" >&6
16374 echo "$as_me:$LINENO: checking size of long" >&5
16375 echo $ECHO_N "checking size of long... $ECHO_C" >&6
16376 if test "${ac_cv_sizeof_long+set}" = set; then
16377 echo $ECHO_N "(cached) $ECHO_C" >&6
16379 if test "$ac_cv_type_long" = yes; then
16380 # The cast to unsigned long works around a bug in the HP C Compiler
16381 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16382 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16383 # This bug is HP SR number 8606223364.
16384 if test "$cross_compiling" = yes; then
16385 # Depending upon the size, compute the lo and hi bounds.
16386 cat >conftest.$ac_ext <<_ACEOF
16389 cat confdefs.h >>conftest.$ac_ext
16390 cat >>conftest.$ac_ext <<_ACEOF
16391 /* end confdefs.h. */
16392 $ac_includes_default
16396 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16403 rm -f conftest.$ac_objext
16404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16405 (eval $ac_compile) 2>conftest.er1
16407 grep -v '^ *+' conftest.er1 >conftest.err
16409 cat conftest.err >&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); } &&
16412 { ac_try='test -z "$ac_c_werror_flag"
16413 || test ! -s conftest.err'
16414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16415 (eval $ac_try) 2>&5
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); }; } &&
16419 { ac_try='test -s conftest.$ac_objext'
16420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16421 (eval $ac_try) 2>&5
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); }; }; then
16427 cat >conftest.$ac_ext <<_ACEOF
16430 cat confdefs.h >>conftest.$ac_ext
16431 cat >>conftest.$ac_ext <<_ACEOF
16432 /* end confdefs.h. */
16433 $ac_includes_default
16437 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16444 rm -f conftest.$ac_objext
16445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16446 (eval $ac_compile) 2>conftest.er1
16448 grep -v '^ *+' conftest.er1 >conftest.err
16450 cat conftest.err >&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } &&
16453 { ac_try='test -z "$ac_c_werror_flag"
16454 || test ! -s conftest.err'
16455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16456 (eval $ac_try) 2>&5
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); }; } &&
16460 { ac_try='test -s conftest.$ac_objext'
16461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16462 (eval $ac_try) 2>&5
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); }; }; then
16466 ac_hi=$ac_mid; break
16468 echo "$as_me: failed program was:" >&5
16469 sed 's/^/| /' conftest.$ac_ext >&5
16471 ac_lo=`expr $ac_mid + 1`
16472 if test $ac_lo -le $ac_mid; then
16476 ac_mid=`expr 2 '*' $ac_mid + 1`
16478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16481 echo "$as_me: failed program was:" >&5
16482 sed 's/^/| /' conftest.$ac_ext >&5
16484 cat >conftest.$ac_ext <<_ACEOF
16487 cat confdefs.h >>conftest.$ac_ext
16488 cat >>conftest.$ac_ext <<_ACEOF
16489 /* end confdefs.h. */
16490 $ac_includes_default
16494 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16501 rm -f conftest.$ac_objext
16502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16503 (eval $ac_compile) 2>conftest.er1
16505 grep -v '^ *+' conftest.er1 >conftest.err
16507 cat conftest.err >&5
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); } &&
16510 { ac_try='test -z "$ac_c_werror_flag"
16511 || test ! -s conftest.err'
16512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16513 (eval $ac_try) 2>&5
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); }; } &&
16517 { ac_try='test -s conftest.$ac_objext'
16518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16519 (eval $ac_try) 2>&5
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); }; }; then
16525 cat >conftest.$ac_ext <<_ACEOF
16528 cat confdefs.h >>conftest.$ac_ext
16529 cat >>conftest.$ac_ext <<_ACEOF
16530 /* end confdefs.h. */
16531 $ac_includes_default
16535 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16542 rm -f conftest.$ac_objext
16543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16544 (eval $ac_compile) 2>conftest.er1
16546 grep -v '^ *+' conftest.er1 >conftest.err
16548 cat conftest.err >&5
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } &&
16551 { ac_try='test -z "$ac_c_werror_flag"
16552 || test ! -s conftest.err'
16553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16554 (eval $ac_try) 2>&5
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); }; } &&
16558 { ac_try='test -s conftest.$ac_objext'
16559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16560 (eval $ac_try) 2>&5
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); }; }; then
16564 ac_lo=$ac_mid; break
16566 echo "$as_me: failed program was:" >&5
16567 sed 's/^/| /' conftest.$ac_ext >&5
16569 ac_hi=`expr '(' $ac_mid ')' - 1`
16570 if test $ac_mid -le $ac_hi; then
16574 ac_mid=`expr 2 '*' $ac_mid`
16576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16579 echo "$as_me: failed program was:" >&5
16580 sed 's/^/| /' conftest.$ac_ext >&5
16584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16587 # Binary search between lo and hi bounds.
16588 while test "x$ac_lo" != "x$ac_hi"; do
16589 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16590 cat >conftest.$ac_ext <<_ACEOF
16593 cat confdefs.h >>conftest.$ac_ext
16594 cat >>conftest.$ac_ext <<_ACEOF
16595 /* end confdefs.h. */
16596 $ac_includes_default
16600 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16607 rm -f conftest.$ac_objext
16608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16609 (eval $ac_compile) 2>conftest.er1
16611 grep -v '^ *+' conftest.er1 >conftest.err
16613 cat conftest.err >&5
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); } &&
16616 { ac_try='test -z "$ac_c_werror_flag"
16617 || test ! -s conftest.err'
16618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16619 (eval $ac_try) 2>&5
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); }; } &&
16623 { ac_try='test -s conftest.$ac_objext'
16624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16625 (eval $ac_try) 2>&5
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); }; }; then
16631 echo "$as_me: failed program was:" >&5
16632 sed 's/^/| /' conftest.$ac_ext >&5
16634 ac_lo=`expr '(' $ac_mid ')' + 1`
16636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16639 ?*) ac_cv_sizeof_long=$ac_lo;;
16640 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16641 See \`config.log' for more details." >&5
16642 echo "$as_me: error: cannot compute sizeof (long), 77
16643 See \`config.log' for more details." >&2;}
16644 { (exit 1); exit 1; }; } ;;
16647 if test "$cross_compiling" = yes; then
16648 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16649 See \`config.log' for more details." >&5
16650 echo "$as_me: error: cannot run test program while cross compiling
16651 See \`config.log' for more details." >&2;}
16652 { (exit 1); exit 1; }; }
16654 cat >conftest.$ac_ext <<_ACEOF
16657 cat confdefs.h >>conftest.$ac_ext
16658 cat >>conftest.$ac_ext <<_ACEOF
16659 /* end confdefs.h. */
16660 $ac_includes_default
16661 long longval () { return (long) (sizeof (long)); }
16662 unsigned long ulongval () { return (long) (sizeof (long)); }
16664 #include <stdlib.h>
16669 FILE *f = fopen ("conftest.val", "w");
16672 if (((long) (sizeof (long))) < 0)
16674 long i = longval ();
16675 if (i != ((long) (sizeof (long))))
16677 fprintf (f, "%ld\n", i);
16681 unsigned long i = ulongval ();
16682 if (i != ((long) (sizeof (long))))
16684 fprintf (f, "%lu\n", i);
16686 exit (ferror (f) || fclose (f) != 0);
16692 rm -f conftest$ac_exeext
16693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16694 (eval $ac_link) 2>&5
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16699 (eval $ac_try) 2>&5
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); }; }; then
16703 ac_cv_sizeof_long=`cat conftest.val`
16705 echo "$as_me: program exited with status $ac_status" >&5
16706 echo "$as_me: failed program was:" >&5
16707 sed 's/^/| /' conftest.$ac_ext >&5
16709 ( exit $ac_status )
16710 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16711 See \`config.log' for more details." >&5
16712 echo "$as_me: error: cannot compute sizeof (long), 77
16713 See \`config.log' for more details." >&2;}
16714 { (exit 1); exit 1; }; }
16716 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16721 ac_cv_sizeof_long=0
16724 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16725 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16726 cat >>confdefs.h <<_ACEOF
16727 #define SIZEOF_LONG $ac_cv_sizeof_long
16731 echo "$as_me:$LINENO: checking for void*" >&5
16732 echo $ECHO_N "checking for void*... $ECHO_C" >&6
16733 if test "${ac_cv_type_voidp+set}" = set; then
16734 echo $ECHO_N "(cached) $ECHO_C" >&6
16736 cat >conftest.$ac_ext <<_ACEOF
16739 cat confdefs.h >>conftest.$ac_ext
16740 cat >>conftest.$ac_ext <<_ACEOF
16741 /* end confdefs.h. */
16742 $ac_includes_default
16748 if (sizeof (void*))
16754 rm -f conftest.$ac_objext
16755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16756 (eval $ac_compile) 2>conftest.er1
16758 grep -v '^ *+' conftest.er1 >conftest.err
16760 cat conftest.err >&5
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); } &&
16763 { ac_try='test -z "$ac_c_werror_flag"
16764 || test ! -s conftest.err'
16765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16766 (eval $ac_try) 2>&5
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); }; } &&
16770 { ac_try='test -s conftest.$ac_objext'
16771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16772 (eval $ac_try) 2>&5
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); }; }; then
16776 ac_cv_type_voidp=yes
16778 echo "$as_me: failed program was:" >&5
16779 sed 's/^/| /' conftest.$ac_ext >&5
16781 ac_cv_type_voidp=no
16783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16785 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
16786 echo "${ECHO_T}$ac_cv_type_voidp" >&6
16788 echo "$as_me:$LINENO: checking size of void*" >&5
16789 echo $ECHO_N "checking size of void*... $ECHO_C" >&6
16790 if test "${ac_cv_sizeof_voidp+set}" = set; then
16791 echo $ECHO_N "(cached) $ECHO_C" >&6
16793 if test "$ac_cv_type_voidp" = yes; then
16794 # The cast to unsigned long works around a bug in the HP C Compiler
16795 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16796 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16797 # This bug is HP SR number 8606223364.
16798 if test "$cross_compiling" = yes; then
16799 # Depending upon the size, compute the lo and hi bounds.
16800 cat >conftest.$ac_ext <<_ACEOF
16803 cat confdefs.h >>conftest.$ac_ext
16804 cat >>conftest.$ac_ext <<_ACEOF
16805 /* end confdefs.h. */
16806 $ac_includes_default
16810 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
16817 rm -f conftest.$ac_objext
16818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16819 (eval $ac_compile) 2>conftest.er1
16821 grep -v '^ *+' conftest.er1 >conftest.err
16823 cat conftest.err >&5
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); } &&
16826 { ac_try='test -z "$ac_c_werror_flag"
16827 || test ! -s conftest.err'
16828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16829 (eval $ac_try) 2>&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; } &&
16833 { ac_try='test -s conftest.$ac_objext'
16834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16835 (eval $ac_try) 2>&5
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); }; }; then
16841 cat >conftest.$ac_ext <<_ACEOF
16844 cat confdefs.h >>conftest.$ac_ext
16845 cat >>conftest.$ac_ext <<_ACEOF
16846 /* end confdefs.h. */
16847 $ac_includes_default
16851 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
16858 rm -f conftest.$ac_objext
16859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16860 (eval $ac_compile) 2>conftest.er1
16862 grep -v '^ *+' conftest.er1 >conftest.err
16864 cat conftest.err >&5
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); } &&
16867 { ac_try='test -z "$ac_c_werror_flag"
16868 || test ! -s conftest.err'
16869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16870 (eval $ac_try) 2>&5
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); }; } &&
16874 { ac_try='test -s conftest.$ac_objext'
16875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16876 (eval $ac_try) 2>&5
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); }; }; then
16880 ac_hi=$ac_mid; break
16882 echo "$as_me: failed program was:" >&5
16883 sed 's/^/| /' conftest.$ac_ext >&5
16885 ac_lo=`expr $ac_mid + 1`
16886 if test $ac_lo -le $ac_mid; then
16890 ac_mid=`expr 2 '*' $ac_mid + 1`
16892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16895 echo "$as_me: failed program was:" >&5
16896 sed 's/^/| /' conftest.$ac_ext >&5
16898 cat >conftest.$ac_ext <<_ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16904 $ac_includes_default
16908 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
16915 rm -f conftest.$ac_objext
16916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16917 (eval $ac_compile) 2>conftest.er1
16919 grep -v '^ *+' conftest.er1 >conftest.err
16921 cat conftest.err >&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); } &&
16924 { ac_try='test -z "$ac_c_werror_flag"
16925 || test ! -s conftest.err'
16926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16927 (eval $ac_try) 2>&5
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; } &&
16931 { ac_try='test -s conftest.$ac_objext'
16932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16933 (eval $ac_try) 2>&5
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); }; }; then
16939 cat >conftest.$ac_ext <<_ACEOF
16942 cat confdefs.h >>conftest.$ac_ext
16943 cat >>conftest.$ac_ext <<_ACEOF
16944 /* end confdefs.h. */
16945 $ac_includes_default
16949 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
16956 rm -f conftest.$ac_objext
16957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16958 (eval $ac_compile) 2>conftest.er1
16960 grep -v '^ *+' conftest.er1 >conftest.err
16962 cat conftest.err >&5
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); } &&
16965 { ac_try='test -z "$ac_c_werror_flag"
16966 || test ! -s conftest.err'
16967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16968 (eval $ac_try) 2>&5
16970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); }; } &&
16972 { ac_try='test -s conftest.$ac_objext'
16973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16974 (eval $ac_try) 2>&5
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); }; }; then
16978 ac_lo=$ac_mid; break
16980 echo "$as_me: failed program was:" >&5
16981 sed 's/^/| /' conftest.$ac_ext >&5
16983 ac_hi=`expr '(' $ac_mid ')' - 1`
16984 if test $ac_mid -le $ac_hi; then
16988 ac_mid=`expr 2 '*' $ac_mid`
16990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16993 echo "$as_me: failed program was:" >&5
16994 sed 's/^/| /' conftest.$ac_ext >&5
16998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17001 # Binary search between lo and hi bounds.
17002 while test "x$ac_lo" != "x$ac_hi"; do
17003 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17004 cat >conftest.$ac_ext <<_ACEOF
17007 cat confdefs.h >>conftest.$ac_ext
17008 cat >>conftest.$ac_ext <<_ACEOF
17009 /* end confdefs.h. */
17010 $ac_includes_default
17014 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
17021 rm -f conftest.$ac_objext
17022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17023 (eval $ac_compile) 2>conftest.er1
17025 grep -v '^ *+' conftest.er1 >conftest.err
17027 cat conftest.err >&5
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); } &&
17030 { ac_try='test -z "$ac_c_werror_flag"
17031 || test ! -s conftest.err'
17032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17033 (eval $ac_try) 2>&5
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); }; } &&
17037 { ac_try='test -s conftest.$ac_objext'
17038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17039 (eval $ac_try) 2>&5
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); }; }; then
17045 echo "$as_me: failed program was:" >&5
17046 sed 's/^/| /' conftest.$ac_ext >&5
17048 ac_lo=`expr '(' $ac_mid ')' + 1`
17050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17053 ?*) ac_cv_sizeof_voidp=$ac_lo;;
17054 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
17055 See \`config.log' for more details." >&5
17056 echo "$as_me: error: cannot compute sizeof (void*), 77
17057 See \`config.log' for more details." >&2;}
17058 { (exit 1); exit 1; }; } ;;
17061 if test "$cross_compiling" = yes; then
17062 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17063 See \`config.log' for more details." >&5
17064 echo "$as_me: error: cannot run test program while cross compiling
17065 See \`config.log' for more details." >&2;}
17066 { (exit 1); exit 1; }; }
17068 cat >conftest.$ac_ext <<_ACEOF
17071 cat confdefs.h >>conftest.$ac_ext
17072 cat >>conftest.$ac_ext <<_ACEOF
17073 /* end confdefs.h. */
17074 $ac_includes_default
17075 long longval () { return (long) (sizeof (void*)); }
17076 unsigned long ulongval () { return (long) (sizeof (void*)); }
17078 #include <stdlib.h>
17083 FILE *f = fopen ("conftest.val", "w");
17086 if (((long) (sizeof (void*))) < 0)
17088 long i = longval ();
17089 if (i != ((long) (sizeof (void*))))
17091 fprintf (f, "%ld\n", i);
17095 unsigned long i = ulongval ();
17096 if (i != ((long) (sizeof (void*))))
17098 fprintf (f, "%lu\n", i);
17100 exit (ferror (f) || fclose (f) != 0);
17106 rm -f conftest$ac_exeext
17107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17108 (eval $ac_link) 2>&5
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17113 (eval $ac_try) 2>&5
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); }; }; then
17117 ac_cv_sizeof_voidp=`cat conftest.val`
17119 echo "$as_me: program exited with status $ac_status" >&5
17120 echo "$as_me: failed program was:" >&5
17121 sed 's/^/| /' conftest.$ac_ext >&5
17123 ( exit $ac_status )
17124 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
17125 See \`config.log' for more details." >&5
17126 echo "$as_me: error: cannot compute sizeof (void*), 77
17127 See \`config.log' for more details." >&2;}
17128 { (exit 1); exit 1; }; }
17130 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17135 ac_cv_sizeof_voidp=0
17138 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
17139 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
17140 cat >>confdefs.h <<_ACEOF
17141 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
17145 ac_cv_char_data_model=""
17146 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
17147 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
17148 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
17149 ac_cv_long_data_model=""
17150 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
17151 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
17152 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
17153 echo "$as_me:$LINENO: checking data model" >&5
17154 echo $ECHO_N "checking data model... $ECHO_C" >&6
17155 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
17156 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
17157 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
17158 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
17159 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
17160 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
17161 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
17162 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
17163 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
17164 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
17165 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
17166 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
17167 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
17168 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
17169 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
17170 222/*|333/*|444/*|666/*|888/*) :
17171 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
17172 *) ac_cv_data_model="none" ; n="very unusual model" ;;
17174 echo "$as_me:$LINENO: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
17175 echo "${ECHO_T}$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6
17179 if test "_$ac_cv_header_stdint_x" != "_" ; then
17180 ac_cv_header_stdint="$ac_cv_header_stdint_x"
17181 elif test "_$ac_cv_header_stdint_o" != "_" ; then
17182 ac_cv_header_stdint="$ac_cv_header_stdint_o"
17183 elif test "_$ac_cv_header_stdint_u" != "_" ; then
17184 ac_cv_header_stdint="$ac_cv_header_stdint_u"
17186 ac_cv_header_stdint="stddef.h"
17189 echo "$as_me:$LINENO: checking for extra inttypes in chosen header" >&5
17190 echo $ECHO_N "checking for extra inttypes in chosen header... $ECHO_C" >&6
17191 echo "$as_me:$LINENO: result: ($ac_cv_header_stdint)" >&5
17192 echo "${ECHO_T}($ac_cv_header_stdint)" >&6
17193 unset ac_cv_type_int_least32_t
17194 unset ac_cv_type_int_fast32_t
17195 echo "$as_me:$LINENO: checking for int_least32_t" >&5
17196 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
17197 if test "${ac_cv_type_int_least32_t+set}" = set; then
17198 echo $ECHO_N "(cached) $ECHO_C" >&6
17200 cat >conftest.$ac_ext <<_ACEOF
17203 cat confdefs.h >>conftest.$ac_ext
17204 cat >>conftest.$ac_ext <<_ACEOF
17205 /* end confdefs.h. */
17206 #include <$ac_cv_header_stdint>
17211 if ((int_least32_t *) 0)
17213 if (sizeof (int_least32_t))
17219 rm -f conftest.$ac_objext
17220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17221 (eval $ac_compile) 2>conftest.er1
17223 grep -v '^ *+' conftest.er1 >conftest.err
17225 cat conftest.err >&5
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); } &&
17228 { ac_try='test -z "$ac_c_werror_flag"
17229 || test ! -s conftest.err'
17230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17231 (eval $ac_try) 2>&5
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); }; } &&
17235 { ac_try='test -s conftest.$ac_objext'
17236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17237 (eval $ac_try) 2>&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); }; }; then
17241 ac_cv_type_int_least32_t=yes
17243 echo "$as_me: failed program was:" >&5
17244 sed 's/^/| /' conftest.$ac_ext >&5
17246 ac_cv_type_int_least32_t=no
17248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17250 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
17251 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
17253 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
17254 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
17255 if test "${ac_cv_type_int_fast32_t+set}" = set; then
17256 echo $ECHO_N "(cached) $ECHO_C" >&6
17258 cat >conftest.$ac_ext <<_ACEOF
17261 cat confdefs.h >>conftest.$ac_ext
17262 cat >>conftest.$ac_ext <<_ACEOF
17263 /* end confdefs.h. */
17264 #include<$ac_cv_header_stdint>
17269 if ((int_fast32_t *) 0)
17271 if (sizeof (int_fast32_t))
17277 rm -f conftest.$ac_objext
17278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17279 (eval $ac_compile) 2>conftest.er1
17281 grep -v '^ *+' conftest.er1 >conftest.err
17283 cat conftest.err >&5
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); } &&
17286 { ac_try='test -z "$ac_c_werror_flag"
17287 || test ! -s conftest.err'
17288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17289 (eval $ac_try) 2>&5
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); }; } &&
17293 { ac_try='test -s conftest.$ac_objext'
17294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295 (eval $ac_try) 2>&5
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; }; then
17299 ac_cv_type_int_fast32_t=yes
17301 echo "$as_me: failed program was:" >&5
17302 sed 's/^/| /' conftest.$ac_ext >&5
17304 ac_cv_type_int_fast32_t=no
17306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17308 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
17309 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
17311 echo "$as_me:$LINENO: checking for intmax_t" >&5
17312 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
17313 if test "${ac_cv_type_intmax_t+set}" = set; then
17314 echo $ECHO_N "(cached) $ECHO_C" >&6
17316 cat >conftest.$ac_ext <<_ACEOF
17319 cat confdefs.h >>conftest.$ac_ext
17320 cat >>conftest.$ac_ext <<_ACEOF
17321 /* end confdefs.h. */
17322 #include <$ac_cv_header_stdint>
17327 if ((intmax_t *) 0)
17329 if (sizeof (intmax_t))
17335 rm -f conftest.$ac_objext
17336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17337 (eval $ac_compile) 2>conftest.er1
17339 grep -v '^ *+' conftest.er1 >conftest.err
17341 cat conftest.err >&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); } &&
17344 { ac_try='test -z "$ac_c_werror_flag"
17345 || test ! -s conftest.err'
17346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17347 (eval $ac_try) 2>&5
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); }; } &&
17351 { ac_try='test -s conftest.$ac_objext'
17352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17353 (eval $ac_try) 2>&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); }; }; then
17357 ac_cv_type_intmax_t=yes
17359 echo "$as_me: failed program was:" >&5
17360 sed 's/^/| /' conftest.$ac_ext >&5
17362 ac_cv_type_intmax_t=no
17364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17366 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
17367 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
17370 fi # shortcircut to system "stdint.h"
17371 # ------------------ PREPARE VARIABLES ------------------------------
17372 if test "$GCC" = "yes" ; then
17373 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
17375 ac_cv_stdint_message="using $CC"
17378 echo "$as_me:$LINENO: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
17379 echo "${ECHO_T}make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6
17381 # ----------------- DONE inttypes.h checks START header -------------
17382 ac_config_commands="$ac_config_commands $ac_stdint_h"
17388 # Extract the first word of "$ac_prog", so it can be a program name with args.
17389 set dummy $ac_prog; ac_word=$2
17390 echo "$as_me:$LINENO: checking for $ac_word" >&5
17391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17392 if test "${ac_cv_path_AR+set}" = set; then
17393 echo $ECHO_N "(cached) $ECHO_C" >&6
17397 ac_cv_path_AR="$AR" # Let the user override the test with a path.
17400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17401 for as_dir in $LOCSYSPATH
17404 test -z "$as_dir" && as_dir=.
17405 for ac_exec_ext in '' $ac_executable_extensions; do
17406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17407 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
17408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17419 if test -n "$AR"; then
17420 echo "$as_me:$LINENO: result: $AR" >&5
17421 echo "${ECHO_T}$AR" >&6
17423 echo "$as_me:$LINENO: result: no" >&5
17424 echo "${ECHO_T}no" >&6
17427 test -n "$AR" && break
17431 for ac_prog in gawk mawk nawk awk
17433 # Extract the first word of "$ac_prog", so it can be a program name with args.
17434 set dummy $ac_prog; ac_word=$2
17435 echo "$as_me:$LINENO: checking for $ac_word" >&5
17436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17437 if test "${ac_cv_prog_AWK+set}" = set; then
17438 echo $ECHO_N "(cached) $ECHO_C" >&6
17440 if test -n "$AWK"; then
17441 ac_cv_prog_AWK="$AWK" # Let the user override the test.
17443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17444 for as_dir in $PATH
17447 test -z "$as_dir" && as_dir=.
17448 for ac_exec_ext in '' $ac_executable_extensions; do
17449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17450 ac_cv_prog_AWK="$ac_prog"
17451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17459 AWK=$ac_cv_prog_AWK
17460 if test -n "$AWK"; then
17461 echo "$as_me:$LINENO: result: $AWK" >&5
17462 echo "${ECHO_T}$AWK" >&6
17464 echo "$as_me:$LINENO: result: no" >&5
17465 echo "${ECHO_T}no" >&6
17468 test -n "$AWK" && break
17471 for ac_prog in 'bison -y' byacc
17473 # Extract the first word of "$ac_prog", so it can be a program name with args.
17474 set dummy $ac_prog; ac_word=$2
17475 echo "$as_me:$LINENO: checking for $ac_word" >&5
17476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17477 if test "${ac_cv_prog_YACC+set}" = set; then
17478 echo $ECHO_N "(cached) $ECHO_C" >&6
17480 if test -n "$YACC"; then
17481 ac_cv_prog_YACC="$YACC" # Let the user override the test.
17483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17484 for as_dir in $PATH
17487 test -z "$as_dir" && as_dir=.
17488 for ac_exec_ext in '' $ac_executable_extensions; do
17489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17490 ac_cv_prog_YACC="$ac_prog"
17491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17499 YACC=$ac_cv_prog_YACC
17500 if test -n "$YACC"; then
17501 echo "$as_me:$LINENO: result: $YACC" >&5
17502 echo "${ECHO_T}$YACC" >&6
17504 echo "$as_me:$LINENO: result: no" >&5
17505 echo "${ECHO_T}no" >&6
17508 test -n "$YACC" && break
17510 test -n "$YACC" || YACC="yacc"
17514 # Extract the first word of "$ac_prog", so it can be a program name with args.
17515 set dummy $ac_prog; ac_word=$2
17516 echo "$as_me:$LINENO: checking for $ac_word" >&5
17517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17518 if test "${ac_cv_path_CAT+set}" = set; then
17519 echo $ECHO_N "(cached) $ECHO_C" >&6
17523 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
17526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17527 for as_dir in $LOCSYSPATH
17530 test -z "$as_dir" && as_dir=.
17531 for ac_exec_ext in '' $ac_executable_extensions; do
17532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17533 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
17534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17543 CAT=$ac_cv_path_CAT
17545 if test -n "$CAT"; then
17546 echo "$as_me:$LINENO: result: $CAT" >&5
17547 echo "${ECHO_T}$CAT" >&6
17549 echo "$as_me:$LINENO: result: no" >&5
17550 echo "${ECHO_T}no" >&6
17553 test -n "$CAT" && break
17556 if test -z "$CAT"; then
17559 for ac_prog in compress
17561 # Extract the first word of "$ac_prog", so it can be a program name with args.
17562 set dummy $ac_prog; ac_word=$2
17563 echo "$as_me:$LINENO: checking for $ac_word" >&5
17564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17565 if test "${ac_cv_path_COMPRESS+set}" = set; then
17566 echo $ECHO_N "(cached) $ECHO_C" >&6
17570 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
17573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17574 for as_dir in $LOCSYSPATH
17577 test -z "$as_dir" && as_dir=.
17578 for ac_exec_ext in '' $ac_executable_extensions; do
17579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17580 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
17581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17590 COMPRESS=$ac_cv_path_COMPRESS
17592 if test -n "$COMPRESS"; then
17593 echo "$as_me:$LINENO: result: $COMPRESS" >&5
17594 echo "${ECHO_T}$COMPRESS" >&6
17596 echo "$as_me:$LINENO: result: no" >&5
17597 echo "${ECHO_T}no" >&6
17600 test -n "$COMPRESS" && break
17605 # Extract the first word of "$ac_prog", so it can be a program name with args.
17606 set dummy $ac_prog; ac_word=$2
17607 echo "$as_me:$LINENO: checking for $ac_word" >&5
17608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17609 if test "${ac_cv_path_DD+set}" = set; then
17610 echo $ECHO_N "(cached) $ECHO_C" >&6
17614 ac_cv_path_DD="$DD" # Let the user override the test with a path.
17617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17618 for as_dir in $LOCSYSPATH
17621 test -z "$as_dir" && as_dir=.
17622 for ac_exec_ext in '' $ac_executable_extensions; do
17623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17624 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
17625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17636 if test -n "$DD"; then
17637 echo "$as_me:$LINENO: result: $DD" >&5
17638 echo "${ECHO_T}$DD" >&6
17640 echo "$as_me:$LINENO: result: no" >&5
17641 echo "${ECHO_T}no" >&6
17644 test -n "$DD" && break
17647 for ac_prog in getconf
17649 # Extract the first word of "$ac_prog", so it can be a program name with args.
17650 set dummy $ac_prog; ac_word=$2
17651 echo "$as_me:$LINENO: checking for $ac_word" >&5
17652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17653 if test "${ac_cv_path_GETCONF+set}" = set; then
17654 echo $ECHO_N "(cached) $ECHO_C" >&6
17658 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
17661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17662 for as_dir in $SYSPATH
17665 test -z "$as_dir" && as_dir=.
17666 for ac_exec_ext in '' $ac_executable_extensions; do
17667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17668 ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
17669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17678 GETCONF=$ac_cv_path_GETCONF
17680 if test -n "$GETCONF"; then
17681 echo "$as_me:$LINENO: result: $GETCONF" >&5
17682 echo "${ECHO_T}$GETCONF" >&6
17684 echo "$as_me:$LINENO: result: no" >&5
17685 echo "${ECHO_T}no" >&6
17688 test -n "$GETCONF" && break
17693 # Check whether --with-gnuplot or --without-gnuplot was given.
17694 if test "${with_gnuplot+set}" = set; then
17695 withval="$with_gnuplot"
17696 ac_with_gnuplot=$withval;
17698 ac_with_gnuplot=maybe;
17701 if test "$ac_with_gnuplot" = "yes" -o "$ac_with_gnuplot" = "maybe"; then
17702 for ac_prog in gnuplot
17704 # Extract the first word of "$ac_prog", so it can be a program name with args.
17705 set dummy $ac_prog; ac_word=$2
17706 echo "$as_me:$LINENO: checking for $ac_word" >&5
17707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17708 if test "${ac_cv_path_GNUPLOT+set}" = set; then
17709 echo $ECHO_N "(cached) $ECHO_C" >&6
17713 ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path.
17716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17717 for as_dir in $LOCSYSPATH
17720 test -z "$as_dir" && as_dir=.
17721 for ac_exec_ext in '' $ac_executable_extensions; do
17722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17723 ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext"
17724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17733 GNUPLOT=$ac_cv_path_GNUPLOT
17735 if test -n "$GNUPLOT"; then
17736 echo "$as_me:$LINENO: result: $GNUPLOT" >&5
17737 echo "${ECHO_T}$GNUPLOT" >&6
17739 echo "$as_me:$LINENO: result: no" >&5
17740 echo "${ECHO_T}no" >&6
17743 test -n "$GNUPLOT" && break
17747 if test "$ac_with_gnuplot" != "no"; then
17748 if test -x "$ac_with_gnuplot"; then
17749 GNUPLOT="$ac_with_gnuplot";
17751 { echo "$as_me:$LINENO: WARNING: Specified gnuplot of $ac_with_gnuplot isn't" >&5
17752 echo "$as_me: WARNING: Specified gnuplot of $ac_with_gnuplot isn't" >&2;}
17753 { echo "$as_me:$LINENO: WARNING: executable, searching for an alternative." >&5
17754 echo "$as_me: WARNING: executable, searching for an alternative." >&2;}
17755 for ac_prog in gnuplot
17757 # Extract the first word of "$ac_prog", so it can be a program name with args.
17758 set dummy $ac_prog; ac_word=$2
17759 echo "$as_me:$LINENO: checking for $ac_word" >&5
17760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17761 if test "${ac_cv_path_GNUPLOT+set}" = set; then
17762 echo $ECHO_N "(cached) $ECHO_C" >&6
17766 ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path.
17769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17770 for as_dir in $LOCSYSPATH
17773 test -z "$as_dir" && as_dir=.
17774 for ac_exec_ext in '' $ac_executable_extensions; do
17775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17776 ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext"
17777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17786 GNUPLOT=$ac_cv_path_GNUPLOT
17788 if test -n "$GNUPLOT"; then
17789 echo "$as_me:$LINENO: result: $GNUPLOT" >&5
17790 echo "${ECHO_T}$GNUPLOT" >&6
17792 echo "$as_me:$LINENO: result: no" >&5
17793 echo "${ECHO_T}no" >&6
17796 test -n "$GNUPLOT" && break
17804 for ac_prog in gtar gnutar tar
17806 # Extract the first word of "$ac_prog", so it can be a program name with args.
17807 set dummy $ac_prog; ac_word=$2
17808 echo "$as_me:$LINENO: checking for $ac_word" >&5
17809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17810 if test "${ac_cv_path_GNUTAR+set}" = set; then
17811 echo $ECHO_N "(cached) $ECHO_C" >&6
17815 ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
17818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17819 for as_dir in $LOCSYSPATH
17822 test -z "$as_dir" && as_dir=.
17823 for ac_exec_ext in '' $ac_executable_extensions; do
17824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17825 ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
17826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17835 GNUTAR=$ac_cv_path_GNUTAR
17837 if test -n "$GNUTAR"; then
17838 echo "$as_me:$LINENO: result: $GNUTAR" >&5
17839 echo "${ECHO_T}$GNUTAR" >&6
17841 echo "$as_me:$LINENO: result: no" >&5
17842 echo "${ECHO_T}no" >&6
17845 test -n "$GNUTAR" && break
17848 if test ! -z "$GNUTAR"; then
17849 case "`\"$GNUTAR\" --version 2>&1`" in
17850 *GNU*tar* | *Free*paxutils* )
17852 cat >>confdefs.h <<_ACEOF
17853 #define GNUTAR "$GNUTAR"
17858 { echo "$as_me:$LINENO: WARNING: *** $GNUTAR is not GNU tar, so it will not be used." >&5
17859 echo "$as_me: WARNING: *** $GNUTAR is not GNU tar, so it will not be used." >&2;}
17865 for ac_prog in smbclient
17867 # Extract the first word of "$ac_prog", so it can be a program name with args.
17868 set dummy $ac_prog; ac_word=$2
17869 echo "$as_me:$LINENO: checking for $ac_word" >&5
17870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17871 if test "${ac_cv_path_SAMBA_CLIENT+set}" = set; then
17872 echo $ECHO_N "(cached) $ECHO_C" >&6
17874 case $SAMBA_CLIENT in
17876 ac_cv_path_SAMBA_CLIENT="$SAMBA_CLIENT" # Let the user override the test with a path.
17879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17880 for as_dir in $LOCSYSPATH
17883 test -z "$as_dir" && as_dir=.
17884 for ac_exec_ext in '' $ac_executable_extensions; do
17885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17886 ac_cv_path_SAMBA_CLIENT="$as_dir/$ac_word$ac_exec_ext"
17887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17896 SAMBA_CLIENT=$ac_cv_path_SAMBA_CLIENT
17898 if test -n "$SAMBA_CLIENT"; then
17899 echo "$as_me:$LINENO: result: $SAMBA_CLIENT" >&5
17900 echo "${ECHO_T}$SAMBA_CLIENT" >&6
17902 echo "$as_me:$LINENO: result: no" >&5
17903 echo "${ECHO_T}no" >&6
17906 test -n "$SAMBA_CLIENT" && break
17909 if test ! -z "$SAMBA_CLIENT"; then
17910 case "`\"$SAMBA_CLIENT\" '\\\\not.a.host.name\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1`" in
17914 *"Connection to not.a.host.name failed"*)
17918 { echo "$as_me:$LINENO: WARNING: *** $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&5
17919 echo "$as_me: WARNING: *** $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&2;}
17923 if test -n "$SAMBA_CLIENT"; then
17925 cat >>confdefs.h <<_ACEOF
17926 #define SAMBA_CLIENT "$SAMBA_CLIENT"
17930 cat >>confdefs.h <<_ACEOF
17931 #define SAMBA_VERSION $smbversion
17937 for ac_prog in gzip
17939 # Extract the first word of "$ac_prog", so it can be a program name with args.
17940 set dummy $ac_prog; ac_word=$2
17941 echo "$as_me:$LINENO: checking for $ac_word" >&5
17942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17943 if test "${ac_cv_path_GZIP+set}" = set; then
17944 echo $ECHO_N "(cached) $ECHO_C" >&6
17948 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
17951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17952 for as_dir in $LOCSYSPATH
17955 test -z "$as_dir" && as_dir=.
17956 for ac_exec_ext in '' $ac_executable_extensions; do
17957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17958 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
17959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17968 GZIP=$ac_cv_path_GZIP
17970 if test -n "$GZIP"; then
17971 echo "$as_me:$LINENO: result: $GZIP" >&5
17972 echo "${ECHO_T}$GZIP" >&6
17974 echo "$as_me:$LINENO: result: no" >&5
17975 echo "${ECHO_T}no" >&6
17978 test -n "$GZIP" && break
17981 if test "$GZIP"; then
17983 cat >>confdefs.h <<\_ACEOF
17984 #define HAVE_GZIP 1
17987 COMPRESS_PATH="$GZIP"
17988 COMPRESS_SUFFIX=".gz"
17989 COMPRESS_FAST_OPT="--fast"
17990 COMPRESS_BEST_OPT="--best"
17991 UNCOMPRESS_PATH="$GZIP"
17992 UNCOMPRESS_OPT="-dc"
17994 if test "$COMPRESS"; then
17995 COMPRESS_PATH="$COMPRESS"
17996 COMPRESS_SUFFIX=".Z"
17997 COMPRESS_FAST_OPT="-f"
17998 COMPRESS_BEST_OPT="-f"
17999 UNCOMPRESS_PATH="$COMPRESS"
18000 UNCOMPRESS_OPT="-dc"
18002 { echo "$as_me:$LINENO: WARNING: *** Cannot find either gzip or compress. Using cat. ***" >&5
18003 echo "$as_me: WARNING: *** Cannot find either gzip or compress. Using cat. ***" >&2;}
18004 COMPRESS_PATH="$CAT"
18006 COMPRESS_FAST_OPT=""
18007 COMPRESS_BEST_OPT=""
18008 UNCOMPRESS_PATH="$CAT"
18013 cat >>confdefs.h <<_ACEOF
18014 #define COMPRESS_PATH "$COMPRESS_PATH"
18018 cat >>confdefs.h <<_ACEOF
18019 #define COMPRESS_SUFFIX "$COMPRESS_SUFFIX"
18023 cat >>confdefs.h <<_ACEOF
18024 #define COMPRESS_FAST_OPT "$COMPRESS_FAST_OPT"
18028 cat >>confdefs.h <<_ACEOF
18029 #define COMPRESS_BEST_OPT "$COMPRESS_BEST_OPT"
18033 cat >>confdefs.h <<_ACEOF
18034 #define UNCOMPRESS_PATH "$UNCOMPRESS_PATH"
18038 cat >>confdefs.h <<_ACEOF
18039 #define UNCOMPRESS_OPT "$UNCOMPRESS_OPT"
18043 for ac_prog in sort
18045 # Extract the first word of "$ac_prog", so it can be a program name with args.
18046 set dummy $ac_prog; ac_word=$2
18047 echo "$as_me:$LINENO: checking for $ac_word" >&5
18048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18049 if test "${ac_cv_path_SORT+set}" = set; then
18050 echo $ECHO_N "(cached) $ECHO_C" >&6
18054 ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
18057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18058 for as_dir in $LOCSYSPATH
18061 test -z "$as_dir" && as_dir=.
18062 for ac_exec_ext in '' $ac_executable_extensions; do
18063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18064 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
18065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18074 SORT=$ac_cv_path_SORT
18076 if test -n "$SORT"; then
18077 echo "$as_me:$LINENO: result: $SORT" >&5
18078 echo "${ECHO_T}$SORT" >&6
18080 echo "$as_me:$LINENO: result: no" >&5
18081 echo "${ECHO_T}no" >&6
18084 test -n "$SORT" && break
18087 if test -z "$SORT"; then
18088 if $NO_SERVER_MODE; then
18091 { { echo "$as_me:$LINENO: error: Set SORT to the path of the sort program." >&5
18092 echo "$as_me: error: Set SORT to the path of the sort program." >&2;}
18093 { (exit 1); exit 1; }; }
18097 cat >>confdefs.h <<_ACEOF
18098 #define SORT_PATH "$SORT"
18102 for ac_prog in Mail mailx mail
18104 # Extract the first word of "$ac_prog", so it can be a program name with args.
18105 set dummy $ac_prog; ac_word=$2
18106 echo "$as_me:$LINENO: checking for $ac_word" >&5
18107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18108 if test "${ac_cv_path_MAILER+set}" = set; then
18109 echo $ECHO_N "(cached) $ECHO_C" >&6
18113 ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
18116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18117 for as_dir in $PATH
18120 test -z "$as_dir" && as_dir=.
18121 for ac_exec_ext in '' $ac_executable_extensions; do
18122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18123 ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
18124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18133 MAILER=$ac_cv_path_MAILER
18135 if test -n "$MAILER"; then
18136 echo "$as_me:$LINENO: result: $MAILER" >&5
18137 echo "${ECHO_T}$MAILER" >&6
18139 echo "$as_me:$LINENO: result: no" >&5
18140 echo "${ECHO_T}no" >&6
18143 test -n "$MAILER" && break
18146 if test -z "$MAILER"; then
18147 if $NO_SERVER_MODE; then
18149 { echo "$as_me:$LINENO: WARNING: *** WARNING: Amanda cannot send mail reports without these programs." >&5
18150 echo "$as_me: WARNING: *** WARNING: Amanda cannot send mail reports without these programs." >&2;}
18152 { { echo "$as_me:$LINENO: error: Set MAILER to some program that accepts -s subject user < message_file." >&5
18153 echo "$as_me: error: Set MAILER to some program that accepts -s subject user < message_file." >&2;}
18154 { (exit 1); exit 1; }; }
18158 cat >>confdefs.h <<_ACEOF
18159 #define MAILER "$MAILER"
18165 # Extract the first word of "$ac_prog", so it can be a program name with args.
18166 set dummy $ac_prog; ac_word=$2
18167 echo "$as_me:$LINENO: checking for $ac_word" >&5
18168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18169 if test "${ac_cv_path_MT+set}" = set; then
18170 echo $ECHO_N "(cached) $ECHO_C" >&6
18174 ac_cv_path_MT="$MT" # Let the user override the test with a path.
18177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18178 for as_dir in $LOCSYSPATH
18181 test -z "$as_dir" && as_dir=.
18182 for ac_exec_ext in '' $ac_executable_extensions; do
18183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18184 ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
18185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18196 if test -n "$MT"; then
18197 echo "$as_me:$LINENO: result: $MT" >&5
18198 echo "${ECHO_T}$MT" >&6
18200 echo "$as_me:$LINENO: result: no" >&5
18201 echo "${ECHO_T}no" >&6
18204 test -n "$MT" && break
18206 test -n "$MT" || MT="mt"
18209 for ac_prog in chio
18211 # Extract the first word of "$ac_prog", so it can be a program name with args.
18212 set dummy $ac_prog; ac_word=$2
18213 echo "$as_me:$LINENO: checking for $ac_word" >&5
18214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18215 if test "${ac_cv_path_CHIO+set}" = set; then
18216 echo $ECHO_N "(cached) $ECHO_C" >&6
18220 ac_cv_path_CHIO="$CHIO" # Let the user override the test with a path.
18223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18224 for as_dir in $LOCSYSPATH
18227 test -z "$as_dir" && as_dir=.
18228 for ac_exec_ext in '' $ac_executable_extensions; do
18229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18230 ac_cv_path_CHIO="$as_dir/$ac_word$ac_exec_ext"
18231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18240 CHIO=$ac_cv_path_CHIO
18242 if test -n "$CHIO"; then
18243 echo "$as_me:$LINENO: result: $CHIO" >&5
18244 echo "${ECHO_T}$CHIO" >&6
18246 echo "$as_me:$LINENO: result: no" >&5
18247 echo "${ECHO_T}no" >&6
18250 test -n "$CHIO" && break
18252 test -n "$CHIO" || CHIO="chio"
18257 # Extract the first word of "$ac_prog", so it can be a program name with args.
18258 set dummy $ac_prog; ac_word=$2
18259 echo "$as_me:$LINENO: checking for $ac_word" >&5
18260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18261 if test "${ac_cv_path_CHS+set}" = set; then
18262 echo $ECHO_N "(cached) $ECHO_C" >&6
18266 ac_cv_path_CHS="$CHS" # Let the user override the test with a path.
18269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18270 for as_dir in $LOCSYSPATH
18273 test -z "$as_dir" && as_dir=.
18274 for ac_exec_ext in '' $ac_executable_extensions; do
18275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18276 ac_cv_path_CHS="$as_dir/$ac_word$ac_exec_ext"
18277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18286 CHS=$ac_cv_path_CHS
18288 if test -n "$CHS"; then
18289 echo "$as_me:$LINENO: result: $CHS" >&5
18290 echo "${ECHO_T}$CHS" >&6
18292 echo "$as_me:$LINENO: result: no" >&5
18293 echo "${ECHO_T}no" >&6
18296 test -n "$CHS" && break
18298 test -n "$CHS" || CHS="chs"
18303 # Extract the first word of "$ac_prog", so it can be a program name with args.
18304 set dummy $ac_prog; ac_word=$2
18305 echo "$as_me:$LINENO: checking for $ac_word" >&5
18306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18307 if test "${ac_cv_path_MTX+set}" = set; then
18308 echo $ECHO_N "(cached) $ECHO_C" >&6
18312 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
18315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18316 for as_dir in $LOCSYSPATH
18319 test -z "$as_dir" && as_dir=.
18320 for ac_exec_ext in '' $ac_executable_extensions; do
18321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18322 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
18323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18332 MTX=$ac_cv_path_MTX
18334 if test -n "$MTX"; then
18335 echo "$as_me:$LINENO: result: $MTX" >&5
18336 echo "${ECHO_T}$MTX" >&6
18338 echo "$as_me:$LINENO: result: no" >&5
18339 echo "${ECHO_T}no" >&6
18342 test -n "$MTX" && break
18344 test -n "$MTX" || MTX="mtx"
18347 for ac_prog in mcutil
18349 # Extract the first word of "$ac_prog", so it can be a program name with args.
18350 set dummy $ac_prog; ac_word=$2
18351 echo "$as_me:$LINENO: checking for $ac_word" >&5
18352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18353 if test "${ac_cv_path_MCUTIL+set}" = set; then
18354 echo $ECHO_N "(cached) $ECHO_C" >&6
18358 ac_cv_path_MCUTIL="$MCUTIL" # Let the user override the test with a path.
18361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18362 for as_dir in $LOCSYSPATH
18365 test -z "$as_dir" && as_dir=.
18366 for ac_exec_ext in '' $ac_executable_extensions; do
18367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18368 ac_cv_path_MCUTIL="$as_dir/$ac_word$ac_exec_ext"
18369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18378 MCUTIL=$ac_cv_path_MCUTIL
18380 if test -n "$MCUTIL"; then
18381 echo "$as_me:$LINENO: result: $MCUTIL" >&5
18382 echo "${ECHO_T}$MCUTIL" >&6
18384 echo "$as_me:$LINENO: result: no" >&5
18385 echo "${ECHO_T}no" >&6
18388 test -n "$MCUTIL" && break
18390 test -n "$MCUTIL" || MCUTIL="mcutil"
18393 for ac_prog in lpr lp
18395 # Extract the first word of "$ac_prog", so it can be a program name with args.
18396 set dummy $ac_prog; ac_word=$2
18397 echo "$as_me:$LINENO: checking for $ac_word" >&5
18398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18399 if test "${ac_cv_path_PRINT+set}" = set; then
18400 echo $ECHO_N "(cached) $ECHO_C" >&6
18404 ac_cv_path_PRINT="$PRINT" # Let the user override the test with a path.
18407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18408 for as_dir in $PATH
18411 test -z "$as_dir" && as_dir=.
18412 for ac_exec_ext in '' $ac_executable_extensions; do
18413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18414 ac_cv_path_PRINT="$as_dir/$ac_word$ac_exec_ext"
18415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18424 PRINT=$ac_cv_path_PRINT
18426 if test -n "$PRINT"; then
18427 echo "$as_me:$LINENO: result: $PRINT" >&5
18428 echo "${ECHO_T}$PRINT" >&6
18430 echo "$as_me:$LINENO: result: no" >&5
18431 echo "${ECHO_T}no" >&6
18434 test -n "$PRINT" && break
18437 if test ! -z "$PRINT"; then
18439 cat >>confdefs.h <<_ACEOF
18440 #define LPRCMD "$PRINT"
18443 echo "$as_me:$LINENO: checking which flag to use to select a printer" >&5
18444 echo $ECHO_N "checking which flag to use to select a printer... $ECHO_C" >&6
18445 if test "${amanda_cv_printer_flag+set}" = set; then
18446 echo $ECHO_N "(cached) $ECHO_C" >&6
18449 amanda_cv_printer_flag=$PRINTER_FLAG
18451 lpr|*/lpr) amanda_cv_printer_flag="-P";;
18452 lp|*/lp) amanda_cv_printer_flag="-d";;
18456 echo "$as_me:$LINENO: result: $amanda_cv_printer_flag" >&5
18457 echo "${ECHO_T}$amanda_cv_printer_flag" >&6
18458 if test ! -z "$amanda_cv_printer_flag"; then
18460 cat >>confdefs.h <<_ACEOF
18461 #define LPRFLAG "$amanda_cv_printer_flag"
18465 { echo "$as_me:$LINENO: WARNING: *** WARNING: amanda will always print to the default printer" >&5
18466 echo "$as_me: WARNING: *** WARNING: amanda will always print to the default printer" >&2;}
18470 for ac_prog in pcat
18472 # Extract the first word of "$ac_prog", so it can be a program name with args.
18473 set dummy $ac_prog; ac_word=$2
18474 echo "$as_me:$LINENO: checking for $ac_word" >&5
18475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18476 if test "${ac_cv_path_PCAT+set}" = set; then
18477 echo $ECHO_N "(cached) $ECHO_C" >&6
18481 ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
18484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18485 for as_dir in $LOCSYSPATH
18488 test -z "$as_dir" && as_dir=.
18489 for ac_exec_ext in '' $ac_executable_extensions; do
18490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18491 ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
18492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18501 PCAT=$ac_cv_path_PCAT
18503 if test -n "$PCAT"; then
18504 echo "$as_me:$LINENO: result: $PCAT" >&5
18505 echo "${ECHO_T}$PCAT" >&6
18507 echo "$as_me:$LINENO: result: no" >&5
18508 echo "${ECHO_T}no" >&6
18511 test -n "$PCAT" && break
18514 for ac_prog in perl5 perl
18516 # Extract the first word of "$ac_prog", so it can be a program name with args.
18517 set dummy $ac_prog; ac_word=$2
18518 echo "$as_me:$LINENO: checking for $ac_word" >&5
18519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18520 if test "${ac_cv_path_PERL+set}" = set; then
18521 echo $ECHO_N "(cached) $ECHO_C" >&6
18525 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
18528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18529 for as_dir in $LOCSYSPATH
18532 test -z "$as_dir" && as_dir=.
18533 for ac_exec_ext in '' $ac_executable_extensions; do
18534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18535 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
18536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18545 PERL=$ac_cv_path_PERL
18547 if test -n "$PERL"; then
18548 echo "$as_me:$LINENO: result: $PERL" >&5
18549 echo "${ECHO_T}$PERL" >&6
18551 echo "$as_me:$LINENO: result: no" >&5
18552 echo "${ECHO_T}no" >&6
18555 test -n "$PERL" && break
18560 for ac_prog in $DUMP_PROGRAMS
18562 # Extract the first word of "$ac_prog", so it can be a program name with args.
18563 set dummy $ac_prog; ac_word=$2
18564 echo "$as_me:$LINENO: checking for $ac_word" >&5
18565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18566 if test "${ac_cv_path_DUMP+set}" = set; then
18567 echo $ECHO_N "(cached) $ECHO_C" >&6
18571 ac_cv_path_DUMP="$DUMP" # Let the user override the test with a path.
18574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18575 for as_dir in $SYSLOCPATH
18578 test -z "$as_dir" && as_dir=.
18579 for ac_exec_ext in '' $ac_executable_extensions; do
18580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18581 ac_cv_path_DUMP="$as_dir/$ac_word$ac_exec_ext"
18582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18591 DUMP=$ac_cv_path_DUMP
18593 if test -n "$DUMP"; then
18594 echo "$as_me:$LINENO: result: $DUMP" >&5
18595 echo "${ECHO_T}$DUMP" >&6
18597 echo "$as_me:$LINENO: result: no" >&5
18598 echo "${ECHO_T}no" >&6
18601 test -n "$DUMP" && break
18604 if test -n "$DUMP"; then
18605 if test "`basename $DUMP`" = "backup"; then
18606 backup_gnutar=`$DUMP --version | $GREP "GNU tar"`
18607 if test $? -eq 0; then
18612 for ac_prog in ufsrestore restore
18614 # Extract the first word of "$ac_prog", so it can be a program name with args.
18615 set dummy $ac_prog; ac_word=$2
18616 echo "$as_me:$LINENO: checking for $ac_word" >&5
18617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18618 if test "${ac_cv_path_RESTORE+set}" = set; then
18619 echo $ECHO_N "(cached) $ECHO_C" >&6
18623 ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
18626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18627 for as_dir in $SYSLOCPATH
18630 test -z "$as_dir" && as_dir=.
18631 for ac_exec_ext in '' $ac_executable_extensions; do
18632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18633 ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
18634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18643 RESTORE=$ac_cv_path_RESTORE
18645 if test -n "$RESTORE"; then
18646 echo "$as_me:$LINENO: result: $RESTORE" >&5
18647 echo "${ECHO_T}$RESTORE" >&6
18649 echo "$as_me:$LINENO: result: no" >&5
18650 echo "${ECHO_T}no" >&6
18653 test -n "$RESTORE" && break
18656 if test "$DUMP" -a "$RESTORE"; then
18658 cat >>confdefs.h <<_ACEOF
18659 #define DUMP "$DUMP"
18663 cat >>confdefs.h <<_ACEOF
18664 #define RESTORE "$RESTORE"
18667 if test -x $DUMP; then
18668 echo "$as_me:$LINENO: checking whether $DUMP supports -E or -S for estimates" >&5
18669 echo $ECHO_N "checking whether $DUMP supports -E or -S for estimates... $ECHO_C" >&6
18670 if test "${amanda_cv_dump_estimate+set}" = set; then
18671 echo $ECHO_N "(cached) $ECHO_C" >&6
18676 { ac_try='$DUMP 9Ef /dev/null /dev/null/invalid/fs 2>&1
18679 | $GREP -v Label >conftest.d-E 2>&1'
18680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18681 (eval $ac_try) 2>&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); }; }
18685 cat conftest.d-E >&5
18686 { ac_try='$DUMP 9Sf /dev/null /dev/null/invalid/fs 2>&1
18689 | $GREP -v Label >conftest.d-S 2>&1'
18690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18691 (eval $ac_try) 2>&5
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); }; }
18695 cat conftest.d-S >&5
18696 { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
18699 | $GREP -v Label >conftest.d 2>&1'
18700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18701 (eval $ac_try) 2>&5
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); }; }
18706 if { ac_try='cmp conftest.d-E conftest.d 1>&2'
18707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18708 (eval $ac_try) 2>&5
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); }; }; then
18712 amanda_cv_dump_estimate=E
18713 elif { ac_try='cmp conftest.d-S conftest.d 1>&2'
18714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18715 (eval $ac_try) 2>&5
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); }; }; then
18719 amanda_cv_dump_estimate=S
18721 amanda_cv_dump_estimate=no
18723 rm -f conftest.d conftest.d-E conftest.d-S
18725 *) amanda_cv_dump_estimate=no
18730 echo "$as_me:$LINENO: result: $amanda_cv_dump_estimate" >&5
18731 echo "${ECHO_T}$amanda_cv_dump_estimate" >&6
18733 { echo "$as_me:$LINENO: WARNING: *** $DUMP is not executable, cannot run -E/-S test" >&5
18734 echo "$as_me: WARNING: *** $DUMP is not executable, cannot run -E/-S test" >&2;}
18735 amanda_cv_dump_estimate=no
18737 if test "x$amanda_cv_dump_estimate" != xno; then
18739 cat >>confdefs.h <<_ACEOF
18740 #define HAVE_DUMP_ESTIMATE "$amanda_cv_dump_estimate"
18746 # Check whether --with-dump-honor-nodump or --without-dump-honor-nodump was given.
18747 if test "${with_dump_honor_nodump+set}" = set; then
18748 withval="$with_dump_honor_nodump"
18749 if test -x $DUMP; then
18750 echo "$as_me:$LINENO: checking whether $DUMP supports -h (honor nodump flag)" >&5
18751 echo $ECHO_N "checking whether $DUMP supports -h (honor nodump flag)... $ECHO_C" >&6
18752 if test "${amanda_cv_honor_nodump+set}" = set; then
18753 echo $ECHO_N "(cached) $ECHO_C" >&6
18758 { ac_try='$DUMP 9hf 0 /dev/null /dev/null/invalid/fs 2>&1
18761 | $GREP -v Label >conftest.d-h 2>&1'
18762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18763 (eval $ac_try) 2>&5
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); }; }
18767 cat conftest.d-h >&5
18768 { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
18771 | $GREP -v Label >conftest.d 2>&1'
18772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18773 (eval $ac_try) 2>&5
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); }; }
18778 if { ac_try='diff conftest.d-h conftest.d 1>&2'
18779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18780 (eval $ac_try) 2>&5
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); }; }; then
18784 amanda_cv_honor_nodump=yes
18786 amanda_cv_honor_nodump=no
18788 rm -f conftest.d conftest.d-h
18790 *) amanda_cv_honor_nodump=no
18795 echo "$as_me:$LINENO: result: $amanda_cv_honor_nodump" >&5
18796 echo "${ECHO_T}$amanda_cv_honor_nodump" >&6
18798 { echo "$as_me:$LINENO: WARNING: *** $DUMP is not executable, cannot run -h test" >&5
18799 echo "$as_me: WARNING: *** $DUMP is not executable, cannot run -h test" >&2;}
18800 amanda_cv_honor_nodump=no
18802 if test "x$amanda_cv_honor_nodump" = xyes; then
18804 cat >>confdefs.h <<\_ACEOF
18805 #define HAVE_HONOR_NODUMP 1
18813 for ac_prog in xfsdump
18815 # Extract the first word of "$ac_prog", so it can be a program name with args.
18816 set dummy $ac_prog; ac_word=$2
18817 echo "$as_me:$LINENO: checking for $ac_word" >&5
18818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18819 if test "${ac_cv_path_XFSDUMP+set}" = set; then
18820 echo $ECHO_N "(cached) $ECHO_C" >&6
18824 ac_cv_path_XFSDUMP="$XFSDUMP" # Let the user override the test with a path.
18827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18828 for as_dir in $SYSLOCPATH
18831 test -z "$as_dir" && as_dir=.
18832 for ac_exec_ext in '' $ac_executable_extensions; do
18833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18834 ac_cv_path_XFSDUMP="$as_dir/$ac_word$ac_exec_ext"
18835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18844 XFSDUMP=$ac_cv_path_XFSDUMP
18846 if test -n "$XFSDUMP"; then
18847 echo "$as_me:$LINENO: result: $XFSDUMP" >&5
18848 echo "${ECHO_T}$XFSDUMP" >&6
18850 echo "$as_me:$LINENO: result: no" >&5
18851 echo "${ECHO_T}no" >&6
18854 test -n "$XFSDUMP" && break
18857 for ac_prog in xfsrestore
18859 # Extract the first word of "$ac_prog", so it can be a program name with args.
18860 set dummy $ac_prog; ac_word=$2
18861 echo "$as_me:$LINENO: checking for $ac_word" >&5
18862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18863 if test "${ac_cv_path_XFSRESTORE+set}" = set; then
18864 echo $ECHO_N "(cached) $ECHO_C" >&6
18866 case $XFSRESTORE in
18868 ac_cv_path_XFSRESTORE="$XFSRESTORE" # Let the user override the test with a path.
18871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18872 for as_dir in $SYSLOCPATH
18875 test -z "$as_dir" && as_dir=.
18876 for ac_exec_ext in '' $ac_executable_extensions; do
18877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18878 ac_cv_path_XFSRESTORE="$as_dir/$ac_word$ac_exec_ext"
18879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18888 XFSRESTORE=$ac_cv_path_XFSRESTORE
18890 if test -n "$XFSRESTORE"; then
18891 echo "$as_me:$LINENO: result: $XFSRESTORE" >&5
18892 echo "${ECHO_T}$XFSRESTORE" >&6
18894 echo "$as_me:$LINENO: result: no" >&5
18895 echo "${ECHO_T}no" >&6
18898 test -n "$XFSRESTORE" && break
18901 if test "$XFSDUMP" -a "$XFSRESTORE"; then
18903 cat >>confdefs.h <<_ACEOF
18904 #define XFSDUMP "$XFSDUMP"
18908 cat >>confdefs.h <<_ACEOF
18909 #define XFSRESTORE "$XFSRESTORE"
18912 { echo "$as_me:$LINENO: WARNING: *** xfsdump causes the setuid-root rundump program to be enabled" >&5
18913 echo "$as_me: WARNING: *** xfsdump causes the setuid-root rundump program to be enabled" >&2;}
18914 { echo "$as_me:$LINENO: WARNING: *** to disable it, just #undef XFSDUMP in config/config.h" >&5
18915 echo "$as_me: WARNING: *** to disable it, just #undef XFSDUMP in config/config.h" >&2;}
18918 VXSYSLOCPATH="$SYSLOCPATH:/usr/lib/fs/vxfs"
18919 for ac_prog in vxdump
18921 # Extract the first word of "$ac_prog", so it can be a program name with args.
18922 set dummy $ac_prog; ac_word=$2
18923 echo "$as_me:$LINENO: checking for $ac_word" >&5
18924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18925 if test "${ac_cv_path_VXDUMP+set}" = set; then
18926 echo $ECHO_N "(cached) $ECHO_C" >&6
18930 ac_cv_path_VXDUMP="$VXDUMP" # Let the user override the test with a path.
18933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18934 for as_dir in $VXSYSLOCPATH
18937 test -z "$as_dir" && as_dir=.
18938 for ac_exec_ext in '' $ac_executable_extensions; do
18939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18940 ac_cv_path_VXDUMP="$as_dir/$ac_word$ac_exec_ext"
18941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18950 VXDUMP=$ac_cv_path_VXDUMP
18952 if test -n "$VXDUMP"; then
18953 echo "$as_me:$LINENO: result: $VXDUMP" >&5
18954 echo "${ECHO_T}$VXDUMP" >&6
18956 echo "$as_me:$LINENO: result: no" >&5
18957 echo "${ECHO_T}no" >&6
18960 test -n "$VXDUMP" && break
18963 for ac_prog in vxrestore
18965 # Extract the first word of "$ac_prog", so it can be a program name with args.
18966 set dummy $ac_prog; ac_word=$2
18967 echo "$as_me:$LINENO: checking for $ac_word" >&5
18968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18969 if test "${ac_cv_path_VXRESTORE+set}" = set; then
18970 echo $ECHO_N "(cached) $ECHO_C" >&6
18974 ac_cv_path_VXRESTORE="$VXRESTORE" # Let the user override the test with a path.
18977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18978 for as_dir in $VXSYSLOCPATH
18981 test -z "$as_dir" && as_dir=.
18982 for ac_exec_ext in '' $ac_executable_extensions; do
18983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18984 ac_cv_path_VXRESTORE="$as_dir/$ac_word$ac_exec_ext"
18985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18994 VXRESTORE=$ac_cv_path_VXRESTORE
18996 if test -n "$VXRESTORE"; then
18997 echo "$as_me:$LINENO: result: $VXRESTORE" >&5
18998 echo "${ECHO_T}$VXRESTORE" >&6
19000 echo "$as_me:$LINENO: result: no" >&5
19001 echo "${ECHO_T}no" >&6
19004 test -n "$VXRESTORE" && break
19007 if test "$VXDUMP" -a "$VXRESTORE"; then
19009 cat >>confdefs.h <<_ACEOF
19010 #define VXDUMP "$VXDUMP"
19014 cat >>confdefs.h <<_ACEOF
19015 #define VXRESTORE "$VXRESTORE"
19020 for ac_prog in vdump
19022 # Extract the first word of "$ac_prog", so it can be a program name with args.
19023 set dummy $ac_prog; ac_word=$2
19024 echo "$as_me:$LINENO: checking for $ac_word" >&5
19025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19026 if test "${ac_cv_path_VDUMP+set}" = set; then
19027 echo $ECHO_N "(cached) $ECHO_C" >&6
19031 ac_cv_path_VDUMP="$VDUMP" # Let the user override the test with a path.
19034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19035 for as_dir in $SYSLOCPATH
19038 test -z "$as_dir" && as_dir=.
19039 for ac_exec_ext in '' $ac_executable_extensions; do
19040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19041 ac_cv_path_VDUMP="$as_dir/$ac_word$ac_exec_ext"
19042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19051 VDUMP=$ac_cv_path_VDUMP
19053 if test -n "$VDUMP"; then
19054 echo "$as_me:$LINENO: result: $VDUMP" >&5
19055 echo "${ECHO_T}$VDUMP" >&6
19057 echo "$as_me:$LINENO: result: no" >&5
19058 echo "${ECHO_T}no" >&6
19061 test -n "$VDUMP" && break
19064 for ac_prog in vrestore
19066 # Extract the first word of "$ac_prog", so it can be a program name with args.
19067 set dummy $ac_prog; ac_word=$2
19068 echo "$as_me:$LINENO: checking for $ac_word" >&5
19069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19070 if test "${ac_cv_path_VRESTORE+set}" = set; then
19071 echo $ECHO_N "(cached) $ECHO_C" >&6
19075 ac_cv_path_VRESTORE="$VRESTORE" # Let the user override the test with a path.
19078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19079 for as_dir in $SYSLOCPATH
19082 test -z "$as_dir" && as_dir=.
19083 for ac_exec_ext in '' $ac_executable_extensions; do
19084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19085 ac_cv_path_VRESTORE="$as_dir/$ac_word$ac_exec_ext"
19086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19095 VRESTORE=$ac_cv_path_VRESTORE
19097 if test -n "$VRESTORE"; then
19098 echo "$as_me:$LINENO: result: $VRESTORE" >&5
19099 echo "${ECHO_T}$VRESTORE" >&6
19101 echo "$as_me:$LINENO: result: no" >&5
19102 echo "${ECHO_T}no" >&6
19105 test -n "$VRESTORE" && break
19108 if test "$VDUMP" -a "$VRESTORE"; then
19110 cat >>confdefs.h <<_ACEOF
19111 #define VDUMP "$VDUMP"
19115 cat >>confdefs.h <<_ACEOF
19116 #define VRESTORE "$VRESTORE"
19121 if test "$PCAT"; then
19122 AMPLOT_CAT_PACK="if(o==\"z\")print \"$PCAT\"; else"
19126 if test "$COMPRESS"; then
19127 AMPLOT_COMPRESS=$COMPRESS
19128 AMPLOT_CAT_COMPRESS="if(o==\"Z\")print \"$COMPRESS -dc\"; else"
19130 AMPLOT_CAT_COMPRESS=
19132 if test "$GZIP"; then
19133 AMPLOT_COMPRESS=$GZIP
19134 AMPLOT_CAT_GZIP="if(o==\"gz\")print \"$GZIP -dc\"; else"
19143 echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
19144 echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6
19145 if test "${ac_cv_has_sockaddr_storage+set}" = set; then
19146 echo $ECHO_N "(cached) $ECHO_C" >&6
19148 cat >conftest.$ac_ext <<_ACEOF
19151 cat confdefs.h >>conftest.$ac_ext
19152 cat >>conftest.$ac_ext <<_ACEOF
19153 /* end confdefs.h. */
19155 # include <sys/types.h>
19156 # include <sys/socket.h>
19160 u_int i = sizeof (struct sockaddr_storage)
19165 rm -f conftest.$ac_objext
19166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19167 (eval $ac_compile) 2>conftest.er1
19169 grep -v '^ *+' conftest.er1 >conftest.err
19171 cat conftest.err >&5
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); } &&
19174 { ac_try='test -z "$ac_c_werror_flag"
19175 || test ! -s conftest.err'
19176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19177 (eval $ac_try) 2>&5
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); }; } &&
19181 { ac_try='test -s conftest.$ac_objext'
19182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19183 (eval $ac_try) 2>&5
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; }; then
19187 ac_cv_has_sockaddr_storage=yes
19189 echo "$as_me: failed program was:" >&5
19190 sed 's/^/| /' conftest.$ac_ext >&5
19192 ac_cv_has_sockaddr_storage=no
19194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19197 echo "$as_me:$LINENO: result: $ac_cv_has_sockaddr_storage" >&5
19198 echo "${ECHO_T}$ac_cv_has_sockaddr_storage" >&6
19199 if test $ac_cv_has_sockaddr_storage = yes ; then
19201 cat >>confdefs.h <<\_ACEOF
19202 #define HAVE_SOCKADDR_STORAGE 1
19207 # Determine the printf format characters to use when printing
19208 # values of type long long. This will normally be "ll", but where
19209 # the compiler treats "long long" as a alias for "long" and printf
19210 # doesn't know about "long long" use "l". Hopefully the sprintf
19211 # will produce a inconsistant result in the later case. If the compiler
19212 # fails due to seeing "%lld" we fall back to "l".
19214 # Win32 uses "%I64d", but that's defined elsewhere since we don't use
19215 # configure on Win32.
19217 echo "$as_me:$LINENO: checking printf format modifier for 64-bit integers" >&5
19218 echo $ECHO_N "checking printf format modifier for 64-bit integers... $ECHO_C" >&6
19219 if test "$cross_compiling" = yes; then
19220 echo "$as_me:$LINENO: result: assuming target platform uses ll" >&5
19221 echo "${ECHO_T}assuming target platform uses ll" >&6
19222 LL_FMT="%lld"; LL_RFMT="lld"
19224 cat >conftest.$ac_ext <<_ACEOF
19227 cat confdefs.h >>conftest.$ac_ext
19228 cat >>conftest.$ac_ext <<_ACEOF
19229 /* end confdefs.h. */
19233 long long int j = 0;
19236 sprintf(buf, "%lld", j);
19237 exit((sizeof(long long int) != sizeof(long int))? 0 :
19238 (strcmp(buf, "0") != 0));
19242 rm -f conftest$ac_exeext
19243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19244 (eval $ac_link) 2>&5
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19249 (eval $ac_try) 2>&5
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); }; }; then
19253 echo "$as_me:$LINENO: result: ll" >&5
19254 echo "${ECHO_T}ll" >&6
19255 LL_FMT="%lld"; LL_RFMT="lld"
19257 echo "$as_me: program exited with status $ac_status" >&5
19258 echo "$as_me: failed program was:" >&5
19259 sed 's/^/| /' conftest.$ac_ext >&5
19261 ( exit $ac_status )
19262 echo "$as_me:$LINENO: result: l" >&5
19263 echo "${ECHO_T}l" >&6
19264 LL_FMT="%ld"; LL_RFMT="ld"
19266 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19269 cat >>confdefs.h <<_ACEOF
19270 #define LL_FMT "$LL_FMT"
19274 cat >>confdefs.h <<_ACEOF
19275 #define LL_RFMT "$LL_RFMT"
19284 echo "$as_me:$LINENO: checking for large file compilation CFLAGS" >&5
19285 echo $ECHO_N "checking for large file compilation CFLAGS... $ECHO_C" >&6
19286 if test "${amanda_cv_LFS_CFLAGS+set}" = set; then
19287 echo $ECHO_N "(cached) $ECHO_C" >&6
19290 amanda_cv_LFS_CFLAGS=
19291 if test "$GETCONF"; then
19292 if $GETCONF ${GETCONF_LFS}_CFLAGS >/dev/null 2>&1; then
19293 amanda_cv_LFS_CFLAGS=`$GETCONF ${GETCONF_LFS}_CFLAGS 2>/dev/null`
19300 echo "$as_me:$LINENO: result: $amanda_cv_LFS_CFLAGS" >&5
19301 echo "${ECHO_T}$amanda_cv_LFS_CFLAGS" >&6
19302 echo "$as_me:$LINENO: checking for large file compilation LDFLAGS" >&5
19303 echo $ECHO_N "checking for large file compilation LDFLAGS... $ECHO_C" >&6
19304 if test "${amanda_cv_LFS_LDFLAGS+set}" = set; then
19305 echo $ECHO_N "(cached) $ECHO_C" >&6
19308 amanda_cv_LFS_LDFLAGS=
19309 if test "$GETCONF"; then
19310 if $GETCONF ${GETCONF_LFS}_LDFLAGS >/dev/null 2>&1; then
19311 amanda_cv_LFS_LDFLAGS=`$GETCONF ${GETCONF_LFS}_LDFLAGS 2>/dev/null`
19318 echo "$as_me:$LINENO: result: $amanda_cv_LFS_LDFLAGS" >&5
19319 echo "${ECHO_T}$amanda_cv_LFS_LDFLAGS" >&6
19320 echo "$as_me:$LINENO: checking for large file compilation LIBS" >&5
19321 echo $ECHO_N "checking for large file compilation LIBS... $ECHO_C" >&6
19322 if test "${amanda_cv_LFS_LIBS+set}" = set; then
19323 echo $ECHO_N "(cached) $ECHO_C" >&6
19326 amanda_cv_LFS_LIBS=
19327 if test "$GETCONF"; then
19328 if $GETCONF ${GETCONF_LFS}_LIBS >/dev/null 2>&1; then
19329 amanda_cv_LFS_LIBS=`$GETCONF ${GETCONF_LFS}_LIBS 2>/dev/null`
19336 echo "$as_me:$LINENO: result: $amanda_cv_LFS_LIBS" >&5
19337 echo "${ECHO_T}$amanda_cv_LFS_LIBS" >&6
19338 if test "x$need_resetofs" = xyes; then
19340 cat >>confdefs.h <<\_ACEOF
19341 #define NEED_RESETOFS 1
19347 CFLAGS="$amanda_cv_LFS_CFLAGS $CFLAGS"
19348 CPPFLAGS="$amanda_cv_LFS_CPPFLAGS $CPPFLAGS"
19349 LDFLAGS="$amanda_cv_LFS_LDFLAGS $LDFLAGS"
19350 LIBS="$amanda_cv_LFS_LIBS $LIBS"
19352 echo "$as_me:$LINENO: checking for int" >&5
19353 echo $ECHO_N "checking for int... $ECHO_C" >&6
19354 if test "${ac_cv_type_int+set}" = set; then
19355 echo $ECHO_N "(cached) $ECHO_C" >&6
19357 cat >conftest.$ac_ext <<_ACEOF
19360 cat confdefs.h >>conftest.$ac_ext
19361 cat >>conftest.$ac_ext <<_ACEOF
19362 /* end confdefs.h. */
19363 $ac_includes_default
19375 rm -f conftest.$ac_objext
19376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19377 (eval $ac_compile) 2>conftest.er1
19379 grep -v '^ *+' conftest.er1 >conftest.err
19381 cat conftest.err >&5
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); } &&
19384 { ac_try='test -z "$ac_c_werror_flag"
19385 || test ! -s conftest.err'
19386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19387 (eval $ac_try) 2>&5
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); }; } &&
19391 { ac_try='test -s conftest.$ac_objext'
19392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19393 (eval $ac_try) 2>&5
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); }; }; then
19399 echo "$as_me: failed program was:" >&5
19400 sed 's/^/| /' conftest.$ac_ext >&5
19404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19406 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19407 echo "${ECHO_T}$ac_cv_type_int" >&6
19409 echo "$as_me:$LINENO: checking size of int" >&5
19410 echo $ECHO_N "checking size of int... $ECHO_C" >&6
19411 if test "${ac_cv_sizeof_int+set}" = set; then
19412 echo $ECHO_N "(cached) $ECHO_C" >&6
19414 if test "$ac_cv_type_int" = yes; then
19415 # The cast to unsigned long works around a bug in the HP C Compiler
19416 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19417 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19418 # This bug is HP SR number 8606223364.
19419 if test "$cross_compiling" = yes; then
19420 # Depending upon the size, compute the lo and hi bounds.
19421 cat >conftest.$ac_ext <<_ACEOF
19424 cat confdefs.h >>conftest.$ac_ext
19425 cat >>conftest.$ac_ext <<_ACEOF
19426 /* end confdefs.h. */
19427 $ac_includes_default
19431 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
19438 rm -f conftest.$ac_objext
19439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19440 (eval $ac_compile) 2>conftest.er1
19442 grep -v '^ *+' conftest.er1 >conftest.err
19444 cat conftest.err >&5
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); } &&
19447 { ac_try='test -z "$ac_c_werror_flag"
19448 || test ! -s conftest.err'
19449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450 (eval $ac_try) 2>&5
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; } &&
19454 { ac_try='test -s conftest.$ac_objext'
19455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456 (eval $ac_try) 2>&5
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; }; then
19462 cat >conftest.$ac_ext <<_ACEOF
19465 cat confdefs.h >>conftest.$ac_ext
19466 cat >>conftest.$ac_ext <<_ACEOF
19467 /* end confdefs.h. */
19468 $ac_includes_default
19472 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19479 rm -f conftest.$ac_objext
19480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19481 (eval $ac_compile) 2>conftest.er1
19483 grep -v '^ *+' conftest.er1 >conftest.err
19485 cat conftest.err >&5
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); } &&
19488 { ac_try='test -z "$ac_c_werror_flag"
19489 || test ! -s conftest.err'
19490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19491 (eval $ac_try) 2>&5
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); }; } &&
19495 { ac_try='test -s conftest.$ac_objext'
19496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19497 (eval $ac_try) 2>&5
19499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500 (exit $ac_status); }; }; then
19501 ac_hi=$ac_mid; break
19503 echo "$as_me: failed program was:" >&5
19504 sed 's/^/| /' conftest.$ac_ext >&5
19506 ac_lo=`expr $ac_mid + 1`
19507 if test $ac_lo -le $ac_mid; then
19511 ac_mid=`expr 2 '*' $ac_mid + 1`
19513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19516 echo "$as_me: failed program was:" >&5
19517 sed 's/^/| /' conftest.$ac_ext >&5
19519 cat >conftest.$ac_ext <<_ACEOF
19522 cat confdefs.h >>conftest.$ac_ext
19523 cat >>conftest.$ac_ext <<_ACEOF
19524 /* end confdefs.h. */
19525 $ac_includes_default
19529 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
19536 rm -f conftest.$ac_objext
19537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19538 (eval $ac_compile) 2>conftest.er1
19540 grep -v '^ *+' conftest.er1 >conftest.err
19542 cat conftest.err >&5
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); } &&
19545 { ac_try='test -z "$ac_c_werror_flag"
19546 || test ! -s conftest.err'
19547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548 (eval $ac_try) 2>&5
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); }; } &&
19552 { ac_try='test -s conftest.$ac_objext'
19553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554 (eval $ac_try) 2>&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; }; then
19560 cat >conftest.$ac_ext <<_ACEOF
19563 cat confdefs.h >>conftest.$ac_ext
19564 cat >>conftest.$ac_ext <<_ACEOF
19565 /* end confdefs.h. */
19566 $ac_includes_default
19570 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19577 rm -f conftest.$ac_objext
19578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19579 (eval $ac_compile) 2>conftest.er1
19581 grep -v '^ *+' conftest.er1 >conftest.err
19583 cat conftest.err >&5
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); } &&
19586 { ac_try='test -z "$ac_c_werror_flag"
19587 || test ! -s conftest.err'
19588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19589 (eval $ac_try) 2>&5
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); }; } &&
19593 { ac_try='test -s conftest.$ac_objext'
19594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19595 (eval $ac_try) 2>&5
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); }; }; then
19599 ac_lo=$ac_mid; break
19601 echo "$as_me: failed program was:" >&5
19602 sed 's/^/| /' conftest.$ac_ext >&5
19604 ac_hi=`expr '(' $ac_mid ')' - 1`
19605 if test $ac_mid -le $ac_hi; then
19609 ac_mid=`expr 2 '*' $ac_mid`
19611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19614 echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19622 # Binary search between lo and hi bounds.
19623 while test "x$ac_lo" != "x$ac_hi"; do
19624 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19625 cat >conftest.$ac_ext <<_ACEOF
19628 cat confdefs.h >>conftest.$ac_ext
19629 cat >>conftest.$ac_ext <<_ACEOF
19630 /* end confdefs.h. */
19631 $ac_includes_default
19635 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19642 rm -f conftest.$ac_objext
19643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19644 (eval $ac_compile) 2>conftest.er1
19646 grep -v '^ *+' conftest.er1 >conftest.err
19648 cat conftest.err >&5
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); } &&
19651 { ac_try='test -z "$ac_c_werror_flag"
19652 || test ! -s conftest.err'
19653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19654 (eval $ac_try) 2>&5
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); }; } &&
19658 { ac_try='test -s conftest.$ac_objext'
19659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19660 (eval $ac_try) 2>&5
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); }; }; then
19666 echo "$as_me: failed program was:" >&5
19667 sed 's/^/| /' conftest.$ac_ext >&5
19669 ac_lo=`expr '(' $ac_mid ')' + 1`
19671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19674 ?*) ac_cv_sizeof_int=$ac_lo;;
19675 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19676 See \`config.log' for more details." >&5
19677 echo "$as_me: error: cannot compute sizeof (int), 77
19678 See \`config.log' for more details." >&2;}
19679 { (exit 1); exit 1; }; } ;;
19682 if test "$cross_compiling" = yes; then
19683 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19684 See \`config.log' for more details." >&5
19685 echo "$as_me: error: cannot run test program while cross compiling
19686 See \`config.log' for more details." >&2;}
19687 { (exit 1); exit 1; }; }
19689 cat >conftest.$ac_ext <<_ACEOF
19692 cat confdefs.h >>conftest.$ac_ext
19693 cat >>conftest.$ac_ext <<_ACEOF
19694 /* end confdefs.h. */
19695 $ac_includes_default
19696 long longval () { return (long) (sizeof (int)); }
19697 unsigned long ulongval () { return (long) (sizeof (int)); }
19699 #include <stdlib.h>
19704 FILE *f = fopen ("conftest.val", "w");
19707 if (((long) (sizeof (int))) < 0)
19709 long i = longval ();
19710 if (i != ((long) (sizeof (int))))
19712 fprintf (f, "%ld\n", i);
19716 unsigned long i = ulongval ();
19717 if (i != ((long) (sizeof (int))))
19719 fprintf (f, "%lu\n", i);
19721 exit (ferror (f) || fclose (f) != 0);
19727 rm -f conftest$ac_exeext
19728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19729 (eval $ac_link) 2>&5
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734 (eval $ac_try) 2>&5
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; }; then
19738 ac_cv_sizeof_int=`cat conftest.val`
19740 echo "$as_me: program exited with status $ac_status" >&5
19741 echo "$as_me: failed program was:" >&5
19742 sed 's/^/| /' conftest.$ac_ext >&5
19744 ( exit $ac_status )
19745 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19746 See \`config.log' for more details." >&5
19747 echo "$as_me: error: cannot compute sizeof (int), 77
19748 See \`config.log' for more details." >&2;}
19749 { (exit 1); exit 1; }; }
19751 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19759 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19760 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19761 cat >>confdefs.h <<_ACEOF
19762 #define SIZEOF_INT $ac_cv_sizeof_int
19766 echo "$as_me:$LINENO: checking for long" >&5
19767 echo $ECHO_N "checking for long... $ECHO_C" >&6
19768 if test "${ac_cv_type_long+set}" = set; then
19769 echo $ECHO_N "(cached) $ECHO_C" >&6
19771 cat >conftest.$ac_ext <<_ACEOF
19774 cat confdefs.h >>conftest.$ac_ext
19775 cat >>conftest.$ac_ext <<_ACEOF
19776 /* end confdefs.h. */
19777 $ac_includes_default
19789 rm -f conftest.$ac_objext
19790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19791 (eval $ac_compile) 2>conftest.er1
19793 grep -v '^ *+' conftest.er1 >conftest.err
19795 cat conftest.err >&5
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); } &&
19798 { ac_try='test -z "$ac_c_werror_flag"
19799 || test ! -s conftest.err'
19800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19801 (eval $ac_try) 2>&5
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); }; } &&
19805 { ac_try='test -s conftest.$ac_objext'
19806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19807 (eval $ac_try) 2>&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); }; }; then
19811 ac_cv_type_long=yes
19813 echo "$as_me: failed program was:" >&5
19814 sed 's/^/| /' conftest.$ac_ext >&5
19818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19820 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19821 echo "${ECHO_T}$ac_cv_type_long" >&6
19823 echo "$as_me:$LINENO: checking size of long" >&5
19824 echo $ECHO_N "checking size of long... $ECHO_C" >&6
19825 if test "${ac_cv_sizeof_long+set}" = set; then
19826 echo $ECHO_N "(cached) $ECHO_C" >&6
19828 if test "$ac_cv_type_long" = yes; then
19829 # The cast to unsigned long works around a bug in the HP C Compiler
19830 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19831 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19832 # This bug is HP SR number 8606223364.
19833 if test "$cross_compiling" = yes; then
19834 # Depending upon the size, compute the lo and hi bounds.
19835 cat >conftest.$ac_ext <<_ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h. */
19841 $ac_includes_default
19845 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19852 rm -f conftest.$ac_objext
19853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19854 (eval $ac_compile) 2>conftest.er1
19856 grep -v '^ *+' conftest.er1 >conftest.err
19858 cat conftest.err >&5
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); } &&
19861 { ac_try='test -z "$ac_c_werror_flag"
19862 || test ! -s conftest.err'
19863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19864 (eval $ac_try) 2>&5
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); }; } &&
19868 { ac_try='test -s conftest.$ac_objext'
19869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870 (eval $ac_try) 2>&5
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); }; }; then
19876 cat >conftest.$ac_ext <<_ACEOF
19879 cat confdefs.h >>conftest.$ac_ext
19880 cat >>conftest.$ac_ext <<_ACEOF
19881 /* end confdefs.h. */
19882 $ac_includes_default
19886 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19893 rm -f conftest.$ac_objext
19894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19895 (eval $ac_compile) 2>conftest.er1
19897 grep -v '^ *+' conftest.er1 >conftest.err
19899 cat conftest.err >&5
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); } &&
19902 { ac_try='test -z "$ac_c_werror_flag"
19903 || test ! -s conftest.err'
19904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19905 (eval $ac_try) 2>&5
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); }; } &&
19909 { ac_try='test -s conftest.$ac_objext'
19910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19911 (eval $ac_try) 2>&5
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); }; }; then
19915 ac_hi=$ac_mid; break
19917 echo "$as_me: failed program was:" >&5
19918 sed 's/^/| /' conftest.$ac_ext >&5
19920 ac_lo=`expr $ac_mid + 1`
19921 if test $ac_lo -le $ac_mid; then
19925 ac_mid=`expr 2 '*' $ac_mid + 1`
19927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19930 echo "$as_me: failed program was:" >&5
19931 sed 's/^/| /' conftest.$ac_ext >&5
19933 cat >conftest.$ac_ext <<_ACEOF
19936 cat confdefs.h >>conftest.$ac_ext
19937 cat >>conftest.$ac_ext <<_ACEOF
19938 /* end confdefs.h. */
19939 $ac_includes_default
19943 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19950 rm -f conftest.$ac_objext
19951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19952 (eval $ac_compile) 2>conftest.er1
19954 grep -v '^ *+' conftest.er1 >conftest.err
19956 cat conftest.err >&5
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); } &&
19959 { ac_try='test -z "$ac_c_werror_flag"
19960 || test ! -s conftest.err'
19961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19962 (eval $ac_try) 2>&5
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); }; } &&
19966 { ac_try='test -s conftest.$ac_objext'
19967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19968 (eval $ac_try) 2>&5
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); }; }; then
19974 cat >conftest.$ac_ext <<_ACEOF
19977 cat confdefs.h >>conftest.$ac_ext
19978 cat >>conftest.$ac_ext <<_ACEOF
19979 /* end confdefs.h. */
19980 $ac_includes_default
19984 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19991 rm -f conftest.$ac_objext
19992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19993 (eval $ac_compile) 2>conftest.er1
19995 grep -v '^ *+' conftest.er1 >conftest.err
19997 cat conftest.err >&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); } &&
20000 { ac_try='test -z "$ac_c_werror_flag"
20001 || test ! -s conftest.err'
20002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20003 (eval $ac_try) 2>&5
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); }; } &&
20007 { ac_try='test -s conftest.$ac_objext'
20008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20009 (eval $ac_try) 2>&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); }; }; then
20013 ac_lo=$ac_mid; break
20015 echo "$as_me: failed program was:" >&5
20016 sed 's/^/| /' conftest.$ac_ext >&5
20018 ac_hi=`expr '(' $ac_mid ')' - 1`
20019 if test $ac_mid -le $ac_hi; then
20023 ac_mid=`expr 2 '*' $ac_mid`
20025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20028 echo "$as_me: failed program was:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20036 # Binary search between lo and hi bounds.
20037 while test "x$ac_lo" != "x$ac_hi"; do
20038 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20039 cat >conftest.$ac_ext <<_ACEOF
20042 cat confdefs.h >>conftest.$ac_ext
20043 cat >>conftest.$ac_ext <<_ACEOF
20044 /* end confdefs.h. */
20045 $ac_includes_default
20049 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
20056 rm -f conftest.$ac_objext
20057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20058 (eval $ac_compile) 2>conftest.er1
20060 grep -v '^ *+' conftest.er1 >conftest.err
20062 cat conftest.err >&5
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); } &&
20065 { ac_try='test -z "$ac_c_werror_flag"
20066 || test ! -s conftest.err'
20067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20068 (eval $ac_try) 2>&5
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); }; } &&
20072 { ac_try='test -s conftest.$ac_objext'
20073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20074 (eval $ac_try) 2>&5
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); }; }; then
20080 echo "$as_me: failed program was:" >&5
20081 sed 's/^/| /' conftest.$ac_ext >&5
20083 ac_lo=`expr '(' $ac_mid ')' + 1`
20085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20088 ?*) ac_cv_sizeof_long=$ac_lo;;
20089 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20090 See \`config.log' for more details." >&5
20091 echo "$as_me: error: cannot compute sizeof (long), 77
20092 See \`config.log' for more details." >&2;}
20093 { (exit 1); exit 1; }; } ;;
20096 if test "$cross_compiling" = yes; then
20097 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20098 See \`config.log' for more details." >&5
20099 echo "$as_me: error: cannot run test program while cross compiling
20100 See \`config.log' for more details." >&2;}
20101 { (exit 1); exit 1; }; }
20103 cat >conftest.$ac_ext <<_ACEOF
20106 cat confdefs.h >>conftest.$ac_ext
20107 cat >>conftest.$ac_ext <<_ACEOF
20108 /* end confdefs.h. */
20109 $ac_includes_default
20110 long longval () { return (long) (sizeof (long)); }
20111 unsigned long ulongval () { return (long) (sizeof (long)); }
20113 #include <stdlib.h>
20118 FILE *f = fopen ("conftest.val", "w");
20121 if (((long) (sizeof (long))) < 0)
20123 long i = longval ();
20124 if (i != ((long) (sizeof (long))))
20126 fprintf (f, "%ld\n", i);
20130 unsigned long i = ulongval ();
20131 if (i != ((long) (sizeof (long))))
20133 fprintf (f, "%lu\n", i);
20135 exit (ferror (f) || fclose (f) != 0);
20141 rm -f conftest$ac_exeext
20142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20143 (eval $ac_link) 2>&5
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20148 (eval $ac_try) 2>&5
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); }; }; then
20152 ac_cv_sizeof_long=`cat conftest.val`
20154 echo "$as_me: program exited with status $ac_status" >&5
20155 echo "$as_me: failed program was:" >&5
20156 sed 's/^/| /' conftest.$ac_ext >&5
20158 ( exit $ac_status )
20159 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20160 See \`config.log' for more details." >&5
20161 echo "$as_me: error: cannot compute sizeof (long), 77
20162 See \`config.log' for more details." >&2;}
20163 { (exit 1); exit 1; }; }
20165 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20170 ac_cv_sizeof_long=0
20173 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
20174 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
20175 cat >>confdefs.h <<_ACEOF
20176 #define SIZEOF_LONG $ac_cv_sizeof_long
20180 echo "$as_me:$LINENO: checking for long long" >&5
20181 echo $ECHO_N "checking for long long... $ECHO_C" >&6
20182 if test "${ac_cv_type_long_long+set}" = set; then
20183 echo $ECHO_N "(cached) $ECHO_C" >&6
20185 cat >conftest.$ac_ext <<_ACEOF
20188 cat confdefs.h >>conftest.$ac_ext
20189 cat >>conftest.$ac_ext <<_ACEOF
20190 /* end confdefs.h. */
20191 $ac_includes_default
20195 if ((long long *) 0)
20197 if (sizeof (long long))
20203 rm -f conftest.$ac_objext
20204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20205 (eval $ac_compile) 2>conftest.er1
20207 grep -v '^ *+' conftest.er1 >conftest.err
20209 cat conftest.err >&5
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); } &&
20212 { ac_try='test -z "$ac_c_werror_flag"
20213 || test ! -s conftest.err'
20214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20215 (eval $ac_try) 2>&5
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); }; } &&
20219 { ac_try='test -s conftest.$ac_objext'
20220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20221 (eval $ac_try) 2>&5
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); }; }; then
20225 ac_cv_type_long_long=yes
20227 echo "$as_me: failed program was:" >&5
20228 sed 's/^/| /' conftest.$ac_ext >&5
20230 ac_cv_type_long_long=no
20232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20234 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20235 echo "${ECHO_T}$ac_cv_type_long_long" >&6
20237 echo "$as_me:$LINENO: checking size of long long" >&5
20238 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20239 if test "${ac_cv_sizeof_long_long+set}" = set; then
20240 echo $ECHO_N "(cached) $ECHO_C" >&6
20242 if test "$ac_cv_type_long_long" = yes; then
20243 # The cast to unsigned long works around a bug in the HP C Compiler
20244 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20245 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20246 # This bug is HP SR number 8606223364.
20247 if test "$cross_compiling" = yes; then
20248 # Depending upon the size, compute the lo and hi bounds.
20249 cat >conftest.$ac_ext <<_ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h. */
20255 $ac_includes_default
20259 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20266 rm -f conftest.$ac_objext
20267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20268 (eval $ac_compile) 2>conftest.er1
20270 grep -v '^ *+' conftest.er1 >conftest.err
20272 cat conftest.err >&5
20273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274 (exit $ac_status); } &&
20275 { ac_try='test -z "$ac_c_werror_flag"
20276 || test ! -s conftest.err'
20277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20278 (eval $ac_try) 2>&5
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); }; } &&
20282 { ac_try='test -s conftest.$ac_objext'
20283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20284 (eval $ac_try) 2>&5
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); }; }; then
20290 cat >conftest.$ac_ext <<_ACEOF
20293 cat confdefs.h >>conftest.$ac_ext
20294 cat >>conftest.$ac_ext <<_ACEOF
20295 /* end confdefs.h. */
20296 $ac_includes_default
20300 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20307 rm -f conftest.$ac_objext
20308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20309 (eval $ac_compile) 2>conftest.er1
20311 grep -v '^ *+' conftest.er1 >conftest.err
20313 cat conftest.err >&5
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); } &&
20316 { ac_try='test -z "$ac_c_werror_flag"
20317 || test ! -s conftest.err'
20318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20319 (eval $ac_try) 2>&5
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); }; } &&
20323 { ac_try='test -s conftest.$ac_objext'
20324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20325 (eval $ac_try) 2>&5
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); }; }; then
20329 ac_hi=$ac_mid; break
20331 echo "$as_me: failed program was:" >&5
20332 sed 's/^/| /' conftest.$ac_ext >&5
20334 ac_lo=`expr $ac_mid + 1`
20335 if test $ac_lo -le $ac_mid; then
20339 ac_mid=`expr 2 '*' $ac_mid + 1`
20341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20344 echo "$as_me: failed program was:" >&5
20345 sed 's/^/| /' conftest.$ac_ext >&5
20347 cat >conftest.$ac_ext <<_ACEOF
20350 cat confdefs.h >>conftest.$ac_ext
20351 cat >>conftest.$ac_ext <<_ACEOF
20352 /* end confdefs.h. */
20353 $ac_includes_default
20357 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20364 rm -f conftest.$ac_objext
20365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20366 (eval $ac_compile) 2>conftest.er1
20368 grep -v '^ *+' conftest.er1 >conftest.err
20370 cat conftest.err >&5
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); } &&
20373 { ac_try='test -z "$ac_c_werror_flag"
20374 || test ! -s conftest.err'
20375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20376 (eval $ac_try) 2>&5
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); }; } &&
20380 { ac_try='test -s conftest.$ac_objext'
20381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20382 (eval $ac_try) 2>&5
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); }; }; then
20388 cat >conftest.$ac_ext <<_ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h. */
20394 $ac_includes_default
20398 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20405 rm -f conftest.$ac_objext
20406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20407 (eval $ac_compile) 2>conftest.er1
20409 grep -v '^ *+' conftest.er1 >conftest.err
20411 cat conftest.err >&5
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); } &&
20414 { ac_try='test -z "$ac_c_werror_flag"
20415 || test ! -s conftest.err'
20416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20417 (eval $ac_try) 2>&5
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); }; } &&
20421 { ac_try='test -s conftest.$ac_objext'
20422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20423 (eval $ac_try) 2>&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); }; }; then
20427 ac_lo=$ac_mid; break
20429 echo "$as_me: failed program was:" >&5
20430 sed 's/^/| /' conftest.$ac_ext >&5
20432 ac_hi=`expr '(' $ac_mid ')' - 1`
20433 if test $ac_mid -le $ac_hi; then
20437 ac_mid=`expr 2 '*' $ac_mid`
20439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20442 echo "$as_me: failed program was:" >&5
20443 sed 's/^/| /' conftest.$ac_ext >&5
20447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20450 # Binary search between lo and hi bounds.
20451 while test "x$ac_lo" != "x$ac_hi"; do
20452 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20453 cat >conftest.$ac_ext <<_ACEOF
20456 cat confdefs.h >>conftest.$ac_ext
20457 cat >>conftest.$ac_ext <<_ACEOF
20458 /* end confdefs.h. */
20459 $ac_includes_default
20463 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20470 rm -f conftest.$ac_objext
20471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20472 (eval $ac_compile) 2>conftest.er1
20474 grep -v '^ *+' conftest.er1 >conftest.err
20476 cat conftest.err >&5
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); } &&
20479 { ac_try='test -z "$ac_c_werror_flag"
20480 || test ! -s conftest.err'
20481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20482 (eval $ac_try) 2>&5
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); }; } &&
20486 { ac_try='test -s conftest.$ac_objext'
20487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20488 (eval $ac_try) 2>&5
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); }; }; then
20494 echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20497 ac_lo=`expr '(' $ac_mid ')' + 1`
20499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20502 ?*) ac_cv_sizeof_long_long=$ac_lo;;
20503 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20504 See \`config.log' for more details." >&5
20505 echo "$as_me: error: cannot compute sizeof (long long), 77
20506 See \`config.log' for more details." >&2;}
20507 { (exit 1); exit 1; }; } ;;
20510 if test "$cross_compiling" = yes; then
20511 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20512 See \`config.log' for more details." >&5
20513 echo "$as_me: error: cannot run test program while cross compiling
20514 See \`config.log' for more details." >&2;}
20515 { (exit 1); exit 1; }; }
20517 cat >conftest.$ac_ext <<_ACEOF
20520 cat confdefs.h >>conftest.$ac_ext
20521 cat >>conftest.$ac_ext <<_ACEOF
20522 /* end confdefs.h. */
20523 $ac_includes_default
20524 long longval () { return (long) (sizeof (long long)); }
20525 unsigned long ulongval () { return (long) (sizeof (long long)); }
20527 #include <stdlib.h>
20532 FILE *f = fopen ("conftest.val", "w");
20535 if (((long) (sizeof (long long))) < 0)
20537 long i = longval ();
20538 if (i != ((long) (sizeof (long long))))
20540 fprintf (f, "%ld\n", i);
20544 unsigned long i = ulongval ();
20545 if (i != ((long) (sizeof (long long))))
20547 fprintf (f, "%lu\n", i);
20549 exit (ferror (f) || fclose (f) != 0);
20555 rm -f conftest$ac_exeext
20556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20557 (eval $ac_link) 2>&5
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20562 (eval $ac_try) 2>&5
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); }; }; then
20566 ac_cv_sizeof_long_long=`cat conftest.val`
20568 echo "$as_me: program exited with status $ac_status" >&5
20569 echo "$as_me: failed program was:" >&5
20570 sed 's/^/| /' conftest.$ac_ext >&5
20572 ( exit $ac_status )
20573 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20574 See \`config.log' for more details." >&5
20575 echo "$as_me: error: cannot compute sizeof (long long), 77
20576 See \`config.log' for more details." >&2;}
20577 { (exit 1); exit 1; }; }
20579 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20584 ac_cv_sizeof_long_long=0
20587 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20588 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20589 cat >>confdefs.h <<_ACEOF
20590 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20594 echo "$as_me:$LINENO: checking for intmax_t" >&5
20595 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
20596 if test "${ac_cv_type_intmax_t+set}" = set; then
20597 echo $ECHO_N "(cached) $ECHO_C" >&6
20599 cat >conftest.$ac_ext <<_ACEOF
20602 cat confdefs.h >>conftest.$ac_ext
20603 cat >>conftest.$ac_ext <<_ACEOF
20604 /* end confdefs.h. */
20605 $ac_includes_default
20609 if ((intmax_t *) 0)
20611 if (sizeof (intmax_t))
20617 rm -f conftest.$ac_objext
20618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20619 (eval $ac_compile) 2>conftest.er1
20621 grep -v '^ *+' conftest.er1 >conftest.err
20623 cat conftest.err >&5
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); } &&
20626 { ac_try='test -z "$ac_c_werror_flag"
20627 || test ! -s conftest.err'
20628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20629 (eval $ac_try) 2>&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); }; } &&
20633 { ac_try='test -s conftest.$ac_objext'
20634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20635 (eval $ac_try) 2>&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); }; }; then
20639 ac_cv_type_intmax_t=yes
20641 echo "$as_me: failed program was:" >&5
20642 sed 's/^/| /' conftest.$ac_ext >&5
20644 ac_cv_type_intmax_t=no
20646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20648 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
20649 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
20651 echo "$as_me:$LINENO: checking size of intmax_t" >&5
20652 echo $ECHO_N "checking size of intmax_t... $ECHO_C" >&6
20653 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
20654 echo $ECHO_N "(cached) $ECHO_C" >&6
20656 if test "$ac_cv_type_intmax_t" = yes; then
20657 # The cast to unsigned long works around a bug in the HP C Compiler
20658 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20659 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20660 # This bug is HP SR number 8606223364.
20661 if test "$cross_compiling" = yes; then
20662 # Depending upon the size, compute the lo and hi bounds.
20663 cat >conftest.$ac_ext <<_ACEOF
20666 cat confdefs.h >>conftest.$ac_ext
20667 cat >>conftest.$ac_ext <<_ACEOF
20668 /* end confdefs.h. */
20669 $ac_includes_default
20673 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) >= 0)];
20680 rm -f conftest.$ac_objext
20681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20682 (eval $ac_compile) 2>conftest.er1
20684 grep -v '^ *+' conftest.er1 >conftest.err
20686 cat conftest.err >&5
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); } &&
20689 { ac_try='test -z "$ac_c_werror_flag"
20690 || test ! -s conftest.err'
20691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692 (eval $ac_try) 2>&5
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); }; } &&
20696 { ac_try='test -s conftest.$ac_objext'
20697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20698 (eval $ac_try) 2>&5
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); }; }; then
20704 cat >conftest.$ac_ext <<_ACEOF
20707 cat confdefs.h >>conftest.$ac_ext
20708 cat >>conftest.$ac_ext <<_ACEOF
20709 /* end confdefs.h. */
20710 $ac_includes_default
20714 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) <= $ac_mid)];
20721 rm -f conftest.$ac_objext
20722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20723 (eval $ac_compile) 2>conftest.er1
20725 grep -v '^ *+' conftest.er1 >conftest.err
20727 cat conftest.err >&5
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); } &&
20730 { ac_try='test -z "$ac_c_werror_flag"
20731 || test ! -s conftest.err'
20732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20733 (eval $ac_try) 2>&5
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); }; } &&
20737 { ac_try='test -s conftest.$ac_objext'
20738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20739 (eval $ac_try) 2>&5
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); }; }; then
20743 ac_hi=$ac_mid; break
20745 echo "$as_me: failed program was:" >&5
20746 sed 's/^/| /' conftest.$ac_ext >&5
20748 ac_lo=`expr $ac_mid + 1`
20749 if test $ac_lo -le $ac_mid; then
20753 ac_mid=`expr 2 '*' $ac_mid + 1`
20755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20758 echo "$as_me: failed program was:" >&5
20759 sed 's/^/| /' conftest.$ac_ext >&5
20761 cat >conftest.$ac_ext <<_ACEOF
20764 cat confdefs.h >>conftest.$ac_ext
20765 cat >>conftest.$ac_ext <<_ACEOF
20766 /* end confdefs.h. */
20767 $ac_includes_default
20771 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) < 0)];
20778 rm -f conftest.$ac_objext
20779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20780 (eval $ac_compile) 2>conftest.er1
20782 grep -v '^ *+' conftest.er1 >conftest.err
20784 cat conftest.err >&5
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); } &&
20787 { ac_try='test -z "$ac_c_werror_flag"
20788 || test ! -s conftest.err'
20789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790 (eval $ac_try) 2>&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); }; } &&
20794 { ac_try='test -s conftest.$ac_objext'
20795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20796 (eval $ac_try) 2>&5
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); }; }; then
20802 cat >conftest.$ac_ext <<_ACEOF
20805 cat confdefs.h >>conftest.$ac_ext
20806 cat >>conftest.$ac_ext <<_ACEOF
20807 /* end confdefs.h. */
20808 $ac_includes_default
20812 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) >= $ac_mid)];
20819 rm -f conftest.$ac_objext
20820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20821 (eval $ac_compile) 2>conftest.er1
20823 grep -v '^ *+' conftest.er1 >conftest.err
20825 cat conftest.err >&5
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); } &&
20828 { ac_try='test -z "$ac_c_werror_flag"
20829 || test ! -s conftest.err'
20830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20831 (eval $ac_try) 2>&5
20833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834 (exit $ac_status); }; } &&
20835 { ac_try='test -s conftest.$ac_objext'
20836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20837 (eval $ac_try) 2>&5
20839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840 (exit $ac_status); }; }; then
20841 ac_lo=$ac_mid; break
20843 echo "$as_me: failed program was:" >&5
20844 sed 's/^/| /' conftest.$ac_ext >&5
20846 ac_hi=`expr '(' $ac_mid ')' - 1`
20847 if test $ac_mid -le $ac_hi; then
20851 ac_mid=`expr 2 '*' $ac_mid`
20853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20856 echo "$as_me: failed program was:" >&5
20857 sed 's/^/| /' conftest.$ac_ext >&5
20861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20864 # Binary search between lo and hi bounds.
20865 while test "x$ac_lo" != "x$ac_hi"; do
20866 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20867 cat >conftest.$ac_ext <<_ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20873 $ac_includes_default
20877 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) <= $ac_mid)];
20884 rm -f conftest.$ac_objext
20885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20886 (eval $ac_compile) 2>conftest.er1
20888 grep -v '^ *+' conftest.er1 >conftest.err
20890 cat conftest.err >&5
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); } &&
20893 { ac_try='test -z "$ac_c_werror_flag"
20894 || test ! -s conftest.err'
20895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896 (eval $ac_try) 2>&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); }; } &&
20900 { ac_try='test -s conftest.$ac_objext'
20901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20902 (eval $ac_try) 2>&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); }; }; then
20908 echo "$as_me: failed program was:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20911 ac_lo=`expr '(' $ac_mid ')' + 1`
20913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20916 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
20917 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t), 77
20918 See \`config.log' for more details." >&5
20919 echo "$as_me: error: cannot compute sizeof (intmax_t), 77
20920 See \`config.log' for more details." >&2;}
20921 { (exit 1); exit 1; }; } ;;
20924 if test "$cross_compiling" = yes; then
20925 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20926 See \`config.log' for more details." >&5
20927 echo "$as_me: error: cannot run test program while cross compiling
20928 See \`config.log' for more details." >&2;}
20929 { (exit 1); exit 1; }; }
20931 cat >conftest.$ac_ext <<_ACEOF
20934 cat confdefs.h >>conftest.$ac_ext
20935 cat >>conftest.$ac_ext <<_ACEOF
20936 /* end confdefs.h. */
20937 $ac_includes_default
20938 long longval () { return (long) (sizeof (intmax_t)); }
20939 unsigned long ulongval () { return (long) (sizeof (intmax_t)); }
20941 #include <stdlib.h>
20946 FILE *f = fopen ("conftest.val", "w");
20949 if (((long) (sizeof (intmax_t))) < 0)
20951 long i = longval ();
20952 if (i != ((long) (sizeof (intmax_t))))
20954 fprintf (f, "%ld\n", i);
20958 unsigned long i = ulongval ();
20959 if (i != ((long) (sizeof (intmax_t))))
20961 fprintf (f, "%lu\n", i);
20963 exit (ferror (f) || fclose (f) != 0);
20969 rm -f conftest$ac_exeext
20970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20971 (eval $ac_link) 2>&5
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20976 (eval $ac_try) 2>&5
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); }; }; then
20980 ac_cv_sizeof_intmax_t=`cat conftest.val`
20982 echo "$as_me: program exited with status $ac_status" >&5
20983 echo "$as_me: failed program was:" >&5
20984 sed 's/^/| /' conftest.$ac_ext >&5
20986 ( exit $ac_status )
20987 { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t), 77
20988 See \`config.log' for more details." >&5
20989 echo "$as_me: error: cannot compute sizeof (intmax_t), 77
20990 See \`config.log' for more details." >&2;}
20991 { (exit 1); exit 1; }; }
20993 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20998 ac_cv_sizeof_intmax_t=0
21001 echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
21002 echo "${ECHO_T}$ac_cv_sizeof_intmax_t" >&6
21003 cat >>confdefs.h <<_ACEOF
21004 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
21008 echo "$as_me:$LINENO: checking for off_t" >&5
21009 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21010 if test "${ac_cv_type_off_t+set}" = set; then
21011 echo $ECHO_N "(cached) $ECHO_C" >&6
21013 cat >conftest.$ac_ext <<_ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h. */
21019 $ac_includes_default
21025 if (sizeof (off_t))
21031 rm -f conftest.$ac_objext
21032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21033 (eval $ac_compile) 2>conftest.er1
21035 grep -v '^ *+' conftest.er1 >conftest.err
21037 cat conftest.err >&5
21038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); } &&
21040 { ac_try='test -z "$ac_c_werror_flag"
21041 || test ! -s conftest.err'
21042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21043 (eval $ac_try) 2>&5
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); }; } &&
21047 { ac_try='test -s conftest.$ac_objext'
21048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21049 (eval $ac_try) 2>&5
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); }; }; then
21053 ac_cv_type_off_t=yes
21055 echo "$as_me: failed program was:" >&5
21056 sed 's/^/| /' conftest.$ac_ext >&5
21058 ac_cv_type_off_t=no
21060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21062 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21063 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21065 echo "$as_me:$LINENO: checking size of off_t" >&5
21066 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
21067 if test "${ac_cv_sizeof_off_t+set}" = set; then
21068 echo $ECHO_N "(cached) $ECHO_C" >&6
21070 if test "$ac_cv_type_off_t" = yes; then
21071 # The cast to unsigned long works around a bug in the HP C Compiler
21072 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21073 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21074 # This bug is HP SR number 8606223364.
21075 if test "$cross_compiling" = yes; then
21076 # Depending upon the size, compute the lo and hi bounds.
21077 cat >conftest.$ac_ext <<_ACEOF
21080 cat confdefs.h >>conftest.$ac_ext
21081 cat >>conftest.$ac_ext <<_ACEOF
21082 /* end confdefs.h. */
21083 $ac_includes_default
21087 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
21094 rm -f conftest.$ac_objext
21095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21096 (eval $ac_compile) 2>conftest.er1
21098 grep -v '^ *+' conftest.er1 >conftest.err
21100 cat conftest.err >&5
21101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102 (exit $ac_status); } &&
21103 { ac_try='test -z "$ac_c_werror_flag"
21104 || test ! -s conftest.err'
21105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21106 (eval $ac_try) 2>&5
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); }; } &&
21110 { ac_try='test -s conftest.$ac_objext'
21111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21112 (eval $ac_try) 2>&5
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); }; }; then
21118 cat >conftest.$ac_ext <<_ACEOF
21121 cat confdefs.h >>conftest.$ac_ext
21122 cat >>conftest.$ac_ext <<_ACEOF
21123 /* end confdefs.h. */
21124 $ac_includes_default
21128 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
21135 rm -f conftest.$ac_objext
21136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21137 (eval $ac_compile) 2>conftest.er1
21139 grep -v '^ *+' conftest.er1 >conftest.err
21141 cat conftest.err >&5
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); } &&
21144 { ac_try='test -z "$ac_c_werror_flag"
21145 || test ! -s conftest.err'
21146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21147 (eval $ac_try) 2>&5
21149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150 (exit $ac_status); }; } &&
21151 { ac_try='test -s conftest.$ac_objext'
21152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21153 (eval $ac_try) 2>&5
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); }; }; then
21157 ac_hi=$ac_mid; break
21159 echo "$as_me: failed program was:" >&5
21160 sed 's/^/| /' conftest.$ac_ext >&5
21162 ac_lo=`expr $ac_mid + 1`
21163 if test $ac_lo -le $ac_mid; then
21167 ac_mid=`expr 2 '*' $ac_mid + 1`
21169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21172 echo "$as_me: failed program was:" >&5
21173 sed 's/^/| /' conftest.$ac_ext >&5
21175 cat >conftest.$ac_ext <<_ACEOF
21178 cat confdefs.h >>conftest.$ac_ext
21179 cat >>conftest.$ac_ext <<_ACEOF
21180 /* end confdefs.h. */
21181 $ac_includes_default
21185 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
21192 rm -f conftest.$ac_objext
21193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21194 (eval $ac_compile) 2>conftest.er1
21196 grep -v '^ *+' conftest.er1 >conftest.err
21198 cat conftest.err >&5
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); } &&
21201 { ac_try='test -z "$ac_c_werror_flag"
21202 || test ! -s conftest.err'
21203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21204 (eval $ac_try) 2>&5
21206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207 (exit $ac_status); }; } &&
21208 { ac_try='test -s conftest.$ac_objext'
21209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21210 (eval $ac_try) 2>&5
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); }; }; then
21216 cat >conftest.$ac_ext <<_ACEOF
21219 cat confdefs.h >>conftest.$ac_ext
21220 cat >>conftest.$ac_ext <<_ACEOF
21221 /* end confdefs.h. */
21222 $ac_includes_default
21226 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
21233 rm -f conftest.$ac_objext
21234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21235 (eval $ac_compile) 2>conftest.er1
21237 grep -v '^ *+' conftest.er1 >conftest.err
21239 cat conftest.err >&5
21240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241 (exit $ac_status); } &&
21242 { ac_try='test -z "$ac_c_werror_flag"
21243 || test ! -s conftest.err'
21244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21245 (eval $ac_try) 2>&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); }; } &&
21249 { ac_try='test -s conftest.$ac_objext'
21250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21251 (eval $ac_try) 2>&5
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); }; }; then
21255 ac_lo=$ac_mid; break
21257 echo "$as_me: failed program was:" >&5
21258 sed 's/^/| /' conftest.$ac_ext >&5
21260 ac_hi=`expr '(' $ac_mid ')' - 1`
21261 if test $ac_mid -le $ac_hi; then
21265 ac_mid=`expr 2 '*' $ac_mid`
21267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21270 echo "$as_me: failed program was:" >&5
21271 sed 's/^/| /' conftest.$ac_ext >&5
21275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21278 # Binary search between lo and hi bounds.
21279 while test "x$ac_lo" != "x$ac_hi"; do
21280 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21281 cat >conftest.$ac_ext <<_ACEOF
21284 cat confdefs.h >>conftest.$ac_ext
21285 cat >>conftest.$ac_ext <<_ACEOF
21286 /* end confdefs.h. */
21287 $ac_includes_default
21291 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
21298 rm -f conftest.$ac_objext
21299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21300 (eval $ac_compile) 2>conftest.er1
21302 grep -v '^ *+' conftest.er1 >conftest.err
21304 cat conftest.err >&5
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); } &&
21307 { ac_try='test -z "$ac_c_werror_flag"
21308 || test ! -s conftest.err'
21309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21310 (eval $ac_try) 2>&5
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); }; } &&
21314 { ac_try='test -s conftest.$ac_objext'
21315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21316 (eval $ac_try) 2>&5
21318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319 (exit $ac_status); }; }; then
21322 echo "$as_me: failed program was:" >&5
21323 sed 's/^/| /' conftest.$ac_ext >&5
21325 ac_lo=`expr '(' $ac_mid ')' + 1`
21327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21330 ?*) ac_cv_sizeof_off_t=$ac_lo;;
21331 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
21332 See \`config.log' for more details." >&5
21333 echo "$as_me: error: cannot compute sizeof (off_t), 77
21334 See \`config.log' for more details." >&2;}
21335 { (exit 1); exit 1; }; } ;;
21338 if test "$cross_compiling" = yes; then
21339 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21340 See \`config.log' for more details." >&5
21341 echo "$as_me: error: cannot run test program while cross compiling
21342 See \`config.log' for more details." >&2;}
21343 { (exit 1); exit 1; }; }
21345 cat >conftest.$ac_ext <<_ACEOF
21348 cat confdefs.h >>conftest.$ac_ext
21349 cat >>conftest.$ac_ext <<_ACEOF
21350 /* end confdefs.h. */
21351 $ac_includes_default
21352 long longval () { return (long) (sizeof (off_t)); }
21353 unsigned long ulongval () { return (long) (sizeof (off_t)); }
21355 #include <stdlib.h>
21360 FILE *f = fopen ("conftest.val", "w");
21363 if (((long) (sizeof (off_t))) < 0)
21365 long i = longval ();
21366 if (i != ((long) (sizeof (off_t))))
21368 fprintf (f, "%ld\n", i);
21372 unsigned long i = ulongval ();
21373 if (i != ((long) (sizeof (off_t))))
21375 fprintf (f, "%lu\n", i);
21377 exit (ferror (f) || fclose (f) != 0);
21383 rm -f conftest$ac_exeext
21384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21385 (eval $ac_link) 2>&5
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21390 (eval $ac_try) 2>&5
21392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393 (exit $ac_status); }; }; then
21394 ac_cv_sizeof_off_t=`cat conftest.val`
21396 echo "$as_me: program exited with status $ac_status" >&5
21397 echo "$as_me: failed program was:" >&5
21398 sed 's/^/| /' conftest.$ac_ext >&5
21400 ( exit $ac_status )
21401 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
21402 See \`config.log' for more details." >&5
21403 echo "$as_me: error: cannot compute sizeof (off_t), 77
21404 See \`config.log' for more details." >&2;}
21405 { (exit 1); exit 1; }; }
21407 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21412 ac_cv_sizeof_off_t=0
21415 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
21416 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
21417 cat >>confdefs.h <<_ACEOF
21418 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21422 echo "$as_me:$LINENO: checking for size_t" >&5
21423 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21424 if test "${ac_cv_type_size_t+set}" = set; then
21425 echo $ECHO_N "(cached) $ECHO_C" >&6
21427 cat >conftest.$ac_ext <<_ACEOF
21430 cat confdefs.h >>conftest.$ac_ext
21431 cat >>conftest.$ac_ext <<_ACEOF
21432 /* end confdefs.h. */
21433 $ac_includes_default
21439 if (sizeof (size_t))
21445 rm -f conftest.$ac_objext
21446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21447 (eval $ac_compile) 2>conftest.er1
21449 grep -v '^ *+' conftest.er1 >conftest.err
21451 cat conftest.err >&5
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); } &&
21454 { ac_try='test -z "$ac_c_werror_flag"
21455 || test ! -s conftest.err'
21456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21457 (eval $ac_try) 2>&5
21459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460 (exit $ac_status); }; } &&
21461 { ac_try='test -s conftest.$ac_objext'
21462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21463 (eval $ac_try) 2>&5
21465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466 (exit $ac_status); }; }; then
21467 ac_cv_type_size_t=yes
21469 echo "$as_me: failed program was:" >&5
21470 sed 's/^/| /' conftest.$ac_ext >&5
21472 ac_cv_type_size_t=no
21474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21476 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21477 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21479 echo "$as_me:$LINENO: checking size of size_t" >&5
21480 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
21481 if test "${ac_cv_sizeof_size_t+set}" = set; then
21482 echo $ECHO_N "(cached) $ECHO_C" >&6
21484 if test "$ac_cv_type_size_t" = yes; then
21485 # The cast to unsigned long works around a bug in the HP C Compiler
21486 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21487 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21488 # This bug is HP SR number 8606223364.
21489 if test "$cross_compiling" = yes; then
21490 # Depending upon the size, compute the lo and hi bounds.
21491 cat >conftest.$ac_ext <<_ACEOF
21494 cat confdefs.h >>conftest.$ac_ext
21495 cat >>conftest.$ac_ext <<_ACEOF
21496 /* end confdefs.h. */
21497 $ac_includes_default
21501 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
21508 rm -f conftest.$ac_objext
21509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21510 (eval $ac_compile) 2>conftest.er1
21512 grep -v '^ *+' conftest.er1 >conftest.err
21514 cat conftest.err >&5
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); } &&
21517 { ac_try='test -z "$ac_c_werror_flag"
21518 || test ! -s conftest.err'
21519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21520 (eval $ac_try) 2>&5
21522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523 (exit $ac_status); }; } &&
21524 { ac_try='test -s conftest.$ac_objext'
21525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21526 (eval $ac_try) 2>&5
21528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); }; }; then
21532 cat >conftest.$ac_ext <<_ACEOF
21535 cat confdefs.h >>conftest.$ac_ext
21536 cat >>conftest.$ac_ext <<_ACEOF
21537 /* end confdefs.h. */
21538 $ac_includes_default
21542 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
21549 rm -f conftest.$ac_objext
21550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21551 (eval $ac_compile) 2>conftest.er1
21553 grep -v '^ *+' conftest.er1 >conftest.err
21555 cat conftest.err >&5
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); } &&
21558 { ac_try='test -z "$ac_c_werror_flag"
21559 || test ! -s conftest.err'
21560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561 (eval $ac_try) 2>&5
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); }; } &&
21565 { ac_try='test -s conftest.$ac_objext'
21566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567 (eval $ac_try) 2>&5
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); }; }; then
21571 ac_hi=$ac_mid; break
21573 echo "$as_me: failed program was:" >&5
21574 sed 's/^/| /' conftest.$ac_ext >&5
21576 ac_lo=`expr $ac_mid + 1`
21577 if test $ac_lo -le $ac_mid; then
21581 ac_mid=`expr 2 '*' $ac_mid + 1`
21583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21586 echo "$as_me: failed program was:" >&5
21587 sed 's/^/| /' conftest.$ac_ext >&5
21589 cat >conftest.$ac_ext <<_ACEOF
21592 cat confdefs.h >>conftest.$ac_ext
21593 cat >>conftest.$ac_ext <<_ACEOF
21594 /* end confdefs.h. */
21595 $ac_includes_default
21599 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
21606 rm -f conftest.$ac_objext
21607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21608 (eval $ac_compile) 2>conftest.er1
21610 grep -v '^ *+' conftest.er1 >conftest.err
21612 cat conftest.err >&5
21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); } &&
21615 { ac_try='test -z "$ac_c_werror_flag"
21616 || test ! -s conftest.err'
21617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21618 (eval $ac_try) 2>&5
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); }; } &&
21622 { ac_try='test -s conftest.$ac_objext'
21623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21624 (eval $ac_try) 2>&5
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); }; }; then
21630 cat >conftest.$ac_ext <<_ACEOF
21633 cat confdefs.h >>conftest.$ac_ext
21634 cat >>conftest.$ac_ext <<_ACEOF
21635 /* end confdefs.h. */
21636 $ac_includes_default
21640 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
21647 rm -f conftest.$ac_objext
21648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21649 (eval $ac_compile) 2>conftest.er1
21651 grep -v '^ *+' conftest.er1 >conftest.err
21653 cat conftest.err >&5
21654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655 (exit $ac_status); } &&
21656 { ac_try='test -z "$ac_c_werror_flag"
21657 || test ! -s conftest.err'
21658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21659 (eval $ac_try) 2>&5
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); }; } &&
21663 { ac_try='test -s conftest.$ac_objext'
21664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21665 (eval $ac_try) 2>&5
21667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); }; }; then
21669 ac_lo=$ac_mid; break
21671 echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.$ac_ext >&5
21674 ac_hi=`expr '(' $ac_mid ')' - 1`
21675 if test $ac_mid -le $ac_hi; then
21679 ac_mid=`expr 2 '*' $ac_mid`
21681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21684 echo "$as_me: failed program was:" >&5
21685 sed 's/^/| /' conftest.$ac_ext >&5
21689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21692 # Binary search between lo and hi bounds.
21693 while test "x$ac_lo" != "x$ac_hi"; do
21694 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21695 cat >conftest.$ac_ext <<_ACEOF
21698 cat confdefs.h >>conftest.$ac_ext
21699 cat >>conftest.$ac_ext <<_ACEOF
21700 /* end confdefs.h. */
21701 $ac_includes_default
21705 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
21712 rm -f conftest.$ac_objext
21713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21714 (eval $ac_compile) 2>conftest.er1
21716 grep -v '^ *+' conftest.er1 >conftest.err
21718 cat conftest.err >&5
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); } &&
21721 { ac_try='test -z "$ac_c_werror_flag"
21722 || test ! -s conftest.err'
21723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21724 (eval $ac_try) 2>&5
21726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727 (exit $ac_status); }; } &&
21728 { ac_try='test -s conftest.$ac_objext'
21729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21730 (eval $ac_try) 2>&5
21732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733 (exit $ac_status); }; }; then
21736 echo "$as_me: failed program was:" >&5
21737 sed 's/^/| /' conftest.$ac_ext >&5
21739 ac_lo=`expr '(' $ac_mid ')' + 1`
21741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21744 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21745 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
21746 See \`config.log' for more details." >&5
21747 echo "$as_me: error: cannot compute sizeof (size_t), 77
21748 See \`config.log' for more details." >&2;}
21749 { (exit 1); exit 1; }; } ;;
21752 if test "$cross_compiling" = yes; then
21753 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21754 See \`config.log' for more details." >&5
21755 echo "$as_me: error: cannot run test program while cross compiling
21756 See \`config.log' for more details." >&2;}
21757 { (exit 1); exit 1; }; }
21759 cat >conftest.$ac_ext <<_ACEOF
21762 cat confdefs.h >>conftest.$ac_ext
21763 cat >>conftest.$ac_ext <<_ACEOF
21764 /* end confdefs.h. */
21765 $ac_includes_default
21766 long longval () { return (long) (sizeof (size_t)); }
21767 unsigned long ulongval () { return (long) (sizeof (size_t)); }
21769 #include <stdlib.h>
21774 FILE *f = fopen ("conftest.val", "w");
21777 if (((long) (sizeof (size_t))) < 0)
21779 long i = longval ();
21780 if (i != ((long) (sizeof (size_t))))
21782 fprintf (f, "%ld\n", i);
21786 unsigned long i = ulongval ();
21787 if (i != ((long) (sizeof (size_t))))
21789 fprintf (f, "%lu\n", i);
21791 exit (ferror (f) || fclose (f) != 0);
21797 rm -f conftest$ac_exeext
21798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21799 (eval $ac_link) 2>&5
21801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21804 (eval $ac_try) 2>&5
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); }; }; then
21808 ac_cv_sizeof_size_t=`cat conftest.val`
21810 echo "$as_me: program exited with status $ac_status" >&5
21811 echo "$as_me: failed program was:" >&5
21812 sed 's/^/| /' conftest.$ac_ext >&5
21814 ( exit $ac_status )
21815 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
21816 See \`config.log' for more details." >&5
21817 echo "$as_me: error: cannot compute sizeof (size_t), 77
21818 See \`config.log' for more details." >&2;}
21819 { (exit 1); exit 1; }; }
21821 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21826 ac_cv_sizeof_size_t=0
21829 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21830 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
21831 cat >>confdefs.h <<_ACEOF
21832 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21836 echo "$as_me:$LINENO: checking for ssize_t" >&5
21837 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
21838 if test "${ac_cv_type_ssize_t+set}" = set; then
21839 echo $ECHO_N "(cached) $ECHO_C" >&6
21841 cat >conftest.$ac_ext <<_ACEOF
21844 cat confdefs.h >>conftest.$ac_ext
21845 cat >>conftest.$ac_ext <<_ACEOF
21846 /* end confdefs.h. */
21847 $ac_includes_default
21853 if (sizeof (ssize_t))
21859 rm -f conftest.$ac_objext
21860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21861 (eval $ac_compile) 2>conftest.er1
21863 grep -v '^ *+' conftest.er1 >conftest.err
21865 cat conftest.err >&5
21866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867 (exit $ac_status); } &&
21868 { ac_try='test -z "$ac_c_werror_flag"
21869 || test ! -s conftest.err'
21870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21871 (eval $ac_try) 2>&5
21873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874 (exit $ac_status); }; } &&
21875 { ac_try='test -s conftest.$ac_objext'
21876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21877 (eval $ac_try) 2>&5
21879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); }; }; then
21881 ac_cv_type_ssize_t=yes
21883 echo "$as_me: failed program was:" >&5
21884 sed 's/^/| /' conftest.$ac_ext >&5
21886 ac_cv_type_ssize_t=no
21888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21890 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
21891 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
21893 echo "$as_me:$LINENO: checking size of ssize_t" >&5
21894 echo $ECHO_N "checking size of ssize_t... $ECHO_C" >&6
21895 if test "${ac_cv_sizeof_ssize_t+set}" = set; then
21896 echo $ECHO_N "(cached) $ECHO_C" >&6
21898 if test "$ac_cv_type_ssize_t" = yes; then
21899 # The cast to unsigned long works around a bug in the HP C Compiler
21900 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21901 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21902 # This bug is HP SR number 8606223364.
21903 if test "$cross_compiling" = yes; then
21904 # Depending upon the size, compute the lo and hi bounds.
21905 cat >conftest.$ac_ext <<_ACEOF
21908 cat confdefs.h >>conftest.$ac_ext
21909 cat >>conftest.$ac_ext <<_ACEOF
21910 /* end confdefs.h. */
21911 $ac_includes_default
21915 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) >= 0)];
21922 rm -f conftest.$ac_objext
21923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21924 (eval $ac_compile) 2>conftest.er1
21926 grep -v '^ *+' conftest.er1 >conftest.err
21928 cat conftest.err >&5
21929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930 (exit $ac_status); } &&
21931 { ac_try='test -z "$ac_c_werror_flag"
21932 || test ! -s conftest.err'
21933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21934 (eval $ac_try) 2>&5
21936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937 (exit $ac_status); }; } &&
21938 { ac_try='test -s conftest.$ac_objext'
21939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21940 (eval $ac_try) 2>&5
21942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943 (exit $ac_status); }; }; then
21946 cat >conftest.$ac_ext <<_ACEOF
21949 cat confdefs.h >>conftest.$ac_ext
21950 cat >>conftest.$ac_ext <<_ACEOF
21951 /* end confdefs.h. */
21952 $ac_includes_default
21956 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) <= $ac_mid)];
21963 rm -f conftest.$ac_objext
21964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21965 (eval $ac_compile) 2>conftest.er1
21967 grep -v '^ *+' conftest.er1 >conftest.err
21969 cat conftest.err >&5
21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); } &&
21972 { ac_try='test -z "$ac_c_werror_flag"
21973 || test ! -s conftest.err'
21974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21975 (eval $ac_try) 2>&5
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); }; } &&
21979 { ac_try='test -s conftest.$ac_objext'
21980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21981 (eval $ac_try) 2>&5
21983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984 (exit $ac_status); }; }; then
21985 ac_hi=$ac_mid; break
21987 echo "$as_me: failed program was:" >&5
21988 sed 's/^/| /' conftest.$ac_ext >&5
21990 ac_lo=`expr $ac_mid + 1`
21991 if test $ac_lo -le $ac_mid; then
21995 ac_mid=`expr 2 '*' $ac_mid + 1`
21997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22000 echo "$as_me: failed program was:" >&5
22001 sed 's/^/| /' conftest.$ac_ext >&5
22003 cat >conftest.$ac_ext <<_ACEOF
22006 cat confdefs.h >>conftest.$ac_ext
22007 cat >>conftest.$ac_ext <<_ACEOF
22008 /* end confdefs.h. */
22009 $ac_includes_default
22013 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) < 0)];
22020 rm -f conftest.$ac_objext
22021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22022 (eval $ac_compile) 2>conftest.er1
22024 grep -v '^ *+' conftest.er1 >conftest.err
22026 cat conftest.err >&5
22027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028 (exit $ac_status); } &&
22029 { ac_try='test -z "$ac_c_werror_flag"
22030 || test ! -s conftest.err'
22031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22032 (eval $ac_try) 2>&5
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); }; } &&
22036 { ac_try='test -s conftest.$ac_objext'
22037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22038 (eval $ac_try) 2>&5
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); }; }; then
22044 cat >conftest.$ac_ext <<_ACEOF
22047 cat confdefs.h >>conftest.$ac_ext
22048 cat >>conftest.$ac_ext <<_ACEOF
22049 /* end confdefs.h. */
22050 $ac_includes_default
22054 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) >= $ac_mid)];
22061 rm -f conftest.$ac_objext
22062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22063 (eval $ac_compile) 2>conftest.er1
22065 grep -v '^ *+' conftest.er1 >conftest.err
22067 cat conftest.err >&5
22068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069 (exit $ac_status); } &&
22070 { ac_try='test -z "$ac_c_werror_flag"
22071 || test ! -s conftest.err'
22072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22073 (eval $ac_try) 2>&5
22075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076 (exit $ac_status); }; } &&
22077 { ac_try='test -s conftest.$ac_objext'
22078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22079 (eval $ac_try) 2>&5
22081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082 (exit $ac_status); }; }; then
22083 ac_lo=$ac_mid; break
22085 echo "$as_me: failed program was:" >&5
22086 sed 's/^/| /' conftest.$ac_ext >&5
22088 ac_hi=`expr '(' $ac_mid ')' - 1`
22089 if test $ac_mid -le $ac_hi; then
22093 ac_mid=`expr 2 '*' $ac_mid`
22095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22098 echo "$as_me: failed program was:" >&5
22099 sed 's/^/| /' conftest.$ac_ext >&5
22103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22106 # Binary search between lo and hi bounds.
22107 while test "x$ac_lo" != "x$ac_hi"; do
22108 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22109 cat >conftest.$ac_ext <<_ACEOF
22112 cat confdefs.h >>conftest.$ac_ext
22113 cat >>conftest.$ac_ext <<_ACEOF
22114 /* end confdefs.h. */
22115 $ac_includes_default
22119 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) <= $ac_mid)];
22126 rm -f conftest.$ac_objext
22127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22128 (eval $ac_compile) 2>conftest.er1
22130 grep -v '^ *+' conftest.er1 >conftest.err
22132 cat conftest.err >&5
22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134 (exit $ac_status); } &&
22135 { ac_try='test -z "$ac_c_werror_flag"
22136 || test ! -s conftest.err'
22137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22138 (eval $ac_try) 2>&5
22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); }; } &&
22142 { ac_try='test -s conftest.$ac_objext'
22143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22144 (eval $ac_try) 2>&5
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); }; }; then
22150 echo "$as_me: failed program was:" >&5
22151 sed 's/^/| /' conftest.$ac_ext >&5
22153 ac_lo=`expr '(' $ac_mid ')' + 1`
22155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22158 ?*) ac_cv_sizeof_ssize_t=$ac_lo;;
22159 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t), 77
22160 See \`config.log' for more details." >&5
22161 echo "$as_me: error: cannot compute sizeof (ssize_t), 77
22162 See \`config.log' for more details." >&2;}
22163 { (exit 1); exit 1; }; } ;;
22166 if test "$cross_compiling" = yes; then
22167 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22168 See \`config.log' for more details." >&5
22169 echo "$as_me: error: cannot run test program while cross compiling
22170 See \`config.log' for more details." >&2;}
22171 { (exit 1); exit 1; }; }
22173 cat >conftest.$ac_ext <<_ACEOF
22176 cat confdefs.h >>conftest.$ac_ext
22177 cat >>conftest.$ac_ext <<_ACEOF
22178 /* end confdefs.h. */
22179 $ac_includes_default
22180 long longval () { return (long) (sizeof (ssize_t)); }
22181 unsigned long ulongval () { return (long) (sizeof (ssize_t)); }
22183 #include <stdlib.h>
22188 FILE *f = fopen ("conftest.val", "w");
22191 if (((long) (sizeof (ssize_t))) < 0)
22193 long i = longval ();
22194 if (i != ((long) (sizeof (ssize_t))))
22196 fprintf (f, "%ld\n", i);
22200 unsigned long i = ulongval ();
22201 if (i != ((long) (sizeof (ssize_t))))
22203 fprintf (f, "%lu\n", i);
22205 exit (ferror (f) || fclose (f) != 0);
22211 rm -f conftest$ac_exeext
22212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22213 (eval $ac_link) 2>&5
22215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22218 (eval $ac_try) 2>&5
22220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 (exit $ac_status); }; }; then
22222 ac_cv_sizeof_ssize_t=`cat conftest.val`
22224 echo "$as_me: program exited with status $ac_status" >&5
22225 echo "$as_me: failed program was:" >&5
22226 sed 's/^/| /' conftest.$ac_ext >&5
22228 ( exit $ac_status )
22229 { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t), 77
22230 See \`config.log' for more details." >&5
22231 echo "$as_me: error: cannot compute sizeof (ssize_t), 77
22232 See \`config.log' for more details." >&2;}
22233 { (exit 1); exit 1; }; }
22235 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22240 ac_cv_sizeof_ssize_t=0
22243 echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
22244 echo "${ECHO_T}$ac_cv_sizeof_ssize_t" >&6
22245 cat >>confdefs.h <<_ACEOF
22246 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
22250 echo "$as_me:$LINENO: checking for time_t" >&5
22251 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
22252 if test "${ac_cv_type_time_t+set}" = set; then
22253 echo $ECHO_N "(cached) $ECHO_C" >&6
22255 cat >conftest.$ac_ext <<_ACEOF
22258 cat confdefs.h >>conftest.$ac_ext
22259 cat >>conftest.$ac_ext <<_ACEOF
22260 /* end confdefs.h. */
22261 $ac_includes_default
22267 if (sizeof (time_t))
22273 rm -f conftest.$ac_objext
22274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22275 (eval $ac_compile) 2>conftest.er1
22277 grep -v '^ *+' conftest.er1 >conftest.err
22279 cat conftest.err >&5
22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); } &&
22282 { ac_try='test -z "$ac_c_werror_flag"
22283 || test ! -s conftest.err'
22284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22285 (eval $ac_try) 2>&5
22287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288 (exit $ac_status); }; } &&
22289 { ac_try='test -s conftest.$ac_objext'
22290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22291 (eval $ac_try) 2>&5
22293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294 (exit $ac_status); }; }; then
22295 ac_cv_type_time_t=yes
22297 echo "$as_me: failed program was:" >&5
22298 sed 's/^/| /' conftest.$ac_ext >&5
22300 ac_cv_type_time_t=no
22302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22304 echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
22305 echo "${ECHO_T}$ac_cv_type_time_t" >&6
22307 echo "$as_me:$LINENO: checking size of time_t" >&5
22308 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
22309 if test "${ac_cv_sizeof_time_t+set}" = set; then
22310 echo $ECHO_N "(cached) $ECHO_C" >&6
22312 if test "$ac_cv_type_time_t" = yes; then
22313 # The cast to unsigned long works around a bug in the HP C Compiler
22314 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22315 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22316 # This bug is HP SR number 8606223364.
22317 if test "$cross_compiling" = yes; then
22318 # Depending upon the size, compute the lo and hi bounds.
22319 cat >conftest.$ac_ext <<_ACEOF
22322 cat confdefs.h >>conftest.$ac_ext
22323 cat >>conftest.$ac_ext <<_ACEOF
22324 /* end confdefs.h. */
22325 $ac_includes_default
22329 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) >= 0)];
22336 rm -f conftest.$ac_objext
22337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22338 (eval $ac_compile) 2>conftest.er1
22340 grep -v '^ *+' conftest.er1 >conftest.err
22342 cat conftest.err >&5
22343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22344 (exit $ac_status); } &&
22345 { ac_try='test -z "$ac_c_werror_flag"
22346 || test ! -s conftest.err'
22347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22348 (eval $ac_try) 2>&5
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); }; } &&
22352 { ac_try='test -s conftest.$ac_objext'
22353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22354 (eval $ac_try) 2>&5
22356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357 (exit $ac_status); }; }; then
22360 cat >conftest.$ac_ext <<_ACEOF
22363 cat confdefs.h >>conftest.$ac_ext
22364 cat >>conftest.$ac_ext <<_ACEOF
22365 /* end confdefs.h. */
22366 $ac_includes_default
22370 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) <= $ac_mid)];
22377 rm -f conftest.$ac_objext
22378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22379 (eval $ac_compile) 2>conftest.er1
22381 grep -v '^ *+' conftest.er1 >conftest.err
22383 cat conftest.err >&5
22384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385 (exit $ac_status); } &&
22386 { ac_try='test -z "$ac_c_werror_flag"
22387 || test ! -s conftest.err'
22388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22389 (eval $ac_try) 2>&5
22391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392 (exit $ac_status); }; } &&
22393 { ac_try='test -s conftest.$ac_objext'
22394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22395 (eval $ac_try) 2>&5
22397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398 (exit $ac_status); }; }; then
22399 ac_hi=$ac_mid; break
22401 echo "$as_me: failed program was:" >&5
22402 sed 's/^/| /' conftest.$ac_ext >&5
22404 ac_lo=`expr $ac_mid + 1`
22405 if test $ac_lo -le $ac_mid; then
22409 ac_mid=`expr 2 '*' $ac_mid + 1`
22411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22414 echo "$as_me: failed program was:" >&5
22415 sed 's/^/| /' conftest.$ac_ext >&5
22417 cat >conftest.$ac_ext <<_ACEOF
22420 cat confdefs.h >>conftest.$ac_ext
22421 cat >>conftest.$ac_ext <<_ACEOF
22422 /* end confdefs.h. */
22423 $ac_includes_default
22427 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) < 0)];
22434 rm -f conftest.$ac_objext
22435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22436 (eval $ac_compile) 2>conftest.er1
22438 grep -v '^ *+' conftest.er1 >conftest.err
22440 cat conftest.err >&5
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); } &&
22443 { ac_try='test -z "$ac_c_werror_flag"
22444 || test ! -s conftest.err'
22445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22446 (eval $ac_try) 2>&5
22448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449 (exit $ac_status); }; } &&
22450 { ac_try='test -s conftest.$ac_objext'
22451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22452 (eval $ac_try) 2>&5
22454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 (exit $ac_status); }; }; then
22458 cat >conftest.$ac_ext <<_ACEOF
22461 cat confdefs.h >>conftest.$ac_ext
22462 cat >>conftest.$ac_ext <<_ACEOF
22463 /* end confdefs.h. */
22464 $ac_includes_default
22468 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) >= $ac_mid)];
22475 rm -f conftest.$ac_objext
22476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22477 (eval $ac_compile) 2>conftest.er1
22479 grep -v '^ *+' conftest.er1 >conftest.err
22481 cat conftest.err >&5
22482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483 (exit $ac_status); } &&
22484 { ac_try='test -z "$ac_c_werror_flag"
22485 || test ! -s conftest.err'
22486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22487 (eval $ac_try) 2>&5
22489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490 (exit $ac_status); }; } &&
22491 { ac_try='test -s conftest.$ac_objext'
22492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22493 (eval $ac_try) 2>&5
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); }; }; then
22497 ac_lo=$ac_mid; break
22499 echo "$as_me: failed program was:" >&5
22500 sed 's/^/| /' conftest.$ac_ext >&5
22502 ac_hi=`expr '(' $ac_mid ')' - 1`
22503 if test $ac_mid -le $ac_hi; then
22507 ac_mid=`expr 2 '*' $ac_mid`
22509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22512 echo "$as_me: failed program was:" >&5
22513 sed 's/^/| /' conftest.$ac_ext >&5
22517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22520 # Binary search between lo and hi bounds.
22521 while test "x$ac_lo" != "x$ac_hi"; do
22522 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22523 cat >conftest.$ac_ext <<_ACEOF
22526 cat confdefs.h >>conftest.$ac_ext
22527 cat >>conftest.$ac_ext <<_ACEOF
22528 /* end confdefs.h. */
22529 $ac_includes_default
22533 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) <= $ac_mid)];
22540 rm -f conftest.$ac_objext
22541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22542 (eval $ac_compile) 2>conftest.er1
22544 grep -v '^ *+' conftest.er1 >conftest.err
22546 cat conftest.err >&5
22547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548 (exit $ac_status); } &&
22549 { ac_try='test -z "$ac_c_werror_flag"
22550 || test ! -s conftest.err'
22551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22552 (eval $ac_try) 2>&5
22554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555 (exit $ac_status); }; } &&
22556 { ac_try='test -s conftest.$ac_objext'
22557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22558 (eval $ac_try) 2>&5
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); }; }; then
22564 echo "$as_me: failed program was:" >&5
22565 sed 's/^/| /' conftest.$ac_ext >&5
22567 ac_lo=`expr '(' $ac_mid ')' + 1`
22569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22572 ?*) ac_cv_sizeof_time_t=$ac_lo;;
22573 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t), 77
22574 See \`config.log' for more details." >&5
22575 echo "$as_me: error: cannot compute sizeof (time_t), 77
22576 See \`config.log' for more details." >&2;}
22577 { (exit 1); exit 1; }; } ;;
22580 if test "$cross_compiling" = yes; then
22581 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22582 See \`config.log' for more details." >&5
22583 echo "$as_me: error: cannot run test program while cross compiling
22584 See \`config.log' for more details." >&2;}
22585 { (exit 1); exit 1; }; }
22587 cat >conftest.$ac_ext <<_ACEOF
22590 cat confdefs.h >>conftest.$ac_ext
22591 cat >>conftest.$ac_ext <<_ACEOF
22592 /* end confdefs.h. */
22593 $ac_includes_default
22594 long longval () { return (long) (sizeof (time_t)); }
22595 unsigned long ulongval () { return (long) (sizeof (time_t)); }
22597 #include <stdlib.h>
22602 FILE *f = fopen ("conftest.val", "w");
22605 if (((long) (sizeof (time_t))) < 0)
22607 long i = longval ();
22608 if (i != ((long) (sizeof (time_t))))
22610 fprintf (f, "%ld\n", i);
22614 unsigned long i = ulongval ();
22615 if (i != ((long) (sizeof (time_t))))
22617 fprintf (f, "%lu\n", i);
22619 exit (ferror (f) || fclose (f) != 0);
22625 rm -f conftest$ac_exeext
22626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22627 (eval $ac_link) 2>&5
22629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22632 (eval $ac_try) 2>&5
22634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22635 (exit $ac_status); }; }; then
22636 ac_cv_sizeof_time_t=`cat conftest.val`
22638 echo "$as_me: program exited with status $ac_status" >&5
22639 echo "$as_me: failed program was:" >&5
22640 sed 's/^/| /' conftest.$ac_ext >&5
22642 ( exit $ac_status )
22643 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t), 77
22644 See \`config.log' for more details." >&5
22645 echo "$as_me: error: cannot compute sizeof (time_t), 77
22646 See \`config.log' for more details." >&2;}
22647 { (exit 1); exit 1; }; }
22649 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22654 ac_cv_sizeof_time_t=0
22657 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
22658 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
22659 cat >>confdefs.h <<_ACEOF
22660 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
22665 # Check whether --enable-shared or --disable-shared was given.
22666 if test "${enable_shared+set}" = set; then
22667 enableval="$enable_shared"
22668 p=${PACKAGE-default}
22670 yes) enable_shared=yes ;;
22671 no) enable_shared=no ;;
22674 # Look at the argument we got. We use all the common list separators.
22675 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
22676 for pkg in $enableval; do
22678 if test "X$pkg" = "X$p"; then
22689 # Check whether --enable-static or --disable-static was given.
22690 if test "${enable_static+set}" = set; then
22691 enableval="$enable_static"
22692 p=${PACKAGE-default}
22694 yes) enable_static=yes ;;
22695 no) enable_static=no ;;
22698 # Look at the argument we got. We use all the common list separators.
22699 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
22700 for pkg in $enableval; do
22702 if test "X$pkg" = "X$p"; then
22713 # Check whether --enable-fast-install or --disable-fast-install was given.
22714 if test "${enable_fast_install+set}" = set; then
22715 enableval="$enable_fast_install"
22716 p=${PACKAGE-default}
22718 yes) enable_fast_install=yes ;;
22719 no) enable_fast_install=no ;;
22721 enable_fast_install=no
22722 # Look at the argument we got. We use all the common list separators.
22723 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
22724 for pkg in $enableval; do
22726 if test "X$pkg" = "X$p"; then
22727 enable_fast_install=yes
22734 enable_fast_install=yes
22737 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
22738 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
22739 if test "${lt_cv_path_SED+set}" = set; then
22740 echo $ECHO_N "(cached) $ECHO_C" >&6
22742 # Loop through the user's path and test for sed and gsed.
22743 # Then use that list of sed's as ones to test for truncation.
22744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22745 for as_dir in $PATH
22748 test -z "$as_dir" && as_dir=.
22749 for lt_ac_prog in sed gsed; do
22750 for ac_exec_ext in '' $ac_executable_extensions; do
22751 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
22752 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
22759 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
22760 # along with /bin/sed that truncates output.
22761 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
22762 test ! -f $lt_ac_sed && continue
22763 cat /dev/null > conftest.in
22765 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
22766 # Check for GNU sed and select it if it is found.
22767 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
22768 lt_cv_path_SED=$lt_ac_sed
22772 cat conftest.in conftest.in >conftest.tmp
22773 mv conftest.tmp conftest.in
22774 cp conftest.in conftest.nl
22776 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
22777 cmp -s conftest.out conftest.nl || break
22778 # 10000 chars as input seems more than enough
22779 test $lt_ac_count -gt 10 && break
22780 lt_ac_count=`expr $lt_ac_count + 1`
22781 if test $lt_ac_count -gt $lt_ac_max; then
22782 lt_ac_max=$lt_ac_count
22783 lt_cv_path_SED=$lt_ac_sed
22790 SED=$lt_cv_path_SED
22791 echo "$as_me:$LINENO: result: $SED" >&5
22792 echo "${ECHO_T}$SED" >&6
22795 # Check whether --with-gnu-ld or --without-gnu-ld was given.
22796 if test "${with_gnu_ld+set}" = set; then
22797 withval="$with_gnu_ld"
22798 test "$withval" = no || with_gnu_ld=yes
22803 if test "$GCC" = yes; then
22804 # Check if gcc -print-prog-name=ld gives a path.
22805 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
22806 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
22809 # gcc leaves a trailing carriage return which upsets mingw
22810 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22812 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22815 # Accept absolute paths.
22817 re_direlt='/[^/][^/]*/\.\./'
22818 # Canonicalize the pathname of ld
22819 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
22820 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
22821 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
22823 test -z "$LD" && LD="$ac_prog"
22826 # If it fails, then pretend we aren't using GCC.
22830 # If it is relative, then search for the first ld in PATH.
22831 with_gnu_ld=unknown
22834 elif test "$with_gnu_ld" = yes; then
22835 echo "$as_me:$LINENO: checking for GNU ld" >&5
22836 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
22838 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
22839 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
22841 if test "${lt_cv_path_LD+set}" = set; then
22842 echo $ECHO_N "(cached) $ECHO_C" >&6
22844 if test -z "$LD"; then
22845 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
22846 for ac_dir in $PATH; do
22848 test -z "$ac_dir" && ac_dir=.
22849 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22850 lt_cv_path_LD="$ac_dir/$ac_prog"
22851 # Check to see if the program is GNU ld. I'd rather use --version,
22852 # but apparently some variants of GNU ld only accept -v.
22853 # Break only if it was the GNU/non-GNU ld that we prefer.
22854 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
22855 *GNU* | *'with BFD'*)
22856 test "$with_gnu_ld" != no && break
22859 test "$with_gnu_ld" != yes && break
22866 lt_cv_path_LD="$LD" # Let the user override the test with a path.
22870 LD="$lt_cv_path_LD"
22871 if test -n "$LD"; then
22872 echo "$as_me:$LINENO: result: $LD" >&5
22873 echo "${ECHO_T}$LD" >&6
22875 echo "$as_me:$LINENO: result: no" >&5
22876 echo "${ECHO_T}no" >&6
22878 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
22879 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
22880 { (exit 1); exit 1; }; }
22881 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
22882 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
22883 if test "${lt_cv_prog_gnu_ld+set}" = set; then
22884 echo $ECHO_N "(cached) $ECHO_C" >&6
22886 # I'd rather use --version here, but apparently some GNU lds only accept -v.
22887 case `$LD -v 2>&1 </dev/null` in
22888 *GNU* | *'with BFD'*)
22889 lt_cv_prog_gnu_ld=yes
22892 lt_cv_prog_gnu_ld=no
22896 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
22897 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
22898 with_gnu_ld=$lt_cv_prog_gnu_ld
22901 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
22902 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
22903 if test "${lt_cv_ld_reload_flag+set}" = set; then
22904 echo $ECHO_N "(cached) $ECHO_C" >&6
22906 lt_cv_ld_reload_flag='-r'
22908 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
22909 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
22910 reload_flag=$lt_cv_ld_reload_flag
22911 case $reload_flag in
22913 *) reload_flag=" $reload_flag" ;;
22915 reload_cmds='$LD$reload_flag -o $output$reload_objs'
22918 if test "$GCC" = yes; then
22919 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
22921 reload_cmds='$LD$reload_flag -o $output$reload_objs'
22926 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
22927 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
22928 if test "${lt_cv_path_NM+set}" = set; then
22929 echo $ECHO_N "(cached) $ECHO_C" >&6
22931 if test -n "$NM"; then
22932 # Let the user override the test.
22933 lt_cv_path_NM="$NM"
22935 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
22936 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
22938 test -z "$ac_dir" && ac_dir=.
22939 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
22940 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
22941 # Check to see if the nm accepts a BSD-compat flag.
22942 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
22943 # nm: unknown option "B" ignored
22944 # Tru64's nm complains that /dev/null is an invalid object file
22945 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
22946 */dev/null* | *'Invalid file or object type'*)
22947 lt_cv_path_NM="$tmp_nm -B"
22951 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
22953 lt_cv_path_NM="$tmp_nm -p"
22957 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
22958 continue # so that we can try to find one that supports BSD flags
22965 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
22968 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
22969 echo "${ECHO_T}$lt_cv_path_NM" >&6
22970 NM="$lt_cv_path_NM"
22972 echo "$as_me:$LINENO: checking whether ln -s works" >&5
22973 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
22975 if test "$LN_S" = "ln -s"; then
22976 echo "$as_me:$LINENO: result: yes" >&5
22977 echo "${ECHO_T}yes" >&6
22979 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
22980 echo "${ECHO_T}no, using $LN_S" >&6
22983 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
22984 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
22985 if test "${lt_cv_deplibs_check_method+set}" = set; then
22986 echo $ECHO_N "(cached) $ECHO_C" >&6
22988 lt_cv_file_magic_cmd='$MAGIC_CMD'
22989 lt_cv_file_magic_test_file=
22990 lt_cv_deplibs_check_method='unknown'
22991 # Need to set the preceding variable on all platforms that support
22992 # interlibrary dependencies.
22993 # 'none' -- dependencies not supported.
22994 # `unknown' -- same as none, but documents that we really don't know.
22995 # 'pass_all' -- all dependencies passed with no checks.
22996 # 'test_compile' -- check by making test program.
22997 # 'file_magic [[regex]]' -- check by looking for files in library path
22998 # which responds to the $file_magic_cmd with a given extended regex.
22999 # If you have `file' or equivalent on your system and you're not sure
23000 # whether `pass_all' will *always* work, you probably want this one.
23004 lt_cv_deplibs_check_method=pass_all
23008 lt_cv_deplibs_check_method=pass_all
23012 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
23013 lt_cv_file_magic_cmd='/usr/bin/file -L'
23014 lt_cv_file_magic_test_file=/shlib/libc.so
23018 # func_win32_libid is a shell function defined in ltmain.sh
23019 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
23020 lt_cv_file_magic_cmd='func_win32_libid'
23024 # Base MSYS/MinGW do not provide the 'file' command needed by
23025 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
23026 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
23027 lt_cv_file_magic_cmd='$OBJDUMP -f'
23030 darwin* | rhapsody*)
23031 lt_cv_deplibs_check_method=pass_all
23034 freebsd* | kfreebsd*-gnu | dragonfly*)
23035 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
23038 # Not sure whether the presence of OpenBSD here was a mistake.
23039 # Let's accept both of them until this is cleared up.
23040 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
23041 lt_cv_file_magic_cmd=/usr/bin/file
23042 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
23046 lt_cv_deplibs_check_method=pass_all
23051 lt_cv_deplibs_check_method=pass_all
23054 hpux10.20* | hpux11*)
23055 lt_cv_file_magic_cmd=/usr/bin/file
23058 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
23059 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
23062 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]'
23063 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
23066 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
23067 lt_cv_file_magic_test_file=/usr/lib/libc.sl
23072 irix5* | irix6* | nonstopux*)
23074 *-32|*"-32 ") libmagic=32-bit;;
23075 *-n32|*"-n32 ") libmagic=N32;;
23076 *-64|*"-64 ") libmagic=64-bit;;
23077 *) libmagic=never-match;;
23079 lt_cv_deplibs_check_method=pass_all
23082 # This must be Linux ELF.
23084 lt_cv_deplibs_check_method=pass_all
23088 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
23089 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
23091 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
23096 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
23097 lt_cv_file_magic_cmd=/usr/bin/file
23098 lt_cv_file_magic_test_file=/usr/lib/libnls.so
23102 lt_cv_deplibs_check_method=unknown
23106 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23107 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
23109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
23113 osf3* | osf4* | osf5*)
23114 lt_cv_deplibs_check_method=pass_all
23118 lt_cv_deplibs_check_method=pass_all
23122 lt_cv_deplibs_check_method=pass_all
23125 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23126 case $host_vendor in
23128 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]'
23129 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
23132 lt_cv_deplibs_check_method=pass_all
23135 lt_cv_file_magic_cmd='/bin/file'
23136 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
23139 lt_cv_file_magic_cmd='/bin/file'
23140 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
23141 lt_cv_file_magic_test_file=/lib/libc.so
23144 lt_cv_deplibs_check_method=pass_all
23149 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
23150 lt_cv_deplibs_check_method=pass_all
23155 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
23156 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
23157 file_magic_cmd=$lt_cv_file_magic_cmd
23158 deplibs_check_method=$lt_cv_deplibs_check_method
23159 test -z "$deplibs_check_method" && deplibs_check_method=unknown
23162 # If no C compiler was specified, use CC.
23165 # Allow CC to be a program name with arguments.
23168 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
23169 if test "${enable_libtool_lock+set}" = set; then
23170 enableval="$enable_libtool_lock"
23173 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
23175 # Some flags need to be propagated to the compiler or linker for good
23179 # Find out which ABI we are using.
23180 echo 'int i;' > conftest.$ac_ext
23181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23182 (eval $ac_compile) 2>&5
23184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185 (exit $ac_status); }; then
23186 case `/usr/bin/file conftest.$ac_objext` in
23188 HPUX_IA64_MODE="32"
23191 HPUX_IA64_MODE="64"
23198 # Find out which ABI we are using.
23199 echo '#line 23199 "configure"' > conftest.$ac_ext
23200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23201 (eval $ac_compile) 2>&5
23203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23204 (exit $ac_status); }; then
23205 if test "$lt_cv_prog_gnu_ld" = yes; then
23206 case `/usr/bin/file conftest.$ac_objext` in
23208 LD="${LD-ld} -melf32bsmip"
23211 LD="${LD-ld} -melf32bmipn32"
23214 LD="${LD-ld} -melf64bmip"
23218 case `/usr/bin/file conftest.$ac_objext` in
23234 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
23235 # Find out which ABI we are using.
23236 echo 'int i;' > conftest.$ac_ext
23237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23238 (eval $ac_compile) 2>&5
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); }; then
23242 case `/usr/bin/file conftest.o` in
23246 LD="${LD-ld} -m elf_i386"
23248 ppc64-*linux*|powerpc64-*linux*)
23249 LD="${LD-ld} -m elf32ppclinux"
23252 LD="${LD-ld} -m elf_s390"
23255 LD="${LD-ld} -m elf32_sparc"
23262 LD="${LD-ld} -m elf_x86_64"
23264 ppc*-*linux*|powerpc*-*linux*)
23265 LD="${LD-ld} -m elf64ppc"
23268 LD="${LD-ld} -m elf64_s390"
23271 LD="${LD-ld} -m elf64_sparc"
23281 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
23282 SAVE_CFLAGS="$CFLAGS"
23283 CFLAGS="$CFLAGS -belf"
23284 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
23285 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
23286 if test "${lt_cv_cc_needs_belf+set}" = set; then
23287 echo $ECHO_N "(cached) $ECHO_C" >&6
23290 ac_cpp='$CPP $CPPFLAGS'
23291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23295 cat >conftest.$ac_ext <<_ACEOF
23298 cat confdefs.h >>conftest.$ac_ext
23299 cat >>conftest.$ac_ext <<_ACEOF
23300 /* end confdefs.h. */
23310 rm -f conftest.$ac_objext conftest$ac_exeext
23311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23312 (eval $ac_link) 2>conftest.er1
23314 grep -v '^ *+' conftest.er1 >conftest.err
23316 cat conftest.err >&5
23317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318 (exit $ac_status); } &&
23319 { ac_try='test -z "$ac_c_werror_flag"
23320 || test ! -s conftest.err'
23321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23322 (eval $ac_try) 2>&5
23324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325 (exit $ac_status); }; } &&
23326 { ac_try='test -s conftest$ac_exeext'
23327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23328 (eval $ac_try) 2>&5
23330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331 (exit $ac_status); }; }; then
23332 lt_cv_cc_needs_belf=yes
23334 echo "$as_me: failed program was:" >&5
23335 sed 's/^/| /' conftest.$ac_ext >&5
23337 lt_cv_cc_needs_belf=no
23339 rm -f conftest.err conftest.$ac_objext \
23340 conftest$ac_exeext conftest.$ac_ext
23342 ac_cpp='$CPP $CPPFLAGS'
23343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23348 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
23349 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
23350 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
23351 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
23352 CFLAGS="$SAVE_CFLAGS"
23358 need_locks="$enable_libtool_lock"
23362 for ac_header in dlfcn.h
23364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23366 echo "$as_me:$LINENO: checking for $ac_header" >&5
23367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23369 echo $ECHO_N "(cached) $ECHO_C" >&6
23371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23374 # Is the header compilable?
23375 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23376 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23377 cat >conftest.$ac_ext <<_ACEOF
23380 cat confdefs.h >>conftest.$ac_ext
23381 cat >>conftest.$ac_ext <<_ACEOF
23382 /* end confdefs.h. */
23383 $ac_includes_default
23384 #include <$ac_header>
23386 rm -f conftest.$ac_objext
23387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23388 (eval $ac_compile) 2>conftest.er1
23390 grep -v '^ *+' conftest.er1 >conftest.err
23392 cat conftest.err >&5
23393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394 (exit $ac_status); } &&
23395 { ac_try='test -z "$ac_c_werror_flag"
23396 || test ! -s conftest.err'
23397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23398 (eval $ac_try) 2>&5
23400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401 (exit $ac_status); }; } &&
23402 { ac_try='test -s conftest.$ac_objext'
23403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23404 (eval $ac_try) 2>&5
23406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23407 (exit $ac_status); }; }; then
23408 ac_header_compiler=yes
23410 echo "$as_me: failed program was:" >&5
23411 sed 's/^/| /' conftest.$ac_ext >&5
23413 ac_header_compiler=no
23415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23417 echo "${ECHO_T}$ac_header_compiler" >&6
23419 # Is the header present?
23420 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23422 cat >conftest.$ac_ext <<_ACEOF
23425 cat confdefs.h >>conftest.$ac_ext
23426 cat >>conftest.$ac_ext <<_ACEOF
23427 /* end confdefs.h. */
23428 #include <$ac_header>
23430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23433 grep -v '^ *+' conftest.er1 >conftest.err
23435 cat conftest.err >&5
23436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437 (exit $ac_status); } >/dev/null; then
23438 if test -s conftest.err; then
23439 ac_cpp_err=$ac_c_preproc_warn_flag
23440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23447 if test -z "$ac_cpp_err"; then
23448 ac_header_preproc=yes
23450 echo "$as_me: failed program was:" >&5
23451 sed 's/^/| /' conftest.$ac_ext >&5
23453 ac_header_preproc=no
23455 rm -f conftest.err conftest.$ac_ext
23456 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23457 echo "${ECHO_T}$ac_header_preproc" >&6
23459 # So? What about this header?
23460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23466 ac_header_preproc=yes
23469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23476 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23483 ## ------------------------------------------ ##
23484 ## Report this to the AC_PACKAGE_NAME lists. ##
23485 ## ------------------------------------------ ##
23488 sed "s/^/$as_me: WARNING: /" >&2
23491 echo "$as_me:$LINENO: checking for $ac_header" >&5
23492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23494 echo $ECHO_N "(cached) $ECHO_C" >&6
23496 eval "$as_ac_Header=\$ac_header_preproc"
23498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23503 cat >>confdefs.h <<_ACEOF
23504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23512 ac_cpp='$CXXCPP $CPPFLAGS'
23513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23516 if test -n "$ac_tool_prefix"; then
23517 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
23519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23521 echo "$as_me:$LINENO: checking for $ac_word" >&5
23522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23523 if test "${ac_cv_prog_CXX+set}" = set; then
23524 echo $ECHO_N "(cached) $ECHO_C" >&6
23526 if test -n "$CXX"; then
23527 ac_cv_prog_CXX="$CXX" # Let the user override the test.
23529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23530 for as_dir in $PATH
23533 test -z "$as_dir" && as_dir=.
23534 for ac_exec_ext in '' $ac_executable_extensions; do
23535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23536 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
23537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23545 CXX=$ac_cv_prog_CXX
23546 if test -n "$CXX"; then
23547 echo "$as_me:$LINENO: result: $CXX" >&5
23548 echo "${ECHO_T}$CXX" >&6
23550 echo "$as_me:$LINENO: result: no" >&5
23551 echo "${ECHO_T}no" >&6
23554 test -n "$CXX" && break
23557 if test -z "$CXX"; then
23559 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
23561 # Extract the first word of "$ac_prog", so it can be a program name with args.
23562 set dummy $ac_prog; ac_word=$2
23563 echo "$as_me:$LINENO: checking for $ac_word" >&5
23564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23565 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
23566 echo $ECHO_N "(cached) $ECHO_C" >&6
23568 if test -n "$ac_ct_CXX"; then
23569 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23572 for as_dir in $PATH
23575 test -z "$as_dir" && as_dir=.
23576 for ac_exec_ext in '' $ac_executable_extensions; do
23577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23578 ac_cv_prog_ac_ct_CXX="$ac_prog"
23579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23587 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23588 if test -n "$ac_ct_CXX"; then
23589 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
23590 echo "${ECHO_T}$ac_ct_CXX" >&6
23592 echo "$as_me:$LINENO: result: no" >&5
23593 echo "${ECHO_T}no" >&6
23596 test -n "$ac_ct_CXX" && break
23598 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
23604 # Provide some information about the compiler.
23605 echo "$as_me:$LINENO:" \
23606 "checking for C++ compiler version" >&5
23607 ac_compiler=`set X $ac_compile; echo $2`
23608 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
23609 (eval $ac_compiler --version </dev/null >&5) 2>&5
23611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612 (exit $ac_status); }
23613 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
23614 (eval $ac_compiler -v </dev/null >&5) 2>&5
23616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617 (exit $ac_status); }
23618 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
23619 (eval $ac_compiler -V </dev/null >&5) 2>&5
23621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23622 (exit $ac_status); }
23624 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
23625 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
23626 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
23627 echo $ECHO_N "(cached) $ECHO_C" >&6
23629 cat >conftest.$ac_ext <<_ACEOF
23632 cat confdefs.h >>conftest.$ac_ext
23633 cat >>conftest.$ac_ext <<_ACEOF
23634 /* end confdefs.h. */
23647 rm -f conftest.$ac_objext
23648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23649 (eval $ac_compile) 2>conftest.er1
23651 grep -v '^ *+' conftest.er1 >conftest.err
23653 cat conftest.err >&5
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); } &&
23656 { ac_try='test -z "$ac_cxx_werror_flag"
23657 || test ! -s conftest.err'
23658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23659 (eval $ac_try) 2>&5
23661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662 (exit $ac_status); }; } &&
23663 { ac_try='test -s conftest.$ac_objext'
23664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23665 (eval $ac_try) 2>&5
23667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668 (exit $ac_status); }; }; then
23669 ac_compiler_gnu=yes
23671 echo "$as_me: failed program was:" >&5
23672 sed 's/^/| /' conftest.$ac_ext >&5
23676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23677 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23680 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
23681 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
23682 GXX=`test $ac_compiler_gnu = yes && echo yes`
23683 ac_test_CXXFLAGS=${CXXFLAGS+set}
23684 ac_save_CXXFLAGS=$CXXFLAGS
23686 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
23687 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
23688 if test "${ac_cv_prog_cxx_g+set}" = set; then
23689 echo $ECHO_N "(cached) $ECHO_C" >&6
23691 cat >conftest.$ac_ext <<_ACEOF
23694 cat confdefs.h >>conftest.$ac_ext
23695 cat >>conftest.$ac_ext <<_ACEOF
23696 /* end confdefs.h. */
23706 rm -f conftest.$ac_objext
23707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23708 (eval $ac_compile) 2>conftest.er1
23710 grep -v '^ *+' conftest.er1 >conftest.err
23712 cat conftest.err >&5
23713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23714 (exit $ac_status); } &&
23715 { ac_try='test -z "$ac_cxx_werror_flag"
23716 || test ! -s conftest.err'
23717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23718 (eval $ac_try) 2>&5
23720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721 (exit $ac_status); }; } &&
23722 { ac_try='test -s conftest.$ac_objext'
23723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23724 (eval $ac_try) 2>&5
23726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727 (exit $ac_status); }; }; then
23728 ac_cv_prog_cxx_g=yes
23730 echo "$as_me: failed program was:" >&5
23731 sed 's/^/| /' conftest.$ac_ext >&5
23733 ac_cv_prog_cxx_g=no
23735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23737 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
23738 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
23739 if test "$ac_test_CXXFLAGS" = set; then
23740 CXXFLAGS=$ac_save_CXXFLAGS
23741 elif test $ac_cv_prog_cxx_g = yes; then
23742 if test "$GXX" = yes; then
23748 if test "$GXX" = yes; then
23754 for ac_declaration in \
23756 'extern "C" void std::exit (int) throw (); using std::exit;' \
23757 'extern "C" void std::exit (int); using std::exit;' \
23758 'extern "C" void exit (int) throw ();' \
23759 'extern "C" void exit (int);' \
23762 cat >conftest.$ac_ext <<_ACEOF
23765 cat confdefs.h >>conftest.$ac_ext
23766 cat >>conftest.$ac_ext <<_ACEOF
23767 /* end confdefs.h. */
23769 #include <stdlib.h>
23778 rm -f conftest.$ac_objext
23779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23780 (eval $ac_compile) 2>conftest.er1
23782 grep -v '^ *+' conftest.er1 >conftest.err
23784 cat conftest.err >&5
23785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786 (exit $ac_status); } &&
23787 { ac_try='test -z "$ac_cxx_werror_flag"
23788 || test ! -s conftest.err'
23789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23790 (eval $ac_try) 2>&5
23792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793 (exit $ac_status); }; } &&
23794 { ac_try='test -s conftest.$ac_objext'
23795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23796 (eval $ac_try) 2>&5
23798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799 (exit $ac_status); }; }; then
23802 echo "$as_me: failed program was:" >&5
23803 sed 's/^/| /' conftest.$ac_ext >&5
23807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23808 cat >conftest.$ac_ext <<_ACEOF
23811 cat confdefs.h >>conftest.$ac_ext
23812 cat >>conftest.$ac_ext <<_ACEOF
23813 /* end confdefs.h. */
23823 rm -f conftest.$ac_objext
23824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23825 (eval $ac_compile) 2>conftest.er1
23827 grep -v '^ *+' conftest.er1 >conftest.err
23829 cat conftest.err >&5
23830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23831 (exit $ac_status); } &&
23832 { ac_try='test -z "$ac_cxx_werror_flag"
23833 || test ! -s conftest.err'
23834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23835 (eval $ac_try) 2>&5
23837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838 (exit $ac_status); }; } &&
23839 { ac_try='test -s conftest.$ac_objext'
23840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23841 (eval $ac_try) 2>&5
23843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844 (exit $ac_status); }; }; then
23847 echo "$as_me: failed program was:" >&5
23848 sed 's/^/| /' conftest.$ac_ext >&5
23851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23854 if test -n "$ac_declaration"; then
23855 echo '#ifdef __cplusplus' >>confdefs.h
23856 echo $ac_declaration >>confdefs.h
23857 echo '#endif' >>confdefs.h
23861 ac_cpp='$CXXCPP $CPPFLAGS'
23862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23866 depcc="$CXX" am_compiler_list=
23868 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
23869 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
23870 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
23871 echo $ECHO_N "(cached) $ECHO_C" >&6
23873 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23874 # We make a subdir and do the tests there. Otherwise we can end up
23875 # making bogus files that we don't know about and never remove. For
23876 # instance it was reported that on HP-UX the gcc test will end up
23877 # making a dummy file named `D' -- because `-MD' means `put the output
23880 # Copy depcomp to subdir because otherwise we won't find it if we're
23881 # using a relative directory.
23882 cp "$am_depcomp" conftest.dir
23884 # We will build objects and dependencies in a subdirectory because
23885 # it helps to detect inapplicable dependency modes. For instance
23886 # both Tru64's cc and ICC support -MD to output dependencies as a
23887 # side effect of compilation, but ICC will put the dependencies in
23888 # the current directory while Tru64 will put them in the object
23892 am_cv_CXX_dependencies_compiler_type=none
23893 if test "$am_compiler_list" = ""; then
23894 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23896 for depmode in $am_compiler_list; do
23897 # Setup a source with many dependencies, because some compilers
23898 # like to wrap large dependency lists on column 80 (with \), and
23899 # we should not choose a depcomp mode which is confused by this.
23901 # We need to recreate these files for each test, as the compiler may
23902 # overwrite some of them when testing with obscure command lines.
23903 # This happens at least with the AIX C compiler.
23905 for i in 1 2 3 4 5 6; do
23906 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23907 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23908 # Solaris 8's {/usr,}/bin/sh.
23909 touch sub/conftst$i.h
23911 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23915 # after this tag, mechanisms are not by side-effect, so they'll
23916 # only be used when explicitly requested
23917 if test "x$enable_dependency_tracking" = xyes; then
23925 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23926 # mode. It turns out that the SunPro C++ compiler does not properly
23927 # handle `-M -o', and we need to detect this.
23928 if depmode=$depmode \
23929 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
23930 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23931 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
23932 >/dev/null 2>conftest.err &&
23933 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23934 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
23935 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23936 # icc doesn't choke on unknown options, it will just issue warnings
23937 # or remarks (even with -Werror). So we grep stderr for any message
23938 # that says an option was ignored or not supported.
23939 # When given -MP, icc 7.0 and 7.1 complain thusly:
23940 # icc: Command line warning: ignoring option '-M'; no argument required
23941 # The diagnosis changed in icc 8.0:
23942 # icc: Command line remark: option '-MP' not supported
23943 if (grep 'ignoring option' conftest.err ||
23944 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23945 am_cv_CXX_dependencies_compiler_type=$depmode
23952 rm -rf conftest.dir
23954 am_cv_CXX_dependencies_compiler_type=none
23958 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
23959 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
23960 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23965 test "x$enable_dependency_tracking" != xno \
23966 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23967 am__fastdepCXX_TRUE=
23968 am__fastdepCXX_FALSE='#'
23970 am__fastdepCXX_TRUE='#'
23971 am__fastdepCXX_FALSE=
23977 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
23978 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
23979 (test "X$CXX" != "Xg++"))) ; then
23981 ac_cpp='$CXXCPP $CPPFLAGS'
23982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23985 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
23986 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
23987 if test -z "$CXXCPP"; then
23988 if test "${ac_cv_prog_CXXCPP+set}" = set; then
23989 echo $ECHO_N "(cached) $ECHO_C" >&6
23991 # Double quotes because CXXCPP needs to be expanded
23992 for CXXCPP in "$CXX -E" "/lib/cpp"
23994 ac_preproc_ok=false
23995 for ac_cxx_preproc_warn_flag in '' yes
23997 # Use a header file that comes with gcc, so configuring glibc
23998 # with a fresh cross-compiler works.
23999 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24000 # <limits.h> exists even on freestanding compilers.
24001 # On the NeXT, cc -E runs the code through the compiler's parser,
24002 # not just through cpp. "Syntax error" is here to catch this case.
24003 cat >conftest.$ac_ext <<_ACEOF
24006 cat confdefs.h >>conftest.$ac_ext
24007 cat >>conftest.$ac_ext <<_ACEOF
24008 /* end confdefs.h. */
24010 # include <limits.h>
24012 # include <assert.h>
24016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24019 grep -v '^ *+' conftest.er1 >conftest.err
24021 cat conftest.err >&5
24022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24023 (exit $ac_status); } >/dev/null; then
24024 if test -s conftest.err; then
24025 ac_cpp_err=$ac_cxx_preproc_warn_flag
24026 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24033 if test -z "$ac_cpp_err"; then
24036 echo "$as_me: failed program was:" >&5
24037 sed 's/^/| /' conftest.$ac_ext >&5
24039 # Broken: fails on valid input.
24042 rm -f conftest.err conftest.$ac_ext
24044 # OK, works on sane cases. Now check whether non-existent headers
24045 # can be detected and how.
24046 cat >conftest.$ac_ext <<_ACEOF
24049 cat confdefs.h >>conftest.$ac_ext
24050 cat >>conftest.$ac_ext <<_ACEOF
24051 /* end confdefs.h. */
24052 #include <ac_nonexistent.h>
24054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24057 grep -v '^ *+' conftest.er1 >conftest.err
24059 cat conftest.err >&5
24060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24061 (exit $ac_status); } >/dev/null; then
24062 if test -s conftest.err; then
24063 ac_cpp_err=$ac_cxx_preproc_warn_flag
24064 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24071 if test -z "$ac_cpp_err"; then
24072 # Broken: success on invalid input.
24075 echo "$as_me: failed program was:" >&5
24076 sed 's/^/| /' conftest.$ac_ext >&5
24078 # Passes both tests.
24082 rm -f conftest.err conftest.$ac_ext
24085 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
24086 rm -f conftest.err conftest.$ac_ext
24087 if $ac_preproc_ok; then
24092 ac_cv_prog_CXXCPP=$CXXCPP
24095 CXXCPP=$ac_cv_prog_CXXCPP
24097 ac_cv_prog_CXXCPP=$CXXCPP
24099 echo "$as_me:$LINENO: result: $CXXCPP" >&5
24100 echo "${ECHO_T}$CXXCPP" >&6
24101 ac_preproc_ok=false
24102 for ac_cxx_preproc_warn_flag in '' yes
24104 # Use a header file that comes with gcc, so configuring glibc
24105 # with a fresh cross-compiler works.
24106 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24107 # <limits.h> exists even on freestanding compilers.
24108 # On the NeXT, cc -E runs the code through the compiler's parser,
24109 # not just through cpp. "Syntax error" is here to catch this case.
24110 cat >conftest.$ac_ext <<_ACEOF
24113 cat confdefs.h >>conftest.$ac_ext
24114 cat >>conftest.$ac_ext <<_ACEOF
24115 /* end confdefs.h. */
24117 # include <limits.h>
24119 # include <assert.h>
24123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24126 grep -v '^ *+' conftest.er1 >conftest.err
24128 cat conftest.err >&5
24129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130 (exit $ac_status); } >/dev/null; then
24131 if test -s conftest.err; then
24132 ac_cpp_err=$ac_cxx_preproc_warn_flag
24133 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24140 if test -z "$ac_cpp_err"; then
24143 echo "$as_me: failed program was:" >&5
24144 sed 's/^/| /' conftest.$ac_ext >&5
24146 # Broken: fails on valid input.
24149 rm -f conftest.err conftest.$ac_ext
24151 # OK, works on sane cases. Now check whether non-existent headers
24152 # can be detected and how.
24153 cat >conftest.$ac_ext <<_ACEOF
24156 cat confdefs.h >>conftest.$ac_ext
24157 cat >>conftest.$ac_ext <<_ACEOF
24158 /* end confdefs.h. */
24159 #include <ac_nonexistent.h>
24161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24164 grep -v '^ *+' conftest.er1 >conftest.err
24166 cat conftest.err >&5
24167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24168 (exit $ac_status); } >/dev/null; then
24169 if test -s conftest.err; then
24170 ac_cpp_err=$ac_cxx_preproc_warn_flag
24171 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24178 if test -z "$ac_cpp_err"; then
24179 # Broken: success on invalid input.
24182 echo "$as_me: failed program was:" >&5
24183 sed 's/^/| /' conftest.$ac_ext >&5
24185 # Passes both tests.
24189 rm -f conftest.err conftest.$ac_ext
24192 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
24193 rm -f conftest.err conftest.$ac_ext
24194 if $ac_preproc_ok; then
24197 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
24198 See \`config.log' for more details." >&5
24199 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
24200 See \`config.log' for more details." >&2;}
24201 { (exit 1); exit 1; }; }
24205 ac_cpp='$CXXCPP $CPPFLAGS'
24206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24214 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
24215 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24216 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
24217 if test -n "$ac_tool_prefix"; then
24218 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
24220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24221 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
24222 echo "$as_me:$LINENO: checking for $ac_word" >&5
24223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24224 if test "${ac_cv_prog_F77+set}" = set; then
24225 echo $ECHO_N "(cached) $ECHO_C" >&6
24227 if test -n "$F77"; then
24228 ac_cv_prog_F77="$F77" # Let the user override the test.
24230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24231 for as_dir in $PATH
24234 test -z "$as_dir" && as_dir=.
24235 for ac_exec_ext in '' $ac_executable_extensions; do
24236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24237 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
24238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24246 F77=$ac_cv_prog_F77
24247 if test -n "$F77"; then
24248 echo "$as_me:$LINENO: result: $F77" >&5
24249 echo "${ECHO_T}$F77" >&6
24251 echo "$as_me:$LINENO: result: no" >&5
24252 echo "${ECHO_T}no" >&6
24255 test -n "$F77" && break
24258 if test -z "$F77"; then
24260 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
24262 # Extract the first word of "$ac_prog", so it can be a program name with args.
24263 set dummy $ac_prog; ac_word=$2
24264 echo "$as_me:$LINENO: checking for $ac_word" >&5
24265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24266 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
24267 echo $ECHO_N "(cached) $ECHO_C" >&6
24269 if test -n "$ac_ct_F77"; then
24270 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
24272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24273 for as_dir in $PATH
24276 test -z "$as_dir" && as_dir=.
24277 for ac_exec_ext in '' $ac_executable_extensions; do
24278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24279 ac_cv_prog_ac_ct_F77="$ac_prog"
24280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24288 ac_ct_F77=$ac_cv_prog_ac_ct_F77
24289 if test -n "$ac_ct_F77"; then
24290 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
24291 echo "${ECHO_T}$ac_ct_F77" >&6
24293 echo "$as_me:$LINENO: result: no" >&5
24294 echo "${ECHO_T}no" >&6
24297 test -n "$ac_ct_F77" && break
24304 # Provide some information about the compiler.
24305 echo "$as_me:24305:" \
24306 "checking for Fortran 77 compiler version" >&5
24307 ac_compiler=`set X $ac_compile; echo $2`
24308 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
24309 (eval $ac_compiler --version </dev/null >&5) 2>&5
24311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24312 (exit $ac_status); }
24313 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
24314 (eval $ac_compiler -v </dev/null >&5) 2>&5
24316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24317 (exit $ac_status); }
24318 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
24319 (eval $ac_compiler -V </dev/null >&5) 2>&5
24321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24322 (exit $ac_status); }
24325 # If we don't use `.F' as extension, the preprocessor is not run on the
24326 # input file. (Note that this only needs to work for GNU compilers.)
24327 ac_save_ext=$ac_ext
24329 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
24330 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
24331 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
24332 echo $ECHO_N "(cached) $ECHO_C" >&6
24334 cat >conftest.$ac_ext <<_ACEOF
24342 rm -f conftest.$ac_objext
24343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24344 (eval $ac_compile) 2>conftest.er1
24346 grep -v '^ *+' conftest.er1 >conftest.err
24348 cat conftest.err >&5
24349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350 (exit $ac_status); } &&
24351 { ac_try='test -z "$ac_f77_werror_flag"
24352 || test ! -s conftest.err'
24353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24354 (eval $ac_try) 2>&5
24356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357 (exit $ac_status); }; } &&
24358 { ac_try='test -s conftest.$ac_objext'
24359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24360 (eval $ac_try) 2>&5
24362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24363 (exit $ac_status); }; }; then
24364 ac_compiler_gnu=yes
24366 echo "$as_me: failed program was:" >&5
24367 sed 's/^/| /' conftest.$ac_ext >&5
24371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24372 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
24375 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
24376 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
24377 ac_ext=$ac_save_ext
24378 ac_test_FFLAGS=${FFLAGS+set}
24379 ac_save_FFLAGS=$FFLAGS
24381 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
24382 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
24383 if test "${ac_cv_prog_f77_g+set}" = set; then
24384 echo $ECHO_N "(cached) $ECHO_C" >&6
24387 cat >conftest.$ac_ext <<_ACEOF
24392 rm -f conftest.$ac_objext
24393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24394 (eval $ac_compile) 2>conftest.er1
24396 grep -v '^ *+' conftest.er1 >conftest.err
24398 cat conftest.err >&5
24399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24400 (exit $ac_status); } &&
24401 { ac_try='test -z "$ac_f77_werror_flag"
24402 || test ! -s conftest.err'
24403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24404 (eval $ac_try) 2>&5
24406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407 (exit $ac_status); }; } &&
24408 { ac_try='test -s conftest.$ac_objext'
24409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24410 (eval $ac_try) 2>&5
24412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413 (exit $ac_status); }; }; then
24414 ac_cv_prog_f77_g=yes
24416 echo "$as_me: failed program was:" >&5
24417 sed 's/^/| /' conftest.$ac_ext >&5
24419 ac_cv_prog_f77_g=no
24421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24424 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
24425 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
24426 if test "$ac_test_FFLAGS" = set; then
24427 FFLAGS=$ac_save_FFLAGS
24428 elif test $ac_cv_prog_f77_g = yes; then
24429 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
24435 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
24442 G77=`test $ac_compiler_gnu = yes && echo yes`
24444 ac_cpp='$CPP $CPPFLAGS'
24445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24451 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
24453 # find the maximum length of command line arguments
24454 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
24455 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
24456 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
24457 echo $ECHO_N "(cached) $ECHO_C" >&6
24464 # On DJGPP, this test can blow up pretty badly due to problems in libc
24465 # (any single argument exceeding 2000 bytes causes a buffer overrun
24466 # during glob expansion). Even if it were fixed, the result of this
24467 # check would be larger than it should be.
24468 lt_cv_sys_max_cmd_len=12288; # 12K is about right
24472 # Under GNU Hurd, this test is not required because there is
24473 # no limit to the length of command line arguments.
24474 # Libtool will interpret -1 as no limit whatsoever
24475 lt_cv_sys_max_cmd_len=-1;
24479 # On Win9x/ME, this test blows up -- it succeeds, but takes
24480 # about 5 minutes as the teststring grows exponentially.
24481 # Worse, since 9x/ME are not pre-emptively multitasking,
24482 # you end up with a "frozen" computer, even though with patience
24483 # the test eventually succeeds (with a max line length of 256k).
24484 # Instead, let's just punt: use the minimum linelength reported by
24485 # all of the supported platforms: 8192 (on NT/2K/XP).
24486 lt_cv_sys_max_cmd_len=8192;
24490 # On AmigaOS with pdksh, this test takes hours, literally.
24491 # So we just punt and use a minimum line length of 8192.
24492 lt_cv_sys_max_cmd_len=8192;
24495 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
24496 # This has been around since 386BSD, at least. Likely further.
24497 if test -x /sbin/sysctl; then
24498 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
24499 elif test -x /usr/sbin/sysctl; then
24500 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
24502 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
24504 # And add a safety zone
24505 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
24506 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
24509 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
24510 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
24511 # nice to cause kernel panics so lets avoid the loop below.
24512 # First set a reasonable default.
24513 lt_cv_sys_max_cmd_len=16384
24515 if test -x /sbin/sysconfig; then
24516 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
24517 *1*) lt_cv_sys_max_cmd_len=-1 ;;
24522 # If test is not a shell built-in, we'll probably end up computing a
24523 # maximum length that is only half of the actual maximum length, but
24525 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
24526 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
24527 = "XX$teststring") >/dev/null 2>&1 &&
24528 new_result=`expr "X$teststring" : ".*" 2>&1` &&
24529 lt_cv_sys_max_cmd_len=$new_result &&
24530 test $i != 17 # 1/2 MB should be enough
24533 teststring=$teststring$teststring
24536 # Add a significant safety factor because C++ compilers can tack on massive
24537 # amounts of additional arguments before passing them to the linker.
24538 # It appears as though 1/2 is a usable value.
24539 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
24545 if test -n $lt_cv_sys_max_cmd_len ; then
24546 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
24547 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
24549 echo "$as_me:$LINENO: result: none" >&5
24550 echo "${ECHO_T}none" >&6
24556 # Check for command to grab the raw symbol name followed by C symbol from nm.
24557 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
24558 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
24559 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
24560 echo $ECHO_N "(cached) $ECHO_C" >&6
24563 # These are sane defaults that work on at least a few old systems.
24564 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
24566 # Character class describing NM global symbol codes.
24567 symcode='[BCDEGRST]'
24569 # Regexp to match symbols that can be accessed directly from C.
24570 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
24572 # Transform an extracted symbol line into a proper C declaration
24573 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
24575 # Transform an extracted symbol line into symbol name and symbol address
24576 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
24578 # Define system-specific variables.
24583 cygwin* | mingw* | pw32*)
24584 symcode='[ABCDGISTW]'
24586 hpux*) # Its linker distinguishes data from code symbols
24587 if test "$host_cpu" = ia64; then
24588 symcode='[ABCDEGRST]'
24590 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
24591 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
24594 if test "$host_cpu" = ia64; then
24595 symcode='[ABCDGIRSTW]'
24596 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
24597 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
24600 irix* | nonstopux*)
24601 symcode='[BCDEGRST]'
24604 symcode='[BCDEGQRST]'
24614 # Handle CRLF in mingw tool chain
24618 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
24622 # If we're using GNU nm, then use its standard symbol codes.
24623 case `$NM -V 2>&1` in
24624 *GNU* | *'with BFD'*)
24625 symcode='[ABCDGIRSTW]' ;;
24628 # Try without a prefix undercore, then with it.
24629 for ac_symprfx in "" "_"; do
24631 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
24632 symxfrm="\\1 $ac_symprfx\\2 \\2"
24634 # Write the raw and C identifiers.
24635 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
24637 # Check to see that the pipe works correctly.
24641 cat > conftest.$ac_ext <<EOF
24646 void nm_test_func(){}
24650 int main(){nm_test_var='a';nm_test_func();return(0);}
24653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24654 (eval $ac_compile) 2>&5
24656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24657 (exit $ac_status); }; then
24658 # Now try to grab the symbols.
24660 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
24661 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
24663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24664 (exit $ac_status); } && test -s "$nlist"; then
24665 # Try sorting and uniquifying the output.
24666 if sort "$nlist" | uniq > "$nlist"T; then
24667 mv -f "$nlist"T "$nlist"
24672 # Make sure that we snagged all the symbols we need.
24673 if grep ' nm_test_var$' "$nlist" >/dev/null; then
24674 if grep ' nm_test_func$' "$nlist" >/dev/null; then
24675 cat <<EOF > conftest.$ac_ext
24681 # Now generate the symbol file.
24682 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
24684 cat <<EOF >> conftest.$ac_ext
24685 #if defined (__STDC__) && __STDC__
24686 # define lt_ptr_t void *
24688 # define lt_ptr_t char *
24692 /* The mapping between symbol names and symbols. */
24697 lt_preloaded_symbols[] =
24700 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
24701 cat <<\EOF >> conftest.$ac_ext
24709 # Now try linking the two files.
24710 mv conftest.$ac_objext conftstm.$ac_objext
24711 lt_save_LIBS="$LIBS"
24712 lt_save_CFLAGS="$CFLAGS"
24713 LIBS="conftstm.$ac_objext"
24714 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
24715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24716 (eval $ac_link) 2>&5
24718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719 (exit $ac_status); } && test -s conftest${ac_exeext}; then
24722 LIBS="$lt_save_LIBS"
24723 CFLAGS="$lt_save_CFLAGS"
24725 echo "cannot find nm_test_func in $nlist" >&5
24728 echo "cannot find nm_test_var in $nlist" >&5
24731 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
24734 echo "$progname: failed program was:" >&5
24735 cat conftest.$ac_ext >&5
24737 rm -f conftest* conftst*
24739 # Do not use the global_symbol_pipe unless it works.
24740 if test "$pipe_works" = yes; then
24743 lt_cv_sys_global_symbol_pipe=
24749 if test -z "$lt_cv_sys_global_symbol_pipe"; then
24750 lt_cv_sys_global_symbol_to_cdecl=
24752 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
24753 echo "$as_me:$LINENO: result: failed" >&5
24754 echo "${ECHO_T}failed" >&6
24756 echo "$as_me:$LINENO: result: ok" >&5
24757 echo "${ECHO_T}ok" >&6
24760 echo "$as_me:$LINENO: checking for objdir" >&5
24761 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
24762 if test "${lt_cv_objdir+set}" = set; then
24763 echo $ECHO_N "(cached) $ECHO_C" >&6
24765 rm -f .libs 2>/dev/null
24766 mkdir .libs 2>/dev/null
24767 if test -d .libs; then
24770 # MS-DOS does not allow filenames that begin with a dot.
24773 rmdir .libs 2>/dev/null
24775 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
24776 echo "${ECHO_T}$lt_cv_objdir" >&6
24777 objdir=$lt_cv_objdir
24785 # AIX sometimes has problems with the GCC collect2 program. For some
24786 # reason, if we set the COLLECT_NAMES environment variable, the problems
24787 # vanish in a puff of smoke.
24788 if test "X${COLLECT_NAMES+set}" != Xset; then
24790 export COLLECT_NAMES
24795 # Sed substitution that helps us do robust quoting. It backslashifies
24796 # metacharacters that are still active within double-quoted strings.
24797 Xsed='sed -e 1s/^X//'
24798 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
24800 # Same as above, but do not quote variable references.
24801 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
24803 # Sed substitution to delay expansion of an escaped shell variable in a
24804 # double_quote_subst'ed string.
24805 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
24807 # Sed substitution to avoid accidental globbing in evaled expressions
24808 no_glob_subst='s/\*/\\\*/g'
24813 # Global variables:
24814 default_ofile=libtool
24815 can_build_shared=yes
24817 # All known linkers require a `.a' archive for static linking (except MSVC,
24818 # which needs '.lib').
24820 ltmain="$ac_aux_dir/ltmain.sh"
24821 ofile="$default_ofile"
24822 with_gnu_ld="$lt_cv_prog_gnu_ld"
24824 if test -n "$ac_tool_prefix"; then
24825 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
24826 set dummy ${ac_tool_prefix}ar; ac_word=$2
24827 echo "$as_me:$LINENO: checking for $ac_word" >&5
24828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24829 if test "${ac_cv_prog_AR+set}" = set; then
24830 echo $ECHO_N "(cached) $ECHO_C" >&6
24832 if test -n "$AR"; then
24833 ac_cv_prog_AR="$AR" # Let the user override the test.
24835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24836 for as_dir in $PATH
24839 test -z "$as_dir" && as_dir=.
24840 for ac_exec_ext in '' $ac_executable_extensions; do
24841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24842 ac_cv_prog_AR="${ac_tool_prefix}ar"
24843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24852 if test -n "$AR"; then
24853 echo "$as_me:$LINENO: result: $AR" >&5
24854 echo "${ECHO_T}$AR" >&6
24856 echo "$as_me:$LINENO: result: no" >&5
24857 echo "${ECHO_T}no" >&6
24861 if test -z "$ac_cv_prog_AR"; then
24863 # Extract the first word of "ar", so it can be a program name with args.
24864 set dummy ar; ac_word=$2
24865 echo "$as_me:$LINENO: checking for $ac_word" >&5
24866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24867 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
24868 echo $ECHO_N "(cached) $ECHO_C" >&6
24870 if test -n "$ac_ct_AR"; then
24871 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
24873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24874 for as_dir in $PATH
24877 test -z "$as_dir" && as_dir=.
24878 for ac_exec_ext in '' $ac_executable_extensions; do
24879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24880 ac_cv_prog_ac_ct_AR="ar"
24881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24887 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
24890 ac_ct_AR=$ac_cv_prog_ac_ct_AR
24891 if test -n "$ac_ct_AR"; then
24892 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
24893 echo "${ECHO_T}$ac_ct_AR" >&6
24895 echo "$as_me:$LINENO: result: no" >&5
24896 echo "${ECHO_T}no" >&6
24901 AR="$ac_cv_prog_AR"
24904 if test -n "$ac_tool_prefix"; then
24905 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
24906 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
24907 echo "$as_me:$LINENO: checking for $ac_word" >&5
24908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24909 if test "${ac_cv_prog_RANLIB+set}" = set; then
24910 echo $ECHO_N "(cached) $ECHO_C" >&6
24912 if test -n "$RANLIB"; then
24913 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
24915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24916 for as_dir in $PATH
24919 test -z "$as_dir" && as_dir=.
24920 for ac_exec_ext in '' $ac_executable_extensions; do
24921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24922 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
24923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24931 RANLIB=$ac_cv_prog_RANLIB
24932 if test -n "$RANLIB"; then
24933 echo "$as_me:$LINENO: result: $RANLIB" >&5
24934 echo "${ECHO_T}$RANLIB" >&6
24936 echo "$as_me:$LINENO: result: no" >&5
24937 echo "${ECHO_T}no" >&6
24941 if test -z "$ac_cv_prog_RANLIB"; then
24942 ac_ct_RANLIB=$RANLIB
24943 # Extract the first word of "ranlib", so it can be a program name with args.
24944 set dummy ranlib; ac_word=$2
24945 echo "$as_me:$LINENO: checking for $ac_word" >&5
24946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24947 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
24948 echo $ECHO_N "(cached) $ECHO_C" >&6
24950 if test -n "$ac_ct_RANLIB"; then
24951 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
24953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24954 for as_dir in $PATH
24957 test -z "$as_dir" && as_dir=.
24958 for ac_exec_ext in '' $ac_executable_extensions; do
24959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24960 ac_cv_prog_ac_ct_RANLIB="ranlib"
24961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24967 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
24970 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
24971 if test -n "$ac_ct_RANLIB"; then
24972 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
24973 echo "${ECHO_T}$ac_ct_RANLIB" >&6
24975 echo "$as_me:$LINENO: result: no" >&5
24976 echo "${ECHO_T}no" >&6
24979 RANLIB=$ac_ct_RANLIB
24981 RANLIB="$ac_cv_prog_RANLIB"
24984 if test -n "$ac_tool_prefix"; then
24985 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
24986 set dummy ${ac_tool_prefix}strip; ac_word=$2
24987 echo "$as_me:$LINENO: checking for $ac_word" >&5
24988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24989 if test "${ac_cv_prog_STRIP+set}" = set; then
24990 echo $ECHO_N "(cached) $ECHO_C" >&6
24992 if test -n "$STRIP"; then
24993 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
24995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24996 for as_dir in $PATH
24999 test -z "$as_dir" && as_dir=.
25000 for ac_exec_ext in '' $ac_executable_extensions; do
25001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25002 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
25003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25011 STRIP=$ac_cv_prog_STRIP
25012 if test -n "$STRIP"; then
25013 echo "$as_me:$LINENO: result: $STRIP" >&5
25014 echo "${ECHO_T}$STRIP" >&6
25016 echo "$as_me:$LINENO: result: no" >&5
25017 echo "${ECHO_T}no" >&6
25021 if test -z "$ac_cv_prog_STRIP"; then
25023 # Extract the first word of "strip", so it can be a program name with args.
25024 set dummy strip; ac_word=$2
25025 echo "$as_me:$LINENO: checking for $ac_word" >&5
25026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25027 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
25028 echo $ECHO_N "(cached) $ECHO_C" >&6
25030 if test -n "$ac_ct_STRIP"; then
25031 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
25033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25034 for as_dir in $PATH
25037 test -z "$as_dir" && as_dir=.
25038 for ac_exec_ext in '' $ac_executable_extensions; do
25039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25040 ac_cv_prog_ac_ct_STRIP="strip"
25041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25047 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
25050 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
25051 if test -n "$ac_ct_STRIP"; then
25052 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
25053 echo "${ECHO_T}$ac_ct_STRIP" >&6
25055 echo "$as_me:$LINENO: result: no" >&5
25056 echo "${ECHO_T}no" >&6
25061 STRIP="$ac_cv_prog_STRIP"
25066 old_CFLAGS="$CFLAGS"
25068 # Set sane defaults for various variables
25069 test -z "$AR" && AR=ar
25070 test -z "$AR_FLAGS" && AR_FLAGS=cru
25071 test -z "$AS" && AS=as
25072 test -z "$CC" && CC=cc
25073 test -z "$LTCC" && LTCC=$CC
25074 test -z "$DLLTOOL" && DLLTOOL=dlltool
25075 test -z "$LD" && LD=ld
25076 test -z "$LN_S" && LN_S="ln -s"
25077 test -z "$MAGIC_CMD" && MAGIC_CMD=file
25078 test -z "$NM" && NM=nm
25079 test -z "$SED" && SED=sed
25080 test -z "$OBJDUMP" && OBJDUMP=objdump
25081 test -z "$RANLIB" && RANLIB=:
25082 test -z "$STRIP" && STRIP=:
25083 test -z "$ac_objext" && ac_objext=o
25085 # Determine commands to create old-style static archives.
25086 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
25087 old_postinstall_cmds='chmod 644 $oldlib'
25088 old_postuninstall_cmds=
25090 if test -n "$RANLIB"; then
25093 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
25096 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
25099 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
25102 for cc_temp in $compiler""; do
25104 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25105 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25110 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25113 # Only perform the check for file, if the check method requires it
25114 case $deplibs_check_method in
25116 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
25117 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
25118 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
25119 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
25120 echo $ECHO_N "(cached) $ECHO_C" >&6
25124 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
25127 lt_save_MAGIC_CMD="$MAGIC_CMD"
25128 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
25129 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
25130 for ac_dir in $ac_dummy; do
25132 test -z "$ac_dir" && ac_dir=.
25133 if test -f $ac_dir/${ac_tool_prefix}file; then
25134 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
25135 if test -n "$file_magic_test_file"; then
25136 case $deplibs_check_method in
25138 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
25139 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
25140 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
25141 $EGREP "$file_magic_regex" > /dev/null; then
25146 *** Warning: the command libtool uses to detect shared libraries,
25147 *** $file_magic_cmd, produces output that libtool cannot recognize.
25148 *** The result is that libtool may fail to recognize shared libraries
25149 *** as such. This will affect the creation of libtool libraries that
25150 *** depend on shared libraries, but programs linked with such libtool
25151 *** libraries will work regardless of this problem. Nevertheless, you
25152 *** may want to report the problem to your system manager and/or to
25153 *** bug-libtool@gnu.org
25163 MAGIC_CMD="$lt_save_MAGIC_CMD"
25168 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
25169 if test -n "$MAGIC_CMD"; then
25170 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
25171 echo "${ECHO_T}$MAGIC_CMD" >&6
25173 echo "$as_me:$LINENO: result: no" >&5
25174 echo "${ECHO_T}no" >&6
25177 if test -z "$lt_cv_path_MAGIC_CMD"; then
25178 if test -n "$ac_tool_prefix"; then
25179 echo "$as_me:$LINENO: checking for file" >&5
25180 echo $ECHO_N "checking for file... $ECHO_C" >&6
25181 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
25182 echo $ECHO_N "(cached) $ECHO_C" >&6
25186 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
25189 lt_save_MAGIC_CMD="$MAGIC_CMD"
25190 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
25191 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
25192 for ac_dir in $ac_dummy; do
25194 test -z "$ac_dir" && ac_dir=.
25195 if test -f $ac_dir/file; then
25196 lt_cv_path_MAGIC_CMD="$ac_dir/file"
25197 if test -n "$file_magic_test_file"; then
25198 case $deplibs_check_method in
25200 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
25201 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
25202 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
25203 $EGREP "$file_magic_regex" > /dev/null; then
25208 *** Warning: the command libtool uses to detect shared libraries,
25209 *** $file_magic_cmd, produces output that libtool cannot recognize.
25210 *** The result is that libtool may fail to recognize shared libraries
25211 *** as such. This will affect the creation of libtool libraries that
25212 *** depend on shared libraries, but programs linked with such libtool
25213 *** libraries will work regardless of this problem. Nevertheless, you
25214 *** may want to report the problem to your system manager and/or to
25215 *** bug-libtool@gnu.org
25225 MAGIC_CMD="$lt_save_MAGIC_CMD"
25230 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
25231 if test -n "$MAGIC_CMD"; then
25232 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
25233 echo "${ECHO_T}$MAGIC_CMD" >&6
25235 echo "$as_me:$LINENO: result: no" >&5
25236 echo "${ECHO_T}no" >&6
25249 enable_win32_dll=no
25251 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
25252 if test "${enable_libtool_lock+set}" = set; then
25253 enableval="$enable_libtool_lock"
25256 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
25259 # Check whether --with-pic or --without-pic was given.
25260 if test "${with_pic+set}" = set; then
25261 withval="$with_pic"
25262 pic_mode="$withval"
25266 test -z "$pic_mode" && pic_mode=default
25268 # Use C for the default configuration in the libtool script
25272 ac_cpp='$CPP $CPPFLAGS'
25273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25278 # Source file extension for C test sources.
25281 # Object file extension for compiled C test sources.
25285 # Code to be used in simple compile tests
25286 lt_simple_compile_test_code="int some_variable = 0;\n"
25288 # Code to be used in simple link tests
25289 lt_simple_link_test_code='int main(){return(0);}\n'
25292 # If no C compiler was specified, use CC.
25295 # Allow CC to be a program name with arguments.
25299 # save warnings/boilerplate of simple test code
25300 ac_outfile=conftest.$ac_objext
25301 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
25302 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
25303 _lt_compiler_boilerplate=`cat conftest.err`
25306 ac_outfile=conftest.$ac_objext
25307 printf "$lt_simple_link_test_code" >conftest.$ac_ext
25308 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
25309 _lt_linker_boilerplate=`cat conftest.err`
25314 # Check for any special shared library compilation flags.
25317 if test "$GCC" = no; then
25320 lt_prog_cc_shlib='-belf'
25324 if test -n "$lt_prog_cc_shlib"; then
25325 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
25326 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
25327 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
25329 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
25330 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
25331 lt_cv_prog_cc_can_build_shared=no
25337 # Check to make sure the static flag actually works.
25339 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
25340 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
25341 if test "${lt_prog_compiler_static_works+set}" = set; then
25342 echo $ECHO_N "(cached) $ECHO_C" >&6
25344 lt_prog_compiler_static_works=no
25345 save_LDFLAGS="$LDFLAGS"
25346 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
25347 printf "$lt_simple_link_test_code" > conftest.$ac_ext
25348 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
25349 # The linker can only warn and ignore the option if not recognized
25350 # So say no if there are warnings
25351 if test -s conftest.err; then
25352 # Append any errors to the config.log.
25353 cat conftest.err 1>&5
25354 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
25355 $SED '/^$/d' conftest.err >conftest.er2
25356 if diff conftest.exp conftest.er2 >/dev/null; then
25357 lt_prog_compiler_static_works=yes
25360 lt_prog_compiler_static_works=yes
25364 LDFLAGS="$save_LDFLAGS"
25367 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
25368 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
25370 if test x"$lt_prog_compiler_static_works" = xyes; then
25373 lt_prog_compiler_static=
25379 ## There is no encapsulation within the following macros, do not change
25380 ## the running order or otherwise move them around unless you know exactly
25381 ## what you are doing...
25383 lt_prog_compiler_no_builtin_flag=
25385 if test "$GCC" = yes; then
25386 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
25389 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
25390 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
25391 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
25392 echo $ECHO_N "(cached) $ECHO_C" >&6
25394 lt_cv_prog_compiler_rtti_exceptions=no
25395 ac_outfile=conftest.$ac_objext
25396 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25397 lt_compiler_flag="-fno-rtti -fno-exceptions"
25398 # Insert the option either (1) after the last *FLAGS variable, or
25399 # (2) before a word containing "conftest.", or (3) at the end.
25400 # Note that $ac_compile itself does not contain backslashes and begins
25401 # with a dollar sign (not a hyphen), so the echo should work correctly.
25402 # The option is referenced via a variable to avoid confusing sed.
25403 lt_compile=`echo "$ac_compile" | $SED \
25404 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25405 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25406 -e 's:$: $lt_compiler_flag:'`
25407 (eval echo "\"\$as_me:25407: $lt_compile\"" >&5)
25408 (eval "$lt_compile" 2>conftest.err)
25410 cat conftest.err >&5
25411 echo "$as_me:25411: \$? = $ac_status" >&5
25412 if (exit $ac_status) && test -s "$ac_outfile"; then
25413 # The compiler can only warn and ignore the option if not recognized
25414 # So say no if there are warnings other than the usual output.
25415 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
25416 $SED '/^$/d' conftest.err >conftest.er2
25417 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
25418 lt_cv_prog_compiler_rtti_exceptions=yes
25424 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
25425 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
25427 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
25428 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
25435 lt_prog_compiler_wl=
25436 lt_prog_compiler_pic=
25437 lt_prog_compiler_static=
25439 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
25440 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25442 if test "$GCC" = yes; then
25443 lt_prog_compiler_wl='-Wl,'
25444 lt_prog_compiler_static='-static'
25448 # All AIX code is PIC.
25449 if test "$host_cpu" = ia64; then
25450 # AIX 5 now supports IA64 processor
25451 lt_prog_compiler_static='-Bstatic'
25456 # FIXME: we need at least 68020 code to build shared libraries, but
25457 # adding the `-m68020' flag to GCC prevents building anything better,
25459 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
25462 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
25463 # PIC is the default for these OSes.
25466 mingw* | pw32* | os2*)
25467 # This hack is so that the source file can tell whether it is being
25468 # built for inclusion in a dll (and should export symbols for example).
25469 lt_prog_compiler_pic='-DDLL_EXPORT'
25472 darwin* | rhapsody*)
25473 # PIC is the default on this platform
25474 # Common symbols not allowed in MH_DYLIB files
25475 lt_prog_compiler_pic='-fno-common'
25479 # Just because we use GCC doesn't mean we suddenly get shared libraries
25480 # on systems that don't support them.
25481 lt_prog_compiler_can_build_shared=no
25486 if test -d /usr/nec; then
25487 lt_prog_compiler_pic=-Kconform_pic
25492 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
25493 # not for PA HP-UX.
25499 lt_prog_compiler_pic='-fPIC'
25505 lt_prog_compiler_pic='-fPIC'
25509 # PORTME Check for flag to pass linker flags through the system compiler.
25512 lt_prog_compiler_wl='-Wl,'
25513 if test "$host_cpu" = ia64; then
25514 # AIX 5 now supports IA64 processor
25515 lt_prog_compiler_static='-Bstatic'
25517 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
25521 # PIC is the default on this platform
25522 # Common symbols not allowed in MH_DYLIB files
25523 case $cc_basename in
25525 lt_prog_compiler_pic='-qnocommon'
25526 lt_prog_compiler_wl='-Wl,'
25531 mingw* | pw32* | os2*)
25532 # This hack is so that the source file can tell whether it is being
25533 # built for inclusion in a dll (and should export symbols for example).
25534 lt_prog_compiler_pic='-DDLL_EXPORT'
25537 hpux9* | hpux10* | hpux11*)
25538 lt_prog_compiler_wl='-Wl,'
25539 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
25540 # not for PA HP-UX.
25546 lt_prog_compiler_pic='+Z'
25549 # Is there a better lt_prog_compiler_static that works with the bundled CC?
25550 lt_prog_compiler_static='${wl}-a ${wl}archive'
25553 irix5* | irix6* | nonstopux*)
25554 lt_prog_compiler_wl='-Wl,'
25555 # PIC (with -KPIC) is the default.
25556 lt_prog_compiler_static='-non_shared'
25560 lt_prog_compiler_pic='-KPIC'
25561 lt_prog_compiler_static='-Bstatic'
25565 case $cc_basename in
25567 lt_prog_compiler_wl='-Wl,'
25568 lt_prog_compiler_pic='-KPIC'
25569 lt_prog_compiler_static='-static'
25571 pgcc* | pgf77* | pgf90* | pgf95*)
25572 # Portland Group compilers (*not* the Pentium gcc compiler,
25573 # which looks to be a dead project)
25574 lt_prog_compiler_wl='-Wl,'
25575 lt_prog_compiler_pic='-fpic'
25576 lt_prog_compiler_static='-Bstatic'
25579 lt_prog_compiler_wl='-Wl,'
25580 # All Alpha code is PIC.
25581 lt_prog_compiler_static='-non_shared'
25586 osf3* | osf4* | osf5*)
25587 lt_prog_compiler_wl='-Wl,'
25588 # All OSF/1 code is PIC.
25589 lt_prog_compiler_static='-non_shared'
25593 lt_prog_compiler_pic='-Kpic'
25594 lt_prog_compiler_static='-dn'
25598 lt_prog_compiler_pic='-KPIC'
25599 lt_prog_compiler_static='-Bstatic'
25600 case $cc_basename in
25601 f77* | f90* | f95*)
25602 lt_prog_compiler_wl='-Qoption ld ';;
25604 lt_prog_compiler_wl='-Wl,';;
25609 lt_prog_compiler_wl='-Qoption ld '
25610 lt_prog_compiler_pic='-PIC'
25611 lt_prog_compiler_static='-Bstatic'
25614 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
25615 lt_prog_compiler_wl='-Wl,'
25616 lt_prog_compiler_pic='-KPIC'
25617 lt_prog_compiler_static='-Bstatic'
25621 if test -d /usr/nec ;then
25622 lt_prog_compiler_pic='-Kconform_pic'
25623 lt_prog_compiler_static='-Bstatic'
25628 lt_prog_compiler_wl='-Wl,'
25629 lt_prog_compiler_can_build_shared=no
25633 lt_prog_compiler_pic='-pic'
25634 lt_prog_compiler_static='-Bstatic'
25638 lt_prog_compiler_can_build_shared=no
25643 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
25644 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
25647 # Check to make sure the PIC flag actually works.
25649 if test -n "$lt_prog_compiler_pic"; then
25651 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
25652 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
25653 if test "${lt_prog_compiler_pic_works+set}" = set; then
25654 echo $ECHO_N "(cached) $ECHO_C" >&6
25656 lt_prog_compiler_pic_works=no
25657 ac_outfile=conftest.$ac_objext
25658 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25659 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
25660 # Insert the option either (1) after the last *FLAGS variable, or
25661 # (2) before a word containing "conftest.", or (3) at the end.
25662 # Note that $ac_compile itself does not contain backslashes and begins
25663 # with a dollar sign (not a hyphen), so the echo should work correctly.
25664 # The option is referenced via a variable to avoid confusing sed.
25665 lt_compile=`echo "$ac_compile" | $SED \
25666 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25668 -e 's:$: $lt_compiler_flag:'`
25669 (eval echo "\"\$as_me:25669: $lt_compile\"" >&5)
25670 (eval "$lt_compile" 2>conftest.err)
25672 cat conftest.err >&5
25673 echo "$as_me:25673: \$? = $ac_status" >&5
25674 if (exit $ac_status) && test -s "$ac_outfile"; then
25675 # The compiler can only warn and ignore the option if not recognized
25676 # So say no if there are warnings other than the usual output.
25677 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
25678 $SED '/^$/d' conftest.err >conftest.er2
25679 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
25680 lt_prog_compiler_pic_works=yes
25686 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
25687 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
25689 if test x"$lt_prog_compiler_pic_works" = xyes; then
25690 case $lt_prog_compiler_pic in
25692 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
25695 lt_prog_compiler_pic=
25696 lt_prog_compiler_can_build_shared=no
25701 # For platforms which do not support PIC, -DPIC is meaningless:
25703 lt_prog_compiler_pic=
25706 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
25710 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
25711 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
25712 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
25713 echo $ECHO_N "(cached) $ECHO_C" >&6
25715 lt_cv_prog_compiler_c_o=no
25716 $rm -r conftest 2>/dev/null
25720 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25722 lt_compiler_flag="-o out/conftest2.$ac_objext"
25723 # Insert the option either (1) after the last *FLAGS variable, or
25724 # (2) before a word containing "conftest.", or (3) at the end.
25725 # Note that $ac_compile itself does not contain backslashes and begins
25726 # with a dollar sign (not a hyphen), so the echo should work correctly.
25727 lt_compile=`echo "$ac_compile" | $SED \
25728 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25730 -e 's:$: $lt_compiler_flag:'`
25731 (eval echo "\"\$as_me:25731: $lt_compile\"" >&5)
25732 (eval "$lt_compile" 2>out/conftest.err)
25734 cat out/conftest.err >&5
25735 echo "$as_me:25735: \$? = $ac_status" >&5
25736 if (exit $ac_status) && test -s out/conftest2.$ac_objext
25738 # The compiler can only warn and ignore the option if not recognized
25739 # So say no if there are warnings
25740 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
25741 $SED '/^$/d' out/conftest.err >out/conftest.er2
25742 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
25743 lt_cv_prog_compiler_c_o=yes
25748 # SGI C++ compiler will create directory out/ii_files/ for
25749 # template instantiation
25750 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
25751 $rm out/* && rmdir out
25757 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
25758 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
25761 hard_links="nottested"
25762 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
25763 # do not overwrite the value of need_locks provided by the user
25764 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
25765 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
25768 ln conftest.a conftest.b 2>/dev/null && hard_links=no
25770 ln conftest.a conftest.b 2>&5 || hard_links=no
25771 ln conftest.a conftest.b 2>/dev/null && hard_links=no
25772 echo "$as_me:$LINENO: result: $hard_links" >&5
25773 echo "${ECHO_T}$hard_links" >&6
25774 if test "$hard_links" = no; then
25775 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
25776 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
25783 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
25784 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
25787 allow_undefined_flag=
25788 enable_shared_with_static_runtimes=no
25790 archive_expsym_cmds=
25791 old_archive_From_new_cmds=
25792 old_archive_from_expsyms_cmds=
25793 export_dynamic_flag_spec=
25794 whole_archive_flag_spec=
25795 thread_safe_flag_spec=
25796 hardcode_libdir_flag_spec=
25797 hardcode_libdir_flag_spec_ld=
25798 hardcode_libdir_separator=
25800 hardcode_minus_L=no
25801 hardcode_shlibpath_var=unsupported
25802 link_all_deplibs=unknown
25803 hardcode_automatic=no
25805 module_expsym_cmds=
25806 always_export_symbols=no
25807 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
25808 # include_expsyms should be a list of space-separated symbols to be *always*
25809 # included in the symbol list
25811 # exclude_expsyms can be an extended regexp of symbols to exclude
25812 # it will be wrapped by ` (' and `)$', so one must not match beginning or
25813 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
25814 # as well as any symbol that contains `d'.
25815 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
25816 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
25817 # platforms (ab)use it in PIC code, but their linkers get confused if
25818 # the symbol is explicitly referenced. Since portable code cannot
25819 # rely on this symbol name, it's probably fine to never include it in
25820 # preloaded symbol tables.
25821 extract_expsyms_cmds=
25822 # Just being paranoid about ensuring that cc_basename is set.
25823 for cc_temp in $compiler""; do
25825 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25826 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25831 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25834 cygwin* | mingw* | pw32*)
25835 # FIXME: the MSVC++ port hasn't been tested in a loooong time
25836 # When not using gcc, we currently assume that we are using
25837 # Microsoft Visual C++.
25838 if test "$GCC" != yes; then
25848 if test "$with_gnu_ld" = yes; then
25849 # If archive_cmds runs LD, not CC, wlarc should be empty
25852 # Set some defaults for GNU ld with shared library support. These
25853 # are reset later if shared libraries are not supported. Putting them
25854 # here allows them to be overridden if necessary.
25855 runpath_var=LD_RUN_PATH
25856 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
25857 export_dynamic_flag_spec='${wl}--export-dynamic'
25858 # ancient GNU ld didn't support --whole-archive et. al.
25859 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
25860 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
25862 whole_archive_flag_spec=
25864 supports_anon_versioning=no
25865 case `$LD -v 2>/dev/null` in
25866 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
25867 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
25868 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
25869 *\ 2.11.*) ;; # other 2.11 versions
25870 *) supports_anon_versioning=yes ;;
25873 # See if GNU ld supports shared libraries.
25875 aix3* | aix4* | aix5*)
25876 # On AIX/PPC, the GNU linker is very broken
25877 if test "$host_cpu" != ia64; then
25881 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
25882 *** to be unable to reliably create shared libraries on AIX.
25883 *** Therefore, libtool is disabling shared libraries support. If you
25884 *** really care for shared libraries, you may want to modify your PATH
25885 *** so that a non-GNU linker is found, and then restart.
25892 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)'
25893 hardcode_libdir_flag_spec='-L$libdir'
25894 hardcode_minus_L=yes
25896 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
25897 # that the semantics of dynamic libraries on AmigaOS, at least up
25898 # to version 4, is to share data among multiple programs linked
25899 # with the same dynamic library. Since this doesn't match the
25900 # behavior of shared libraries on other platforms, we can't use
25906 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25907 allow_undefined_flag=unsupported
25908 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
25909 # support --undefined. This deserves some investigation. FIXME
25910 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25916 cygwin* | mingw* | pw32*)
25917 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
25918 # as there is no search path for DLLs.
25919 hardcode_libdir_flag_spec='-L$libdir'
25920 allow_undefined_flag=unsupported
25921 always_export_symbols=no
25922 enable_shared_with_static_runtimes=yes
25923 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
25925 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
25926 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
25927 # If the export-symbols file already is a .def file (1st line
25928 # is EXPORTS), use it as is; otherwise, prepend...
25929 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
25930 cp $export_symbols $output_objdir/$soname.def;
25932 echo EXPORTS > $output_objdir/$soname.def;
25933 cat $export_symbols >> $output_objdir/$soname.def;
25935 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
25942 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25944 case $cc_basename,$host_cpu in
25945 pgcc*) # Portland Group C compiler
25946 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'
25947 tmp_addflag=' $pic_flag'
25949 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
25950 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'
25951 tmp_addflag=' $pic_flag -Mnomain' ;;
25952 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
25953 tmp_addflag=' -i_dynamic' ;;
25954 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
25955 tmp_addflag=' -i_dynamic -nofor_main' ;;
25956 ifc* | ifort*) # Intel Fortran compiler
25957 tmp_addflag=' -nofor_main' ;;
25959 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25961 if test $supports_anon_versioning = yes; then
25962 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
25963 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
25964 $echo "local: *; };" >> $output_objdir/$libname.ver~
25965 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
25973 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25974 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
25977 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25978 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25983 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
25987 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
25988 *** create shared libraries on Solaris systems. Therefore, libtool
25989 *** is disabling shared libraries support. We urge you to upgrade GNU
25990 *** binutils to release 2.9.1 or newer. Another option is to modify
25991 *** your PATH or compiler configuration so that the native linker is
25992 *** used, and then restart.
25995 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25997 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
26004 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
26006 hardcode_direct=yes
26007 hardcode_shlibpath_var=no
26011 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
26012 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26013 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
26020 if test "$ld_shlibs" = no; then
26022 hardcode_libdir_flag_spec=
26023 export_dynamic_flag_spec=
26024 whole_archive_flag_spec=
26027 # PORTME fill in a description of your system's linker (not GNU ld)
26030 allow_undefined_flag=unsupported
26031 always_export_symbols=yes
26032 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'
26033 # Note: this linker hardcodes the directories in LIBPATH if there
26034 # are no directories specified by -L.
26035 hardcode_minus_L=yes
26036 if test "$GCC" = yes && test -z "$link_static_flag"; then
26037 # Neither direct hardcoding nor static linking is supported with a
26039 hardcode_direct=unsupported
26044 if test "$host_cpu" = ia64; then
26045 # On IA64, the linker does run time linking by default, so we don't
26046 # have to do anything special.
26047 aix_use_runtimelinking=no
26048 exp_sym_flag='-Bexport'
26051 # If we're using GNU nm, then we don't want the "-C" option.
26052 # -C means demangle to AIX nm, but means don't demangle with GNU nm
26053 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
26054 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'
26056 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'
26058 aix_use_runtimelinking=no
26060 # Test if we are trying to use run time linking or normal
26061 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
26062 # need to do runtime linking.
26063 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
26064 for ld_flag in $LDFLAGS; do
26065 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
26066 aix_use_runtimelinking=yes
26072 exp_sym_flag='-bexport'
26073 no_entry_flag='-bnoentry'
26076 # When large executables or shared objects are built, AIX ld can
26077 # have problems creating the table of contents. If linking a library
26078 # or program results in "error TOC overflow" add -mminimal-toc to
26079 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
26080 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
26083 hardcode_direct=yes
26084 hardcode_libdir_separator=':'
26085 link_all_deplibs=yes
26087 if test "$GCC" = yes; then
26088 case $host_os in aix4.[012]|aix4.[012].*)
26089 # We only want to do this on AIX 4.2 and lower, the check
26090 # below for broken collect2 doesn't work under 4.3+
26091 collect2name=`${CC} -print-prog-name=collect2`
26092 if test -f "$collect2name" && \
26093 strings "$collect2name" | grep resolve_lib_name >/dev/null
26095 # We have reworked collect2
26096 hardcode_direct=yes
26098 # We have old collect2
26099 hardcode_direct=unsupported
26100 # It fails to find uninstalled libraries when the uninstalled
26101 # path is not listed in the libpath. Setting hardcode_minus_L
26102 # to unsupported forces relinking
26103 hardcode_minus_L=yes
26104 hardcode_libdir_flag_spec='-L$libdir'
26105 hardcode_libdir_separator=
26108 shared_flag='-shared'
26109 if test "$aix_use_runtimelinking" = yes; then
26110 shared_flag="$shared_flag "'${wl}-G'
26114 if test "$host_cpu" = ia64; then
26115 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
26116 # chokes on -Wl,-G. The following line is correct:
26119 if test "$aix_use_runtimelinking" = yes; then
26120 shared_flag='${wl}-G'
26122 shared_flag='${wl}-bM:SRE'
26127 # It seems that -bexpall does not export symbols beginning with
26128 # underscore (_), so it is better to generate a list of symbols to export.
26129 always_export_symbols=yes
26130 if test "$aix_use_runtimelinking" = yes; then
26131 # Warning - without using the other runtime loading flags (-brtl),
26132 # -berok will link without error, but may produce a broken library.
26133 allow_undefined_flag='-berok'
26134 # Determine the default libpath from the value encoded in an empty executable.
26135 cat >conftest.$ac_ext <<_ACEOF
26138 cat confdefs.h >>conftest.$ac_ext
26139 cat >>conftest.$ac_ext <<_ACEOF
26140 /* end confdefs.h. */
26150 rm -f conftest.$ac_objext conftest$ac_exeext
26151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26152 (eval $ac_link) 2>conftest.er1
26154 grep -v '^ *+' conftest.er1 >conftest.err
26156 cat conftest.err >&5
26157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26158 (exit $ac_status); } &&
26159 { ac_try='test -z "$ac_c_werror_flag"
26160 || test ! -s conftest.err'
26161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26162 (eval $ac_try) 2>&5
26164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26165 (exit $ac_status); }; } &&
26166 { ac_try='test -s conftest$ac_exeext'
26167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26168 (eval $ac_try) 2>&5
26170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171 (exit $ac_status); }; }; then
26173 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
26175 # Check for a 64-bit object if we didn't find anything.
26176 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
26179 echo "$as_me: failed program was:" >&5
26180 sed 's/^/| /' conftest.$ac_ext >&5
26183 rm -f conftest.err conftest.$ac_objext \
26184 conftest$ac_exeext conftest.$ac_ext
26185 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26187 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
26188 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
26190 if test "$host_cpu" = ia64; then
26191 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
26192 allow_undefined_flag="-z nodefs"
26193 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
26195 # Determine the default libpath from the value encoded in an empty executable.
26196 cat >conftest.$ac_ext <<_ACEOF
26199 cat confdefs.h >>conftest.$ac_ext
26200 cat >>conftest.$ac_ext <<_ACEOF
26201 /* end confdefs.h. */
26211 rm -f conftest.$ac_objext conftest$ac_exeext
26212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26213 (eval $ac_link) 2>conftest.er1
26215 grep -v '^ *+' conftest.er1 >conftest.err
26217 cat conftest.err >&5
26218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26219 (exit $ac_status); } &&
26220 { ac_try='test -z "$ac_c_werror_flag"
26221 || test ! -s conftest.err'
26222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26223 (eval $ac_try) 2>&5
26225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26226 (exit $ac_status); }; } &&
26227 { ac_try='test -s conftest$ac_exeext'
26228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26229 (eval $ac_try) 2>&5
26231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26232 (exit $ac_status); }; }; then
26234 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
26236 # Check for a 64-bit object if we didn't find anything.
26237 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
26240 echo "$as_me: failed program was:" >&5
26241 sed 's/^/| /' conftest.$ac_ext >&5
26244 rm -f conftest.err conftest.$ac_objext \
26245 conftest$ac_exeext conftest.$ac_ext
26246 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26248 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
26249 # Warning - without using the other run time loading flags,
26250 # -berok will link without error, but may produce a broken library.
26251 no_undefined_flag=' ${wl}-bernotok'
26252 allow_undefined_flag=' ${wl}-berok'
26253 # -bexpall does not export symbols beginning with underscore (_)
26254 always_export_symbols=yes
26255 # Exported symbols can be pulled into shared objects from archives
26256 whole_archive_flag_spec=' '
26257 archive_cmds_need_lc=yes
26258 # This is similar to how AIX traditionally builds its shared libraries.
26259 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
26265 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)'
26266 hardcode_libdir_flag_spec='-L$libdir'
26267 hardcode_minus_L=yes
26268 # see comment about different semantics on the GNU ld section
26273 export_dynamic_flag_spec=-rdynamic
26276 cygwin* | mingw* | pw32*)
26277 # When not using gcc, we currently assume that we are using
26278 # Microsoft Visual C++.
26279 # hardcode_libdir_flag_spec is actually meaningless, as there is
26280 # no search path for DLLs.
26281 hardcode_libdir_flag_spec=' '
26282 allow_undefined_flag=unsupported
26283 # Tell ltmain to make .lib files, not .a files.
26285 # Tell ltmain to make .dll files, not .so files.
26287 # FIXME: Setting linknames here is a bad hack.
26288 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
26289 # The linker will automatically build a .lib file if we build a DLL.
26290 old_archive_From_new_cmds='true'
26291 # FIXME: Should let the user specify the lib program.
26292 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
26293 fix_srcfile_path='`cygpath -w "$srcfile"`'
26294 enable_shared_with_static_runtimes=yes
26297 darwin* | rhapsody*)
26299 rhapsody* | darwin1.[012])
26300 allow_undefined_flag='${wl}-undefined ${wl}suppress'
26303 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
26304 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
26306 case ${MACOSX_DEPLOYMENT_TARGET} in
26308 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
26311 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
26317 archive_cmds_need_lc=no
26319 hardcode_automatic=yes
26320 hardcode_shlibpath_var=unsupported
26321 whole_archive_flag_spec=''
26322 link_all_deplibs=yes
26323 if test "$GCC" = yes ; then
26324 output_verbose_link_cmd='echo'
26325 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
26326 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
26327 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
26328 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
26329 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
26331 case $cc_basename in
26333 output_verbose_link_cmd='echo'
26334 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
26335 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
26336 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
26337 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
26338 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
26348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26349 hardcode_libdir_flag_spec='-L$libdir'
26350 hardcode_shlibpath_var=no
26357 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
26358 # support. Future versions do this automatically, but an explicit c++rt0.o
26359 # does not break anything, and helps significantly (at the cost of a little
26362 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
26363 hardcode_libdir_flag_spec='-R$libdir'
26364 hardcode_direct=yes
26365 hardcode_shlibpath_var=no
26368 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
26370 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
26371 hardcode_direct=yes
26372 hardcode_minus_L=yes
26373 hardcode_shlibpath_var=no
26376 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
26377 freebsd* | kfreebsd*-gnu | dragonfly*)
26378 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
26379 hardcode_libdir_flag_spec='-R$libdir'
26380 hardcode_direct=yes
26381 hardcode_shlibpath_var=no
26385 if test "$GCC" = yes; then
26386 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'
26388 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'
26390 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
26391 hardcode_libdir_separator=:
26392 hardcode_direct=yes
26394 # hardcode_minus_L: Not really in the search PATH,
26395 # but as the default location of the library.
26396 hardcode_minus_L=yes
26397 export_dynamic_flag_spec='${wl}-E'
26401 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
26404 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26407 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26413 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
26416 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
26420 if test "$with_gnu_ld" = no; then
26423 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
26424 hardcode_libdir_flag_spec_ld='+b $libdir'
26425 hardcode_libdir_separator=:
26427 hardcode_shlibpath_var=no
26430 hardcode_libdir_flag_spec='-L$libdir'
26432 hardcode_shlibpath_var=no
26434 # hardcode_minus_L: Not really in the search PATH,
26435 # but as the default location of the library.
26436 hardcode_minus_L=yes
26439 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
26440 hardcode_libdir_separator=:
26441 hardcode_direct=yes
26442 export_dynamic_flag_spec='${wl}-E'
26444 # hardcode_minus_L: Not really in the search PATH,
26445 # but as the default location of the library.
26446 hardcode_minus_L=yes
26452 irix5* | irix6* | nonstopux*)
26453 if test "$GCC" = yes; then
26454 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
26456 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
26457 hardcode_libdir_flag_spec_ld='-rpath $libdir'
26459 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
26460 hardcode_libdir_separator=:
26461 link_all_deplibs=yes
26465 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26466 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
26468 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
26470 hardcode_libdir_flag_spec='-R$libdir'
26471 hardcode_direct=yes
26472 hardcode_shlibpath_var=no
26476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26477 hardcode_direct=yes
26478 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
26479 hardcode_libdir_separator=:
26480 hardcode_shlibpath_var=no
26484 hardcode_direct=yes
26485 hardcode_shlibpath_var=no
26486 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26487 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26488 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
26489 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
26490 export_dynamic_flag_spec='${wl}-E'
26493 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
26494 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
26495 hardcode_libdir_flag_spec='-R$libdir'
26498 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26499 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
26506 hardcode_libdir_flag_spec='-L$libdir'
26507 hardcode_minus_L=yes
26508 allow_undefined_flag=unsupported
26509 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'
26510 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
26514 if test "$GCC" = yes; then
26515 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
26516 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
26518 allow_undefined_flag=' -expect_unresolved \*'
26519 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
26521 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
26522 hardcode_libdir_separator=:
26525 osf4* | osf5*) # as osf3* with the addition of -msym flag
26526 if test "$GCC" = yes; then
26527 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
26528 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
26529 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
26531 allow_undefined_flag=' -expect_unresolved \*'
26532 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
26533 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
26534 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
26536 # Both c and cxx compiler support -rpath directly
26537 hardcode_libdir_flag_spec='-rpath $libdir'
26539 hardcode_libdir_separator=:
26543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26544 hardcode_shlibpath_var=no
26545 export_dynamic_flag_spec='${wl}-Bexport'
26546 runpath_var=LD_RUN_PATH
26547 hardcode_runpath_var=yes
26551 no_undefined_flag=' -z text'
26552 if test "$GCC" = yes; then
26554 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26555 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
26556 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
26559 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
26560 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
26561 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
26563 hardcode_libdir_flag_spec='-R$libdir'
26564 hardcode_shlibpath_var=no
26566 solaris2.[0-5] | solaris2.[0-5].*) ;;
26568 # The compiler driver will combine linker options so we
26569 # cannot just pass the convience library names through
26570 # without $wl, iff we do not link with $LD.
26571 # Luckily, gcc supports the same syntax we need for Sun Studio.
26572 # Supported since Solaris 2.6 (maybe 2.5.1?)
26575 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
26577 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
26580 link_all_deplibs=yes
26584 if test "x$host_vendor" = xsequent; then
26585 # Use $CC to link under sequent, because it throws in some extra .o
26586 # files that make .init and .fini sections work.
26587 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
26589 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
26591 hardcode_libdir_flag_spec='-L$libdir'
26592 hardcode_direct=yes
26593 hardcode_minus_L=yes
26594 hardcode_shlibpath_var=no
26598 case $host_vendor in
26600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26601 hardcode_direct=yes # is this really true???
26604 ## LD is ld it makes a PLAMLIB
26605 ## CC just makes a GrossModule.
26606 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
26607 reload_cmds='$CC -r -o $output$reload_objs'
26611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26612 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
26615 runpath_var='LD_RUN_PATH'
26616 hardcode_shlibpath_var=no
26620 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26621 hardcode_shlibpath_var=no
26622 export_dynamic_flag_spec='-Bexport'
26626 if test -d /usr/nec; then
26627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26628 hardcode_shlibpath_var=no
26629 runpath_var=LD_RUN_PATH
26630 hardcode_runpath_var=yes
26636 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
26637 hardcode_direct=yes
26638 hardcode_minus_L=no
26639 hardcode_shlibpath_var=no
26640 hardcode_runpath_var=yes
26641 runpath_var=LD_RUN_PATH
26644 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
26645 no_undefined_flag='${wl}-z ${wl}text'
26646 if test "$GCC" = yes; then
26647 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26649 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26651 runpath_var='LD_RUN_PATH'
26652 hardcode_shlibpath_var=no
26656 no_undefined_flag=' -z text'
26657 # $CC -shared without GNU ld will not create a library from C++
26658 # object files and a static libstdc++, better avoid it by now
26659 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
26660 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
26661 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
26662 hardcode_libdir_flag_spec=
26663 hardcode_shlibpath_var=no
26664 runpath_var='LD_RUN_PATH'
26668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26669 hardcode_libdir_flag_spec='-L$libdir'
26670 hardcode_shlibpath_var=no
26679 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
26680 echo "${ECHO_T}$ld_shlibs" >&6
26681 test "$ld_shlibs" = no && can_build_shared=no
26683 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26684 if test "$GCC" = yes; then
26685 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26689 # Do we need to explicitly link libc?
26691 case "x$archive_cmds_need_lc" in
26693 # Assume -lc should be added
26694 archive_cmds_need_lc=yes
26696 if test "$enable_shared" = yes && test "$GCC" = yes; then
26697 case $archive_cmds in
26699 # FIXME: we may have to deal with multi-command sequences.
26702 # Test whether the compiler implicitly links with -lc since on some
26703 # systems, -lgcc has to come before -lc. If gcc already passes -lc
26704 # to ld, don't add -lc before -lgcc.
26705 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
26706 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
26708 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
26710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26711 (eval $ac_compile) 2>&5
26713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26714 (exit $ac_status); } 2>conftest.err; then
26717 libobjs=conftest.$ac_objext
26719 wl=$lt_prog_compiler_wl
26725 lt_save_allow_undefined_flag=$allow_undefined_flag
26726 allow_undefined_flag=
26727 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
26728 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
26730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26731 (exit $ac_status); }
26733 archive_cmds_need_lc=no
26735 archive_cmds_need_lc=yes
26737 allow_undefined_flag=$lt_save_allow_undefined_flag
26739 cat conftest.err 1>&5
26742 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
26743 echo "${ECHO_T}$archive_cmds_need_lc" >&6
26750 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
26751 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
26752 library_names_spec=
26753 libname_spec='lib$name'
26757 postuninstall_cmds=
26761 shlibpath_overrides_runpath=unknown
26763 dynamic_linker="$host_os ld.so"
26764 sys_lib_dlsearch_path_spec="/lib /usr/lib"
26765 if test "$GCC" = yes; then
26766 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
26767 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
26768 # if the path contains ";" then we assume it to be the separator
26769 # otherwise default to the standard path separator (i.e. ":") - it is
26770 # assumed that no part of a normal pathname contains ";" but that should
26771 # okay in the real world where ";" in dirpaths is itself problematic.
26772 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
26774 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
26777 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
26779 need_lib_prefix=unknown
26780 hardcode_into_libs=no
26782 # when you set need_version to no, make sure it does not cause -set_version
26783 # flags to be left without arguments
26784 need_version=unknown
26789 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
26790 shlibpath_var=LIBPATH
26792 # AIX 3 has no versioning support, so we append a major version to the name.
26793 soname_spec='${libname}${release}${shared_ext}$major'
26800 hardcode_into_libs=yes
26801 if test "$host_cpu" = ia64; then
26802 # AIX 5 supports IA64
26803 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
26804 shlibpath_var=LD_LIBRARY_PATH
26806 # With GCC up to 2.95.x, collect2 would create an import file
26807 # for dependence libraries. The import file would start with
26808 # the line `#! .'. This would cause the generated library to
26809 # depend on `.', always an invalid library. This was fixed in
26810 # development snapshots of GCC prior to 3.0.
26812 aix4 | aix4.[01] | aix4.[01].*)
26813 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
26815 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
26818 can_build_shared=no
26822 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
26823 # soname into executable. Probably we can add versioning support to
26824 # collect2, so additional links can be useful in future.
26825 if test "$aix_use_runtimelinking" = yes; then
26826 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
26827 # instead of lib<name>.a to let people know that these are not
26828 # typical AIX shared libraries.
26829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26831 # We preserve .a as extension for shared libraries through AIX4.2
26832 # and later when we are not doing run time linking.
26833 library_names_spec='${libname}${release}.a $libname.a'
26834 soname_spec='${libname}${release}${shared_ext}$major'
26836 shlibpath_var=LIBPATH
26841 library_names_spec='$libname.ixlibrary $libname.a'
26842 # Create ${libname}_ixlibrary.a entries in /sys/libs.
26843 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'
26847 library_names_spec='${libname}${shared_ext}'
26848 dynamic_linker="$host_os ld.so"
26849 shlibpath_var=LIBRARY_PATH
26855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26856 soname_spec='${libname}${release}${shared_ext}$major'
26857 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
26858 shlibpath_var=LD_LIBRARY_PATH
26859 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
26860 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
26861 # the default ld.so.conf also contains /usr/contrib/lib and
26862 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
26863 # libtool to hard-code these into programs
26866 cygwin* | mingw* | pw32*)
26867 version_type=windows
26872 case $GCC,$host_os in
26873 yes,cygwin* | yes,mingw* | yes,pw32*)
26874 library_names_spec='$libname.dll.a'
26875 # DLL is installed to $(libdir)/../bin by postinstall_cmds
26876 postinstall_cmds='base_file=`basename \${file}`~
26877 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
26878 dldir=$destdir/`dirname \$dlpath`~
26879 test -d \$dldir || mkdir -p \$dldir~
26880 $install_prog $dir/$dlname \$dldir/$dlname~
26881 chmod a+x \$dldir/$dlname'
26882 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
26883 dlpath=$dir/\$dldll~
26885 shlibpath_overrides_runpath=yes
26889 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
26890 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26891 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
26894 # MinGW DLLs use traditional 'lib' prefix
26895 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26896 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
26897 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
26898 # It is most probably a Windows format PATH printed by
26899 # mingw gcc, but we are running on Cygwin. Gcc prints its search
26900 # path with ; separators, and with drive letters. We can handle the
26901 # drive letters (cygwin fileutils understands them), so leave them,
26902 # especially as we might pass files found there to a mingw objdump,
26903 # which wouldn't understand a cygwinified path. Ahh.
26904 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
26906 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
26910 # pw32 DLLs use 'pw' prefix rather than 'lib'
26911 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26917 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
26920 dynamic_linker='Win32 ld.exe'
26921 # FIXME: first we should search . and the directory the executable is in
26925 darwin* | rhapsody*)
26926 dynamic_linker="$host_os dyld"
26927 version_type=darwin
26930 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
26931 soname_spec='${libname}${release}${major}$shared_ext'
26932 shlibpath_overrides_runpath=yes
26933 shlibpath_var=DYLD_LIBRARY_PATH
26934 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
26935 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
26936 if test "$GCC" = yes; then
26937 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
26939 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
26941 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
26948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
26949 soname_spec='${libname}${release}${shared_ext}$major'
26950 shlibpath_var=LD_LIBRARY_PATH
26961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26962 soname_spec='${libname}${release}${shared_ext}$major'
26963 shlibpath_var=LD_LIBRARY_PATH
26964 shlibpath_overrides_runpath=no
26965 hardcode_into_libs=yes
26966 dynamic_linker='GNU ld.so'
26969 freebsd* | dragonfly*)
26970 # DragonFly does not have aout. When/if they implement a new
26971 # versioning mechanism, adjust this.
26972 if test -x /usr/bin/objformat; then
26973 objformat=`/usr/bin/objformat`
26976 freebsd[123]*) objformat=aout ;;
26977 *) objformat=elf ;;
26980 version_type=freebsd-$objformat
26981 case $version_type in
26983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26988 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
26992 shlibpath_var=LD_LIBRARY_PATH
26995 shlibpath_overrides_runpath=yes
26997 freebsd3.[01]* | freebsdelf3.[01]*)
26998 shlibpath_overrides_runpath=yes
26999 hardcode_into_libs=yes
27002 shlibpath_overrides_runpath=no
27003 hardcode_into_libs=yes
27012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
27013 soname_spec='${libname}${release}${shared_ext}$major'
27014 shlibpath_var=LD_LIBRARY_PATH
27015 hardcode_into_libs=yes
27018 hpux9* | hpux10* | hpux11*)
27019 # Give a soname corresponding to the major version so that dld.sl refuses to
27020 # link against other versions.
27027 hardcode_into_libs=yes
27028 dynamic_linker="$host_os dld.so"
27029 shlibpath_var=LD_LIBRARY_PATH
27030 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
27031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27032 soname_spec='${libname}${release}${shared_ext}$major'
27033 if test "X$HPUX_IA64_MODE" = X32; then
27034 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
27036 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
27038 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
27042 hardcode_into_libs=yes
27043 dynamic_linker="$host_os dld.sl"
27044 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
27045 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
27046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27047 soname_spec='${libname}${release}${shared_ext}$major'
27048 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
27049 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
27053 dynamic_linker="$host_os dld.sl"
27054 shlibpath_var=SHLIB_PATH
27055 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
27056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27057 soname_spec='${libname}${release}${shared_ext}$major'
27060 # HP-UX runs *really* slowly unless shared libraries are mode 555.
27061 postinstall_cmds='chmod 555 $lib'
27064 irix5* | irix6* | nonstopux*)
27066 nonstopux*) version_type=nonstopux ;;
27068 if test "$lt_cv_prog_gnu_ld" = yes; then
27076 soname_spec='${libname}${release}${shared_ext}$major'
27077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
27079 irix5* | nonstopux*)
27080 libsuff= shlibsuff=
27083 case $LD in # libtool.m4 will add one of these switches to LD
27084 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
27085 libsuff= shlibsuff= libmagic=32-bit;;
27086 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
27087 libsuff=32 shlibsuff=N32 libmagic=N32;;
27088 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
27089 libsuff=64 shlibsuff=64 libmagic=64-bit;;
27090 *) libsuff= shlibsuff= libmagic=never-match;;
27094 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
27095 shlibpath_overrides_runpath=no
27096 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
27097 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
27098 hardcode_into_libs=yes
27101 # No shared lib support for Linux oldld, aout, or coff.
27102 linux*oldld* | linux*aout* | linux*coff*)
27106 # This must be Linux ELF.
27111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27112 soname_spec='${libname}${release}${shared_ext}$major'
27113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
27114 shlibpath_var=LD_LIBRARY_PATH
27115 shlibpath_overrides_runpath=no
27116 # This implies no fast_install, which is unacceptable.
27117 # Some rework will be needed to allow for fast_install
27118 # before this can be enabled.
27119 hardcode_into_libs=yes
27121 # Append ld.so.conf contents to the search path
27122 if test -f /etc/ld.so.conf; then
27123 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
27124 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
27127 # We used to test for /lib/ld.so.1 and disable shared libraries on
27128 # powerpc, because MkLinux only supported shared libraries with the
27129 # GNU dynamic linker. Since this was broken with cross compilers,
27130 # most powerpc-linux boxes support dynamic linking these days and
27131 # people can always --disable-shared, the test was removed, and we
27132 # assume the GNU/Linux dynamic linker is in use.
27133 dynamic_linker='GNU/Linux ld.so'
27140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
27141 soname_spec='${libname}${release}${shared_ext}$major'
27142 shlibpath_var=LD_LIBRARY_PATH
27143 shlibpath_overrides_runpath=no
27144 hardcode_into_libs=yes
27145 dynamic_linker='GNU ld.so'
27152 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
27153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
27154 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
27155 dynamic_linker='NetBSD (a.out) ld.so'
27157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
27158 soname_spec='${libname}${release}${shared_ext}$major'
27159 dynamic_linker='NetBSD ld.elf_so'
27161 shlibpath_var=LD_LIBRARY_PATH
27162 shlibpath_overrides_runpath=yes
27163 hardcode_into_libs=yes
27168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27169 shlibpath_var=LD_LIBRARY_PATH
27170 shlibpath_overrides_runpath=yes
27177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27178 soname_spec='${libname}${release}${shared_ext}$major'
27179 shlibpath_var=LD_LIBRARY_PATH
27180 shlibpath_overrides_runpath=yes
27186 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
27188 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
27189 *) need_version=no ;;
27191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
27192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
27193 shlibpath_var=LD_LIBRARY_PATH
27194 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
27196 openbsd2.[89] | openbsd2.[89].*)
27197 shlibpath_overrides_runpath=no
27200 shlibpath_overrides_runpath=yes
27204 shlibpath_overrides_runpath=yes
27209 libname_spec='$name'
27212 library_names_spec='$libname${shared_ext} $libname.a'
27213 dynamic_linker='OS/2 ld.exe'
27214 shlibpath_var=LIBPATH
27217 osf3* | osf4* | osf5*)
27221 soname_spec='${libname}${release}${shared_ext}$major'
27222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27223 shlibpath_var=LD_LIBRARY_PATH
27224 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
27225 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
27230 soname_spec='${libname}${release}${shared_ext}$major'
27231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27232 shlibpath_var=LD_LIBRARY_PATH
27239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27240 soname_spec='${libname}${release}${shared_ext}$major'
27241 shlibpath_var=LD_LIBRARY_PATH
27242 shlibpath_overrides_runpath=yes
27243 hardcode_into_libs=yes
27244 # ldd complains unless libraries are executable
27245 postinstall_cmds='chmod +x $lib'
27250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
27251 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
27252 shlibpath_var=LD_LIBRARY_PATH
27253 shlibpath_overrides_runpath=yes
27254 if test "$with_gnu_ld" = yes; then
27260 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
27262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27263 soname_spec='${libname}${release}${shared_ext}$major'
27264 shlibpath_var=LD_LIBRARY_PATH
27265 case $host_vendor in
27267 shlibpath_overrides_runpath=no
27269 export_dynamic_flag_spec='${wl}-Blargedynsym'
27270 runpath_var=LD_RUN_PATH
27278 shlibpath_overrides_runpath=no
27279 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
27285 if test -d /usr/nec ;then
27287 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
27288 soname_spec='$libname${shared_ext}.$major'
27289 shlibpath_var=LD_LIBRARY_PATH
27295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27296 soname_spec='${libname}${release}${shared_ext}$major'
27297 shlibpath_var=LD_LIBRARY_PATH
27304 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
27305 echo "${ECHO_T}$dynamic_linker" >&6
27306 test "$dynamic_linker" = no && can_build_shared=no
27308 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
27309 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
27311 if test -n "$hardcode_libdir_flag_spec" || \
27312 test -n "$runpath_var" || \
27313 test "X$hardcode_automatic" = "Xyes" ; then
27315 # We can hardcode non-existant directories.
27316 if test "$hardcode_direct" != no &&
27317 # If the only mechanism to avoid hardcoding is shlibpath_var, we
27318 # have to relink, otherwise we might link with an installed library
27319 # when we should be linking with a yet-to-be-installed one
27320 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
27321 test "$hardcode_minus_L" != no; then
27322 # Linking always hardcodes the temporary library directory.
27323 hardcode_action=relink
27325 # We can link without hardcoding, and we can hardcode nonexisting dirs.
27326 hardcode_action=immediate
27329 # We cannot hardcode anything, or else we can only hardcode existing
27331 hardcode_action=unsupported
27333 echo "$as_me:$LINENO: result: $hardcode_action" >&5
27334 echo "${ECHO_T}$hardcode_action" >&6
27336 if test "$hardcode_action" = relink; then
27337 # Fast installation is not supported
27338 enable_fast_install=no
27339 elif test "$shlibpath_overrides_runpath" = yes ||
27340 test "$enable_shared" = no; then
27341 # Fast installation is not necessary
27342 enable_fast_install=needless
27347 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
27348 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
27349 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
27350 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
27351 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
27352 echo "$as_me:$LINENO: result: yes" >&5
27353 echo "${ECHO_T}yes" >&6
27355 # FIXME - insert some real tests, host_os isn't really good enough
27358 if test -n "$STRIP" ; then
27359 striplib="$STRIP -x"
27360 echo "$as_me:$LINENO: result: yes" >&5
27361 echo "${ECHO_T}yes" >&6
27363 echo "$as_me:$LINENO: result: no" >&5
27364 echo "${ECHO_T}no" >&6
27368 echo "$as_me:$LINENO: result: no" >&5
27369 echo "${ECHO_T}no" >&6
27374 if test "x$enable_dlopen" != xyes; then
27375 enable_dlopen=unknown
27376 enable_dlopen_self=unknown
27377 enable_dlopen_self_static=unknown
27384 lt_cv_dlopen="load_add_on"
27386 lt_cv_dlopen_self=yes
27390 lt_cv_dlopen="LoadLibrary"
27395 lt_cv_dlopen="dlopen"
27400 # if libdl is installed we need to link against it
27401 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
27402 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
27403 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
27404 echo $ECHO_N "(cached) $ECHO_C" >&6
27406 ac_check_lib_save_LIBS=$LIBS
27408 cat >conftest.$ac_ext <<_ACEOF
27411 cat confdefs.h >>conftest.$ac_ext
27412 cat >>conftest.$ac_ext <<_ACEOF
27413 /* end confdefs.h. */
27415 /* Override any gcc2 internal prototype to avoid an error. */
27419 /* We use char because int might match the return type of a gcc2
27420 builtin and then its argument prototype would still apply. */
27430 rm -f conftest.$ac_objext conftest$ac_exeext
27431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27432 (eval $ac_link) 2>conftest.er1
27434 grep -v '^ *+' conftest.er1 >conftest.err
27436 cat conftest.err >&5
27437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27438 (exit $ac_status); } &&
27439 { ac_try='test -z "$ac_c_werror_flag"
27440 || test ! -s conftest.err'
27441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27442 (eval $ac_try) 2>&5
27444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27445 (exit $ac_status); }; } &&
27446 { ac_try='test -s conftest$ac_exeext'
27447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27448 (eval $ac_try) 2>&5
27450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27451 (exit $ac_status); }; }; then
27452 ac_cv_lib_dl_dlopen=yes
27454 echo "$as_me: failed program was:" >&5
27455 sed 's/^/| /' conftest.$ac_ext >&5
27457 ac_cv_lib_dl_dlopen=no
27459 rm -f conftest.err conftest.$ac_objext \
27460 conftest$ac_exeext conftest.$ac_ext
27461 LIBS=$ac_check_lib_save_LIBS
27463 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
27464 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
27465 if test $ac_cv_lib_dl_dlopen = yes; then
27466 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
27469 lt_cv_dlopen="dyld"
27471 lt_cv_dlopen_self=yes
27478 echo "$as_me:$LINENO: checking for shl_load" >&5
27479 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
27480 if test "${ac_cv_func_shl_load+set}" = set; then
27481 echo $ECHO_N "(cached) $ECHO_C" >&6
27483 cat >conftest.$ac_ext <<_ACEOF
27486 cat confdefs.h >>conftest.$ac_ext
27487 cat >>conftest.$ac_ext <<_ACEOF
27488 /* end confdefs.h. */
27489 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
27490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27491 #define shl_load innocuous_shl_load
27493 /* System header to define __stub macros and hopefully few prototypes,
27494 which can conflict with char shl_load (); below.
27495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27496 <limits.h> exists even on freestanding compilers. */
27499 # include <limits.h>
27501 # include <assert.h>
27506 /* Override any gcc2 internal prototype to avoid an error. */
27511 /* We use char because int might match the return type of a gcc2
27512 builtin and then its argument prototype would still apply. */
27514 /* The GNU C library defines this for functions which it implements
27515 to always fail with ENOSYS. Some functions are actually named
27516 something starting with __ and the normal name is an alias. */
27517 #if defined (__stub_shl_load) || defined (__stub___shl_load)
27520 char (*f) () = shl_load;
27529 return f != shl_load;
27534 rm -f conftest.$ac_objext conftest$ac_exeext
27535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27536 (eval $ac_link) 2>conftest.er1
27538 grep -v '^ *+' conftest.er1 >conftest.err
27540 cat conftest.err >&5
27541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27542 (exit $ac_status); } &&
27543 { ac_try='test -z "$ac_c_werror_flag"
27544 || test ! -s conftest.err'
27545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27546 (eval $ac_try) 2>&5
27548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27549 (exit $ac_status); }; } &&
27550 { ac_try='test -s conftest$ac_exeext'
27551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27552 (eval $ac_try) 2>&5
27554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27555 (exit $ac_status); }; }; then
27556 ac_cv_func_shl_load=yes
27558 echo "$as_me: failed program was:" >&5
27559 sed 's/^/| /' conftest.$ac_ext >&5
27561 ac_cv_func_shl_load=no
27563 rm -f conftest.err conftest.$ac_objext \
27564 conftest$ac_exeext conftest.$ac_ext
27566 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
27567 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
27568 if test $ac_cv_func_shl_load = yes; then
27569 lt_cv_dlopen="shl_load"
27571 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
27572 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
27573 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
27574 echo $ECHO_N "(cached) $ECHO_C" >&6
27576 ac_check_lib_save_LIBS=$LIBS
27578 cat >conftest.$ac_ext <<_ACEOF
27581 cat confdefs.h >>conftest.$ac_ext
27582 cat >>conftest.$ac_ext <<_ACEOF
27583 /* end confdefs.h. */
27585 /* Override any gcc2 internal prototype to avoid an error. */
27589 /* We use char because int might match the return type of a gcc2
27590 builtin and then its argument prototype would still apply. */
27600 rm -f conftest.$ac_objext conftest$ac_exeext
27601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27602 (eval $ac_link) 2>conftest.er1
27604 grep -v '^ *+' conftest.er1 >conftest.err
27606 cat conftest.err >&5
27607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27608 (exit $ac_status); } &&
27609 { ac_try='test -z "$ac_c_werror_flag"
27610 || test ! -s conftest.err'
27611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27612 (eval $ac_try) 2>&5
27614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615 (exit $ac_status); }; } &&
27616 { ac_try='test -s conftest$ac_exeext'
27617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27618 (eval $ac_try) 2>&5
27620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27621 (exit $ac_status); }; }; then
27622 ac_cv_lib_dld_shl_load=yes
27624 echo "$as_me: failed program was:" >&5
27625 sed 's/^/| /' conftest.$ac_ext >&5
27627 ac_cv_lib_dld_shl_load=no
27629 rm -f conftest.err conftest.$ac_objext \
27630 conftest$ac_exeext conftest.$ac_ext
27631 LIBS=$ac_check_lib_save_LIBS
27633 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
27634 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
27635 if test $ac_cv_lib_dld_shl_load = yes; then
27636 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
27638 echo "$as_me:$LINENO: checking for dlopen" >&5
27639 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
27640 if test "${ac_cv_func_dlopen+set}" = set; then
27641 echo $ECHO_N "(cached) $ECHO_C" >&6
27643 cat >conftest.$ac_ext <<_ACEOF
27646 cat confdefs.h >>conftest.$ac_ext
27647 cat >>conftest.$ac_ext <<_ACEOF
27648 /* end confdefs.h. */
27649 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
27650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27651 #define dlopen innocuous_dlopen
27653 /* System header to define __stub macros and hopefully few prototypes,
27654 which can conflict with char dlopen (); below.
27655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27656 <limits.h> exists even on freestanding compilers. */
27659 # include <limits.h>
27661 # include <assert.h>
27666 /* Override any gcc2 internal prototype to avoid an error. */
27671 /* We use char because int might match the return type of a gcc2
27672 builtin and then its argument prototype would still apply. */
27674 /* The GNU C library defines this for functions which it implements
27675 to always fail with ENOSYS. Some functions are actually named
27676 something starting with __ and the normal name is an alias. */
27677 #if defined (__stub_dlopen) || defined (__stub___dlopen)
27680 char (*f) () = dlopen;
27689 return f != dlopen;
27694 rm -f conftest.$ac_objext conftest$ac_exeext
27695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27696 (eval $ac_link) 2>conftest.er1
27698 grep -v '^ *+' conftest.er1 >conftest.err
27700 cat conftest.err >&5
27701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27702 (exit $ac_status); } &&
27703 { ac_try='test -z "$ac_c_werror_flag"
27704 || test ! -s conftest.err'
27705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27706 (eval $ac_try) 2>&5
27708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27709 (exit $ac_status); }; } &&
27710 { ac_try='test -s conftest$ac_exeext'
27711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27712 (eval $ac_try) 2>&5
27714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27715 (exit $ac_status); }; }; then
27716 ac_cv_func_dlopen=yes
27718 echo "$as_me: failed program was:" >&5
27719 sed 's/^/| /' conftest.$ac_ext >&5
27721 ac_cv_func_dlopen=no
27723 rm -f conftest.err conftest.$ac_objext \
27724 conftest$ac_exeext conftest.$ac_ext
27726 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
27727 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
27728 if test $ac_cv_func_dlopen = yes; then
27729 lt_cv_dlopen="dlopen"
27731 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
27732 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
27733 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
27734 echo $ECHO_N "(cached) $ECHO_C" >&6
27736 ac_check_lib_save_LIBS=$LIBS
27738 cat >conftest.$ac_ext <<_ACEOF
27741 cat confdefs.h >>conftest.$ac_ext
27742 cat >>conftest.$ac_ext <<_ACEOF
27743 /* end confdefs.h. */
27745 /* Override any gcc2 internal prototype to avoid an error. */
27749 /* We use char because int might match the return type of a gcc2
27750 builtin and then its argument prototype would still apply. */
27760 rm -f conftest.$ac_objext conftest$ac_exeext
27761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27762 (eval $ac_link) 2>conftest.er1
27764 grep -v '^ *+' conftest.er1 >conftest.err
27766 cat conftest.err >&5
27767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27768 (exit $ac_status); } &&
27769 { ac_try='test -z "$ac_c_werror_flag"
27770 || test ! -s conftest.err'
27771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27772 (eval $ac_try) 2>&5
27774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775 (exit $ac_status); }; } &&
27776 { ac_try='test -s conftest$ac_exeext'
27777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27778 (eval $ac_try) 2>&5
27780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781 (exit $ac_status); }; }; then
27782 ac_cv_lib_dl_dlopen=yes
27784 echo "$as_me: failed program was:" >&5
27785 sed 's/^/| /' conftest.$ac_ext >&5
27787 ac_cv_lib_dl_dlopen=no
27789 rm -f conftest.err conftest.$ac_objext \
27790 conftest$ac_exeext conftest.$ac_ext
27791 LIBS=$ac_check_lib_save_LIBS
27793 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
27794 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
27795 if test $ac_cv_lib_dl_dlopen = yes; then
27796 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
27798 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
27799 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
27800 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
27801 echo $ECHO_N "(cached) $ECHO_C" >&6
27803 ac_check_lib_save_LIBS=$LIBS
27804 LIBS="-lsvld $LIBS"
27805 cat >conftest.$ac_ext <<_ACEOF
27808 cat confdefs.h >>conftest.$ac_ext
27809 cat >>conftest.$ac_ext <<_ACEOF
27810 /* end confdefs.h. */
27812 /* Override any gcc2 internal prototype to avoid an error. */
27816 /* We use char because int might match the return type of a gcc2
27817 builtin and then its argument prototype would still apply. */
27827 rm -f conftest.$ac_objext conftest$ac_exeext
27828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27829 (eval $ac_link) 2>conftest.er1
27831 grep -v '^ *+' conftest.er1 >conftest.err
27833 cat conftest.err >&5
27834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27835 (exit $ac_status); } &&
27836 { ac_try='test -z "$ac_c_werror_flag"
27837 || test ! -s conftest.err'
27838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27839 (eval $ac_try) 2>&5
27841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27842 (exit $ac_status); }; } &&
27843 { ac_try='test -s conftest$ac_exeext'
27844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27845 (eval $ac_try) 2>&5
27847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848 (exit $ac_status); }; }; then
27849 ac_cv_lib_svld_dlopen=yes
27851 echo "$as_me: failed program was:" >&5
27852 sed 's/^/| /' conftest.$ac_ext >&5
27854 ac_cv_lib_svld_dlopen=no
27856 rm -f conftest.err conftest.$ac_objext \
27857 conftest$ac_exeext conftest.$ac_ext
27858 LIBS=$ac_check_lib_save_LIBS
27860 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
27861 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
27862 if test $ac_cv_lib_svld_dlopen = yes; then
27863 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
27865 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
27866 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
27867 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
27868 echo $ECHO_N "(cached) $ECHO_C" >&6
27870 ac_check_lib_save_LIBS=$LIBS
27872 cat >conftest.$ac_ext <<_ACEOF
27875 cat confdefs.h >>conftest.$ac_ext
27876 cat >>conftest.$ac_ext <<_ACEOF
27877 /* end confdefs.h. */
27879 /* Override any gcc2 internal prototype to avoid an error. */
27883 /* We use char because int might match the return type of a gcc2
27884 builtin and then its argument prototype would still apply. */
27894 rm -f conftest.$ac_objext conftest$ac_exeext
27895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27896 (eval $ac_link) 2>conftest.er1
27898 grep -v '^ *+' conftest.er1 >conftest.err
27900 cat conftest.err >&5
27901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27902 (exit $ac_status); } &&
27903 { ac_try='test -z "$ac_c_werror_flag"
27904 || test ! -s conftest.err'
27905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27906 (eval $ac_try) 2>&5
27908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27909 (exit $ac_status); }; } &&
27910 { ac_try='test -s conftest$ac_exeext'
27911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27912 (eval $ac_try) 2>&5
27914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27915 (exit $ac_status); }; }; then
27916 ac_cv_lib_dld_dld_link=yes
27918 echo "$as_me: failed program was:" >&5
27919 sed 's/^/| /' conftest.$ac_ext >&5
27921 ac_cv_lib_dld_dld_link=no
27923 rm -f conftest.err conftest.$ac_objext \
27924 conftest$ac_exeext conftest.$ac_ext
27925 LIBS=$ac_check_lib_save_LIBS
27927 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
27928 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
27929 if test $ac_cv_lib_dld_dld_link = yes; then
27930 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
27951 if test "x$lt_cv_dlopen" != xno; then
27957 case $lt_cv_dlopen in
27959 save_CPPFLAGS="$CPPFLAGS"
27960 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
27962 save_LDFLAGS="$LDFLAGS"
27963 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
27966 LIBS="$lt_cv_dlopen_libs $LIBS"
27968 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
27969 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
27970 if test "${lt_cv_dlopen_self+set}" = set; then
27971 echo $ECHO_N "(cached) $ECHO_C" >&6
27973 if test "$cross_compiling" = yes; then :
27974 lt_cv_dlopen_self=cross
27976 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
27977 lt_status=$lt_dlunknown
27978 cat > conftest.$ac_ext <<EOF
27979 #line 27979 "configure"
27980 #include "confdefs.h"
27989 # define LT_DLGLOBAL RTLD_GLOBAL
27992 # define LT_DLGLOBAL DL_GLOBAL
27994 # define LT_DLGLOBAL 0
27998 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
27999 find out it does not work in some platform. */
28000 #ifndef LT_DLLAZY_OR_NOW
28002 # define LT_DLLAZY_OR_NOW RTLD_LAZY
28005 # define LT_DLLAZY_OR_NOW DL_LAZY
28008 # define LT_DLLAZY_OR_NOW RTLD_NOW
28011 # define LT_DLLAZY_OR_NOW DL_NOW
28013 # define LT_DLLAZY_OR_NOW 0
28021 extern "C" void exit (int);
28024 void fnord() { int i=42;}
28027 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
28028 int status = $lt_dlunknown;
28032 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
28033 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
28034 /* dlclose (self); */
28040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28041 (eval $ac_link) 2>&5
28043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28044 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
28045 (./conftest; exit; ) >&5 2>/dev/null
28047 case x$lt_status in
28048 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
28049 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
28050 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
28053 # compilation failed
28054 lt_cv_dlopen_self=no
28061 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
28062 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
28064 if test "x$lt_cv_dlopen_self" = xyes; then
28065 LDFLAGS="$LDFLAGS $link_static_flag"
28066 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
28067 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
28068 if test "${lt_cv_dlopen_self_static+set}" = set; then
28069 echo $ECHO_N "(cached) $ECHO_C" >&6
28071 if test "$cross_compiling" = yes; then :
28072 lt_cv_dlopen_self_static=cross
28074 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
28075 lt_status=$lt_dlunknown
28076 cat > conftest.$ac_ext <<EOF
28077 #line 28077 "configure"
28078 #include "confdefs.h"
28087 # define LT_DLGLOBAL RTLD_GLOBAL
28090 # define LT_DLGLOBAL DL_GLOBAL
28092 # define LT_DLGLOBAL 0
28096 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
28097 find out it does not work in some platform. */
28098 #ifndef LT_DLLAZY_OR_NOW
28100 # define LT_DLLAZY_OR_NOW RTLD_LAZY
28103 # define LT_DLLAZY_OR_NOW DL_LAZY
28106 # define LT_DLLAZY_OR_NOW RTLD_NOW
28109 # define LT_DLLAZY_OR_NOW DL_NOW
28111 # define LT_DLLAZY_OR_NOW 0
28119 extern "C" void exit (int);
28122 void fnord() { int i=42;}
28125 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
28126 int status = $lt_dlunknown;
28130 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
28131 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
28132 /* dlclose (self); */
28138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28139 (eval $ac_link) 2>&5
28141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
28143 (./conftest; exit; ) >&5 2>/dev/null
28145 case x$lt_status in
28146 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
28147 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
28148 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
28151 # compilation failed
28152 lt_cv_dlopen_self_static=no
28159 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
28160 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
28163 CPPFLAGS="$save_CPPFLAGS"
28164 LDFLAGS="$save_LDFLAGS"
28169 case $lt_cv_dlopen_self in
28170 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
28171 *) enable_dlopen_self=unknown ;;
28174 case $lt_cv_dlopen_self_static in
28175 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
28176 *) enable_dlopen_self_static=unknown ;;
28181 # Report which librarie types wil actually be built
28182 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
28183 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
28184 echo "$as_me:$LINENO: result: $can_build_shared" >&5
28185 echo "${ECHO_T}$can_build_shared" >&6
28187 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
28188 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
28189 test "$can_build_shared" = "no" && enable_shared=no
28191 # On AIX, shared libraries and static libraries use the same namespace, and
28192 # are all built from PIC.
28195 test "$enable_shared" = yes && enable_static=no
28196 if test -n "$RANLIB"; then
28197 archive_cmds="$archive_cmds~\$RANLIB \$lib"
28198 postinstall_cmds='$RANLIB $lib'
28203 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
28204 test "$enable_shared" = yes && enable_static=no
28208 echo "$as_me:$LINENO: result: $enable_shared" >&5
28209 echo "${ECHO_T}$enable_shared" >&6
28211 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
28212 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
28213 # Make sure either enable_shared or enable_static is yes.
28214 test "$enable_shared" = yes || enable_static=yes
28215 echo "$as_me:$LINENO: result: $enable_static" >&5
28216 echo "${ECHO_T}$enable_static" >&6
28218 # The else clause should only fire when bootstrapping the
28219 # libtool distribution, otherwise you forgot to ship ltmain.sh
28220 # with your package, and you will get complaints that there are
28221 # no rules to generate ltmain.sh.
28222 if test -f "$ltmain"; then
28223 # See if we are running on zsh, and set the options which allow our commands through
28224 # without removal of \ escapes.
28225 if test -n "${ZSH_VERSION+set}" ; then
28226 setopt NO_GLOB_SUBST
28228 # Now quote all the things that may contain metacharacters while being
28229 # careful not to overquote the AC_SUBSTed values. We take copies of the
28230 # variables and quote the copies for generation of the libtool script.
28231 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
28233 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
28234 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
28235 deplibs_check_method reload_flag reload_cmds need_locks \
28236 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
28237 lt_cv_sys_global_symbol_to_c_name_address \
28238 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
28239 old_postinstall_cmds old_postuninstall_cmds \
28243 lt_prog_compiler_wl \
28244 lt_prog_compiler_pic \
28245 lt_prog_compiler_static \
28246 lt_prog_compiler_no_builtin_flag \
28247 export_dynamic_flag_spec \
28248 thread_safe_flag_spec \
28249 whole_archive_flag_spec \
28250 enable_shared_with_static_runtimes \
28252 old_archive_from_new_cmds \
28257 compiler_lib_search_path \
28259 archive_expsym_cmds \
28261 postuninstall_cmds \
28262 old_archive_from_expsyms_cmds \
28263 allow_undefined_flag \
28264 no_undefined_flag \
28265 export_symbols_cmds \
28266 hardcode_libdir_flag_spec \
28267 hardcode_libdir_flag_spec_ld \
28268 hardcode_libdir_separator \
28269 hardcode_automatic \
28271 module_expsym_cmds \
28272 lt_cv_prog_compiler_c_o \
28274 include_expsyms; do
28277 old_archive_cmds | \
28278 old_archive_from_new_cmds | \
28280 archive_expsym_cmds | \
28282 module_expsym_cmds | \
28283 old_archive_from_expsyms_cmds | \
28284 export_symbols_cmds | \
28285 extract_expsyms_cmds | reload_cmds | finish_cmds | \
28286 postinstall_cmds | postuninstall_cmds | \
28287 old_postinstall_cmds | old_postuninstall_cmds | \
28288 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
28289 # Double-quote double-evaled strings.
28290 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
28293 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
28299 *'\$0 --fallback-echo"')
28300 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
28304 cfgfile="${ofile}T"
28305 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
28307 { echo "$as_me:$LINENO: creating $ofile" >&5
28308 echo "$as_me: creating $ofile" >&6;}
28310 cat <<__EOF__ >> "$cfgfile"
28313 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28314 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
28315 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28317 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
28318 # Free Software Foundation, Inc.
28320 # This file is part of GNU Libtool:
28321 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
28323 # This program is free software; you can redistribute it and/or modify
28324 # it under the terms of the GNU General Public License as published by
28325 # the Free Software Foundation; either version 2 of the License, or
28326 # (at your option) any later version.
28328 # This program is distributed in the hope that it will be useful, but
28329 # WITHOUT ANY WARRANTY; without even the implied warranty of
28330 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28331 # General Public License for more details.
28333 # You should have received a copy of the GNU General Public License
28334 # along with this program; if not, write to the Free Software
28335 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28337 # As a special exception to the GNU General Public License, if you
28338 # distribute this file as part of a program that contains a
28339 # configuration script generated by Autoconf, you may include it under
28340 # the same distribution terms that you use for the rest of that program.
28342 # A sed program that does not truncate output.
28345 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28346 Xsed="$SED -e 1s/^X//"
28348 # The HP-UX ksh and POSIX shell print the target directory to stdout
28349 # if CDPATH is set.
28350 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28352 # The names of the tagged configurations supported by this script.
28355 # ### BEGIN LIBTOOL CONFIG
28357 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28359 # Shell to use when invoking shell scripts.
28362 # Whether or not to build shared libraries.
28363 build_libtool_libs=$enable_shared
28365 # Whether or not to build static libraries.
28366 build_old_libs=$enable_static
28368 # Whether or not to add -lc for building shared libraries.
28369 build_libtool_need_lc=$archive_cmds_need_lc
28371 # Whether or not to disallow shared libs when runtime libs are static
28372 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28374 # Whether or not to optimize for fast installation.
28375 fast_install=$enable_fast_install
28378 host_alias=$host_alias
28382 # The build system.
28383 build_alias=$build_alias
28387 # An echo program that does not interpret backslashes.
28392 AR_FLAGS=$lt_AR_FLAGS
28397 # A language-specific compiler.
28400 # Is the compiler the GNU C compiler?
28406 # The linker used to build libraries.
28409 # Whether we need hard or soft links.
28412 # A BSD-compatible nm program.
28415 # A symbol stripping program
28418 # Used to examine libraries when file_magic_cmd begins "file"
28419 MAGIC_CMD=$MAGIC_CMD
28421 # Used on cygwin: DLL creation program.
28424 # Used on cygwin: object dumper.
28427 # Used on cygwin: assembler.
28430 # The name of the directory that contains temporary libtool files.
28433 # How to create reloadable object files.
28434 reload_flag=$lt_reload_flag
28435 reload_cmds=$lt_reload_cmds
28437 # How to pass a linker flag through the compiler.
28438 wl=$lt_lt_prog_compiler_wl
28440 # Object file suffix (normally "o").
28441 objext="$ac_objext"
28443 # Old archive suffix (normally "a").
28446 # Shared library suffix (normally ".so").
28447 shrext_cmds='$shrext_cmds'
28449 # Executable file suffix (normally "").
28452 # Additional compiler flags for building library objects.
28453 pic_flag=$lt_lt_prog_compiler_pic
28456 # What is the maximum length of a command?
28457 max_cmd_len=$lt_cv_sys_max_cmd_len
28459 # Does compiler simultaneously support -c and -o options?
28460 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28462 # Must we lock files when doing compilation?
28463 need_locks=$lt_need_locks
28465 # Do we need the lib prefix for modules?
28466 need_lib_prefix=$need_lib_prefix
28468 # Do we need a version for libraries?
28469 need_version=$need_version
28471 # Whether dlopen is supported.
28472 dlopen_support=$enable_dlopen
28474 # Whether dlopen of programs is supported.
28475 dlopen_self=$enable_dlopen_self
28477 # Whether dlopen of statically linked programs is supported.
28478 dlopen_self_static=$enable_dlopen_self_static
28480 # Compiler flag to prevent dynamic linking.
28481 link_static_flag=$lt_lt_prog_compiler_static
28483 # Compiler flag to turn off builtin functions.
28484 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28486 # Compiler flag to allow reflexive dlopens.
28487 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28489 # Compiler flag to generate shared objects directly from archives.
28490 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28492 # Compiler flag to generate thread-safe objects.
28493 thread_safe_flag_spec=$lt_thread_safe_flag_spec
28495 # Library versioning type.
28496 version_type=$version_type
28498 # Format of library name prefix.
28499 libname_spec=$lt_libname_spec
28501 # List of archive names. First name is the real one, the rest are links.
28502 # The last name is the one that the linker finds with -lNAME.
28503 library_names_spec=$lt_library_names_spec
28505 # The coded name of the library, if different from the real name.
28506 soname_spec=$lt_soname_spec
28508 # Commands used to build and install an old-style archive.
28510 old_archive_cmds=$lt_old_archive_cmds
28511 old_postinstall_cmds=$lt_old_postinstall_cmds
28512 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28514 # Create an old-style archive from a shared archive.
28515 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28517 # Create a temporary old-style archive to link instead of a shared archive.
28518 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28520 # Commands used to build and install a shared archive.
28521 archive_cmds=$lt_archive_cmds
28522 archive_expsym_cmds=$lt_archive_expsym_cmds
28523 postinstall_cmds=$lt_postinstall_cmds
28524 postuninstall_cmds=$lt_postuninstall_cmds
28526 # Commands used to build a loadable module (assumed same as above if empty)
28527 module_cmds=$lt_module_cmds
28528 module_expsym_cmds=$lt_module_expsym_cmds
28530 # Commands to strip libraries.
28531 old_striplib=$lt_old_striplib
28532 striplib=$lt_striplib
28534 # Dependencies to place before the objects being linked to create a
28536 predep_objects=$lt_predep_objects
28538 # Dependencies to place after the objects being linked to create a
28540 postdep_objects=$lt_postdep_objects
28542 # Dependencies to place before the objects being linked to create a
28544 predeps=$lt_predeps
28546 # Dependencies to place after the objects being linked to create a
28548 postdeps=$lt_postdeps
28550 # The library search path used internally by the compiler when linking
28551 # a shared library.
28552 compiler_lib_search_path=$lt_compiler_lib_search_path
28554 # Method to check whether dependent libraries are shared objects.
28555 deplibs_check_method=$lt_deplibs_check_method
28557 # Command to use when deplibs_check_method == file_magic.
28558 file_magic_cmd=$lt_file_magic_cmd
28560 # Flag that allows shared libraries with undefined symbols to be built.
28561 allow_undefined_flag=$lt_allow_undefined_flag
28563 # Flag that forces no undefined symbols.
28564 no_undefined_flag=$lt_no_undefined_flag
28566 # Commands used to finish a libtool library installation in a directory.
28567 finish_cmds=$lt_finish_cmds
28569 # Same as above, but a single script fragment to be evaled but not shown.
28570 finish_eval=$lt_finish_eval
28572 # Take the output of nm and produce a listing of raw symbols and C names.
28573 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28575 # Transform the output of nm in a proper C declaration
28576 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28578 # Transform the output of nm in a C name address pair
28579 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28581 # This is the shared library runtime path variable.
28582 runpath_var=$runpath_var
28584 # This is the shared library path variable.
28585 shlibpath_var=$shlibpath_var
28587 # Is shlibpath searched before the hard-coded library search path?
28588 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28590 # How to hardcode a shared library path into an executable.
28591 hardcode_action=$hardcode_action
28593 # Whether we should hardcode library paths into libraries.
28594 hardcode_into_libs=$hardcode_into_libs
28596 # Flag to hardcode \$libdir into a binary during linking.
28597 # This must work even if \$libdir does not exist.
28598 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28600 # If ld is used when linking, flag to hardcode \$libdir into
28601 # a binary during linking. This must work even if \$libdir does
28603 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28605 # Whether we need a single -rpath flag with a separated argument.
28606 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28608 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
28609 # resulting binary.
28610 hardcode_direct=$hardcode_direct
28612 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
28613 # resulting binary.
28614 hardcode_minus_L=$hardcode_minus_L
28616 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
28617 # the resulting binary.
28618 hardcode_shlibpath_var=$hardcode_shlibpath_var
28620 # Set to yes if building a shared library automatically hardcodes DIR into the library
28621 # and all subsequent libraries and executables linked against it.
28622 hardcode_automatic=$hardcode_automatic
28624 # Variables whose values should be saved in libtool wrapper scripts and
28625 # restored at relink time.
28626 variables_saved_for_relink="$variables_saved_for_relink"
28628 # Whether libtool must link a program against all its dependency libraries.
28629 link_all_deplibs=$link_all_deplibs
28631 # Compile-time system search path for libraries
28632 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28634 # Run-time system search path for libraries
28635 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28637 # Fix the shell variable \$srcfile for the compiler.
28638 fix_srcfile_path="$fix_srcfile_path"
28640 # Set to yes if exported symbols are required.
28641 always_export_symbols=$always_export_symbols
28643 # The commands to list exported symbols.
28644 export_symbols_cmds=$lt_export_symbols_cmds
28646 # The commands to extract the exported symbol list from a shared archive.
28647 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28649 # Symbols that should not be listed in the preloaded symbols.
28650 exclude_expsyms=$lt_exclude_expsyms
28652 # Symbols that must always be exported.
28653 include_expsyms=$lt_include_expsyms
28655 # ### END LIBTOOL CONFIG
28662 cat <<\EOF >> "$cfgfile"
28664 # AIX sometimes has problems with the GCC collect2 program. For some
28665 # reason, if we set the COLLECT_NAMES environment variable, the problems
28666 # vanish in a puff of smoke.
28667 if test "X${COLLECT_NAMES+set}" != Xset; then
28669 export COLLECT_NAMES
28675 # We use sed instead of cat because bash on DJGPP gets confused if
28676 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28677 # text mode, it properly converts lines to CR/LF. This bash problem
28678 # is reportedly fixed, but why not run on old versions too?
28679 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
28681 mv -f "$cfgfile" "$ofile" || \
28682 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28686 # If there is no Makefile yet, we rely on a make rule to execute
28687 # `config.status --recheck' to rerun these tests and create the
28688 # libtool script then.
28689 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
28690 if test -f "$ltmain_in"; then
28691 test -f Makefile && make "$ltmain"
28697 ac_cpp='$CPP $CPPFLAGS'
28698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28705 # Check whether --with-tags or --without-tags was given.
28706 if test "${with_tags+set}" = set; then
28707 withval="$with_tags"
28708 tagnames="$withval"
28711 if test -f "$ltmain" && test -n "$tagnames"; then
28712 if test ! -f "${ofile}"; then
28713 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
28714 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
28717 if test -z "$LTCC"; then
28718 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
28719 if test -z "$LTCC"; then
28720 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
28721 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
28723 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
28724 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
28728 # Extract list of available tagged configurations in $ofile.
28729 # Note that this assumes the entire list is on one line.
28730 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
28732 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
28733 for tagname in $tagnames; do
28735 # Check whether tagname contains only valid characters
28736 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
28738 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
28739 echo "$as_me: error: invalid tag name: $tagname" >&2;}
28740 { (exit 1); exit 1; }; }
28744 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
28746 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
28747 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
28748 { (exit 1); exit 1; }; }
28751 # Update the list of available tags.
28752 if test -n "$tagname"; then
28753 echo appending configuration tag \"$tagname\" to $ofile
28757 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
28758 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
28759 (test "X$CXX" != "Xg++"))) ; then
28761 ac_cpp='$CXXCPP $CPPFLAGS'
28762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28769 archive_cmds_need_lc_CXX=no
28770 allow_undefined_flag_CXX=
28771 always_export_symbols_CXX=no
28772 archive_expsym_cmds_CXX=
28773 export_dynamic_flag_spec_CXX=
28774 hardcode_direct_CXX=no
28775 hardcode_libdir_flag_spec_CXX=
28776 hardcode_libdir_flag_spec_ld_CXX=
28777 hardcode_libdir_separator_CXX=
28778 hardcode_minus_L_CXX=no
28779 hardcode_automatic_CXX=no
28781 module_expsym_cmds_CXX=
28782 link_all_deplibs_CXX=unknown
28783 old_archive_cmds_CXX=$old_archive_cmds
28784 no_undefined_flag_CXX=
28785 whole_archive_flag_spec_CXX=
28786 enable_shared_with_static_runtimes_CXX=no
28788 # Dependencies to place before and after the object being linked:
28789 predep_objects_CXX=
28790 postdep_objects_CXX=
28793 compiler_lib_search_path_CXX=
28795 # Source file extension for C++ test sources.
28798 # Object file extension for compiled C++ test sources.
28802 # Code to be used in simple compile tests
28803 lt_simple_compile_test_code="int some_variable = 0;\n"
28805 # Code to be used in simple link tests
28806 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
28808 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
28810 # If no C compiler was specified, use CC.
28813 # Allow CC to be a program name with arguments.
28817 # save warnings/boilerplate of simple test code
28818 ac_outfile=conftest.$ac_objext
28819 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
28820 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
28821 _lt_compiler_boilerplate=`cat conftest.err`
28824 ac_outfile=conftest.$ac_objext
28825 printf "$lt_simple_link_test_code" >conftest.$ac_ext
28826 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
28827 _lt_linker_boilerplate=`cat conftest.err`
28831 # Allow CC to be a program name with arguments.
28836 lt_save_with_gnu_ld=$with_gnu_ld
28837 lt_save_path_LD=$lt_cv_path_LD
28838 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
28839 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
28841 unset lt_cv_prog_gnu_ld
28843 if test -n "${lt_cv_path_LDCXX+set}"; then
28844 lt_cv_path_LD=$lt_cv_path_LDCXX
28846 unset lt_cv_path_LD
28848 test -z "${LDCXX+set}" || LD=$LDCXX
28852 for cc_temp in $compiler""; do
28854 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
28855 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
28860 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
28863 # We don't want -fno-exception wen compiling C++ code, so set the
28864 # no_builtin_flag separately
28865 if test "$GXX" = yes; then
28866 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
28868 lt_prog_compiler_no_builtin_flag_CXX=
28871 if test "$GXX" = yes; then
28872 # Set up default GNU C++ configuration
28875 # Check whether --with-gnu-ld or --without-gnu-ld was given.
28876 if test "${with_gnu_ld+set}" = set; then
28877 withval="$with_gnu_ld"
28878 test "$withval" = no || with_gnu_ld=yes
28883 if test "$GCC" = yes; then
28884 # Check if gcc -print-prog-name=ld gives a path.
28885 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
28886 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
28889 # gcc leaves a trailing carriage return which upsets mingw
28890 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
28892 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
28895 # Accept absolute paths.
28897 re_direlt='/[^/][^/]*/\.\./'
28898 # Canonicalize the pathname of ld
28899 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
28900 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
28901 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
28903 test -z "$LD" && LD="$ac_prog"
28906 # If it fails, then pretend we aren't using GCC.
28910 # If it is relative, then search for the first ld in PATH.
28911 with_gnu_ld=unknown
28914 elif test "$with_gnu_ld" = yes; then
28915 echo "$as_me:$LINENO: checking for GNU ld" >&5
28916 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
28918 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
28919 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
28921 if test "${lt_cv_path_LD+set}" = set; then
28922 echo $ECHO_N "(cached) $ECHO_C" >&6
28924 if test -z "$LD"; then
28925 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
28926 for ac_dir in $PATH; do
28928 test -z "$ac_dir" && ac_dir=.
28929 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
28930 lt_cv_path_LD="$ac_dir/$ac_prog"
28931 # Check to see if the program is GNU ld. I'd rather use --version,
28932 # but apparently some variants of GNU ld only accept -v.
28933 # Break only if it was the GNU/non-GNU ld that we prefer.
28934 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
28935 *GNU* | *'with BFD'*)
28936 test "$with_gnu_ld" != no && break
28939 test "$with_gnu_ld" != yes && break
28946 lt_cv_path_LD="$LD" # Let the user override the test with a path.
28950 LD="$lt_cv_path_LD"
28951 if test -n "$LD"; then
28952 echo "$as_me:$LINENO: result: $LD" >&5
28953 echo "${ECHO_T}$LD" >&6
28955 echo "$as_me:$LINENO: result: no" >&5
28956 echo "${ECHO_T}no" >&6
28958 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
28959 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
28960 { (exit 1); exit 1; }; }
28961 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
28962 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
28963 if test "${lt_cv_prog_gnu_ld+set}" = set; then
28964 echo $ECHO_N "(cached) $ECHO_C" >&6
28966 # I'd rather use --version here, but apparently some GNU lds only accept -v.
28967 case `$LD -v 2>&1 </dev/null` in
28968 *GNU* | *'with BFD'*)
28969 lt_cv_prog_gnu_ld=yes
28972 lt_cv_prog_gnu_ld=no
28976 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
28977 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
28978 with_gnu_ld=$lt_cv_prog_gnu_ld
28982 # Check if GNU C++ uses GNU ld as the underlying linker, since the
28983 # archiving commands below assume that GNU ld is being used.
28984 if test "$with_gnu_ld" = yes; then
28985 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
28986 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
28988 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
28989 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
28991 # If archive_cmds runs LD, not CC, wlarc should be empty
28992 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
28993 # investigate it a little bit more. (MM)
28996 # ancient GNU ld didn't support --whole-archive et. al.
28997 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
28998 grep 'no-whole-archive' > /dev/null; then
28999 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
29001 whole_archive_flag_spec_CXX=
29007 # A generic and very simple default shared library creation
29008 # command for GNU C++ for the case where it uses the native
29009 # linker, instead of GNU ld. If possible, this setting should
29010 # overridden to take advantage of the native linker features on
29011 # the platform it is being used on.
29012 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
29015 # Commands to make compiler produce verbose output that lists
29016 # what "hidden" libraries, object files and flags are used when
29017 # linking a shared library.
29018 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
29026 # PORTME: fill in a description of your system's C++ link characteristics
29027 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
29028 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
29032 # FIXME: insert proper C++ library support
29036 if test "$host_cpu" = ia64; then
29037 # On IA64, the linker does run time linking by default, so we don't
29038 # have to do anything special.
29039 aix_use_runtimelinking=no
29040 exp_sym_flag='-Bexport'
29043 aix_use_runtimelinking=no
29045 # Test if we are trying to use run time linking or normal
29046 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
29047 # need to do runtime linking.
29048 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
29049 for ld_flag in $LDFLAGS; do
29052 aix_use_runtimelinking=yes
29059 exp_sym_flag='-bexport'
29060 no_entry_flag='-bnoentry'
29063 # When large executables or shared objects are built, AIX ld can
29064 # have problems creating the table of contents. If linking a library
29065 # or program results in "error TOC overflow" add -mminimal-toc to
29066 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
29067 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
29069 archive_cmds_CXX=''
29070 hardcode_direct_CXX=yes
29071 hardcode_libdir_separator_CXX=':'
29072 link_all_deplibs_CXX=yes
29074 if test "$GXX" = yes; then
29075 case $host_os in aix4.[012]|aix4.[012].*)
29076 # We only want to do this on AIX 4.2 and lower, the check
29077 # below for broken collect2 doesn't work under 4.3+
29078 collect2name=`${CC} -print-prog-name=collect2`
29079 if test -f "$collect2name" && \
29080 strings "$collect2name" | grep resolve_lib_name >/dev/null
29082 # We have reworked collect2
29083 hardcode_direct_CXX=yes
29085 # We have old collect2
29086 hardcode_direct_CXX=unsupported
29087 # It fails to find uninstalled libraries when the uninstalled
29088 # path is not listed in the libpath. Setting hardcode_minus_L
29089 # to unsupported forces relinking
29090 hardcode_minus_L_CXX=yes
29091 hardcode_libdir_flag_spec_CXX='-L$libdir'
29092 hardcode_libdir_separator_CXX=
29095 shared_flag='-shared'
29096 if test "$aix_use_runtimelinking" = yes; then
29097 shared_flag="$shared_flag "'${wl}-G'
29101 if test "$host_cpu" = ia64; then
29102 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
29103 # chokes on -Wl,-G. The following line is correct:
29106 if test "$aix_use_runtimelinking" = yes; then
29107 shared_flag='${wl}-G'
29109 shared_flag='${wl}-bM:SRE'
29114 # It seems that -bexpall does not export symbols beginning with
29115 # underscore (_), so it is better to generate a list of symbols to export.
29116 always_export_symbols_CXX=yes
29117 if test "$aix_use_runtimelinking" = yes; then
29118 # Warning - without using the other runtime loading flags (-brtl),
29119 # -berok will link without error, but may produce a broken library.
29120 allow_undefined_flag_CXX='-berok'
29121 # Determine the default libpath from the value encoded in an empty executable.
29122 cat >conftest.$ac_ext <<_ACEOF
29125 cat confdefs.h >>conftest.$ac_ext
29126 cat >>conftest.$ac_ext <<_ACEOF
29127 /* end confdefs.h. */
29137 rm -f conftest.$ac_objext conftest$ac_exeext
29138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29139 (eval $ac_link) 2>conftest.er1
29141 grep -v '^ *+' conftest.er1 >conftest.err
29143 cat conftest.err >&5
29144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29145 (exit $ac_status); } &&
29146 { ac_try='test -z "$ac_cxx_werror_flag"
29147 || test ! -s conftest.err'
29148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29149 (eval $ac_try) 2>&5
29151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29152 (exit $ac_status); }; } &&
29153 { ac_try='test -s conftest$ac_exeext'
29154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29155 (eval $ac_try) 2>&5
29157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29158 (exit $ac_status); }; }; then
29160 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
29162 # Check for a 64-bit object if we didn't find anything.
29163 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
29166 echo "$as_me: failed program was:" >&5
29167 sed 's/^/| /' conftest.$ac_ext >&5
29170 rm -f conftest.err conftest.$ac_objext \
29171 conftest$ac_exeext conftest.$ac_ext
29172 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
29174 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
29176 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
29178 if test "$host_cpu" = ia64; then
29179 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
29180 allow_undefined_flag_CXX="-z nodefs"
29181 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
29183 # Determine the default libpath from the value encoded in an empty executable.
29184 cat >conftest.$ac_ext <<_ACEOF
29187 cat confdefs.h >>conftest.$ac_ext
29188 cat >>conftest.$ac_ext <<_ACEOF
29189 /* end confdefs.h. */
29199 rm -f conftest.$ac_objext conftest$ac_exeext
29200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29201 (eval $ac_link) 2>conftest.er1
29203 grep -v '^ *+' conftest.er1 >conftest.err
29205 cat conftest.err >&5
29206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29207 (exit $ac_status); } &&
29208 { ac_try='test -z "$ac_cxx_werror_flag"
29209 || test ! -s conftest.err'
29210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29211 (eval $ac_try) 2>&5
29213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214 (exit $ac_status); }; } &&
29215 { ac_try='test -s conftest$ac_exeext'
29216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29217 (eval $ac_try) 2>&5
29219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29220 (exit $ac_status); }; }; then
29222 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
29224 # Check for a 64-bit object if we didn't find anything.
29225 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
29228 echo "$as_me: failed program was:" >&5
29229 sed 's/^/| /' conftest.$ac_ext >&5
29232 rm -f conftest.err conftest.$ac_objext \
29233 conftest$ac_exeext conftest.$ac_ext
29234 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
29236 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
29237 # Warning - without using the other run time loading flags,
29238 # -berok will link without error, but may produce a broken library.
29239 no_undefined_flag_CXX=' ${wl}-bernotok'
29240 allow_undefined_flag_CXX=' ${wl}-berok'
29241 # -bexpall does not export symbols beginning with underscore (_)
29242 always_export_symbols_CXX=yes
29243 # Exported symbols can be pulled into shared objects from archives
29244 whole_archive_flag_spec_CXX=' '
29245 archive_cmds_need_lc_CXX=yes
29246 # This is similar to how AIX traditionally builds its shared libraries.
29247 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
29252 case $cc_basename in
29254 # FIXME: insert proper C++ library support
29261 cygwin* | mingw* | pw32*)
29262 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
29263 # as there is no search path for DLLs.
29264 hardcode_libdir_flag_spec_CXX='-L$libdir'
29265 allow_undefined_flag_CXX=unsupported
29266 always_export_symbols_CXX=no
29267 enable_shared_with_static_runtimes_CXX=yes
29269 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
29270 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
29271 # If the export-symbols file already is a .def file (1st line
29272 # is EXPORTS), use it as is; otherwise, prepend...
29273 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
29274 cp $export_symbols $output_objdir/$soname.def;
29276 echo EXPORTS > $output_objdir/$soname.def;
29277 cat $export_symbols >> $output_objdir/$soname.def;
29279 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
29284 darwin* | rhapsody*)
29286 rhapsody* | darwin1.[012])
29287 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
29290 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
29291 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
29293 case ${MACOSX_DEPLOYMENT_TARGET} in
29295 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
29298 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
29304 archive_cmds_need_lc_CXX=no
29305 hardcode_direct_CXX=no
29306 hardcode_automatic_CXX=yes
29307 hardcode_shlibpath_var_CXX=unsupported
29308 whole_archive_flag_spec_CXX=''
29309 link_all_deplibs_CXX=yes
29311 if test "$GXX" = yes ; then
29312 lt_int_apple_cc_single_mod=no
29313 output_verbose_link_cmd='echo'
29314 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
29315 lt_int_apple_cc_single_mod=yes
29317 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
29318 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
29320 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
29322 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
29323 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
29324 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
29325 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
29327 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
29329 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
29331 case $cc_basename in
29333 output_verbose_link_cmd='echo'
29334 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
29335 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
29336 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
29337 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
29338 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
29348 case $cc_basename in
29350 # FIXME: insert proper C++ library support
29354 # Green Hills C++ Compiler
29355 # FIXME: insert proper C++ library support
29359 # FIXME: insert proper C++ library support
29365 # C++ shared libraries reported to be fairly broken before switch to ELF
29369 archive_cmds_need_lc_CXX=no
29371 freebsd* | kfreebsd*-gnu | dragonfly*)
29372 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
29379 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
29380 hardcode_libdir_separator_CXX=:
29381 export_dynamic_flag_spec_CXX='${wl}-E'
29382 hardcode_direct_CXX=yes
29383 hardcode_minus_L_CXX=yes # Not in the search PATH,
29384 # but as the default
29385 # location of the library.
29387 case $cc_basename in
29389 # FIXME: insert proper C++ library support
29393 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
29394 # Commands to make compiler produce verbose output that lists
29395 # what "hidden" libraries, object files and flags are used when
29396 # linking a shared library.
29398 # There doesn't appear to be a way to prevent this compiler from
29399 # explicitly linking system object files so we need to strip them
29400 # from the output so that they don't get included in the library
29402 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
29405 if test "$GXX" = yes; then
29406 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
29408 # FIXME: insert proper C++ library support
29415 if test $with_gnu_ld = no; then
29418 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
29419 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
29420 hardcode_libdir_separator_CXX=:
29423 hardcode_libdir_flag_spec_CXX='-L$libdir'
29426 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
29427 hardcode_libdir_separator_CXX=:
29428 export_dynamic_flag_spec_CXX='${wl}-E'
29434 hardcode_direct_CXX=no
29435 hardcode_shlibpath_var_CXX=no
29438 hardcode_direct_CXX=no
29439 hardcode_shlibpath_var_CXX=no
29440 hardcode_minus_L_CXX=yes # Not in the search PATH,
29441 # but as the default
29442 # location of the library.
29445 hardcode_direct_CXX=yes
29446 hardcode_minus_L_CXX=yes # Not in the search PATH,
29447 # but as the default
29448 # location of the library.
29452 case $cc_basename in
29454 # FIXME: insert proper C++ library support
29460 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
29463 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
29466 # Commands to make compiler produce verbose output that lists
29467 # what "hidden" libraries, object files and flags are used when
29468 # linking a shared library.
29470 # There doesn't appear to be a way to prevent this compiler from
29471 # explicitly linking system object files so we need to strip them
29472 # from the output so that they don't get included in the library
29474 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
29477 if test "$GXX" = yes; then
29478 if test $with_gnu_ld = no; then
29481 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
29484 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
29489 # FIXME: insert proper C++ library support
29496 case $cc_basename in
29499 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
29501 # Archives containing C++ object files must be created using
29502 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
29503 # necessary to make sure instantiated templates are included
29505 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
29508 if test "$GXX" = yes; then
29509 if test "$with_gnu_ld" = no; then
29510 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
29512 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
29515 link_all_deplibs_CXX=yes
29518 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
29519 hardcode_libdir_separator_CXX=:
29522 case $cc_basename in
29524 # Kuck and Associates, Inc. (KAI) C++ Compiler
29526 # KCC will only create a shared library if the output file
29527 # ends with ".so" (or ".sl" for HP-UX), so rename the library
29528 # to its proper name (with version) after linking.
29529 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
29530 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
29531 # Commands to make compiler produce verbose output that lists
29532 # what "hidden" libraries, object files and flags are used when
29533 # linking a shared library.
29535 # There doesn't appear to be a way to prevent this compiler from
29536 # explicitly linking system object files so we need to strip them
29537 # from the output so that they don't get included in the library
29539 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
29541 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
29542 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
29544 # Archives containing C++ object files must be created using
29545 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
29546 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
29551 # version 8.0 and above of icpc choke on multiply defined symbols
29552 # if we add $predep_objects and $postdep_objects, however 7.1 and
29553 # earlier do not add the objects themselves.
29554 case `$CC -V 2>&1` in
29556 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
29557 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
29559 *) # Version 8.0 or newer
29562 ia64*) tmp_idyn=' -i_dynamic';;
29564 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
29565 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
29568 archive_cmds_need_lc_CXX=no
29569 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
29570 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
29571 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
29574 # Portland Group C++ compiler
29575 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
29576 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
29578 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
29579 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
29580 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
29584 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
29585 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
29587 runpath_var=LD_RUN_PATH
29588 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
29589 hardcode_libdir_separator_CXX=:
29591 # Commands to make compiler produce verbose output that lists
29592 # what "hidden" libraries, object files and flags are used when
29593 # linking a shared library.
29595 # There doesn't appear to be a way to prevent this compiler from
29596 # explicitly linking system object files so we need to strip them
29597 # from the output so that they don't get included in the library
29599 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
29604 # FIXME: insert proper C++ library support
29608 # FIXME: insert proper C++ library support
29612 case $cc_basename in
29614 # FIXME: insert proper C++ library support
29618 # FIXME: insert proper C++ library support
29624 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
29625 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
29627 hardcode_libdir_flag_spec_CXX='-R$libdir'
29628 hardcode_direct_CXX=yes
29629 hardcode_shlibpath_var_CXX=no
29631 # Workaround some broken pre-1.5 toolchains
29632 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
29635 # C++ shared libraries are fairly broken
29639 hardcode_direct_CXX=yes
29640 hardcode_shlibpath_var_CXX=no
29641 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
29642 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
29643 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
29644 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
29645 export_dynamic_flag_spec_CXX='${wl}-E'
29646 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
29648 output_verbose_link_cmd='echo'
29651 case $cc_basename in
29653 # Kuck and Associates, Inc. (KAI) C++ Compiler
29655 # KCC will only create a shared library if the output file
29656 # ends with ".so" (or ".sl" for HP-UX), so rename the library
29657 # to its proper name (with version) after linking.
29658 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
29660 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
29661 hardcode_libdir_separator_CXX=:
29663 # Archives containing C++ object files must be created using
29664 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
29665 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
29669 # Rational C++ 2.4.1
29670 # FIXME: insert proper C++ library support
29674 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
29675 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
29677 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
29678 hardcode_libdir_separator_CXX=:
29680 # Commands to make compiler produce verbose output that lists
29681 # what "hidden" libraries, object files and flags are used when
29682 # linking a shared library.
29684 # There doesn't appear to be a way to prevent this compiler from
29685 # explicitly linking system object files so we need to strip them
29686 # from the output so that they don't get included in the library
29688 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
29691 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
29692 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
29693 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
29695 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
29696 hardcode_libdir_separator_CXX=:
29698 # Commands to make compiler produce verbose output that lists
29699 # what "hidden" libraries, object files and flags are used when
29700 # linking a shared library.
29701 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
29704 # FIXME: insert proper C++ library support
29711 case $cc_basename in
29713 # Kuck and Associates, Inc. (KAI) C++ Compiler
29715 # KCC will only create a shared library if the output file
29716 # ends with ".so" (or ".sl" for HP-UX), so rename the library
29717 # to its proper name (with version) after linking.
29718 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
29720 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
29721 hardcode_libdir_separator_CXX=:
29723 # Archives containing C++ object files must be created using
29724 # the KAI C++ compiler.
29725 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
29728 # Rational C++ 2.4.1
29729 # FIXME: insert proper C++ library support
29733 allow_undefined_flag_CXX=' -expect_unresolved \*'
29734 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
29735 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
29736 echo "-hidden">> $lib.exp~
29737 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
29740 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
29741 hardcode_libdir_separator_CXX=:
29743 # Commands to make compiler produce verbose output that lists
29744 # what "hidden" libraries, object files and flags are used when
29745 # linking a shared library.
29747 # There doesn't appear to be a way to prevent this compiler from
29748 # explicitly linking system object files so we need to strip them
29749 # from the output so that they don't get included in the library
29751 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
29754 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
29755 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
29756 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
29758 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
29759 hardcode_libdir_separator_CXX=:
29761 # Commands to make compiler produce verbose output that lists
29762 # what "hidden" libraries, object files and flags are used when
29763 # linking a shared library.
29764 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
29767 # FIXME: insert proper C++ library support
29774 # FIXME: insert proper C++ library support
29778 archive_cmds_need_lc_CXX=no
29779 case $cc_basename in
29781 # FIXME: insert proper C++ library support
29785 # FIXME: insert proper C++ library support
29791 case $cc_basename in
29794 # FIXME: insert proper C++ library support
29799 # FIXME: insert proper C++ library support
29803 # FIXME: insert proper C++ library support
29809 case $cc_basename in
29811 # Sun C++ 4.2, 5.x and Centerline C++
29812 archive_cmds_need_lc_CXX=yes
29813 no_undefined_flag_CXX=' -zdefs'
29814 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
29815 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
29816 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
29818 hardcode_libdir_flag_spec_CXX='-R$libdir'
29819 hardcode_shlibpath_var_CXX=no
29821 solaris2.[0-5] | solaris2.[0-5].*) ;;
29823 # The C++ compiler is used as linker so we must use $wl
29824 # flag to pass the commands to the underlying system
29825 # linker. We must also pass each convience library through
29826 # to the system linker between allextract/defaultextract.
29827 # The C++ compiler will combine linker options so we
29828 # cannot just pass the convience library names through
29830 # Supported since Solaris 2.6 (maybe 2.5.1?)
29831 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
29834 link_all_deplibs_CXX=yes
29836 output_verbose_link_cmd='echo'
29838 # Archives containing C++ object files must be created using
29839 # "CC -xar", where "CC" is the Sun C++ compiler. This is
29840 # necessary to make sure instantiated templates are included
29842 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
29845 # Green Hills C++ Compiler
29846 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
29848 # The C++ compiler must be used to create the archive.
29849 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
29852 # GNU C++ compiler with Solaris linker
29853 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
29854 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
29855 if $CC --version | grep -v '^2\.7' > /dev/null; then
29856 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
29857 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
29858 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
29860 # Commands to make compiler produce verbose output that lists
29861 # what "hidden" libraries, object files and flags are used when
29862 # linking a shared library.
29863 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
29865 # g++ 2.7 appears to require `-G' NOT `-shared' on this
29867 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
29868 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
29869 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
29871 # Commands to make compiler produce verbose output that lists
29872 # what "hidden" libraries, object files and flags are used when
29873 # linking a shared library.
29874 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
29877 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
29882 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
29883 archive_cmds_need_lc_CXX=no
29886 case $cc_basename in
29888 # NonStop-UX NCC 3.20
29889 # FIXME: insert proper C++ library support
29893 # FIXME: insert proper C++ library support
29899 # FIXME: insert proper C++ library support
29903 # FIXME: insert proper C++ library support
29907 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
29908 echo "${ECHO_T}$ld_shlibs_CXX" >&6
29909 test "$ld_shlibs_CXX" = no && can_build_shared=no
29915 ## There is no encapsulation within the following macros, do not change
29916 ## the running order or otherwise move them around unless you know exactly
29917 ## what you are doing...
29919 cat > conftest.$ac_ext <<EOF
29923 Foo (void) { a = 0; }
29929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29930 (eval $ac_compile) 2>&5
29932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29933 (exit $ac_status); }; then
29934 # Parse the compiler output and extract the necessary
29935 # objects, libraries and library flags.
29937 # Sentinel used to keep track of whether or not we are before
29938 # the conftest object file.
29939 pre_test_object_deps_done=no
29941 # The `*' in the case matches for architectures that use `case' in
29942 # $output_verbose_cmd can trigger glob expansion during the loop
29943 # eval without this substitution.
29944 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
29946 for p in `eval $output_verbose_link_cmd`; do
29950 # Some compilers place space between "-{L,R}" and the path.
29951 # Remove the space.
29952 if test $p = "-L" \
29953 || test $p = "-R"; then
29960 if test "$pre_test_object_deps_done" = no; then
29963 # Internal compiler library paths should come after those
29964 # provided the user. The postdeps already come after the
29965 # user supplied libs so there is no need to process them.
29966 if test -z "$compiler_lib_search_path_CXX"; then
29967 compiler_lib_search_path_CXX="${prev}${p}"
29969 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
29972 # The "-l" case would never come before the object being
29973 # linked, so don't bother handling this case.
29976 if test -z "$postdeps_CXX"; then
29977 postdeps_CXX="${prev}${p}"
29979 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
29985 # This assumes that the test object file only shows up
29986 # once in the compiler output.
29987 if test "$p" = "conftest.$objext"; then
29988 pre_test_object_deps_done=yes
29992 if test "$pre_test_object_deps_done" = no; then
29993 if test -z "$predep_objects_CXX"; then
29994 predep_objects_CXX="$p"
29996 predep_objects_CXX="$predep_objects_CXX $p"
29999 if test -z "$postdep_objects_CXX"; then
30000 postdep_objects_CXX="$p"
30002 postdep_objects_CXX="$postdep_objects_CXX $p"
30007 *) ;; # Ignore the rest.
30015 echo "libtool.m4: error: problem compiling CXX test program"
30018 $rm -f confest.$objext
30020 # PORTME: override above test on systems where it is broken
30023 case $cc_basename in
30025 # Adding this requires a known-good setup of shared libraries for
30026 # Sun compiler versions before 5.6, else PIC objects from an old
30027 # archive will be linked into the output, leading to subtle bugs.
30028 postdeps_CXX='-lCstd -lCrun'
30034 case " $postdeps_CXX " in
30035 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
30038 lt_prog_compiler_wl_CXX=
30039 lt_prog_compiler_pic_CXX=
30040 lt_prog_compiler_static_CXX=
30042 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
30043 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
30045 # C++ specific cases for pic, static, wl, etc.
30046 if test "$GXX" = yes; then
30047 lt_prog_compiler_wl_CXX='-Wl,'
30048 lt_prog_compiler_static_CXX='-static'
30052 # All AIX code is PIC.
30053 if test "$host_cpu" = ia64; then
30054 # AIX 5 now supports IA64 processor
30055 lt_prog_compiler_static_CXX='-Bstatic'
30059 # FIXME: we need at least 68020 code to build shared libraries, but
30060 # adding the `-m68020' flag to GCC prevents building anything better,
30062 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
30064 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
30065 # PIC is the default for these OSes.
30067 mingw* | os2* | pw32*)
30068 # This hack is so that the source file can tell whether it is being
30069 # built for inclusion in a dll (and should export symbols for example).
30070 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
30072 darwin* | rhapsody*)
30073 # PIC is the default on this platform
30074 # Common symbols not allowed in MH_DYLIB files
30075 lt_prog_compiler_pic_CXX='-fno-common'
30078 # DJGPP does not support shared libraries at all
30079 lt_prog_compiler_pic_CXX=
30082 if test -d /usr/nec; then
30083 lt_prog_compiler_pic_CXX=-Kconform_pic
30087 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
30088 # not for PA HP-UX.
30093 lt_prog_compiler_pic_CXX='-fPIC'
30098 lt_prog_compiler_pic_CXX='-fPIC'
30104 # All AIX code is PIC.
30105 if test "$host_cpu" = ia64; then
30106 # AIX 5 now supports IA64 processor
30107 lt_prog_compiler_static_CXX='-Bstatic'
30109 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
30113 case $cc_basename in
30115 # Green Hills C++ Compiler
30116 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
30121 # PIC is the default on this platform
30122 # Common symbols not allowed in MH_DYLIB files
30123 case $cc_basename in
30125 lt_prog_compiler_pic_CXX='-qnocommon'
30126 lt_prog_compiler_wl_CXX='-Wl,'
30131 case $cc_basename in
30133 lt_prog_compiler_pic_CXX='-KPIC'
30136 # Green Hills C++ Compiler
30137 lt_prog_compiler_pic_CXX='-pic'
30143 freebsd* | kfreebsd*-gnu | dragonfly*)
30144 # FreeBSD uses GNU C++
30146 hpux9* | hpux10* | hpux11*)
30147 case $cc_basename in
30149 lt_prog_compiler_wl_CXX='-Wl,'
30150 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
30151 if test "$host_cpu" != ia64; then
30152 lt_prog_compiler_pic_CXX='+Z'
30156 lt_prog_compiler_wl_CXX='-Wl,'
30157 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
30163 lt_prog_compiler_pic_CXX='+Z'
30171 irix5* | irix6* | nonstopux*)
30172 case $cc_basename in
30174 lt_prog_compiler_wl_CXX='-Wl,'
30175 lt_prog_compiler_static_CXX='-non_shared'
30176 # CC pic flag -KPIC is the default.
30183 case $cc_basename in
30186 lt_prog_compiler_wl_CXX='--backend -Wl,'
30187 lt_prog_compiler_pic_CXX='-fPIC'
30191 lt_prog_compiler_wl_CXX='-Wl,'
30192 lt_prog_compiler_pic_CXX='-KPIC'
30193 lt_prog_compiler_static_CXX='-static'
30196 # Portland Group C++ compiler.
30197 lt_prog_compiler_wl_CXX='-Wl,'
30198 lt_prog_compiler_pic_CXX='-fpic'
30199 lt_prog_compiler_static_CXX='-Bstatic'
30203 # Make sure the PIC flag is empty. It appears that all Alpha
30204 # Linux and Compaq Tru64 Unix objects are PIC.
30205 lt_prog_compiler_pic_CXX=
30206 lt_prog_compiler_static_CXX='-non_shared'
30217 case $cc_basename in
30219 lt_prog_compiler_pic_CXX='-W c,exportall'
30227 osf3* | osf4* | osf5*)
30228 case $cc_basename in
30230 lt_prog_compiler_wl_CXX='--backend -Wl,'
30233 # Rational C++ 2.4.1
30234 lt_prog_compiler_pic_CXX='-pic'
30237 # Digital/Compaq C++
30238 lt_prog_compiler_wl_CXX='-Wl,'
30239 # Make sure the PIC flag is empty. It appears that all Alpha
30240 # Linux and Compaq Tru64 Unix objects are PIC.
30241 lt_prog_compiler_pic_CXX=
30242 lt_prog_compiler_static_CXX='-non_shared'
30251 case $cc_basename in
30253 lt_prog_compiler_pic_CXX='-fPIC'
30260 case $cc_basename in
30262 # Sun C++ 4.2, 5.x and Centerline C++
30263 lt_prog_compiler_pic_CXX='-KPIC'
30264 lt_prog_compiler_static_CXX='-Bstatic'
30265 lt_prog_compiler_wl_CXX='-Qoption ld '
30268 # Green Hills C++ Compiler
30269 lt_prog_compiler_pic_CXX='-PIC'
30276 case $cc_basename in
30279 lt_prog_compiler_pic_CXX='-pic'
30280 lt_prog_compiler_static_CXX='-Bstatic'
30284 lt_prog_compiler_pic_CXX='-pic'
30291 case $cc_basename in
30293 # NonStop-UX NCC 3.20
30294 lt_prog_compiler_pic_CXX='-KPIC'
30305 lt_prog_compiler_can_build_shared_CXX=no
30310 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
30311 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
30314 # Check to make sure the PIC flag actually works.
30316 if test -n "$lt_prog_compiler_pic_CXX"; then
30318 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
30319 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
30320 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
30321 echo $ECHO_N "(cached) $ECHO_C" >&6
30323 lt_prog_compiler_pic_works_CXX=no
30324 ac_outfile=conftest.$ac_objext
30325 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
30326 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
30327 # Insert the option either (1) after the last *FLAGS variable, or
30328 # (2) before a word containing "conftest.", or (3) at the end.
30329 # Note that $ac_compile itself does not contain backslashes and begins
30330 # with a dollar sign (not a hyphen), so the echo should work correctly.
30331 # The option is referenced via a variable to avoid confusing sed.
30332 lt_compile=`echo "$ac_compile" | $SED \
30333 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
30334 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
30335 -e 's:$: $lt_compiler_flag:'`
30336 (eval echo "\"\$as_me:30336: $lt_compile\"" >&5)
30337 (eval "$lt_compile" 2>conftest.err)
30339 cat conftest.err >&5
30340 echo "$as_me:30340: \$? = $ac_status" >&5
30341 if (exit $ac_status) && test -s "$ac_outfile"; then
30342 # The compiler can only warn and ignore the option if not recognized
30343 # So say no if there are warnings other than the usual output.
30344 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
30345 $SED '/^$/d' conftest.err >conftest.er2
30346 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
30347 lt_prog_compiler_pic_works_CXX=yes
30353 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
30354 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
30356 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
30357 case $lt_prog_compiler_pic_CXX in
30359 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
30362 lt_prog_compiler_pic_CXX=
30363 lt_prog_compiler_can_build_shared_CXX=no
30368 # For platforms which do not support PIC, -DPIC is meaningless:
30370 lt_prog_compiler_pic_CXX=
30373 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
30377 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
30378 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
30379 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
30380 echo $ECHO_N "(cached) $ECHO_C" >&6
30382 lt_cv_prog_compiler_c_o_CXX=no
30383 $rm -r conftest 2>/dev/null
30387 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
30389 lt_compiler_flag="-o out/conftest2.$ac_objext"
30390 # Insert the option either (1) after the last *FLAGS variable, or
30391 # (2) before a word containing "conftest.", or (3) at the end.
30392 # Note that $ac_compile itself does not contain backslashes and begins
30393 # with a dollar sign (not a hyphen), so the echo should work correctly.
30394 lt_compile=`echo "$ac_compile" | $SED \
30395 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
30396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
30397 -e 's:$: $lt_compiler_flag:'`
30398 (eval echo "\"\$as_me:30398: $lt_compile\"" >&5)
30399 (eval "$lt_compile" 2>out/conftest.err)
30401 cat out/conftest.err >&5
30402 echo "$as_me:30402: \$? = $ac_status" >&5
30403 if (exit $ac_status) && test -s out/conftest2.$ac_objext
30405 # The compiler can only warn and ignore the option if not recognized
30406 # So say no if there are warnings
30407 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
30408 $SED '/^$/d' out/conftest.err >out/conftest.er2
30409 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
30410 lt_cv_prog_compiler_c_o_CXX=yes
30415 # SGI C++ compiler will create directory out/ii_files/ for
30416 # template instantiation
30417 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
30418 $rm out/* && rmdir out
30424 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
30425 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
30428 hard_links="nottested"
30429 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
30430 # do not overwrite the value of need_locks provided by the user
30431 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
30432 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
30435 ln conftest.a conftest.b 2>/dev/null && hard_links=no
30437 ln conftest.a conftest.b 2>&5 || hard_links=no
30438 ln conftest.a conftest.b 2>/dev/null && hard_links=no
30439 echo "$as_me:$LINENO: result: $hard_links" >&5
30440 echo "${ECHO_T}$hard_links" >&6
30441 if test "$hard_links" = no; then
30442 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
30443 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
30450 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
30451 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
30453 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
30456 # If we're using GNU nm, then we don't want the "-C" option.
30457 # -C means demangle to AIX nm, but means don't demangle with GNU nm
30458 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
30459 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
30461 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
30465 export_symbols_cmds_CXX="$ltdll_cmds"
30468 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
30471 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
30475 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
30476 echo "${ECHO_T}$ld_shlibs_CXX" >&6
30477 test "$ld_shlibs_CXX" = no && can_build_shared=no
30479 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
30480 if test "$GCC" = yes; then
30481 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
30485 # Do we need to explicitly link libc?
30487 case "x$archive_cmds_need_lc_CXX" in
30489 # Assume -lc should be added
30490 archive_cmds_need_lc_CXX=yes
30492 if test "$enable_shared" = yes && test "$GCC" = yes; then
30493 case $archive_cmds_CXX in
30495 # FIXME: we may have to deal with multi-command sequences.
30498 # Test whether the compiler implicitly links with -lc since on some
30499 # systems, -lgcc has to come before -lc. If gcc already passes -lc
30500 # to ld, don't add -lc before -lgcc.
30501 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
30502 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
30504 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
30506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30507 (eval $ac_compile) 2>&5
30509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30510 (exit $ac_status); } 2>conftest.err; then
30513 libobjs=conftest.$ac_objext
30515 wl=$lt_prog_compiler_wl_CXX
30521 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
30522 allow_undefined_flag_CXX=
30523 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
30524 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
30526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30527 (exit $ac_status); }
30529 archive_cmds_need_lc_CXX=no
30531 archive_cmds_need_lc_CXX=yes
30533 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
30535 cat conftest.err 1>&5
30538 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
30539 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
30546 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
30547 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
30548 library_names_spec=
30549 libname_spec='lib$name'
30553 postuninstall_cmds=
30557 shlibpath_overrides_runpath=unknown
30559 dynamic_linker="$host_os ld.so"
30560 sys_lib_dlsearch_path_spec="/lib /usr/lib"
30561 if test "$GCC" = yes; then
30562 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
30563 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
30564 # if the path contains ";" then we assume it to be the separator
30565 # otherwise default to the standard path separator (i.e. ":") - it is
30566 # assumed that no part of a normal pathname contains ";" but that should
30567 # okay in the real world where ";" in dirpaths is itself problematic.
30568 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
30570 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
30573 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
30575 need_lib_prefix=unknown
30576 hardcode_into_libs=no
30578 # when you set need_version to no, make sure it does not cause -set_version
30579 # flags to be left without arguments
30580 need_version=unknown
30585 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
30586 shlibpath_var=LIBPATH
30588 # AIX 3 has no versioning support, so we append a major version to the name.
30589 soname_spec='${libname}${release}${shared_ext}$major'
30596 hardcode_into_libs=yes
30597 if test "$host_cpu" = ia64; then
30598 # AIX 5 supports IA64
30599 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
30600 shlibpath_var=LD_LIBRARY_PATH
30602 # With GCC up to 2.95.x, collect2 would create an import file
30603 # for dependence libraries. The import file would start with
30604 # the line `#! .'. This would cause the generated library to
30605 # depend on `.', always an invalid library. This was fixed in
30606 # development snapshots of GCC prior to 3.0.
30608 aix4 | aix4.[01] | aix4.[01].*)
30609 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
30611 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
30614 can_build_shared=no
30618 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
30619 # soname into executable. Probably we can add versioning support to
30620 # collect2, so additional links can be useful in future.
30621 if test "$aix_use_runtimelinking" = yes; then
30622 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
30623 # instead of lib<name>.a to let people know that these are not
30624 # typical AIX shared libraries.
30625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30627 # We preserve .a as extension for shared libraries through AIX4.2
30628 # and later when we are not doing run time linking.
30629 library_names_spec='${libname}${release}.a $libname.a'
30630 soname_spec='${libname}${release}${shared_ext}$major'
30632 shlibpath_var=LIBPATH
30637 library_names_spec='$libname.ixlibrary $libname.a'
30638 # Create ${libname}_ixlibrary.a entries in /sys/libs.
30639 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'
30643 library_names_spec='${libname}${shared_ext}'
30644 dynamic_linker="$host_os ld.so"
30645 shlibpath_var=LIBRARY_PATH
30651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30652 soname_spec='${libname}${release}${shared_ext}$major'
30653 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
30654 shlibpath_var=LD_LIBRARY_PATH
30655 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
30656 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
30657 # the default ld.so.conf also contains /usr/contrib/lib and
30658 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
30659 # libtool to hard-code these into programs
30662 cygwin* | mingw* | pw32*)
30663 version_type=windows
30668 case $GCC,$host_os in
30669 yes,cygwin* | yes,mingw* | yes,pw32*)
30670 library_names_spec='$libname.dll.a'
30671 # DLL is installed to $(libdir)/../bin by postinstall_cmds
30672 postinstall_cmds='base_file=`basename \${file}`~
30673 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
30674 dldir=$destdir/`dirname \$dlpath`~
30675 test -d \$dldir || mkdir -p \$dldir~
30676 $install_prog $dir/$dlname \$dldir/$dlname~
30677 chmod a+x \$dldir/$dlname'
30678 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
30679 dlpath=$dir/\$dldll~
30681 shlibpath_overrides_runpath=yes
30685 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
30686 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
30687 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
30690 # MinGW DLLs use traditional 'lib' prefix
30691 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
30692 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
30693 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
30694 # It is most probably a Windows format PATH printed by
30695 # mingw gcc, but we are running on Cygwin. Gcc prints its search
30696 # path with ; separators, and with drive letters. We can handle the
30697 # drive letters (cygwin fileutils understands them), so leave them,
30698 # especially as we might pass files found there to a mingw objdump,
30699 # which wouldn't understand a cygwinified path. Ahh.
30700 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
30702 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
30706 # pw32 DLLs use 'pw' prefix rather than 'lib'
30707 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
30713 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
30716 dynamic_linker='Win32 ld.exe'
30717 # FIXME: first we should search . and the directory the executable is in
30721 darwin* | rhapsody*)
30722 dynamic_linker="$host_os dyld"
30723 version_type=darwin
30726 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
30727 soname_spec='${libname}${release}${major}$shared_ext'
30728 shlibpath_overrides_runpath=yes
30729 shlibpath_var=DYLD_LIBRARY_PATH
30730 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
30731 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
30732 if test "$GCC" = yes; then
30733 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
30735 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
30737 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
30744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
30745 soname_spec='${libname}${release}${shared_ext}$major'
30746 shlibpath_var=LD_LIBRARY_PATH
30757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
30758 soname_spec='${libname}${release}${shared_ext}$major'
30759 shlibpath_var=LD_LIBRARY_PATH
30760 shlibpath_overrides_runpath=no
30761 hardcode_into_libs=yes
30762 dynamic_linker='GNU ld.so'
30765 freebsd* | dragonfly*)
30766 # DragonFly does not have aout. When/if they implement a new
30767 # versioning mechanism, adjust this.
30768 if test -x /usr/bin/objformat; then
30769 objformat=`/usr/bin/objformat`
30772 freebsd[123]*) objformat=aout ;;
30773 *) objformat=elf ;;
30776 version_type=freebsd-$objformat
30777 case $version_type in
30779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
30784 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
30788 shlibpath_var=LD_LIBRARY_PATH
30791 shlibpath_overrides_runpath=yes
30793 freebsd3.[01]* | freebsdelf3.[01]*)
30794 shlibpath_overrides_runpath=yes
30795 hardcode_into_libs=yes
30798 shlibpath_overrides_runpath=no
30799 hardcode_into_libs=yes
30808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
30809 soname_spec='${libname}${release}${shared_ext}$major'
30810 shlibpath_var=LD_LIBRARY_PATH
30811 hardcode_into_libs=yes
30814 hpux9* | hpux10* | hpux11*)
30815 # Give a soname corresponding to the major version so that dld.sl refuses to
30816 # link against other versions.
30823 hardcode_into_libs=yes
30824 dynamic_linker="$host_os dld.so"
30825 shlibpath_var=LD_LIBRARY_PATH
30826 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
30827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30828 soname_spec='${libname}${release}${shared_ext}$major'
30829 if test "X$HPUX_IA64_MODE" = X32; then
30830 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
30832 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
30834 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
30838 hardcode_into_libs=yes
30839 dynamic_linker="$host_os dld.sl"
30840 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
30841 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
30842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30843 soname_spec='${libname}${release}${shared_ext}$major'
30844 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
30845 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
30849 dynamic_linker="$host_os dld.sl"
30850 shlibpath_var=SHLIB_PATH
30851 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
30852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30853 soname_spec='${libname}${release}${shared_ext}$major'
30856 # HP-UX runs *really* slowly unless shared libraries are mode 555.
30857 postinstall_cmds='chmod 555 $lib'
30860 irix5* | irix6* | nonstopux*)
30862 nonstopux*) version_type=nonstopux ;;
30864 if test "$lt_cv_prog_gnu_ld" = yes; then
30872 soname_spec='${libname}${release}${shared_ext}$major'
30873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
30875 irix5* | nonstopux*)
30876 libsuff= shlibsuff=
30879 case $LD in # libtool.m4 will add one of these switches to LD
30880 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
30881 libsuff= shlibsuff= libmagic=32-bit;;
30882 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
30883 libsuff=32 shlibsuff=N32 libmagic=N32;;
30884 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
30885 libsuff=64 shlibsuff=64 libmagic=64-bit;;
30886 *) libsuff= shlibsuff= libmagic=never-match;;
30890 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
30891 shlibpath_overrides_runpath=no
30892 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
30893 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
30894 hardcode_into_libs=yes
30897 # No shared lib support for Linux oldld, aout, or coff.
30898 linux*oldld* | linux*aout* | linux*coff*)
30902 # This must be Linux ELF.
30907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30908 soname_spec='${libname}${release}${shared_ext}$major'
30909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
30910 shlibpath_var=LD_LIBRARY_PATH
30911 shlibpath_overrides_runpath=no
30912 # This implies no fast_install, which is unacceptable.
30913 # Some rework will be needed to allow for fast_install
30914 # before this can be enabled.
30915 hardcode_into_libs=yes
30917 # Append ld.so.conf contents to the search path
30918 if test -f /etc/ld.so.conf; then
30919 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
30920 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
30923 # We used to test for /lib/ld.so.1 and disable shared libraries on
30924 # powerpc, because MkLinux only supported shared libraries with the
30925 # GNU dynamic linker. Since this was broken with cross compilers,
30926 # most powerpc-linux boxes support dynamic linking these days and
30927 # people can always --disable-shared, the test was removed, and we
30928 # assume the GNU/Linux dynamic linker is in use.
30929 dynamic_linker='GNU/Linux ld.so'
30936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
30937 soname_spec='${libname}${release}${shared_ext}$major'
30938 shlibpath_var=LD_LIBRARY_PATH
30939 shlibpath_overrides_runpath=no
30940 hardcode_into_libs=yes
30941 dynamic_linker='GNU ld.so'
30948 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
30949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
30950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
30951 dynamic_linker='NetBSD (a.out) ld.so'
30953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
30954 soname_spec='${libname}${release}${shared_ext}$major'
30955 dynamic_linker='NetBSD ld.elf_so'
30957 shlibpath_var=LD_LIBRARY_PATH
30958 shlibpath_overrides_runpath=yes
30959 hardcode_into_libs=yes
30964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30965 shlibpath_var=LD_LIBRARY_PATH
30966 shlibpath_overrides_runpath=yes
30973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30974 soname_spec='${libname}${release}${shared_ext}$major'
30975 shlibpath_var=LD_LIBRARY_PATH
30976 shlibpath_overrides_runpath=yes
30982 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
30984 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
30985 *) need_version=no ;;
30987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
30988 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
30989 shlibpath_var=LD_LIBRARY_PATH
30990 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
30992 openbsd2.[89] | openbsd2.[89].*)
30993 shlibpath_overrides_runpath=no
30996 shlibpath_overrides_runpath=yes
31000 shlibpath_overrides_runpath=yes
31005 libname_spec='$name'
31008 library_names_spec='$libname${shared_ext} $libname.a'
31009 dynamic_linker='OS/2 ld.exe'
31010 shlibpath_var=LIBPATH
31013 osf3* | osf4* | osf5*)
31017 soname_spec='${libname}${release}${shared_ext}$major'
31018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
31019 shlibpath_var=LD_LIBRARY_PATH
31020 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
31021 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
31026 soname_spec='${libname}${release}${shared_ext}$major'
31027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
31028 shlibpath_var=LD_LIBRARY_PATH
31035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
31036 soname_spec='${libname}${release}${shared_ext}$major'
31037 shlibpath_var=LD_LIBRARY_PATH
31038 shlibpath_overrides_runpath=yes
31039 hardcode_into_libs=yes
31040 # ldd complains unless libraries are executable
31041 postinstall_cmds='chmod +x $lib'
31046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
31047 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
31048 shlibpath_var=LD_LIBRARY_PATH
31049 shlibpath_overrides_runpath=yes
31050 if test "$with_gnu_ld" = yes; then
31056 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
31058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
31059 soname_spec='${libname}${release}${shared_ext}$major'
31060 shlibpath_var=LD_LIBRARY_PATH
31061 case $host_vendor in
31063 shlibpath_overrides_runpath=no
31065 export_dynamic_flag_spec='${wl}-Blargedynsym'
31066 runpath_var=LD_RUN_PATH
31074 shlibpath_overrides_runpath=no
31075 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
31081 if test -d /usr/nec ;then
31083 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
31084 soname_spec='$libname${shared_ext}.$major'
31085 shlibpath_var=LD_LIBRARY_PATH
31091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
31092 soname_spec='${libname}${release}${shared_ext}$major'
31093 shlibpath_var=LD_LIBRARY_PATH
31100 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
31101 echo "${ECHO_T}$dynamic_linker" >&6
31102 test "$dynamic_linker" = no && can_build_shared=no
31104 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
31105 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
31106 hardcode_action_CXX=
31107 if test -n "$hardcode_libdir_flag_spec_CXX" || \
31108 test -n "$runpath_var_CXX" || \
31109 test "X$hardcode_automatic_CXX" = "Xyes" ; then
31111 # We can hardcode non-existant directories.
31112 if test "$hardcode_direct_CXX" != no &&
31113 # If the only mechanism to avoid hardcoding is shlibpath_var, we
31114 # have to relink, otherwise we might link with an installed library
31115 # when we should be linking with a yet-to-be-installed one
31116 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
31117 test "$hardcode_minus_L_CXX" != no; then
31118 # Linking always hardcodes the temporary library directory.
31119 hardcode_action_CXX=relink
31121 # We can link without hardcoding, and we can hardcode nonexisting dirs.
31122 hardcode_action_CXX=immediate
31125 # We cannot hardcode anything, or else we can only hardcode existing
31127 hardcode_action_CXX=unsupported
31129 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
31130 echo "${ECHO_T}$hardcode_action_CXX" >&6
31132 if test "$hardcode_action_CXX" = relink; then
31133 # Fast installation is not supported
31134 enable_fast_install=no
31135 elif test "$shlibpath_overrides_runpath" = yes ||
31136 test "$enable_shared" = no; then
31137 # Fast installation is not necessary
31138 enable_fast_install=needless
31143 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
31144 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
31145 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
31146 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
31147 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
31148 echo "$as_me:$LINENO: result: yes" >&5
31149 echo "${ECHO_T}yes" >&6
31151 # FIXME - insert some real tests, host_os isn't really good enough
31154 if test -n "$STRIP" ; then
31155 striplib="$STRIP -x"
31156 echo "$as_me:$LINENO: result: yes" >&5
31157 echo "${ECHO_T}yes" >&6
31159 echo "$as_me:$LINENO: result: no" >&5
31160 echo "${ECHO_T}no" >&6
31164 echo "$as_me:$LINENO: result: no" >&5
31165 echo "${ECHO_T}no" >&6
31170 if test "x$enable_dlopen" != xyes; then
31171 enable_dlopen=unknown
31172 enable_dlopen_self=unknown
31173 enable_dlopen_self_static=unknown
31180 lt_cv_dlopen="load_add_on"
31182 lt_cv_dlopen_self=yes
31186 lt_cv_dlopen="LoadLibrary"
31191 lt_cv_dlopen="dlopen"
31196 # if libdl is installed we need to link against it
31197 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31198 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31199 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31200 echo $ECHO_N "(cached) $ECHO_C" >&6
31202 ac_check_lib_save_LIBS=$LIBS
31204 cat >conftest.$ac_ext <<_ACEOF
31207 cat confdefs.h >>conftest.$ac_ext
31208 cat >>conftest.$ac_ext <<_ACEOF
31209 /* end confdefs.h. */
31211 /* Override any gcc2 internal prototype to avoid an error. */
31215 /* We use char because int might match the return type of a gcc2
31216 builtin and then its argument prototype would still apply. */
31226 rm -f conftest.$ac_objext conftest$ac_exeext
31227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31228 (eval $ac_link) 2>conftest.er1
31230 grep -v '^ *+' conftest.er1 >conftest.err
31232 cat conftest.err >&5
31233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31234 (exit $ac_status); } &&
31235 { ac_try='test -z "$ac_cxx_werror_flag"
31236 || test ! -s conftest.err'
31237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31238 (eval $ac_try) 2>&5
31240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31241 (exit $ac_status); }; } &&
31242 { ac_try='test -s conftest$ac_exeext'
31243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31244 (eval $ac_try) 2>&5
31246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31247 (exit $ac_status); }; }; then
31248 ac_cv_lib_dl_dlopen=yes
31250 echo "$as_me: failed program was:" >&5
31251 sed 's/^/| /' conftest.$ac_ext >&5
31253 ac_cv_lib_dl_dlopen=no
31255 rm -f conftest.err conftest.$ac_objext \
31256 conftest$ac_exeext conftest.$ac_ext
31257 LIBS=$ac_check_lib_save_LIBS
31259 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31260 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31261 if test $ac_cv_lib_dl_dlopen = yes; then
31262 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
31265 lt_cv_dlopen="dyld"
31267 lt_cv_dlopen_self=yes
31274 echo "$as_me:$LINENO: checking for shl_load" >&5
31275 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
31276 if test "${ac_cv_func_shl_load+set}" = set; then
31277 echo $ECHO_N "(cached) $ECHO_C" >&6
31279 cat >conftest.$ac_ext <<_ACEOF
31282 cat confdefs.h >>conftest.$ac_ext
31283 cat >>conftest.$ac_ext <<_ACEOF
31284 /* end confdefs.h. */
31285 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
31286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31287 #define shl_load innocuous_shl_load
31289 /* System header to define __stub macros and hopefully few prototypes,
31290 which can conflict with char shl_load (); below.
31291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31292 <limits.h> exists even on freestanding compilers. */
31295 # include <limits.h>
31297 # include <assert.h>
31302 /* Override any gcc2 internal prototype to avoid an error. */
31307 /* We use char because int might match the return type of a gcc2
31308 builtin and then its argument prototype would still apply. */
31310 /* The GNU C library defines this for functions which it implements
31311 to always fail with ENOSYS. Some functions are actually named
31312 something starting with __ and the normal name is an alias. */
31313 #if defined (__stub_shl_load) || defined (__stub___shl_load)
31316 char (*f) () = shl_load;
31325 return f != shl_load;
31330 rm -f conftest.$ac_objext conftest$ac_exeext
31331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31332 (eval $ac_link) 2>conftest.er1
31334 grep -v '^ *+' conftest.er1 >conftest.err
31336 cat conftest.err >&5
31337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338 (exit $ac_status); } &&
31339 { ac_try='test -z "$ac_cxx_werror_flag"
31340 || test ! -s conftest.err'
31341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31342 (eval $ac_try) 2>&5
31344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31345 (exit $ac_status); }; } &&
31346 { ac_try='test -s conftest$ac_exeext'
31347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31348 (eval $ac_try) 2>&5
31350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31351 (exit $ac_status); }; }; then
31352 ac_cv_func_shl_load=yes
31354 echo "$as_me: failed program was:" >&5
31355 sed 's/^/| /' conftest.$ac_ext >&5
31357 ac_cv_func_shl_load=no
31359 rm -f conftest.err conftest.$ac_objext \
31360 conftest$ac_exeext conftest.$ac_ext
31362 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
31363 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
31364 if test $ac_cv_func_shl_load = yes; then
31365 lt_cv_dlopen="shl_load"
31367 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
31368 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
31369 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
31370 echo $ECHO_N "(cached) $ECHO_C" >&6
31372 ac_check_lib_save_LIBS=$LIBS
31374 cat >conftest.$ac_ext <<_ACEOF
31377 cat confdefs.h >>conftest.$ac_ext
31378 cat >>conftest.$ac_ext <<_ACEOF
31379 /* end confdefs.h. */
31381 /* Override any gcc2 internal prototype to avoid an error. */
31385 /* We use char because int might match the return type of a gcc2
31386 builtin and then its argument prototype would still apply. */
31396 rm -f conftest.$ac_objext conftest$ac_exeext
31397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31398 (eval $ac_link) 2>conftest.er1
31400 grep -v '^ *+' conftest.er1 >conftest.err
31402 cat conftest.err >&5
31403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31404 (exit $ac_status); } &&
31405 { ac_try='test -z "$ac_cxx_werror_flag"
31406 || test ! -s conftest.err'
31407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31408 (eval $ac_try) 2>&5
31410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31411 (exit $ac_status); }; } &&
31412 { ac_try='test -s conftest$ac_exeext'
31413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31414 (eval $ac_try) 2>&5
31416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31417 (exit $ac_status); }; }; then
31418 ac_cv_lib_dld_shl_load=yes
31420 echo "$as_me: failed program was:" >&5
31421 sed 's/^/| /' conftest.$ac_ext >&5
31423 ac_cv_lib_dld_shl_load=no
31425 rm -f conftest.err conftest.$ac_objext \
31426 conftest$ac_exeext conftest.$ac_ext
31427 LIBS=$ac_check_lib_save_LIBS
31429 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
31430 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
31431 if test $ac_cv_lib_dld_shl_load = yes; then
31432 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
31434 echo "$as_me:$LINENO: checking for dlopen" >&5
31435 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
31436 if test "${ac_cv_func_dlopen+set}" = set; then
31437 echo $ECHO_N "(cached) $ECHO_C" >&6
31439 cat >conftest.$ac_ext <<_ACEOF
31442 cat confdefs.h >>conftest.$ac_ext
31443 cat >>conftest.$ac_ext <<_ACEOF
31444 /* end confdefs.h. */
31445 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
31446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31447 #define dlopen innocuous_dlopen
31449 /* System header to define __stub macros and hopefully few prototypes,
31450 which can conflict with char dlopen (); below.
31451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31452 <limits.h> exists even on freestanding compilers. */
31455 # include <limits.h>
31457 # include <assert.h>
31462 /* Override any gcc2 internal prototype to avoid an error. */
31467 /* We use char because int might match the return type of a gcc2
31468 builtin and then its argument prototype would still apply. */
31470 /* The GNU C library defines this for functions which it implements
31471 to always fail with ENOSYS. Some functions are actually named
31472 something starting with __ and the normal name is an alias. */
31473 #if defined (__stub_dlopen) || defined (__stub___dlopen)
31476 char (*f) () = dlopen;
31485 return f != dlopen;
31490 rm -f conftest.$ac_objext conftest$ac_exeext
31491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31492 (eval $ac_link) 2>conftest.er1
31494 grep -v '^ *+' conftest.er1 >conftest.err
31496 cat conftest.err >&5
31497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31498 (exit $ac_status); } &&
31499 { ac_try='test -z "$ac_cxx_werror_flag"
31500 || test ! -s conftest.err'
31501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31502 (eval $ac_try) 2>&5
31504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31505 (exit $ac_status); }; } &&
31506 { ac_try='test -s conftest$ac_exeext'
31507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31508 (eval $ac_try) 2>&5
31510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31511 (exit $ac_status); }; }; then
31512 ac_cv_func_dlopen=yes
31514 echo "$as_me: failed program was:" >&5
31515 sed 's/^/| /' conftest.$ac_ext >&5
31517 ac_cv_func_dlopen=no
31519 rm -f conftest.err conftest.$ac_objext \
31520 conftest$ac_exeext conftest.$ac_ext
31522 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
31523 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
31524 if test $ac_cv_func_dlopen = yes; then
31525 lt_cv_dlopen="dlopen"
31527 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31528 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31529 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31530 echo $ECHO_N "(cached) $ECHO_C" >&6
31532 ac_check_lib_save_LIBS=$LIBS
31534 cat >conftest.$ac_ext <<_ACEOF
31537 cat confdefs.h >>conftest.$ac_ext
31538 cat >>conftest.$ac_ext <<_ACEOF
31539 /* end confdefs.h. */
31541 /* Override any gcc2 internal prototype to avoid an error. */
31545 /* We use char because int might match the return type of a gcc2
31546 builtin and then its argument prototype would still apply. */
31556 rm -f conftest.$ac_objext conftest$ac_exeext
31557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31558 (eval $ac_link) 2>conftest.er1
31560 grep -v '^ *+' conftest.er1 >conftest.err
31562 cat conftest.err >&5
31563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31564 (exit $ac_status); } &&
31565 { ac_try='test -z "$ac_cxx_werror_flag"
31566 || test ! -s conftest.err'
31567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31568 (eval $ac_try) 2>&5
31570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31571 (exit $ac_status); }; } &&
31572 { ac_try='test -s conftest$ac_exeext'
31573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31574 (eval $ac_try) 2>&5
31576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31577 (exit $ac_status); }; }; then
31578 ac_cv_lib_dl_dlopen=yes
31580 echo "$as_me: failed program was:" >&5
31581 sed 's/^/| /' conftest.$ac_ext >&5
31583 ac_cv_lib_dl_dlopen=no
31585 rm -f conftest.err conftest.$ac_objext \
31586 conftest$ac_exeext conftest.$ac_ext
31587 LIBS=$ac_check_lib_save_LIBS
31589 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31590 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31591 if test $ac_cv_lib_dl_dlopen = yes; then
31592 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
31594 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
31595 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
31596 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
31597 echo $ECHO_N "(cached) $ECHO_C" >&6
31599 ac_check_lib_save_LIBS=$LIBS
31600 LIBS="-lsvld $LIBS"
31601 cat >conftest.$ac_ext <<_ACEOF
31604 cat confdefs.h >>conftest.$ac_ext
31605 cat >>conftest.$ac_ext <<_ACEOF
31606 /* end confdefs.h. */
31608 /* Override any gcc2 internal prototype to avoid an error. */
31612 /* We use char because int might match the return type of a gcc2
31613 builtin and then its argument prototype would still apply. */
31623 rm -f conftest.$ac_objext conftest$ac_exeext
31624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31625 (eval $ac_link) 2>conftest.er1
31627 grep -v '^ *+' conftest.er1 >conftest.err
31629 cat conftest.err >&5
31630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31631 (exit $ac_status); } &&
31632 { ac_try='test -z "$ac_cxx_werror_flag"
31633 || test ! -s conftest.err'
31634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31635 (eval $ac_try) 2>&5
31637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31638 (exit $ac_status); }; } &&
31639 { ac_try='test -s conftest$ac_exeext'
31640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31641 (eval $ac_try) 2>&5
31643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31644 (exit $ac_status); }; }; then
31645 ac_cv_lib_svld_dlopen=yes
31647 echo "$as_me: failed program was:" >&5
31648 sed 's/^/| /' conftest.$ac_ext >&5
31650 ac_cv_lib_svld_dlopen=no
31652 rm -f conftest.err conftest.$ac_objext \
31653 conftest$ac_exeext conftest.$ac_ext
31654 LIBS=$ac_check_lib_save_LIBS
31656 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
31657 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
31658 if test $ac_cv_lib_svld_dlopen = yes; then
31659 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
31661 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
31662 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
31663 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
31664 echo $ECHO_N "(cached) $ECHO_C" >&6
31666 ac_check_lib_save_LIBS=$LIBS
31668 cat >conftest.$ac_ext <<_ACEOF
31671 cat confdefs.h >>conftest.$ac_ext
31672 cat >>conftest.$ac_ext <<_ACEOF
31673 /* end confdefs.h. */
31675 /* Override any gcc2 internal prototype to avoid an error. */
31679 /* We use char because int might match the return type of a gcc2
31680 builtin and then its argument prototype would still apply. */
31690 rm -f conftest.$ac_objext conftest$ac_exeext
31691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31692 (eval $ac_link) 2>conftest.er1
31694 grep -v '^ *+' conftest.er1 >conftest.err
31696 cat conftest.err >&5
31697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31698 (exit $ac_status); } &&
31699 { ac_try='test -z "$ac_cxx_werror_flag"
31700 || test ! -s conftest.err'
31701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31702 (eval $ac_try) 2>&5
31704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31705 (exit $ac_status); }; } &&
31706 { ac_try='test -s conftest$ac_exeext'
31707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31708 (eval $ac_try) 2>&5
31710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31711 (exit $ac_status); }; }; then
31712 ac_cv_lib_dld_dld_link=yes
31714 echo "$as_me: failed program was:" >&5
31715 sed 's/^/| /' conftest.$ac_ext >&5
31717 ac_cv_lib_dld_dld_link=no
31719 rm -f conftest.err conftest.$ac_objext \
31720 conftest$ac_exeext conftest.$ac_ext
31721 LIBS=$ac_check_lib_save_LIBS
31723 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
31724 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
31725 if test $ac_cv_lib_dld_dld_link = yes; then
31726 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
31747 if test "x$lt_cv_dlopen" != xno; then
31753 case $lt_cv_dlopen in
31755 save_CPPFLAGS="$CPPFLAGS"
31756 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
31758 save_LDFLAGS="$LDFLAGS"
31759 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
31762 LIBS="$lt_cv_dlopen_libs $LIBS"
31764 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
31765 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
31766 if test "${lt_cv_dlopen_self+set}" = set; then
31767 echo $ECHO_N "(cached) $ECHO_C" >&6
31769 if test "$cross_compiling" = yes; then :
31770 lt_cv_dlopen_self=cross
31772 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
31773 lt_status=$lt_dlunknown
31774 cat > conftest.$ac_ext <<EOF
31775 #line 31775 "configure"
31776 #include "confdefs.h"
31785 # define LT_DLGLOBAL RTLD_GLOBAL
31788 # define LT_DLGLOBAL DL_GLOBAL
31790 # define LT_DLGLOBAL 0
31794 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
31795 find out it does not work in some platform. */
31796 #ifndef LT_DLLAZY_OR_NOW
31798 # define LT_DLLAZY_OR_NOW RTLD_LAZY
31801 # define LT_DLLAZY_OR_NOW DL_LAZY
31804 # define LT_DLLAZY_OR_NOW RTLD_NOW
31807 # define LT_DLLAZY_OR_NOW DL_NOW
31809 # define LT_DLLAZY_OR_NOW 0
31817 extern "C" void exit (int);
31820 void fnord() { int i=42;}
31823 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
31824 int status = $lt_dlunknown;
31828 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
31829 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
31830 /* dlclose (self); */
31836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31837 (eval $ac_link) 2>&5
31839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31840 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
31841 (./conftest; exit; ) >&5 2>/dev/null
31843 case x$lt_status in
31844 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
31845 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
31846 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
31849 # compilation failed
31850 lt_cv_dlopen_self=no
31857 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
31858 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
31860 if test "x$lt_cv_dlopen_self" = xyes; then
31861 LDFLAGS="$LDFLAGS $link_static_flag"
31862 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
31863 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
31864 if test "${lt_cv_dlopen_self_static+set}" = set; then
31865 echo $ECHO_N "(cached) $ECHO_C" >&6
31867 if test "$cross_compiling" = yes; then :
31868 lt_cv_dlopen_self_static=cross
31870 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
31871 lt_status=$lt_dlunknown
31872 cat > conftest.$ac_ext <<EOF
31873 #line 31873 "configure"
31874 #include "confdefs.h"
31883 # define LT_DLGLOBAL RTLD_GLOBAL
31886 # define LT_DLGLOBAL DL_GLOBAL
31888 # define LT_DLGLOBAL 0
31892 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
31893 find out it does not work in some platform. */
31894 #ifndef LT_DLLAZY_OR_NOW
31896 # define LT_DLLAZY_OR_NOW RTLD_LAZY
31899 # define LT_DLLAZY_OR_NOW DL_LAZY
31902 # define LT_DLLAZY_OR_NOW RTLD_NOW
31905 # define LT_DLLAZY_OR_NOW DL_NOW
31907 # define LT_DLLAZY_OR_NOW 0
31915 extern "C" void exit (int);
31918 void fnord() { int i=42;}
31921 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
31922 int status = $lt_dlunknown;
31926 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
31927 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
31928 /* dlclose (self); */
31934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31935 (eval $ac_link) 2>&5
31937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31938 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
31939 (./conftest; exit; ) >&5 2>/dev/null
31941 case x$lt_status in
31942 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
31943 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
31944 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
31947 # compilation failed
31948 lt_cv_dlopen_self_static=no
31955 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
31956 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
31959 CPPFLAGS="$save_CPPFLAGS"
31960 LDFLAGS="$save_LDFLAGS"
31965 case $lt_cv_dlopen_self in
31966 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
31967 *) enable_dlopen_self=unknown ;;
31970 case $lt_cv_dlopen_self_static in
31971 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
31972 *) enable_dlopen_self_static=unknown ;;
31977 # The else clause should only fire when bootstrapping the
31978 # libtool distribution, otherwise you forgot to ship ltmain.sh
31979 # with your package, and you will get complaints that there are
31980 # no rules to generate ltmain.sh.
31981 if test -f "$ltmain"; then
31982 # See if we are running on zsh, and set the options which allow our commands through
31983 # without removal of \ escapes.
31984 if test -n "${ZSH_VERSION+set}" ; then
31985 setopt NO_GLOB_SUBST
31987 # Now quote all the things that may contain metacharacters while being
31988 # careful not to overquote the AC_SUBSTed values. We take copies of the
31989 # variables and quote the copies for generation of the libtool script.
31990 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
31992 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
31993 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
31994 deplibs_check_method reload_flag reload_cmds need_locks \
31995 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
31996 lt_cv_sys_global_symbol_to_c_name_address \
31997 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
31998 old_postinstall_cmds old_postuninstall_cmds \
32002 lt_prog_compiler_wl_CXX \
32003 lt_prog_compiler_pic_CXX \
32004 lt_prog_compiler_static_CXX \
32005 lt_prog_compiler_no_builtin_flag_CXX \
32006 export_dynamic_flag_spec_CXX \
32007 thread_safe_flag_spec_CXX \
32008 whole_archive_flag_spec_CXX \
32009 enable_shared_with_static_runtimes_CXX \
32010 old_archive_cmds_CXX \
32011 old_archive_from_new_cmds_CXX \
32012 predep_objects_CXX \
32013 postdep_objects_CXX \
32016 compiler_lib_search_path_CXX \
32018 archive_expsym_cmds_CXX \
32019 postinstall_cmds_CXX \
32020 postuninstall_cmds_CXX \
32021 old_archive_from_expsyms_cmds_CXX \
32022 allow_undefined_flag_CXX \
32023 no_undefined_flag_CXX \
32024 export_symbols_cmds_CXX \
32025 hardcode_libdir_flag_spec_CXX \
32026 hardcode_libdir_flag_spec_ld_CXX \
32027 hardcode_libdir_separator_CXX \
32028 hardcode_automatic_CXX \
32030 module_expsym_cmds_CXX \
32031 lt_cv_prog_compiler_c_o_CXX \
32032 exclude_expsyms_CXX \
32033 include_expsyms_CXX; do
32036 old_archive_cmds_CXX | \
32037 old_archive_from_new_cmds_CXX | \
32038 archive_cmds_CXX | \
32039 archive_expsym_cmds_CXX | \
32040 module_cmds_CXX | \
32041 module_expsym_cmds_CXX | \
32042 old_archive_from_expsyms_cmds_CXX | \
32043 export_symbols_cmds_CXX | \
32044 extract_expsyms_cmds | reload_cmds | finish_cmds | \
32045 postinstall_cmds | postuninstall_cmds | \
32046 old_postinstall_cmds | old_postuninstall_cmds | \
32047 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
32048 # Double-quote double-evaled strings.
32049 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
32052 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
32058 *'\$0 --fallback-echo"')
32059 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
32065 cat <<__EOF__ >> "$cfgfile"
32066 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
32068 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32070 # Shell to use when invoking shell scripts.
32073 # Whether or not to build shared libraries.
32074 build_libtool_libs=$enable_shared
32076 # Whether or not to build static libraries.
32077 build_old_libs=$enable_static
32079 # Whether or not to add -lc for building shared libraries.
32080 build_libtool_need_lc=$archive_cmds_need_lc_CXX
32082 # Whether or not to disallow shared libs when runtime libs are static
32083 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32085 # Whether or not to optimize for fast installation.
32086 fast_install=$enable_fast_install
32089 host_alias=$host_alias
32093 # The build system.
32094 build_alias=$build_alias
32098 # An echo program that does not interpret backslashes.
32103 AR_FLAGS=$lt_AR_FLAGS
32108 # A language-specific compiler.
32109 CC=$lt_compiler_CXX
32111 # Is the compiler the GNU C compiler?
32117 # The linker used to build libraries.
32120 # Whether we need hard or soft links.
32123 # A BSD-compatible nm program.
32126 # A symbol stripping program
32129 # Used to examine libraries when file_magic_cmd begins "file"
32130 MAGIC_CMD=$MAGIC_CMD
32132 # Used on cygwin: DLL creation program.
32135 # Used on cygwin: object dumper.
32138 # Used on cygwin: assembler.
32141 # The name of the directory that contains temporary libtool files.
32144 # How to create reloadable object files.
32145 reload_flag=$lt_reload_flag
32146 reload_cmds=$lt_reload_cmds
32148 # How to pass a linker flag through the compiler.
32149 wl=$lt_lt_prog_compiler_wl_CXX
32151 # Object file suffix (normally "o").
32152 objext="$ac_objext"
32154 # Old archive suffix (normally "a").
32157 # Shared library suffix (normally ".so").
32158 shrext_cmds='$shrext_cmds'
32160 # Executable file suffix (normally "").
32163 # Additional compiler flags for building library objects.
32164 pic_flag=$lt_lt_prog_compiler_pic_CXX
32167 # What is the maximum length of a command?
32168 max_cmd_len=$lt_cv_sys_max_cmd_len
32170 # Does compiler simultaneously support -c and -o options?
32171 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32173 # Must we lock files when doing compilation?
32174 need_locks=$lt_need_locks
32176 # Do we need the lib prefix for modules?
32177 need_lib_prefix=$need_lib_prefix
32179 # Do we need a version for libraries?
32180 need_version=$need_version
32182 # Whether dlopen is supported.
32183 dlopen_support=$enable_dlopen
32185 # Whether dlopen of programs is supported.
32186 dlopen_self=$enable_dlopen_self
32188 # Whether dlopen of statically linked programs is supported.
32189 dlopen_self_static=$enable_dlopen_self_static
32191 # Compiler flag to prevent dynamic linking.
32192 link_static_flag=$lt_lt_prog_compiler_static_CXX
32194 # Compiler flag to turn off builtin functions.
32195 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32197 # Compiler flag to allow reflexive dlopens.
32198 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32200 # Compiler flag to generate shared objects directly from archives.
32201 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32203 # Compiler flag to generate thread-safe objects.
32204 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
32206 # Library versioning type.
32207 version_type=$version_type
32209 # Format of library name prefix.
32210 libname_spec=$lt_libname_spec
32212 # List of archive names. First name is the real one, the rest are links.
32213 # The last name is the one that the linker finds with -lNAME.
32214 library_names_spec=$lt_library_names_spec
32216 # The coded name of the library, if different from the real name.
32217 soname_spec=$lt_soname_spec
32219 # Commands used to build and install an old-style archive.
32221 old_archive_cmds=$lt_old_archive_cmds_CXX
32222 old_postinstall_cmds=$lt_old_postinstall_cmds
32223 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32225 # Create an old-style archive from a shared archive.
32226 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32228 # Create a temporary old-style archive to link instead of a shared archive.
32229 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32231 # Commands used to build and install a shared archive.
32232 archive_cmds=$lt_archive_cmds_CXX
32233 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32234 postinstall_cmds=$lt_postinstall_cmds
32235 postuninstall_cmds=$lt_postuninstall_cmds
32237 # Commands used to build a loadable module (assumed same as above if empty)
32238 module_cmds=$lt_module_cmds_CXX
32239 module_expsym_cmds=$lt_module_expsym_cmds_CXX
32241 # Commands to strip libraries.
32242 old_striplib=$lt_old_striplib
32243 striplib=$lt_striplib
32245 # Dependencies to place before the objects being linked to create a
32247 predep_objects=$lt_predep_objects_CXX
32249 # Dependencies to place after the objects being linked to create a
32251 postdep_objects=$lt_postdep_objects_CXX
32253 # Dependencies to place before the objects being linked to create a
32255 predeps=$lt_predeps_CXX
32257 # Dependencies to place after the objects being linked to create a
32259 postdeps=$lt_postdeps_CXX
32261 # The library search path used internally by the compiler when linking
32262 # a shared library.
32263 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32265 # Method to check whether dependent libraries are shared objects.
32266 deplibs_check_method=$lt_deplibs_check_method
32268 # Command to use when deplibs_check_method == file_magic.
32269 file_magic_cmd=$lt_file_magic_cmd
32271 # Flag that allows shared libraries with undefined symbols to be built.
32272 allow_undefined_flag=$lt_allow_undefined_flag_CXX
32274 # Flag that forces no undefined symbols.
32275 no_undefined_flag=$lt_no_undefined_flag_CXX
32277 # Commands used to finish a libtool library installation in a directory.
32278 finish_cmds=$lt_finish_cmds
32280 # Same as above, but a single script fragment to be evaled but not shown.
32281 finish_eval=$lt_finish_eval
32283 # Take the output of nm and produce a listing of raw symbols and C names.
32284 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32286 # Transform the output of nm in a proper C declaration
32287 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32289 # Transform the output of nm in a C name address pair
32290 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32292 # This is the shared library runtime path variable.
32293 runpath_var=$runpath_var
32295 # This is the shared library path variable.
32296 shlibpath_var=$shlibpath_var
32298 # Is shlibpath searched before the hard-coded library search path?
32299 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32301 # How to hardcode a shared library path into an executable.
32302 hardcode_action=$hardcode_action_CXX
32304 # Whether we should hardcode library paths into libraries.
32305 hardcode_into_libs=$hardcode_into_libs
32307 # Flag to hardcode \$libdir into a binary during linking.
32308 # This must work even if \$libdir does not exist.
32309 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32311 # If ld is used when linking, flag to hardcode \$libdir into
32312 # a binary during linking. This must work even if \$libdir does
32314 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32316 # Whether we need a single -rpath flag with a separated argument.
32317 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32319 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
32320 # resulting binary.
32321 hardcode_direct=$hardcode_direct_CXX
32323 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
32324 # resulting binary.
32325 hardcode_minus_L=$hardcode_minus_L_CXX
32327 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
32328 # the resulting binary.
32329 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32331 # Set to yes if building a shared library automatically hardcodes DIR into the library
32332 # and all subsequent libraries and executables linked against it.
32333 hardcode_automatic=$hardcode_automatic_CXX
32335 # Variables whose values should be saved in libtool wrapper scripts and
32336 # restored at relink time.
32337 variables_saved_for_relink="$variables_saved_for_relink"
32339 # Whether libtool must link a program against all its dependency libraries.
32340 link_all_deplibs=$link_all_deplibs_CXX
32342 # Compile-time system search path for libraries
32343 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32345 # Run-time system search path for libraries
32346 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32348 # Fix the shell variable \$srcfile for the compiler.
32349 fix_srcfile_path="$fix_srcfile_path_CXX"
32351 # Set to yes if exported symbols are required.
32352 always_export_symbols=$always_export_symbols_CXX
32354 # The commands to list exported symbols.
32355 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32357 # The commands to extract the exported symbol list from a shared archive.
32358 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32360 # Symbols that should not be listed in the preloaded symbols.
32361 exclude_expsyms=$lt_exclude_expsyms_CXX
32363 # Symbols that must always be exported.
32364 include_expsyms=$lt_include_expsyms_CXX
32366 # ### END LIBTOOL TAG CONFIG: $tagname
32372 # If there is no Makefile yet, we rely on a make rule to execute
32373 # `config.status --recheck' to rerun these tests and create the
32374 # libtool script then.
32375 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
32376 if test -f "$ltmain_in"; then
32377 test -f Makefile && make "$ltmain"
32383 ac_cpp='$CPP $CPPFLAGS'
32384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32392 with_gnu_ldcxx=$with_gnu_ld
32393 with_gnu_ld=$lt_save_with_gnu_ld
32394 lt_cv_path_LDCXX=$lt_cv_path_LD
32395 lt_cv_path_LD=$lt_save_path_LD
32396 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
32397 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
32405 if test -n "$F77" && test "X$F77" != "Xno"; then
32408 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
32409 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32410 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
32413 archive_cmds_need_lc_F77=no
32414 allow_undefined_flag_F77=
32415 always_export_symbols_F77=no
32416 archive_expsym_cmds_F77=
32417 export_dynamic_flag_spec_F77=
32418 hardcode_direct_F77=no
32419 hardcode_libdir_flag_spec_F77=
32420 hardcode_libdir_flag_spec_ld_F77=
32421 hardcode_libdir_separator_F77=
32422 hardcode_minus_L_F77=no
32423 hardcode_automatic_F77=no
32425 module_expsym_cmds_F77=
32426 link_all_deplibs_F77=unknown
32427 old_archive_cmds_F77=$old_archive_cmds
32428 no_undefined_flag_F77=
32429 whole_archive_flag_spec_F77=
32430 enable_shared_with_static_runtimes_F77=no
32432 # Source file extension for f77 test sources.
32435 # Object file extension for compiled f77 test sources.
32439 # Code to be used in simple compile tests
32440 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
32442 # Code to be used in simple link tests
32443 lt_simple_link_test_code=" program t\n end\n"
32445 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
32447 # If no C compiler was specified, use CC.
32450 # Allow CC to be a program name with arguments.
32454 # save warnings/boilerplate of simple test code
32455 ac_outfile=conftest.$ac_objext
32456 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
32457 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
32458 _lt_compiler_boilerplate=`cat conftest.err`
32461 ac_outfile=conftest.$ac_objext
32462 printf "$lt_simple_link_test_code" >conftest.$ac_ext
32463 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
32464 _lt_linker_boilerplate=`cat conftest.err`
32468 # Allow CC to be a program name with arguments.
32473 for cc_temp in $compiler""; do
32475 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
32476 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
32481 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
32484 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
32485 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
32486 echo "$as_me:$LINENO: result: $can_build_shared" >&5
32487 echo "${ECHO_T}$can_build_shared" >&6
32489 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
32490 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
32491 test "$can_build_shared" = "no" && enable_shared=no
32493 # On AIX, shared libraries and static libraries use the same namespace, and
32494 # are all built from PIC.
32497 test "$enable_shared" = yes && enable_static=no
32498 if test -n "$RANLIB"; then
32499 archive_cmds="$archive_cmds~\$RANLIB \$lib"
32500 postinstall_cmds='$RANLIB $lib'
32504 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
32505 test "$enable_shared" = yes && enable_static=no
32509 echo "$as_me:$LINENO: result: $enable_shared" >&5
32510 echo "${ECHO_T}$enable_shared" >&6
32512 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
32513 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
32514 # Make sure either enable_shared or enable_static is yes.
32515 test "$enable_shared" = yes || enable_static=yes
32516 echo "$as_me:$LINENO: result: $enable_static" >&5
32517 echo "${ECHO_T}$enable_static" >&6
32519 test "$ld_shlibs_F77" = no && can_build_shared=no
32524 lt_prog_compiler_wl_F77=
32525 lt_prog_compiler_pic_F77=
32526 lt_prog_compiler_static_F77=
32528 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
32529 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
32531 if test "$GCC" = yes; then
32532 lt_prog_compiler_wl_F77='-Wl,'
32533 lt_prog_compiler_static_F77='-static'
32537 # All AIX code is PIC.
32538 if test "$host_cpu" = ia64; then
32539 # AIX 5 now supports IA64 processor
32540 lt_prog_compiler_static_F77='-Bstatic'
32545 # FIXME: we need at least 68020 code to build shared libraries, but
32546 # adding the `-m68020' flag to GCC prevents building anything better,
32548 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
32551 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
32552 # PIC is the default for these OSes.
32555 mingw* | pw32* | os2*)
32556 # This hack is so that the source file can tell whether it is being
32557 # built for inclusion in a dll (and should export symbols for example).
32558 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
32561 darwin* | rhapsody*)
32562 # PIC is the default on this platform
32563 # Common symbols not allowed in MH_DYLIB files
32564 lt_prog_compiler_pic_F77='-fno-common'
32568 # Just because we use GCC doesn't mean we suddenly get shared libraries
32569 # on systems that don't support them.
32570 lt_prog_compiler_can_build_shared_F77=no
32575 if test -d /usr/nec; then
32576 lt_prog_compiler_pic_F77=-Kconform_pic
32581 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
32582 # not for PA HP-UX.
32588 lt_prog_compiler_pic_F77='-fPIC'
32594 lt_prog_compiler_pic_F77='-fPIC'
32598 # PORTME Check for flag to pass linker flags through the system compiler.
32601 lt_prog_compiler_wl_F77='-Wl,'
32602 if test "$host_cpu" = ia64; then
32603 # AIX 5 now supports IA64 processor
32604 lt_prog_compiler_static_F77='-Bstatic'
32606 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
32610 # PIC is the default on this platform
32611 # Common symbols not allowed in MH_DYLIB files
32612 case $cc_basename in
32614 lt_prog_compiler_pic_F77='-qnocommon'
32615 lt_prog_compiler_wl_F77='-Wl,'
32620 mingw* | pw32* | os2*)
32621 # This hack is so that the source file can tell whether it is being
32622 # built for inclusion in a dll (and should export symbols for example).
32623 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
32626 hpux9* | hpux10* | hpux11*)
32627 lt_prog_compiler_wl_F77='-Wl,'
32628 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
32629 # not for PA HP-UX.
32635 lt_prog_compiler_pic_F77='+Z'
32638 # Is there a better lt_prog_compiler_static that works with the bundled CC?
32639 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
32642 irix5* | irix6* | nonstopux*)
32643 lt_prog_compiler_wl_F77='-Wl,'
32644 # PIC (with -KPIC) is the default.
32645 lt_prog_compiler_static_F77='-non_shared'
32649 lt_prog_compiler_pic_F77='-KPIC'
32650 lt_prog_compiler_static_F77='-Bstatic'
32654 case $cc_basename in
32656 lt_prog_compiler_wl_F77='-Wl,'
32657 lt_prog_compiler_pic_F77='-KPIC'
32658 lt_prog_compiler_static_F77='-static'
32660 pgcc* | pgf77* | pgf90* | pgf95*)
32661 # Portland Group compilers (*not* the Pentium gcc compiler,
32662 # which looks to be a dead project)
32663 lt_prog_compiler_wl_F77='-Wl,'
32664 lt_prog_compiler_pic_F77='-fpic'
32665 lt_prog_compiler_static_F77='-Bstatic'
32668 lt_prog_compiler_wl_F77='-Wl,'
32669 # All Alpha code is PIC.
32670 lt_prog_compiler_static_F77='-non_shared'
32675 osf3* | osf4* | osf5*)
32676 lt_prog_compiler_wl_F77='-Wl,'
32677 # All OSF/1 code is PIC.
32678 lt_prog_compiler_static_F77='-non_shared'
32682 lt_prog_compiler_pic_F77='-Kpic'
32683 lt_prog_compiler_static_F77='-dn'
32687 lt_prog_compiler_pic_F77='-KPIC'
32688 lt_prog_compiler_static_F77='-Bstatic'
32689 case $cc_basename in
32690 f77* | f90* | f95*)
32691 lt_prog_compiler_wl_F77='-Qoption ld ';;
32693 lt_prog_compiler_wl_F77='-Wl,';;
32698 lt_prog_compiler_wl_F77='-Qoption ld '
32699 lt_prog_compiler_pic_F77='-PIC'
32700 lt_prog_compiler_static_F77='-Bstatic'
32703 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
32704 lt_prog_compiler_wl_F77='-Wl,'
32705 lt_prog_compiler_pic_F77='-KPIC'
32706 lt_prog_compiler_static_F77='-Bstatic'
32710 if test -d /usr/nec ;then
32711 lt_prog_compiler_pic_F77='-Kconform_pic'
32712 lt_prog_compiler_static_F77='-Bstatic'
32717 lt_prog_compiler_wl_F77='-Wl,'
32718 lt_prog_compiler_can_build_shared_F77=no
32722 lt_prog_compiler_pic_F77='-pic'
32723 lt_prog_compiler_static_F77='-Bstatic'
32727 lt_prog_compiler_can_build_shared_F77=no
32732 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
32733 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
32736 # Check to make sure the PIC flag actually works.
32738 if test -n "$lt_prog_compiler_pic_F77"; then
32740 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
32741 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
32742 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
32743 echo $ECHO_N "(cached) $ECHO_C" >&6
32745 lt_prog_compiler_pic_works_F77=no
32746 ac_outfile=conftest.$ac_objext
32747 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
32748 lt_compiler_flag="$lt_prog_compiler_pic_F77"
32749 # Insert the option either (1) after the last *FLAGS variable, or
32750 # (2) before a word containing "conftest.", or (3) at the end.
32751 # Note that $ac_compile itself does not contain backslashes and begins
32752 # with a dollar sign (not a hyphen), so the echo should work correctly.
32753 # The option is referenced via a variable to avoid confusing sed.
32754 lt_compile=`echo "$ac_compile" | $SED \
32755 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
32756 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
32757 -e 's:$: $lt_compiler_flag:'`
32758 (eval echo "\"\$as_me:32758: $lt_compile\"" >&5)
32759 (eval "$lt_compile" 2>conftest.err)
32761 cat conftest.err >&5
32762 echo "$as_me:32762: \$? = $ac_status" >&5
32763 if (exit $ac_status) && test -s "$ac_outfile"; then
32764 # The compiler can only warn and ignore the option if not recognized
32765 # So say no if there are warnings other than the usual output.
32766 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
32767 $SED '/^$/d' conftest.err >conftest.er2
32768 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
32769 lt_prog_compiler_pic_works_F77=yes
32775 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
32776 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
32778 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
32779 case $lt_prog_compiler_pic_F77 in
32781 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
32784 lt_prog_compiler_pic_F77=
32785 lt_prog_compiler_can_build_shared_F77=no
32790 # For platforms which do not support PIC, -DPIC is meaningless:
32792 lt_prog_compiler_pic_F77=
32795 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
32799 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
32800 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
32801 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
32802 echo $ECHO_N "(cached) $ECHO_C" >&6
32804 lt_cv_prog_compiler_c_o_F77=no
32805 $rm -r conftest 2>/dev/null
32809 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
32811 lt_compiler_flag="-o out/conftest2.$ac_objext"
32812 # Insert the option either (1) after the last *FLAGS variable, or
32813 # (2) before a word containing "conftest.", or (3) at the end.
32814 # Note that $ac_compile itself does not contain backslashes and begins
32815 # with a dollar sign (not a hyphen), so the echo should work correctly.
32816 lt_compile=`echo "$ac_compile" | $SED \
32817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
32818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
32819 -e 's:$: $lt_compiler_flag:'`
32820 (eval echo "\"\$as_me:32820: $lt_compile\"" >&5)
32821 (eval "$lt_compile" 2>out/conftest.err)
32823 cat out/conftest.err >&5
32824 echo "$as_me:32824: \$? = $ac_status" >&5
32825 if (exit $ac_status) && test -s out/conftest2.$ac_objext
32827 # The compiler can only warn and ignore the option if not recognized
32828 # So say no if there are warnings
32829 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
32830 $SED '/^$/d' out/conftest.err >out/conftest.er2
32831 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
32832 lt_cv_prog_compiler_c_o_F77=yes
32837 # SGI C++ compiler will create directory out/ii_files/ for
32838 # template instantiation
32839 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
32840 $rm out/* && rmdir out
32846 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
32847 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
32850 hard_links="nottested"
32851 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
32852 # do not overwrite the value of need_locks provided by the user
32853 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
32854 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
32857 ln conftest.a conftest.b 2>/dev/null && hard_links=no
32859 ln conftest.a conftest.b 2>&5 || hard_links=no
32860 ln conftest.a conftest.b 2>/dev/null && hard_links=no
32861 echo "$as_me:$LINENO: result: $hard_links" >&5
32862 echo "${ECHO_T}$hard_links" >&6
32863 if test "$hard_links" = no; then
32864 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
32865 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
32872 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
32873 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
32876 allow_undefined_flag_F77=
32877 enable_shared_with_static_runtimes_F77=no
32879 archive_expsym_cmds_F77=
32880 old_archive_From_new_cmds_F77=
32881 old_archive_from_expsyms_cmds_F77=
32882 export_dynamic_flag_spec_F77=
32883 whole_archive_flag_spec_F77=
32884 thread_safe_flag_spec_F77=
32885 hardcode_libdir_flag_spec_F77=
32886 hardcode_libdir_flag_spec_ld_F77=
32887 hardcode_libdir_separator_F77=
32888 hardcode_direct_F77=no
32889 hardcode_minus_L_F77=no
32890 hardcode_shlibpath_var_F77=unsupported
32891 link_all_deplibs_F77=unknown
32892 hardcode_automatic_F77=no
32894 module_expsym_cmds_F77=
32895 always_export_symbols_F77=no
32896 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
32897 # include_expsyms should be a list of space-separated symbols to be *always*
32898 # included in the symbol list
32899 include_expsyms_F77=
32900 # exclude_expsyms can be an extended regexp of symbols to exclude
32901 # it will be wrapped by ` (' and `)$', so one must not match beginning or
32902 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
32903 # as well as any symbol that contains `d'.
32904 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
32905 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
32906 # platforms (ab)use it in PIC code, but their linkers get confused if
32907 # the symbol is explicitly referenced. Since portable code cannot
32908 # rely on this symbol name, it's probably fine to never include it in
32909 # preloaded symbol tables.
32910 extract_expsyms_cmds=
32911 # Just being paranoid about ensuring that cc_basename is set.
32912 for cc_temp in $compiler""; do
32914 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
32915 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
32920 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
32923 cygwin* | mingw* | pw32*)
32924 # FIXME: the MSVC++ port hasn't been tested in a loooong time
32925 # When not using gcc, we currently assume that we are using
32926 # Microsoft Visual C++.
32927 if test "$GCC" != yes; then
32937 if test "$with_gnu_ld" = yes; then
32938 # If archive_cmds runs LD, not CC, wlarc should be empty
32941 # Set some defaults for GNU ld with shared library support. These
32942 # are reset later if shared libraries are not supported. Putting them
32943 # here allows them to be overridden if necessary.
32944 runpath_var=LD_RUN_PATH
32945 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
32946 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
32947 # ancient GNU ld didn't support --whole-archive et. al.
32948 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
32949 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
32951 whole_archive_flag_spec_F77=
32953 supports_anon_versioning=no
32954 case `$LD -v 2>/dev/null` in
32955 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
32956 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
32957 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
32958 *\ 2.11.*) ;; # other 2.11 versions
32959 *) supports_anon_versioning=yes ;;
32962 # See if GNU ld supports shared libraries.
32964 aix3* | aix4* | aix5*)
32965 # On AIX/PPC, the GNU linker is very broken
32966 if test "$host_cpu" != ia64; then
32970 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
32971 *** to be unable to reliably create shared libraries on AIX.
32972 *** Therefore, libtool is disabling shared libraries support. If you
32973 *** really care for shared libraries, you may want to modify your PATH
32974 *** so that a non-GNU linker is found, and then restart.
32981 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
32982 hardcode_libdir_flag_spec_F77='-L$libdir'
32983 hardcode_minus_L_F77=yes
32985 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
32986 # that the semantics of dynamic libraries on AmigaOS, at least up
32987 # to version 4, is to share data among multiple programs linked
32988 # with the same dynamic library. Since this doesn't match the
32989 # behavior of shared libraries on other platforms, we can't use
32995 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
32996 allow_undefined_flag_F77=unsupported
32997 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
32998 # support --undefined. This deserves some investigation. FIXME
32999 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33005 cygwin* | mingw* | pw32*)
33006 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
33007 # as there is no search path for DLLs.
33008 hardcode_libdir_flag_spec_F77='-L$libdir'
33009 allow_undefined_flag_F77=unsupported
33010 always_export_symbols_F77=no
33011 enable_shared_with_static_runtimes_F77=yes
33012 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
33014 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
33015 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
33016 # If the export-symbols file already is a .def file (1st line
33017 # is EXPORTS), use it as is; otherwise, prepend...
33018 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
33019 cp $export_symbols $output_objdir/$soname.def;
33021 echo EXPORTS > $output_objdir/$soname.def;
33022 cat $export_symbols >> $output_objdir/$soname.def;
33024 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
33031 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
33033 case $cc_basename,$host_cpu in
33034 pgcc*) # Portland Group C compiler
33035 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
33036 tmp_addflag=' $pic_flag'
33038 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
33039 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
33040 tmp_addflag=' $pic_flag -Mnomain' ;;
33041 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
33042 tmp_addflag=' -i_dynamic' ;;
33043 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
33044 tmp_addflag=' -i_dynamic -nofor_main' ;;
33045 ifc* | ifort*) # Intel Fortran compiler
33046 tmp_addflag=' -nofor_main' ;;
33048 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33050 if test $supports_anon_versioning = yes; then
33051 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
33052 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
33053 $echo "local: *; };" >> $output_objdir/$libname.ver~
33054 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
33062 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
33063 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
33066 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33067 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33072 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
33076 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
33077 *** create shared libraries on Solaris systems. Therefore, libtool
33078 *** is disabling shared libraries support. We urge you to upgrade GNU
33079 *** binutils to release 2.9.1 or newer. Another option is to modify
33080 *** your PATH or compiler configuration so that the native linker is
33081 *** used, and then restart.
33084 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
33085 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33086 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33093 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
33095 hardcode_direct_F77=yes
33096 hardcode_shlibpath_var_F77=no
33100 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
33101 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33102 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33109 if test "$ld_shlibs_F77" = no; then
33111 hardcode_libdir_flag_spec_F77=
33112 export_dynamic_flag_spec_F77=
33113 whole_archive_flag_spec_F77=
33116 # PORTME fill in a description of your system's linker (not GNU ld)
33119 allow_undefined_flag_F77=unsupported
33120 always_export_symbols_F77=yes
33121 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
33122 # Note: this linker hardcodes the directories in LIBPATH if there
33123 # are no directories specified by -L.
33124 hardcode_minus_L_F77=yes
33125 if test "$GCC" = yes && test -z "$link_static_flag"; then
33126 # Neither direct hardcoding nor static linking is supported with a
33128 hardcode_direct_F77=unsupported
33133 if test "$host_cpu" = ia64; then
33134 # On IA64, the linker does run time linking by default, so we don't
33135 # have to do anything special.
33136 aix_use_runtimelinking=no
33137 exp_sym_flag='-Bexport'
33140 # If we're using GNU nm, then we don't want the "-C" option.
33141 # -C means demangle to AIX nm, but means don't demangle with GNU nm
33142 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
33143 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
33145 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
33147 aix_use_runtimelinking=no
33149 # Test if we are trying to use run time linking or normal
33150 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
33151 # need to do runtime linking.
33152 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
33153 for ld_flag in $LDFLAGS; do
33154 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
33155 aix_use_runtimelinking=yes
33161 exp_sym_flag='-bexport'
33162 no_entry_flag='-bnoentry'
33165 # When large executables or shared objects are built, AIX ld can
33166 # have problems creating the table of contents. If linking a library
33167 # or program results in "error TOC overflow" add -mminimal-toc to
33168 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
33169 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
33171 archive_cmds_F77=''
33172 hardcode_direct_F77=yes
33173 hardcode_libdir_separator_F77=':'
33174 link_all_deplibs_F77=yes
33176 if test "$GCC" = yes; then
33177 case $host_os in aix4.[012]|aix4.[012].*)
33178 # We only want to do this on AIX 4.2 and lower, the check
33179 # below for broken collect2 doesn't work under 4.3+
33180 collect2name=`${CC} -print-prog-name=collect2`
33181 if test -f "$collect2name" && \
33182 strings "$collect2name" | grep resolve_lib_name >/dev/null
33184 # We have reworked collect2
33185 hardcode_direct_F77=yes
33187 # We have old collect2
33188 hardcode_direct_F77=unsupported
33189 # It fails to find uninstalled libraries when the uninstalled
33190 # path is not listed in the libpath. Setting hardcode_minus_L
33191 # to unsupported forces relinking
33192 hardcode_minus_L_F77=yes
33193 hardcode_libdir_flag_spec_F77='-L$libdir'
33194 hardcode_libdir_separator_F77=
33197 shared_flag='-shared'
33198 if test "$aix_use_runtimelinking" = yes; then
33199 shared_flag="$shared_flag "'${wl}-G'
33203 if test "$host_cpu" = ia64; then
33204 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
33205 # chokes on -Wl,-G. The following line is correct:
33208 if test "$aix_use_runtimelinking" = yes; then
33209 shared_flag='${wl}-G'
33211 shared_flag='${wl}-bM:SRE'
33216 # It seems that -bexpall does not export symbols beginning with
33217 # underscore (_), so it is better to generate a list of symbols to export.
33218 always_export_symbols_F77=yes
33219 if test "$aix_use_runtimelinking" = yes; then
33220 # Warning - without using the other runtime loading flags (-brtl),
33221 # -berok will link without error, but may produce a broken library.
33222 allow_undefined_flag_F77='-berok'
33223 # Determine the default libpath from the value encoded in an empty executable.
33224 cat >conftest.$ac_ext <<_ACEOF
33229 rm -f conftest.$ac_objext conftest$ac_exeext
33230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33231 (eval $ac_link) 2>conftest.er1
33233 grep -v '^ *+' conftest.er1 >conftest.err
33235 cat conftest.err >&5
33236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33237 (exit $ac_status); } &&
33238 { ac_try='test -z "$ac_f77_werror_flag"
33239 || test ! -s conftest.err'
33240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33241 (eval $ac_try) 2>&5
33243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33244 (exit $ac_status); }; } &&
33245 { ac_try='test -s conftest$ac_exeext'
33246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33247 (eval $ac_try) 2>&5
33249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33250 (exit $ac_status); }; }; then
33252 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
33254 # Check for a 64-bit object if we didn't find anything.
33255 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
33258 echo "$as_me: failed program was:" >&5
33259 sed 's/^/| /' conftest.$ac_ext >&5
33262 rm -f conftest.err conftest.$ac_objext \
33263 conftest$ac_exeext conftest.$ac_ext
33264 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
33266 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
33267 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
33269 if test "$host_cpu" = ia64; then
33270 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
33271 allow_undefined_flag_F77="-z nodefs"
33272 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
33274 # Determine the default libpath from the value encoded in an empty executable.
33275 cat >conftest.$ac_ext <<_ACEOF
33280 rm -f conftest.$ac_objext conftest$ac_exeext
33281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33282 (eval $ac_link) 2>conftest.er1
33284 grep -v '^ *+' conftest.er1 >conftest.err
33286 cat conftest.err >&5
33287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33288 (exit $ac_status); } &&
33289 { ac_try='test -z "$ac_f77_werror_flag"
33290 || test ! -s conftest.err'
33291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33292 (eval $ac_try) 2>&5
33294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33295 (exit $ac_status); }; } &&
33296 { ac_try='test -s conftest$ac_exeext'
33297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33298 (eval $ac_try) 2>&5
33300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33301 (exit $ac_status); }; }; then
33303 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
33305 # Check for a 64-bit object if we didn't find anything.
33306 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
33309 echo "$as_me: failed program was:" >&5
33310 sed 's/^/| /' conftest.$ac_ext >&5
33313 rm -f conftest.err conftest.$ac_objext \
33314 conftest$ac_exeext conftest.$ac_ext
33315 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
33317 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
33318 # Warning - without using the other run time loading flags,
33319 # -berok will link without error, but may produce a broken library.
33320 no_undefined_flag_F77=' ${wl}-bernotok'
33321 allow_undefined_flag_F77=' ${wl}-berok'
33322 # -bexpall does not export symbols beginning with underscore (_)
33323 always_export_symbols_F77=yes
33324 # Exported symbols can be pulled into shared objects from archives
33325 whole_archive_flag_spec_F77=' '
33326 archive_cmds_need_lc_F77=yes
33327 # This is similar to how AIX traditionally builds its shared libraries.
33328 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
33334 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
33335 hardcode_libdir_flag_spec_F77='-L$libdir'
33336 hardcode_minus_L_F77=yes
33337 # see comment about different semantics on the GNU ld section
33342 export_dynamic_flag_spec_F77=-rdynamic
33345 cygwin* | mingw* | pw32*)
33346 # When not using gcc, we currently assume that we are using
33347 # Microsoft Visual C++.
33348 # hardcode_libdir_flag_spec is actually meaningless, as there is
33349 # no search path for DLLs.
33350 hardcode_libdir_flag_spec_F77=' '
33351 allow_undefined_flag_F77=unsupported
33352 # Tell ltmain to make .lib files, not .a files.
33354 # Tell ltmain to make .dll files, not .so files.
33356 # FIXME: Setting linknames here is a bad hack.
33357 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
33358 # The linker will automatically build a .lib file if we build a DLL.
33359 old_archive_From_new_cmds_F77='true'
33360 # FIXME: Should let the user specify the lib program.
33361 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
33362 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
33363 enable_shared_with_static_runtimes_F77=yes
33366 darwin* | rhapsody*)
33368 rhapsody* | darwin1.[012])
33369 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
33372 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
33373 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
33375 case ${MACOSX_DEPLOYMENT_TARGET} in
33377 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
33380 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
33386 archive_cmds_need_lc_F77=no
33387 hardcode_direct_F77=no
33388 hardcode_automatic_F77=yes
33389 hardcode_shlibpath_var_F77=unsupported
33390 whole_archive_flag_spec_F77=''
33391 link_all_deplibs_F77=yes
33392 if test "$GCC" = yes ; then
33393 output_verbose_link_cmd='echo'
33394 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
33395 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
33396 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
33397 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
33398 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
33400 case $cc_basename in
33402 output_verbose_link_cmd='echo'
33403 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
33404 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
33405 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
33406 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
33407 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
33417 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
33418 hardcode_libdir_flag_spec_F77='-L$libdir'
33419 hardcode_shlibpath_var_F77=no
33426 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
33427 # support. Future versions do this automatically, but an explicit c++rt0.o
33428 # does not break anything, and helps significantly (at the cost of a little
33431 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
33432 hardcode_libdir_flag_spec_F77='-R$libdir'
33433 hardcode_direct_F77=yes
33434 hardcode_shlibpath_var_F77=no
33437 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
33439 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
33440 hardcode_direct_F77=yes
33441 hardcode_minus_L_F77=yes
33442 hardcode_shlibpath_var_F77=no
33445 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
33446 freebsd* | kfreebsd*-gnu | dragonfly*)
33447 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
33448 hardcode_libdir_flag_spec_F77='-R$libdir'
33449 hardcode_direct_F77=yes
33450 hardcode_shlibpath_var_F77=no
33454 if test "$GCC" = yes; then
33455 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
33457 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
33459 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
33460 hardcode_libdir_separator_F77=:
33461 hardcode_direct_F77=yes
33463 # hardcode_minus_L: Not really in the search PATH,
33464 # but as the default location of the library.
33465 hardcode_minus_L_F77=yes
33466 export_dynamic_flag_spec_F77='${wl}-E'
33470 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
33473 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
33476 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
33482 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
33485 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
33489 if test "$with_gnu_ld" = no; then
33492 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
33493 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
33494 hardcode_libdir_separator_F77=:
33495 hardcode_direct_F77=no
33496 hardcode_shlibpath_var_F77=no
33499 hardcode_libdir_flag_spec_F77='-L$libdir'
33500 hardcode_direct_F77=no
33501 hardcode_shlibpath_var_F77=no
33503 # hardcode_minus_L: Not really in the search PATH,
33504 # but as the default location of the library.
33505 hardcode_minus_L_F77=yes
33508 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
33509 hardcode_libdir_separator_F77=:
33510 hardcode_direct_F77=yes
33511 export_dynamic_flag_spec_F77='${wl}-E'
33513 # hardcode_minus_L: Not really in the search PATH,
33514 # but as the default location of the library.
33515 hardcode_minus_L_F77=yes
33521 irix5* | irix6* | nonstopux*)
33522 if test "$GCC" = yes; then
33523 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
33525 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
33526 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
33528 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
33529 hardcode_libdir_separator_F77=:
33530 link_all_deplibs_F77=yes
33534 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
33535 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
33537 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
33539 hardcode_libdir_flag_spec_F77='-R$libdir'
33540 hardcode_direct_F77=yes
33541 hardcode_shlibpath_var_F77=no
33545 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
33546 hardcode_direct_F77=yes
33547 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
33548 hardcode_libdir_separator_F77=:
33549 hardcode_shlibpath_var_F77=no
33553 hardcode_direct_F77=yes
33554 hardcode_shlibpath_var_F77=no
33555 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
33556 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
33557 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
33558 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
33559 export_dynamic_flag_spec_F77='${wl}-E'
33562 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
33563 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
33564 hardcode_libdir_flag_spec_F77='-R$libdir'
33567 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
33568 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
33575 hardcode_libdir_flag_spec_F77='-L$libdir'
33576 hardcode_minus_L_F77=yes
33577 allow_undefined_flag_F77=unsupported
33578 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
33579 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
33583 if test "$GCC" = yes; then
33584 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
33585 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
33587 allow_undefined_flag_F77=' -expect_unresolved \*'
33588 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
33590 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
33591 hardcode_libdir_separator_F77=:
33594 osf4* | osf5*) # as osf3* with the addition of -msym flag
33595 if test "$GCC" = yes; then
33596 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
33597 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
33598 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
33600 allow_undefined_flag_F77=' -expect_unresolved \*'
33601 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
33602 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
33603 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
33605 # Both c and cxx compiler support -rpath directly
33606 hardcode_libdir_flag_spec_F77='-rpath $libdir'
33608 hardcode_libdir_separator_F77=:
33612 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
33613 hardcode_shlibpath_var_F77=no
33614 export_dynamic_flag_spec_F77='${wl}-Bexport'
33615 runpath_var=LD_RUN_PATH
33616 hardcode_runpath_var=yes
33620 no_undefined_flag_F77=' -z text'
33621 if test "$GCC" = yes; then
33623 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
33624 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
33625 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
33628 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
33629 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
33630 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
33632 hardcode_libdir_flag_spec_F77='-R$libdir'
33633 hardcode_shlibpath_var_F77=no
33635 solaris2.[0-5] | solaris2.[0-5].*) ;;
33637 # The compiler driver will combine linker options so we
33638 # cannot just pass the convience library names through
33639 # without $wl, iff we do not link with $LD.
33640 # Luckily, gcc supports the same syntax we need for Sun Studio.
33641 # Supported since Solaris 2.6 (maybe 2.5.1?)
33644 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
33646 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
33649 link_all_deplibs_F77=yes
33653 if test "x$host_vendor" = xsequent; then
33654 # Use $CC to link under sequent, because it throws in some extra .o
33655 # files that make .init and .fini sections work.
33656 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
33658 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
33660 hardcode_libdir_flag_spec_F77='-L$libdir'
33661 hardcode_direct_F77=yes
33662 hardcode_minus_L_F77=yes
33663 hardcode_shlibpath_var_F77=no
33667 case $host_vendor in
33669 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
33670 hardcode_direct_F77=yes # is this really true???
33673 ## LD is ld it makes a PLAMLIB
33674 ## CC just makes a GrossModule.
33675 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
33676 reload_cmds_F77='$CC -r -o $output$reload_objs'
33677 hardcode_direct_F77=no
33680 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
33681 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
33684 runpath_var='LD_RUN_PATH'
33685 hardcode_shlibpath_var_F77=no
33689 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
33690 hardcode_shlibpath_var_F77=no
33691 export_dynamic_flag_spec_F77='-Bexport'
33695 if test -d /usr/nec; then
33696 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
33697 hardcode_shlibpath_var_F77=no
33698 runpath_var=LD_RUN_PATH
33699 hardcode_runpath_var=yes
33705 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
33706 hardcode_direct_F77=yes
33707 hardcode_minus_L_F77=no
33708 hardcode_shlibpath_var_F77=no
33709 hardcode_runpath_var=yes
33710 runpath_var=LD_RUN_PATH
33713 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
33714 no_undefined_flag_F77='${wl}-z ${wl}text'
33715 if test "$GCC" = yes; then
33716 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
33718 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
33720 runpath_var='LD_RUN_PATH'
33721 hardcode_shlibpath_var_F77=no
33725 no_undefined_flag_F77=' -z text'
33726 # $CC -shared without GNU ld will not create a library from C++
33727 # object files and a static libstdc++, better avoid it by now
33728 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
33729 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
33730 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
33731 hardcode_libdir_flag_spec_F77=
33732 hardcode_shlibpath_var_F77=no
33733 runpath_var='LD_RUN_PATH'
33737 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
33738 hardcode_libdir_flag_spec_F77='-L$libdir'
33739 hardcode_shlibpath_var_F77=no
33748 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
33749 echo "${ECHO_T}$ld_shlibs_F77" >&6
33750 test "$ld_shlibs_F77" = no && can_build_shared=no
33752 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
33753 if test "$GCC" = yes; then
33754 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
33758 # Do we need to explicitly link libc?
33760 case "x$archive_cmds_need_lc_F77" in
33762 # Assume -lc should be added
33763 archive_cmds_need_lc_F77=yes
33765 if test "$enable_shared" = yes && test "$GCC" = yes; then
33766 case $archive_cmds_F77 in
33768 # FIXME: we may have to deal with multi-command sequences.
33771 # Test whether the compiler implicitly links with -lc since on some
33772 # systems, -lgcc has to come before -lc. If gcc already passes -lc
33773 # to ld, don't add -lc before -lgcc.
33774 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
33775 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
33777 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
33779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33780 (eval $ac_compile) 2>&5
33782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33783 (exit $ac_status); } 2>conftest.err; then
33786 libobjs=conftest.$ac_objext
33788 wl=$lt_prog_compiler_wl_F77
33794 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
33795 allow_undefined_flag_F77=
33796 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
33797 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
33799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33800 (exit $ac_status); }
33802 archive_cmds_need_lc_F77=no
33804 archive_cmds_need_lc_F77=yes
33806 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
33808 cat conftest.err 1>&5
33811 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
33812 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
33819 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
33820 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
33821 library_names_spec=
33822 libname_spec='lib$name'
33826 postuninstall_cmds=
33830 shlibpath_overrides_runpath=unknown
33832 dynamic_linker="$host_os ld.so"
33833 sys_lib_dlsearch_path_spec="/lib /usr/lib"
33834 if test "$GCC" = yes; then
33835 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
33836 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
33837 # if the path contains ";" then we assume it to be the separator
33838 # otherwise default to the standard path separator (i.e. ":") - it is
33839 # assumed that no part of a normal pathname contains ";" but that should
33840 # okay in the real world where ";" in dirpaths is itself problematic.
33841 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
33843 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
33846 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
33848 need_lib_prefix=unknown
33849 hardcode_into_libs=no
33851 # when you set need_version to no, make sure it does not cause -set_version
33852 # flags to be left without arguments
33853 need_version=unknown
33858 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
33859 shlibpath_var=LIBPATH
33861 # AIX 3 has no versioning support, so we append a major version to the name.
33862 soname_spec='${libname}${release}${shared_ext}$major'
33869 hardcode_into_libs=yes
33870 if test "$host_cpu" = ia64; then
33871 # AIX 5 supports IA64
33872 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
33873 shlibpath_var=LD_LIBRARY_PATH
33875 # With GCC up to 2.95.x, collect2 would create an import file
33876 # for dependence libraries. The import file would start with
33877 # the line `#! .'. This would cause the generated library to
33878 # depend on `.', always an invalid library. This was fixed in
33879 # development snapshots of GCC prior to 3.0.
33881 aix4 | aix4.[01] | aix4.[01].*)
33882 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
33884 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
33887 can_build_shared=no
33891 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
33892 # soname into executable. Probably we can add versioning support to
33893 # collect2, so additional links can be useful in future.
33894 if test "$aix_use_runtimelinking" = yes; then
33895 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
33896 # instead of lib<name>.a to let people know that these are not
33897 # typical AIX shared libraries.
33898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
33900 # We preserve .a as extension for shared libraries through AIX4.2
33901 # and later when we are not doing run time linking.
33902 library_names_spec='${libname}${release}.a $libname.a'
33903 soname_spec='${libname}${release}${shared_ext}$major'
33905 shlibpath_var=LIBPATH
33910 library_names_spec='$libname.ixlibrary $libname.a'
33911 # Create ${libname}_ixlibrary.a entries in /sys/libs.
33912 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'
33916 library_names_spec='${libname}${shared_ext}'
33917 dynamic_linker="$host_os ld.so"
33918 shlibpath_var=LIBRARY_PATH
33924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
33925 soname_spec='${libname}${release}${shared_ext}$major'
33926 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
33927 shlibpath_var=LD_LIBRARY_PATH
33928 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
33929 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
33930 # the default ld.so.conf also contains /usr/contrib/lib and
33931 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
33932 # libtool to hard-code these into programs
33935 cygwin* | mingw* | pw32*)
33936 version_type=windows
33941 case $GCC,$host_os in
33942 yes,cygwin* | yes,mingw* | yes,pw32*)
33943 library_names_spec='$libname.dll.a'
33944 # DLL is installed to $(libdir)/../bin by postinstall_cmds
33945 postinstall_cmds='base_file=`basename \${file}`~
33946 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
33947 dldir=$destdir/`dirname \$dlpath`~
33948 test -d \$dldir || mkdir -p \$dldir~
33949 $install_prog $dir/$dlname \$dldir/$dlname~
33950 chmod a+x \$dldir/$dlname'
33951 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
33952 dlpath=$dir/\$dldll~
33954 shlibpath_overrides_runpath=yes
33958 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
33959 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
33960 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
33963 # MinGW DLLs use traditional 'lib' prefix
33964 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
33965 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
33966 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
33967 # It is most probably a Windows format PATH printed by
33968 # mingw gcc, but we are running on Cygwin. Gcc prints its search
33969 # path with ; separators, and with drive letters. We can handle the
33970 # drive letters (cygwin fileutils understands them), so leave them,
33971 # especially as we might pass files found there to a mingw objdump,
33972 # which wouldn't understand a cygwinified path. Ahh.
33973 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
33975 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
33979 # pw32 DLLs use 'pw' prefix rather than 'lib'
33980 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
33986 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
33989 dynamic_linker='Win32 ld.exe'
33990 # FIXME: first we should search . and the directory the executable is in
33994 darwin* | rhapsody*)
33995 dynamic_linker="$host_os dyld"
33996 version_type=darwin
33999 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
34000 soname_spec='${libname}${release}${major}$shared_ext'
34001 shlibpath_overrides_runpath=yes
34002 shlibpath_var=DYLD_LIBRARY_PATH
34003 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
34004 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
34005 if test "$GCC" = yes; then
34006 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
34008 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
34010 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
34017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
34018 soname_spec='${libname}${release}${shared_ext}$major'
34019 shlibpath_var=LD_LIBRARY_PATH
34030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
34031 soname_spec='${libname}${release}${shared_ext}$major'
34032 shlibpath_var=LD_LIBRARY_PATH
34033 shlibpath_overrides_runpath=no
34034 hardcode_into_libs=yes
34035 dynamic_linker='GNU ld.so'
34038 freebsd* | dragonfly*)
34039 # DragonFly does not have aout. When/if they implement a new
34040 # versioning mechanism, adjust this.
34041 if test -x /usr/bin/objformat; then
34042 objformat=`/usr/bin/objformat`
34045 freebsd[123]*) objformat=aout ;;
34046 *) objformat=elf ;;
34049 version_type=freebsd-$objformat
34050 case $version_type in
34052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
34057 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
34061 shlibpath_var=LD_LIBRARY_PATH
34064 shlibpath_overrides_runpath=yes
34066 freebsd3.[01]* | freebsdelf3.[01]*)
34067 shlibpath_overrides_runpath=yes
34068 hardcode_into_libs=yes
34071 shlibpath_overrides_runpath=no
34072 hardcode_into_libs=yes
34081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
34082 soname_spec='${libname}${release}${shared_ext}$major'
34083 shlibpath_var=LD_LIBRARY_PATH
34084 hardcode_into_libs=yes
34087 hpux9* | hpux10* | hpux11*)
34088 # Give a soname corresponding to the major version so that dld.sl refuses to
34089 # link against other versions.
34096 hardcode_into_libs=yes
34097 dynamic_linker="$host_os dld.so"
34098 shlibpath_var=LD_LIBRARY_PATH
34099 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
34100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
34101 soname_spec='${libname}${release}${shared_ext}$major'
34102 if test "X$HPUX_IA64_MODE" = X32; then
34103 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
34105 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
34107 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
34111 hardcode_into_libs=yes
34112 dynamic_linker="$host_os dld.sl"
34113 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
34114 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
34115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
34116 soname_spec='${libname}${release}${shared_ext}$major'
34117 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
34118 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
34122 dynamic_linker="$host_os dld.sl"
34123 shlibpath_var=SHLIB_PATH
34124 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
34125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
34126 soname_spec='${libname}${release}${shared_ext}$major'
34129 # HP-UX runs *really* slowly unless shared libraries are mode 555.
34130 postinstall_cmds='chmod 555 $lib'
34133 irix5* | irix6* | nonstopux*)
34135 nonstopux*) version_type=nonstopux ;;
34137 if test "$lt_cv_prog_gnu_ld" = yes; then
34145 soname_spec='${libname}${release}${shared_ext}$major'
34146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
34148 irix5* | nonstopux*)
34149 libsuff= shlibsuff=
34152 case $LD in # libtool.m4 will add one of these switches to LD
34153 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
34154 libsuff= shlibsuff= libmagic=32-bit;;
34155 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
34156 libsuff=32 shlibsuff=N32 libmagic=N32;;
34157 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
34158 libsuff=64 shlibsuff=64 libmagic=64-bit;;
34159 *) libsuff= shlibsuff= libmagic=never-match;;
34163 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
34164 shlibpath_overrides_runpath=no
34165 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
34166 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
34167 hardcode_into_libs=yes
34170 # No shared lib support for Linux oldld, aout, or coff.
34171 linux*oldld* | linux*aout* | linux*coff*)
34175 # This must be Linux ELF.
34180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
34181 soname_spec='${libname}${release}${shared_ext}$major'
34182 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
34183 shlibpath_var=LD_LIBRARY_PATH
34184 shlibpath_overrides_runpath=no
34185 # This implies no fast_install, which is unacceptable.
34186 # Some rework will be needed to allow for fast_install
34187 # before this can be enabled.
34188 hardcode_into_libs=yes
34190 # Append ld.so.conf contents to the search path
34191 if test -f /etc/ld.so.conf; then
34192 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
34193 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
34196 # We used to test for /lib/ld.so.1 and disable shared libraries on
34197 # powerpc, because MkLinux only supported shared libraries with the
34198 # GNU dynamic linker. Since this was broken with cross compilers,
34199 # most powerpc-linux boxes support dynamic linking these days and
34200 # people can always --disable-shared, the test was removed, and we
34201 # assume the GNU/Linux dynamic linker is in use.
34202 dynamic_linker='GNU/Linux ld.so'
34209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
34210 soname_spec='${libname}${release}${shared_ext}$major'
34211 shlibpath_var=LD_LIBRARY_PATH
34212 shlibpath_overrides_runpath=no
34213 hardcode_into_libs=yes
34214 dynamic_linker='GNU ld.so'
34221 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
34222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
34223 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
34224 dynamic_linker='NetBSD (a.out) ld.so'
34226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
34227 soname_spec='${libname}${release}${shared_ext}$major'
34228 dynamic_linker='NetBSD ld.elf_so'
34230 shlibpath_var=LD_LIBRARY_PATH
34231 shlibpath_overrides_runpath=yes
34232 hardcode_into_libs=yes
34237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
34238 shlibpath_var=LD_LIBRARY_PATH
34239 shlibpath_overrides_runpath=yes
34246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
34247 soname_spec='${libname}${release}${shared_ext}$major'
34248 shlibpath_var=LD_LIBRARY_PATH
34249 shlibpath_overrides_runpath=yes
34255 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
34257 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
34258 *) need_version=no ;;
34260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
34261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
34262 shlibpath_var=LD_LIBRARY_PATH
34263 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
34265 openbsd2.[89] | openbsd2.[89].*)
34266 shlibpath_overrides_runpath=no
34269 shlibpath_overrides_runpath=yes
34273 shlibpath_overrides_runpath=yes
34278 libname_spec='$name'
34281 library_names_spec='$libname${shared_ext} $libname.a'
34282 dynamic_linker='OS/2 ld.exe'
34283 shlibpath_var=LIBPATH
34286 osf3* | osf4* | osf5*)
34290 soname_spec='${libname}${release}${shared_ext}$major'
34291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
34292 shlibpath_var=LD_LIBRARY_PATH
34293 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
34294 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
34299 soname_spec='${libname}${release}${shared_ext}$major'
34300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
34301 shlibpath_var=LD_LIBRARY_PATH
34308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
34309 soname_spec='${libname}${release}${shared_ext}$major'
34310 shlibpath_var=LD_LIBRARY_PATH
34311 shlibpath_overrides_runpath=yes
34312 hardcode_into_libs=yes
34313 # ldd complains unless libraries are executable
34314 postinstall_cmds='chmod +x $lib'
34319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
34320 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
34321 shlibpath_var=LD_LIBRARY_PATH
34322 shlibpath_overrides_runpath=yes
34323 if test "$with_gnu_ld" = yes; then
34329 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
34331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
34332 soname_spec='${libname}${release}${shared_ext}$major'
34333 shlibpath_var=LD_LIBRARY_PATH
34334 case $host_vendor in
34336 shlibpath_overrides_runpath=no
34338 export_dynamic_flag_spec='${wl}-Blargedynsym'
34339 runpath_var=LD_RUN_PATH
34347 shlibpath_overrides_runpath=no
34348 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
34354 if test -d /usr/nec ;then
34356 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
34357 soname_spec='$libname${shared_ext}.$major'
34358 shlibpath_var=LD_LIBRARY_PATH
34364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
34365 soname_spec='${libname}${release}${shared_ext}$major'
34366 shlibpath_var=LD_LIBRARY_PATH
34373 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
34374 echo "${ECHO_T}$dynamic_linker" >&6
34375 test "$dynamic_linker" = no && can_build_shared=no
34377 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
34378 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
34379 hardcode_action_F77=
34380 if test -n "$hardcode_libdir_flag_spec_F77" || \
34381 test -n "$runpath_var_F77" || \
34382 test "X$hardcode_automatic_F77" = "Xyes" ; then
34384 # We can hardcode non-existant directories.
34385 if test "$hardcode_direct_F77" != no &&
34386 # If the only mechanism to avoid hardcoding is shlibpath_var, we
34387 # have to relink, otherwise we might link with an installed library
34388 # when we should be linking with a yet-to-be-installed one
34389 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
34390 test "$hardcode_minus_L_F77" != no; then
34391 # Linking always hardcodes the temporary library directory.
34392 hardcode_action_F77=relink
34394 # We can link without hardcoding, and we can hardcode nonexisting dirs.
34395 hardcode_action_F77=immediate
34398 # We cannot hardcode anything, or else we can only hardcode existing
34400 hardcode_action_F77=unsupported
34402 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
34403 echo "${ECHO_T}$hardcode_action_F77" >&6
34405 if test "$hardcode_action_F77" = relink; then
34406 # Fast installation is not supported
34407 enable_fast_install=no
34408 elif test "$shlibpath_overrides_runpath" = yes ||
34409 test "$enable_shared" = no; then
34410 # Fast installation is not necessary
34411 enable_fast_install=needless
34416 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
34417 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
34418 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
34419 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
34420 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
34421 echo "$as_me:$LINENO: result: yes" >&5
34422 echo "${ECHO_T}yes" >&6
34424 # FIXME - insert some real tests, host_os isn't really good enough
34427 if test -n "$STRIP" ; then
34428 striplib="$STRIP -x"
34429 echo "$as_me:$LINENO: result: yes" >&5
34430 echo "${ECHO_T}yes" >&6
34432 echo "$as_me:$LINENO: result: no" >&5
34433 echo "${ECHO_T}no" >&6
34437 echo "$as_me:$LINENO: result: no" >&5
34438 echo "${ECHO_T}no" >&6
34445 # The else clause should only fire when bootstrapping the
34446 # libtool distribution, otherwise you forgot to ship ltmain.sh
34447 # with your package, and you will get complaints that there are
34448 # no rules to generate ltmain.sh.
34449 if test -f "$ltmain"; then
34450 # See if we are running on zsh, and set the options which allow our commands through
34451 # without removal of \ escapes.
34452 if test -n "${ZSH_VERSION+set}" ; then
34453 setopt NO_GLOB_SUBST
34455 # Now quote all the things that may contain metacharacters while being
34456 # careful not to overquote the AC_SUBSTed values. We take copies of the
34457 # variables and quote the copies for generation of the libtool script.
34458 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
34460 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
34461 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
34462 deplibs_check_method reload_flag reload_cmds need_locks \
34463 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
34464 lt_cv_sys_global_symbol_to_c_name_address \
34465 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
34466 old_postinstall_cmds old_postuninstall_cmds \
34470 lt_prog_compiler_wl_F77 \
34471 lt_prog_compiler_pic_F77 \
34472 lt_prog_compiler_static_F77 \
34473 lt_prog_compiler_no_builtin_flag_F77 \
34474 export_dynamic_flag_spec_F77 \
34475 thread_safe_flag_spec_F77 \
34476 whole_archive_flag_spec_F77 \
34477 enable_shared_with_static_runtimes_F77 \
34478 old_archive_cmds_F77 \
34479 old_archive_from_new_cmds_F77 \
34480 predep_objects_F77 \
34481 postdep_objects_F77 \
34484 compiler_lib_search_path_F77 \
34486 archive_expsym_cmds_F77 \
34487 postinstall_cmds_F77 \
34488 postuninstall_cmds_F77 \
34489 old_archive_from_expsyms_cmds_F77 \
34490 allow_undefined_flag_F77 \
34491 no_undefined_flag_F77 \
34492 export_symbols_cmds_F77 \
34493 hardcode_libdir_flag_spec_F77 \
34494 hardcode_libdir_flag_spec_ld_F77 \
34495 hardcode_libdir_separator_F77 \
34496 hardcode_automatic_F77 \
34498 module_expsym_cmds_F77 \
34499 lt_cv_prog_compiler_c_o_F77 \
34500 exclude_expsyms_F77 \
34501 include_expsyms_F77; do
34504 old_archive_cmds_F77 | \
34505 old_archive_from_new_cmds_F77 | \
34506 archive_cmds_F77 | \
34507 archive_expsym_cmds_F77 | \
34508 module_cmds_F77 | \
34509 module_expsym_cmds_F77 | \
34510 old_archive_from_expsyms_cmds_F77 | \
34511 export_symbols_cmds_F77 | \
34512 extract_expsyms_cmds | reload_cmds | finish_cmds | \
34513 postinstall_cmds | postuninstall_cmds | \
34514 old_postinstall_cmds | old_postuninstall_cmds | \
34515 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
34516 # Double-quote double-evaled strings.
34517 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
34520 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
34526 *'\$0 --fallback-echo"')
34527 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
34533 cat <<__EOF__ >> "$cfgfile"
34534 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
34536 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34538 # Shell to use when invoking shell scripts.
34541 # Whether or not to build shared libraries.
34542 build_libtool_libs=$enable_shared
34544 # Whether or not to build static libraries.
34545 build_old_libs=$enable_static
34547 # Whether or not to add -lc for building shared libraries.
34548 build_libtool_need_lc=$archive_cmds_need_lc_F77
34550 # Whether or not to disallow shared libs when runtime libs are static
34551 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
34553 # Whether or not to optimize for fast installation.
34554 fast_install=$enable_fast_install
34557 host_alias=$host_alias
34561 # The build system.
34562 build_alias=$build_alias
34566 # An echo program that does not interpret backslashes.
34571 AR_FLAGS=$lt_AR_FLAGS
34576 # A language-specific compiler.
34577 CC=$lt_compiler_F77
34579 # Is the compiler the GNU C compiler?
34585 # The linker used to build libraries.
34588 # Whether we need hard or soft links.
34591 # A BSD-compatible nm program.
34594 # A symbol stripping program
34597 # Used to examine libraries when file_magic_cmd begins "file"
34598 MAGIC_CMD=$MAGIC_CMD
34600 # Used on cygwin: DLL creation program.
34603 # Used on cygwin: object dumper.
34606 # Used on cygwin: assembler.
34609 # The name of the directory that contains temporary libtool files.
34612 # How to create reloadable object files.
34613 reload_flag=$lt_reload_flag
34614 reload_cmds=$lt_reload_cmds
34616 # How to pass a linker flag through the compiler.
34617 wl=$lt_lt_prog_compiler_wl_F77
34619 # Object file suffix (normally "o").
34620 objext="$ac_objext"
34622 # Old archive suffix (normally "a").
34625 # Shared library suffix (normally ".so").
34626 shrext_cmds='$shrext_cmds'
34628 # Executable file suffix (normally "").
34631 # Additional compiler flags for building library objects.
34632 pic_flag=$lt_lt_prog_compiler_pic_F77
34635 # What is the maximum length of a command?
34636 max_cmd_len=$lt_cv_sys_max_cmd_len
34638 # Does compiler simultaneously support -c and -o options?
34639 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
34641 # Must we lock files when doing compilation?
34642 need_locks=$lt_need_locks
34644 # Do we need the lib prefix for modules?
34645 need_lib_prefix=$need_lib_prefix
34647 # Do we need a version for libraries?
34648 need_version=$need_version
34650 # Whether dlopen is supported.
34651 dlopen_support=$enable_dlopen
34653 # Whether dlopen of programs is supported.
34654 dlopen_self=$enable_dlopen_self
34656 # Whether dlopen of statically linked programs is supported.
34657 dlopen_self_static=$enable_dlopen_self_static
34659 # Compiler flag to prevent dynamic linking.
34660 link_static_flag=$lt_lt_prog_compiler_static_F77
34662 # Compiler flag to turn off builtin functions.
34663 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
34665 # Compiler flag to allow reflexive dlopens.
34666 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
34668 # Compiler flag to generate shared objects directly from archives.
34669 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
34671 # Compiler flag to generate thread-safe objects.
34672 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
34674 # Library versioning type.
34675 version_type=$version_type
34677 # Format of library name prefix.
34678 libname_spec=$lt_libname_spec
34680 # List of archive names. First name is the real one, the rest are links.
34681 # The last name is the one that the linker finds with -lNAME.
34682 library_names_spec=$lt_library_names_spec
34684 # The coded name of the library, if different from the real name.
34685 soname_spec=$lt_soname_spec
34687 # Commands used to build and install an old-style archive.
34689 old_archive_cmds=$lt_old_archive_cmds_F77
34690 old_postinstall_cmds=$lt_old_postinstall_cmds
34691 old_postuninstall_cmds=$lt_old_postuninstall_cmds
34693 # Create an old-style archive from a shared archive.
34694 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
34696 # Create a temporary old-style archive to link instead of a shared archive.
34697 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
34699 # Commands used to build and install a shared archive.
34700 archive_cmds=$lt_archive_cmds_F77
34701 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
34702 postinstall_cmds=$lt_postinstall_cmds
34703 postuninstall_cmds=$lt_postuninstall_cmds
34705 # Commands used to build a loadable module (assumed same as above if empty)
34706 module_cmds=$lt_module_cmds_F77
34707 module_expsym_cmds=$lt_module_expsym_cmds_F77
34709 # Commands to strip libraries.
34710 old_striplib=$lt_old_striplib
34711 striplib=$lt_striplib
34713 # Dependencies to place before the objects being linked to create a
34715 predep_objects=$lt_predep_objects_F77
34717 # Dependencies to place after the objects being linked to create a
34719 postdep_objects=$lt_postdep_objects_F77
34721 # Dependencies to place before the objects being linked to create a
34723 predeps=$lt_predeps_F77
34725 # Dependencies to place after the objects being linked to create a
34727 postdeps=$lt_postdeps_F77
34729 # The library search path used internally by the compiler when linking
34730 # a shared library.
34731 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
34733 # Method to check whether dependent libraries are shared objects.
34734 deplibs_check_method=$lt_deplibs_check_method
34736 # Command to use when deplibs_check_method == file_magic.
34737 file_magic_cmd=$lt_file_magic_cmd
34739 # Flag that allows shared libraries with undefined symbols to be built.
34740 allow_undefined_flag=$lt_allow_undefined_flag_F77
34742 # Flag that forces no undefined symbols.
34743 no_undefined_flag=$lt_no_undefined_flag_F77
34745 # Commands used to finish a libtool library installation in a directory.
34746 finish_cmds=$lt_finish_cmds
34748 # Same as above, but a single script fragment to be evaled but not shown.
34749 finish_eval=$lt_finish_eval
34751 # Take the output of nm and produce a listing of raw symbols and C names.
34752 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34754 # Transform the output of nm in a proper C declaration
34755 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34757 # Transform the output of nm in a C name address pair
34758 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34760 # This is the shared library runtime path variable.
34761 runpath_var=$runpath_var
34763 # This is the shared library path variable.
34764 shlibpath_var=$shlibpath_var
34766 # Is shlibpath searched before the hard-coded library search path?
34767 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34769 # How to hardcode a shared library path into an executable.
34770 hardcode_action=$hardcode_action_F77
34772 # Whether we should hardcode library paths into libraries.
34773 hardcode_into_libs=$hardcode_into_libs
34775 # Flag to hardcode \$libdir into a binary during linking.
34776 # This must work even if \$libdir does not exist.
34777 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
34779 # If ld is used when linking, flag to hardcode \$libdir into
34780 # a binary during linking. This must work even if \$libdir does
34782 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
34784 # Whether we need a single -rpath flag with a separated argument.
34785 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
34787 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
34788 # resulting binary.
34789 hardcode_direct=$hardcode_direct_F77
34791 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
34792 # resulting binary.
34793 hardcode_minus_L=$hardcode_minus_L_F77
34795 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
34796 # the resulting binary.
34797 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
34799 # Set to yes if building a shared library automatically hardcodes DIR into the library
34800 # and all subsequent libraries and executables linked against it.
34801 hardcode_automatic=$hardcode_automatic_F77
34803 # Variables whose values should be saved in libtool wrapper scripts and
34804 # restored at relink time.
34805 variables_saved_for_relink="$variables_saved_for_relink"
34807 # Whether libtool must link a program against all its dependency libraries.
34808 link_all_deplibs=$link_all_deplibs_F77
34810 # Compile-time system search path for libraries
34811 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34813 # Run-time system search path for libraries
34814 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34816 # Fix the shell variable \$srcfile for the compiler.
34817 fix_srcfile_path="$fix_srcfile_path_F77"
34819 # Set to yes if exported symbols are required.
34820 always_export_symbols=$always_export_symbols_F77
34822 # The commands to list exported symbols.
34823 export_symbols_cmds=$lt_export_symbols_cmds_F77
34825 # The commands to extract the exported symbol list from a shared archive.
34826 extract_expsyms_cmds=$lt_extract_expsyms_cmds
34828 # Symbols that should not be listed in the preloaded symbols.
34829 exclude_expsyms=$lt_exclude_expsyms_F77
34831 # Symbols that must always be exported.
34832 include_expsyms=$lt_include_expsyms_F77
34834 # ### END LIBTOOL TAG CONFIG: $tagname
34840 # If there is no Makefile yet, we rely on a make rule to execute
34841 # `config.status --recheck' to rerun these tests and create the
34842 # libtool script then.
34843 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
34844 if test -f "$ltmain_in"; then
34845 test -f Makefile && make "$ltmain"
34851 ac_cpp='$CPP $CPPFLAGS'
34852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34864 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
34868 # Source file extension for Java test sources.
34871 # Object file extension for compiled Java test sources.
34875 # Code to be used in simple compile tests
34876 lt_simple_compile_test_code="class foo {}\n"
34878 # Code to be used in simple link tests
34879 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
34881 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
34883 # If no C compiler was specified, use CC.
34886 # Allow CC to be a program name with arguments.
34890 # save warnings/boilerplate of simple test code
34891 ac_outfile=conftest.$ac_objext
34892 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
34893 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
34894 _lt_compiler_boilerplate=`cat conftest.err`
34897 ac_outfile=conftest.$ac_objext
34898 printf "$lt_simple_link_test_code" >conftest.$ac_ext
34899 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
34900 _lt_linker_boilerplate=`cat conftest.err`
34904 # Allow CC to be a program name with arguments.
34909 for cc_temp in $compiler""; do
34911 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
34912 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
34917 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
34920 # GCJ did not exist at the time GCC didn't implicitly link libc in.
34921 archive_cmds_need_lc_GCJ=no
34923 old_archive_cmds_GCJ=$old_archive_cmds
34926 ## There is no encapsulation within the following macros, do not change
34927 ## the running order or otherwise move them around unless you know exactly
34928 ## what you are doing...
34930 lt_prog_compiler_no_builtin_flag_GCJ=
34932 if test "$GCC" = yes; then
34933 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
34936 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
34937 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
34938 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
34939 echo $ECHO_N "(cached) $ECHO_C" >&6
34941 lt_cv_prog_compiler_rtti_exceptions=no
34942 ac_outfile=conftest.$ac_objext
34943 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
34944 lt_compiler_flag="-fno-rtti -fno-exceptions"
34945 # Insert the option either (1) after the last *FLAGS variable, or
34946 # (2) before a word containing "conftest.", or (3) at the end.
34947 # Note that $ac_compile itself does not contain backslashes and begins
34948 # with a dollar sign (not a hyphen), so the echo should work correctly.
34949 # The option is referenced via a variable to avoid confusing sed.
34950 lt_compile=`echo "$ac_compile" | $SED \
34951 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
34952 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
34953 -e 's:$: $lt_compiler_flag:'`
34954 (eval echo "\"\$as_me:34954: $lt_compile\"" >&5)
34955 (eval "$lt_compile" 2>conftest.err)
34957 cat conftest.err >&5
34958 echo "$as_me:34958: \$? = $ac_status" >&5
34959 if (exit $ac_status) && test -s "$ac_outfile"; then
34960 # The compiler can only warn and ignore the option if not recognized
34961 # So say no if there are warnings other than the usual output.
34962 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
34963 $SED '/^$/d' conftest.err >conftest.er2
34964 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
34965 lt_cv_prog_compiler_rtti_exceptions=yes
34971 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
34972 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
34974 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
34975 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
34982 lt_prog_compiler_wl_GCJ=
34983 lt_prog_compiler_pic_GCJ=
34984 lt_prog_compiler_static_GCJ=
34986 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
34987 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
34989 if test "$GCC" = yes; then
34990 lt_prog_compiler_wl_GCJ='-Wl,'
34991 lt_prog_compiler_static_GCJ='-static'
34995 # All AIX code is PIC.
34996 if test "$host_cpu" = ia64; then
34997 # AIX 5 now supports IA64 processor
34998 lt_prog_compiler_static_GCJ='-Bstatic'
35003 # FIXME: we need at least 68020 code to build shared libraries, but
35004 # adding the `-m68020' flag to GCC prevents building anything better,
35006 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
35009 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
35010 # PIC is the default for these OSes.
35013 mingw* | pw32* | os2*)
35014 # This hack is so that the source file can tell whether it is being
35015 # built for inclusion in a dll (and should export symbols for example).
35016 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
35019 darwin* | rhapsody*)
35020 # PIC is the default on this platform
35021 # Common symbols not allowed in MH_DYLIB files
35022 lt_prog_compiler_pic_GCJ='-fno-common'
35026 # Just because we use GCC doesn't mean we suddenly get shared libraries
35027 # on systems that don't support them.
35028 lt_prog_compiler_can_build_shared_GCJ=no
35033 if test -d /usr/nec; then
35034 lt_prog_compiler_pic_GCJ=-Kconform_pic
35039 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
35040 # not for PA HP-UX.
35046 lt_prog_compiler_pic_GCJ='-fPIC'
35052 lt_prog_compiler_pic_GCJ='-fPIC'
35056 # PORTME Check for flag to pass linker flags through the system compiler.
35059 lt_prog_compiler_wl_GCJ='-Wl,'
35060 if test "$host_cpu" = ia64; then
35061 # AIX 5 now supports IA64 processor
35062 lt_prog_compiler_static_GCJ='-Bstatic'
35064 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
35068 # PIC is the default on this platform
35069 # Common symbols not allowed in MH_DYLIB files
35070 case $cc_basename in
35072 lt_prog_compiler_pic_GCJ='-qnocommon'
35073 lt_prog_compiler_wl_GCJ='-Wl,'
35078 mingw* | pw32* | os2*)
35079 # This hack is so that the source file can tell whether it is being
35080 # built for inclusion in a dll (and should export symbols for example).
35081 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
35084 hpux9* | hpux10* | hpux11*)
35085 lt_prog_compiler_wl_GCJ='-Wl,'
35086 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
35087 # not for PA HP-UX.
35093 lt_prog_compiler_pic_GCJ='+Z'
35096 # Is there a better lt_prog_compiler_static that works with the bundled CC?
35097 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
35100 irix5* | irix6* | nonstopux*)
35101 lt_prog_compiler_wl_GCJ='-Wl,'
35102 # PIC (with -KPIC) is the default.
35103 lt_prog_compiler_static_GCJ='-non_shared'
35107 lt_prog_compiler_pic_GCJ='-KPIC'
35108 lt_prog_compiler_static_GCJ='-Bstatic'
35112 case $cc_basename in
35114 lt_prog_compiler_wl_GCJ='-Wl,'
35115 lt_prog_compiler_pic_GCJ='-KPIC'
35116 lt_prog_compiler_static_GCJ='-static'
35118 pgcc* | pgf77* | pgf90* | pgf95*)
35119 # Portland Group compilers (*not* the Pentium gcc compiler,
35120 # which looks to be a dead project)
35121 lt_prog_compiler_wl_GCJ='-Wl,'
35122 lt_prog_compiler_pic_GCJ='-fpic'
35123 lt_prog_compiler_static_GCJ='-Bstatic'
35126 lt_prog_compiler_wl_GCJ='-Wl,'
35127 # All Alpha code is PIC.
35128 lt_prog_compiler_static_GCJ='-non_shared'
35133 osf3* | osf4* | osf5*)
35134 lt_prog_compiler_wl_GCJ='-Wl,'
35135 # All OSF/1 code is PIC.
35136 lt_prog_compiler_static_GCJ='-non_shared'
35140 lt_prog_compiler_pic_GCJ='-Kpic'
35141 lt_prog_compiler_static_GCJ='-dn'
35145 lt_prog_compiler_pic_GCJ='-KPIC'
35146 lt_prog_compiler_static_GCJ='-Bstatic'
35147 case $cc_basename in
35148 f77* | f90* | f95*)
35149 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
35151 lt_prog_compiler_wl_GCJ='-Wl,';;
35156 lt_prog_compiler_wl_GCJ='-Qoption ld '
35157 lt_prog_compiler_pic_GCJ='-PIC'
35158 lt_prog_compiler_static_GCJ='-Bstatic'
35161 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
35162 lt_prog_compiler_wl_GCJ='-Wl,'
35163 lt_prog_compiler_pic_GCJ='-KPIC'
35164 lt_prog_compiler_static_GCJ='-Bstatic'
35168 if test -d /usr/nec ;then
35169 lt_prog_compiler_pic_GCJ='-Kconform_pic'
35170 lt_prog_compiler_static_GCJ='-Bstatic'
35175 lt_prog_compiler_wl_GCJ='-Wl,'
35176 lt_prog_compiler_can_build_shared_GCJ=no
35180 lt_prog_compiler_pic_GCJ='-pic'
35181 lt_prog_compiler_static_GCJ='-Bstatic'
35185 lt_prog_compiler_can_build_shared_GCJ=no
35190 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
35191 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
35194 # Check to make sure the PIC flag actually works.
35196 if test -n "$lt_prog_compiler_pic_GCJ"; then
35198 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
35199 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
35200 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
35201 echo $ECHO_N "(cached) $ECHO_C" >&6
35203 lt_prog_compiler_pic_works_GCJ=no
35204 ac_outfile=conftest.$ac_objext
35205 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
35206 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
35207 # Insert the option either (1) after the last *FLAGS variable, or
35208 # (2) before a word containing "conftest.", or (3) at the end.
35209 # Note that $ac_compile itself does not contain backslashes and begins
35210 # with a dollar sign (not a hyphen), so the echo should work correctly.
35211 # The option is referenced via a variable to avoid confusing sed.
35212 lt_compile=`echo "$ac_compile" | $SED \
35213 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
35214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
35215 -e 's:$: $lt_compiler_flag:'`
35216 (eval echo "\"\$as_me:35216: $lt_compile\"" >&5)
35217 (eval "$lt_compile" 2>conftest.err)
35219 cat conftest.err >&5
35220 echo "$as_me:35220: \$? = $ac_status" >&5
35221 if (exit $ac_status) && test -s "$ac_outfile"; then
35222 # The compiler can only warn and ignore the option if not recognized
35223 # So say no if there are warnings other than the usual output.
35224 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
35225 $SED '/^$/d' conftest.err >conftest.er2
35226 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
35227 lt_prog_compiler_pic_works_GCJ=yes
35233 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
35234 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
35236 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
35237 case $lt_prog_compiler_pic_GCJ in
35239 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
35242 lt_prog_compiler_pic_GCJ=
35243 lt_prog_compiler_can_build_shared_GCJ=no
35248 # For platforms which do not support PIC, -DPIC is meaningless:
35250 lt_prog_compiler_pic_GCJ=
35253 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
35257 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
35258 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
35259 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
35260 echo $ECHO_N "(cached) $ECHO_C" >&6
35262 lt_cv_prog_compiler_c_o_GCJ=no
35263 $rm -r conftest 2>/dev/null
35267 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
35269 lt_compiler_flag="-o out/conftest2.$ac_objext"
35270 # Insert the option either (1) after the last *FLAGS variable, or
35271 # (2) before a word containing "conftest.", or (3) at the end.
35272 # Note that $ac_compile itself does not contain backslashes and begins
35273 # with a dollar sign (not a hyphen), so the echo should work correctly.
35274 lt_compile=`echo "$ac_compile" | $SED \
35275 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
35276 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
35277 -e 's:$: $lt_compiler_flag:'`
35278 (eval echo "\"\$as_me:35278: $lt_compile\"" >&5)
35279 (eval "$lt_compile" 2>out/conftest.err)
35281 cat out/conftest.err >&5
35282 echo "$as_me:35282: \$? = $ac_status" >&5
35283 if (exit $ac_status) && test -s out/conftest2.$ac_objext
35285 # The compiler can only warn and ignore the option if not recognized
35286 # So say no if there are warnings
35287 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
35288 $SED '/^$/d' out/conftest.err >out/conftest.er2
35289 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
35290 lt_cv_prog_compiler_c_o_GCJ=yes
35295 # SGI C++ compiler will create directory out/ii_files/ for
35296 # template instantiation
35297 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
35298 $rm out/* && rmdir out
35304 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
35305 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
35308 hard_links="nottested"
35309 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
35310 # do not overwrite the value of need_locks provided by the user
35311 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
35312 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
35315 ln conftest.a conftest.b 2>/dev/null && hard_links=no
35317 ln conftest.a conftest.b 2>&5 || hard_links=no
35318 ln conftest.a conftest.b 2>/dev/null && hard_links=no
35319 echo "$as_me:$LINENO: result: $hard_links" >&5
35320 echo "${ECHO_T}$hard_links" >&6
35321 if test "$hard_links" = no; then
35322 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
35323 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
35330 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
35331 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
35334 allow_undefined_flag_GCJ=
35335 enable_shared_with_static_runtimes_GCJ=no
35337 archive_expsym_cmds_GCJ=
35338 old_archive_From_new_cmds_GCJ=
35339 old_archive_from_expsyms_cmds_GCJ=
35340 export_dynamic_flag_spec_GCJ=
35341 whole_archive_flag_spec_GCJ=
35342 thread_safe_flag_spec_GCJ=
35343 hardcode_libdir_flag_spec_GCJ=
35344 hardcode_libdir_flag_spec_ld_GCJ=
35345 hardcode_libdir_separator_GCJ=
35346 hardcode_direct_GCJ=no
35347 hardcode_minus_L_GCJ=no
35348 hardcode_shlibpath_var_GCJ=unsupported
35349 link_all_deplibs_GCJ=unknown
35350 hardcode_automatic_GCJ=no
35352 module_expsym_cmds_GCJ=
35353 always_export_symbols_GCJ=no
35354 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
35355 # include_expsyms should be a list of space-separated symbols to be *always*
35356 # included in the symbol list
35357 include_expsyms_GCJ=
35358 # exclude_expsyms can be an extended regexp of symbols to exclude
35359 # it will be wrapped by ` (' and `)$', so one must not match beginning or
35360 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
35361 # as well as any symbol that contains `d'.
35362 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
35363 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
35364 # platforms (ab)use it in PIC code, but their linkers get confused if
35365 # the symbol is explicitly referenced. Since portable code cannot
35366 # rely on this symbol name, it's probably fine to never include it in
35367 # preloaded symbol tables.
35368 extract_expsyms_cmds=
35369 # Just being paranoid about ensuring that cc_basename is set.
35370 for cc_temp in $compiler""; do
35372 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
35373 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
35378 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
35381 cygwin* | mingw* | pw32*)
35382 # FIXME: the MSVC++ port hasn't been tested in a loooong time
35383 # When not using gcc, we currently assume that we are using
35384 # Microsoft Visual C++.
35385 if test "$GCC" != yes; then
35395 if test "$with_gnu_ld" = yes; then
35396 # If archive_cmds runs LD, not CC, wlarc should be empty
35399 # Set some defaults for GNU ld with shared library support. These
35400 # are reset later if shared libraries are not supported. Putting them
35401 # here allows them to be overridden if necessary.
35402 runpath_var=LD_RUN_PATH
35403 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
35404 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
35405 # ancient GNU ld didn't support --whole-archive et. al.
35406 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
35407 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
35409 whole_archive_flag_spec_GCJ=
35411 supports_anon_versioning=no
35412 case `$LD -v 2>/dev/null` in
35413 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
35414 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
35415 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
35416 *\ 2.11.*) ;; # other 2.11 versions
35417 *) supports_anon_versioning=yes ;;
35420 # See if GNU ld supports shared libraries.
35422 aix3* | aix4* | aix5*)
35423 # On AIX/PPC, the GNU linker is very broken
35424 if test "$host_cpu" != ia64; then
35428 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
35429 *** to be unable to reliably create shared libraries on AIX.
35430 *** Therefore, libtool is disabling shared libraries support. If you
35431 *** really care for shared libraries, you may want to modify your PATH
35432 *** so that a non-GNU linker is found, and then restart.
35439 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
35440 hardcode_libdir_flag_spec_GCJ='-L$libdir'
35441 hardcode_minus_L_GCJ=yes
35443 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
35444 # that the semantics of dynamic libraries on AmigaOS, at least up
35445 # to version 4, is to share data among multiple programs linked
35446 # with the same dynamic library. Since this doesn't match the
35447 # behavior of shared libraries on other platforms, we can't use
35453 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
35454 allow_undefined_flag_GCJ=unsupported
35455 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
35456 # support --undefined. This deserves some investigation. FIXME
35457 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
35463 cygwin* | mingw* | pw32*)
35464 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
35465 # as there is no search path for DLLs.
35466 hardcode_libdir_flag_spec_GCJ='-L$libdir'
35467 allow_undefined_flag_GCJ=unsupported
35468 always_export_symbols_GCJ=no
35469 enable_shared_with_static_runtimes_GCJ=yes
35470 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
35472 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
35473 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
35474 # If the export-symbols file already is a .def file (1st line
35475 # is EXPORTS), use it as is; otherwise, prepend...
35476 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
35477 cp $export_symbols $output_objdir/$soname.def;
35479 echo EXPORTS > $output_objdir/$soname.def;
35480 cat $export_symbols >> $output_objdir/$soname.def;
35482 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
35489 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
35491 case $cc_basename,$host_cpu in
35492 pgcc*) # Portland Group C compiler
35493 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
35494 tmp_addflag=' $pic_flag'
35496 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
35497 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
35498 tmp_addflag=' $pic_flag -Mnomain' ;;
35499 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
35500 tmp_addflag=' -i_dynamic' ;;
35501 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
35502 tmp_addflag=' -i_dynamic -nofor_main' ;;
35503 ifc* | ifort*) # Intel Fortran compiler
35504 tmp_addflag=' -nofor_main' ;;
35506 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
35508 if test $supports_anon_versioning = yes; then
35509 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
35510 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
35511 $echo "local: *; };" >> $output_objdir/$libname.ver~
35512 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
35520 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
35521 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
35524 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
35525 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
35530 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
35534 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
35535 *** create shared libraries on Solaris systems. Therefore, libtool
35536 *** is disabling shared libraries support. We urge you to upgrade GNU
35537 *** binutils to release 2.9.1 or newer. Another option is to modify
35538 *** your PATH or compiler configuration so that the native linker is
35539 *** used, and then restart.
35542 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
35543 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
35544 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
35551 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
35553 hardcode_direct_GCJ=yes
35554 hardcode_shlibpath_var_GCJ=no
35558 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
35559 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
35560 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
35567 if test "$ld_shlibs_GCJ" = no; then
35569 hardcode_libdir_flag_spec_GCJ=
35570 export_dynamic_flag_spec_GCJ=
35571 whole_archive_flag_spec_GCJ=
35574 # PORTME fill in a description of your system's linker (not GNU ld)
35577 allow_undefined_flag_GCJ=unsupported
35578 always_export_symbols_GCJ=yes
35579 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
35580 # Note: this linker hardcodes the directories in LIBPATH if there
35581 # are no directories specified by -L.
35582 hardcode_minus_L_GCJ=yes
35583 if test "$GCC" = yes && test -z "$link_static_flag"; then
35584 # Neither direct hardcoding nor static linking is supported with a
35586 hardcode_direct_GCJ=unsupported
35591 if test "$host_cpu" = ia64; then
35592 # On IA64, the linker does run time linking by default, so we don't
35593 # have to do anything special.
35594 aix_use_runtimelinking=no
35595 exp_sym_flag='-Bexport'
35598 # If we're using GNU nm, then we don't want the "-C" option.
35599 # -C means demangle to AIX nm, but means don't demangle with GNU nm
35600 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
35601 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
35603 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
35605 aix_use_runtimelinking=no
35607 # Test if we are trying to use run time linking or normal
35608 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
35609 # need to do runtime linking.
35610 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
35611 for ld_flag in $LDFLAGS; do
35612 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
35613 aix_use_runtimelinking=yes
35619 exp_sym_flag='-bexport'
35620 no_entry_flag='-bnoentry'
35623 # When large executables or shared objects are built, AIX ld can
35624 # have problems creating the table of contents. If linking a library
35625 # or program results in "error TOC overflow" add -mminimal-toc to
35626 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
35627 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
35629 archive_cmds_GCJ=''
35630 hardcode_direct_GCJ=yes
35631 hardcode_libdir_separator_GCJ=':'
35632 link_all_deplibs_GCJ=yes
35634 if test "$GCC" = yes; then
35635 case $host_os in aix4.[012]|aix4.[012].*)
35636 # We only want to do this on AIX 4.2 and lower, the check
35637 # below for broken collect2 doesn't work under 4.3+
35638 collect2name=`${CC} -print-prog-name=collect2`
35639 if test -f "$collect2name" && \
35640 strings "$collect2name" | grep resolve_lib_name >/dev/null
35642 # We have reworked collect2
35643 hardcode_direct_GCJ=yes
35645 # We have old collect2
35646 hardcode_direct_GCJ=unsupported
35647 # It fails to find uninstalled libraries when the uninstalled
35648 # path is not listed in the libpath. Setting hardcode_minus_L
35649 # to unsupported forces relinking
35650 hardcode_minus_L_GCJ=yes
35651 hardcode_libdir_flag_spec_GCJ='-L$libdir'
35652 hardcode_libdir_separator_GCJ=
35655 shared_flag='-shared'
35656 if test "$aix_use_runtimelinking" = yes; then
35657 shared_flag="$shared_flag "'${wl}-G'
35661 if test "$host_cpu" = ia64; then
35662 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
35663 # chokes on -Wl,-G. The following line is correct:
35666 if test "$aix_use_runtimelinking" = yes; then
35667 shared_flag='${wl}-G'
35669 shared_flag='${wl}-bM:SRE'
35674 # It seems that -bexpall does not export symbols beginning with
35675 # underscore (_), so it is better to generate a list of symbols to export.
35676 always_export_symbols_GCJ=yes
35677 if test "$aix_use_runtimelinking" = yes; then
35678 # Warning - without using the other runtime loading flags (-brtl),
35679 # -berok will link without error, but may produce a broken library.
35680 allow_undefined_flag_GCJ='-berok'
35681 # Determine the default libpath from the value encoded in an empty executable.
35682 cat >conftest.$ac_ext <<_ACEOF
35685 cat confdefs.h >>conftest.$ac_ext
35686 cat >>conftest.$ac_ext <<_ACEOF
35687 /* end confdefs.h. */
35697 rm -f conftest.$ac_objext conftest$ac_exeext
35698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35699 (eval $ac_link) 2>conftest.er1
35701 grep -v '^ *+' conftest.er1 >conftest.err
35703 cat conftest.err >&5
35704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35705 (exit $ac_status); } &&
35706 { ac_try='test -z "$ac_c_werror_flag"
35707 || test ! -s conftest.err'
35708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35709 (eval $ac_try) 2>&5
35711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35712 (exit $ac_status); }; } &&
35713 { ac_try='test -s conftest$ac_exeext'
35714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35715 (eval $ac_try) 2>&5
35717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35718 (exit $ac_status); }; }; then
35720 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
35722 # Check for a 64-bit object if we didn't find anything.
35723 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
35726 echo "$as_me: failed program was:" >&5
35727 sed 's/^/| /' conftest.$ac_ext >&5
35730 rm -f conftest.err conftest.$ac_objext \
35731 conftest$ac_exeext conftest.$ac_ext
35732 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
35734 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
35735 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
35737 if test "$host_cpu" = ia64; then
35738 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
35739 allow_undefined_flag_GCJ="-z nodefs"
35740 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
35742 # Determine the default libpath from the value encoded in an empty executable.
35743 cat >conftest.$ac_ext <<_ACEOF
35746 cat confdefs.h >>conftest.$ac_ext
35747 cat >>conftest.$ac_ext <<_ACEOF
35748 /* end confdefs.h. */
35758 rm -f conftest.$ac_objext conftest$ac_exeext
35759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35760 (eval $ac_link) 2>conftest.er1
35762 grep -v '^ *+' conftest.er1 >conftest.err
35764 cat conftest.err >&5
35765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35766 (exit $ac_status); } &&
35767 { ac_try='test -z "$ac_c_werror_flag"
35768 || test ! -s conftest.err'
35769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35770 (eval $ac_try) 2>&5
35772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35773 (exit $ac_status); }; } &&
35774 { ac_try='test -s conftest$ac_exeext'
35775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35776 (eval $ac_try) 2>&5
35778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35779 (exit $ac_status); }; }; then
35781 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
35783 # Check for a 64-bit object if we didn't find anything.
35784 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
35787 echo "$as_me: failed program was:" >&5
35788 sed 's/^/| /' conftest.$ac_ext >&5
35791 rm -f conftest.err conftest.$ac_objext \
35792 conftest$ac_exeext conftest.$ac_ext
35793 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
35795 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
35796 # Warning - without using the other run time loading flags,
35797 # -berok will link without error, but may produce a broken library.
35798 no_undefined_flag_GCJ=' ${wl}-bernotok'
35799 allow_undefined_flag_GCJ=' ${wl}-berok'
35800 # -bexpall does not export symbols beginning with underscore (_)
35801 always_export_symbols_GCJ=yes
35802 # Exported symbols can be pulled into shared objects from archives
35803 whole_archive_flag_spec_GCJ=' '
35804 archive_cmds_need_lc_GCJ=yes
35805 # This is similar to how AIX traditionally builds its shared libraries.
35806 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
35812 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
35813 hardcode_libdir_flag_spec_GCJ='-L$libdir'
35814 hardcode_minus_L_GCJ=yes
35815 # see comment about different semantics on the GNU ld section
35820 export_dynamic_flag_spec_GCJ=-rdynamic
35823 cygwin* | mingw* | pw32*)
35824 # When not using gcc, we currently assume that we are using
35825 # Microsoft Visual C++.
35826 # hardcode_libdir_flag_spec is actually meaningless, as there is
35827 # no search path for DLLs.
35828 hardcode_libdir_flag_spec_GCJ=' '
35829 allow_undefined_flag_GCJ=unsupported
35830 # Tell ltmain to make .lib files, not .a files.
35832 # Tell ltmain to make .dll files, not .so files.
35834 # FIXME: Setting linknames here is a bad hack.
35835 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
35836 # The linker will automatically build a .lib file if we build a DLL.
35837 old_archive_From_new_cmds_GCJ='true'
35838 # FIXME: Should let the user specify the lib program.
35839 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
35840 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
35841 enable_shared_with_static_runtimes_GCJ=yes
35844 darwin* | rhapsody*)
35846 rhapsody* | darwin1.[012])
35847 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
35850 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
35851 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
35853 case ${MACOSX_DEPLOYMENT_TARGET} in
35855 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
35858 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
35864 archive_cmds_need_lc_GCJ=no
35865 hardcode_direct_GCJ=no
35866 hardcode_automatic_GCJ=yes
35867 hardcode_shlibpath_var_GCJ=unsupported
35868 whole_archive_flag_spec_GCJ=''
35869 link_all_deplibs_GCJ=yes
35870 if test "$GCC" = yes ; then
35871 output_verbose_link_cmd='echo'
35872 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
35873 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
35874 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
35875 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
35876 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
35878 case $cc_basename in
35880 output_verbose_link_cmd='echo'
35881 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
35882 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
35883 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
35884 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
35885 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
35895 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
35896 hardcode_libdir_flag_spec_GCJ='-L$libdir'
35897 hardcode_shlibpath_var_GCJ=no
35904 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
35905 # support. Future versions do this automatically, but an explicit c++rt0.o
35906 # does not break anything, and helps significantly (at the cost of a little
35909 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
35910 hardcode_libdir_flag_spec_GCJ='-R$libdir'
35911 hardcode_direct_GCJ=yes
35912 hardcode_shlibpath_var_GCJ=no
35915 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
35917 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
35918 hardcode_direct_GCJ=yes
35919 hardcode_minus_L_GCJ=yes
35920 hardcode_shlibpath_var_GCJ=no
35923 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
35924 freebsd* | kfreebsd*-gnu | dragonfly*)
35925 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
35926 hardcode_libdir_flag_spec_GCJ='-R$libdir'
35927 hardcode_direct_GCJ=yes
35928 hardcode_shlibpath_var_GCJ=no
35932 if test "$GCC" = yes; then
35933 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
35935 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
35937 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
35938 hardcode_libdir_separator_GCJ=:
35939 hardcode_direct_GCJ=yes
35941 # hardcode_minus_L: Not really in the search PATH,
35942 # but as the default location of the library.
35943 hardcode_minus_L_GCJ=yes
35944 export_dynamic_flag_spec_GCJ='${wl}-E'
35948 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
35951 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
35954 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
35960 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
35963 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
35967 if test "$with_gnu_ld" = no; then
35970 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
35971 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
35972 hardcode_libdir_separator_GCJ=:
35973 hardcode_direct_GCJ=no
35974 hardcode_shlibpath_var_GCJ=no
35977 hardcode_libdir_flag_spec_GCJ='-L$libdir'
35978 hardcode_direct_GCJ=no
35979 hardcode_shlibpath_var_GCJ=no
35981 # hardcode_minus_L: Not really in the search PATH,
35982 # but as the default location of the library.
35983 hardcode_minus_L_GCJ=yes
35986 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
35987 hardcode_libdir_separator_GCJ=:
35988 hardcode_direct_GCJ=yes
35989 export_dynamic_flag_spec_GCJ='${wl}-E'
35991 # hardcode_minus_L: Not really in the search PATH,
35992 # but as the default location of the library.
35993 hardcode_minus_L_GCJ=yes
35999 irix5* | irix6* | nonstopux*)
36000 if test "$GCC" = yes; then
36001 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
36003 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
36004 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
36006 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
36007 hardcode_libdir_separator_GCJ=:
36008 link_all_deplibs_GCJ=yes
36012 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
36013 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
36015 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
36017 hardcode_libdir_flag_spec_GCJ='-R$libdir'
36018 hardcode_direct_GCJ=yes
36019 hardcode_shlibpath_var_GCJ=no
36023 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36024 hardcode_direct_GCJ=yes
36025 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
36026 hardcode_libdir_separator_GCJ=:
36027 hardcode_shlibpath_var_GCJ=no
36031 hardcode_direct_GCJ=yes
36032 hardcode_shlibpath_var_GCJ=no
36033 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
36034 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
36035 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
36036 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
36037 export_dynamic_flag_spec_GCJ='${wl}-E'
36040 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
36041 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
36042 hardcode_libdir_flag_spec_GCJ='-R$libdir'
36045 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
36046 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
36053 hardcode_libdir_flag_spec_GCJ='-L$libdir'
36054 hardcode_minus_L_GCJ=yes
36055 allow_undefined_flag_GCJ=unsupported
36056 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
36057 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
36061 if test "$GCC" = yes; then
36062 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
36063 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
36065 allow_undefined_flag_GCJ=' -expect_unresolved \*'
36066 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
36068 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
36069 hardcode_libdir_separator_GCJ=:
36072 osf4* | osf5*) # as osf3* with the addition of -msym flag
36073 if test "$GCC" = yes; then
36074 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
36075 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
36076 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
36078 allow_undefined_flag_GCJ=' -expect_unresolved \*'
36079 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
36080 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
36081 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
36083 # Both c and cxx compiler support -rpath directly
36084 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
36086 hardcode_libdir_separator_GCJ=:
36090 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36091 hardcode_shlibpath_var_GCJ=no
36092 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
36093 runpath_var=LD_RUN_PATH
36094 hardcode_runpath_var=yes
36098 no_undefined_flag_GCJ=' -z text'
36099 if test "$GCC" = yes; then
36101 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
36102 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
36103 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
36106 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
36107 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
36108 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
36110 hardcode_libdir_flag_spec_GCJ='-R$libdir'
36111 hardcode_shlibpath_var_GCJ=no
36113 solaris2.[0-5] | solaris2.[0-5].*) ;;
36115 # The compiler driver will combine linker options so we
36116 # cannot just pass the convience library names through
36117 # without $wl, iff we do not link with $LD.
36118 # Luckily, gcc supports the same syntax we need for Sun Studio.
36119 # Supported since Solaris 2.6 (maybe 2.5.1?)
36122 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
36124 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
36127 link_all_deplibs_GCJ=yes
36131 if test "x$host_vendor" = xsequent; then
36132 # Use $CC to link under sequent, because it throws in some extra .o
36133 # files that make .init and .fini sections work.
36134 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
36136 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
36138 hardcode_libdir_flag_spec_GCJ='-L$libdir'
36139 hardcode_direct_GCJ=yes
36140 hardcode_minus_L_GCJ=yes
36141 hardcode_shlibpath_var_GCJ=no
36145 case $host_vendor in
36147 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36148 hardcode_direct_GCJ=yes # is this really true???
36151 ## LD is ld it makes a PLAMLIB
36152 ## CC just makes a GrossModule.
36153 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
36154 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
36155 hardcode_direct_GCJ=no
36158 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36159 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
36162 runpath_var='LD_RUN_PATH'
36163 hardcode_shlibpath_var_GCJ=no
36167 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36168 hardcode_shlibpath_var_GCJ=no
36169 export_dynamic_flag_spec_GCJ='-Bexport'
36173 if test -d /usr/nec; then
36174 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36175 hardcode_shlibpath_var_GCJ=no
36176 runpath_var=LD_RUN_PATH
36177 hardcode_runpath_var=yes
36183 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
36184 hardcode_direct_GCJ=yes
36185 hardcode_minus_L_GCJ=no
36186 hardcode_shlibpath_var_GCJ=no
36187 hardcode_runpath_var=yes
36188 runpath_var=LD_RUN_PATH
36191 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
36192 no_undefined_flag_GCJ='${wl}-z ${wl}text'
36193 if test "$GCC" = yes; then
36194 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
36196 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
36198 runpath_var='LD_RUN_PATH'
36199 hardcode_shlibpath_var_GCJ=no
36203 no_undefined_flag_GCJ=' -z text'
36204 # $CC -shared without GNU ld will not create a library from C++
36205 # object files and a static libstdc++, better avoid it by now
36206 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
36207 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
36208 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
36209 hardcode_libdir_flag_spec_GCJ=
36210 hardcode_shlibpath_var_GCJ=no
36211 runpath_var='LD_RUN_PATH'
36215 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36216 hardcode_libdir_flag_spec_GCJ='-L$libdir'
36217 hardcode_shlibpath_var_GCJ=no
36226 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
36227 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
36228 test "$ld_shlibs_GCJ" = no && can_build_shared=no
36230 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
36231 if test "$GCC" = yes; then
36232 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
36236 # Do we need to explicitly link libc?
36238 case "x$archive_cmds_need_lc_GCJ" in
36240 # Assume -lc should be added
36241 archive_cmds_need_lc_GCJ=yes
36243 if test "$enable_shared" = yes && test "$GCC" = yes; then
36244 case $archive_cmds_GCJ in
36246 # FIXME: we may have to deal with multi-command sequences.
36249 # Test whether the compiler implicitly links with -lc since on some
36250 # systems, -lgcc has to come before -lc. If gcc already passes -lc
36251 # to ld, don't add -lc before -lgcc.
36252 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
36253 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
36255 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
36257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36258 (eval $ac_compile) 2>&5
36260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36261 (exit $ac_status); } 2>conftest.err; then
36264 libobjs=conftest.$ac_objext
36266 wl=$lt_prog_compiler_wl_GCJ
36272 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
36273 allow_undefined_flag_GCJ=
36274 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
36275 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
36277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36278 (exit $ac_status); }
36280 archive_cmds_need_lc_GCJ=no
36282 archive_cmds_need_lc_GCJ=yes
36284 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
36286 cat conftest.err 1>&5
36289 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
36290 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
36297 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
36298 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
36299 library_names_spec=
36300 libname_spec='lib$name'
36304 postuninstall_cmds=
36308 shlibpath_overrides_runpath=unknown
36310 dynamic_linker="$host_os ld.so"
36311 sys_lib_dlsearch_path_spec="/lib /usr/lib"
36312 if test "$GCC" = yes; then
36313 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
36314 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
36315 # if the path contains ";" then we assume it to be the separator
36316 # otherwise default to the standard path separator (i.e. ":") - it is
36317 # assumed that no part of a normal pathname contains ";" but that should
36318 # okay in the real world where ";" in dirpaths is itself problematic.
36319 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
36321 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
36324 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
36326 need_lib_prefix=unknown
36327 hardcode_into_libs=no
36329 # when you set need_version to no, make sure it does not cause -set_version
36330 # flags to be left without arguments
36331 need_version=unknown
36336 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
36337 shlibpath_var=LIBPATH
36339 # AIX 3 has no versioning support, so we append a major version to the name.
36340 soname_spec='${libname}${release}${shared_ext}$major'
36347 hardcode_into_libs=yes
36348 if test "$host_cpu" = ia64; then
36349 # AIX 5 supports IA64
36350 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
36351 shlibpath_var=LD_LIBRARY_PATH
36353 # With GCC up to 2.95.x, collect2 would create an import file
36354 # for dependence libraries. The import file would start with
36355 # the line `#! .'. This would cause the generated library to
36356 # depend on `.', always an invalid library. This was fixed in
36357 # development snapshots of GCC prior to 3.0.
36359 aix4 | aix4.[01] | aix4.[01].*)
36360 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
36362 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
36365 can_build_shared=no
36369 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
36370 # soname into executable. Probably we can add versioning support to
36371 # collect2, so additional links can be useful in future.
36372 if test "$aix_use_runtimelinking" = yes; then
36373 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
36374 # instead of lib<name>.a to let people know that these are not
36375 # typical AIX shared libraries.
36376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36378 # We preserve .a as extension for shared libraries through AIX4.2
36379 # and later when we are not doing run time linking.
36380 library_names_spec='${libname}${release}.a $libname.a'
36381 soname_spec='${libname}${release}${shared_ext}$major'
36383 shlibpath_var=LIBPATH
36388 library_names_spec='$libname.ixlibrary $libname.a'
36389 # Create ${libname}_ixlibrary.a entries in /sys/libs.
36390 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'
36394 library_names_spec='${libname}${shared_ext}'
36395 dynamic_linker="$host_os ld.so"
36396 shlibpath_var=LIBRARY_PATH
36402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36403 soname_spec='${libname}${release}${shared_ext}$major'
36404 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
36405 shlibpath_var=LD_LIBRARY_PATH
36406 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
36407 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
36408 # the default ld.so.conf also contains /usr/contrib/lib and
36409 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
36410 # libtool to hard-code these into programs
36413 cygwin* | mingw* | pw32*)
36414 version_type=windows
36419 case $GCC,$host_os in
36420 yes,cygwin* | yes,mingw* | yes,pw32*)
36421 library_names_spec='$libname.dll.a'
36422 # DLL is installed to $(libdir)/../bin by postinstall_cmds
36423 postinstall_cmds='base_file=`basename \${file}`~
36424 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
36425 dldir=$destdir/`dirname \$dlpath`~
36426 test -d \$dldir || mkdir -p \$dldir~
36427 $install_prog $dir/$dlname \$dldir/$dlname~
36428 chmod a+x \$dldir/$dlname'
36429 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
36430 dlpath=$dir/\$dldll~
36432 shlibpath_overrides_runpath=yes
36436 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
36437 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
36438 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
36441 # MinGW DLLs use traditional 'lib' prefix
36442 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
36443 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
36444 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
36445 # It is most probably a Windows format PATH printed by
36446 # mingw gcc, but we are running on Cygwin. Gcc prints its search
36447 # path with ; separators, and with drive letters. We can handle the
36448 # drive letters (cygwin fileutils understands them), so leave them,
36449 # especially as we might pass files found there to a mingw objdump,
36450 # which wouldn't understand a cygwinified path. Ahh.
36451 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
36453 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
36457 # pw32 DLLs use 'pw' prefix rather than 'lib'
36458 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
36464 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
36467 dynamic_linker='Win32 ld.exe'
36468 # FIXME: first we should search . and the directory the executable is in
36472 darwin* | rhapsody*)
36473 dynamic_linker="$host_os dyld"
36474 version_type=darwin
36477 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
36478 soname_spec='${libname}${release}${major}$shared_ext'
36479 shlibpath_overrides_runpath=yes
36480 shlibpath_var=DYLD_LIBRARY_PATH
36481 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
36482 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
36483 if test "$GCC" = yes; then
36484 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
36486 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
36488 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
36495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
36496 soname_spec='${libname}${release}${shared_ext}$major'
36497 shlibpath_var=LD_LIBRARY_PATH
36508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
36509 soname_spec='${libname}${release}${shared_ext}$major'
36510 shlibpath_var=LD_LIBRARY_PATH
36511 shlibpath_overrides_runpath=no
36512 hardcode_into_libs=yes
36513 dynamic_linker='GNU ld.so'
36516 freebsd* | dragonfly*)
36517 # DragonFly does not have aout. When/if they implement a new
36518 # versioning mechanism, adjust this.
36519 if test -x /usr/bin/objformat; then
36520 objformat=`/usr/bin/objformat`
36523 freebsd[123]*) objformat=aout ;;
36524 *) objformat=elf ;;
36527 version_type=freebsd-$objformat
36528 case $version_type in
36530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
36535 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
36539 shlibpath_var=LD_LIBRARY_PATH
36542 shlibpath_overrides_runpath=yes
36544 freebsd3.[01]* | freebsdelf3.[01]*)
36545 shlibpath_overrides_runpath=yes
36546 hardcode_into_libs=yes
36549 shlibpath_overrides_runpath=no
36550 hardcode_into_libs=yes
36559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
36560 soname_spec='${libname}${release}${shared_ext}$major'
36561 shlibpath_var=LD_LIBRARY_PATH
36562 hardcode_into_libs=yes
36565 hpux9* | hpux10* | hpux11*)
36566 # Give a soname corresponding to the major version so that dld.sl refuses to
36567 # link against other versions.
36574 hardcode_into_libs=yes
36575 dynamic_linker="$host_os dld.so"
36576 shlibpath_var=LD_LIBRARY_PATH
36577 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
36578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36579 soname_spec='${libname}${release}${shared_ext}$major'
36580 if test "X$HPUX_IA64_MODE" = X32; then
36581 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
36583 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
36585 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
36589 hardcode_into_libs=yes
36590 dynamic_linker="$host_os dld.sl"
36591 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
36592 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
36593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36594 soname_spec='${libname}${release}${shared_ext}$major'
36595 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
36596 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
36600 dynamic_linker="$host_os dld.sl"
36601 shlibpath_var=SHLIB_PATH
36602 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
36603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36604 soname_spec='${libname}${release}${shared_ext}$major'
36607 # HP-UX runs *really* slowly unless shared libraries are mode 555.
36608 postinstall_cmds='chmod 555 $lib'
36611 irix5* | irix6* | nonstopux*)
36613 nonstopux*) version_type=nonstopux ;;
36615 if test "$lt_cv_prog_gnu_ld" = yes; then
36623 soname_spec='${libname}${release}${shared_ext}$major'
36624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
36626 irix5* | nonstopux*)
36627 libsuff= shlibsuff=
36630 case $LD in # libtool.m4 will add one of these switches to LD
36631 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
36632 libsuff= shlibsuff= libmagic=32-bit;;
36633 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
36634 libsuff=32 shlibsuff=N32 libmagic=N32;;
36635 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
36636 libsuff=64 shlibsuff=64 libmagic=64-bit;;
36637 *) libsuff= shlibsuff= libmagic=never-match;;
36641 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
36642 shlibpath_overrides_runpath=no
36643 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
36644 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
36645 hardcode_into_libs=yes
36648 # No shared lib support for Linux oldld, aout, or coff.
36649 linux*oldld* | linux*aout* | linux*coff*)
36653 # This must be Linux ELF.
36658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36659 soname_spec='${libname}${release}${shared_ext}$major'
36660 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
36661 shlibpath_var=LD_LIBRARY_PATH
36662 shlibpath_overrides_runpath=no
36663 # This implies no fast_install, which is unacceptable.
36664 # Some rework will be needed to allow for fast_install
36665 # before this can be enabled.
36666 hardcode_into_libs=yes
36668 # Append ld.so.conf contents to the search path
36669 if test -f /etc/ld.so.conf; then
36670 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
36671 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
36674 # We used to test for /lib/ld.so.1 and disable shared libraries on
36675 # powerpc, because MkLinux only supported shared libraries with the
36676 # GNU dynamic linker. Since this was broken with cross compilers,
36677 # most powerpc-linux boxes support dynamic linking these days and
36678 # people can always --disable-shared, the test was removed, and we
36679 # assume the GNU/Linux dynamic linker is in use.
36680 dynamic_linker='GNU/Linux ld.so'
36687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
36688 soname_spec='${libname}${release}${shared_ext}$major'
36689 shlibpath_var=LD_LIBRARY_PATH
36690 shlibpath_overrides_runpath=no
36691 hardcode_into_libs=yes
36692 dynamic_linker='GNU ld.so'
36699 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
36700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
36701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
36702 dynamic_linker='NetBSD (a.out) ld.so'
36704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
36705 soname_spec='${libname}${release}${shared_ext}$major'
36706 dynamic_linker='NetBSD ld.elf_so'
36708 shlibpath_var=LD_LIBRARY_PATH
36709 shlibpath_overrides_runpath=yes
36710 hardcode_into_libs=yes
36715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36716 shlibpath_var=LD_LIBRARY_PATH
36717 shlibpath_overrides_runpath=yes
36724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36725 soname_spec='${libname}${release}${shared_ext}$major'
36726 shlibpath_var=LD_LIBRARY_PATH
36727 shlibpath_overrides_runpath=yes
36733 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
36735 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
36736 *) need_version=no ;;
36738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
36739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
36740 shlibpath_var=LD_LIBRARY_PATH
36741 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
36743 openbsd2.[89] | openbsd2.[89].*)
36744 shlibpath_overrides_runpath=no
36747 shlibpath_overrides_runpath=yes
36751 shlibpath_overrides_runpath=yes
36756 libname_spec='$name'
36759 library_names_spec='$libname${shared_ext} $libname.a'
36760 dynamic_linker='OS/2 ld.exe'
36761 shlibpath_var=LIBPATH
36764 osf3* | osf4* | osf5*)
36768 soname_spec='${libname}${release}${shared_ext}$major'
36769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36770 shlibpath_var=LD_LIBRARY_PATH
36771 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
36772 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
36777 soname_spec='${libname}${release}${shared_ext}$major'
36778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36779 shlibpath_var=LD_LIBRARY_PATH
36786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36787 soname_spec='${libname}${release}${shared_ext}$major'
36788 shlibpath_var=LD_LIBRARY_PATH
36789 shlibpath_overrides_runpath=yes
36790 hardcode_into_libs=yes
36791 # ldd complains unless libraries are executable
36792 postinstall_cmds='chmod +x $lib'
36797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
36798 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
36799 shlibpath_var=LD_LIBRARY_PATH
36800 shlibpath_overrides_runpath=yes
36801 if test "$with_gnu_ld" = yes; then
36807 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
36809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36810 soname_spec='${libname}${release}${shared_ext}$major'
36811 shlibpath_var=LD_LIBRARY_PATH
36812 case $host_vendor in
36814 shlibpath_overrides_runpath=no
36816 export_dynamic_flag_spec='${wl}-Blargedynsym'
36817 runpath_var=LD_RUN_PATH
36825 shlibpath_overrides_runpath=no
36826 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
36832 if test -d /usr/nec ;then
36834 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
36835 soname_spec='$libname${shared_ext}.$major'
36836 shlibpath_var=LD_LIBRARY_PATH
36842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36843 soname_spec='${libname}${release}${shared_ext}$major'
36844 shlibpath_var=LD_LIBRARY_PATH
36851 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
36852 echo "${ECHO_T}$dynamic_linker" >&6
36853 test "$dynamic_linker" = no && can_build_shared=no
36855 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
36856 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
36857 hardcode_action_GCJ=
36858 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
36859 test -n "$runpath_var_GCJ" || \
36860 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
36862 # We can hardcode non-existant directories.
36863 if test "$hardcode_direct_GCJ" != no &&
36864 # If the only mechanism to avoid hardcoding is shlibpath_var, we
36865 # have to relink, otherwise we might link with an installed library
36866 # when we should be linking with a yet-to-be-installed one
36867 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
36868 test "$hardcode_minus_L_GCJ" != no; then
36869 # Linking always hardcodes the temporary library directory.
36870 hardcode_action_GCJ=relink
36872 # We can link without hardcoding, and we can hardcode nonexisting dirs.
36873 hardcode_action_GCJ=immediate
36876 # We cannot hardcode anything, or else we can only hardcode existing
36878 hardcode_action_GCJ=unsupported
36880 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
36881 echo "${ECHO_T}$hardcode_action_GCJ" >&6
36883 if test "$hardcode_action_GCJ" = relink; then
36884 # Fast installation is not supported
36885 enable_fast_install=no
36886 elif test "$shlibpath_overrides_runpath" = yes ||
36887 test "$enable_shared" = no; then
36888 # Fast installation is not necessary
36889 enable_fast_install=needless
36894 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
36895 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
36896 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
36897 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
36898 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
36899 echo "$as_me:$LINENO: result: yes" >&5
36900 echo "${ECHO_T}yes" >&6
36902 # FIXME - insert some real tests, host_os isn't really good enough
36905 if test -n "$STRIP" ; then
36906 striplib="$STRIP -x"
36907 echo "$as_me:$LINENO: result: yes" >&5
36908 echo "${ECHO_T}yes" >&6
36910 echo "$as_me:$LINENO: result: no" >&5
36911 echo "${ECHO_T}no" >&6
36915 echo "$as_me:$LINENO: result: no" >&5
36916 echo "${ECHO_T}no" >&6
36921 if test "x$enable_dlopen" != xyes; then
36922 enable_dlopen=unknown
36923 enable_dlopen_self=unknown
36924 enable_dlopen_self_static=unknown
36931 lt_cv_dlopen="load_add_on"
36933 lt_cv_dlopen_self=yes
36937 lt_cv_dlopen="LoadLibrary"
36942 lt_cv_dlopen="dlopen"
36947 # if libdl is installed we need to link against it
36948 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
36949 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
36950 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
36951 echo $ECHO_N "(cached) $ECHO_C" >&6
36953 ac_check_lib_save_LIBS=$LIBS
36955 cat >conftest.$ac_ext <<_ACEOF
36958 cat confdefs.h >>conftest.$ac_ext
36959 cat >>conftest.$ac_ext <<_ACEOF
36960 /* end confdefs.h. */
36962 /* Override any gcc2 internal prototype to avoid an error. */
36966 /* We use char because int might match the return type of a gcc2
36967 builtin and then its argument prototype would still apply. */
36977 rm -f conftest.$ac_objext conftest$ac_exeext
36978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36979 (eval $ac_link) 2>conftest.er1
36981 grep -v '^ *+' conftest.er1 >conftest.err
36983 cat conftest.err >&5
36984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36985 (exit $ac_status); } &&
36986 { ac_try='test -z "$ac_c_werror_flag"
36987 || test ! -s conftest.err'
36988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36989 (eval $ac_try) 2>&5
36991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36992 (exit $ac_status); }; } &&
36993 { ac_try='test -s conftest$ac_exeext'
36994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36995 (eval $ac_try) 2>&5
36997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36998 (exit $ac_status); }; }; then
36999 ac_cv_lib_dl_dlopen=yes
37001 echo "$as_me: failed program was:" >&5
37002 sed 's/^/| /' conftest.$ac_ext >&5
37004 ac_cv_lib_dl_dlopen=no
37006 rm -f conftest.err conftest.$ac_objext \
37007 conftest$ac_exeext conftest.$ac_ext
37008 LIBS=$ac_check_lib_save_LIBS
37010 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
37011 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
37012 if test $ac_cv_lib_dl_dlopen = yes; then
37013 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
37016 lt_cv_dlopen="dyld"
37018 lt_cv_dlopen_self=yes
37025 echo "$as_me:$LINENO: checking for shl_load" >&5
37026 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
37027 if test "${ac_cv_func_shl_load+set}" = set; then
37028 echo $ECHO_N "(cached) $ECHO_C" >&6
37030 cat >conftest.$ac_ext <<_ACEOF
37033 cat confdefs.h >>conftest.$ac_ext
37034 cat >>conftest.$ac_ext <<_ACEOF
37035 /* end confdefs.h. */
37036 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
37037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37038 #define shl_load innocuous_shl_load
37040 /* System header to define __stub macros and hopefully few prototypes,
37041 which can conflict with char shl_load (); below.
37042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37043 <limits.h> exists even on freestanding compilers. */
37046 # include <limits.h>
37048 # include <assert.h>
37053 /* Override any gcc2 internal prototype to avoid an error. */
37058 /* We use char because int might match the return type of a gcc2
37059 builtin and then its argument prototype would still apply. */
37061 /* The GNU C library defines this for functions which it implements
37062 to always fail with ENOSYS. Some functions are actually named
37063 something starting with __ and the normal name is an alias. */
37064 #if defined (__stub_shl_load) || defined (__stub___shl_load)
37067 char (*f) () = shl_load;
37076 return f != shl_load;
37081 rm -f conftest.$ac_objext conftest$ac_exeext
37082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37083 (eval $ac_link) 2>conftest.er1
37085 grep -v '^ *+' conftest.er1 >conftest.err
37087 cat conftest.err >&5
37088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37089 (exit $ac_status); } &&
37090 { ac_try='test -z "$ac_c_werror_flag"
37091 || test ! -s conftest.err'
37092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37093 (eval $ac_try) 2>&5
37095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37096 (exit $ac_status); }; } &&
37097 { ac_try='test -s conftest$ac_exeext'
37098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37099 (eval $ac_try) 2>&5
37101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37102 (exit $ac_status); }; }; then
37103 ac_cv_func_shl_load=yes
37105 echo "$as_me: failed program was:" >&5
37106 sed 's/^/| /' conftest.$ac_ext >&5
37108 ac_cv_func_shl_load=no
37110 rm -f conftest.err conftest.$ac_objext \
37111 conftest$ac_exeext conftest.$ac_ext
37113 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
37114 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
37115 if test $ac_cv_func_shl_load = yes; then
37116 lt_cv_dlopen="shl_load"
37118 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
37119 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
37120 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
37121 echo $ECHO_N "(cached) $ECHO_C" >&6
37123 ac_check_lib_save_LIBS=$LIBS
37125 cat >conftest.$ac_ext <<_ACEOF
37128 cat confdefs.h >>conftest.$ac_ext
37129 cat >>conftest.$ac_ext <<_ACEOF
37130 /* end confdefs.h. */
37132 /* Override any gcc2 internal prototype to avoid an error. */
37136 /* We use char because int might match the return type of a gcc2
37137 builtin and then its argument prototype would still apply. */
37147 rm -f conftest.$ac_objext conftest$ac_exeext
37148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37149 (eval $ac_link) 2>conftest.er1
37151 grep -v '^ *+' conftest.er1 >conftest.err
37153 cat conftest.err >&5
37154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37155 (exit $ac_status); } &&
37156 { ac_try='test -z "$ac_c_werror_flag"
37157 || test ! -s conftest.err'
37158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37159 (eval $ac_try) 2>&5
37161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37162 (exit $ac_status); }; } &&
37163 { ac_try='test -s conftest$ac_exeext'
37164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37165 (eval $ac_try) 2>&5
37167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37168 (exit $ac_status); }; }; then
37169 ac_cv_lib_dld_shl_load=yes
37171 echo "$as_me: failed program was:" >&5
37172 sed 's/^/| /' conftest.$ac_ext >&5
37174 ac_cv_lib_dld_shl_load=no
37176 rm -f conftest.err conftest.$ac_objext \
37177 conftest$ac_exeext conftest.$ac_ext
37178 LIBS=$ac_check_lib_save_LIBS
37180 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
37181 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
37182 if test $ac_cv_lib_dld_shl_load = yes; then
37183 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
37185 echo "$as_me:$LINENO: checking for dlopen" >&5
37186 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
37187 if test "${ac_cv_func_dlopen+set}" = set; then
37188 echo $ECHO_N "(cached) $ECHO_C" >&6
37190 cat >conftest.$ac_ext <<_ACEOF
37193 cat confdefs.h >>conftest.$ac_ext
37194 cat >>conftest.$ac_ext <<_ACEOF
37195 /* end confdefs.h. */
37196 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
37197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37198 #define dlopen innocuous_dlopen
37200 /* System header to define __stub macros and hopefully few prototypes,
37201 which can conflict with char dlopen (); below.
37202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37203 <limits.h> exists even on freestanding compilers. */
37206 # include <limits.h>
37208 # include <assert.h>
37213 /* Override any gcc2 internal prototype to avoid an error. */
37218 /* We use char because int might match the return type of a gcc2
37219 builtin and then its argument prototype would still apply. */
37221 /* The GNU C library defines this for functions which it implements
37222 to always fail with ENOSYS. Some functions are actually named
37223 something starting with __ and the normal name is an alias. */
37224 #if defined (__stub_dlopen) || defined (__stub___dlopen)
37227 char (*f) () = dlopen;
37236 return f != dlopen;
37241 rm -f conftest.$ac_objext conftest$ac_exeext
37242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37243 (eval $ac_link) 2>conftest.er1
37245 grep -v '^ *+' conftest.er1 >conftest.err
37247 cat conftest.err >&5
37248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37249 (exit $ac_status); } &&
37250 { ac_try='test -z "$ac_c_werror_flag"
37251 || test ! -s conftest.err'
37252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37253 (eval $ac_try) 2>&5
37255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37256 (exit $ac_status); }; } &&
37257 { ac_try='test -s conftest$ac_exeext'
37258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37259 (eval $ac_try) 2>&5
37261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37262 (exit $ac_status); }; }; then
37263 ac_cv_func_dlopen=yes
37265 echo "$as_me: failed program was:" >&5
37266 sed 's/^/| /' conftest.$ac_ext >&5
37268 ac_cv_func_dlopen=no
37270 rm -f conftest.err conftest.$ac_objext \
37271 conftest$ac_exeext conftest.$ac_ext
37273 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
37274 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
37275 if test $ac_cv_func_dlopen = yes; then
37276 lt_cv_dlopen="dlopen"
37278 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
37279 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
37280 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
37281 echo $ECHO_N "(cached) $ECHO_C" >&6
37283 ac_check_lib_save_LIBS=$LIBS
37285 cat >conftest.$ac_ext <<_ACEOF
37288 cat confdefs.h >>conftest.$ac_ext
37289 cat >>conftest.$ac_ext <<_ACEOF
37290 /* end confdefs.h. */
37292 /* Override any gcc2 internal prototype to avoid an error. */
37296 /* We use char because int might match the return type of a gcc2
37297 builtin and then its argument prototype would still apply. */
37307 rm -f conftest.$ac_objext conftest$ac_exeext
37308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37309 (eval $ac_link) 2>conftest.er1
37311 grep -v '^ *+' conftest.er1 >conftest.err
37313 cat conftest.err >&5
37314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37315 (exit $ac_status); } &&
37316 { ac_try='test -z "$ac_c_werror_flag"
37317 || test ! -s conftest.err'
37318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37319 (eval $ac_try) 2>&5
37321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37322 (exit $ac_status); }; } &&
37323 { ac_try='test -s conftest$ac_exeext'
37324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37325 (eval $ac_try) 2>&5
37327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37328 (exit $ac_status); }; }; then
37329 ac_cv_lib_dl_dlopen=yes
37331 echo "$as_me: failed program was:" >&5
37332 sed 's/^/| /' conftest.$ac_ext >&5
37334 ac_cv_lib_dl_dlopen=no
37336 rm -f conftest.err conftest.$ac_objext \
37337 conftest$ac_exeext conftest.$ac_ext
37338 LIBS=$ac_check_lib_save_LIBS
37340 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
37341 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
37342 if test $ac_cv_lib_dl_dlopen = yes; then
37343 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
37345 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
37346 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
37347 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
37348 echo $ECHO_N "(cached) $ECHO_C" >&6
37350 ac_check_lib_save_LIBS=$LIBS
37351 LIBS="-lsvld $LIBS"
37352 cat >conftest.$ac_ext <<_ACEOF
37355 cat confdefs.h >>conftest.$ac_ext
37356 cat >>conftest.$ac_ext <<_ACEOF
37357 /* end confdefs.h. */
37359 /* Override any gcc2 internal prototype to avoid an error. */
37363 /* We use char because int might match the return type of a gcc2
37364 builtin and then its argument prototype would still apply. */
37374 rm -f conftest.$ac_objext conftest$ac_exeext
37375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37376 (eval $ac_link) 2>conftest.er1
37378 grep -v '^ *+' conftest.er1 >conftest.err
37380 cat conftest.err >&5
37381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37382 (exit $ac_status); } &&
37383 { ac_try='test -z "$ac_c_werror_flag"
37384 || test ! -s conftest.err'
37385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37386 (eval $ac_try) 2>&5
37388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37389 (exit $ac_status); }; } &&
37390 { ac_try='test -s conftest$ac_exeext'
37391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37392 (eval $ac_try) 2>&5
37394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37395 (exit $ac_status); }; }; then
37396 ac_cv_lib_svld_dlopen=yes
37398 echo "$as_me: failed program was:" >&5
37399 sed 's/^/| /' conftest.$ac_ext >&5
37401 ac_cv_lib_svld_dlopen=no
37403 rm -f conftest.err conftest.$ac_objext \
37404 conftest$ac_exeext conftest.$ac_ext
37405 LIBS=$ac_check_lib_save_LIBS
37407 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
37408 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
37409 if test $ac_cv_lib_svld_dlopen = yes; then
37410 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
37412 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
37413 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
37414 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
37415 echo $ECHO_N "(cached) $ECHO_C" >&6
37417 ac_check_lib_save_LIBS=$LIBS
37419 cat >conftest.$ac_ext <<_ACEOF
37422 cat confdefs.h >>conftest.$ac_ext
37423 cat >>conftest.$ac_ext <<_ACEOF
37424 /* end confdefs.h. */
37426 /* Override any gcc2 internal prototype to avoid an error. */
37430 /* We use char because int might match the return type of a gcc2
37431 builtin and then its argument prototype would still apply. */
37441 rm -f conftest.$ac_objext conftest$ac_exeext
37442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37443 (eval $ac_link) 2>conftest.er1
37445 grep -v '^ *+' conftest.er1 >conftest.err
37447 cat conftest.err >&5
37448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37449 (exit $ac_status); } &&
37450 { ac_try='test -z "$ac_c_werror_flag"
37451 || test ! -s conftest.err'
37452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37453 (eval $ac_try) 2>&5
37455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37456 (exit $ac_status); }; } &&
37457 { ac_try='test -s conftest$ac_exeext'
37458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37459 (eval $ac_try) 2>&5
37461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37462 (exit $ac_status); }; }; then
37463 ac_cv_lib_dld_dld_link=yes
37465 echo "$as_me: failed program was:" >&5
37466 sed 's/^/| /' conftest.$ac_ext >&5
37468 ac_cv_lib_dld_dld_link=no
37470 rm -f conftest.err conftest.$ac_objext \
37471 conftest$ac_exeext conftest.$ac_ext
37472 LIBS=$ac_check_lib_save_LIBS
37474 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
37475 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
37476 if test $ac_cv_lib_dld_dld_link = yes; then
37477 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
37498 if test "x$lt_cv_dlopen" != xno; then
37504 case $lt_cv_dlopen in
37506 save_CPPFLAGS="$CPPFLAGS"
37507 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
37509 save_LDFLAGS="$LDFLAGS"
37510 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
37513 LIBS="$lt_cv_dlopen_libs $LIBS"
37515 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
37516 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
37517 if test "${lt_cv_dlopen_self+set}" = set; then
37518 echo $ECHO_N "(cached) $ECHO_C" >&6
37520 if test "$cross_compiling" = yes; then :
37521 lt_cv_dlopen_self=cross
37523 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
37524 lt_status=$lt_dlunknown
37525 cat > conftest.$ac_ext <<EOF
37526 #line 37526 "configure"
37527 #include "confdefs.h"
37536 # define LT_DLGLOBAL RTLD_GLOBAL
37539 # define LT_DLGLOBAL DL_GLOBAL
37541 # define LT_DLGLOBAL 0
37545 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
37546 find out it does not work in some platform. */
37547 #ifndef LT_DLLAZY_OR_NOW
37549 # define LT_DLLAZY_OR_NOW RTLD_LAZY
37552 # define LT_DLLAZY_OR_NOW DL_LAZY
37555 # define LT_DLLAZY_OR_NOW RTLD_NOW
37558 # define LT_DLLAZY_OR_NOW DL_NOW
37560 # define LT_DLLAZY_OR_NOW 0
37568 extern "C" void exit (int);
37571 void fnord() { int i=42;}
37574 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
37575 int status = $lt_dlunknown;
37579 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
37580 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
37581 /* dlclose (self); */
37587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37588 (eval $ac_link) 2>&5
37590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37591 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
37592 (./conftest; exit; ) >&5 2>/dev/null
37594 case x$lt_status in
37595 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
37596 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
37597 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
37600 # compilation failed
37601 lt_cv_dlopen_self=no
37608 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
37609 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
37611 if test "x$lt_cv_dlopen_self" = xyes; then
37612 LDFLAGS="$LDFLAGS $link_static_flag"
37613 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
37614 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
37615 if test "${lt_cv_dlopen_self_static+set}" = set; then
37616 echo $ECHO_N "(cached) $ECHO_C" >&6
37618 if test "$cross_compiling" = yes; then :
37619 lt_cv_dlopen_self_static=cross
37621 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
37622 lt_status=$lt_dlunknown
37623 cat > conftest.$ac_ext <<EOF
37624 #line 37624 "configure"
37625 #include "confdefs.h"
37634 # define LT_DLGLOBAL RTLD_GLOBAL
37637 # define LT_DLGLOBAL DL_GLOBAL
37639 # define LT_DLGLOBAL 0
37643 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
37644 find out it does not work in some platform. */
37645 #ifndef LT_DLLAZY_OR_NOW
37647 # define LT_DLLAZY_OR_NOW RTLD_LAZY
37650 # define LT_DLLAZY_OR_NOW DL_LAZY
37653 # define LT_DLLAZY_OR_NOW RTLD_NOW
37656 # define LT_DLLAZY_OR_NOW DL_NOW
37658 # define LT_DLLAZY_OR_NOW 0
37666 extern "C" void exit (int);
37669 void fnord() { int i=42;}
37672 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
37673 int status = $lt_dlunknown;
37677 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
37678 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
37679 /* dlclose (self); */
37685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37686 (eval $ac_link) 2>&5
37688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37689 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
37690 (./conftest; exit; ) >&5 2>/dev/null
37692 case x$lt_status in
37693 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
37694 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
37695 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
37698 # compilation failed
37699 lt_cv_dlopen_self_static=no
37706 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
37707 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
37710 CPPFLAGS="$save_CPPFLAGS"
37711 LDFLAGS="$save_LDFLAGS"
37716 case $lt_cv_dlopen_self in
37717 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
37718 *) enable_dlopen_self=unknown ;;
37721 case $lt_cv_dlopen_self_static in
37722 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
37723 *) enable_dlopen_self_static=unknown ;;
37728 # The else clause should only fire when bootstrapping the
37729 # libtool distribution, otherwise you forgot to ship ltmain.sh
37730 # with your package, and you will get complaints that there are
37731 # no rules to generate ltmain.sh.
37732 if test -f "$ltmain"; then
37733 # See if we are running on zsh, and set the options which allow our commands through
37734 # without removal of \ escapes.
37735 if test -n "${ZSH_VERSION+set}" ; then
37736 setopt NO_GLOB_SUBST
37738 # Now quote all the things that may contain metacharacters while being
37739 # careful not to overquote the AC_SUBSTed values. We take copies of the
37740 # variables and quote the copies for generation of the libtool script.
37741 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
37743 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
37744 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
37745 deplibs_check_method reload_flag reload_cmds need_locks \
37746 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
37747 lt_cv_sys_global_symbol_to_c_name_address \
37748 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
37749 old_postinstall_cmds old_postuninstall_cmds \
37753 lt_prog_compiler_wl_GCJ \
37754 lt_prog_compiler_pic_GCJ \
37755 lt_prog_compiler_static_GCJ \
37756 lt_prog_compiler_no_builtin_flag_GCJ \
37757 export_dynamic_flag_spec_GCJ \
37758 thread_safe_flag_spec_GCJ \
37759 whole_archive_flag_spec_GCJ \
37760 enable_shared_with_static_runtimes_GCJ \
37761 old_archive_cmds_GCJ \
37762 old_archive_from_new_cmds_GCJ \
37763 predep_objects_GCJ \
37764 postdep_objects_GCJ \
37767 compiler_lib_search_path_GCJ \
37769 archive_expsym_cmds_GCJ \
37770 postinstall_cmds_GCJ \
37771 postuninstall_cmds_GCJ \
37772 old_archive_from_expsyms_cmds_GCJ \
37773 allow_undefined_flag_GCJ \
37774 no_undefined_flag_GCJ \
37775 export_symbols_cmds_GCJ \
37776 hardcode_libdir_flag_spec_GCJ \
37777 hardcode_libdir_flag_spec_ld_GCJ \
37778 hardcode_libdir_separator_GCJ \
37779 hardcode_automatic_GCJ \
37781 module_expsym_cmds_GCJ \
37782 lt_cv_prog_compiler_c_o_GCJ \
37783 exclude_expsyms_GCJ \
37784 include_expsyms_GCJ; do
37787 old_archive_cmds_GCJ | \
37788 old_archive_from_new_cmds_GCJ | \
37789 archive_cmds_GCJ | \
37790 archive_expsym_cmds_GCJ | \
37791 module_cmds_GCJ | \
37792 module_expsym_cmds_GCJ | \
37793 old_archive_from_expsyms_cmds_GCJ | \
37794 export_symbols_cmds_GCJ | \
37795 extract_expsyms_cmds | reload_cmds | finish_cmds | \
37796 postinstall_cmds | postuninstall_cmds | \
37797 old_postinstall_cmds | old_postuninstall_cmds | \
37798 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
37799 # Double-quote double-evaled strings.
37800 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
37803 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
37809 *'\$0 --fallback-echo"')
37810 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
37816 cat <<__EOF__ >> "$cfgfile"
37817 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
37819 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37821 # Shell to use when invoking shell scripts.
37824 # Whether or not to build shared libraries.
37825 build_libtool_libs=$enable_shared
37827 # Whether or not to build static libraries.
37828 build_old_libs=$enable_static
37830 # Whether or not to add -lc for building shared libraries.
37831 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
37833 # Whether or not to disallow shared libs when runtime libs are static
37834 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
37836 # Whether or not to optimize for fast installation.
37837 fast_install=$enable_fast_install
37840 host_alias=$host_alias
37844 # The build system.
37845 build_alias=$build_alias
37849 # An echo program that does not interpret backslashes.
37854 AR_FLAGS=$lt_AR_FLAGS
37859 # A language-specific compiler.
37860 CC=$lt_compiler_GCJ
37862 # Is the compiler the GNU C compiler?
37868 # The linker used to build libraries.
37871 # Whether we need hard or soft links.
37874 # A BSD-compatible nm program.
37877 # A symbol stripping program
37880 # Used to examine libraries when file_magic_cmd begins "file"
37881 MAGIC_CMD=$MAGIC_CMD
37883 # Used on cygwin: DLL creation program.
37886 # Used on cygwin: object dumper.
37889 # Used on cygwin: assembler.
37892 # The name of the directory that contains temporary libtool files.
37895 # How to create reloadable object files.
37896 reload_flag=$lt_reload_flag
37897 reload_cmds=$lt_reload_cmds
37899 # How to pass a linker flag through the compiler.
37900 wl=$lt_lt_prog_compiler_wl_GCJ
37902 # Object file suffix (normally "o").
37903 objext="$ac_objext"
37905 # Old archive suffix (normally "a").
37908 # Shared library suffix (normally ".so").
37909 shrext_cmds='$shrext_cmds'
37911 # Executable file suffix (normally "").
37914 # Additional compiler flags for building library objects.
37915 pic_flag=$lt_lt_prog_compiler_pic_GCJ
37918 # What is the maximum length of a command?
37919 max_cmd_len=$lt_cv_sys_max_cmd_len
37921 # Does compiler simultaneously support -c and -o options?
37922 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
37924 # Must we lock files when doing compilation?
37925 need_locks=$lt_need_locks
37927 # Do we need the lib prefix for modules?
37928 need_lib_prefix=$need_lib_prefix
37930 # Do we need a version for libraries?
37931 need_version=$need_version
37933 # Whether dlopen is supported.
37934 dlopen_support=$enable_dlopen
37936 # Whether dlopen of programs is supported.
37937 dlopen_self=$enable_dlopen_self
37939 # Whether dlopen of statically linked programs is supported.
37940 dlopen_self_static=$enable_dlopen_self_static
37942 # Compiler flag to prevent dynamic linking.
37943 link_static_flag=$lt_lt_prog_compiler_static_GCJ
37945 # Compiler flag to turn off builtin functions.
37946 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
37948 # Compiler flag to allow reflexive dlopens.
37949 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
37951 # Compiler flag to generate shared objects directly from archives.
37952 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
37954 # Compiler flag to generate thread-safe objects.
37955 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
37957 # Library versioning type.
37958 version_type=$version_type
37960 # Format of library name prefix.
37961 libname_spec=$lt_libname_spec
37963 # List of archive names. First name is the real one, the rest are links.
37964 # The last name is the one that the linker finds with -lNAME.
37965 library_names_spec=$lt_library_names_spec
37967 # The coded name of the library, if different from the real name.
37968 soname_spec=$lt_soname_spec
37970 # Commands used to build and install an old-style archive.
37972 old_archive_cmds=$lt_old_archive_cmds_GCJ
37973 old_postinstall_cmds=$lt_old_postinstall_cmds
37974 old_postuninstall_cmds=$lt_old_postuninstall_cmds
37976 # Create an old-style archive from a shared archive.
37977 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
37979 # Create a temporary old-style archive to link instead of a shared archive.
37980 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
37982 # Commands used to build and install a shared archive.
37983 archive_cmds=$lt_archive_cmds_GCJ
37984 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
37985 postinstall_cmds=$lt_postinstall_cmds
37986 postuninstall_cmds=$lt_postuninstall_cmds
37988 # Commands used to build a loadable module (assumed same as above if empty)
37989 module_cmds=$lt_module_cmds_GCJ
37990 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
37992 # Commands to strip libraries.
37993 old_striplib=$lt_old_striplib
37994 striplib=$lt_striplib
37996 # Dependencies to place before the objects being linked to create a
37998 predep_objects=$lt_predep_objects_GCJ
38000 # Dependencies to place after the objects being linked to create a
38002 postdep_objects=$lt_postdep_objects_GCJ
38004 # Dependencies to place before the objects being linked to create a
38006 predeps=$lt_predeps_GCJ
38008 # Dependencies to place after the objects being linked to create a
38010 postdeps=$lt_postdeps_GCJ
38012 # The library search path used internally by the compiler when linking
38013 # a shared library.
38014 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
38016 # Method to check whether dependent libraries are shared objects.
38017 deplibs_check_method=$lt_deplibs_check_method
38019 # Command to use when deplibs_check_method == file_magic.
38020 file_magic_cmd=$lt_file_magic_cmd
38022 # Flag that allows shared libraries with undefined symbols to be built.
38023 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
38025 # Flag that forces no undefined symbols.
38026 no_undefined_flag=$lt_no_undefined_flag_GCJ
38028 # Commands used to finish a libtool library installation in a directory.
38029 finish_cmds=$lt_finish_cmds
38031 # Same as above, but a single script fragment to be evaled but not shown.
38032 finish_eval=$lt_finish_eval
38034 # Take the output of nm and produce a listing of raw symbols and C names.
38035 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38037 # Transform the output of nm in a proper C declaration
38038 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38040 # Transform the output of nm in a C name address pair
38041 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38043 # This is the shared library runtime path variable.
38044 runpath_var=$runpath_var
38046 # This is the shared library path variable.
38047 shlibpath_var=$shlibpath_var
38049 # Is shlibpath searched before the hard-coded library search path?
38050 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38052 # How to hardcode a shared library path into an executable.
38053 hardcode_action=$hardcode_action_GCJ
38055 # Whether we should hardcode library paths into libraries.
38056 hardcode_into_libs=$hardcode_into_libs
38058 # Flag to hardcode \$libdir into a binary during linking.
38059 # This must work even if \$libdir does not exist.
38060 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
38062 # If ld is used when linking, flag to hardcode \$libdir into
38063 # a binary during linking. This must work even if \$libdir does
38065 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
38067 # Whether we need a single -rpath flag with a separated argument.
38068 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
38070 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
38071 # resulting binary.
38072 hardcode_direct=$hardcode_direct_GCJ
38074 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
38075 # resulting binary.
38076 hardcode_minus_L=$hardcode_minus_L_GCJ
38078 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
38079 # the resulting binary.
38080 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
38082 # Set to yes if building a shared library automatically hardcodes DIR into the library
38083 # and all subsequent libraries and executables linked against it.
38084 hardcode_automatic=$hardcode_automatic_GCJ
38086 # Variables whose values should be saved in libtool wrapper scripts and
38087 # restored at relink time.
38088 variables_saved_for_relink="$variables_saved_for_relink"
38090 # Whether libtool must link a program against all its dependency libraries.
38091 link_all_deplibs=$link_all_deplibs_GCJ
38093 # Compile-time system search path for libraries
38094 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38096 # Run-time system search path for libraries
38097 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38099 # Fix the shell variable \$srcfile for the compiler.
38100 fix_srcfile_path="$fix_srcfile_path_GCJ"
38102 # Set to yes if exported symbols are required.
38103 always_export_symbols=$always_export_symbols_GCJ
38105 # The commands to list exported symbols.
38106 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
38108 # The commands to extract the exported symbol list from a shared archive.
38109 extract_expsyms_cmds=$lt_extract_expsyms_cmds
38111 # Symbols that should not be listed in the preloaded symbols.
38112 exclude_expsyms=$lt_exclude_expsyms_GCJ
38114 # Symbols that must always be exported.
38115 include_expsyms=$lt_include_expsyms_GCJ
38117 # ### END LIBTOOL TAG CONFIG: $tagname
38123 # If there is no Makefile yet, we rely on a make rule to execute
38124 # `config.status --recheck' to rerun these tests and create the
38125 # libtool script then.
38126 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
38127 if test -f "$ltmain_in"; then
38128 test -f Makefile && make "$ltmain"
38134 ac_cpp='$CPP $CPPFLAGS'
38135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38150 # Source file extension for RC test sources.
38153 # Object file extension for compiled RC test sources.
38157 # Code to be used in simple compile tests
38158 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
38160 # Code to be used in simple link tests
38161 lt_simple_link_test_code="$lt_simple_compile_test_code"
38163 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
38165 # If no C compiler was specified, use CC.
38168 # Allow CC to be a program name with arguments.
38172 # save warnings/boilerplate of simple test code
38173 ac_outfile=conftest.$ac_objext
38174 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
38175 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
38176 _lt_compiler_boilerplate=`cat conftest.err`
38179 ac_outfile=conftest.$ac_objext
38180 printf "$lt_simple_link_test_code" >conftest.$ac_ext
38181 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
38182 _lt_linker_boilerplate=`cat conftest.err`
38186 # Allow CC to be a program name with arguments.
38191 for cc_temp in $compiler""; do
38193 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
38194 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
38199 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
38201 lt_cv_prog_compiler_c_o_RC=yes
38203 # The else clause should only fire when bootstrapping the
38204 # libtool distribution, otherwise you forgot to ship ltmain.sh
38205 # with your package, and you will get complaints that there are
38206 # no rules to generate ltmain.sh.
38207 if test -f "$ltmain"; then
38208 # See if we are running on zsh, and set the options which allow our commands through
38209 # without removal of \ escapes.
38210 if test -n "${ZSH_VERSION+set}" ; then
38211 setopt NO_GLOB_SUBST
38213 # Now quote all the things that may contain metacharacters while being
38214 # careful not to overquote the AC_SUBSTed values. We take copies of the
38215 # variables and quote the copies for generation of the libtool script.
38216 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
38218 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
38219 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
38220 deplibs_check_method reload_flag reload_cmds need_locks \
38221 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
38222 lt_cv_sys_global_symbol_to_c_name_address \
38223 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
38224 old_postinstall_cmds old_postuninstall_cmds \
38228 lt_prog_compiler_wl_RC \
38229 lt_prog_compiler_pic_RC \
38230 lt_prog_compiler_static_RC \
38231 lt_prog_compiler_no_builtin_flag_RC \
38232 export_dynamic_flag_spec_RC \
38233 thread_safe_flag_spec_RC \
38234 whole_archive_flag_spec_RC \
38235 enable_shared_with_static_runtimes_RC \
38236 old_archive_cmds_RC \
38237 old_archive_from_new_cmds_RC \
38238 predep_objects_RC \
38239 postdep_objects_RC \
38242 compiler_lib_search_path_RC \
38244 archive_expsym_cmds_RC \
38245 postinstall_cmds_RC \
38246 postuninstall_cmds_RC \
38247 old_archive_from_expsyms_cmds_RC \
38248 allow_undefined_flag_RC \
38249 no_undefined_flag_RC \
38250 export_symbols_cmds_RC \
38251 hardcode_libdir_flag_spec_RC \
38252 hardcode_libdir_flag_spec_ld_RC \
38253 hardcode_libdir_separator_RC \
38254 hardcode_automatic_RC \
38256 module_expsym_cmds_RC \
38257 lt_cv_prog_compiler_c_o_RC \
38258 exclude_expsyms_RC \
38259 include_expsyms_RC; do
38262 old_archive_cmds_RC | \
38263 old_archive_from_new_cmds_RC | \
38264 archive_cmds_RC | \
38265 archive_expsym_cmds_RC | \
38267 module_expsym_cmds_RC | \
38268 old_archive_from_expsyms_cmds_RC | \
38269 export_symbols_cmds_RC | \
38270 extract_expsyms_cmds | reload_cmds | finish_cmds | \
38271 postinstall_cmds | postuninstall_cmds | \
38272 old_postinstall_cmds | old_postuninstall_cmds | \
38273 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
38274 # Double-quote double-evaled strings.
38275 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
38278 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
38284 *'\$0 --fallback-echo"')
38285 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
38291 cat <<__EOF__ >> "$cfgfile"
38292 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
38294 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38296 # Shell to use when invoking shell scripts.
38299 # Whether or not to build shared libraries.
38300 build_libtool_libs=$enable_shared
38302 # Whether or not to build static libraries.
38303 build_old_libs=$enable_static
38305 # Whether or not to add -lc for building shared libraries.
38306 build_libtool_need_lc=$archive_cmds_need_lc_RC
38308 # Whether or not to disallow shared libs when runtime libs are static
38309 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
38311 # Whether or not to optimize for fast installation.
38312 fast_install=$enable_fast_install
38315 host_alias=$host_alias
38319 # The build system.
38320 build_alias=$build_alias
38324 # An echo program that does not interpret backslashes.
38329 AR_FLAGS=$lt_AR_FLAGS
38334 # A language-specific compiler.
38337 # Is the compiler the GNU C compiler?
38343 # The linker used to build libraries.
38346 # Whether we need hard or soft links.
38349 # A BSD-compatible nm program.
38352 # A symbol stripping program
38355 # Used to examine libraries when file_magic_cmd begins "file"
38356 MAGIC_CMD=$MAGIC_CMD
38358 # Used on cygwin: DLL creation program.
38361 # Used on cygwin: object dumper.
38364 # Used on cygwin: assembler.
38367 # The name of the directory that contains temporary libtool files.
38370 # How to create reloadable object files.
38371 reload_flag=$lt_reload_flag
38372 reload_cmds=$lt_reload_cmds
38374 # How to pass a linker flag through the compiler.
38375 wl=$lt_lt_prog_compiler_wl_RC
38377 # Object file suffix (normally "o").
38378 objext="$ac_objext"
38380 # Old archive suffix (normally "a").
38383 # Shared library suffix (normally ".so").
38384 shrext_cmds='$shrext_cmds'
38386 # Executable file suffix (normally "").
38389 # Additional compiler flags for building library objects.
38390 pic_flag=$lt_lt_prog_compiler_pic_RC
38393 # What is the maximum length of a command?
38394 max_cmd_len=$lt_cv_sys_max_cmd_len
38396 # Does compiler simultaneously support -c and -o options?
38397 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
38399 # Must we lock files when doing compilation?
38400 need_locks=$lt_need_locks
38402 # Do we need the lib prefix for modules?
38403 need_lib_prefix=$need_lib_prefix
38405 # Do we need a version for libraries?
38406 need_version=$need_version
38408 # Whether dlopen is supported.
38409 dlopen_support=$enable_dlopen
38411 # Whether dlopen of programs is supported.
38412 dlopen_self=$enable_dlopen_self
38414 # Whether dlopen of statically linked programs is supported.
38415 dlopen_self_static=$enable_dlopen_self_static
38417 # Compiler flag to prevent dynamic linking.
38418 link_static_flag=$lt_lt_prog_compiler_static_RC
38420 # Compiler flag to turn off builtin functions.
38421 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
38423 # Compiler flag to allow reflexive dlopens.
38424 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
38426 # Compiler flag to generate shared objects directly from archives.
38427 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
38429 # Compiler flag to generate thread-safe objects.
38430 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
38432 # Library versioning type.
38433 version_type=$version_type
38435 # Format of library name prefix.
38436 libname_spec=$lt_libname_spec
38438 # List of archive names. First name is the real one, the rest are links.
38439 # The last name is the one that the linker finds with -lNAME.
38440 library_names_spec=$lt_library_names_spec
38442 # The coded name of the library, if different from the real name.
38443 soname_spec=$lt_soname_spec
38445 # Commands used to build and install an old-style archive.
38447 old_archive_cmds=$lt_old_archive_cmds_RC
38448 old_postinstall_cmds=$lt_old_postinstall_cmds
38449 old_postuninstall_cmds=$lt_old_postuninstall_cmds
38451 # Create an old-style archive from a shared archive.
38452 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
38454 # Create a temporary old-style archive to link instead of a shared archive.
38455 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
38457 # Commands used to build and install a shared archive.
38458 archive_cmds=$lt_archive_cmds_RC
38459 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
38460 postinstall_cmds=$lt_postinstall_cmds
38461 postuninstall_cmds=$lt_postuninstall_cmds
38463 # Commands used to build a loadable module (assumed same as above if empty)
38464 module_cmds=$lt_module_cmds_RC
38465 module_expsym_cmds=$lt_module_expsym_cmds_RC
38467 # Commands to strip libraries.
38468 old_striplib=$lt_old_striplib
38469 striplib=$lt_striplib
38471 # Dependencies to place before the objects being linked to create a
38473 predep_objects=$lt_predep_objects_RC
38475 # Dependencies to place after the objects being linked to create a
38477 postdep_objects=$lt_postdep_objects_RC
38479 # Dependencies to place before the objects being linked to create a
38481 predeps=$lt_predeps_RC
38483 # Dependencies to place after the objects being linked to create a
38485 postdeps=$lt_postdeps_RC
38487 # The library search path used internally by the compiler when linking
38488 # a shared library.
38489 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
38491 # Method to check whether dependent libraries are shared objects.
38492 deplibs_check_method=$lt_deplibs_check_method
38494 # Command to use when deplibs_check_method == file_magic.
38495 file_magic_cmd=$lt_file_magic_cmd
38497 # Flag that allows shared libraries with undefined symbols to be built.
38498 allow_undefined_flag=$lt_allow_undefined_flag_RC
38500 # Flag that forces no undefined symbols.
38501 no_undefined_flag=$lt_no_undefined_flag_RC
38503 # Commands used to finish a libtool library installation in a directory.
38504 finish_cmds=$lt_finish_cmds
38506 # Same as above, but a single script fragment to be evaled but not shown.
38507 finish_eval=$lt_finish_eval
38509 # Take the output of nm and produce a listing of raw symbols and C names.
38510 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38512 # Transform the output of nm in a proper C declaration
38513 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38515 # Transform the output of nm in a C name address pair
38516 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38518 # This is the shared library runtime path variable.
38519 runpath_var=$runpath_var
38521 # This is the shared library path variable.
38522 shlibpath_var=$shlibpath_var
38524 # Is shlibpath searched before the hard-coded library search path?
38525 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38527 # How to hardcode a shared library path into an executable.
38528 hardcode_action=$hardcode_action_RC
38530 # Whether we should hardcode library paths into libraries.
38531 hardcode_into_libs=$hardcode_into_libs
38533 # Flag to hardcode \$libdir into a binary during linking.
38534 # This must work even if \$libdir does not exist.
38535 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
38537 # If ld is used when linking, flag to hardcode \$libdir into
38538 # a binary during linking. This must work even if \$libdir does
38540 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
38542 # Whether we need a single -rpath flag with a separated argument.
38543 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
38545 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
38546 # resulting binary.
38547 hardcode_direct=$hardcode_direct_RC
38549 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
38550 # resulting binary.
38551 hardcode_minus_L=$hardcode_minus_L_RC
38553 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
38554 # the resulting binary.
38555 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
38557 # Set to yes if building a shared library automatically hardcodes DIR into the library
38558 # and all subsequent libraries and executables linked against it.
38559 hardcode_automatic=$hardcode_automatic_RC
38561 # Variables whose values should be saved in libtool wrapper scripts and
38562 # restored at relink time.
38563 variables_saved_for_relink="$variables_saved_for_relink"
38565 # Whether libtool must link a program against all its dependency libraries.
38566 link_all_deplibs=$link_all_deplibs_RC
38568 # Compile-time system search path for libraries
38569 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38571 # Run-time system search path for libraries
38572 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38574 # Fix the shell variable \$srcfile for the compiler.
38575 fix_srcfile_path="$fix_srcfile_path_RC"
38577 # Set to yes if exported symbols are required.
38578 always_export_symbols=$always_export_symbols_RC
38580 # The commands to list exported symbols.
38581 export_symbols_cmds=$lt_export_symbols_cmds_RC
38583 # The commands to extract the exported symbol list from a shared archive.
38584 extract_expsyms_cmds=$lt_extract_expsyms_cmds
38586 # Symbols that should not be listed in the preloaded symbols.
38587 exclude_expsyms=$lt_exclude_expsyms_RC
38589 # Symbols that must always be exported.
38590 include_expsyms=$lt_include_expsyms_RC
38592 # ### END LIBTOOL TAG CONFIG: $tagname
38598 # If there is no Makefile yet, we rely on a make rule to execute
38599 # `config.status --recheck' to rerun these tests and create the
38600 # libtool script then.
38601 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
38602 if test -f "$ltmain_in"; then
38603 test -f Makefile && make "$ltmain"
38609 ac_cpp='$CPP $CPPFLAGS'
38610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38619 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
38620 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
38621 { (exit 1); exit 1; }; }
38625 # Append the new tag name to the list of available tags.
38626 if test -n "$tagname" ; then
38627 available_tags="$available_tags $tagname"
38633 # Now substitute the updated list of available tags.
38634 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
38635 mv "${ofile}T" "$ofile"
38639 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
38640 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
38641 { (exit 1); exit 1; }; }
38647 # This can be used to rebuild libtool when needed
38648 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
38650 # Always use our own libtool.
38651 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
38653 # Prevent multiple expansion
38676 if test $ac_cv_c_compiler_gnu = yes; then
38677 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
38678 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
38679 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
38680 echo $ECHO_N "(cached) $ECHO_C" >&6
38682 ac_pattern="Autoconf.*'x'"
38683 cat >conftest.$ac_ext <<_ACEOF
38686 cat confdefs.h >>conftest.$ac_ext
38687 cat >>conftest.$ac_ext <<_ACEOF
38688 /* end confdefs.h. */
38692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38693 $EGREP "$ac_pattern" >/dev/null 2>&1; then
38694 ac_cv_prog_gcc_traditional=yes
38696 ac_cv_prog_gcc_traditional=no
38701 if test $ac_cv_prog_gcc_traditional = no; then
38702 cat >conftest.$ac_ext <<_ACEOF
38705 cat confdefs.h >>conftest.$ac_ext
38706 cat >>conftest.$ac_ext <<_ACEOF
38707 /* end confdefs.h. */
38708 #include <termio.h>
38711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38712 $EGREP "$ac_pattern" >/dev/null 2>&1; then
38713 ac_cv_prog_gcc_traditional=yes
38719 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
38720 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
38721 if test $ac_cv_prog_gcc_traditional = yes; then
38722 CC="$CC -traditional"
38726 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
38727 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
38728 if test "${ac_cv_c_const+set}" = set; then
38729 echo $ECHO_N "(cached) $ECHO_C" >&6
38731 cat >conftest.$ac_ext <<_ACEOF
38734 cat confdefs.h >>conftest.$ac_ext
38735 cat >>conftest.$ac_ext <<_ACEOF
38736 /* end confdefs.h. */
38741 /* FIXME: Include the comments suggested by Paul. */
38742 #ifndef __cplusplus
38743 /* Ultrix mips cc rejects this. */
38744 typedef int charset[2];
38746 /* SunOS 4.1.1 cc rejects this. */
38747 char const *const *ccp;
38749 /* NEC SVR4.0.2 mips cc rejects this. */
38750 struct point {int x, y;};
38751 static struct point const zero = {0,0};
38752 /* AIX XL C 1.02.0.0 rejects this.
38753 It does not let you subtract one const X* pointer from another in
38754 an arm of an if-expression whose if-part is not a constant
38756 const char *g = "string";
38757 ccp = &g + (g ? g-g : 0);
38758 /* HPUX 7.0 cc rejects these. */
38761 ccp = (char const *const *) p;
38762 { /* SCO 3.2v4 cc rejects this. */
38764 char const *s = 0 ? (char *) 0 : (char const *) 0;
38768 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
38769 int x[] = {25, 17};
38770 const int *foo = &x[0];
38773 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
38774 typedef const int *iptr;
38778 { /* AIX XL C 1.02.0.0 rejects this saying
38779 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
38780 struct s { int j; const int *ap[3]; };
38781 struct s *b; b->j = 5;
38783 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
38784 const int foo = 10;
38792 rm -f conftest.$ac_objext
38793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38794 (eval $ac_compile) 2>conftest.er1
38796 grep -v '^ *+' conftest.er1 >conftest.err
38798 cat conftest.err >&5
38799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38800 (exit $ac_status); } &&
38801 { ac_try='test -z "$ac_c_werror_flag"
38802 || test ! -s conftest.err'
38803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38804 (eval $ac_try) 2>&5
38806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38807 (exit $ac_status); }; } &&
38808 { ac_try='test -s conftest.$ac_objext'
38809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38810 (eval $ac_try) 2>&5
38812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38813 (exit $ac_status); }; }; then
38816 echo "$as_me: failed program was:" >&5
38817 sed 's/^/| /' conftest.$ac_ext >&5
38821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38823 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
38824 echo "${ECHO_T}$ac_cv_c_const" >&6
38825 if test $ac_cv_c_const = no; then
38827 cat >>confdefs.h <<\_ACEOF
38834 echo "$as_me:$LINENO: checking for working unsigned long constants" >&5
38835 echo $ECHO_N "checking for working unsigned long constants... $ECHO_C" >&6
38836 if test "${amanda_cv_c_unsigned_long_constants+set}" = set; then
38837 echo $ECHO_N "(cached) $ECHO_C" >&6
38840 cat >conftest.$ac_ext <<_ACEOF
38843 cat confdefs.h >>conftest.$ac_ext
38844 cat >>conftest.$ac_ext <<_ACEOF
38845 /* end confdefs.h. */
38858 rm -f conftest.$ac_objext
38859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38860 (eval $ac_compile) 2>conftest.er1
38862 grep -v '^ *+' conftest.er1 >conftest.err
38864 cat conftest.err >&5
38865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38866 (exit $ac_status); } &&
38867 { ac_try='test -z "$ac_c_werror_flag"
38868 || test ! -s conftest.err'
38869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38870 (eval $ac_try) 2>&5
38872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38873 (exit $ac_status); }; } &&
38874 { ac_try='test -s conftest.$ac_objext'
38875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38876 (eval $ac_try) 2>&5
38878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38879 (exit $ac_status); }; }; then
38880 amanda_cv_c_unsigned_long_constants=yes
38882 echo "$as_me: failed program was:" >&5
38883 sed 's/^/| /' conftest.$ac_ext >&5
38885 amanda_cv_c_unsigned_long_constants=no
38888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38892 echo "$as_me:$LINENO: result: $amanda_cv_c_unsigned_long_constants" >&5
38893 echo "${ECHO_T}$amanda_cv_c_unsigned_long_constants" >&6
38894 if test "$amanda_cv_c_unsigned_long_constants" = yes; then
38896 cat >>confdefs.h <<\_ACEOF
38897 #define HAVE_UNSIGNED_LONG_CONSTANTS 1
38903 echo "$as_me:$LINENO: checking for off_t" >&5
38904 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
38905 if test "${ac_cv_type_off_t+set}" = set; then
38906 echo $ECHO_N "(cached) $ECHO_C" >&6
38908 cat >conftest.$ac_ext <<_ACEOF
38911 cat confdefs.h >>conftest.$ac_ext
38912 cat >>conftest.$ac_ext <<_ACEOF
38913 /* end confdefs.h. */
38914 $ac_includes_default
38920 if (sizeof (off_t))
38926 rm -f conftest.$ac_objext
38927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38928 (eval $ac_compile) 2>conftest.er1
38930 grep -v '^ *+' conftest.er1 >conftest.err
38932 cat conftest.err >&5
38933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38934 (exit $ac_status); } &&
38935 { ac_try='test -z "$ac_c_werror_flag"
38936 || test ! -s conftest.err'
38937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38938 (eval $ac_try) 2>&5
38940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38941 (exit $ac_status); }; } &&
38942 { ac_try='test -s conftest.$ac_objext'
38943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38944 (eval $ac_try) 2>&5
38946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38947 (exit $ac_status); }; }; then
38948 ac_cv_type_off_t=yes
38950 echo "$as_me: failed program was:" >&5
38951 sed 's/^/| /' conftest.$ac_ext >&5
38953 ac_cv_type_off_t=no
38955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38957 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
38958 echo "${ECHO_T}$ac_cv_type_off_t" >&6
38959 if test $ac_cv_type_off_t = yes; then
38963 cat >>confdefs.h <<_ACEOF
38969 echo "$as_me:$LINENO: checking for pid_t" >&5
38970 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
38971 if test "${ac_cv_type_pid_t+set}" = set; then
38972 echo $ECHO_N "(cached) $ECHO_C" >&6
38974 cat >conftest.$ac_ext <<_ACEOF
38977 cat confdefs.h >>conftest.$ac_ext
38978 cat >>conftest.$ac_ext <<_ACEOF
38979 /* end confdefs.h. */
38980 $ac_includes_default
38986 if (sizeof (pid_t))
38992 rm -f conftest.$ac_objext
38993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38994 (eval $ac_compile) 2>conftest.er1
38996 grep -v '^ *+' conftest.er1 >conftest.err
38998 cat conftest.err >&5
38999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39000 (exit $ac_status); } &&
39001 { ac_try='test -z "$ac_c_werror_flag"
39002 || test ! -s conftest.err'
39003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39004 (eval $ac_try) 2>&5
39006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39007 (exit $ac_status); }; } &&
39008 { ac_try='test -s conftest.$ac_objext'
39009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39010 (eval $ac_try) 2>&5
39012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39013 (exit $ac_status); }; }; then
39014 ac_cv_type_pid_t=yes
39016 echo "$as_me: failed program was:" >&5
39017 sed 's/^/| /' conftest.$ac_ext >&5
39019 ac_cv_type_pid_t=no
39021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39023 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
39024 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
39025 if test $ac_cv_type_pid_t = yes; then
39029 cat >>confdefs.h <<_ACEOF
39035 echo "$as_me:$LINENO: checking for size_t" >&5
39036 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
39037 if test "${ac_cv_type_size_t+set}" = set; then
39038 echo $ECHO_N "(cached) $ECHO_C" >&6
39040 cat >conftest.$ac_ext <<_ACEOF
39043 cat confdefs.h >>conftest.$ac_ext
39044 cat >>conftest.$ac_ext <<_ACEOF
39045 /* end confdefs.h. */
39046 $ac_includes_default
39052 if (sizeof (size_t))
39058 rm -f conftest.$ac_objext
39059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39060 (eval $ac_compile) 2>conftest.er1
39062 grep -v '^ *+' conftest.er1 >conftest.err
39064 cat conftest.err >&5
39065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39066 (exit $ac_status); } &&
39067 { ac_try='test -z "$ac_c_werror_flag"
39068 || test ! -s conftest.err'
39069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39070 (eval $ac_try) 2>&5
39072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39073 (exit $ac_status); }; } &&
39074 { ac_try='test -s conftest.$ac_objext'
39075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39076 (eval $ac_try) 2>&5
39078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39079 (exit $ac_status); }; }; then
39080 ac_cv_type_size_t=yes
39082 echo "$as_me: failed program was:" >&5
39083 sed 's/^/| /' conftest.$ac_ext >&5
39085 ac_cv_type_size_t=no
39087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39089 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
39090 echo "${ECHO_T}$ac_cv_type_size_t" >&6
39091 if test $ac_cv_type_size_t = yes; then
39095 cat >>confdefs.h <<_ACEOF
39096 #define size_t unsigned
39102 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
39103 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
39104 if test "${ac_cv_type_uid_t+set}" = set; then
39105 echo $ECHO_N "(cached) $ECHO_C" >&6
39107 cat >conftest.$ac_ext <<_ACEOF
39110 cat confdefs.h >>conftest.$ac_ext
39111 cat >>conftest.$ac_ext <<_ACEOF
39112 /* end confdefs.h. */
39113 #include <sys/types.h>
39116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39117 $EGREP "uid_t" >/dev/null 2>&1; then
39118 ac_cv_type_uid_t=yes
39120 ac_cv_type_uid_t=no
39125 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
39126 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
39127 if test $ac_cv_type_uid_t = no; then
39129 cat >>confdefs.h <<\_ACEOF
39134 cat >>confdefs.h <<\_ACEOF
39140 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
39141 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
39142 if test "${ac_cv_type_signal+set}" = set; then
39143 echo $ECHO_N "(cached) $ECHO_C" >&6
39145 cat >conftest.$ac_ext <<_ACEOF
39148 cat confdefs.h >>conftest.$ac_ext
39149 cat >>conftest.$ac_ext <<_ACEOF
39150 /* end confdefs.h. */
39151 #include <sys/types.h>
39152 #include <signal.h>
39157 extern "C" void (*signal (int, void (*)(int)))(int);
39159 void (*signal ()) ();
39170 rm -f conftest.$ac_objext
39171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39172 (eval $ac_compile) 2>conftest.er1
39174 grep -v '^ *+' conftest.er1 >conftest.err
39176 cat conftest.err >&5
39177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39178 (exit $ac_status); } &&
39179 { ac_try='test -z "$ac_c_werror_flag"
39180 || test ! -s conftest.err'
39181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39182 (eval $ac_try) 2>&5
39184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39185 (exit $ac_status); }; } &&
39186 { ac_try='test -s conftest.$ac_objext'
39187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39188 (eval $ac_try) 2>&5
39190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39191 (exit $ac_status); }; }; then
39192 ac_cv_type_signal=void
39194 echo "$as_me: failed program was:" >&5
39195 sed 's/^/| /' conftest.$ac_ext >&5
39197 ac_cv_type_signal=int
39199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39201 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
39202 echo "${ECHO_T}$ac_cv_type_signal" >&6
39204 cat >>confdefs.h <<_ACEOF
39205 #define RETSIGTYPE $ac_cv_type_signal
39209 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
39210 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
39211 if test "${ac_cv_struct_tm+set}" = set; then
39212 echo $ECHO_N "(cached) $ECHO_C" >&6
39214 cat >conftest.$ac_ext <<_ACEOF
39217 cat confdefs.h >>conftest.$ac_ext
39218 cat >>conftest.$ac_ext <<_ACEOF
39219 /* end confdefs.h. */
39220 #include <sys/types.h>
39226 struct tm *tp; tp->tm_sec;
39231 rm -f conftest.$ac_objext
39232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39233 (eval $ac_compile) 2>conftest.er1
39235 grep -v '^ *+' conftest.er1 >conftest.err
39237 cat conftest.err >&5
39238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39239 (exit $ac_status); } &&
39240 { ac_try='test -z "$ac_c_werror_flag"
39241 || test ! -s conftest.err'
39242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39243 (eval $ac_try) 2>&5
39245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39246 (exit $ac_status); }; } &&
39247 { ac_try='test -s conftest.$ac_objext'
39248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39249 (eval $ac_try) 2>&5
39251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39252 (exit $ac_status); }; }; then
39253 ac_cv_struct_tm=time.h
39255 echo "$as_me: failed program was:" >&5
39256 sed 's/^/| /' conftest.$ac_ext >&5
39258 ac_cv_struct_tm=sys/time.h
39260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39262 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
39263 echo "${ECHO_T}$ac_cv_struct_tm" >&6
39264 if test $ac_cv_struct_tm = sys/time.h; then
39266 cat >>confdefs.h <<\_ACEOF
39267 #define TM_IN_SYS_TIME 1
39272 for ac_prog in flex lex
39274 # Extract the first word of "$ac_prog", so it can be a program name with args.
39275 set dummy $ac_prog; ac_word=$2
39276 echo "$as_me:$LINENO: checking for $ac_word" >&5
39277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39278 if test "${ac_cv_prog_LEX+set}" = set; then
39279 echo $ECHO_N "(cached) $ECHO_C" >&6
39281 if test -n "$LEX"; then
39282 ac_cv_prog_LEX="$LEX" # Let the user override the test.
39284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39285 for as_dir in $PATH
39288 test -z "$as_dir" && as_dir=.
39289 for ac_exec_ext in '' $ac_executable_extensions; do
39290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39291 ac_cv_prog_LEX="$ac_prog"
39292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39300 LEX=$ac_cv_prog_LEX
39301 if test -n "$LEX"; then
39302 echo "$as_me:$LINENO: result: $LEX" >&5
39303 echo "${ECHO_T}$LEX" >&6
39305 echo "$as_me:$LINENO: result: no" >&5
39306 echo "${ECHO_T}no" >&6
39309 test -n "$LEX" && break
39311 test -n "$LEX" || LEX=":"
39313 if test -z "$LEXLIB"
39315 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
39316 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
39317 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
39318 echo $ECHO_N "(cached) $ECHO_C" >&6
39320 ac_check_lib_save_LIBS=$LIBS
39322 cat >conftest.$ac_ext <<_ACEOF
39325 cat confdefs.h >>conftest.$ac_ext
39326 cat >>conftest.$ac_ext <<_ACEOF
39327 /* end confdefs.h. */
39329 /* Override any gcc2 internal prototype to avoid an error. */
39333 /* We use char because int might match the return type of a gcc2
39334 builtin and then its argument prototype would still apply. */
39344 rm -f conftest.$ac_objext conftest$ac_exeext
39345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39346 (eval $ac_link) 2>conftest.er1
39348 grep -v '^ *+' conftest.er1 >conftest.err
39350 cat conftest.err >&5
39351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39352 (exit $ac_status); } &&
39353 { ac_try='test -z "$ac_c_werror_flag"
39354 || test ! -s conftest.err'
39355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39356 (eval $ac_try) 2>&5
39358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39359 (exit $ac_status); }; } &&
39360 { ac_try='test -s conftest$ac_exeext'
39361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39362 (eval $ac_try) 2>&5
39364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39365 (exit $ac_status); }; }; then
39366 ac_cv_lib_fl_yywrap=yes
39368 echo "$as_me: failed program was:" >&5
39369 sed 's/^/| /' conftest.$ac_ext >&5
39371 ac_cv_lib_fl_yywrap=no
39373 rm -f conftest.err conftest.$ac_objext \
39374 conftest$ac_exeext conftest.$ac_ext
39375 LIBS=$ac_check_lib_save_LIBS
39377 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
39378 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
39379 if test $ac_cv_lib_fl_yywrap = yes; then
39382 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
39383 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
39384 if test "${ac_cv_lib_l_yywrap+set}" = set; then
39385 echo $ECHO_N "(cached) $ECHO_C" >&6
39387 ac_check_lib_save_LIBS=$LIBS
39389 cat >conftest.$ac_ext <<_ACEOF
39392 cat confdefs.h >>conftest.$ac_ext
39393 cat >>conftest.$ac_ext <<_ACEOF
39394 /* end confdefs.h. */
39396 /* Override any gcc2 internal prototype to avoid an error. */
39400 /* We use char because int might match the return type of a gcc2
39401 builtin and then its argument prototype would still apply. */
39411 rm -f conftest.$ac_objext conftest$ac_exeext
39412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39413 (eval $ac_link) 2>conftest.er1
39415 grep -v '^ *+' conftest.er1 >conftest.err
39417 cat conftest.err >&5
39418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39419 (exit $ac_status); } &&
39420 { ac_try='test -z "$ac_c_werror_flag"
39421 || test ! -s conftest.err'
39422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39423 (eval $ac_try) 2>&5
39425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39426 (exit $ac_status); }; } &&
39427 { ac_try='test -s conftest$ac_exeext'
39428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39429 (eval $ac_try) 2>&5
39431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39432 (exit $ac_status); }; }; then
39433 ac_cv_lib_l_yywrap=yes
39435 echo "$as_me: failed program was:" >&5
39436 sed 's/^/| /' conftest.$ac_ext >&5
39438 ac_cv_lib_l_yywrap=no
39440 rm -f conftest.err conftest.$ac_objext \
39441 conftest$ac_exeext conftest.$ac_ext
39442 LIBS=$ac_check_lib_save_LIBS
39444 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
39445 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
39446 if test $ac_cv_lib_l_yywrap = yes; then
39454 if test "x$LEX" != "x:"; then
39455 echo "$as_me:$LINENO: checking lex output file root" >&5
39456 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
39457 if test "${ac_cv_prog_lex_root+set}" = set; then
39458 echo $ECHO_N "(cached) $ECHO_C" >&6
39460 # The minimal lex program is just a single line: %%. But some broken lexes
39461 # (Solaris, I think it was) want two %% lines, so accommodate them.
39462 cat >conftest.l <<_ACEOF
39466 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
39467 (eval $LEX conftest.l) 2>&5
39469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39470 (exit $ac_status); }
39471 if test -f lex.yy.c; then
39472 ac_cv_prog_lex_root=lex.yy
39473 elif test -f lexyy.c; then
39474 ac_cv_prog_lex_root=lexyy
39476 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
39477 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
39478 { (exit 1); exit 1; }; }
39481 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
39482 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
39484 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
39486 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
39487 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
39488 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
39489 echo $ECHO_N "(cached) $ECHO_C" >&6
39491 # POSIX says lex can declare yytext either as a pointer or an array; the
39492 # default is implementation-dependent. Figure out which it is, since
39493 # not all implementations provide the %pointer and %array declarations.
39494 ac_cv_prog_lex_yytext_pointer=no
39495 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
39497 LIBS="$LIBS $LEXLIB"
39498 cat >conftest.$ac_ext <<_ACEOF
39499 `cat $LEX_OUTPUT_ROOT.c`
39501 rm -f conftest.$ac_objext conftest$ac_exeext
39502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39503 (eval $ac_link) 2>conftest.er1
39505 grep -v '^ *+' conftest.er1 >conftest.err
39507 cat conftest.err >&5
39508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39509 (exit $ac_status); } &&
39510 { ac_try='test -z "$ac_c_werror_flag"
39511 || test ! -s conftest.err'
39512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39513 (eval $ac_try) 2>&5
39515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39516 (exit $ac_status); }; } &&
39517 { ac_try='test -s conftest$ac_exeext'
39518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39519 (eval $ac_try) 2>&5
39521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39522 (exit $ac_status); }; }; then
39523 ac_cv_prog_lex_yytext_pointer=yes
39525 echo "$as_me: failed program was:" >&5
39526 sed 's/^/| /' conftest.$ac_ext >&5
39529 rm -f conftest.err conftest.$ac_objext \
39530 conftest$ac_exeext conftest.$ac_ext
39532 rm -f "${LEX_OUTPUT_ROOT}.c"
39535 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
39536 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
39537 if test $ac_cv_prog_lex_yytext_pointer = yes; then
39539 cat >>confdefs.h <<\_ACEOF
39540 #define YYTEXT_POINTER 1
39546 if test "$LEX" = :; then
39547 LEX=${am_missing_run}flex
39550 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
39551 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
39552 if test "${ac_cv_header_stdc+set}" = set; then
39553 echo $ECHO_N "(cached) $ECHO_C" >&6
39555 cat >conftest.$ac_ext <<_ACEOF
39558 cat confdefs.h >>conftest.$ac_ext
39559 cat >>conftest.$ac_ext <<_ACEOF
39560 /* end confdefs.h. */
39561 #include <stdlib.h>
39562 #include <stdarg.h>
39563 #include <string.h>
39574 rm -f conftest.$ac_objext
39575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39576 (eval $ac_compile) 2>conftest.er1
39578 grep -v '^ *+' conftest.er1 >conftest.err
39580 cat conftest.err >&5
39581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39582 (exit $ac_status); } &&
39583 { ac_try='test -z "$ac_c_werror_flag"
39584 || test ! -s conftest.err'
39585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39586 (eval $ac_try) 2>&5
39588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39589 (exit $ac_status); }; } &&
39590 { ac_try='test -s conftest.$ac_objext'
39591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39592 (eval $ac_try) 2>&5
39594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39595 (exit $ac_status); }; }; then
39596 ac_cv_header_stdc=yes
39598 echo "$as_me: failed program was:" >&5
39599 sed 's/^/| /' conftest.$ac_ext >&5
39601 ac_cv_header_stdc=no
39603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39605 if test $ac_cv_header_stdc = yes; then
39606 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
39607 cat >conftest.$ac_ext <<_ACEOF
39610 cat confdefs.h >>conftest.$ac_ext
39611 cat >>conftest.$ac_ext <<_ACEOF
39612 /* end confdefs.h. */
39613 #include <string.h>
39616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39617 $EGREP "memchr" >/dev/null 2>&1; then
39620 ac_cv_header_stdc=no
39626 if test $ac_cv_header_stdc = yes; then
39627 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
39628 cat >conftest.$ac_ext <<_ACEOF
39631 cat confdefs.h >>conftest.$ac_ext
39632 cat >>conftest.$ac_ext <<_ACEOF
39633 /* end confdefs.h. */
39634 #include <stdlib.h>
39637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39638 $EGREP "free" >/dev/null 2>&1; then
39641 ac_cv_header_stdc=no
39647 if test $ac_cv_header_stdc = yes; then
39648 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
39649 if test "$cross_compiling" = yes; then
39652 cat >conftest.$ac_ext <<_ACEOF
39655 cat confdefs.h >>conftest.$ac_ext
39656 cat >>conftest.$ac_ext <<_ACEOF
39657 /* end confdefs.h. */
39659 #if ((' ' & 0x0FF) == 0x020)
39660 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
39661 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
39663 # define ISLOWER(c) \
39664 (('a' <= (c) && (c) <= 'i') \
39665 || ('j' <= (c) && (c) <= 'r') \
39666 || ('s' <= (c) && (c) <= 'z'))
39667 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
39670 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
39675 for (i = 0; i < 256; i++)
39676 if (XOR (islower (i), ISLOWER (i))
39677 || toupper (i) != TOUPPER (i))
39682 rm -f conftest$ac_exeext
39683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39684 (eval $ac_link) 2>&5
39686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39689 (eval $ac_try) 2>&5
39691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39692 (exit $ac_status); }; }; then
39695 echo "$as_me: program exited with status $ac_status" >&5
39696 echo "$as_me: failed program was:" >&5
39697 sed 's/^/| /' conftest.$ac_ext >&5
39699 ( exit $ac_status )
39700 ac_cv_header_stdc=no
39702 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39706 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
39707 echo "${ECHO_T}$ac_cv_header_stdc" >&6
39708 if test $ac_cv_header_stdc = yes; then
39710 cat >>confdefs.h <<\_ACEOF
39711 #define STDC_HEADERS 1
39718 echo "$as_me:$LINENO: checking for socklen_t" >&5
39719 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
39720 if test "${ac_cv_type_socklen_t+set}" = set; then
39721 echo $ECHO_N "(cached) $ECHO_C" >&6
39723 cat >conftest.$ac_ext <<_ACEOF
39726 cat confdefs.h >>conftest.$ac_ext
39727 cat >>conftest.$ac_ext <<_ACEOF
39728 /* end confdefs.h. */
39729 #include <sys/types.h>
39731 #include <stdlib.h>
39732 #include <stddef.h>
39734 #include <sys/socket.h>
39736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39737 $EGREP "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
39738 ac_cv_type_socklen_t=yes
39740 ac_cv_type_socklen_t=no
39745 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
39746 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
39747 if test "x$ac_cv_type_socklen_t" = xno; then
39749 cat >>confdefs.h <<\_ACEOF
39750 #define socklen_t int
39755 echo "$as_me:$LINENO: checking for sa_family_t" >&5
39756 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
39757 if test "${ac_cv_type_sa_family_t+set}" = set; then
39758 echo $ECHO_N "(cached) $ECHO_C" >&6
39760 cat >conftest.$ac_ext <<_ACEOF
39763 cat confdefs.h >>conftest.$ac_ext
39764 cat >>conftest.$ac_ext <<_ACEOF
39765 /* end confdefs.h. */
39766 #include <sys/types.h>
39768 #include <stdlib.h>
39769 #include <stddef.h>
39771 #include <sys/socket.h>
39773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39774 $EGREP "(^|[^a-zA-Z_0-9])sa_family_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
39775 ac_cv_type_sa_family_t=yes
39777 ac_cv_type_sa_family_t=no
39782 echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
39783 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
39784 if test "x$ac_cv_type_sa_family_t" = xno; then
39786 cat >>confdefs.h <<\_ACEOF
39787 #define sa_family_t unsigned short
39798 ac_header_dirent=no
39799 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
39800 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
39801 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
39802 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
39803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39804 echo $ECHO_N "(cached) $ECHO_C" >&6
39806 cat >conftest.$ac_ext <<_ACEOF
39809 cat confdefs.h >>conftest.$ac_ext
39810 cat >>conftest.$ac_ext <<_ACEOF
39811 /* end confdefs.h. */
39812 #include <sys/types.h>
39824 rm -f conftest.$ac_objext
39825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39826 (eval $ac_compile) 2>conftest.er1
39828 grep -v '^ *+' conftest.er1 >conftest.err
39830 cat conftest.err >&5
39831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39832 (exit $ac_status); } &&
39833 { ac_try='test -z "$ac_c_werror_flag"
39834 || test ! -s conftest.err'
39835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39836 (eval $ac_try) 2>&5
39838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39839 (exit $ac_status); }; } &&
39840 { ac_try='test -s conftest.$ac_objext'
39841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39842 (eval $ac_try) 2>&5
39844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39845 (exit $ac_status); }; }; then
39846 eval "$as_ac_Header=yes"
39848 echo "$as_me: failed program was:" >&5
39849 sed 's/^/| /' conftest.$ac_ext >&5
39851 eval "$as_ac_Header=no"
39853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39858 cat >>confdefs.h <<_ACEOF
39859 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
39862 ac_header_dirent=$ac_hdr; break
39866 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
39867 if test $ac_header_dirent = dirent.h; then
39868 echo "$as_me:$LINENO: checking for library containing opendir" >&5
39869 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
39870 if test "${ac_cv_search_opendir+set}" = set; then
39871 echo $ECHO_N "(cached) $ECHO_C" >&6
39873 ac_func_search_save_LIBS=$LIBS
39874 ac_cv_search_opendir=no
39875 cat >conftest.$ac_ext <<_ACEOF
39878 cat confdefs.h >>conftest.$ac_ext
39879 cat >>conftest.$ac_ext <<_ACEOF
39880 /* end confdefs.h. */
39882 /* Override any gcc2 internal prototype to avoid an error. */
39886 /* We use char because int might match the return type of a gcc2
39887 builtin and then its argument prototype would still apply. */
39897 rm -f conftest.$ac_objext conftest$ac_exeext
39898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39899 (eval $ac_link) 2>conftest.er1
39901 grep -v '^ *+' conftest.er1 >conftest.err
39903 cat conftest.err >&5
39904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39905 (exit $ac_status); } &&
39906 { ac_try='test -z "$ac_c_werror_flag"
39907 || test ! -s conftest.err'
39908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39909 (eval $ac_try) 2>&5
39911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39912 (exit $ac_status); }; } &&
39913 { ac_try='test -s conftest$ac_exeext'
39914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39915 (eval $ac_try) 2>&5
39917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39918 (exit $ac_status); }; }; then
39919 ac_cv_search_opendir="none required"
39921 echo "$as_me: failed program was:" >&5
39922 sed 's/^/| /' conftest.$ac_ext >&5
39925 rm -f conftest.err conftest.$ac_objext \
39926 conftest$ac_exeext conftest.$ac_ext
39927 if test "$ac_cv_search_opendir" = no; then
39928 for ac_lib in dir; do
39929 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
39930 cat >conftest.$ac_ext <<_ACEOF
39933 cat confdefs.h >>conftest.$ac_ext
39934 cat >>conftest.$ac_ext <<_ACEOF
39935 /* end confdefs.h. */
39937 /* Override any gcc2 internal prototype to avoid an error. */
39941 /* We use char because int might match the return type of a gcc2
39942 builtin and then its argument prototype would still apply. */
39952 rm -f conftest.$ac_objext conftest$ac_exeext
39953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39954 (eval $ac_link) 2>conftest.er1
39956 grep -v '^ *+' conftest.er1 >conftest.err
39958 cat conftest.err >&5
39959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39960 (exit $ac_status); } &&
39961 { ac_try='test -z "$ac_c_werror_flag"
39962 || test ! -s conftest.err'
39963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39964 (eval $ac_try) 2>&5
39966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39967 (exit $ac_status); }; } &&
39968 { ac_try='test -s conftest$ac_exeext'
39969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39970 (eval $ac_try) 2>&5
39972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39973 (exit $ac_status); }; }; then
39974 ac_cv_search_opendir="-l$ac_lib"
39977 echo "$as_me: failed program was:" >&5
39978 sed 's/^/| /' conftest.$ac_ext >&5
39981 rm -f conftest.err conftest.$ac_objext \
39982 conftest$ac_exeext conftest.$ac_ext
39985 LIBS=$ac_func_search_save_LIBS
39987 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
39988 echo "${ECHO_T}$ac_cv_search_opendir" >&6
39989 if test "$ac_cv_search_opendir" != no; then
39990 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
39995 echo "$as_me:$LINENO: checking for library containing opendir" >&5
39996 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
39997 if test "${ac_cv_search_opendir+set}" = set; then
39998 echo $ECHO_N "(cached) $ECHO_C" >&6
40000 ac_func_search_save_LIBS=$LIBS
40001 ac_cv_search_opendir=no
40002 cat >conftest.$ac_ext <<_ACEOF
40005 cat confdefs.h >>conftest.$ac_ext
40006 cat >>conftest.$ac_ext <<_ACEOF
40007 /* end confdefs.h. */
40009 /* Override any gcc2 internal prototype to avoid an error. */
40013 /* We use char because int might match the return type of a gcc2
40014 builtin and then its argument prototype would still apply. */
40024 rm -f conftest.$ac_objext conftest$ac_exeext
40025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40026 (eval $ac_link) 2>conftest.er1
40028 grep -v '^ *+' conftest.er1 >conftest.err
40030 cat conftest.err >&5
40031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40032 (exit $ac_status); } &&
40033 { ac_try='test -z "$ac_c_werror_flag"
40034 || test ! -s conftest.err'
40035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40036 (eval $ac_try) 2>&5
40038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40039 (exit $ac_status); }; } &&
40040 { ac_try='test -s conftest$ac_exeext'
40041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40042 (eval $ac_try) 2>&5
40044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40045 (exit $ac_status); }; }; then
40046 ac_cv_search_opendir="none required"
40048 echo "$as_me: failed program was:" >&5
40049 sed 's/^/| /' conftest.$ac_ext >&5
40052 rm -f conftest.err conftest.$ac_objext \
40053 conftest$ac_exeext conftest.$ac_ext
40054 if test "$ac_cv_search_opendir" = no; then
40055 for ac_lib in x; do
40056 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
40057 cat >conftest.$ac_ext <<_ACEOF
40060 cat confdefs.h >>conftest.$ac_ext
40061 cat >>conftest.$ac_ext <<_ACEOF
40062 /* end confdefs.h. */
40064 /* Override any gcc2 internal prototype to avoid an error. */
40068 /* We use char because int might match the return type of a gcc2
40069 builtin and then its argument prototype would still apply. */
40079 rm -f conftest.$ac_objext conftest$ac_exeext
40080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40081 (eval $ac_link) 2>conftest.er1
40083 grep -v '^ *+' conftest.er1 >conftest.err
40085 cat conftest.err >&5
40086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40087 (exit $ac_status); } &&
40088 { ac_try='test -z "$ac_c_werror_flag"
40089 || test ! -s conftest.err'
40090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40091 (eval $ac_try) 2>&5
40093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40094 (exit $ac_status); }; } &&
40095 { ac_try='test -s conftest$ac_exeext'
40096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40097 (eval $ac_try) 2>&5
40099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40100 (exit $ac_status); }; }; then
40101 ac_cv_search_opendir="-l$ac_lib"
40104 echo "$as_me: failed program was:" >&5
40105 sed 's/^/| /' conftest.$ac_ext >&5
40108 rm -f conftest.err conftest.$ac_objext \
40109 conftest$ac_exeext conftest.$ac_ext
40112 LIBS=$ac_func_search_save_LIBS
40114 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
40115 echo "${ECHO_T}$ac_cv_search_opendir" >&6
40116 if test "$ac_cv_search_opendir" != no; then
40117 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
40127 for ac_header in sys/wait.h wait.h
40129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40131 echo "$as_me:$LINENO: checking for $ac_header" >&5
40132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40134 echo $ECHO_N "(cached) $ECHO_C" >&6
40136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40139 # Is the header compilable?
40140 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40142 cat >conftest.$ac_ext <<_ACEOF
40145 cat confdefs.h >>conftest.$ac_ext
40146 cat >>conftest.$ac_ext <<_ACEOF
40147 /* end confdefs.h. */
40148 $ac_includes_default
40149 #include <$ac_header>
40151 rm -f conftest.$ac_objext
40152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40153 (eval $ac_compile) 2>conftest.er1
40155 grep -v '^ *+' conftest.er1 >conftest.err
40157 cat conftest.err >&5
40158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40159 (exit $ac_status); } &&
40160 { ac_try='test -z "$ac_c_werror_flag"
40161 || test ! -s conftest.err'
40162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40163 (eval $ac_try) 2>&5
40165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40166 (exit $ac_status); }; } &&
40167 { ac_try='test -s conftest.$ac_objext'
40168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40169 (eval $ac_try) 2>&5
40171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40172 (exit $ac_status); }; }; then
40173 ac_header_compiler=yes
40175 echo "$as_me: failed program was:" >&5
40176 sed 's/^/| /' conftest.$ac_ext >&5
40178 ac_header_compiler=no
40180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40181 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40182 echo "${ECHO_T}$ac_header_compiler" >&6
40184 # Is the header present?
40185 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40186 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40187 cat >conftest.$ac_ext <<_ACEOF
40190 cat confdefs.h >>conftest.$ac_ext
40191 cat >>conftest.$ac_ext <<_ACEOF
40192 /* end confdefs.h. */
40193 #include <$ac_header>
40195 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40198 grep -v '^ *+' conftest.er1 >conftest.err
40200 cat conftest.err >&5
40201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40202 (exit $ac_status); } >/dev/null; then
40203 if test -s conftest.err; then
40204 ac_cpp_err=$ac_c_preproc_warn_flag
40205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40212 if test -z "$ac_cpp_err"; then
40213 ac_header_preproc=yes
40215 echo "$as_me: failed program was:" >&5
40216 sed 's/^/| /' conftest.$ac_ext >&5
40218 ac_header_preproc=no
40220 rm -f conftest.err conftest.$ac_ext
40221 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40222 echo "${ECHO_T}$ac_header_preproc" >&6
40224 # So? What about this header?
40225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40228 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40230 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40231 ac_header_preproc=yes
40234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40235 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40237 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40238 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40239 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40240 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40241 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40243 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40244 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40245 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40248 ## ------------------------------------------ ##
40249 ## Report this to the AC_PACKAGE_NAME lists. ##
40250 ## ------------------------------------------ ##
40253 sed "s/^/$as_me: WARNING: /" >&2
40256 echo "$as_me:$LINENO: checking for $ac_header" >&5
40257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40259 echo $ECHO_N "(cached) $ECHO_C" >&6
40261 eval "$as_ac_Header=\$ac_header_preproc"
40263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40268 cat >>confdefs.h <<_ACEOF
40269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40276 echo "$as_me:$LINENO: checking whether wait uses union wait" >&5
40277 echo $ECHO_N "checking whether wait uses union wait... $ECHO_C" >&6
40278 if test "${cf_cv_arg_union_wait+set}" = set; then
40279 echo $ECHO_N "(cached) $ECHO_C" >&6
40281 cat >conftest.$ac_ext <<_ACEOF
40284 cat confdefs.h >>conftest.$ac_ext
40285 cat >>conftest.$ac_ext <<_ACEOF
40286 /* end confdefs.h. */
40288 #include <sys/types.h>
40290 #if HAVE_SYS_WAIT_H
40291 # include <sys/wait.h>
40299 pid_t wait(union wait *);
40306 union wait x; int i;
40307 wait(&x); i = WIFEXITED(x)
40313 rm -f conftest.$ac_objext
40314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40315 (eval $ac_compile) 2>conftest.er1
40317 grep -v '^ *+' conftest.er1 >conftest.err
40319 cat conftest.err >&5
40320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40321 (exit $ac_status); } &&
40322 { ac_try='test -z "$ac_c_werror_flag"
40323 || test ! -s conftest.err'
40324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40325 (eval $ac_try) 2>&5
40327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40328 (exit $ac_status); }; } &&
40329 { ac_try='test -s conftest.$ac_objext'
40330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40331 (eval $ac_try) 2>&5
40333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40334 (exit $ac_status); }; }; then
40335 cf_cv_arg_union_wait=yes
40337 echo "$as_me: failed program was:" >&5
40338 sed 's/^/| /' conftest.$ac_ext >&5
40340 cf_cv_arg_union_wait=no
40342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40344 echo "$as_me:$LINENO: result: $cf_cv_arg_union_wait" >&5
40345 echo "${ECHO_T}$cf_cv_arg_union_wait" >&6
40346 if test $cf_cv_arg_union_wait = yes; then
40348 cat >>confdefs.h <<\_ACEOF
40349 #define WAIT_USES_UNION 1
40358 for ac_header in sys/wait.h wait.h
40360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40362 echo "$as_me:$LINENO: checking for $ac_header" >&5
40363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40365 echo $ECHO_N "(cached) $ECHO_C" >&6
40367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40370 # Is the header compilable?
40371 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40373 cat >conftest.$ac_ext <<_ACEOF
40376 cat confdefs.h >>conftest.$ac_ext
40377 cat >>conftest.$ac_ext <<_ACEOF
40378 /* end confdefs.h. */
40379 $ac_includes_default
40380 #include <$ac_header>
40382 rm -f conftest.$ac_objext
40383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40384 (eval $ac_compile) 2>conftest.er1
40386 grep -v '^ *+' conftest.er1 >conftest.err
40388 cat conftest.err >&5
40389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40390 (exit $ac_status); } &&
40391 { ac_try='test -z "$ac_c_werror_flag"
40392 || test ! -s conftest.err'
40393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40394 (eval $ac_try) 2>&5
40396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40397 (exit $ac_status); }; } &&
40398 { ac_try='test -s conftest.$ac_objext'
40399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40400 (eval $ac_try) 2>&5
40402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40403 (exit $ac_status); }; }; then
40404 ac_header_compiler=yes
40406 echo "$as_me: failed program was:" >&5
40407 sed 's/^/| /' conftest.$ac_ext >&5
40409 ac_header_compiler=no
40411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40412 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40413 echo "${ECHO_T}$ac_header_compiler" >&6
40415 # Is the header present?
40416 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40418 cat >conftest.$ac_ext <<_ACEOF
40421 cat confdefs.h >>conftest.$ac_ext
40422 cat >>conftest.$ac_ext <<_ACEOF
40423 /* end confdefs.h. */
40424 #include <$ac_header>
40426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40429 grep -v '^ *+' conftest.er1 >conftest.err
40431 cat conftest.err >&5
40432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40433 (exit $ac_status); } >/dev/null; then
40434 if test -s conftest.err; then
40435 ac_cpp_err=$ac_c_preproc_warn_flag
40436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40443 if test -z "$ac_cpp_err"; then
40444 ac_header_preproc=yes
40446 echo "$as_me: failed program was:" >&5
40447 sed 's/^/| /' conftest.$ac_ext >&5
40449 ac_header_preproc=no
40451 rm -f conftest.err conftest.$ac_ext
40452 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40453 echo "${ECHO_T}$ac_header_preproc" >&6
40455 # So? What about this header?
40456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40462 ac_header_preproc=yes
40465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40469 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40471 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40472 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40475 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40479 ## ------------------------------------------ ##
40480 ## Report this to the AC_PACKAGE_NAME lists. ##
40481 ## ------------------------------------------ ##
40484 sed "s/^/$as_me: WARNING: /" >&2
40487 echo "$as_me:$LINENO: checking for $ac_header" >&5
40488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40490 echo $ECHO_N "(cached) $ECHO_C" >&6
40492 eval "$as_ac_Header=\$ac_header_preproc"
40494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40499 cat >>confdefs.h <<_ACEOF
40500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40507 echo "$as_me:$LINENO: checking whether wait uses int" >&5
40508 echo $ECHO_N "checking whether wait uses int... $ECHO_C" >&6
40509 if test "${cf_cv_arg_int+set}" = set; then
40510 echo $ECHO_N "(cached) $ECHO_C" >&6
40512 cat >conftest.$ac_ext <<_ACEOF
40515 cat confdefs.h >>conftest.$ac_ext
40516 cat >>conftest.$ac_ext <<_ACEOF
40517 /* end confdefs.h. */
40519 #include <sys/types.h>
40521 #if HAVE_SYS_WAIT_H
40522 # include <sys/wait.h>
40538 wait(&x); i = WIFEXITED(x)
40544 rm -f conftest.$ac_objext
40545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40546 (eval $ac_compile) 2>conftest.er1
40548 grep -v '^ *+' conftest.er1 >conftest.err
40550 cat conftest.err >&5
40551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40552 (exit $ac_status); } &&
40553 { ac_try='test -z "$ac_c_werror_flag"
40554 || test ! -s conftest.err'
40555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40556 (eval $ac_try) 2>&5
40558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40559 (exit $ac_status); }; } &&
40560 { ac_try='test -s conftest.$ac_objext'
40561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40562 (eval $ac_try) 2>&5
40564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40565 (exit $ac_status); }; }; then
40568 echo "$as_me: failed program was:" >&5
40569 sed 's/^/| /' conftest.$ac_ext >&5
40573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40575 echo "$as_me:$LINENO: result: $cf_cv_arg_int" >&5
40576 echo "${ECHO_T}$cf_cv_arg_int" >&6
40577 if test $cf_cv_arg_int = yes; then
40579 cat >>confdefs.h <<\_ACEOF
40580 #define WAIT_USES_INT 1
40585 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
40586 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
40587 if test "${ac_cv_header_time+set}" = set; then
40588 echo $ECHO_N "(cached) $ECHO_C" >&6
40590 cat >conftest.$ac_ext <<_ACEOF
40593 cat confdefs.h >>conftest.$ac_ext
40594 cat >>conftest.$ac_ext <<_ACEOF
40595 /* end confdefs.h. */
40596 #include <sys/types.h>
40597 #include <sys/time.h>
40603 if ((struct tm *) 0)
40609 rm -f conftest.$ac_objext
40610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40611 (eval $ac_compile) 2>conftest.er1
40613 grep -v '^ *+' conftest.er1 >conftest.err
40615 cat conftest.err >&5
40616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40617 (exit $ac_status); } &&
40618 { ac_try='test -z "$ac_c_werror_flag"
40619 || test ! -s conftest.err'
40620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40621 (eval $ac_try) 2>&5
40623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40624 (exit $ac_status); }; } &&
40625 { ac_try='test -s conftest.$ac_objext'
40626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40627 (eval $ac_try) 2>&5
40629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40630 (exit $ac_status); }; }; then
40631 ac_cv_header_time=yes
40633 echo "$as_me: failed program was:" >&5
40634 sed 's/^/| /' conftest.$ac_ext >&5
40636 ac_cv_header_time=no
40638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40640 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
40641 echo "${ECHO_T}$ac_cv_header_time" >&6
40642 if test $ac_cv_header_time = yes; then
40644 cat >>confdefs.h <<\_ACEOF
40645 #define TIME_WITH_SYS_TIME 1
40715 cam/scsi/scsi_message.h \
40733 netinet/in_systm.h \
40735 readline/history.h \
40736 readline/readline.h \
40738 scsi/scsi_ioctl.h \
40757 sys/scsi/impl/uscsi.h \
40758 sys/scsi/scsi/ioctl.h \
40775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40777 echo "$as_me:$LINENO: checking for $ac_header" >&5
40778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40780 echo $ECHO_N "(cached) $ECHO_C" >&6
40782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40785 # Is the header compilable?
40786 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40788 cat >conftest.$ac_ext <<_ACEOF
40791 cat confdefs.h >>conftest.$ac_ext
40792 cat >>conftest.$ac_ext <<_ACEOF
40793 /* end confdefs.h. */
40794 $ac_includes_default
40795 #include <$ac_header>
40797 rm -f conftest.$ac_objext
40798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40799 (eval $ac_compile) 2>conftest.er1
40801 grep -v '^ *+' conftest.er1 >conftest.err
40803 cat conftest.err >&5
40804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40805 (exit $ac_status); } &&
40806 { ac_try='test -z "$ac_c_werror_flag"
40807 || test ! -s conftest.err'
40808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40809 (eval $ac_try) 2>&5
40811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40812 (exit $ac_status); }; } &&
40813 { ac_try='test -s conftest.$ac_objext'
40814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40815 (eval $ac_try) 2>&5
40817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40818 (exit $ac_status); }; }; then
40819 ac_header_compiler=yes
40821 echo "$as_me: failed program was:" >&5
40822 sed 's/^/| /' conftest.$ac_ext >&5
40824 ac_header_compiler=no
40826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40828 echo "${ECHO_T}$ac_header_compiler" >&6
40830 # Is the header present?
40831 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40833 cat >conftest.$ac_ext <<_ACEOF
40836 cat confdefs.h >>conftest.$ac_ext
40837 cat >>conftest.$ac_ext <<_ACEOF
40838 /* end confdefs.h. */
40839 #include <$ac_header>
40841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40844 grep -v '^ *+' conftest.er1 >conftest.err
40846 cat conftest.err >&5
40847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40848 (exit $ac_status); } >/dev/null; then
40849 if test -s conftest.err; then
40850 ac_cpp_err=$ac_c_preproc_warn_flag
40851 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40858 if test -z "$ac_cpp_err"; then
40859 ac_header_preproc=yes
40861 echo "$as_me: failed program was:" >&5
40862 sed 's/^/| /' conftest.$ac_ext >&5
40864 ac_header_preproc=no
40866 rm -f conftest.err conftest.$ac_ext
40867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40868 echo "${ECHO_T}$ac_header_preproc" >&6
40870 # So? What about this header?
40871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40877 ac_header_preproc=yes
40880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40883 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40887 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40894 ## ------------------------------------------ ##
40895 ## Report this to the AC_PACKAGE_NAME lists. ##
40896 ## ------------------------------------------ ##
40899 sed "s/^/$as_me: WARNING: /" >&2
40902 echo "$as_me:$LINENO: checking for $ac_header" >&5
40903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40905 echo $ECHO_N "(cached) $ECHO_C" >&6
40907 eval "$as_ac_Header=\$ac_header_preproc"
40909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40914 cat >>confdefs.h <<_ACEOF
40915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40924 for ac_header in netinet/ip.h
40926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40927 echo "$as_me:$LINENO: checking for $ac_header" >&5
40928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40930 echo $ECHO_N "(cached) $ECHO_C" >&6
40932 cat >conftest.$ac_ext <<_ACEOF
40935 cat confdefs.h >>conftest.$ac_ext
40936 cat >>conftest.$ac_ext <<_ACEOF
40937 /* end confdefs.h. */
40938 #include <sys/socket.h>
40939 #if HAVE_SYS_TYPES_H
40940 #include <sys/types.h>
40942 #ifdef HAVE_NETINET_IN_SYSTM_H
40943 #include <netinet/in_systm.h>
40945 #include <netinet/in.h>
40948 #include <$ac_header>
40950 rm -f conftest.$ac_objext
40951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40952 (eval $ac_compile) 2>conftest.er1
40954 grep -v '^ *+' conftest.er1 >conftest.err
40956 cat conftest.err >&5
40957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40958 (exit $ac_status); } &&
40959 { ac_try='test -z "$ac_c_werror_flag"
40960 || test ! -s conftest.err'
40961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40962 (eval $ac_try) 2>&5
40964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40965 (exit $ac_status); }; } &&
40966 { ac_try='test -s conftest.$ac_objext'
40967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40968 (eval $ac_try) 2>&5
40970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40971 (exit $ac_status); }; }; then
40972 eval "$as_ac_Header=yes"
40974 echo "$as_me: failed program was:" >&5
40975 sed 's/^/| /' conftest.$ac_ext >&5
40977 eval "$as_ac_Header=no"
40979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40984 cat >>confdefs.h <<_ACEOF
40985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40994 for ac_header in sys/mount.h
40996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40997 echo "$as_me:$LINENO: checking for $ac_header" >&5
40998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41000 echo $ECHO_N "(cached) $ECHO_C" >&6
41002 cat >conftest.$ac_ext <<_ACEOF
41005 cat confdefs.h >>conftest.$ac_ext
41006 cat >>conftest.$ac_ext <<_ACEOF
41007 /* end confdefs.h. */
41008 #ifdef HAVE_SYS_PARAM_H
41009 #include <sys/param.h>
41013 #include <$ac_header>
41015 rm -f conftest.$ac_objext
41016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41017 (eval $ac_compile) 2>conftest.er1
41019 grep -v '^ *+' conftest.er1 >conftest.err
41021 cat conftest.err >&5
41022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41023 (exit $ac_status); } &&
41024 { ac_try='test -z "$ac_c_werror_flag"
41025 || test ! -s conftest.err'
41026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41027 (eval $ac_try) 2>&5
41029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41030 (exit $ac_status); }; } &&
41031 { ac_try='test -s conftest.$ac_objext'
41032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41033 (eval $ac_try) 2>&5
41035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41036 (exit $ac_status); }; }; then
41037 eval "$as_ac_Header=yes"
41039 echo "$as_me: failed program was:" >&5
41040 sed 's/^/| /' conftest.$ac_ext >&5
41042 eval "$as_ac_Header=no"
41044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41049 cat >>confdefs.h <<_ACEOF
41050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41058 NO_SCSI_CHANGER_MODE=true
41059 NO_CHIO_CHANGER_MODE=true
41061 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
41062 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
41063 if test "${ac_cv_c_bigendian+set}" = set; then
41064 echo $ECHO_N "(cached) $ECHO_C" >&6
41066 # See if sys/param.h defines the BYTE_ORDER macro.
41067 cat >conftest.$ac_ext <<_ACEOF
41070 cat confdefs.h >>conftest.$ac_ext
41071 cat >>conftest.$ac_ext <<_ACEOF
41072 /* end confdefs.h. */
41073 #include <sys/types.h>
41074 #include <sys/param.h>
41079 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
41080 bogus endian macros
41087 rm -f conftest.$ac_objext
41088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41089 (eval $ac_compile) 2>conftest.er1
41091 grep -v '^ *+' conftest.er1 >conftest.err
41093 cat conftest.err >&5
41094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41095 (exit $ac_status); } &&
41096 { ac_try='test -z "$ac_c_werror_flag"
41097 || test ! -s conftest.err'
41098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41099 (eval $ac_try) 2>&5
41101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41102 (exit $ac_status); }; } &&
41103 { ac_try='test -s conftest.$ac_objext'
41104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41105 (eval $ac_try) 2>&5
41107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41108 (exit $ac_status); }; }; then
41109 # It does; now see whether it defined to BIG_ENDIAN or not.
41110 cat >conftest.$ac_ext <<_ACEOF
41113 cat confdefs.h >>conftest.$ac_ext
41114 cat >>conftest.$ac_ext <<_ACEOF
41115 /* end confdefs.h. */
41116 #include <sys/types.h>
41117 #include <sys/param.h>
41122 #if BYTE_ORDER != BIG_ENDIAN
41130 rm -f conftest.$ac_objext
41131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41132 (eval $ac_compile) 2>conftest.er1
41134 grep -v '^ *+' conftest.er1 >conftest.err
41136 cat conftest.err >&5
41137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41138 (exit $ac_status); } &&
41139 { ac_try='test -z "$ac_c_werror_flag"
41140 || test ! -s conftest.err'
41141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41142 (eval $ac_try) 2>&5
41144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41145 (exit $ac_status); }; } &&
41146 { ac_try='test -s conftest.$ac_objext'
41147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41148 (eval $ac_try) 2>&5
41150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41151 (exit $ac_status); }; }; then
41152 ac_cv_c_bigendian=yes
41154 echo "$as_me: failed program was:" >&5
41155 sed 's/^/| /' conftest.$ac_ext >&5
41157 ac_cv_c_bigendian=no
41159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41161 echo "$as_me: failed program was:" >&5
41162 sed 's/^/| /' conftest.$ac_ext >&5
41164 # It does not; compile a test program.
41165 if test "$cross_compiling" = yes; then
41166 # try to guess the endianness by grepping values into an object file
41167 ac_cv_c_bigendian=unknown
41168 cat >conftest.$ac_ext <<_ACEOF
41171 cat confdefs.h >>conftest.$ac_ext
41172 cat >>conftest.$ac_ext <<_ACEOF
41173 /* end confdefs.h. */
41174 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
41175 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
41176 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
41177 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
41178 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
41179 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
41183 _ascii (); _ebcdic ();
41188 rm -f conftest.$ac_objext
41189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41190 (eval $ac_compile) 2>conftest.er1
41192 grep -v '^ *+' conftest.er1 >conftest.err
41194 cat conftest.err >&5
41195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41196 (exit $ac_status); } &&
41197 { ac_try='test -z "$ac_c_werror_flag"
41198 || test ! -s conftest.err'
41199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41200 (eval $ac_try) 2>&5
41202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41203 (exit $ac_status); }; } &&
41204 { ac_try='test -s conftest.$ac_objext'
41205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41206 (eval $ac_try) 2>&5
41208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41209 (exit $ac_status); }; }; then
41210 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
41211 ac_cv_c_bigendian=yes
41213 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
41214 if test "$ac_cv_c_bigendian" = unknown; then
41215 ac_cv_c_bigendian=no
41217 # finding both strings is unlikely to happen, but who knows?
41218 ac_cv_c_bigendian=unknown
41222 echo "$as_me: failed program was:" >&5
41223 sed 's/^/| /' conftest.$ac_ext >&5
41226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41228 cat >conftest.$ac_ext <<_ACEOF
41231 cat confdefs.h >>conftest.$ac_ext
41232 cat >>conftest.$ac_ext <<_ACEOF
41233 /* end confdefs.h. */
41237 /* Are we little or big endian? From Harbison&Steele. */
41241 char c[sizeof (long)];
41244 exit (u.c[sizeof (long) - 1] == 1);
41247 rm -f conftest$ac_exeext
41248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41249 (eval $ac_link) 2>&5
41251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41254 (eval $ac_try) 2>&5
41256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41257 (exit $ac_status); }; }; then
41258 ac_cv_c_bigendian=no
41260 echo "$as_me: program exited with status $ac_status" >&5
41261 echo "$as_me: failed program was:" >&5
41262 sed 's/^/| /' conftest.$ac_ext >&5
41264 ( exit $ac_status )
41265 ac_cv_c_bigendian=yes
41267 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41272 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
41273 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
41274 case $ac_cv_c_bigendian in
41277 cat >>confdefs.h <<\_ACEOF
41278 #define WORDS_BIGENDIAN 1
41284 { { echo "$as_me:$LINENO: error: unknown endianness
41285 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
41286 echo "$as_me: error: unknown endianness
41287 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
41288 { (exit 1); exit 1; }; } ;;
41292 if test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
41293 echo "$as_me:$LINENO: checking for HP/UX-like scsi changer support" >&5
41294 echo $ECHO_N "checking for HP/UX-like scsi changer support... $ECHO_C" >&6
41295 if test "${amanda_cv_hpux_scsi_chio+set}" = set; then
41296 echo $ECHO_N "(cached) $ECHO_C" >&6
41298 cat >conftest.$ac_ext <<_ACEOF
41301 cat confdefs.h >>conftest.$ac_ext
41302 cat >>conftest.$ac_ext <<_ACEOF
41303 /* end confdefs.h. */
41305 #include <sys/scsi.h>
41311 static struct element_addresses changer_info;
41312 int i = SIOC_ELEMENT_ADDRESSES;
41313 int j = SIOC_ELEMENT_STATUS;
41314 int k = SIOC_MOVE_MEDIUM;
41320 rm -f conftest.$ac_objext
41321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41322 (eval $ac_compile) 2>conftest.er1
41324 grep -v '^ *+' conftest.er1 >conftest.err
41326 cat conftest.err >&5
41327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41328 (exit $ac_status); } &&
41329 { ac_try='test -z "$ac_c_werror_flag"
41330 || test ! -s conftest.err'
41331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41332 (eval $ac_try) 2>&5
41334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41335 (exit $ac_status); }; } &&
41336 { ac_try='test -s conftest.$ac_objext'
41337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41338 (eval $ac_try) 2>&5
41340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41341 (exit $ac_status); }; }; then
41342 amanda_cv_hpux_scsi_chio=yes
41344 echo "$as_me: failed program was:" >&5
41345 sed 's/^/| /' conftest.$ac_ext >&5
41347 amanda_cv_hpux_scsi_chio=no
41349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41351 echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi_chio" >&5
41352 echo "${ECHO_T}$amanda_cv_hpux_scsi_chio" >&6
41353 if test x"$amanda_cv_hpux_scsi_chio" = x"yes"; then
41355 cat >>confdefs.h <<\_ACEOF
41356 #define HAVE_HPUX_SCSI_CHIO 1
41359 NO_SCSI_CHANGER_MODE=false
41363 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
41364 test x"$ac_cv_header_scsi_scsi_ioctl_h" = x"yes"; then
41365 echo "$as_me:$LINENO: checking for Linux like scsi support (ioctl)" >&5
41366 echo $ECHO_N "checking for Linux like scsi support (ioctl)... $ECHO_C" >&6
41367 if test "${amanda_cv_linux_scsi+set}" = set; then
41368 echo $ECHO_N "(cached) $ECHO_C" >&6
41370 cat >conftest.$ac_ext <<_ACEOF
41373 cat confdefs.h >>conftest.$ac_ext
41374 cat >>conftest.$ac_ext <<_ACEOF
41375 /* end confdefs.h. */
41377 #include <scsi/scsi_ioctl.h>
41378 #include <sys/mtio.h>
41386 ioctl(device, SCSI_IOCTL_SEND_COMMAND, Command);
41392 rm -f conftest.$ac_objext
41393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41394 (eval $ac_compile) 2>conftest.er1
41396 grep -v '^ *+' conftest.er1 >conftest.err
41398 cat conftest.err >&5
41399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41400 (exit $ac_status); } &&
41401 { ac_try='test -z "$ac_c_werror_flag"
41402 || test ! -s conftest.err'
41403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41404 (eval $ac_try) 2>&5
41406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41407 (exit $ac_status); }; } &&
41408 { ac_try='test -s conftest.$ac_objext'
41409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41410 (eval $ac_try) 2>&5
41412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41413 (exit $ac_status); }; }; then
41414 amanda_cv_linux_scsi=yes
41416 echo "$as_me: failed program was:" >&5
41417 sed 's/^/| /' conftest.$ac_ext >&5
41419 amanda_cv_linux_scsi=no
41421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41423 echo "$as_me:$LINENO: result: $amanda_cv_linux_scsi" >&5
41424 echo "${ECHO_T}$amanda_cv_linux_scsi" >&6
41427 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
41428 test x"$ac_cv_header_scsi_sg_h" = x"yes"; then
41429 echo "$as_me:$LINENO: checking for Linux like scsi support (sg)" >&5
41430 echo $ECHO_N "checking for Linux like scsi support (sg)... $ECHO_C" >&6
41431 if test "${amanda_cv_linux_sg_scsi+set}" = set; then
41432 echo $ECHO_N "(cached) $ECHO_C" >&6
41434 cat >conftest.$ac_ext <<_ACEOF
41437 cat confdefs.h >>conftest.$ac_ext
41438 cat >>conftest.$ac_ext <<_ACEOF
41439 /* end confdefs.h. */
41441 #include <sys/types.h>
41442 #include <scsi/sg.h>
41443 #include <sys/mtio.h>
41450 struct sg_header *psg_header;
41452 write(device, buffer, 1);
41458 rm -f conftest.$ac_objext
41459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41460 (eval $ac_compile) 2>conftest.er1
41462 grep -v '^ *+' conftest.er1 >conftest.err
41464 cat conftest.err >&5
41465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41466 (exit $ac_status); } &&
41467 { ac_try='test -z "$ac_c_werror_flag"
41468 || test ! -s conftest.err'
41469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41470 (eval $ac_try) 2>&5
41472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41473 (exit $ac_status); }; } &&
41474 { ac_try='test -s conftest.$ac_objext'
41475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41476 (eval $ac_try) 2>&5
41478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41479 (exit $ac_status); }; }; then
41480 amanda_cv_linux_sg_scsi=yes
41482 echo "$as_me: failed program was:" >&5
41483 sed 's/^/| /' conftest.$ac_ext >&5
41485 amanda_cv_linux_sg_scsi=no
41487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41489 echo "$as_me:$LINENO: result: $amanda_cv_linux_sg_scsi" >&5
41490 echo "${ECHO_T}$amanda_cv_linux_sg_scsi" >&6
41493 if test x"$amanda_cv_linux_scsi" = x"yes" ||
41494 test x"$amanda_cv_linux_sg_scsi" = x"yes";then
41496 cat >>confdefs.h <<\_ACEOF
41497 #define HAVE_LINUX_LIKE_SCSI 1
41500 NO_SCSI_CHANGER_MODE=false
41503 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
41504 test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
41505 echo "$as_me:$LINENO: checking for HP-UX like scsi support" >&5
41506 echo $ECHO_N "checking for HP-UX like scsi support... $ECHO_C" >&6
41507 if test "${amanda_cv_hpux_scsi+set}" = set; then
41508 echo $ECHO_N "(cached) $ECHO_C" >&6
41510 cat >conftest.$ac_ext <<_ACEOF
41513 cat confdefs.h >>conftest.$ac_ext
41514 cat >>conftest.$ac_ext <<_ACEOF
41515 /* end confdefs.h. */
41518 #include <sys/ioctl.h>
41519 #include <sys/scsi.h>
41520 #include <sys/mtio.h>
41528 ioctl(device, SIOC_IO, Command);
41534 rm -f conftest.$ac_objext
41535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41536 (eval $ac_compile) 2>conftest.er1
41538 grep -v '^ *+' conftest.er1 >conftest.err
41540 cat conftest.err >&5
41541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41542 (exit $ac_status); } &&
41543 { ac_try='test -z "$ac_c_werror_flag"
41544 || test ! -s conftest.err'
41545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41546 (eval $ac_try) 2>&5
41548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41549 (exit $ac_status); }; } &&
41550 { ac_try='test -s conftest.$ac_objext'
41551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41552 (eval $ac_try) 2>&5
41554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41555 (exit $ac_status); }; }; then
41556 amanda_cv_hpux_scsi=yes
41558 echo "$as_me: failed program was:" >&5
41559 sed 's/^/| /' conftest.$ac_ext >&5
41561 amanda_cv_hpux_scsi=no
41563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41565 echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi" >&5
41566 echo "${ECHO_T}$amanda_cv_hpux_scsi" >&6
41567 if test x"$amanda_cv_hpux_scsi" = x"yes";then
41569 cat >>confdefs.h <<\_ACEOF
41570 #define HAVE_HPUX_LIKE_SCSI 1
41573 NO_SCSI_CHANGER_MODE=false
41574 NO_CHIO_CHANGER_MODE=false
41578 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
41579 test x"$ac_cv_header_sys_dsreq_h" = x"yes"; then
41580 echo "$as_me:$LINENO: checking for Irix like scsi support" >&5
41581 echo $ECHO_N "checking for Irix like scsi support... $ECHO_C" >&6
41582 if test "${amanda_cv_irix_scsi+set}" = set; then
41583 echo $ECHO_N "(cached) $ECHO_C" >&6
41585 cat >conftest.$ac_ext <<_ACEOF
41588 cat confdefs.h >>conftest.$ac_ext
41589 cat >>conftest.$ac_ext <<_ACEOF
41590 /* end confdefs.h. */
41592 #include <sys/types.h>
41593 #include <sys/dsreq.h>
41594 #include <sys/mtio.h>
41602 ioctl(device, DS_ENTER, &Command);
41608 rm -f conftest.$ac_objext
41609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41610 (eval $ac_compile) 2>conftest.er1
41612 grep -v '^ *+' conftest.er1 >conftest.err
41614 cat conftest.err >&5
41615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41616 (exit $ac_status); } &&
41617 { ac_try='test -z "$ac_c_werror_flag"
41618 || test ! -s conftest.err'
41619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41620 (eval $ac_try) 2>&5
41622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41623 (exit $ac_status); }; } &&
41624 { ac_try='test -s conftest.$ac_objext'
41625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41626 (eval $ac_try) 2>&5
41628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41629 (exit $ac_status); }; }; then
41630 amanda_cv_irix_scsi=yes
41632 echo "$as_me: failed program was:" >&5
41633 sed 's/^/| /' conftest.$ac_ext >&5
41635 amanda_cv_irix_scsi=no
41637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41639 echo "$as_me:$LINENO: result: $amanda_cv_irix_scsi" >&5
41640 echo "${ECHO_T}$amanda_cv_irix_scsi" >&6
41641 if test x"$amanda_cv_irix_scsi" = x"yes";then
41643 cat >>confdefs.h <<\_ACEOF
41644 #define HAVE_IRIX_LIKE_SCSI 1
41647 NO_SCSI_CHANGER_MODE=false
41651 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
41652 test x"$ac_cv_header_sys_scsi_impl_uscsi_h" = x"yes"; then
41653 echo "$as_me:$LINENO: checking for Solaris-like scsi support" >&5
41654 echo $ECHO_N "checking for Solaris-like scsi support... $ECHO_C" >&6
41655 if test "${amanda_cv_solaris_scsi+set}" = set; then
41656 echo $ECHO_N "(cached) $ECHO_C" >&6
41658 cat >conftest.$ac_ext <<_ACEOF
41661 cat confdefs.h >>conftest.$ac_ext
41662 cat >>conftest.$ac_ext <<_ACEOF
41663 /* end confdefs.h. */
41665 #include <sys/types.h>
41666 #include <sys/scsi/impl/uscsi.h>
41667 #include <sys/mtio.h>
41675 ioctl(device, USCSICMD, Command);
41681 rm -f conftest.$ac_objext
41682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41683 (eval $ac_compile) 2>conftest.er1
41685 grep -v '^ *+' conftest.er1 >conftest.err
41687 cat conftest.err >&5
41688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41689 (exit $ac_status); } &&
41690 { ac_try='test -z "$ac_c_werror_flag"
41691 || test ! -s conftest.err'
41692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41693 (eval $ac_try) 2>&5
41695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41696 (exit $ac_status); }; } &&
41697 { ac_try='test -s conftest.$ac_objext'
41698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41699 (eval $ac_try) 2>&5
41701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41702 (exit $ac_status); }; }; then
41703 amanda_cv_solaris_scsi=yes
41705 echo "$as_me: failed program was:" >&5
41706 sed 's/^/| /' conftest.$ac_ext >&5
41708 amanda_cv_solaris_scsi=no
41710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41712 echo "$as_me:$LINENO: result: $amanda_cv_solaris_scsi" >&5
41713 echo "${ECHO_T}$amanda_cv_solaris_scsi" >&6
41714 if test x"$amanda_cv_solaris_scsi" = x"yes";then
41716 cat >>confdefs.h <<\_ACEOF
41717 #define HAVE_SOLARIS_LIKE_SCSI 1
41720 NO_SCSI_CHANGER_MODE=false
41724 if test x"$ac_cv_header_sys_tape_h" = x"yes" &&
41725 test x"$ac_cv_header_sys_scarray_h" = x"yes" &&
41726 test x"$ac_cv_header_sys_gscdds_h" = x"yes"; then
41727 echo "$as_me:$LINENO: checking for AIX like scsi support" >&5
41728 echo $ECHO_N "checking for AIX like scsi support... $ECHO_C" >&6
41729 if test "${amanda_cv_aix_scsi+set}" = set; then
41730 echo $ECHO_N "(cached) $ECHO_C" >&6
41732 cat >conftest.$ac_ext <<_ACEOF
41735 cat confdefs.h >>conftest.$ac_ext
41736 cat >>conftest.$ac_ext <<_ACEOF
41737 /* end confdefs.h. */
41739 #include <sys/types.h>
41740 #include <sys/scarray.h>
41741 #include <sys/tape.h>
41749 ioctl(device, STIOCMD, Command);
41755 rm -f conftest.$ac_objext
41756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41757 (eval $ac_compile) 2>conftest.er1
41759 grep -v '^ *+' conftest.er1 >conftest.err
41761 cat conftest.err >&5
41762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41763 (exit $ac_status); } &&
41764 { ac_try='test -z "$ac_c_werror_flag"
41765 || test ! -s conftest.err'
41766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41767 (eval $ac_try) 2>&5
41769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41770 (exit $ac_status); }; } &&
41771 { ac_try='test -s conftest.$ac_objext'
41772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41773 (eval $ac_try) 2>&5
41775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41776 (exit $ac_status); }; }; then
41777 amanda_cv_aix_scsi=yes
41779 echo "$as_me: failed program was:" >&5
41780 sed 's/^/| /' conftest.$ac_ext >&5
41782 amanda_cv_aix_scsi=no
41784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41786 echo "$as_me:$LINENO: result: $amanda_cv_aix_scsi" >&5
41787 echo "${ECHO_T}$amanda_cv_aix_scsi" >&6
41788 if test x"$amanda_cv_aix_scsi" = x"yes";then
41790 cat >>confdefs.h <<\_ACEOF
41791 #define HAVE_AIX_LIKE_SCSI 1
41794 NO_SCSI_CHANGER_MODE=false
41797 if test x"$ac_cv_header_cam_cam_h" = x"yes";then
41798 echo "$as_me:$LINENO: checking for CAM like scsi support" >&5
41799 echo $ECHO_N "checking for CAM like scsi support... $ECHO_C" >&6
41800 if test "${amanda_cv_cam_scsi+set}" = set; then
41801 echo $ECHO_N "(cached) $ECHO_C" >&6
41803 cat >conftest.$ac_ext <<_ACEOF
41806 cat confdefs.h >>conftest.$ac_ext
41807 cat >>conftest.$ac_ext <<_ACEOF
41808 /* end confdefs.h. */
41811 # include <fcntl.h>
41812 # include <cam/cam.h>
41813 # include <cam/cam_ccb.h>
41814 # include <cam/scsi/scsi_message.h>
41815 # include <cam/scsi/scsi_pass.h>
41816 # include <camlib.h>
41822 struct cam_device *curdev;
41824 curdev = cam_open_pass("", O_RDWR, NULL);
41830 rm -f conftest.$ac_objext
41831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41832 (eval $ac_compile) 2>conftest.er1
41834 grep -v '^ *+' conftest.er1 >conftest.err
41836 cat conftest.err >&5
41837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41838 (exit $ac_status); } &&
41839 { ac_try='test -z "$ac_c_werror_flag"
41840 || test ! -s conftest.err'
41841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41842 (eval $ac_try) 2>&5
41844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41845 (exit $ac_status); }; } &&
41846 { ac_try='test -s conftest.$ac_objext'
41847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41848 (eval $ac_try) 2>&5
41850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41851 (exit $ac_status); }; }; then
41852 amanda_cv_cam_scsi=yes
41854 echo "$as_me: failed program was:" >&5
41855 sed 's/^/| /' conftest.$ac_ext >&5
41857 amanda_cv_cam_scsi=no
41859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41861 echo "$as_me:$LINENO: result: $amanda_cv_cam_scsi" >&5
41862 echo "${ECHO_T}$amanda_cv_cam_scsi" >&6
41863 if test x"$amanda_cv_cam_scsi" = x"yes";then
41865 cat >>confdefs.h <<\_ACEOF
41866 #define HAVE_CAM_LIKE_SCSI 1
41869 NO_SCSI_CHANGER_MODE=false
41871 echo "$as_me:$LINENO: checking for main in -lcam" >&5
41872 echo $ECHO_N "checking for main in -lcam... $ECHO_C" >&6
41873 if test "${ac_cv_lib_cam_main+set}" = set; then
41874 echo $ECHO_N "(cached) $ECHO_C" >&6
41876 ac_check_lib_save_LIBS=$LIBS
41878 cat >conftest.$ac_ext <<_ACEOF
41881 cat confdefs.h >>conftest.$ac_ext
41882 cat >>conftest.$ac_ext <<_ACEOF
41883 /* end confdefs.h. */
41894 rm -f conftest.$ac_objext conftest$ac_exeext
41895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41896 (eval $ac_link) 2>conftest.er1
41898 grep -v '^ *+' conftest.er1 >conftest.err
41900 cat conftest.err >&5
41901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41902 (exit $ac_status); } &&
41903 { ac_try='test -z "$ac_c_werror_flag"
41904 || test ! -s conftest.err'
41905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41906 (eval $ac_try) 2>&5
41908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41909 (exit $ac_status); }; } &&
41910 { ac_try='test -s conftest$ac_exeext'
41911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41912 (eval $ac_try) 2>&5
41914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41915 (exit $ac_status); }; }; then
41916 ac_cv_lib_cam_main=yes
41918 echo "$as_me: failed program was:" >&5
41919 sed 's/^/| /' conftest.$ac_ext >&5
41921 ac_cv_lib_cam_main=no
41923 rm -f conftest.err conftest.$ac_objext \
41924 conftest$ac_exeext conftest.$ac_ext
41925 LIBS=$ac_check_lib_save_LIBS
41927 echo "$as_me:$LINENO: result: $ac_cv_lib_cam_main" >&5
41928 echo "${ECHO_T}$ac_cv_lib_cam_main" >&6
41929 if test $ac_cv_lib_cam_main = yes; then
41930 cat >>confdefs.h <<_ACEOF
41931 #define HAVE_LIBCAM 1
41942 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
41943 test x"$ac_cv_header_sys_scsiio_h" = x"yes"; then
41944 echo "$as_me:$LINENO: checking for BSD like scsi support" >&5
41945 echo $ECHO_N "checking for BSD like scsi support... $ECHO_C" >&6
41946 if test "${amanda_cv_bsd_scsi+set}" = set; then
41947 echo $ECHO_N "(cached) $ECHO_C" >&6
41949 cat >conftest.$ac_ext <<_ACEOF
41952 cat confdefs.h >>conftest.$ac_ext
41953 cat >>conftest.$ac_ext <<_ACEOF
41954 /* end confdefs.h. */
41956 #include <sys/types.h>
41957 #include <sys/scsiio.h>
41958 #include <sys/mtio.h>
41966 ioctl(device, SCIOCCOMMAND, &Command);
41972 rm -f conftest.$ac_objext
41973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41974 (eval $ac_compile) 2>conftest.er1
41976 grep -v '^ *+' conftest.er1 >conftest.err
41978 cat conftest.err >&5
41979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41980 (exit $ac_status); } &&
41981 { ac_try='test -z "$ac_c_werror_flag"
41982 || test ! -s conftest.err'
41983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41984 (eval $ac_try) 2>&5
41986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41987 (exit $ac_status); }; } &&
41988 { ac_try='test -s conftest.$ac_objext'
41989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41990 (eval $ac_try) 2>&5
41992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41993 (exit $ac_status); }; }; then
41994 amanda_cv_bsd_scsi=yes
41996 echo "$as_me: failed program was:" >&5
41997 sed 's/^/| /' conftest.$ac_ext >&5
41999 amanda_cv_bsd_scsi=no
42001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42003 echo "$as_me:$LINENO: result: $amanda_cv_bsd_scsi" >&5
42004 echo "${ECHO_T}$amanda_cv_bsd_scsi" >&6
42005 if test x"$amanda_cv_bsd_scsi" = x"yes";then
42007 cat >>confdefs.h <<\_ACEOF
42008 #define HAVE_BSD_LIKE_SCSI 1
42011 NO_SCSI_CHANGER_MODE=false
42015 if test x"$ac_cv_header_chio_h" = x"yes" ||
42016 test x"$ac_cv_header_sys_chio_h" = x"yes"; then
42017 if test x"$ac_cv_header_camlib_h" != x"yes"; then
42018 if $NO_SCSI_CHANGER_MODE; then
42019 NO_SCSI_CHANGER_MODE=false
42021 NO_CHIO_CHANGER_MODE=false
42027 echo "$as_me:$LINENO: checking for main in -lcur_colr" >&5
42028 echo $ECHO_N "checking for main in -lcur_colr... $ECHO_C" >&6
42029 if test "${ac_cv_lib_cur_colr_main+set}" = set; then
42030 echo $ECHO_N "(cached) $ECHO_C" >&6
42032 ac_check_lib_save_LIBS=$LIBS
42033 LIBS="-lcur_colr $LIBS"
42034 cat >conftest.$ac_ext <<_ACEOF
42037 cat confdefs.h >>conftest.$ac_ext
42038 cat >>conftest.$ac_ext <<_ACEOF
42039 /* end confdefs.h. */
42050 rm -f conftest.$ac_objext conftest$ac_exeext
42051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42052 (eval $ac_link) 2>conftest.er1
42054 grep -v '^ *+' conftest.er1 >conftest.err
42056 cat conftest.err >&5
42057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42058 (exit $ac_status); } &&
42059 { ac_try='test -z "$ac_c_werror_flag"
42060 || test ! -s conftest.err'
42061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42062 (eval $ac_try) 2>&5
42064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42065 (exit $ac_status); }; } &&
42066 { ac_try='test -s conftest$ac_exeext'
42067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42068 (eval $ac_try) 2>&5
42070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42071 (exit $ac_status); }; }; then
42072 ac_cv_lib_cur_colr_main=yes
42074 echo "$as_me: failed program was:" >&5
42075 sed 's/^/| /' conftest.$ac_ext >&5
42077 ac_cv_lib_cur_colr_main=no
42079 rm -f conftest.err conftest.$ac_objext \
42080 conftest$ac_exeext conftest.$ac_ext
42081 LIBS=$ac_check_lib_save_LIBS
42083 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_main" >&5
42084 echo "${ECHO_T}$ac_cv_lib_cur_colr_main" >&6
42085 if test $ac_cv_lib_cur_colr_main = yes; then
42086 cat >>confdefs.h <<_ACEOF
42087 #define HAVE_LIBCUR_COLR 1
42090 LIBS="-lcur_colr $LIBS"
42096 echo "$as_me:$LINENO: checking for main in -lintl" >&5
42097 echo $ECHO_N "checking for main in -lintl... $ECHO_C" >&6
42098 if test "${ac_cv_lib_intl_main+set}" = set; then
42099 echo $ECHO_N "(cached) $ECHO_C" >&6
42101 ac_check_lib_save_LIBS=$LIBS
42102 LIBS="-lintl $LIBS"
42103 cat >conftest.$ac_ext <<_ACEOF
42106 cat confdefs.h >>conftest.$ac_ext
42107 cat >>conftest.$ac_ext <<_ACEOF
42108 /* end confdefs.h. */
42119 rm -f conftest.$ac_objext conftest$ac_exeext
42120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42121 (eval $ac_link) 2>conftest.er1
42123 grep -v '^ *+' conftest.er1 >conftest.err
42125 cat conftest.err >&5
42126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42127 (exit $ac_status); } &&
42128 { ac_try='test -z "$ac_c_werror_flag"
42129 || test ! -s conftest.err'
42130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42131 (eval $ac_try) 2>&5
42133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42134 (exit $ac_status); }; } &&
42135 { ac_try='test -s conftest$ac_exeext'
42136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42137 (eval $ac_try) 2>&5
42139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42140 (exit $ac_status); }; }; then
42141 ac_cv_lib_intl_main=yes
42143 echo "$as_me: failed program was:" >&5
42144 sed 's/^/| /' conftest.$ac_ext >&5
42146 ac_cv_lib_intl_main=no
42148 rm -f conftest.err conftest.$ac_objext \
42149 conftest$ac_exeext conftest.$ac_ext
42150 LIBS=$ac_check_lib_save_LIBS
42152 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5
42153 echo "${ECHO_T}$ac_cv_lib_intl_main" >&6
42154 if test $ac_cv_lib_intl_main = yes; then
42155 cat >>confdefs.h <<_ACEOF
42156 #define HAVE_LIBINTL 1
42159 LIBS="-lintl $LIBS"
42167 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
42168 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
42169 if test "${ac_cv_lib_socket_main+set}" = set; then
42170 echo $ECHO_N "(cached) $ECHO_C" >&6
42172 ac_check_lib_save_LIBS=$LIBS
42173 LIBS="-lsocket $LIBS"
42174 cat >conftest.$ac_ext <<_ACEOF
42177 cat confdefs.h >>conftest.$ac_ext
42178 cat >>conftest.$ac_ext <<_ACEOF
42179 /* end confdefs.h. */
42190 rm -f conftest.$ac_objext conftest$ac_exeext
42191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42192 (eval $ac_link) 2>conftest.er1
42194 grep -v '^ *+' conftest.er1 >conftest.err
42196 cat conftest.err >&5
42197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42198 (exit $ac_status); } &&
42199 { ac_try='test -z "$ac_c_werror_flag"
42200 || test ! -s conftest.err'
42201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42202 (eval $ac_try) 2>&5
42204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42205 (exit $ac_status); }; } &&
42206 { ac_try='test -s conftest$ac_exeext'
42207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42208 (eval $ac_try) 2>&5
42210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42211 (exit $ac_status); }; }; then
42212 ac_cv_lib_socket_main=yes
42214 echo "$as_me: failed program was:" >&5
42215 sed 's/^/| /' conftest.$ac_ext >&5
42217 ac_cv_lib_socket_main=no
42219 rm -f conftest.err conftest.$ac_objext \
42220 conftest$ac_exeext conftest.$ac_ext
42221 LIBS=$ac_check_lib_save_LIBS
42223 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
42224 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
42225 if test $ac_cv_lib_socket_main = yes; then
42226 cat >>confdefs.h <<_ACEOF
42227 #define HAVE_LIBSOCKET 1
42230 LIBS="-lsocket $LIBS"
42237 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
42238 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
42239 if test "${ac_cv_lib_resolv_main+set}" = set; then
42240 echo $ECHO_N "(cached) $ECHO_C" >&6
42242 ac_check_lib_save_LIBS=$LIBS
42243 LIBS="-lresolv $LIBS"
42244 cat >conftest.$ac_ext <<_ACEOF
42247 cat confdefs.h >>conftest.$ac_ext
42248 cat >>conftest.$ac_ext <<_ACEOF
42249 /* end confdefs.h. */
42260 rm -f conftest.$ac_objext conftest$ac_exeext
42261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42262 (eval $ac_link) 2>conftest.er1
42264 grep -v '^ *+' conftest.er1 >conftest.err
42266 cat conftest.err >&5
42267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42268 (exit $ac_status); } &&
42269 { ac_try='test -z "$ac_c_werror_flag"
42270 || test ! -s conftest.err'
42271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42272 (eval $ac_try) 2>&5
42274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42275 (exit $ac_status); }; } &&
42276 { ac_try='test -s conftest$ac_exeext'
42277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42278 (eval $ac_try) 2>&5
42280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42281 (exit $ac_status); }; }; then
42282 ac_cv_lib_resolv_main=yes
42284 echo "$as_me: failed program was:" >&5
42285 sed 's/^/| /' conftest.$ac_ext >&5
42287 ac_cv_lib_resolv_main=no
42289 rm -f conftest.err conftest.$ac_objext \
42290 conftest$ac_exeext conftest.$ac_ext
42291 LIBS=$ac_check_lib_save_LIBS
42293 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
42294 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
42295 if test $ac_cv_lib_resolv_main = yes; then
42296 cat >>confdefs.h <<_ACEOF
42297 #define HAVE_LIBRESOLV 1
42300 LIBS="-lresolv $LIBS"
42305 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
42306 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
42307 if test "${ac_cv_lib_nsl_main+set}" = set; then
42308 echo $ECHO_N "(cached) $ECHO_C" >&6
42310 ac_check_lib_save_LIBS=$LIBS
42312 cat >conftest.$ac_ext <<_ACEOF
42315 cat confdefs.h >>conftest.$ac_ext
42316 cat >>conftest.$ac_ext <<_ACEOF
42317 /* end confdefs.h. */
42328 rm -f conftest.$ac_objext conftest$ac_exeext
42329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42330 (eval $ac_link) 2>conftest.er1
42332 grep -v '^ *+' conftest.er1 >conftest.err
42334 cat conftest.err >&5
42335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42336 (exit $ac_status); } &&
42337 { ac_try='test -z "$ac_c_werror_flag"
42338 || test ! -s conftest.err'
42339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42340 (eval $ac_try) 2>&5
42342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42343 (exit $ac_status); }; } &&
42344 { ac_try='test -s conftest$ac_exeext'
42345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42346 (eval $ac_try) 2>&5
42348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42349 (exit $ac_status); }; }; then
42350 ac_cv_lib_nsl_main=yes
42352 echo "$as_me: failed program was:" >&5
42353 sed 's/^/| /' conftest.$ac_ext >&5
42355 ac_cv_lib_nsl_main=no
42357 rm -f conftest.err conftest.$ac_objext \
42358 conftest$ac_exeext conftest.$ac_ext
42359 LIBS=$ac_check_lib_save_LIBS
42361 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
42362 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
42363 if test $ac_cv_lib_nsl_main = yes; then
42364 cat >>confdefs.h <<_ACEOF
42365 #define HAVE_LIBNSL 1
42373 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
42374 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
42375 if test "${ac_cv_lib_socket_main+set}" = set; then
42376 echo $ECHO_N "(cached) $ECHO_C" >&6
42378 ac_check_lib_save_LIBS=$LIBS
42379 LIBS="-lsocket $LIBS"
42380 cat >conftest.$ac_ext <<_ACEOF
42383 cat confdefs.h >>conftest.$ac_ext
42384 cat >>conftest.$ac_ext <<_ACEOF
42385 /* end confdefs.h. */
42396 rm -f conftest.$ac_objext conftest$ac_exeext
42397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42398 (eval $ac_link) 2>conftest.er1
42400 grep -v '^ *+' conftest.er1 >conftest.err
42402 cat conftest.err >&5
42403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42404 (exit $ac_status); } &&
42405 { ac_try='test -z "$ac_c_werror_flag"
42406 || test ! -s conftest.err'
42407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42408 (eval $ac_try) 2>&5
42410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42411 (exit $ac_status); }; } &&
42412 { ac_try='test -s conftest$ac_exeext'
42413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42414 (eval $ac_try) 2>&5
42416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42417 (exit $ac_status); }; }; then
42418 ac_cv_lib_socket_main=yes
42420 echo "$as_me: failed program was:" >&5
42421 sed 's/^/| /' conftest.$ac_ext >&5
42423 ac_cv_lib_socket_main=no
42425 rm -f conftest.err conftest.$ac_objext \
42426 conftest$ac_exeext conftest.$ac_ext
42427 LIBS=$ac_check_lib_save_LIBS
42429 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
42430 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
42431 if test $ac_cv_lib_socket_main = yes; then
42432 cat >>confdefs.h <<_ACEOF
42433 #define HAVE_LIBSOCKET 1
42436 LIBS="-lsocket $LIBS"
42441 echo "$as_me:$LINENO: checking for main in -lsun" >&5
42442 echo $ECHO_N "checking for main in -lsun... $ECHO_C" >&6
42443 if test "${ac_cv_lib_sun_main+set}" = set; then
42444 echo $ECHO_N "(cached) $ECHO_C" >&6
42446 ac_check_lib_save_LIBS=$LIBS
42448 cat >conftest.$ac_ext <<_ACEOF
42451 cat confdefs.h >>conftest.$ac_ext
42452 cat >>conftest.$ac_ext <<_ACEOF
42453 /* end confdefs.h. */
42464 rm -f conftest.$ac_objext conftest$ac_exeext
42465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42466 (eval $ac_link) 2>conftest.er1
42468 grep -v '^ *+' conftest.er1 >conftest.err
42470 cat conftest.err >&5
42471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42472 (exit $ac_status); } &&
42473 { ac_try='test -z "$ac_c_werror_flag"
42474 || test ! -s conftest.err'
42475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42476 (eval $ac_try) 2>&5
42478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42479 (exit $ac_status); }; } &&
42480 { ac_try='test -s conftest$ac_exeext'
42481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42482 (eval $ac_try) 2>&5
42484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42485 (exit $ac_status); }; }; then
42486 ac_cv_lib_sun_main=yes
42488 echo "$as_me: failed program was:" >&5
42489 sed 's/^/| /' conftest.$ac_ext >&5
42491 ac_cv_lib_sun_main=no
42493 rm -f conftest.err conftest.$ac_objext \
42494 conftest$ac_exeext conftest.$ac_ext
42495 LIBS=$ac_check_lib_save_LIBS
42497 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_main" >&5
42498 echo "${ECHO_T}$ac_cv_lib_sun_main" >&6
42499 if test $ac_cv_lib_sun_main = yes; then
42500 cat >>confdefs.h <<_ACEOF
42501 #define HAVE_LIBSUN 1
42512 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
42513 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
42514 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
42515 echo $ECHO_N "(cached) $ECHO_C" >&6
42517 ac_check_lib_save_LIBS=$LIBS
42518 LIBS="-ltermcap $LIBS"
42519 cat >conftest.$ac_ext <<_ACEOF
42522 cat confdefs.h >>conftest.$ac_ext
42523 cat >>conftest.$ac_ext <<_ACEOF
42524 /* end confdefs.h. */
42526 /* Override any gcc2 internal prototype to avoid an error. */
42530 /* We use char because int might match the return type of a gcc2
42531 builtin and then its argument prototype would still apply. */
42541 rm -f conftest.$ac_objext conftest$ac_exeext
42542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42543 (eval $ac_link) 2>conftest.er1
42545 grep -v '^ *+' conftest.er1 >conftest.err
42547 cat conftest.err >&5
42548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42549 (exit $ac_status); } &&
42550 { ac_try='test -z "$ac_c_werror_flag"
42551 || test ! -s conftest.err'
42552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42553 (eval $ac_try) 2>&5
42555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42556 (exit $ac_status); }; } &&
42557 { ac_try='test -s conftest$ac_exeext'
42558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42559 (eval $ac_try) 2>&5
42561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42562 (exit $ac_status); }; }; then
42563 ac_cv_lib_termcap_tgetent=yes
42565 echo "$as_me: failed program was:" >&5
42566 sed 's/^/| /' conftest.$ac_ext >&5
42568 ac_cv_lib_termcap_tgetent=no
42570 rm -f conftest.err conftest.$ac_objext \
42571 conftest$ac_exeext conftest.$ac_ext
42572 LIBS=$ac_check_lib_save_LIBS
42574 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
42575 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
42576 if test $ac_cv_lib_termcap_tgetent = yes; then
42577 cat >>confdefs.h <<_ACEOF
42578 #define HAVE_LIBTERMCAP 1
42581 LIBS="-ltermcap $LIBS"
42585 if test "x$ac_cv_lib_termcap_tgetent" != xyes; then
42587 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
42588 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
42589 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
42590 echo $ECHO_N "(cached) $ECHO_C" >&6
42592 ac_check_lib_save_LIBS=$LIBS
42593 LIBS="-lcurses $LIBS"
42594 cat >conftest.$ac_ext <<_ACEOF
42597 cat confdefs.h >>conftest.$ac_ext
42598 cat >>conftest.$ac_ext <<_ACEOF
42599 /* end confdefs.h. */
42601 /* Override any gcc2 internal prototype to avoid an error. */
42605 /* We use char because int might match the return type of a gcc2
42606 builtin and then its argument prototype would still apply. */
42616 rm -f conftest.$ac_objext conftest$ac_exeext
42617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42618 (eval $ac_link) 2>conftest.er1
42620 grep -v '^ *+' conftest.er1 >conftest.err
42622 cat conftest.err >&5
42623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42624 (exit $ac_status); } &&
42625 { ac_try='test -z "$ac_c_werror_flag"
42626 || test ! -s conftest.err'
42627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42628 (eval $ac_try) 2>&5
42630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42631 (exit $ac_status); }; } &&
42632 { ac_try='test -s conftest$ac_exeext'
42633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42634 (eval $ac_try) 2>&5
42636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42637 (exit $ac_status); }; }; then
42638 ac_cv_lib_curses_tgetent=yes
42640 echo "$as_me: failed program was:" >&5
42641 sed 's/^/| /' conftest.$ac_ext >&5
42643 ac_cv_lib_curses_tgetent=no
42645 rm -f conftest.err conftest.$ac_objext \
42646 conftest$ac_exeext conftest.$ac_ext
42647 LIBS=$ac_check_lib_save_LIBS
42649 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
42650 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
42651 if test $ac_cv_lib_curses_tgetent = yes; then
42652 cat >>confdefs.h <<_ACEOF
42653 #define HAVE_LIBCURSES 1
42656 LIBS="-lcurses $LIBS"
42660 if test "x$ac_cv_lib_curses_tgetent" != xyes; then
42662 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
42663 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
42664 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
42665 echo $ECHO_N "(cached) $ECHO_C" >&6
42667 ac_check_lib_save_LIBS=$LIBS
42668 LIBS="-lncurses $LIBS"
42669 cat >conftest.$ac_ext <<_ACEOF
42672 cat confdefs.h >>conftest.$ac_ext
42673 cat >>conftest.$ac_ext <<_ACEOF
42674 /* end confdefs.h. */
42676 /* Override any gcc2 internal prototype to avoid an error. */
42680 /* We use char because int might match the return type of a gcc2
42681 builtin and then its argument prototype would still apply. */
42691 rm -f conftest.$ac_objext conftest$ac_exeext
42692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42693 (eval $ac_link) 2>conftest.er1
42695 grep -v '^ *+' conftest.er1 >conftest.err
42697 cat conftest.err >&5
42698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42699 (exit $ac_status); } &&
42700 { ac_try='test -z "$ac_c_werror_flag"
42701 || test ! -s conftest.err'
42702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42703 (eval $ac_try) 2>&5
42705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42706 (exit $ac_status); }; } &&
42707 { ac_try='test -s conftest$ac_exeext'
42708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42709 (eval $ac_try) 2>&5
42711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42712 (exit $ac_status); }; }; then
42713 ac_cv_lib_ncurses_tgetent=yes
42715 echo "$as_me: failed program was:" >&5
42716 sed 's/^/| /' conftest.$ac_ext >&5
42718 ac_cv_lib_ncurses_tgetent=no
42720 rm -f conftest.err conftest.$ac_objext \
42721 conftest$ac_exeext conftest.$ac_ext
42722 LIBS=$ac_check_lib_save_LIBS
42724 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
42725 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
42726 if test $ac_cv_lib_ncurses_tgetent = yes; then
42727 cat >>confdefs.h <<_ACEOF
42728 #define HAVE_LIBNCURSES 1
42731 LIBS="-lncurses $LIBS"
42737 if test "x$ac_cv_lib_termcap_tgetent" = xyes ||
42738 test "x$ac_cv_lib_curses_tgetent" = xyes ||
42739 test "x$ac_cv_lib_ncurses_tgetent" = xyes; then
42741 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
42742 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
42743 if test "${ac_cv_lib_readline_readline+set}" = set; then
42744 echo $ECHO_N "(cached) $ECHO_C" >&6
42746 ac_check_lib_save_LIBS=$LIBS
42747 LIBS="-lreadline $LIBS"
42748 cat >conftest.$ac_ext <<_ACEOF
42751 cat confdefs.h >>conftest.$ac_ext
42752 cat >>conftest.$ac_ext <<_ACEOF
42753 /* end confdefs.h. */
42755 /* Override any gcc2 internal prototype to avoid an error. */
42759 /* We use char because int might match the return type of a gcc2
42760 builtin and then its argument prototype would still apply. */
42770 rm -f conftest.$ac_objext conftest$ac_exeext
42771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42772 (eval $ac_link) 2>conftest.er1
42774 grep -v '^ *+' conftest.er1 >conftest.err
42776 cat conftest.err >&5
42777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42778 (exit $ac_status); } &&
42779 { ac_try='test -z "$ac_c_werror_flag"
42780 || test ! -s conftest.err'
42781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42782 (eval $ac_try) 2>&5
42784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42785 (exit $ac_status); }; } &&
42786 { ac_try='test -s conftest$ac_exeext'
42787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42788 (eval $ac_try) 2>&5
42790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42791 (exit $ac_status); }; }; then
42792 ac_cv_lib_readline_readline=yes
42794 echo "$as_me: failed program was:" >&5
42795 sed 's/^/| /' conftest.$ac_ext >&5
42797 ac_cv_lib_readline_readline=no
42799 rm -f conftest.err conftest.$ac_objext \
42800 conftest$ac_exeext conftest.$ac_ext
42801 LIBS=$ac_check_lib_save_LIBS
42803 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
42804 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
42805 if test $ac_cv_lib_readline_readline = yes; then
42806 cat >>confdefs.h <<_ACEOF
42807 #define HAVE_LIBREADLINE 1
42810 LIBS="-lreadline $LIBS"
42814 if test "x$ac_cv_lib_readline_readline" = xyes; then
42815 READLINE_LIBS="-lreadline"
42818 { echo "$as_me:$LINENO: WARNING: *** No readline library, no history and command line editing in amrecover!" >&5
42819 echo "$as_me: WARNING: *** No readline library, no history and command line editing in amrecover!" >&2;}
42822 { echo "$as_me:$LINENO: WARNING: *** No terminal library, no history and command line editing in amrecover!" >&5
42823 echo "$as_me: WARNING: *** No terminal library, no history and command line editing in amrecover!" >&2;}
42826 if test "x$ac_cv_header_linux_zftape_h" = xyes; then
42827 if test "x$ac_cv_header_vtblc_h" = xyes; then
42829 echo "$as_me:$LINENO: checking for main in -lvtblc" >&5
42830 echo $ECHO_N "checking for main in -lvtblc... $ECHO_C" >&6
42831 if test "${ac_cv_lib_vtblc_main+set}" = set; then
42832 echo $ECHO_N "(cached) $ECHO_C" >&6
42834 ac_check_lib_save_LIBS=$LIBS
42835 LIBS="-lvtblc $LIBS"
42836 cat >conftest.$ac_ext <<_ACEOF
42839 cat confdefs.h >>conftest.$ac_ext
42840 cat >>conftest.$ac_ext <<_ACEOF
42841 /* end confdefs.h. */
42852 rm -f conftest.$ac_objext conftest$ac_exeext
42853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42854 (eval $ac_link) 2>conftest.er1
42856 grep -v '^ *+' conftest.er1 >conftest.err
42858 cat conftest.err >&5
42859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42860 (exit $ac_status); } &&
42861 { ac_try='test -z "$ac_c_werror_flag"
42862 || test ! -s conftest.err'
42863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42864 (eval $ac_try) 2>&5
42866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42867 (exit $ac_status); }; } &&
42868 { ac_try='test -s conftest$ac_exeext'
42869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42870 (eval $ac_try) 2>&5
42872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42873 (exit $ac_status); }; }; then
42874 ac_cv_lib_vtblc_main=yes
42876 echo "$as_me: failed program was:" >&5
42877 sed 's/^/| /' conftest.$ac_ext >&5
42879 ac_cv_lib_vtblc_main=no
42881 rm -f conftest.err conftest.$ac_objext \
42882 conftest$ac_exeext conftest.$ac_ext
42883 LIBS=$ac_check_lib_save_LIBS
42885 echo "$as_me:$LINENO: result: $ac_cv_lib_vtblc_main" >&5
42886 echo "${ECHO_T}$ac_cv_lib_vtblc_main" >&6
42887 if test $ac_cv_lib_vtblc_main = yes; then
42888 cat >>confdefs.h <<_ACEOF
42889 #define HAVE_LIBVTBLC 1
42892 LIBS="-lvtblc $LIBS"
42896 if test "x$ac_cv_lib_vtblc_main" != xyes; then
42897 { echo "$as_me:$LINENO: WARNING: *** vtblc library not found - no QIC volume table support!" >&5
42898 echo "$as_me: WARNING: *** vtblc library not found - no QIC volume table support!" >&2;}
42901 { echo "$as_me:$LINENO: WARNING: *** vtblc headers not found - no QIC volume table support!" >&5
42902 echo "$as_me: WARNING: *** vtblc headers not found - no QIC volume table support!" >&2;}
42907 echo "$as_me:$LINENO: checking for modf in -lm" >&5
42908 echo $ECHO_N "checking for modf in -lm... $ECHO_C" >&6
42909 if test "${ac_cv_lib_m_modf+set}" = set; then
42910 echo $ECHO_N "(cached) $ECHO_C" >&6
42912 ac_check_lib_save_LIBS=$LIBS
42914 cat >conftest.$ac_ext <<_ACEOF
42917 cat confdefs.h >>conftest.$ac_ext
42918 cat >>conftest.$ac_ext <<_ACEOF
42919 /* end confdefs.h. */
42921 /* Override any gcc2 internal prototype to avoid an error. */
42925 /* We use char because int might match the return type of a gcc2
42926 builtin and then its argument prototype would still apply. */
42936 rm -f conftest.$ac_objext conftest$ac_exeext
42937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42938 (eval $ac_link) 2>conftest.er1
42940 grep -v '^ *+' conftest.er1 >conftest.err
42942 cat conftest.err >&5
42943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42944 (exit $ac_status); } &&
42945 { ac_try='test -z "$ac_c_werror_flag"
42946 || test ! -s conftest.err'
42947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42948 (eval $ac_try) 2>&5
42950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42951 (exit $ac_status); }; } &&
42952 { ac_try='test -s conftest$ac_exeext'
42953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42954 (eval $ac_try) 2>&5
42956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42957 (exit $ac_status); }; }; then
42958 ac_cv_lib_m_modf=yes
42960 echo "$as_me: failed program was:" >&5
42961 sed 's/^/| /' conftest.$ac_ext >&5
42963 ac_cv_lib_m_modf=no
42965 rm -f conftest.err conftest.$ac_objext \
42966 conftest$ac_exeext conftest.$ac_ext
42967 LIBS=$ac_check_lib_save_LIBS
42969 echo "$as_me:$LINENO: result: $ac_cv_lib_m_modf" >&5
42970 echo "${ECHO_T}$ac_cv_lib_m_modf" >&6
42971 if test $ac_cv_lib_m_modf = yes; then
42972 cat >>confdefs.h <<_ACEOF
42973 #define HAVE_LIBM 1
42982 echo "$as_me:$LINENO: checking for mt_flags mtget structure element" >&5
42983 echo $ECHO_N "checking for mt_flags mtget structure element... $ECHO_C" >&6
42984 mt_flags_result="found"
42985 cat >conftest.$ac_ext <<_ACEOF
42988 cat confdefs.h >>conftest.$ac_ext
42989 cat >>conftest.$ac_ext <<_ACEOF
42990 /* end confdefs.h. */
42993 #include <sys/types.h>
42994 #include <sys/mtio.h>
43009 rm -f conftest.$ac_objext
43010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43011 (eval $ac_compile) 2>conftest.er1
43013 grep -v '^ *+' conftest.er1 >conftest.err
43015 cat conftest.err >&5
43016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43017 (exit $ac_status); } &&
43018 { ac_try='test -z "$ac_c_werror_flag"
43019 || test ! -s conftest.err'
43020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43021 (eval $ac_try) 2>&5
43023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43024 (exit $ac_status); }; } &&
43025 { ac_try='test -s conftest.$ac_objext'
43026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43027 (eval $ac_try) 2>&5
43029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43030 (exit $ac_status); }; }; then
43032 cat >>confdefs.h <<\_ACEOF
43033 #define HAVE_MT_FLAGS 1
43037 echo "$as_me: failed program was:" >&5
43038 sed 's/^/| /' conftest.$ac_ext >&5
43040 mt_flags_result="not found"
43042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43043 echo "$as_me:$LINENO: result: $mt_flags_result" >&5
43044 echo "${ECHO_T}$mt_flags_result" >&6
43046 echo "$as_me:$LINENO: checking for mt_fileno mtget structure element" >&5
43047 echo $ECHO_N "checking for mt_fileno mtget structure element... $ECHO_C" >&6
43048 mt_fileno_result="found"
43049 cat >conftest.$ac_ext <<_ACEOF
43052 cat confdefs.h >>conftest.$ac_ext
43053 cat >>conftest.$ac_ext <<_ACEOF
43054 /* end confdefs.h. */
43057 #include <sys/types.h>
43058 #include <sys/mtio.h>
43067 ds = buf.mt_fileno;
43073 rm -f conftest.$ac_objext
43074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43075 (eval $ac_compile) 2>conftest.er1
43077 grep -v '^ *+' conftest.er1 >conftest.err
43079 cat conftest.err >&5
43080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43081 (exit $ac_status); } &&
43082 { ac_try='test -z "$ac_c_werror_flag"
43083 || test ! -s conftest.err'
43084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43085 (eval $ac_try) 2>&5
43087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43088 (exit $ac_status); }; } &&
43089 { ac_try='test -s conftest.$ac_objext'
43090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43091 (eval $ac_try) 2>&5
43093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43094 (exit $ac_status); }; }; then
43096 cat >>confdefs.h <<\_ACEOF
43097 #define HAVE_MT_FILENO 1
43101 echo "$as_me: failed program was:" >&5
43102 sed 's/^/| /' conftest.$ac_ext >&5
43104 mt_fileno_result="not found"
43106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43107 echo "$as_me:$LINENO: result: $mt_fileno_result" >&5
43108 echo "${ECHO_T}$mt_fileno_result" >&6
43110 echo "$as_me:$LINENO: checking for mt_blkno mtget structure element" >&5
43111 echo $ECHO_N "checking for mt_blkno mtget structure element... $ECHO_C" >&6
43112 mt_blkno_result="found"
43113 cat >conftest.$ac_ext <<_ACEOF
43116 cat confdefs.h >>conftest.$ac_ext
43117 cat >>conftest.$ac_ext <<_ACEOF
43118 /* end confdefs.h. */
43121 #include <sys/types.h>
43122 #include <sys/mtio.h>
43137 rm -f conftest.$ac_objext
43138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43139 (eval $ac_compile) 2>conftest.er1
43141 grep -v '^ *+' conftest.er1 >conftest.err
43143 cat conftest.err >&5
43144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43145 (exit $ac_status); } &&
43146 { ac_try='test -z "$ac_c_werror_flag"
43147 || test ! -s conftest.err'
43148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43149 (eval $ac_try) 2>&5
43151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43152 (exit $ac_status); }; } &&
43153 { ac_try='test -s conftest.$ac_objext'
43154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43155 (eval $ac_try) 2>&5
43157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43158 (exit $ac_status); }; }; then
43160 cat >>confdefs.h <<\_ACEOF
43161 #define HAVE_MT_BLKNO 1
43165 echo "$as_me: failed program was:" >&5
43166 sed 's/^/| /' conftest.$ac_ext >&5
43168 mt_blkno_result="not found"
43170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43171 echo "$as_me:$LINENO: result: $mt_blkno_result" >&5
43172 echo "${ECHO_T}$mt_blkno_result" >&6
43174 echo "$as_me:$LINENO: checking for mt_dsreg mtget structure element" >&5
43175 echo $ECHO_N "checking for mt_dsreg mtget structure element... $ECHO_C" >&6
43176 mt_dsreg_result="found"
43177 cat >conftest.$ac_ext <<_ACEOF
43180 cat confdefs.h >>conftest.$ac_ext
43181 cat >>conftest.$ac_ext <<_ACEOF
43182 /* end confdefs.h. */
43185 #include <sys/types.h>
43186 #include <sys/mtio.h>
43201 rm -f conftest.$ac_objext
43202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43203 (eval $ac_compile) 2>conftest.er1
43205 grep -v '^ *+' conftest.er1 >conftest.err
43207 cat conftest.err >&5
43208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43209 (exit $ac_status); } &&
43210 { ac_try='test -z "$ac_c_werror_flag"
43211 || test ! -s conftest.err'
43212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43213 (eval $ac_try) 2>&5
43215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43216 (exit $ac_status); }; } &&
43217 { ac_try='test -s conftest.$ac_objext'
43218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43219 (eval $ac_try) 2>&5
43221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43222 (exit $ac_status); }; }; then
43224 cat >>confdefs.h <<\_ACEOF
43225 #define HAVE_MT_DSREG 1
43229 echo "$as_me: failed program was:" >&5
43230 sed 's/^/| /' conftest.$ac_ext >&5
43232 mt_dsreg_result="not found"
43234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43235 echo "$as_me:$LINENO: result: $mt_dsreg_result" >&5
43236 echo "${ECHO_T}$mt_dsreg_result" >&6
43238 echo "$as_me:$LINENO: checking for mt_erreg mtget structure element" >&5
43239 echo $ECHO_N "checking for mt_erreg mtget structure element... $ECHO_C" >&6
43240 mt_erreg_result="found"
43241 cat >conftest.$ac_ext <<_ACEOF
43244 cat confdefs.h >>conftest.$ac_ext
43245 cat >>conftest.$ac_ext <<_ACEOF
43246 /* end confdefs.h. */
43249 #include <sys/types.h>
43250 #include <sys/mtio.h>
43265 rm -f conftest.$ac_objext
43266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43267 (eval $ac_compile) 2>conftest.er1
43269 grep -v '^ *+' conftest.er1 >conftest.err
43271 cat conftest.err >&5
43272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43273 (exit $ac_status); } &&
43274 { ac_try='test -z "$ac_c_werror_flag"
43275 || test ! -s conftest.err'
43276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43277 (eval $ac_try) 2>&5
43279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43280 (exit $ac_status); }; } &&
43281 { ac_try='test -s conftest.$ac_objext'
43282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43283 (eval $ac_try) 2>&5
43285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43286 (exit $ac_status); }; }; then
43288 cat >>confdefs.h <<\_ACEOF
43289 #define HAVE_MT_ERREG 1
43293 echo "$as_me: failed program was:" >&5
43294 sed 's/^/| /' conftest.$ac_ext >&5
43296 mt_erreg_result="not found"
43298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43299 echo "$as_me:$LINENO: result: $mt_erreg_result" >&5
43300 echo "${ECHO_T}$mt_erreg_result" >&6
43308 echo "$as_me:$LINENO: checking for dbm_open in -lc" >&5
43309 echo $ECHO_N "checking for dbm_open in -lc... $ECHO_C" >&6
43310 if test "${ac_cv_lib_c_dbm_open+set}" = set; then
43311 echo $ECHO_N "(cached) $ECHO_C" >&6
43313 ac_check_lib_save_LIBS=$LIBS
43315 cat >conftest.$ac_ext <<_ACEOF
43318 cat confdefs.h >>conftest.$ac_ext
43319 cat >>conftest.$ac_ext <<_ACEOF
43320 /* end confdefs.h. */
43322 /* Override any gcc2 internal prototype to avoid an error. */
43326 /* We use char because int might match the return type of a gcc2
43327 builtin and then its argument prototype would still apply. */
43337 rm -f conftest.$ac_objext conftest$ac_exeext
43338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43339 (eval $ac_link) 2>conftest.er1
43341 grep -v '^ *+' conftest.er1 >conftest.err
43343 cat conftest.err >&5
43344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43345 (exit $ac_status); } &&
43346 { ac_try='test -z "$ac_c_werror_flag"
43347 || test ! -s conftest.err'
43348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43349 (eval $ac_try) 2>&5
43351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43352 (exit $ac_status); }; } &&
43353 { ac_try='test -s conftest$ac_exeext'
43354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43355 (eval $ac_try) 2>&5
43357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43358 (exit $ac_status); }; }; then
43359 ac_cv_lib_c_dbm_open=yes
43361 echo "$as_me: failed program was:" >&5
43362 sed 's/^/| /' conftest.$ac_ext >&5
43364 ac_cv_lib_c_dbm_open=no
43366 rm -f conftest.err conftest.$ac_objext \
43367 conftest$ac_exeext conftest.$ac_ext
43368 LIBS=$ac_check_lib_save_LIBS
43370 echo "$as_me:$LINENO: result: $ac_cv_lib_c_dbm_open" >&5
43371 echo "${ECHO_T}$ac_cv_lib_c_dbm_open" >&6
43372 if test $ac_cv_lib_c_dbm_open = yes; then
43373 cat >>confdefs.h <<_ACEOF
43374 #define HAVE_LIBC 1
43383 case "$DB_STYLE" in
43385 if test "x$ac_cv_header_db_h" = xyes; then
43387 echo "$as_me:$LINENO: checking for main in -ldb" >&5
43388 echo $ECHO_N "checking for main in -ldb... $ECHO_C" >&6
43389 if test "${ac_cv_lib_db_main+set}" = set; then
43390 echo $ECHO_N "(cached) $ECHO_C" >&6
43392 ac_check_lib_save_LIBS=$LIBS
43394 cat >conftest.$ac_ext <<_ACEOF
43397 cat confdefs.h >>conftest.$ac_ext
43398 cat >>conftest.$ac_ext <<_ACEOF
43399 /* end confdefs.h. */
43410 rm -f conftest.$ac_objext conftest$ac_exeext
43411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43412 (eval $ac_link) 2>conftest.er1
43414 grep -v '^ *+' conftest.er1 >conftest.err
43416 cat conftest.err >&5
43417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43418 (exit $ac_status); } &&
43419 { ac_try='test -z "$ac_c_werror_flag"
43420 || test ! -s conftest.err'
43421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43422 (eval $ac_try) 2>&5
43424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43425 (exit $ac_status); }; } &&
43426 { ac_try='test -s conftest$ac_exeext'
43427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43428 (eval $ac_try) 2>&5
43430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43431 (exit $ac_status); }; }; then
43432 ac_cv_lib_db_main=yes
43434 echo "$as_me: failed program was:" >&5
43435 sed 's/^/| /' conftest.$ac_ext >&5
43437 ac_cv_lib_db_main=no
43439 rm -f conftest.err conftest.$ac_objext \
43440 conftest$ac_exeext conftest.$ac_ext
43441 LIBS=$ac_check_lib_save_LIBS
43443 echo "$as_me:$LINENO: result: $ac_cv_lib_db_main" >&5
43444 echo "${ECHO_T}$ac_cv_lib_db_main" >&6
43445 if test $ac_cv_lib_db_main = yes; then
43446 cat >>confdefs.h <<_ACEOF
43447 #define HAVE_LIBDB 1
43454 if test "x$ac_cv_lib_db_main" = xyes; then
43456 echo "$as_me:$LINENO: checking for dbm_open in -ldb" >&5
43457 echo $ECHO_N "checking for dbm_open in -ldb... $ECHO_C" >&6
43458 if test "${ac_cv_lib_db_dbm_open+set}" = set; then
43459 echo $ECHO_N "(cached) $ECHO_C" >&6
43461 ac_check_lib_save_LIBS=$LIBS
43463 cat >conftest.$ac_ext <<_ACEOF
43466 cat confdefs.h >>conftest.$ac_ext
43467 cat >>conftest.$ac_ext <<_ACEOF
43468 /* end confdefs.h. */
43470 /* Override any gcc2 internal prototype to avoid an error. */
43474 /* We use char because int might match the return type of a gcc2
43475 builtin and then its argument prototype would still apply. */
43485 rm -f conftest.$ac_objext conftest$ac_exeext
43486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43487 (eval $ac_link) 2>conftest.er1
43489 grep -v '^ *+' conftest.er1 >conftest.err
43491 cat conftest.err >&5
43492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43493 (exit $ac_status); } &&
43494 { ac_try='test -z "$ac_c_werror_flag"
43495 || test ! -s conftest.err'
43496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43497 (eval $ac_try) 2>&5
43499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43500 (exit $ac_status); }; } &&
43501 { ac_try='test -s conftest$ac_exeext'
43502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43503 (eval $ac_try) 2>&5
43505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43506 (exit $ac_status); }; }; then
43507 ac_cv_lib_db_dbm_open=yes
43509 echo "$as_me: failed program was:" >&5
43510 sed 's/^/| /' conftest.$ac_ext >&5
43512 ac_cv_lib_db_dbm_open=no
43514 rm -f conftest.err conftest.$ac_objext \
43515 conftest$ac_exeext conftest.$ac_ext
43516 LIBS=$ac_check_lib_save_LIBS
43518 echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbm_open" >&5
43519 echo "${ECHO_T}$ac_cv_lib_db_dbm_open" >&6
43520 if test $ac_cv_lib_db_dbm_open = yes; then
43521 cat >>confdefs.h <<_ACEOF
43522 #define HAVE_LIBDB 1
43529 if test "x$ac_cv_lib_db_dbm_open" = xyes; then
43534 { echo "$as_me:$LINENO: WARNING: *** db database library requested but dbm_open not found in -ldb." >&5
43535 echo "$as_me: WARNING: *** db database library requested but dbm_open not found in -ldb." >&2;}
43538 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
43543 { echo "$as_me:$LINENO: WARNING: *** db library requested but -ldb doesn't exist and dbm_open cannot be found." >&5
43544 echo "$as_me: WARNING: *** db library requested but -ldb doesn't exist and dbm_open cannot be found." >&2;}
43549 { echo "$as_me:$LINENO: WARNING: *** db database library requested but db.h not found." >&5
43550 echo "$as_me: WARNING: *** db database library requested but db.h not found." >&2;}
43555 if test "x$ac_cv_header_dbm_h" = xyes; then
43557 echo "$as_me:$LINENO: checking for main in -ldbm" >&5
43558 echo $ECHO_N "checking for main in -ldbm... $ECHO_C" >&6
43559 if test "${ac_cv_lib_dbm_main+set}" = set; then
43560 echo $ECHO_N "(cached) $ECHO_C" >&6
43562 ac_check_lib_save_LIBS=$LIBS
43564 cat >conftest.$ac_ext <<_ACEOF
43567 cat confdefs.h >>conftest.$ac_ext
43568 cat >>conftest.$ac_ext <<_ACEOF
43569 /* end confdefs.h. */
43580 rm -f conftest.$ac_objext conftest$ac_exeext
43581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43582 (eval $ac_link) 2>conftest.er1
43584 grep -v '^ *+' conftest.er1 >conftest.err
43586 cat conftest.err >&5
43587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43588 (exit $ac_status); } &&
43589 { ac_try='test -z "$ac_c_werror_flag"
43590 || test ! -s conftest.err'
43591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43592 (eval $ac_try) 2>&5
43594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43595 (exit $ac_status); }; } &&
43596 { ac_try='test -s conftest$ac_exeext'
43597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43598 (eval $ac_try) 2>&5
43600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43601 (exit $ac_status); }; }; then
43602 ac_cv_lib_dbm_main=yes
43604 echo "$as_me: failed program was:" >&5
43605 sed 's/^/| /' conftest.$ac_ext >&5
43607 ac_cv_lib_dbm_main=no
43609 rm -f conftest.err conftest.$ac_objext \
43610 conftest$ac_exeext conftest.$ac_ext
43611 LIBS=$ac_check_lib_save_LIBS
43613 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_main" >&5
43614 echo "${ECHO_T}$ac_cv_lib_dbm_main" >&6
43615 if test $ac_cv_lib_dbm_main = yes; then
43616 cat >>confdefs.h <<_ACEOF
43617 #define HAVE_LIBDBM 1
43624 if test "x$ac_cv_lib_dbm_main" = xyes; then
43626 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
43627 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
43628 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
43629 echo $ECHO_N "(cached) $ECHO_C" >&6
43631 ac_check_lib_save_LIBS=$LIBS
43633 cat >conftest.$ac_ext <<_ACEOF
43636 cat confdefs.h >>conftest.$ac_ext
43637 cat >>conftest.$ac_ext <<_ACEOF
43638 /* end confdefs.h. */
43640 /* Override any gcc2 internal prototype to avoid an error. */
43644 /* We use char because int might match the return type of a gcc2
43645 builtin and then its argument prototype would still apply. */
43655 rm -f conftest.$ac_objext conftest$ac_exeext
43656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43657 (eval $ac_link) 2>conftest.er1
43659 grep -v '^ *+' conftest.er1 >conftest.err
43661 cat conftest.err >&5
43662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43663 (exit $ac_status); } &&
43664 { ac_try='test -z "$ac_c_werror_flag"
43665 || test ! -s conftest.err'
43666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43667 (eval $ac_try) 2>&5
43669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43670 (exit $ac_status); }; } &&
43671 { ac_try='test -s conftest$ac_exeext'
43672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43673 (eval $ac_try) 2>&5
43675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43676 (exit $ac_status); }; }; then
43677 ac_cv_lib_dbm_dbm_open=yes
43679 echo "$as_me: failed program was:" >&5
43680 sed 's/^/| /' conftest.$ac_ext >&5
43682 ac_cv_lib_dbm_dbm_open=no
43684 rm -f conftest.err conftest.$ac_objext \
43685 conftest$ac_exeext conftest.$ac_ext
43686 LIBS=$ac_check_lib_save_LIBS
43688 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
43689 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
43690 if test $ac_cv_lib_dbm_dbm_open = yes; then
43691 cat >>confdefs.h <<_ACEOF
43692 #define HAVE_LIBDBM 1
43699 if test "x$ac_cv_lib_dbm_dbm_open" = xyes; then
43704 { echo "$as_me:$LINENO: WARNING: *** dbm database library requested but dbm_open not found in -ldbm." >&5
43705 echo "$as_me: WARNING: *** dbm database library requested but dbm_open not found in -ldbm." >&2;}
43708 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
43713 { echo "$as_me:$LINENO: WARNING: *** dbm library requested but -ldbm doesn't exist and dbm_open cannot be found." >&5
43714 echo "$as_me: WARNING: *** dbm library requested but -ldbm doesn't exist and dbm_open cannot be found." >&2;}
43719 { echo "$as_me:$LINENO: WARNING: *** dbm database library requested but dbm.h not found." >&5
43720 echo "$as_me: WARNING: *** dbm database library requested but dbm.h not found." >&2;}
43725 if test "x$ac_cv_header_ndbm_h" = xyes; then
43727 echo "$as_me:$LINENO: checking for main in -lgdbm" >&5
43728 echo $ECHO_N "checking for main in -lgdbm... $ECHO_C" >&6
43729 if test "${ac_cv_lib_gdbm_main+set}" = set; then
43730 echo $ECHO_N "(cached) $ECHO_C" >&6
43732 ac_check_lib_save_LIBS=$LIBS
43733 LIBS="-lgdbm $LIBS"
43734 cat >conftest.$ac_ext <<_ACEOF
43737 cat confdefs.h >>conftest.$ac_ext
43738 cat >>conftest.$ac_ext <<_ACEOF
43739 /* end confdefs.h. */
43750 rm -f conftest.$ac_objext conftest$ac_exeext
43751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43752 (eval $ac_link) 2>conftest.er1
43754 grep -v '^ *+' conftest.er1 >conftest.err
43756 cat conftest.err >&5
43757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43758 (exit $ac_status); } &&
43759 { ac_try='test -z "$ac_c_werror_flag"
43760 || test ! -s conftest.err'
43761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43762 (eval $ac_try) 2>&5
43764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43765 (exit $ac_status); }; } &&
43766 { ac_try='test -s conftest$ac_exeext'
43767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43768 (eval $ac_try) 2>&5
43770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43771 (exit $ac_status); }; }; then
43772 ac_cv_lib_gdbm_main=yes
43774 echo "$as_me: failed program was:" >&5
43775 sed 's/^/| /' conftest.$ac_ext >&5
43777 ac_cv_lib_gdbm_main=no
43779 rm -f conftest.err conftest.$ac_objext \
43780 conftest$ac_exeext conftest.$ac_ext
43781 LIBS=$ac_check_lib_save_LIBS
43783 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_main" >&5
43784 echo "${ECHO_T}$ac_cv_lib_gdbm_main" >&6
43785 if test $ac_cv_lib_gdbm_main = yes; then
43786 cat >>confdefs.h <<_ACEOF
43787 #define HAVE_LIBGDBM 1
43790 LIBS="-lgdbm $LIBS"
43794 if test "x$ac_cv_lib_gdbm_main" = xyes; then
43796 echo "$as_me:$LINENO: checking for dbm_open in -lgdbm" >&5
43797 echo $ECHO_N "checking for dbm_open in -lgdbm... $ECHO_C" >&6
43798 if test "${ac_cv_lib_gdbm_dbm_open+set}" = set; then
43799 echo $ECHO_N "(cached) $ECHO_C" >&6
43801 ac_check_lib_save_LIBS=$LIBS
43802 LIBS="-lgdbm $LIBS"
43803 cat >conftest.$ac_ext <<_ACEOF
43806 cat confdefs.h >>conftest.$ac_ext
43807 cat >>conftest.$ac_ext <<_ACEOF
43808 /* end confdefs.h. */
43810 /* Override any gcc2 internal prototype to avoid an error. */
43814 /* We use char because int might match the return type of a gcc2
43815 builtin and then its argument prototype would still apply. */
43825 rm -f conftest.$ac_objext conftest$ac_exeext
43826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43827 (eval $ac_link) 2>conftest.er1
43829 grep -v '^ *+' conftest.er1 >conftest.err
43831 cat conftest.err >&5
43832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43833 (exit $ac_status); } &&
43834 { ac_try='test -z "$ac_c_werror_flag"
43835 || test ! -s conftest.err'
43836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43837 (eval $ac_try) 2>&5
43839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43840 (exit $ac_status); }; } &&
43841 { ac_try='test -s conftest$ac_exeext'
43842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43843 (eval $ac_try) 2>&5
43845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43846 (exit $ac_status); }; }; then
43847 ac_cv_lib_gdbm_dbm_open=yes
43849 echo "$as_me: failed program was:" >&5
43850 sed 's/^/| /' conftest.$ac_ext >&5
43852 ac_cv_lib_gdbm_dbm_open=no
43854 rm -f conftest.err conftest.$ac_objext \
43855 conftest$ac_exeext conftest.$ac_ext
43856 LIBS=$ac_check_lib_save_LIBS
43858 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_dbm_open" >&5
43859 echo "${ECHO_T}$ac_cv_lib_gdbm_dbm_open" >&6
43860 if test $ac_cv_lib_gdbm_dbm_open = yes; then
43861 cat >>confdefs.h <<_ACEOF
43862 #define HAVE_LIBGDBM 1
43865 LIBS="-lgdbm $LIBS"
43869 if test "x$ac_cv_lib_gdbm_dbm_open" = xyes; then
43874 { echo "$as_me:$LINENO: WARNING: *** gdbm database library requested but -lgdbm not found." >&5
43875 echo "$as_me: WARNING: *** gdbm database library requested but -lgdbm not found." >&2;}
43878 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
43883 { echo "$as_me:$LINENO: WARNING: *** gdbm library requested but -lgdbm doesn't exist and dbm_open cannot be found." >&5
43884 echo "$as_me: WARNING: *** gdbm library requested but -lgdbm doesn't exist and dbm_open cannot be found." >&2;}
43889 { echo "$as_me:$LINENO: WARNING: *** gdbm database library requested but ndbm.h not found." >&5
43890 echo "$as_me: WARNING: *** gdbm database library requested but ndbm.h not found." >&2;}
43895 if test "x$ac_cv_header_ndbm_h" = xyes; then
43897 echo "$as_me:$LINENO: checking for main in -lndbm" >&5
43898 echo $ECHO_N "checking for main in -lndbm... $ECHO_C" >&6
43899 if test "${ac_cv_lib_ndbm_main+set}" = set; then
43900 echo $ECHO_N "(cached) $ECHO_C" >&6
43902 ac_check_lib_save_LIBS=$LIBS
43903 LIBS="-lndbm $LIBS"
43904 cat >conftest.$ac_ext <<_ACEOF
43907 cat confdefs.h >>conftest.$ac_ext
43908 cat >>conftest.$ac_ext <<_ACEOF
43909 /* end confdefs.h. */
43920 rm -f conftest.$ac_objext conftest$ac_exeext
43921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43922 (eval $ac_link) 2>conftest.er1
43924 grep -v '^ *+' conftest.er1 >conftest.err
43926 cat conftest.err >&5
43927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43928 (exit $ac_status); } &&
43929 { ac_try='test -z "$ac_c_werror_flag"
43930 || test ! -s conftest.err'
43931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43932 (eval $ac_try) 2>&5
43934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43935 (exit $ac_status); }; } &&
43936 { ac_try='test -s conftest$ac_exeext'
43937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43938 (eval $ac_try) 2>&5
43940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43941 (exit $ac_status); }; }; then
43942 ac_cv_lib_ndbm_main=yes
43944 echo "$as_me: failed program was:" >&5
43945 sed 's/^/| /' conftest.$ac_ext >&5
43947 ac_cv_lib_ndbm_main=no
43949 rm -f conftest.err conftest.$ac_objext \
43950 conftest$ac_exeext conftest.$ac_ext
43951 LIBS=$ac_check_lib_save_LIBS
43953 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_main" >&5
43954 echo "${ECHO_T}$ac_cv_lib_ndbm_main" >&6
43955 if test $ac_cv_lib_ndbm_main = yes; then
43956 cat >>confdefs.h <<_ACEOF
43957 #define HAVE_LIBNDBM 1
43960 LIBS="-lndbm $LIBS"
43964 if test "x$ac_cv_lib_ndbm_main" = xyes; then
43966 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
43967 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
43968 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
43969 echo $ECHO_N "(cached) $ECHO_C" >&6
43971 ac_check_lib_save_LIBS=$LIBS
43972 LIBS="-lndbm $LIBS"
43973 cat >conftest.$ac_ext <<_ACEOF
43976 cat confdefs.h >>conftest.$ac_ext
43977 cat >>conftest.$ac_ext <<_ACEOF
43978 /* end confdefs.h. */
43980 /* Override any gcc2 internal prototype to avoid an error. */
43984 /* We use char because int might match the return type of a gcc2
43985 builtin and then its argument prototype would still apply. */
43995 rm -f conftest.$ac_objext conftest$ac_exeext
43996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43997 (eval $ac_link) 2>conftest.er1
43999 grep -v '^ *+' conftest.er1 >conftest.err
44001 cat conftest.err >&5
44002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44003 (exit $ac_status); } &&
44004 { ac_try='test -z "$ac_c_werror_flag"
44005 || test ! -s conftest.err'
44006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44007 (eval $ac_try) 2>&5
44009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44010 (exit $ac_status); }; } &&
44011 { ac_try='test -s conftest$ac_exeext'
44012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44013 (eval $ac_try) 2>&5
44015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44016 (exit $ac_status); }; }; then
44017 ac_cv_lib_ndbm_dbm_open=yes
44019 echo "$as_me: failed program was:" >&5
44020 sed 's/^/| /' conftest.$ac_ext >&5
44022 ac_cv_lib_ndbm_dbm_open=no
44024 rm -f conftest.err conftest.$ac_objext \
44025 conftest$ac_exeext conftest.$ac_ext
44026 LIBS=$ac_check_lib_save_LIBS
44028 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
44029 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
44030 if test $ac_cv_lib_ndbm_dbm_open = yes; then
44031 cat >>confdefs.h <<_ACEOF
44032 #define HAVE_LIBNDBM 1
44035 LIBS="-lndbm $LIBS"
44039 if test "x$ac_cv_lib_ndbm_dbm_open" = xyes; then
44044 { echo "$as_me:$LINENO: WARNING: *** ndbm database library requested but -lndbm not found." >&5
44045 echo "$as_me: WARNING: *** ndbm database library requested but -lndbm not found." >&2;}
44048 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
44053 { echo "$as_me:$LINENO: WARNING: *** ndbm library requested but -lndbm doesn't exist and dbm_open cannot be found." >&5
44054 echo "$as_me: WARNING: *** ndbm library requested but -lndbm doesn't exist and dbm_open cannot be found." >&2;}
44059 { echo "$as_me:$LINENO: WARNING: *** ndbm database library requested but ndbm.h not found." >&5
44060 echo "$as_me: WARNING: *** ndbm database library requested but ndbm.h not found." >&2;}
44070 if test -z "$DB_STYLE"; then
44077 if test "x$DB_STYLE" = xtext; then
44079 cat >>confdefs.h <<\_ACEOF
44084 echo "$as_me:$LINENO: checking for database" >&5
44085 echo $ECHO_N "checking for database... $ECHO_C" >&6
44086 echo "$as_me:$LINENO: result: header is $DB_HEADER, linking against -l$DB_LIB" >&5
44087 echo "${ECHO_T}header is $DB_HEADER, linking against -l$DB_LIB" >&6
44088 case "$DB_STYLE" in
44090 cat >>confdefs.h <<\_ACEOF
44095 cat >>confdefs.h <<\_ACEOF
44096 #define USE_DBM_H 1
44100 cat >>confdefs.h <<\_ACEOF
44101 #define USE_GDBM_H 1
44105 cat >>confdefs.h <<\_ACEOF
44106 #define USE_NDBM_H 1
44111 echo "$as_me:$LINENO: checking for struct datum declared in header files" >&5
44112 echo $ECHO_N "checking for struct datum declared in header files... $ECHO_C" >&6
44113 if test "${amanda_cv_struct_datum+set}" = set; then
44114 echo $ECHO_N "(cached) $ECHO_C" >&6
44117 cat >conftest.$ac_ext <<_ACEOF
44120 cat confdefs.h >>conftest.$ac_ext
44121 cat >>conftest.$ac_ext <<_ACEOF
44122 /* end confdefs.h. */
44124 #if defined(USE_DB_H)
44127 # if defined(USE_DBM_H)
44130 # if defined(USE_NDBM_H)
44146 rm -f conftest.$ac_objext
44147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44148 (eval $ac_compile) 2>conftest.er1
44150 grep -v '^ *+' conftest.er1 >conftest.err
44152 cat conftest.err >&5
44153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44154 (exit $ac_status); } &&
44155 { ac_try='test -z "$ac_c_werror_flag"
44156 || test ! -s conftest.err'
44157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44158 (eval $ac_try) 2>&5
44160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44161 (exit $ac_status); }; } &&
44162 { ac_try='test -s conftest.$ac_objext'
44163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44164 (eval $ac_try) 2>&5
44166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44167 (exit $ac_status); }; }; then
44168 amanda_cv_struct_datum=yes
44170 echo "$as_me: failed program was:" >&5
44171 sed 's/^/| /' conftest.$ac_ext >&5
44173 amanda_cv_struct_datum=no
44176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44179 echo "$as_me:$LINENO: result: $amanda_cv_struct_datum" >&5
44180 echo "${ECHO_T}$amanda_cv_struct_datum" >&6
44181 if test "x$amanda_cv_struct_datum" = xyes; then
44183 cat >>confdefs.h <<\_ACEOF
44184 #define HAVE_STRUCT_DATUM 1
44190 case "$DB_STYLE" in
44192 gdbm) DB_EXT='""';;
44193 dbm | ndbm) DB_EXT=".dir .pag";;
44194 text) DB_EXT='""';;
44199 echo "$as_me:$LINENO: checking whether _POSIX2_RE_DUP_MAX is defined" >&5
44200 echo $ECHO_N "checking whether _POSIX2_RE_DUP_MAX is defined... $ECHO_C" >&6
44201 if test "${amanda_cv_have__posix2_re_dup_max+set}" = set; then
44202 echo $ECHO_N "(cached) $ECHO_C" >&6
44204 cat >conftest.$ac_ext <<_ACEOF
44207 cat confdefs.h >>conftest.$ac_ext
44208 cat >>conftest.$ac_ext <<_ACEOF
44209 /* end confdefs.h. */
44211 #include <limits.h>
44212 #ifdef _POSIX2_RE_DUP_MAX
44217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44218 $EGREP "yes" >/dev/null 2>&1; then
44219 amanda_cv_have__posix2_re_dup_max=yes
44221 amanda_cv_have__posix2_re_dup_max=no
44226 echo "$as_me:$LINENO: result: $amanda_cv_have__posix2_re_dup_max" >&5
44227 echo "${ECHO_T}$amanda_cv_have__posix2_re_dup_max" >&6
44228 if test "x$amanda_cv_have__posix2_re_dup_max" = xyes; then
44230 cat >>confdefs.h <<\_ACEOF
44231 #define HAVE__POSIX2_RE_DUP_MAX 1
44236 echo "$as_me:$LINENO: checking whether CHAR_MIN is defined" >&5
44237 echo $ECHO_N "checking whether CHAR_MIN is defined... $ECHO_C" >&6
44238 if test "${amanda_cv_have_char_min+set}" = set; then
44239 echo $ECHO_N "(cached) $ECHO_C" >&6
44241 cat >conftest.$ac_ext <<_ACEOF
44244 cat confdefs.h >>conftest.$ac_ext
44245 cat >>conftest.$ac_ext <<_ACEOF
44246 /* end confdefs.h. */
44248 #include <limits.h>
44254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44255 $EGREP "yes" >/dev/null 2>&1; then
44256 amanda_cv_have_char_min=yes
44258 amanda_cv_have_char_min=no
44263 echo "$as_me:$LINENO: result: $amanda_cv_have_char_min" >&5
44264 echo "${ECHO_T}$amanda_cv_have_char_min" >&6
44265 if test "x$amanda_cv_have_char_min" = xyes; then
44267 cat >>confdefs.h <<\_ACEOF
44268 #define HAVE_CHAR_MIN 1
44273 echo "$as_me:$LINENO: checking whether CHAR_MAX is defined" >&5
44274 echo $ECHO_N "checking whether CHAR_MAX is defined... $ECHO_C" >&6
44275 if test "${amanda_cv_have_char_max+set}" = set; then
44276 echo $ECHO_N "(cached) $ECHO_C" >&6
44278 cat >conftest.$ac_ext <<_ACEOF
44281 cat confdefs.h >>conftest.$ac_ext
44282 cat >>conftest.$ac_ext <<_ACEOF
44283 /* end confdefs.h. */
44285 #include <limits.h>
44291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44292 $EGREP "yes" >/dev/null 2>&1; then
44293 amanda_cv_have_char_max=yes
44295 amanda_cv_have_char_max=no
44300 echo "$as_me:$LINENO: result: $amanda_cv_have_char_max" >&5
44301 echo "${ECHO_T}$amanda_cv_have_char_max" >&6
44302 if test "x$amanda_cv_have_char_max" = xyes; then
44304 cat >>confdefs.h <<\_ACEOF
44305 #define HAVE_CHAR_MAX 1
44310 echo "$as_me:$LINENO: checking whether CHAR_BIT is defined" >&5
44311 echo $ECHO_N "checking whether CHAR_BIT is defined... $ECHO_C" >&6
44312 if test "${amanda_cv_have_char_bit+set}" = set; then
44313 echo $ECHO_N "(cached) $ECHO_C" >&6
44315 cat >conftest.$ac_ext <<_ACEOF
44318 cat confdefs.h >>conftest.$ac_ext
44319 cat >>conftest.$ac_ext <<_ACEOF
44320 /* end confdefs.h. */
44322 #include <limits.h>
44328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44329 $EGREP "yes" >/dev/null 2>&1; then
44330 amanda_cv_have_char_bit=yes
44332 amanda_cv_have_char_bit=no
44337 echo "$as_me:$LINENO: result: $amanda_cv_have_char_bit" >&5
44338 echo "${ECHO_T}$amanda_cv_have_char_bit" >&6
44339 if test "x$amanda_cv_have_char_bit" = xyes; then
44341 cat >>confdefs.h <<\_ACEOF
44342 #define HAVE_CHAR_BIT 1
44350 for ac_func in accept
44352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44353 echo "$as_me:$LINENO: checking for $ac_func" >&5
44354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44355 if eval "test \"\${$as_ac_var+set}\" = set"; then
44356 echo $ECHO_N "(cached) $ECHO_C" >&6
44358 cat >conftest.$ac_ext <<_ACEOF
44361 cat confdefs.h >>conftest.$ac_ext
44362 cat >>conftest.$ac_ext <<_ACEOF
44363 /* end confdefs.h. */
44364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44366 #define $ac_func innocuous_$ac_func
44368 /* System header to define __stub macros and hopefully few prototypes,
44369 which can conflict with char $ac_func (); below.
44370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44371 <limits.h> exists even on freestanding compilers. */
44374 # include <limits.h>
44376 # include <assert.h>
44381 /* Override any gcc2 internal prototype to avoid an error. */
44386 /* We use char because int might match the return type of a gcc2
44387 builtin and then its argument prototype would still apply. */
44389 /* The GNU C library defines this for functions which it implements
44390 to always fail with ENOSYS. Some functions are actually named
44391 something starting with __ and the normal name is an alias. */
44392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44395 char (*f) () = $ac_func;
44404 return f != $ac_func;
44409 rm -f conftest.$ac_objext conftest$ac_exeext
44410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44411 (eval $ac_link) 2>conftest.er1
44413 grep -v '^ *+' conftest.er1 >conftest.err
44415 cat conftest.err >&5
44416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44417 (exit $ac_status); } &&
44418 { ac_try='test -z "$ac_c_werror_flag"
44419 || test ! -s conftest.err'
44420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44421 (eval $ac_try) 2>&5
44423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44424 (exit $ac_status); }; } &&
44425 { ac_try='test -s conftest$ac_exeext'
44426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44427 (eval $ac_try) 2>&5
44429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44430 (exit $ac_status); }; }; then
44431 eval "$as_ac_var=yes"
44433 echo "$as_me: failed program was:" >&5
44434 sed 's/^/| /' conftest.$ac_ext >&5
44436 eval "$as_ac_var=no"
44438 rm -f conftest.err conftest.$ac_objext \
44439 conftest$ac_exeext conftest.$ac_ext
44441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44443 if test `eval echo '${'$as_ac_var'}'` = yes; then
44444 cat >>confdefs.h <<_ACEOF
44445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44447 ice_have_accept=yes
44451 if test "${ice_have_accept}" = yes; then
44452 echo "$as_me:$LINENO: checking for accept declaration in sys/types.h sys/socket.h" >&5
44453 echo $ECHO_N "checking for accept declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
44454 if test "${ice_cv_have_accept_decl+set}" = set; then
44455 echo $ECHO_N "(cached) $ECHO_C" >&6
44458 ice_cv_have_accept_decl=no
44459 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44460 ice_re_word='(^|[^a-zA-Z0-9_])'
44461 for header in sys/types.h sys/socket.h; do
44462 # Check for ordinary declaration
44463 cat >conftest.$ac_ext <<_ACEOF
44466 cat confdefs.h >>conftest.$ac_ext
44467 cat >>conftest.$ac_ext <<_ACEOF
44468 /* end confdefs.h. */
44472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44473 $EGREP "${ice_re_word}accept[ ]*\(" >/dev/null 2>&1; then
44474 ice_cv_have_accept_decl=yes
44478 if test "$ice_cv_have_accept_decl" = yes; then
44481 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44482 cat >conftest.$ac_ext <<_ACEOF
44485 cat confdefs.h >>conftest.$ac_ext
44486 cat >>conftest.$ac_ext <<_ACEOF
44487 /* end confdefs.h. */
44491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44492 $EGREP "${ice_re_word}accept[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44493 ice_cv_have_accept_decl=yes
44497 if test "$ice_cv_have_accept_decl" = yes; then
44504 echo "$as_me:$LINENO: result: $ice_cv_have_accept_decl" >&5
44505 echo "${ECHO_T}$ice_cv_have_accept_decl" >&6
44506 if test "$ice_cv_have_accept_decl" = yes; then
44508 cat >>confdefs.h <<_ACEOF
44509 #define HAVE_ACCEPT_DECL 1
44515 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
44516 # for constant arguments. Useless!
44517 echo "$as_me:$LINENO: checking for working alloca.h" >&5
44518 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
44519 if test "${ac_cv_working_alloca_h+set}" = set; then
44520 echo $ECHO_N "(cached) $ECHO_C" >&6
44522 cat >conftest.$ac_ext <<_ACEOF
44525 cat confdefs.h >>conftest.$ac_ext
44526 cat >>conftest.$ac_ext <<_ACEOF
44527 /* end confdefs.h. */
44528 #include <alloca.h>
44532 char *p = (char *) alloca (2 * sizeof (int));
44537 rm -f conftest.$ac_objext conftest$ac_exeext
44538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44539 (eval $ac_link) 2>conftest.er1
44541 grep -v '^ *+' conftest.er1 >conftest.err
44543 cat conftest.err >&5
44544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44545 (exit $ac_status); } &&
44546 { ac_try='test -z "$ac_c_werror_flag"
44547 || test ! -s conftest.err'
44548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44549 (eval $ac_try) 2>&5
44551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44552 (exit $ac_status); }; } &&
44553 { ac_try='test -s conftest$ac_exeext'
44554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44555 (eval $ac_try) 2>&5
44557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44558 (exit $ac_status); }; }; then
44559 ac_cv_working_alloca_h=yes
44561 echo "$as_me: failed program was:" >&5
44562 sed 's/^/| /' conftest.$ac_ext >&5
44564 ac_cv_working_alloca_h=no
44566 rm -f conftest.err conftest.$ac_objext \
44567 conftest$ac_exeext conftest.$ac_ext
44569 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
44570 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
44571 if test $ac_cv_working_alloca_h = yes; then
44573 cat >>confdefs.h <<\_ACEOF
44574 #define HAVE_ALLOCA_H 1
44579 echo "$as_me:$LINENO: checking for alloca" >&5
44580 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
44581 if test "${ac_cv_func_alloca_works+set}" = set; then
44582 echo $ECHO_N "(cached) $ECHO_C" >&6
44584 cat >conftest.$ac_ext <<_ACEOF
44587 cat confdefs.h >>conftest.$ac_ext
44588 cat >>conftest.$ac_ext <<_ACEOF
44589 /* end confdefs.h. */
44591 # define alloca __builtin_alloca
44594 # include <malloc.h>
44595 # define alloca _alloca
44598 # include <alloca.h>
44603 # ifndef alloca /* predefined by HP cc +Olibcalls */
44614 char *p = (char *) alloca (1);
44619 rm -f conftest.$ac_objext conftest$ac_exeext
44620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44621 (eval $ac_link) 2>conftest.er1
44623 grep -v '^ *+' conftest.er1 >conftest.err
44625 cat conftest.err >&5
44626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44627 (exit $ac_status); } &&
44628 { ac_try='test -z "$ac_c_werror_flag"
44629 || test ! -s conftest.err'
44630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44631 (eval $ac_try) 2>&5
44633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44634 (exit $ac_status); }; } &&
44635 { ac_try='test -s conftest$ac_exeext'
44636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44637 (eval $ac_try) 2>&5
44639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44640 (exit $ac_status); }; }; then
44641 ac_cv_func_alloca_works=yes
44643 echo "$as_me: failed program was:" >&5
44644 sed 's/^/| /' conftest.$ac_ext >&5
44646 ac_cv_func_alloca_works=no
44648 rm -f conftest.err conftest.$ac_objext \
44649 conftest$ac_exeext conftest.$ac_ext
44651 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
44652 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
44654 if test $ac_cv_func_alloca_works = yes; then
44656 cat >>confdefs.h <<\_ACEOF
44657 #define HAVE_ALLOCA 1
44661 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
44662 # that cause trouble. Some versions do not even contain alloca or
44663 # contain a buggy version. If you still want to use their alloca,
44664 # use ar to extract alloca.o from them instead of compiling alloca.c.
44666 ALLOCA=alloca.$ac_objext
44668 cat >>confdefs.h <<\_ACEOF
44673 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
44674 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
44675 if test "${ac_cv_os_cray+set}" = set; then
44676 echo $ECHO_N "(cached) $ECHO_C" >&6
44678 cat >conftest.$ac_ext <<_ACEOF
44681 cat confdefs.h >>conftest.$ac_ext
44682 cat >>conftest.$ac_ext <<_ACEOF
44683 /* end confdefs.h. */
44684 #if defined(CRAY) && ! defined(CRAY2)
44691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44692 $EGREP "webecray" >/dev/null 2>&1; then
44700 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
44701 echo "${ECHO_T}$ac_cv_os_cray" >&6
44702 if test $ac_cv_os_cray = yes; then
44703 for ac_func in _getb67 GETB67 getb67; do
44704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44705 echo "$as_me:$LINENO: checking for $ac_func" >&5
44706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44707 if eval "test \"\${$as_ac_var+set}\" = set"; then
44708 echo $ECHO_N "(cached) $ECHO_C" >&6
44710 cat >conftest.$ac_ext <<_ACEOF
44713 cat confdefs.h >>conftest.$ac_ext
44714 cat >>conftest.$ac_ext <<_ACEOF
44715 /* end confdefs.h. */
44716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44718 #define $ac_func innocuous_$ac_func
44720 /* System header to define __stub macros and hopefully few prototypes,
44721 which can conflict with char $ac_func (); below.
44722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44723 <limits.h> exists even on freestanding compilers. */
44726 # include <limits.h>
44728 # include <assert.h>
44733 /* Override any gcc2 internal prototype to avoid an error. */
44738 /* We use char because int might match the return type of a gcc2
44739 builtin and then its argument prototype would still apply. */
44741 /* The GNU C library defines this for functions which it implements
44742 to always fail with ENOSYS. Some functions are actually named
44743 something starting with __ and the normal name is an alias. */
44744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44747 char (*f) () = $ac_func;
44756 return f != $ac_func;
44761 rm -f conftest.$ac_objext conftest$ac_exeext
44762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44763 (eval $ac_link) 2>conftest.er1
44765 grep -v '^ *+' conftest.er1 >conftest.err
44767 cat conftest.err >&5
44768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44769 (exit $ac_status); } &&
44770 { ac_try='test -z "$ac_c_werror_flag"
44771 || test ! -s conftest.err'
44772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44773 (eval $ac_try) 2>&5
44775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44776 (exit $ac_status); }; } &&
44777 { ac_try='test -s conftest$ac_exeext'
44778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44779 (eval $ac_try) 2>&5
44781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44782 (exit $ac_status); }; }; then
44783 eval "$as_ac_var=yes"
44785 echo "$as_me: failed program was:" >&5
44786 sed 's/^/| /' conftest.$ac_ext >&5
44788 eval "$as_ac_var=no"
44790 rm -f conftest.err conftest.$ac_objext \
44791 conftest$ac_exeext conftest.$ac_ext
44793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44794 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44795 if test `eval echo '${'$as_ac_var'}'` = yes; then
44797 cat >>confdefs.h <<_ACEOF
44798 #define CRAY_STACKSEG_END $ac_func
44807 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
44808 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
44809 if test "${ac_cv_c_stack_direction+set}" = set; then
44810 echo $ECHO_N "(cached) $ECHO_C" >&6
44812 if test "$cross_compiling" = yes; then
44813 ac_cv_c_stack_direction=0
44815 cat >conftest.$ac_ext <<_ACEOF
44818 cat confdefs.h >>conftest.$ac_ext
44819 cat >>conftest.$ac_ext <<_ACEOF
44820 /* end confdefs.h. */
44822 find_stack_direction ()
44824 static char *addr = 0;
44829 return find_stack_direction ();
44832 return (&dummy > addr) ? 1 : -1;
44838 exit (find_stack_direction () < 0);
44841 rm -f conftest$ac_exeext
44842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44843 (eval $ac_link) 2>&5
44845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44848 (eval $ac_try) 2>&5
44850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44851 (exit $ac_status); }; }; then
44852 ac_cv_c_stack_direction=1
44854 echo "$as_me: program exited with status $ac_status" >&5
44855 echo "$as_me: failed program was:" >&5
44856 sed 's/^/| /' conftest.$ac_ext >&5
44858 ( exit $ac_status )
44859 ac_cv_c_stack_direction=-1
44861 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44864 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
44865 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
44867 cat >>confdefs.h <<_ACEOF
44868 #define STACK_DIRECTION $ac_cv_c_stack_direction
44875 for ac_func in atexit
44877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44878 echo "$as_me:$LINENO: checking for $ac_func" >&5
44879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44880 if eval "test \"\${$as_ac_var+set}\" = set"; then
44881 echo $ECHO_N "(cached) $ECHO_C" >&6
44883 cat >conftest.$ac_ext <<_ACEOF
44886 cat confdefs.h >>conftest.$ac_ext
44887 cat >>conftest.$ac_ext <<_ACEOF
44888 /* end confdefs.h. */
44889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44891 #define $ac_func innocuous_$ac_func
44893 /* System header to define __stub macros and hopefully few prototypes,
44894 which can conflict with char $ac_func (); below.
44895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44896 <limits.h> exists even on freestanding compilers. */
44899 # include <limits.h>
44901 # include <assert.h>
44906 /* Override any gcc2 internal prototype to avoid an error. */
44911 /* We use char because int might match the return type of a gcc2
44912 builtin and then its argument prototype would still apply. */
44914 /* The GNU C library defines this for functions which it implements
44915 to always fail with ENOSYS. Some functions are actually named
44916 something starting with __ and the normal name is an alias. */
44917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44920 char (*f) () = $ac_func;
44929 return f != $ac_func;
44934 rm -f conftest.$ac_objext conftest$ac_exeext
44935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44936 (eval $ac_link) 2>conftest.er1
44938 grep -v '^ *+' conftest.er1 >conftest.err
44940 cat conftest.err >&5
44941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44942 (exit $ac_status); } &&
44943 { ac_try='test -z "$ac_c_werror_flag"
44944 || test ! -s conftest.err'
44945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44946 (eval $ac_try) 2>&5
44948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44949 (exit $ac_status); }; } &&
44950 { ac_try='test -s conftest$ac_exeext'
44951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44952 (eval $ac_try) 2>&5
44954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44955 (exit $ac_status); }; }; then
44956 eval "$as_ac_var=yes"
44958 echo "$as_me: failed program was:" >&5
44959 sed 's/^/| /' conftest.$ac_ext >&5
44961 eval "$as_ac_var=no"
44963 rm -f conftest.err conftest.$ac_objext \
44964 conftest$ac_exeext conftest.$ac_ext
44966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44967 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44968 if test `eval echo '${'$as_ac_var'}'` = yes; then
44969 cat >>confdefs.h <<_ACEOF
44970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44979 for ac_func in atof
44981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44982 echo "$as_me:$LINENO: checking for $ac_func" >&5
44983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44984 if eval "test \"\${$as_ac_var+set}\" = set"; then
44985 echo $ECHO_N "(cached) $ECHO_C" >&6
44987 cat >conftest.$ac_ext <<_ACEOF
44990 cat confdefs.h >>conftest.$ac_ext
44991 cat >>conftest.$ac_ext <<_ACEOF
44992 /* end confdefs.h. */
44993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44995 #define $ac_func innocuous_$ac_func
44997 /* System header to define __stub macros and hopefully few prototypes,
44998 which can conflict with char $ac_func (); below.
44999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45000 <limits.h> exists even on freestanding compilers. */
45003 # include <limits.h>
45005 # include <assert.h>
45010 /* Override any gcc2 internal prototype to avoid an error. */
45015 /* We use char because int might match the return type of a gcc2
45016 builtin and then its argument prototype would still apply. */
45018 /* The GNU C library defines this for functions which it implements
45019 to always fail with ENOSYS. Some functions are actually named
45020 something starting with __ and the normal name is an alias. */
45021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45024 char (*f) () = $ac_func;
45033 return f != $ac_func;
45038 rm -f conftest.$ac_objext conftest$ac_exeext
45039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45040 (eval $ac_link) 2>conftest.er1
45042 grep -v '^ *+' conftest.er1 >conftest.err
45044 cat conftest.err >&5
45045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45046 (exit $ac_status); } &&
45047 { ac_try='test -z "$ac_c_werror_flag"
45048 || test ! -s conftest.err'
45049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45050 (eval $ac_try) 2>&5
45052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45053 (exit $ac_status); }; } &&
45054 { ac_try='test -s conftest$ac_exeext'
45055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45056 (eval $ac_try) 2>&5
45058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45059 (exit $ac_status); }; }; then
45060 eval "$as_ac_var=yes"
45062 echo "$as_me: failed program was:" >&5
45063 sed 's/^/| /' conftest.$ac_ext >&5
45065 eval "$as_ac_var=no"
45067 rm -f conftest.err conftest.$ac_objext \
45068 conftest$ac_exeext conftest.$ac_ext
45070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45071 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45072 if test `eval echo '${'$as_ac_var'}'` = yes; then
45073 cat >>confdefs.h <<_ACEOF
45074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45080 if test "${ice_have_atof}" = yes; then
45081 echo "$as_me:$LINENO: checking for atof declaration in stdlib.h" >&5
45082 echo $ECHO_N "checking for atof declaration in stdlib.h... $ECHO_C" >&6
45083 if test "${ice_cv_have_atof_decl+set}" = set; then
45084 echo $ECHO_N "(cached) $ECHO_C" >&6
45087 ice_cv_have_atof_decl=no
45088 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45089 ice_re_word='(^|[^a-zA-Z0-9_])'
45090 for header in stdlib.h; do
45091 # Check for ordinary declaration
45092 cat >conftest.$ac_ext <<_ACEOF
45095 cat confdefs.h >>conftest.$ac_ext
45096 cat >>conftest.$ac_ext <<_ACEOF
45097 /* end confdefs.h. */
45101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45102 $EGREP "${ice_re_word}atof[ ]*\(" >/dev/null 2>&1; then
45103 ice_cv_have_atof_decl=yes
45107 if test "$ice_cv_have_atof_decl" = yes; then
45110 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45111 cat >conftest.$ac_ext <<_ACEOF
45114 cat confdefs.h >>conftest.$ac_ext
45115 cat >>conftest.$ac_ext <<_ACEOF
45116 /* end confdefs.h. */
45120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45121 $EGREP "${ice_re_word}atof[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45122 ice_cv_have_atof_decl=yes
45126 if test "$ice_cv_have_atof_decl" = yes; then
45133 echo "$as_me:$LINENO: result: $ice_cv_have_atof_decl" >&5
45134 echo "${ECHO_T}$ice_cv_have_atof_decl" >&6
45135 if test "$ice_cv_have_atof_decl" = yes; then
45137 cat >>confdefs.h <<_ACEOF
45138 #define HAVE_ATOF_DECL 1
45147 for ac_func in atoi
45149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45150 echo "$as_me:$LINENO: checking for $ac_func" >&5
45151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45152 if eval "test \"\${$as_ac_var+set}\" = set"; then
45153 echo $ECHO_N "(cached) $ECHO_C" >&6
45155 cat >conftest.$ac_ext <<_ACEOF
45158 cat confdefs.h >>conftest.$ac_ext
45159 cat >>conftest.$ac_ext <<_ACEOF
45160 /* end confdefs.h. */
45161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45163 #define $ac_func innocuous_$ac_func
45165 /* System header to define __stub macros and hopefully few prototypes,
45166 which can conflict with char $ac_func (); below.
45167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45168 <limits.h> exists even on freestanding compilers. */
45171 # include <limits.h>
45173 # include <assert.h>
45178 /* Override any gcc2 internal prototype to avoid an error. */
45183 /* We use char because int might match the return type of a gcc2
45184 builtin and then its argument prototype would still apply. */
45186 /* The GNU C library defines this for functions which it implements
45187 to always fail with ENOSYS. Some functions are actually named
45188 something starting with __ and the normal name is an alias. */
45189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45192 char (*f) () = $ac_func;
45201 return f != $ac_func;
45206 rm -f conftest.$ac_objext conftest$ac_exeext
45207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45208 (eval $ac_link) 2>conftest.er1
45210 grep -v '^ *+' conftest.er1 >conftest.err
45212 cat conftest.err >&5
45213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45214 (exit $ac_status); } &&
45215 { ac_try='test -z "$ac_c_werror_flag"
45216 || test ! -s conftest.err'
45217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45218 (eval $ac_try) 2>&5
45220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45221 (exit $ac_status); }; } &&
45222 { ac_try='test -s conftest$ac_exeext'
45223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45224 (eval $ac_try) 2>&5
45226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45227 (exit $ac_status); }; }; then
45228 eval "$as_ac_var=yes"
45230 echo "$as_me: failed program was:" >&5
45231 sed 's/^/| /' conftest.$ac_ext >&5
45233 eval "$as_ac_var=no"
45235 rm -f conftest.err conftest.$ac_objext \
45236 conftest$ac_exeext conftest.$ac_ext
45238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45240 if test `eval echo '${'$as_ac_var'}'` = yes; then
45241 cat >>confdefs.h <<_ACEOF
45242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45248 if test "${ice_have_atoi}" = yes; then
45249 echo "$as_me:$LINENO: checking for atoi declaration in stdlib.h" >&5
45250 echo $ECHO_N "checking for atoi declaration in stdlib.h... $ECHO_C" >&6
45251 if test "${ice_cv_have_atoi_decl+set}" = set; then
45252 echo $ECHO_N "(cached) $ECHO_C" >&6
45255 ice_cv_have_atoi_decl=no
45256 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45257 ice_re_word='(^|[^a-zA-Z0-9_])'
45258 for header in stdlib.h; do
45259 # Check for ordinary declaration
45260 cat >conftest.$ac_ext <<_ACEOF
45263 cat confdefs.h >>conftest.$ac_ext
45264 cat >>conftest.$ac_ext <<_ACEOF
45265 /* end confdefs.h. */
45269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45270 $EGREP "${ice_re_word}atoi[ ]*\(" >/dev/null 2>&1; then
45271 ice_cv_have_atoi_decl=yes
45275 if test "$ice_cv_have_atoi_decl" = yes; then
45278 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45279 cat >conftest.$ac_ext <<_ACEOF
45282 cat confdefs.h >>conftest.$ac_ext
45283 cat >>conftest.$ac_ext <<_ACEOF
45284 /* end confdefs.h. */
45288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45289 $EGREP "${ice_re_word}atoi[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45290 ice_cv_have_atoi_decl=yes
45294 if test "$ice_cv_have_atoi_decl" = yes; then
45301 echo "$as_me:$LINENO: result: $ice_cv_have_atoi_decl" >&5
45302 echo "${ECHO_T}$ice_cv_have_atoi_decl" >&6
45303 if test "$ice_cv_have_atoi_decl" = yes; then
45305 cat >>confdefs.h <<_ACEOF
45306 #define HAVE_ATOI_DECL 1
45315 for ac_func in atol
45317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45318 echo "$as_me:$LINENO: checking for $ac_func" >&5
45319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45320 if eval "test \"\${$as_ac_var+set}\" = set"; then
45321 echo $ECHO_N "(cached) $ECHO_C" >&6
45323 cat >conftest.$ac_ext <<_ACEOF
45326 cat confdefs.h >>conftest.$ac_ext
45327 cat >>conftest.$ac_ext <<_ACEOF
45328 /* end confdefs.h. */
45329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45331 #define $ac_func innocuous_$ac_func
45333 /* System header to define __stub macros and hopefully few prototypes,
45334 which can conflict with char $ac_func (); below.
45335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45336 <limits.h> exists even on freestanding compilers. */
45339 # include <limits.h>
45341 # include <assert.h>
45346 /* Override any gcc2 internal prototype to avoid an error. */
45351 /* We use char because int might match the return type of a gcc2
45352 builtin and then its argument prototype would still apply. */
45354 /* The GNU C library defines this for functions which it implements
45355 to always fail with ENOSYS. Some functions are actually named
45356 something starting with __ and the normal name is an alias. */
45357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45360 char (*f) () = $ac_func;
45369 return f != $ac_func;
45374 rm -f conftest.$ac_objext conftest$ac_exeext
45375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45376 (eval $ac_link) 2>conftest.er1
45378 grep -v '^ *+' conftest.er1 >conftest.err
45380 cat conftest.err >&5
45381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45382 (exit $ac_status); } &&
45383 { ac_try='test -z "$ac_c_werror_flag"
45384 || test ! -s conftest.err'
45385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45386 (eval $ac_try) 2>&5
45388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45389 (exit $ac_status); }; } &&
45390 { ac_try='test -s conftest$ac_exeext'
45391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45392 (eval $ac_try) 2>&5
45394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45395 (exit $ac_status); }; }; then
45396 eval "$as_ac_var=yes"
45398 echo "$as_me: failed program was:" >&5
45399 sed 's/^/| /' conftest.$ac_ext >&5
45401 eval "$as_ac_var=no"
45403 rm -f conftest.err conftest.$ac_objext \
45404 conftest$ac_exeext conftest.$ac_ext
45406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45408 if test `eval echo '${'$as_ac_var'}'` = yes; then
45409 cat >>confdefs.h <<_ACEOF
45410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45416 if test "${ice_have_atol}" = yes; then
45417 echo "$as_me:$LINENO: checking for atol declaration in stdlib.h" >&5
45418 echo $ECHO_N "checking for atol declaration in stdlib.h... $ECHO_C" >&6
45419 if test "${ice_cv_have_atol_decl+set}" = set; then
45420 echo $ECHO_N "(cached) $ECHO_C" >&6
45423 ice_cv_have_atol_decl=no
45424 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45425 ice_re_word='(^|[^a-zA-Z0-9_])'
45426 for header in stdlib.h; do
45427 # Check for ordinary declaration
45428 cat >conftest.$ac_ext <<_ACEOF
45431 cat confdefs.h >>conftest.$ac_ext
45432 cat >>conftest.$ac_ext <<_ACEOF
45433 /* end confdefs.h. */
45437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45438 $EGREP "${ice_re_word}atol[ ]*\(" >/dev/null 2>&1; then
45439 ice_cv_have_atol_decl=yes
45443 if test "$ice_cv_have_atol_decl" = yes; then
45446 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45447 cat >conftest.$ac_ext <<_ACEOF
45450 cat confdefs.h >>conftest.$ac_ext
45451 cat >>conftest.$ac_ext <<_ACEOF
45452 /* end confdefs.h. */
45456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45457 $EGREP "${ice_re_word}atol[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45458 ice_cv_have_atol_decl=yes
45462 if test "$ice_cv_have_atol_decl" = yes; then
45469 echo "$as_me:$LINENO: result: $ice_cv_have_atol_decl" >&5
45470 echo "${ECHO_T}$ice_cv_have_atol_decl" >&6
45471 if test "$ice_cv_have_atol_decl" = yes; then
45473 cat >>confdefs.h <<_ACEOF
45474 #define HAVE_ATOL_DECL 1
45483 for ac_func in atoll
45485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45486 echo "$as_me:$LINENO: checking for $ac_func" >&5
45487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45488 if eval "test \"\${$as_ac_var+set}\" = set"; then
45489 echo $ECHO_N "(cached) $ECHO_C" >&6
45491 cat >conftest.$ac_ext <<_ACEOF
45494 cat confdefs.h >>conftest.$ac_ext
45495 cat >>conftest.$ac_ext <<_ACEOF
45496 /* end confdefs.h. */
45497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45499 #define $ac_func innocuous_$ac_func
45501 /* System header to define __stub macros and hopefully few prototypes,
45502 which can conflict with char $ac_func (); below.
45503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45504 <limits.h> exists even on freestanding compilers. */
45507 # include <limits.h>
45509 # include <assert.h>
45514 /* Override any gcc2 internal prototype to avoid an error. */
45519 /* We use char because int might match the return type of a gcc2
45520 builtin and then its argument prototype would still apply. */
45522 /* The GNU C library defines this for functions which it implements
45523 to always fail with ENOSYS. Some functions are actually named
45524 something starting with __ and the normal name is an alias. */
45525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45528 char (*f) () = $ac_func;
45537 return f != $ac_func;
45542 rm -f conftest.$ac_objext conftest$ac_exeext
45543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45544 (eval $ac_link) 2>conftest.er1
45546 grep -v '^ *+' conftest.er1 >conftest.err
45548 cat conftest.err >&5
45549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45550 (exit $ac_status); } &&
45551 { ac_try='test -z "$ac_c_werror_flag"
45552 || test ! -s conftest.err'
45553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45554 (eval $ac_try) 2>&5
45556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45557 (exit $ac_status); }; } &&
45558 { ac_try='test -s conftest$ac_exeext'
45559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45560 (eval $ac_try) 2>&5
45562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45563 (exit $ac_status); }; }; then
45564 eval "$as_ac_var=yes"
45566 echo "$as_me: failed program was:" >&5
45567 sed 's/^/| /' conftest.$ac_ext >&5
45569 eval "$as_ac_var=no"
45571 rm -f conftest.err conftest.$ac_objext \
45572 conftest$ac_exeext conftest.$ac_ext
45574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45576 if test `eval echo '${'$as_ac_var'}'` = yes; then
45577 cat >>confdefs.h <<_ACEOF
45578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45584 if test "${ice_have_atoll}" = yes; then
45585 echo "$as_me:$LINENO: checking for atoll declaration in stdlib.h" >&5
45586 echo $ECHO_N "checking for atoll declaration in stdlib.h... $ECHO_C" >&6
45587 if test "${ice_cv_have_atoll_decl+set}" = set; then
45588 echo $ECHO_N "(cached) $ECHO_C" >&6
45591 ice_cv_have_atoll_decl=no
45592 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45593 ice_re_word='(^|[^a-zA-Z0-9_])'
45594 for header in stdlib.h; do
45595 # Check for ordinary declaration
45596 cat >conftest.$ac_ext <<_ACEOF
45599 cat confdefs.h >>conftest.$ac_ext
45600 cat >>conftest.$ac_ext <<_ACEOF
45601 /* end confdefs.h. */
45605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45606 $EGREP "${ice_re_word}atoll[ ]*\(" >/dev/null 2>&1; then
45607 ice_cv_have_atoll_decl=yes
45611 if test "$ice_cv_have_atoll_decl" = yes; then
45614 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45615 cat >conftest.$ac_ext <<_ACEOF
45618 cat confdefs.h >>conftest.$ac_ext
45619 cat >>conftest.$ac_ext <<_ACEOF
45620 /* end confdefs.h. */
45624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45625 $EGREP "${ice_re_word}atoll[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45626 ice_cv_have_atoll_decl=yes
45630 if test "$ice_cv_have_atoll_decl" = yes; then
45637 echo "$as_me:$LINENO: result: $ice_cv_have_atoll_decl" >&5
45638 echo "${ECHO_T}$ice_cv_have_atoll_decl" >&6
45639 if test "$ice_cv_have_atoll_decl" = yes; then
45641 cat >>confdefs.h <<_ACEOF
45642 #define HAVE_ATOLL_DECL 1
45651 for ac_func in strtol
45653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45654 echo "$as_me:$LINENO: checking for $ac_func" >&5
45655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45656 if eval "test \"\${$as_ac_var+set}\" = set"; then
45657 echo $ECHO_N "(cached) $ECHO_C" >&6
45659 cat >conftest.$ac_ext <<_ACEOF
45662 cat confdefs.h >>conftest.$ac_ext
45663 cat >>conftest.$ac_ext <<_ACEOF
45664 /* end confdefs.h. */
45665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45667 #define $ac_func innocuous_$ac_func
45669 /* System header to define __stub macros and hopefully few prototypes,
45670 which can conflict with char $ac_func (); below.
45671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45672 <limits.h> exists even on freestanding compilers. */
45675 # include <limits.h>
45677 # include <assert.h>
45682 /* Override any gcc2 internal prototype to avoid an error. */
45687 /* We use char because int might match the return type of a gcc2
45688 builtin and then its argument prototype would still apply. */
45690 /* The GNU C library defines this for functions which it implements
45691 to always fail with ENOSYS. Some functions are actually named
45692 something starting with __ and the normal name is an alias. */
45693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45696 char (*f) () = $ac_func;
45705 return f != $ac_func;
45710 rm -f conftest.$ac_objext conftest$ac_exeext
45711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45712 (eval $ac_link) 2>conftest.er1
45714 grep -v '^ *+' conftest.er1 >conftest.err
45716 cat conftest.err >&5
45717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45718 (exit $ac_status); } &&
45719 { ac_try='test -z "$ac_c_werror_flag"
45720 || test ! -s conftest.err'
45721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45722 (eval $ac_try) 2>&5
45724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45725 (exit $ac_status); }; } &&
45726 { ac_try='test -s conftest$ac_exeext'
45727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45728 (eval $ac_try) 2>&5
45730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45731 (exit $ac_status); }; }; then
45732 eval "$as_ac_var=yes"
45734 echo "$as_me: failed program was:" >&5
45735 sed 's/^/| /' conftest.$ac_ext >&5
45737 eval "$as_ac_var=no"
45739 rm -f conftest.err conftest.$ac_objext \
45740 conftest$ac_exeext conftest.$ac_ext
45742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45743 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45744 if test `eval echo '${'$as_ac_var'}'` = yes; then
45745 cat >>confdefs.h <<_ACEOF
45746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45748 ice_have_strtol=yes
45752 if test "${ice_have_strtol}" = yes; then
45753 echo "$as_me:$LINENO: checking for strtol declaration in stdlib.h" >&5
45754 echo $ECHO_N "checking for strtol declaration in stdlib.h... $ECHO_C" >&6
45755 if test "${ice_cv_have_strtol_decl+set}" = set; then
45756 echo $ECHO_N "(cached) $ECHO_C" >&6
45759 ice_cv_have_strtol_decl=no
45760 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45761 ice_re_word='(^|[^a-zA-Z0-9_])'
45762 for header in stdlib.h; do
45763 # Check for ordinary declaration
45764 cat >conftest.$ac_ext <<_ACEOF
45767 cat confdefs.h >>conftest.$ac_ext
45768 cat >>conftest.$ac_ext <<_ACEOF
45769 /* end confdefs.h. */
45773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45774 $EGREP "${ice_re_word}strtol[ ]*\(" >/dev/null 2>&1; then
45775 ice_cv_have_strtol_decl=yes
45779 if test "$ice_cv_have_strtol_decl" = yes; then
45782 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45783 cat >conftest.$ac_ext <<_ACEOF
45786 cat confdefs.h >>conftest.$ac_ext
45787 cat >>conftest.$ac_ext <<_ACEOF
45788 /* end confdefs.h. */
45792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45793 $EGREP "${ice_re_word}strtol[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45794 ice_cv_have_strtol_decl=yes
45798 if test "$ice_cv_have_strtol_decl" = yes; then
45805 echo "$as_me:$LINENO: result: $ice_cv_have_strtol_decl" >&5
45806 echo "${ECHO_T}$ice_cv_have_strtol_decl" >&6
45807 if test "$ice_cv_have_strtol_decl" = yes; then
45809 cat >>confdefs.h <<_ACEOF
45810 #define HAVE_STRTOL_DECL 1
45817 ice_have_strtoll=no
45819 for ac_func in strtoll
45821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45822 echo "$as_me:$LINENO: checking for $ac_func" >&5
45823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45824 if eval "test \"\${$as_ac_var+set}\" = set"; then
45825 echo $ECHO_N "(cached) $ECHO_C" >&6
45827 cat >conftest.$ac_ext <<_ACEOF
45830 cat confdefs.h >>conftest.$ac_ext
45831 cat >>conftest.$ac_ext <<_ACEOF
45832 /* end confdefs.h. */
45833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45835 #define $ac_func innocuous_$ac_func
45837 /* System header to define __stub macros and hopefully few prototypes,
45838 which can conflict with char $ac_func (); below.
45839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45840 <limits.h> exists even on freestanding compilers. */
45843 # include <limits.h>
45845 # include <assert.h>
45850 /* Override any gcc2 internal prototype to avoid an error. */
45855 /* We use char because int might match the return type of a gcc2
45856 builtin and then its argument prototype would still apply. */
45858 /* The GNU C library defines this for functions which it implements
45859 to always fail with ENOSYS. Some functions are actually named
45860 something starting with __ and the normal name is an alias. */
45861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45864 char (*f) () = $ac_func;
45873 return f != $ac_func;
45878 rm -f conftest.$ac_objext conftest$ac_exeext
45879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45880 (eval $ac_link) 2>conftest.er1
45882 grep -v '^ *+' conftest.er1 >conftest.err
45884 cat conftest.err >&5
45885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45886 (exit $ac_status); } &&
45887 { ac_try='test -z "$ac_c_werror_flag"
45888 || test ! -s conftest.err'
45889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45890 (eval $ac_try) 2>&5
45892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45893 (exit $ac_status); }; } &&
45894 { ac_try='test -s conftest$ac_exeext'
45895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45896 (eval $ac_try) 2>&5
45898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45899 (exit $ac_status); }; }; then
45900 eval "$as_ac_var=yes"
45902 echo "$as_me: failed program was:" >&5
45903 sed 's/^/| /' conftest.$ac_ext >&5
45905 eval "$as_ac_var=no"
45907 rm -f conftest.err conftest.$ac_objext \
45908 conftest$ac_exeext conftest.$ac_ext
45910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45911 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45912 if test `eval echo '${'$as_ac_var'}'` = yes; then
45913 cat >>confdefs.h <<_ACEOF
45914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45916 ice_have_strtoll=yes
45920 if test "${ice_have_strtoll}" = yes; then
45921 echo "$as_me:$LINENO: checking for strtoll declaration in stdlib.h" >&5
45922 echo $ECHO_N "checking for strtoll declaration in stdlib.h... $ECHO_C" >&6
45923 if test "${ice_cv_have_strtoll_decl+set}" = set; then
45924 echo $ECHO_N "(cached) $ECHO_C" >&6
45927 ice_cv_have_strtoll_decl=no
45928 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45929 ice_re_word='(^|[^a-zA-Z0-9_])'
45930 for header in stdlib.h; do
45931 # Check for ordinary declaration
45932 cat >conftest.$ac_ext <<_ACEOF
45935 cat confdefs.h >>conftest.$ac_ext
45936 cat >>conftest.$ac_ext <<_ACEOF
45937 /* end confdefs.h. */
45941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45942 $EGREP "${ice_re_word}strtoll[ ]*\(" >/dev/null 2>&1; then
45943 ice_cv_have_strtoll_decl=yes
45947 if test "$ice_cv_have_strtoll_decl" = yes; then
45950 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45951 cat >conftest.$ac_ext <<_ACEOF
45954 cat confdefs.h >>conftest.$ac_ext
45955 cat >>conftest.$ac_ext <<_ACEOF
45956 /* end confdefs.h. */
45960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45961 $EGREP "${ice_re_word}strtoll[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45962 ice_cv_have_strtoll_decl=yes
45966 if test "$ice_cv_have_strtoll_decl" = yes; then
45973 echo "$as_me:$LINENO: result: $ice_cv_have_strtoll_decl" >&5
45974 echo "${ECHO_T}$ice_cv_have_strtoll_decl" >&6
45975 if test "$ice_cv_have_strtoll_decl" = yes; then
45977 cat >>confdefs.h <<_ACEOF
45978 #define HAVE_STRTOLL_DECL 1
45985 for ac_func in basename
45987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45988 echo "$as_me:$LINENO: checking for $ac_func" >&5
45989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45990 if eval "test \"\${$as_ac_var+set}\" = set"; then
45991 echo $ECHO_N "(cached) $ECHO_C" >&6
45993 cat >conftest.$ac_ext <<_ACEOF
45996 cat confdefs.h >>conftest.$ac_ext
45997 cat >>conftest.$ac_ext <<_ACEOF
45998 /* end confdefs.h. */
45999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46001 #define $ac_func innocuous_$ac_func
46003 /* System header to define __stub macros and hopefully few prototypes,
46004 which can conflict with char $ac_func (); below.
46005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46006 <limits.h> exists even on freestanding compilers. */
46009 # include <limits.h>
46011 # include <assert.h>
46016 /* Override any gcc2 internal prototype to avoid an error. */
46021 /* We use char because int might match the return type of a gcc2
46022 builtin and then its argument prototype would still apply. */
46024 /* The GNU C library defines this for functions which it implements
46025 to always fail with ENOSYS. Some functions are actually named
46026 something starting with __ and the normal name is an alias. */
46027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46030 char (*f) () = $ac_func;
46039 return f != $ac_func;
46044 rm -f conftest.$ac_objext conftest$ac_exeext
46045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46046 (eval $ac_link) 2>conftest.er1
46048 grep -v '^ *+' conftest.er1 >conftest.err
46050 cat conftest.err >&5
46051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46052 (exit $ac_status); } &&
46053 { ac_try='test -z "$ac_c_werror_flag"
46054 || test ! -s conftest.err'
46055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46056 (eval $ac_try) 2>&5
46058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46059 (exit $ac_status); }; } &&
46060 { ac_try='test -s conftest$ac_exeext'
46061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46062 (eval $ac_try) 2>&5
46064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46065 (exit $ac_status); }; }; then
46066 eval "$as_ac_var=yes"
46068 echo "$as_me: failed program was:" >&5
46069 sed 's/^/| /' conftest.$ac_ext >&5
46071 eval "$as_ac_var=no"
46073 rm -f conftest.err conftest.$ac_objext \
46074 conftest$ac_exeext conftest.$ac_ext
46076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46077 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46078 if test `eval echo '${'$as_ac_var'}'` = yes; then
46079 cat >>confdefs.h <<_ACEOF
46080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46089 for ac_func in bind
46091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46092 echo "$as_me:$LINENO: checking for $ac_func" >&5
46093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46094 if eval "test \"\${$as_ac_var+set}\" = set"; then
46095 echo $ECHO_N "(cached) $ECHO_C" >&6
46097 cat >conftest.$ac_ext <<_ACEOF
46100 cat confdefs.h >>conftest.$ac_ext
46101 cat >>conftest.$ac_ext <<_ACEOF
46102 /* end confdefs.h. */
46103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46105 #define $ac_func innocuous_$ac_func
46107 /* System header to define __stub macros and hopefully few prototypes,
46108 which can conflict with char $ac_func (); below.
46109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46110 <limits.h> exists even on freestanding compilers. */
46113 # include <limits.h>
46115 # include <assert.h>
46120 /* Override any gcc2 internal prototype to avoid an error. */
46125 /* We use char because int might match the return type of a gcc2
46126 builtin and then its argument prototype would still apply. */
46128 /* The GNU C library defines this for functions which it implements
46129 to always fail with ENOSYS. Some functions are actually named
46130 something starting with __ and the normal name is an alias. */
46131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46134 char (*f) () = $ac_func;
46143 return f != $ac_func;
46148 rm -f conftest.$ac_objext conftest$ac_exeext
46149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46150 (eval $ac_link) 2>conftest.er1
46152 grep -v '^ *+' conftest.er1 >conftest.err
46154 cat conftest.err >&5
46155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46156 (exit $ac_status); } &&
46157 { ac_try='test -z "$ac_c_werror_flag"
46158 || test ! -s conftest.err'
46159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46160 (eval $ac_try) 2>&5
46162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46163 (exit $ac_status); }; } &&
46164 { ac_try='test -s conftest$ac_exeext'
46165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46166 (eval $ac_try) 2>&5
46168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46169 (exit $ac_status); }; }; then
46170 eval "$as_ac_var=yes"
46172 echo "$as_me: failed program was:" >&5
46173 sed 's/^/| /' conftest.$ac_ext >&5
46175 eval "$as_ac_var=no"
46177 rm -f conftest.err conftest.$ac_objext \
46178 conftest$ac_exeext conftest.$ac_ext
46180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46181 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46182 if test `eval echo '${'$as_ac_var'}'` = yes; then
46183 cat >>confdefs.h <<_ACEOF
46184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46190 if test "${ice_have_bind}" = yes; then
46191 echo "$as_me:$LINENO: checking for bind declaration in sys/types.h sys/socket.h" >&5
46192 echo $ECHO_N "checking for bind declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
46193 if test "${ice_cv_have_bind_decl+set}" = set; then
46194 echo $ECHO_N "(cached) $ECHO_C" >&6
46197 ice_cv_have_bind_decl=no
46198 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46199 ice_re_word='(^|[^a-zA-Z0-9_])'
46200 for header in sys/types.h sys/socket.h; do
46201 # Check for ordinary declaration
46202 cat >conftest.$ac_ext <<_ACEOF
46205 cat confdefs.h >>conftest.$ac_ext
46206 cat >>conftest.$ac_ext <<_ACEOF
46207 /* end confdefs.h. */
46211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46212 $EGREP "${ice_re_word}bind[ ]*\(" >/dev/null 2>&1; then
46213 ice_cv_have_bind_decl=yes
46217 if test "$ice_cv_have_bind_decl" = yes; then
46220 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46221 cat >conftest.$ac_ext <<_ACEOF
46224 cat confdefs.h >>conftest.$ac_ext
46225 cat >>conftest.$ac_ext <<_ACEOF
46226 /* end confdefs.h. */
46230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46231 $EGREP "${ice_re_word}bind[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46232 ice_cv_have_bind_decl=yes
46236 if test "$ice_cv_have_bind_decl" = yes; then
46243 echo "$as_me:$LINENO: result: $ice_cv_have_bind_decl" >&5
46244 echo "${ECHO_T}$ice_cv_have_bind_decl" >&6
46245 if test "$ice_cv_have_bind_decl" = yes; then
46247 cat >>confdefs.h <<_ACEOF
46248 #define HAVE_BIND_DECL 1
46257 for ac_func in bcopy
46259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46260 echo "$as_me:$LINENO: checking for $ac_func" >&5
46261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46262 if eval "test \"\${$as_ac_var+set}\" = set"; then
46263 echo $ECHO_N "(cached) $ECHO_C" >&6
46265 cat >conftest.$ac_ext <<_ACEOF
46268 cat confdefs.h >>conftest.$ac_ext
46269 cat >>conftest.$ac_ext <<_ACEOF
46270 /* end confdefs.h. */
46271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46273 #define $ac_func innocuous_$ac_func
46275 /* System header to define __stub macros and hopefully few prototypes,
46276 which can conflict with char $ac_func (); below.
46277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46278 <limits.h> exists even on freestanding compilers. */
46281 # include <limits.h>
46283 # include <assert.h>
46288 /* Override any gcc2 internal prototype to avoid an error. */
46293 /* We use char because int might match the return type of a gcc2
46294 builtin and then its argument prototype would still apply. */
46296 /* The GNU C library defines this for functions which it implements
46297 to always fail with ENOSYS. Some functions are actually named
46298 something starting with __ and the normal name is an alias. */
46299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46302 char (*f) () = $ac_func;
46311 return f != $ac_func;
46316 rm -f conftest.$ac_objext conftest$ac_exeext
46317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46318 (eval $ac_link) 2>conftest.er1
46320 grep -v '^ *+' conftest.er1 >conftest.err
46322 cat conftest.err >&5
46323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46324 (exit $ac_status); } &&
46325 { ac_try='test -z "$ac_c_werror_flag"
46326 || test ! -s conftest.err'
46327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46328 (eval $ac_try) 2>&5
46330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46331 (exit $ac_status); }; } &&
46332 { ac_try='test -s conftest$ac_exeext'
46333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46334 (eval $ac_try) 2>&5
46336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46337 (exit $ac_status); }; }; then
46338 eval "$as_ac_var=yes"
46340 echo "$as_me: failed program was:" >&5
46341 sed 's/^/| /' conftest.$ac_ext >&5
46343 eval "$as_ac_var=no"
46345 rm -f conftest.err conftest.$ac_objext \
46346 conftest$ac_exeext conftest.$ac_ext
46348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46349 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46350 if test `eval echo '${'$as_ac_var'}'` = yes; then
46351 cat >>confdefs.h <<_ACEOF
46352 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46358 if test "${ice_have_bcopy}" = yes; then
46359 echo "$as_me:$LINENO: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
46360 echo $ECHO_N "checking for bcopy declaration in string.h strings.h stdlib.h... $ECHO_C" >&6
46361 if test "${ice_cv_have_bcopy_decl+set}" = set; then
46362 echo $ECHO_N "(cached) $ECHO_C" >&6
46365 ice_cv_have_bcopy_decl=no
46366 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46367 ice_re_word='(^|[^a-zA-Z0-9_])'
46368 for header in string.h strings.h stdlib.h; do
46369 # Check for ordinary declaration
46370 cat >conftest.$ac_ext <<_ACEOF
46373 cat confdefs.h >>conftest.$ac_ext
46374 cat >>conftest.$ac_ext <<_ACEOF
46375 /* end confdefs.h. */
46379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46380 $EGREP "${ice_re_word}bcopy[ ]*\(" >/dev/null 2>&1; then
46381 ice_cv_have_bcopy_decl=yes
46385 if test "$ice_cv_have_bcopy_decl" = yes; then
46388 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46389 cat >conftest.$ac_ext <<_ACEOF
46392 cat confdefs.h >>conftest.$ac_ext
46393 cat >>conftest.$ac_ext <<_ACEOF
46394 /* end confdefs.h. */
46398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46399 $EGREP "${ice_re_word}bcopy[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46400 ice_cv_have_bcopy_decl=yes
46404 if test "$ice_cv_have_bcopy_decl" = yes; then
46411 echo "$as_me:$LINENO: result: $ice_cv_have_bcopy_decl" >&5
46412 echo "${ECHO_T}$ice_cv_have_bcopy_decl" >&6
46413 if test "$ice_cv_have_bcopy_decl" = yes; then
46415 cat >>confdefs.h <<_ACEOF
46416 #define HAVE_BCOPY_DECL 1
46425 for ac_func in bzero
46427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46428 echo "$as_me:$LINENO: checking for $ac_func" >&5
46429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46430 if eval "test \"\${$as_ac_var+set}\" = set"; then
46431 echo $ECHO_N "(cached) $ECHO_C" >&6
46433 cat >conftest.$ac_ext <<_ACEOF
46436 cat confdefs.h >>conftest.$ac_ext
46437 cat >>conftest.$ac_ext <<_ACEOF
46438 /* end confdefs.h. */
46439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46441 #define $ac_func innocuous_$ac_func
46443 /* System header to define __stub macros and hopefully few prototypes,
46444 which can conflict with char $ac_func (); below.
46445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46446 <limits.h> exists even on freestanding compilers. */
46449 # include <limits.h>
46451 # include <assert.h>
46456 /* Override any gcc2 internal prototype to avoid an error. */
46461 /* We use char because int might match the return type of a gcc2
46462 builtin and then its argument prototype would still apply. */
46464 /* The GNU C library defines this for functions which it implements
46465 to always fail with ENOSYS. Some functions are actually named
46466 something starting with __ and the normal name is an alias. */
46467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46470 char (*f) () = $ac_func;
46479 return f != $ac_func;
46484 rm -f conftest.$ac_objext conftest$ac_exeext
46485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46486 (eval $ac_link) 2>conftest.er1
46488 grep -v '^ *+' conftest.er1 >conftest.err
46490 cat conftest.err >&5
46491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46492 (exit $ac_status); } &&
46493 { ac_try='test -z "$ac_c_werror_flag"
46494 || test ! -s conftest.err'
46495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46496 (eval $ac_try) 2>&5
46498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46499 (exit $ac_status); }; } &&
46500 { ac_try='test -s conftest$ac_exeext'
46501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46502 (eval $ac_try) 2>&5
46504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46505 (exit $ac_status); }; }; then
46506 eval "$as_ac_var=yes"
46508 echo "$as_me: failed program was:" >&5
46509 sed 's/^/| /' conftest.$ac_ext >&5
46511 eval "$as_ac_var=no"
46513 rm -f conftest.err conftest.$ac_objext \
46514 conftest$ac_exeext conftest.$ac_ext
46516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46517 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46518 if test `eval echo '${'$as_ac_var'}'` = yes; then
46519 cat >>confdefs.h <<_ACEOF
46520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46526 if test "${ice_have_bzero}" = yes; then
46527 echo "$as_me:$LINENO: checking for bzero declaration in string.h strings.h stdlib.h" >&5
46528 echo $ECHO_N "checking for bzero declaration in string.h strings.h stdlib.h... $ECHO_C" >&6
46529 if test "${ice_cv_have_bzero_decl+set}" = set; then
46530 echo $ECHO_N "(cached) $ECHO_C" >&6
46533 ice_cv_have_bzero_decl=no
46534 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46535 ice_re_word='(^|[^a-zA-Z0-9_])'
46536 for header in string.h strings.h stdlib.h; do
46537 # Check for ordinary declaration
46538 cat >conftest.$ac_ext <<_ACEOF
46541 cat confdefs.h >>conftest.$ac_ext
46542 cat >>conftest.$ac_ext <<_ACEOF
46543 /* end confdefs.h. */
46547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46548 $EGREP "${ice_re_word}bzero[ ]*\(" >/dev/null 2>&1; then
46549 ice_cv_have_bzero_decl=yes
46553 if test "$ice_cv_have_bzero_decl" = yes; then
46556 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46557 cat >conftest.$ac_ext <<_ACEOF
46560 cat confdefs.h >>conftest.$ac_ext
46561 cat >>conftest.$ac_ext <<_ACEOF
46562 /* end confdefs.h. */
46566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46567 $EGREP "${ice_re_word}bzero[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46568 ice_cv_have_bzero_decl=yes
46572 if test "$ice_cv_have_bzero_decl" = yes; then
46579 echo "$as_me:$LINENO: result: $ice_cv_have_bzero_decl" >&5
46580 echo "${ECHO_T}$ice_cv_have_bzero_decl" >&6
46581 if test "$ice_cv_have_bzero_decl" = yes; then
46583 cat >>confdefs.h <<_ACEOF
46584 #define HAVE_BZERO_DECL 1
46590 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
46591 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
46592 if test "${ac_cv_func_closedir_void+set}" = set; then
46593 echo $ECHO_N "(cached) $ECHO_C" >&6
46595 if test "$cross_compiling" = yes; then
46596 ac_cv_func_closedir_void=yes
46598 cat >conftest.$ac_ext <<_ACEOF
46601 cat confdefs.h >>conftest.$ac_ext
46602 cat >>conftest.$ac_ext <<_ACEOF
46603 /* end confdefs.h. */
46604 $ac_includes_default
46605 #include <$ac_header_dirent>
46606 #ifndef __cplusplus
46613 exit (closedir (opendir (".")) != 0);
46618 rm -f conftest$ac_exeext
46619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46620 (eval $ac_link) 2>&5
46622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46625 (eval $ac_try) 2>&5
46627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46628 (exit $ac_status); }; }; then
46629 ac_cv_func_closedir_void=no
46631 echo "$as_me: program exited with status $ac_status" >&5
46632 echo "$as_me: failed program was:" >&5
46633 sed 's/^/| /' conftest.$ac_ext >&5
46635 ( exit $ac_status )
46636 ac_cv_func_closedir_void=yes
46638 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46641 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
46642 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
46643 if test $ac_cv_func_closedir_void = yes; then
46645 cat >>confdefs.h <<\_ACEOF
46646 #define CLOSEDIR_VOID 1
46652 ice_have_closelog=no
46654 for ac_func in closelog
46656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46657 echo "$as_me:$LINENO: checking for $ac_func" >&5
46658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46659 if eval "test \"\${$as_ac_var+set}\" = set"; then
46660 echo $ECHO_N "(cached) $ECHO_C" >&6
46662 cat >conftest.$ac_ext <<_ACEOF
46665 cat confdefs.h >>conftest.$ac_ext
46666 cat >>conftest.$ac_ext <<_ACEOF
46667 /* end confdefs.h. */
46668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46670 #define $ac_func innocuous_$ac_func
46672 /* System header to define __stub macros and hopefully few prototypes,
46673 which can conflict with char $ac_func (); below.
46674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46675 <limits.h> exists even on freestanding compilers. */
46678 # include <limits.h>
46680 # include <assert.h>
46685 /* Override any gcc2 internal prototype to avoid an error. */
46690 /* We use char because int might match the return type of a gcc2
46691 builtin and then its argument prototype would still apply. */
46693 /* The GNU C library defines this for functions which it implements
46694 to always fail with ENOSYS. Some functions are actually named
46695 something starting with __ and the normal name is an alias. */
46696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46699 char (*f) () = $ac_func;
46708 return f != $ac_func;
46713 rm -f conftest.$ac_objext conftest$ac_exeext
46714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46715 (eval $ac_link) 2>conftest.er1
46717 grep -v '^ *+' conftest.er1 >conftest.err
46719 cat conftest.err >&5
46720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46721 (exit $ac_status); } &&
46722 { ac_try='test -z "$ac_c_werror_flag"
46723 || test ! -s conftest.err'
46724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46725 (eval $ac_try) 2>&5
46727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46728 (exit $ac_status); }; } &&
46729 { ac_try='test -s conftest$ac_exeext'
46730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46731 (eval $ac_try) 2>&5
46733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46734 (exit $ac_status); }; }; then
46735 eval "$as_ac_var=yes"
46737 echo "$as_me: failed program was:" >&5
46738 sed 's/^/| /' conftest.$ac_ext >&5
46740 eval "$as_ac_var=no"
46742 rm -f conftest.err conftest.$ac_objext \
46743 conftest$ac_exeext conftest.$ac_ext
46745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46746 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46747 if test `eval echo '${'$as_ac_var'}'` = yes; then
46748 cat >>confdefs.h <<_ACEOF
46749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46751 ice_have_closelog=yes
46755 if test "${ice_have_closelog}" = yes; then
46756 echo "$as_me:$LINENO: checking for closelog declaration in syslog.h" >&5
46757 echo $ECHO_N "checking for closelog declaration in syslog.h... $ECHO_C" >&6
46758 if test "${ice_cv_have_closelog_decl+set}" = set; then
46759 echo $ECHO_N "(cached) $ECHO_C" >&6
46762 ice_cv_have_closelog_decl=no
46763 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46764 ice_re_word='(^|[^a-zA-Z0-9_])'
46765 for header in syslog.h; do
46766 # Check for ordinary declaration
46767 cat >conftest.$ac_ext <<_ACEOF
46770 cat confdefs.h >>conftest.$ac_ext
46771 cat >>conftest.$ac_ext <<_ACEOF
46772 /* end confdefs.h. */
46776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46777 $EGREP "${ice_re_word}closelog[ ]*\(" >/dev/null 2>&1; then
46778 ice_cv_have_closelog_decl=yes
46782 if test "$ice_cv_have_closelog_decl" = yes; then
46785 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46786 cat >conftest.$ac_ext <<_ACEOF
46789 cat confdefs.h >>conftest.$ac_ext
46790 cat >>conftest.$ac_ext <<_ACEOF
46791 /* end confdefs.h. */
46795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46796 $EGREP "${ice_re_word}closelog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46797 ice_cv_have_closelog_decl=yes
46801 if test "$ice_cv_have_closelog_decl" = yes; then
46808 echo "$as_me:$LINENO: result: $ice_cv_have_closelog_decl" >&5
46809 echo "${ECHO_T}$ice_cv_have_closelog_decl" >&6
46810 if test "$ice_cv_have_closelog_decl" = yes; then
46812 cat >>confdefs.h <<_ACEOF
46813 #define HAVE_CLOSELOG_DECL 1
46820 ice_have_connect=no
46822 for ac_func in connect
46824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46825 echo "$as_me:$LINENO: checking for $ac_func" >&5
46826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46827 if eval "test \"\${$as_ac_var+set}\" = set"; then
46828 echo $ECHO_N "(cached) $ECHO_C" >&6
46830 cat >conftest.$ac_ext <<_ACEOF
46833 cat confdefs.h >>conftest.$ac_ext
46834 cat >>conftest.$ac_ext <<_ACEOF
46835 /* end confdefs.h. */
46836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46838 #define $ac_func innocuous_$ac_func
46840 /* System header to define __stub macros and hopefully few prototypes,
46841 which can conflict with char $ac_func (); below.
46842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46843 <limits.h> exists even on freestanding compilers. */
46846 # include <limits.h>
46848 # include <assert.h>
46853 /* Override any gcc2 internal prototype to avoid an error. */
46858 /* We use char because int might match the return type of a gcc2
46859 builtin and then its argument prototype would still apply. */
46861 /* The GNU C library defines this for functions which it implements
46862 to always fail with ENOSYS. Some functions are actually named
46863 something starting with __ and the normal name is an alias. */
46864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46867 char (*f) () = $ac_func;
46876 return f != $ac_func;
46881 rm -f conftest.$ac_objext conftest$ac_exeext
46882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46883 (eval $ac_link) 2>conftest.er1
46885 grep -v '^ *+' conftest.er1 >conftest.err
46887 cat conftest.err >&5
46888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46889 (exit $ac_status); } &&
46890 { ac_try='test -z "$ac_c_werror_flag"
46891 || test ! -s conftest.err'
46892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46893 (eval $ac_try) 2>&5
46895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46896 (exit $ac_status); }; } &&
46897 { ac_try='test -s conftest$ac_exeext'
46898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46899 (eval $ac_try) 2>&5
46901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46902 (exit $ac_status); }; }; then
46903 eval "$as_ac_var=yes"
46905 echo "$as_me: failed program was:" >&5
46906 sed 's/^/| /' conftest.$ac_ext >&5
46908 eval "$as_ac_var=no"
46910 rm -f conftest.err conftest.$ac_objext \
46911 conftest$ac_exeext conftest.$ac_ext
46913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46914 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46915 if test `eval echo '${'$as_ac_var'}'` = yes; then
46916 cat >>confdefs.h <<_ACEOF
46917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46919 ice_have_connect=yes
46923 if test "${ice_have_connect}" = yes; then
46924 echo "$as_me:$LINENO: checking for connect declaration in sys/types.h sys/socket.h" >&5
46925 echo $ECHO_N "checking for connect declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
46926 if test "${ice_cv_have_connect_decl+set}" = set; then
46927 echo $ECHO_N "(cached) $ECHO_C" >&6
46930 ice_cv_have_connect_decl=no
46931 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46932 ice_re_word='(^|[^a-zA-Z0-9_])'
46933 for header in sys/types.h sys/socket.h; do
46934 # Check for ordinary declaration
46935 cat >conftest.$ac_ext <<_ACEOF
46938 cat confdefs.h >>conftest.$ac_ext
46939 cat >>conftest.$ac_ext <<_ACEOF
46940 /* end confdefs.h. */
46944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46945 $EGREP "${ice_re_word}connect[ ]*\(" >/dev/null 2>&1; then
46946 ice_cv_have_connect_decl=yes
46950 if test "$ice_cv_have_connect_decl" = yes; then
46953 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46954 cat >conftest.$ac_ext <<_ACEOF
46957 cat confdefs.h >>conftest.$ac_ext
46958 cat >>conftest.$ac_ext <<_ACEOF
46959 /* end confdefs.h. */
46963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46964 $EGREP "${ice_re_word}connect[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46965 ice_cv_have_connect_decl=yes
46969 if test "$ice_cv_have_connect_decl" = yes; then
46976 echo "$as_me:$LINENO: result: $ice_cv_have_connect_decl" >&5
46977 echo "${ECHO_T}$ice_cv_have_connect_decl" >&6
46978 if test "$ice_cv_have_connect_decl" = yes; then
46980 cat >>confdefs.h <<_ACEOF
46981 #define HAVE_CONNECT_DECL 1
46988 ice_have_dbm_open=no
46990 for ac_func in dbm_open
46992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46993 echo "$as_me:$LINENO: checking for $ac_func" >&5
46994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46995 if eval "test \"\${$as_ac_var+set}\" = set"; then
46996 echo $ECHO_N "(cached) $ECHO_C" >&6
46998 cat >conftest.$ac_ext <<_ACEOF
47001 cat confdefs.h >>conftest.$ac_ext
47002 cat >>conftest.$ac_ext <<_ACEOF
47003 /* end confdefs.h. */
47004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47006 #define $ac_func innocuous_$ac_func
47008 /* System header to define __stub macros and hopefully few prototypes,
47009 which can conflict with char $ac_func (); below.
47010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47011 <limits.h> exists even on freestanding compilers. */
47014 # include <limits.h>
47016 # include <assert.h>
47021 /* Override any gcc2 internal prototype to avoid an error. */
47026 /* We use char because int might match the return type of a gcc2
47027 builtin and then its argument prototype would still apply. */
47029 /* The GNU C library defines this for functions which it implements
47030 to always fail with ENOSYS. Some functions are actually named
47031 something starting with __ and the normal name is an alias. */
47032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47035 char (*f) () = $ac_func;
47044 return f != $ac_func;
47049 rm -f conftest.$ac_objext conftest$ac_exeext
47050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47051 (eval $ac_link) 2>conftest.er1
47053 grep -v '^ *+' conftest.er1 >conftest.err
47055 cat conftest.err >&5
47056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47057 (exit $ac_status); } &&
47058 { ac_try='test -z "$ac_c_werror_flag"
47059 || test ! -s conftest.err'
47060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47061 (eval $ac_try) 2>&5
47063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47064 (exit $ac_status); }; } &&
47065 { ac_try='test -s conftest$ac_exeext'
47066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47067 (eval $ac_try) 2>&5
47069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47070 (exit $ac_status); }; }; then
47071 eval "$as_ac_var=yes"
47073 echo "$as_me: failed program was:" >&5
47074 sed 's/^/| /' conftest.$ac_ext >&5
47076 eval "$as_ac_var=no"
47078 rm -f conftest.err conftest.$ac_objext \
47079 conftest$ac_exeext conftest.$ac_ext
47081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47083 if test `eval echo '${'$as_ac_var'}'` = yes; then
47084 cat >>confdefs.h <<_ACEOF
47085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47087 ice_have_dbm_open=yes
47091 if test "${ice_have_dbm_open}" = yes; then
47092 echo "$as_me:$LINENO: checking for dbm_open declaration in ${DB_HEADER-no/db/header/file}" >&5
47093 echo $ECHO_N "checking for dbm_open declaration in ${DB_HEADER-no/db/header/file}... $ECHO_C" >&6
47094 if test "${ice_cv_have_dbm_open_decl+set}" = set; then
47095 echo $ECHO_N "(cached) $ECHO_C" >&6
47098 ice_cv_have_dbm_open_decl=no
47099 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47100 ice_re_word='(^|[^a-zA-Z0-9_])'
47101 for header in ${DB_HEADER-no/db/header/file}; do
47102 # Check for ordinary declaration
47103 cat >conftest.$ac_ext <<_ACEOF
47106 cat confdefs.h >>conftest.$ac_ext
47107 cat >>conftest.$ac_ext <<_ACEOF
47108 /* end confdefs.h. */
47112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47113 $EGREP "${ice_re_word}dbm_open[ ]*\(" >/dev/null 2>&1; then
47114 ice_cv_have_dbm_open_decl=yes
47118 if test "$ice_cv_have_dbm_open_decl" = yes; then
47121 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47122 cat >conftest.$ac_ext <<_ACEOF
47125 cat confdefs.h >>conftest.$ac_ext
47126 cat >>conftest.$ac_ext <<_ACEOF
47127 /* end confdefs.h. */
47131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47132 $EGREP "${ice_re_word}dbm_open[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47133 ice_cv_have_dbm_open_decl=yes
47137 if test "$ice_cv_have_dbm_open_decl" = yes; then
47144 echo "$as_me:$LINENO: result: $ice_cv_have_dbm_open_decl" >&5
47145 echo "${ECHO_T}$ice_cv_have_dbm_open_decl" >&6
47146 if test "$ice_cv_have_dbm_open_decl" = yes; then
47148 cat >>confdefs.h <<_ACEOF
47149 #define HAVE_DBM_OPEN_DECL 1
47156 for ac_func in endmntent
47158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47159 echo "$as_me:$LINENO: checking for $ac_func" >&5
47160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47161 if eval "test \"\${$as_ac_var+set}\" = set"; then
47162 echo $ECHO_N "(cached) $ECHO_C" >&6
47164 cat >conftest.$ac_ext <<_ACEOF
47167 cat confdefs.h >>conftest.$ac_ext
47168 cat >>conftest.$ac_ext <<_ACEOF
47169 /* end confdefs.h. */
47170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47172 #define $ac_func innocuous_$ac_func
47174 /* System header to define __stub macros and hopefully few prototypes,
47175 which can conflict with char $ac_func (); below.
47176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47177 <limits.h> exists even on freestanding compilers. */
47180 # include <limits.h>
47182 # include <assert.h>
47187 /* Override any gcc2 internal prototype to avoid an error. */
47192 /* We use char because int might match the return type of a gcc2
47193 builtin and then its argument prototype would still apply. */
47195 /* The GNU C library defines this for functions which it implements
47196 to always fail with ENOSYS. Some functions are actually named
47197 something starting with __ and the normal name is an alias. */
47198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47201 char (*f) () = $ac_func;
47210 return f != $ac_func;
47215 rm -f conftest.$ac_objext conftest$ac_exeext
47216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47217 (eval $ac_link) 2>conftest.er1
47219 grep -v '^ *+' conftest.er1 >conftest.err
47221 cat conftest.err >&5
47222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47223 (exit $ac_status); } &&
47224 { ac_try='test -z "$ac_c_werror_flag"
47225 || test ! -s conftest.err'
47226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47227 (eval $ac_try) 2>&5
47229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47230 (exit $ac_status); }; } &&
47231 { ac_try='test -s conftest$ac_exeext'
47232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47233 (eval $ac_try) 2>&5
47235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47236 (exit $ac_status); }; }; then
47237 eval "$as_ac_var=yes"
47239 echo "$as_me: failed program was:" >&5
47240 sed 's/^/| /' conftest.$ac_ext >&5
47242 eval "$as_ac_var=no"
47244 rm -f conftest.err conftest.$ac_objext \
47245 conftest$ac_exeext conftest.$ac_ext
47247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47249 if test `eval echo '${'$as_ac_var'}'` = yes; then
47250 cat >>confdefs.h <<_ACEOF
47251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47260 for ac_func in fclose
47262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47263 echo "$as_me:$LINENO: checking for $ac_func" >&5
47264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47265 if eval "test \"\${$as_ac_var+set}\" = set"; then
47266 echo $ECHO_N "(cached) $ECHO_C" >&6
47268 cat >conftest.$ac_ext <<_ACEOF
47271 cat confdefs.h >>conftest.$ac_ext
47272 cat >>conftest.$ac_ext <<_ACEOF
47273 /* end confdefs.h. */
47274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47276 #define $ac_func innocuous_$ac_func
47278 /* System header to define __stub macros and hopefully few prototypes,
47279 which can conflict with char $ac_func (); below.
47280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47281 <limits.h> exists even on freestanding compilers. */
47284 # include <limits.h>
47286 # include <assert.h>
47291 /* Override any gcc2 internal prototype to avoid an error. */
47296 /* We use char because int might match the return type of a gcc2
47297 builtin and then its argument prototype would still apply. */
47299 /* The GNU C library defines this for functions which it implements
47300 to always fail with ENOSYS. Some functions are actually named
47301 something starting with __ and the normal name is an alias. */
47302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47305 char (*f) () = $ac_func;
47314 return f != $ac_func;
47319 rm -f conftest.$ac_objext conftest$ac_exeext
47320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47321 (eval $ac_link) 2>conftest.er1
47323 grep -v '^ *+' conftest.er1 >conftest.err
47325 cat conftest.err >&5
47326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47327 (exit $ac_status); } &&
47328 { ac_try='test -z "$ac_c_werror_flag"
47329 || test ! -s conftest.err'
47330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47331 (eval $ac_try) 2>&5
47333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47334 (exit $ac_status); }; } &&
47335 { ac_try='test -s conftest$ac_exeext'
47336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47337 (eval $ac_try) 2>&5
47339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47340 (exit $ac_status); }; }; then
47341 eval "$as_ac_var=yes"
47343 echo "$as_me: failed program was:" >&5
47344 sed 's/^/| /' conftest.$ac_ext >&5
47346 eval "$as_ac_var=no"
47348 rm -f conftest.err conftest.$ac_objext \
47349 conftest$ac_exeext conftest.$ac_ext
47351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47352 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47353 if test `eval echo '${'$as_ac_var'}'` = yes; then
47354 cat >>confdefs.h <<_ACEOF
47355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47357 ice_have_fclose=yes
47361 if test "${ice_have_fclose}" = yes; then
47362 echo "$as_me:$LINENO: checking for fclose declaration in stdio.h" >&5
47363 echo $ECHO_N "checking for fclose declaration in stdio.h... $ECHO_C" >&6
47364 if test "${ice_cv_have_fclose_decl+set}" = set; then
47365 echo $ECHO_N "(cached) $ECHO_C" >&6
47368 ice_cv_have_fclose_decl=no
47369 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47370 ice_re_word='(^|[^a-zA-Z0-9_])'
47371 for header in stdio.h; do
47372 # Check for ordinary declaration
47373 cat >conftest.$ac_ext <<_ACEOF
47376 cat confdefs.h >>conftest.$ac_ext
47377 cat >>conftest.$ac_ext <<_ACEOF
47378 /* end confdefs.h. */
47382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47383 $EGREP "${ice_re_word}fclose[ ]*\(" >/dev/null 2>&1; then
47384 ice_cv_have_fclose_decl=yes
47388 if test "$ice_cv_have_fclose_decl" = yes; then
47391 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47392 cat >conftest.$ac_ext <<_ACEOF
47395 cat confdefs.h >>conftest.$ac_ext
47396 cat >>conftest.$ac_ext <<_ACEOF
47397 /* end confdefs.h. */
47401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47402 $EGREP "${ice_re_word}fclose[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47403 ice_cv_have_fclose_decl=yes
47407 if test "$ice_cv_have_fclose_decl" = yes; then
47414 echo "$as_me:$LINENO: result: $ice_cv_have_fclose_decl" >&5
47415 echo "${ECHO_T}$ice_cv_have_fclose_decl" >&6
47416 if test "$ice_cv_have_fclose_decl" = yes; then
47418 cat >>confdefs.h <<_ACEOF
47419 #define HAVE_FCLOSE_DECL 1
47428 for ac_func in fflush
47430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47431 echo "$as_me:$LINENO: checking for $ac_func" >&5
47432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47433 if eval "test \"\${$as_ac_var+set}\" = set"; then
47434 echo $ECHO_N "(cached) $ECHO_C" >&6
47436 cat >conftest.$ac_ext <<_ACEOF
47439 cat confdefs.h >>conftest.$ac_ext
47440 cat >>conftest.$ac_ext <<_ACEOF
47441 /* end confdefs.h. */
47442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47444 #define $ac_func innocuous_$ac_func
47446 /* System header to define __stub macros and hopefully few prototypes,
47447 which can conflict with char $ac_func (); below.
47448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47449 <limits.h> exists even on freestanding compilers. */
47452 # include <limits.h>
47454 # include <assert.h>
47459 /* Override any gcc2 internal prototype to avoid an error. */
47464 /* We use char because int might match the return type of a gcc2
47465 builtin and then its argument prototype would still apply. */
47467 /* The GNU C library defines this for functions which it implements
47468 to always fail with ENOSYS. Some functions are actually named
47469 something starting with __ and the normal name is an alias. */
47470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47473 char (*f) () = $ac_func;
47482 return f != $ac_func;
47487 rm -f conftest.$ac_objext conftest$ac_exeext
47488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47489 (eval $ac_link) 2>conftest.er1
47491 grep -v '^ *+' conftest.er1 >conftest.err
47493 cat conftest.err >&5
47494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47495 (exit $ac_status); } &&
47496 { ac_try='test -z "$ac_c_werror_flag"
47497 || test ! -s conftest.err'
47498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47499 (eval $ac_try) 2>&5
47501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47502 (exit $ac_status); }; } &&
47503 { ac_try='test -s conftest$ac_exeext'
47504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47505 (eval $ac_try) 2>&5
47507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47508 (exit $ac_status); }; }; then
47509 eval "$as_ac_var=yes"
47511 echo "$as_me: failed program was:" >&5
47512 sed 's/^/| /' conftest.$ac_ext >&5
47514 eval "$as_ac_var=no"
47516 rm -f conftest.err conftest.$ac_objext \
47517 conftest$ac_exeext conftest.$ac_ext
47519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47520 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47521 if test `eval echo '${'$as_ac_var'}'` = yes; then
47522 cat >>confdefs.h <<_ACEOF
47523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47525 ice_have_fflush=yes
47529 if test "${ice_have_fflush}" = yes; then
47530 echo "$as_me:$LINENO: checking for fflush declaration in stdio.h" >&5
47531 echo $ECHO_N "checking for fflush declaration in stdio.h... $ECHO_C" >&6
47532 if test "${ice_cv_have_fflush_decl+set}" = set; then
47533 echo $ECHO_N "(cached) $ECHO_C" >&6
47536 ice_cv_have_fflush_decl=no
47537 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47538 ice_re_word='(^|[^a-zA-Z0-9_])'
47539 for header in stdio.h; do
47540 # Check for ordinary declaration
47541 cat >conftest.$ac_ext <<_ACEOF
47544 cat confdefs.h >>conftest.$ac_ext
47545 cat >>conftest.$ac_ext <<_ACEOF
47546 /* end confdefs.h. */
47550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47551 $EGREP "${ice_re_word}fflush[ ]*\(" >/dev/null 2>&1; then
47552 ice_cv_have_fflush_decl=yes
47556 if test "$ice_cv_have_fflush_decl" = yes; then
47559 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47560 cat >conftest.$ac_ext <<_ACEOF
47563 cat confdefs.h >>conftest.$ac_ext
47564 cat >>conftest.$ac_ext <<_ACEOF
47565 /* end confdefs.h. */
47569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47570 $EGREP "${ice_re_word}fflush[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47571 ice_cv_have_fflush_decl=yes
47575 if test "$ice_cv_have_fflush_decl" = yes; then
47582 echo "$as_me:$LINENO: result: $ice_cv_have_fflush_decl" >&5
47583 echo "${ECHO_T}$ice_cv_have_fflush_decl" >&6
47584 if test "$ice_cv_have_fflush_decl" = yes; then
47586 cat >>confdefs.h <<_ACEOF
47587 #define HAVE_FFLUSH_DECL 1
47596 for ac_func in flock
47598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47599 echo "$as_me:$LINENO: checking for $ac_func" >&5
47600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47601 if eval "test \"\${$as_ac_var+set}\" = set"; then
47602 echo $ECHO_N "(cached) $ECHO_C" >&6
47604 cat >conftest.$ac_ext <<_ACEOF
47607 cat confdefs.h >>conftest.$ac_ext
47608 cat >>conftest.$ac_ext <<_ACEOF
47609 /* end confdefs.h. */
47610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47612 #define $ac_func innocuous_$ac_func
47614 /* System header to define __stub macros and hopefully few prototypes,
47615 which can conflict with char $ac_func (); below.
47616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47617 <limits.h> exists even on freestanding compilers. */
47620 # include <limits.h>
47622 # include <assert.h>
47627 /* Override any gcc2 internal prototype to avoid an error. */
47632 /* We use char because int might match the return type of a gcc2
47633 builtin and then its argument prototype would still apply. */
47635 /* The GNU C library defines this for functions which it implements
47636 to always fail with ENOSYS. Some functions are actually named
47637 something starting with __ and the normal name is an alias. */
47638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47641 char (*f) () = $ac_func;
47650 return f != $ac_func;
47655 rm -f conftest.$ac_objext conftest$ac_exeext
47656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47657 (eval $ac_link) 2>conftest.er1
47659 grep -v '^ *+' conftest.er1 >conftest.err
47661 cat conftest.err >&5
47662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47663 (exit $ac_status); } &&
47664 { ac_try='test -z "$ac_c_werror_flag"
47665 || test ! -s conftest.err'
47666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47667 (eval $ac_try) 2>&5
47669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47670 (exit $ac_status); }; } &&
47671 { ac_try='test -s conftest$ac_exeext'
47672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47673 (eval $ac_try) 2>&5
47675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47676 (exit $ac_status); }; }; then
47677 eval "$as_ac_var=yes"
47679 echo "$as_me: failed program was:" >&5
47680 sed 's/^/| /' conftest.$ac_ext >&5
47682 eval "$as_ac_var=no"
47684 rm -f conftest.err conftest.$ac_objext \
47685 conftest$ac_exeext conftest.$ac_ext
47687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47688 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47689 if test `eval echo '${'$as_ac_var'}'` = yes; then
47690 cat >>confdefs.h <<_ACEOF
47691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47697 if test "${ice_have_flock}" = yes; then
47698 echo "$as_me:$LINENO: checking for flock declaration in sys/file.h" >&5
47699 echo $ECHO_N "checking for flock declaration in sys/file.h... $ECHO_C" >&6
47700 if test "${ice_cv_have_flock_decl+set}" = set; then
47701 echo $ECHO_N "(cached) $ECHO_C" >&6
47704 ice_cv_have_flock_decl=no
47705 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47706 ice_re_word='(^|[^a-zA-Z0-9_])'
47707 for header in sys/file.h; do
47708 # Check for ordinary declaration
47709 cat >conftest.$ac_ext <<_ACEOF
47712 cat confdefs.h >>conftest.$ac_ext
47713 cat >>conftest.$ac_ext <<_ACEOF
47714 /* end confdefs.h. */
47718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47719 $EGREP "${ice_re_word}flock[ ]*\(" >/dev/null 2>&1; then
47720 ice_cv_have_flock_decl=yes
47724 if test "$ice_cv_have_flock_decl" = yes; then
47727 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47728 cat >conftest.$ac_ext <<_ACEOF
47731 cat confdefs.h >>conftest.$ac_ext
47732 cat >>conftest.$ac_ext <<_ACEOF
47733 /* end confdefs.h. */
47737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47738 $EGREP "${ice_re_word}flock[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47739 ice_cv_have_flock_decl=yes
47743 if test "$ice_cv_have_flock_decl" = yes; then
47750 echo "$as_me:$LINENO: result: $ice_cv_have_flock_decl" >&5
47751 echo "${ECHO_T}$ice_cv_have_flock_decl" >&6
47752 if test "$ice_cv_have_flock_decl" = yes; then
47754 cat >>confdefs.h <<_ACEOF
47755 #define HAVE_FLOCK_DECL 1
47762 ice_have_fprintf=no
47764 for ac_func in fprintf
47766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47767 echo "$as_me:$LINENO: checking for $ac_func" >&5
47768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47769 if eval "test \"\${$as_ac_var+set}\" = set"; then
47770 echo $ECHO_N "(cached) $ECHO_C" >&6
47772 cat >conftest.$ac_ext <<_ACEOF
47775 cat confdefs.h >>conftest.$ac_ext
47776 cat >>conftest.$ac_ext <<_ACEOF
47777 /* end confdefs.h. */
47778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47780 #define $ac_func innocuous_$ac_func
47782 /* System header to define __stub macros and hopefully few prototypes,
47783 which can conflict with char $ac_func (); below.
47784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47785 <limits.h> exists even on freestanding compilers. */
47788 # include <limits.h>
47790 # include <assert.h>
47795 /* Override any gcc2 internal prototype to avoid an error. */
47800 /* We use char because int might match the return type of a gcc2
47801 builtin and then its argument prototype would still apply. */
47803 /* The GNU C library defines this for functions which it implements
47804 to always fail with ENOSYS. Some functions are actually named
47805 something starting with __ and the normal name is an alias. */
47806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47809 char (*f) () = $ac_func;
47818 return f != $ac_func;
47823 rm -f conftest.$ac_objext conftest$ac_exeext
47824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47825 (eval $ac_link) 2>conftest.er1
47827 grep -v '^ *+' conftest.er1 >conftest.err
47829 cat conftest.err >&5
47830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47831 (exit $ac_status); } &&
47832 { ac_try='test -z "$ac_c_werror_flag"
47833 || test ! -s conftest.err'
47834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47835 (eval $ac_try) 2>&5
47837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47838 (exit $ac_status); }; } &&
47839 { ac_try='test -s conftest$ac_exeext'
47840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47841 (eval $ac_try) 2>&5
47843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47844 (exit $ac_status); }; }; then
47845 eval "$as_ac_var=yes"
47847 echo "$as_me: failed program was:" >&5
47848 sed 's/^/| /' conftest.$ac_ext >&5
47850 eval "$as_ac_var=no"
47852 rm -f conftest.err conftest.$ac_objext \
47853 conftest$ac_exeext conftest.$ac_ext
47855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47857 if test `eval echo '${'$as_ac_var'}'` = yes; then
47858 cat >>confdefs.h <<_ACEOF
47859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47861 ice_have_fprintf=yes
47865 if test "${ice_have_fprintf}" = yes; then
47866 echo "$as_me:$LINENO: checking for fprintf declaration in stdio.h" >&5
47867 echo $ECHO_N "checking for fprintf declaration in stdio.h... $ECHO_C" >&6
47868 if test "${ice_cv_have_fprintf_decl+set}" = set; then
47869 echo $ECHO_N "(cached) $ECHO_C" >&6
47872 ice_cv_have_fprintf_decl=no
47873 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47874 ice_re_word='(^|[^a-zA-Z0-9_])'
47875 for header in stdio.h; do
47876 # Check for ordinary declaration
47877 cat >conftest.$ac_ext <<_ACEOF
47880 cat confdefs.h >>conftest.$ac_ext
47881 cat >>conftest.$ac_ext <<_ACEOF
47882 /* end confdefs.h. */
47886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47887 $EGREP "${ice_re_word}fprintf[ ]*\(" >/dev/null 2>&1; then
47888 ice_cv_have_fprintf_decl=yes
47892 if test "$ice_cv_have_fprintf_decl" = yes; then
47895 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47896 cat >conftest.$ac_ext <<_ACEOF
47899 cat confdefs.h >>conftest.$ac_ext
47900 cat >>conftest.$ac_ext <<_ACEOF
47901 /* end confdefs.h. */
47905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47906 $EGREP "${ice_re_word}fprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47907 ice_cv_have_fprintf_decl=yes
47911 if test "$ice_cv_have_fprintf_decl" = yes; then
47918 echo "$as_me:$LINENO: result: $ice_cv_have_fprintf_decl" >&5
47919 echo "${ECHO_T}$ice_cv_have_fprintf_decl" >&6
47920 if test "$ice_cv_have_fprintf_decl" = yes; then
47922 cat >>confdefs.h <<_ACEOF
47923 #define HAVE_FPRINTF_DECL 1
47932 for ac_func in fputc
47934 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47935 echo "$as_me:$LINENO: checking for $ac_func" >&5
47936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47937 if eval "test \"\${$as_ac_var+set}\" = set"; then
47938 echo $ECHO_N "(cached) $ECHO_C" >&6
47940 cat >conftest.$ac_ext <<_ACEOF
47943 cat confdefs.h >>conftest.$ac_ext
47944 cat >>conftest.$ac_ext <<_ACEOF
47945 /* end confdefs.h. */
47946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47948 #define $ac_func innocuous_$ac_func
47950 /* System header to define __stub macros and hopefully few prototypes,
47951 which can conflict with char $ac_func (); below.
47952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47953 <limits.h> exists even on freestanding compilers. */
47956 # include <limits.h>
47958 # include <assert.h>
47963 /* Override any gcc2 internal prototype to avoid an error. */
47968 /* We use char because int might match the return type of a gcc2
47969 builtin and then its argument prototype would still apply. */
47971 /* The GNU C library defines this for functions which it implements
47972 to always fail with ENOSYS. Some functions are actually named
47973 something starting with __ and the normal name is an alias. */
47974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47977 char (*f) () = $ac_func;
47986 return f != $ac_func;
47991 rm -f conftest.$ac_objext conftest$ac_exeext
47992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47993 (eval $ac_link) 2>conftest.er1
47995 grep -v '^ *+' conftest.er1 >conftest.err
47997 cat conftest.err >&5
47998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47999 (exit $ac_status); } &&
48000 { ac_try='test -z "$ac_c_werror_flag"
48001 || test ! -s conftest.err'
48002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48003 (eval $ac_try) 2>&5
48005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48006 (exit $ac_status); }; } &&
48007 { ac_try='test -s conftest$ac_exeext'
48008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48009 (eval $ac_try) 2>&5
48011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48012 (exit $ac_status); }; }; then
48013 eval "$as_ac_var=yes"
48015 echo "$as_me: failed program was:" >&5
48016 sed 's/^/| /' conftest.$ac_ext >&5
48018 eval "$as_ac_var=no"
48020 rm -f conftest.err conftest.$ac_objext \
48021 conftest$ac_exeext conftest.$ac_ext
48023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48024 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48025 if test `eval echo '${'$as_ac_var'}'` = yes; then
48026 cat >>confdefs.h <<_ACEOF
48027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48033 if test "${ice_have_fputc}" = yes; then
48034 echo "$as_me:$LINENO: checking for fputc declaration in stdio.h" >&5
48035 echo $ECHO_N "checking for fputc declaration in stdio.h... $ECHO_C" >&6
48036 if test "${ice_cv_have_fputc_decl+set}" = set; then
48037 echo $ECHO_N "(cached) $ECHO_C" >&6
48040 ice_cv_have_fputc_decl=no
48041 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48042 ice_re_word='(^|[^a-zA-Z0-9_])'
48043 for header in stdio.h; do
48044 # Check for ordinary declaration
48045 cat >conftest.$ac_ext <<_ACEOF
48048 cat confdefs.h >>conftest.$ac_ext
48049 cat >>conftest.$ac_ext <<_ACEOF
48050 /* end confdefs.h. */
48054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48055 $EGREP "${ice_re_word}fputc[ ]*\(" >/dev/null 2>&1; then
48056 ice_cv_have_fputc_decl=yes
48060 if test "$ice_cv_have_fputc_decl" = yes; then
48063 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48064 cat >conftest.$ac_ext <<_ACEOF
48067 cat confdefs.h >>conftest.$ac_ext
48068 cat >>conftest.$ac_ext <<_ACEOF
48069 /* end confdefs.h. */
48073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48074 $EGREP "${ice_re_word}fputc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48075 ice_cv_have_fputc_decl=yes
48079 if test "$ice_cv_have_fputc_decl" = yes; then
48086 echo "$as_me:$LINENO: result: $ice_cv_have_fputc_decl" >&5
48087 echo "${ECHO_T}$ice_cv_have_fputc_decl" >&6
48088 if test "$ice_cv_have_fputc_decl" = yes; then
48090 cat >>confdefs.h <<_ACEOF
48091 #define HAVE_FPUTC_DECL 1
48100 for ac_func in fputs
48102 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48103 echo "$as_me:$LINENO: checking for $ac_func" >&5
48104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48105 if eval "test \"\${$as_ac_var+set}\" = set"; then
48106 echo $ECHO_N "(cached) $ECHO_C" >&6
48108 cat >conftest.$ac_ext <<_ACEOF
48111 cat confdefs.h >>conftest.$ac_ext
48112 cat >>conftest.$ac_ext <<_ACEOF
48113 /* end confdefs.h. */
48114 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48116 #define $ac_func innocuous_$ac_func
48118 /* System header to define __stub macros and hopefully few prototypes,
48119 which can conflict with char $ac_func (); below.
48120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48121 <limits.h> exists even on freestanding compilers. */
48124 # include <limits.h>
48126 # include <assert.h>
48131 /* Override any gcc2 internal prototype to avoid an error. */
48136 /* We use char because int might match the return type of a gcc2
48137 builtin and then its argument prototype would still apply. */
48139 /* The GNU C library defines this for functions which it implements
48140 to always fail with ENOSYS. Some functions are actually named
48141 something starting with __ and the normal name is an alias. */
48142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48145 char (*f) () = $ac_func;
48154 return f != $ac_func;
48159 rm -f conftest.$ac_objext conftest$ac_exeext
48160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48161 (eval $ac_link) 2>conftest.er1
48163 grep -v '^ *+' conftest.er1 >conftest.err
48165 cat conftest.err >&5
48166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48167 (exit $ac_status); } &&
48168 { ac_try='test -z "$ac_c_werror_flag"
48169 || test ! -s conftest.err'
48170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48171 (eval $ac_try) 2>&5
48173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48174 (exit $ac_status); }; } &&
48175 { ac_try='test -s conftest$ac_exeext'
48176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48177 (eval $ac_try) 2>&5
48179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48180 (exit $ac_status); }; }; then
48181 eval "$as_ac_var=yes"
48183 echo "$as_me: failed program was:" >&5
48184 sed 's/^/| /' conftest.$ac_ext >&5
48186 eval "$as_ac_var=no"
48188 rm -f conftest.err conftest.$ac_objext \
48189 conftest$ac_exeext conftest.$ac_ext
48191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48192 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48193 if test `eval echo '${'$as_ac_var'}'` = yes; then
48194 cat >>confdefs.h <<_ACEOF
48195 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48201 if test "${ice_have_fputs}" = yes; then
48202 echo "$as_me:$LINENO: checking for fputs declaration in stdio.h" >&5
48203 echo $ECHO_N "checking for fputs declaration in stdio.h... $ECHO_C" >&6
48204 if test "${ice_cv_have_fputs_decl+set}" = set; then
48205 echo $ECHO_N "(cached) $ECHO_C" >&6
48208 ice_cv_have_fputs_decl=no
48209 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48210 ice_re_word='(^|[^a-zA-Z0-9_])'
48211 for header in stdio.h; do
48212 # Check for ordinary declaration
48213 cat >conftest.$ac_ext <<_ACEOF
48216 cat confdefs.h >>conftest.$ac_ext
48217 cat >>conftest.$ac_ext <<_ACEOF
48218 /* end confdefs.h. */
48222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48223 $EGREP "${ice_re_word}fputs[ ]*\(" >/dev/null 2>&1; then
48224 ice_cv_have_fputs_decl=yes
48228 if test "$ice_cv_have_fputs_decl" = yes; then
48231 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48232 cat >conftest.$ac_ext <<_ACEOF
48235 cat confdefs.h >>conftest.$ac_ext
48236 cat >>conftest.$ac_ext <<_ACEOF
48237 /* end confdefs.h. */
48241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48242 $EGREP "${ice_re_word}fputs[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48243 ice_cv_have_fputs_decl=yes
48247 if test "$ice_cv_have_fputs_decl" = yes; then
48254 echo "$as_me:$LINENO: result: $ice_cv_have_fputs_decl" >&5
48255 echo "${ECHO_T}$ice_cv_have_fputs_decl" >&6
48256 if test "$ice_cv_have_fputs_decl" = yes; then
48258 cat >>confdefs.h <<_ACEOF
48259 #define HAVE_FPUTS_DECL 1
48268 for ac_func in fread
48270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48271 echo "$as_me:$LINENO: checking for $ac_func" >&5
48272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48273 if eval "test \"\${$as_ac_var+set}\" = set"; then
48274 echo $ECHO_N "(cached) $ECHO_C" >&6
48276 cat >conftest.$ac_ext <<_ACEOF
48279 cat confdefs.h >>conftest.$ac_ext
48280 cat >>conftest.$ac_ext <<_ACEOF
48281 /* end confdefs.h. */
48282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48284 #define $ac_func innocuous_$ac_func
48286 /* System header to define __stub macros and hopefully few prototypes,
48287 which can conflict with char $ac_func (); below.
48288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48289 <limits.h> exists even on freestanding compilers. */
48292 # include <limits.h>
48294 # include <assert.h>
48299 /* Override any gcc2 internal prototype to avoid an error. */
48304 /* We use char because int might match the return type of a gcc2
48305 builtin and then its argument prototype would still apply. */
48307 /* The GNU C library defines this for functions which it implements
48308 to always fail with ENOSYS. Some functions are actually named
48309 something starting with __ and the normal name is an alias. */
48310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48313 char (*f) () = $ac_func;
48322 return f != $ac_func;
48327 rm -f conftest.$ac_objext conftest$ac_exeext
48328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48329 (eval $ac_link) 2>conftest.er1
48331 grep -v '^ *+' conftest.er1 >conftest.err
48333 cat conftest.err >&5
48334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48335 (exit $ac_status); } &&
48336 { ac_try='test -z "$ac_c_werror_flag"
48337 || test ! -s conftest.err'
48338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48339 (eval $ac_try) 2>&5
48341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48342 (exit $ac_status); }; } &&
48343 { ac_try='test -s conftest$ac_exeext'
48344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48345 (eval $ac_try) 2>&5
48347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48348 (exit $ac_status); }; }; then
48349 eval "$as_ac_var=yes"
48351 echo "$as_me: failed program was:" >&5
48352 sed 's/^/| /' conftest.$ac_ext >&5
48354 eval "$as_ac_var=no"
48356 rm -f conftest.err conftest.$ac_objext \
48357 conftest$ac_exeext conftest.$ac_ext
48359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48360 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48361 if test `eval echo '${'$as_ac_var'}'` = yes; then
48362 cat >>confdefs.h <<_ACEOF
48363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48369 if test "${ice_have_fread}" = yes; then
48370 echo "$as_me:$LINENO: checking for fread declaration in stdio.h stdlib.h" >&5
48371 echo $ECHO_N "checking for fread declaration in stdio.h stdlib.h... $ECHO_C" >&6
48372 if test "${ice_cv_have_fread_decl+set}" = set; then
48373 echo $ECHO_N "(cached) $ECHO_C" >&6
48376 ice_cv_have_fread_decl=no
48377 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48378 ice_re_word='(^|[^a-zA-Z0-9_])'
48379 for header in stdio.h stdlib.h; do
48380 # Check for ordinary declaration
48381 cat >conftest.$ac_ext <<_ACEOF
48384 cat confdefs.h >>conftest.$ac_ext
48385 cat >>conftest.$ac_ext <<_ACEOF
48386 /* end confdefs.h. */
48390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48391 $EGREP "${ice_re_word}fread[ ]*\(" >/dev/null 2>&1; then
48392 ice_cv_have_fread_decl=yes
48396 if test "$ice_cv_have_fread_decl" = yes; then
48399 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48400 cat >conftest.$ac_ext <<_ACEOF
48403 cat confdefs.h >>conftest.$ac_ext
48404 cat >>conftest.$ac_ext <<_ACEOF
48405 /* end confdefs.h. */
48409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48410 $EGREP "${ice_re_word}fread[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48411 ice_cv_have_fread_decl=yes
48415 if test "$ice_cv_have_fread_decl" = yes; then
48422 echo "$as_me:$LINENO: result: $ice_cv_have_fread_decl" >&5
48423 echo "${ECHO_T}$ice_cv_have_fread_decl" >&6
48424 if test "$ice_cv_have_fread_decl" = yes; then
48426 cat >>confdefs.h <<_ACEOF
48427 #define HAVE_FREAD_DECL 1
48436 for ac_func in fseek
48438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48439 echo "$as_me:$LINENO: checking for $ac_func" >&5
48440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48441 if eval "test \"\${$as_ac_var+set}\" = set"; then
48442 echo $ECHO_N "(cached) $ECHO_C" >&6
48444 cat >conftest.$ac_ext <<_ACEOF
48447 cat confdefs.h >>conftest.$ac_ext
48448 cat >>conftest.$ac_ext <<_ACEOF
48449 /* end confdefs.h. */
48450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48452 #define $ac_func innocuous_$ac_func
48454 /* System header to define __stub macros and hopefully few prototypes,
48455 which can conflict with char $ac_func (); below.
48456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48457 <limits.h> exists even on freestanding compilers. */
48460 # include <limits.h>
48462 # include <assert.h>
48467 /* Override any gcc2 internal prototype to avoid an error. */
48472 /* We use char because int might match the return type of a gcc2
48473 builtin and then its argument prototype would still apply. */
48475 /* The GNU C library defines this for functions which it implements
48476 to always fail with ENOSYS. Some functions are actually named
48477 something starting with __ and the normal name is an alias. */
48478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48481 char (*f) () = $ac_func;
48490 return f != $ac_func;
48495 rm -f conftest.$ac_objext conftest$ac_exeext
48496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48497 (eval $ac_link) 2>conftest.er1
48499 grep -v '^ *+' conftest.er1 >conftest.err
48501 cat conftest.err >&5
48502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48503 (exit $ac_status); } &&
48504 { ac_try='test -z "$ac_c_werror_flag"
48505 || test ! -s conftest.err'
48506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48507 (eval $ac_try) 2>&5
48509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48510 (exit $ac_status); }; } &&
48511 { ac_try='test -s conftest$ac_exeext'
48512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48513 (eval $ac_try) 2>&5
48515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48516 (exit $ac_status); }; }; then
48517 eval "$as_ac_var=yes"
48519 echo "$as_me: failed program was:" >&5
48520 sed 's/^/| /' conftest.$ac_ext >&5
48522 eval "$as_ac_var=no"
48524 rm -f conftest.err conftest.$ac_objext \
48525 conftest$ac_exeext conftest.$ac_ext
48527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48529 if test `eval echo '${'$as_ac_var'}'` = yes; then
48530 cat >>confdefs.h <<_ACEOF
48531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48537 if test "${ice_have_fseek}" = yes; then
48538 echo "$as_me:$LINENO: checking for fseek declaration in stdio.h" >&5
48539 echo $ECHO_N "checking for fseek declaration in stdio.h... $ECHO_C" >&6
48540 if test "${ice_cv_have_fseek_decl+set}" = set; then
48541 echo $ECHO_N "(cached) $ECHO_C" >&6
48544 ice_cv_have_fseek_decl=no
48545 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48546 ice_re_word='(^|[^a-zA-Z0-9_])'
48547 for header in stdio.h; do
48548 # Check for ordinary declaration
48549 cat >conftest.$ac_ext <<_ACEOF
48552 cat confdefs.h >>conftest.$ac_ext
48553 cat >>conftest.$ac_ext <<_ACEOF
48554 /* end confdefs.h. */
48558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48559 $EGREP "${ice_re_word}fseek[ ]*\(" >/dev/null 2>&1; then
48560 ice_cv_have_fseek_decl=yes
48564 if test "$ice_cv_have_fseek_decl" = yes; then
48567 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48568 cat >conftest.$ac_ext <<_ACEOF
48571 cat confdefs.h >>conftest.$ac_ext
48572 cat >>conftest.$ac_ext <<_ACEOF
48573 /* end confdefs.h. */
48577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48578 $EGREP "${ice_re_word}fseek[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48579 ice_cv_have_fseek_decl=yes
48583 if test "$ice_cv_have_fseek_decl" = yes; then
48590 echo "$as_me:$LINENO: result: $ice_cv_have_fseek_decl" >&5
48591 echo "${ECHO_T}$ice_cv_have_fseek_decl" >&6
48592 if test "$ice_cv_have_fseek_decl" = yes; then
48594 cat >>confdefs.h <<_ACEOF
48595 #define HAVE_FSEEK_DECL 1
48604 for ac_func in fwrite
48606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48607 echo "$as_me:$LINENO: checking for $ac_func" >&5
48608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48609 if eval "test \"\${$as_ac_var+set}\" = set"; then
48610 echo $ECHO_N "(cached) $ECHO_C" >&6
48612 cat >conftest.$ac_ext <<_ACEOF
48615 cat confdefs.h >>conftest.$ac_ext
48616 cat >>conftest.$ac_ext <<_ACEOF
48617 /* end confdefs.h. */
48618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48620 #define $ac_func innocuous_$ac_func
48622 /* System header to define __stub macros and hopefully few prototypes,
48623 which can conflict with char $ac_func (); below.
48624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48625 <limits.h> exists even on freestanding compilers. */
48628 # include <limits.h>
48630 # include <assert.h>
48635 /* Override any gcc2 internal prototype to avoid an error. */
48640 /* We use char because int might match the return type of a gcc2
48641 builtin and then its argument prototype would still apply. */
48643 /* The GNU C library defines this for functions which it implements
48644 to always fail with ENOSYS. Some functions are actually named
48645 something starting with __ and the normal name is an alias. */
48646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48649 char (*f) () = $ac_func;
48658 return f != $ac_func;
48663 rm -f conftest.$ac_objext conftest$ac_exeext
48664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48665 (eval $ac_link) 2>conftest.er1
48667 grep -v '^ *+' conftest.er1 >conftest.err
48669 cat conftest.err >&5
48670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48671 (exit $ac_status); } &&
48672 { ac_try='test -z "$ac_c_werror_flag"
48673 || test ! -s conftest.err'
48674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48675 (eval $ac_try) 2>&5
48677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48678 (exit $ac_status); }; } &&
48679 { ac_try='test -s conftest$ac_exeext'
48680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48681 (eval $ac_try) 2>&5
48683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48684 (exit $ac_status); }; }; then
48685 eval "$as_ac_var=yes"
48687 echo "$as_me: failed program was:" >&5
48688 sed 's/^/| /' conftest.$ac_ext >&5
48690 eval "$as_ac_var=no"
48692 rm -f conftest.err conftest.$ac_objext \
48693 conftest$ac_exeext conftest.$ac_ext
48695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48697 if test `eval echo '${'$as_ac_var'}'` = yes; then
48698 cat >>confdefs.h <<_ACEOF
48699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48701 ice_have_fwrite=yes
48705 if test "${ice_have_fwrite}" = yes; then
48706 echo "$as_me:$LINENO: checking for fwrite declaration in stdio.h stdlib.h" >&5
48707 echo $ECHO_N "checking for fwrite declaration in stdio.h stdlib.h... $ECHO_C" >&6
48708 if test "${ice_cv_have_fwrite_decl+set}" = set; then
48709 echo $ECHO_N "(cached) $ECHO_C" >&6
48712 ice_cv_have_fwrite_decl=no
48713 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48714 ice_re_word='(^|[^a-zA-Z0-9_])'
48715 for header in stdio.h stdlib.h; do
48716 # Check for ordinary declaration
48717 cat >conftest.$ac_ext <<_ACEOF
48720 cat confdefs.h >>conftest.$ac_ext
48721 cat >>conftest.$ac_ext <<_ACEOF
48722 /* end confdefs.h. */
48726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48727 $EGREP "${ice_re_word}fwrite[ ]*\(" >/dev/null 2>&1; then
48728 ice_cv_have_fwrite_decl=yes
48732 if test "$ice_cv_have_fwrite_decl" = yes; then
48735 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48736 cat >conftest.$ac_ext <<_ACEOF
48739 cat confdefs.h >>conftest.$ac_ext
48740 cat >>conftest.$ac_ext <<_ACEOF
48741 /* end confdefs.h. */
48745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48746 $EGREP "${ice_re_word}fwrite[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48747 ice_cv_have_fwrite_decl=yes
48751 if test "$ice_cv_have_fwrite_decl" = yes; then
48758 echo "$as_me:$LINENO: result: $ice_cv_have_fwrite_decl" >&5
48759 echo "${ECHO_T}$ice_cv_have_fwrite_decl" >&6
48760 if test "$ice_cv_have_fwrite_decl" = yes; then
48762 cat >>confdefs.h <<_ACEOF
48763 #define HAVE_FWRITE_DECL 1
48770 for ac_func in getfsent
48772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48773 echo "$as_me:$LINENO: checking for $ac_func" >&5
48774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48775 if eval "test \"\${$as_ac_var+set}\" = set"; then
48776 echo $ECHO_N "(cached) $ECHO_C" >&6
48778 cat >conftest.$ac_ext <<_ACEOF
48781 cat confdefs.h >>conftest.$ac_ext
48782 cat >>conftest.$ac_ext <<_ACEOF
48783 /* end confdefs.h. */
48784 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48786 #define $ac_func innocuous_$ac_func
48788 /* System header to define __stub macros and hopefully few prototypes,
48789 which can conflict with char $ac_func (); below.
48790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48791 <limits.h> exists even on freestanding compilers. */
48794 # include <limits.h>
48796 # include <assert.h>
48801 /* Override any gcc2 internal prototype to avoid an error. */
48806 /* We use char because int might match the return type of a gcc2
48807 builtin and then its argument prototype would still apply. */
48809 /* The GNU C library defines this for functions which it implements
48810 to always fail with ENOSYS. Some functions are actually named
48811 something starting with __ and the normal name is an alias. */
48812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48815 char (*f) () = $ac_func;
48824 return f != $ac_func;
48829 rm -f conftest.$ac_objext conftest$ac_exeext
48830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48831 (eval $ac_link) 2>conftest.er1
48833 grep -v '^ *+' conftest.er1 >conftest.err
48835 cat conftest.err >&5
48836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48837 (exit $ac_status); } &&
48838 { ac_try='test -z "$ac_c_werror_flag"
48839 || test ! -s conftest.err'
48840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48841 (eval $ac_try) 2>&5
48843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48844 (exit $ac_status); }; } &&
48845 { ac_try='test -s conftest$ac_exeext'
48846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48847 (eval $ac_try) 2>&5
48849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48850 (exit $ac_status); }; }; then
48851 eval "$as_ac_var=yes"
48853 echo "$as_me: failed program was:" >&5
48854 sed 's/^/| /' conftest.$ac_ext >&5
48856 eval "$as_ac_var=no"
48858 rm -f conftest.err conftest.$ac_objext \
48859 conftest$ac_exeext conftest.$ac_ext
48861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48862 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48863 if test `eval echo '${'$as_ac_var'}'` = yes; then
48864 cat >>confdefs.h <<_ACEOF
48865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48872 ice_have_gethostname=no
48874 for ac_func in gethostname
48876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48877 echo "$as_me:$LINENO: checking for $ac_func" >&5
48878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48879 if eval "test \"\${$as_ac_var+set}\" = set"; then
48880 echo $ECHO_N "(cached) $ECHO_C" >&6
48882 cat >conftest.$ac_ext <<_ACEOF
48885 cat confdefs.h >>conftest.$ac_ext
48886 cat >>conftest.$ac_ext <<_ACEOF
48887 /* end confdefs.h. */
48888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48890 #define $ac_func innocuous_$ac_func
48892 /* System header to define __stub macros and hopefully few prototypes,
48893 which can conflict with char $ac_func (); below.
48894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48895 <limits.h> exists even on freestanding compilers. */
48898 # include <limits.h>
48900 # include <assert.h>
48905 /* Override any gcc2 internal prototype to avoid an error. */
48910 /* We use char because int might match the return type of a gcc2
48911 builtin and then its argument prototype would still apply. */
48913 /* The GNU C library defines this for functions which it implements
48914 to always fail with ENOSYS. Some functions are actually named
48915 something starting with __ and the normal name is an alias. */
48916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48919 char (*f) () = $ac_func;
48928 return f != $ac_func;
48933 rm -f conftest.$ac_objext conftest$ac_exeext
48934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48935 (eval $ac_link) 2>conftest.er1
48937 grep -v '^ *+' conftest.er1 >conftest.err
48939 cat conftest.err >&5
48940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48941 (exit $ac_status); } &&
48942 { ac_try='test -z "$ac_c_werror_flag"
48943 || test ! -s conftest.err'
48944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48945 (eval $ac_try) 2>&5
48947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48948 (exit $ac_status); }; } &&
48949 { ac_try='test -s conftest$ac_exeext'
48950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48951 (eval $ac_try) 2>&5
48953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48954 (exit $ac_status); }; }; then
48955 eval "$as_ac_var=yes"
48957 echo "$as_me: failed program was:" >&5
48958 sed 's/^/| /' conftest.$ac_ext >&5
48960 eval "$as_ac_var=no"
48962 rm -f conftest.err conftest.$ac_objext \
48963 conftest$ac_exeext conftest.$ac_ext
48965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48967 if test `eval echo '${'$as_ac_var'}'` = yes; then
48968 cat >>confdefs.h <<_ACEOF
48969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48971 ice_have_gethostname=yes
48975 if test "${ice_have_gethostname}" = yes; then
48976 echo "$as_me:$LINENO: checking for gethostname declaration in unistd.h" >&5
48977 echo $ECHO_N "checking for gethostname declaration in unistd.h... $ECHO_C" >&6
48978 if test "${ice_cv_have_gethostname_decl+set}" = set; then
48979 echo $ECHO_N "(cached) $ECHO_C" >&6
48982 ice_cv_have_gethostname_decl=no
48983 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48984 ice_re_word='(^|[^a-zA-Z0-9_])'
48985 for header in unistd.h; do
48986 # Check for ordinary declaration
48987 cat >conftest.$ac_ext <<_ACEOF
48990 cat confdefs.h >>conftest.$ac_ext
48991 cat >>conftest.$ac_ext <<_ACEOF
48992 /* end confdefs.h. */
48996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48997 $EGREP "${ice_re_word}gethostname[ ]*\(" >/dev/null 2>&1; then
48998 ice_cv_have_gethostname_decl=yes
49002 if test "$ice_cv_have_gethostname_decl" = yes; then
49005 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49006 cat >conftest.$ac_ext <<_ACEOF
49009 cat confdefs.h >>conftest.$ac_ext
49010 cat >>conftest.$ac_ext <<_ACEOF
49011 /* end confdefs.h. */
49015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49016 $EGREP "${ice_re_word}gethostname[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49017 ice_cv_have_gethostname_decl=yes
49021 if test "$ice_cv_have_gethostname_decl" = yes; then
49028 echo "$as_me:$LINENO: result: $ice_cv_have_gethostname_decl" >&5
49029 echo "${ECHO_T}$ice_cv_have_gethostname_decl" >&6
49030 if test "$ice_cv_have_gethostname_decl" = yes; then
49032 cat >>confdefs.h <<_ACEOF
49033 #define HAVE_GETHOSTNAME_DECL 1
49039 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
49040 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
49041 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
49042 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
49043 echo $ECHO_N "(cached) $ECHO_C" >&6
49045 ac_check_lib_save_LIBS=$LIBS
49047 cat >conftest.$ac_ext <<_ACEOF
49050 cat confdefs.h >>conftest.$ac_ext
49051 cat >>conftest.$ac_ext <<_ACEOF
49052 /* end confdefs.h. */
49054 /* Override any gcc2 internal prototype to avoid an error. */
49058 /* We use char because int might match the return type of a gcc2
49059 builtin and then its argument prototype would still apply. */
49069 rm -f conftest.$ac_objext conftest$ac_exeext
49070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49071 (eval $ac_link) 2>conftest.er1
49073 grep -v '^ *+' conftest.er1 >conftest.err
49075 cat conftest.err >&5
49076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49077 (exit $ac_status); } &&
49078 { ac_try='test -z "$ac_c_werror_flag"
49079 || test ! -s conftest.err'
49080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49081 (eval $ac_try) 2>&5
49083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49084 (exit $ac_status); }; } &&
49085 { ac_try='test -s conftest$ac_exeext'
49086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49087 (eval $ac_try) 2>&5
49089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49090 (exit $ac_status); }; }; then
49091 ac_cv_lib_sun_getmntent=yes
49093 echo "$as_me: failed program was:" >&5
49094 sed 's/^/| /' conftest.$ac_ext >&5
49096 ac_cv_lib_sun_getmntent=no
49098 rm -f conftest.err conftest.$ac_objext \
49099 conftest$ac_exeext conftest.$ac_ext
49100 LIBS=$ac_check_lib_save_LIBS
49102 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
49103 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
49104 if test $ac_cv_lib_sun_getmntent = yes; then
49107 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
49108 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
49109 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
49110 echo $ECHO_N "(cached) $ECHO_C" >&6
49112 ac_check_lib_save_LIBS=$LIBS
49114 cat >conftest.$ac_ext <<_ACEOF
49117 cat confdefs.h >>conftest.$ac_ext
49118 cat >>conftest.$ac_ext <<_ACEOF
49119 /* end confdefs.h. */
49121 /* Override any gcc2 internal prototype to avoid an error. */
49125 /* We use char because int might match the return type of a gcc2
49126 builtin and then its argument prototype would still apply. */
49136 rm -f conftest.$ac_objext conftest$ac_exeext
49137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49138 (eval $ac_link) 2>conftest.er1
49140 grep -v '^ *+' conftest.er1 >conftest.err
49142 cat conftest.err >&5
49143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49144 (exit $ac_status); } &&
49145 { ac_try='test -z "$ac_c_werror_flag"
49146 || test ! -s conftest.err'
49147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49148 (eval $ac_try) 2>&5
49150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49151 (exit $ac_status); }; } &&
49152 { ac_try='test -s conftest$ac_exeext'
49153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49154 (eval $ac_try) 2>&5
49156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49157 (exit $ac_status); }; }; then
49158 ac_cv_lib_seq_getmntent=yes
49160 echo "$as_me: failed program was:" >&5
49161 sed 's/^/| /' conftest.$ac_ext >&5
49163 ac_cv_lib_seq_getmntent=no
49165 rm -f conftest.err conftest.$ac_objext \
49166 conftest$ac_exeext conftest.$ac_ext
49167 LIBS=$ac_check_lib_save_LIBS
49169 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
49170 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
49171 if test $ac_cv_lib_seq_getmntent = yes; then
49174 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
49175 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
49176 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
49177 echo $ECHO_N "(cached) $ECHO_C" >&6
49179 ac_check_lib_save_LIBS=$LIBS
49181 cat >conftest.$ac_ext <<_ACEOF
49184 cat confdefs.h >>conftest.$ac_ext
49185 cat >>conftest.$ac_ext <<_ACEOF
49186 /* end confdefs.h. */
49188 /* Override any gcc2 internal prototype to avoid an error. */
49192 /* We use char because int might match the return type of a gcc2
49193 builtin and then its argument prototype would still apply. */
49203 rm -f conftest.$ac_objext conftest$ac_exeext
49204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49205 (eval $ac_link) 2>conftest.er1
49207 grep -v '^ *+' conftest.er1 >conftest.err
49209 cat conftest.err >&5
49210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49211 (exit $ac_status); } &&
49212 { ac_try='test -z "$ac_c_werror_flag"
49213 || test ! -s conftest.err'
49214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49215 (eval $ac_try) 2>&5
49217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49218 (exit $ac_status); }; } &&
49219 { ac_try='test -s conftest$ac_exeext'
49220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49221 (eval $ac_try) 2>&5
49223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49224 (exit $ac_status); }; }; then
49225 ac_cv_lib_gen_getmntent=yes
49227 echo "$as_me: failed program was:" >&5
49228 sed 's/^/| /' conftest.$ac_ext >&5
49230 ac_cv_lib_gen_getmntent=no
49232 rm -f conftest.err conftest.$ac_objext \
49233 conftest$ac_exeext conftest.$ac_ext
49234 LIBS=$ac_check_lib_save_LIBS
49236 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
49237 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
49238 if test $ac_cv_lib_gen_getmntent = yes; then
49247 for ac_func in getmntent
49249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49250 echo "$as_me:$LINENO: checking for $ac_func" >&5
49251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49252 if eval "test \"\${$as_ac_var+set}\" = set"; then
49253 echo $ECHO_N "(cached) $ECHO_C" >&6
49255 cat >conftest.$ac_ext <<_ACEOF
49258 cat confdefs.h >>conftest.$ac_ext
49259 cat >>conftest.$ac_ext <<_ACEOF
49260 /* end confdefs.h. */
49261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49263 #define $ac_func innocuous_$ac_func
49265 /* System header to define __stub macros and hopefully few prototypes,
49266 which can conflict with char $ac_func (); below.
49267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49268 <limits.h> exists even on freestanding compilers. */
49271 # include <limits.h>
49273 # include <assert.h>
49278 /* Override any gcc2 internal prototype to avoid an error. */
49283 /* We use char because int might match the return type of a gcc2
49284 builtin and then its argument prototype would still apply. */
49286 /* The GNU C library defines this for functions which it implements
49287 to always fail with ENOSYS. Some functions are actually named
49288 something starting with __ and the normal name is an alias. */
49289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49292 char (*f) () = $ac_func;
49301 return f != $ac_func;
49306 rm -f conftest.$ac_objext conftest$ac_exeext
49307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49308 (eval $ac_link) 2>conftest.er1
49310 grep -v '^ *+' conftest.er1 >conftest.err
49312 cat conftest.err >&5
49313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49314 (exit $ac_status); } &&
49315 { ac_try='test -z "$ac_c_werror_flag"
49316 || test ! -s conftest.err'
49317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49318 (eval $ac_try) 2>&5
49320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49321 (exit $ac_status); }; } &&
49322 { ac_try='test -s conftest$ac_exeext'
49323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49324 (eval $ac_try) 2>&5
49326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49327 (exit $ac_status); }; }; then
49328 eval "$as_ac_var=yes"
49330 echo "$as_me: failed program was:" >&5
49331 sed 's/^/| /' conftest.$ac_ext >&5
49333 eval "$as_ac_var=no"
49335 rm -f conftest.err conftest.$ac_objext \
49336 conftest$ac_exeext conftest.$ac_ext
49338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49339 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49340 if test `eval echo '${'$as_ac_var'}'` = yes; then
49341 cat >>confdefs.h <<_ACEOF
49342 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49352 for ac_func in getopt
49354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49355 echo "$as_me:$LINENO: checking for $ac_func" >&5
49356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49357 if eval "test \"\${$as_ac_var+set}\" = set"; then
49358 echo $ECHO_N "(cached) $ECHO_C" >&6
49360 cat >conftest.$ac_ext <<_ACEOF
49363 cat confdefs.h >>conftest.$ac_ext
49364 cat >>conftest.$ac_ext <<_ACEOF
49365 /* end confdefs.h. */
49366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49368 #define $ac_func innocuous_$ac_func
49370 /* System header to define __stub macros and hopefully few prototypes,
49371 which can conflict with char $ac_func (); below.
49372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49373 <limits.h> exists even on freestanding compilers. */
49376 # include <limits.h>
49378 # include <assert.h>
49383 /* Override any gcc2 internal prototype to avoid an error. */
49388 /* We use char because int might match the return type of a gcc2
49389 builtin and then its argument prototype would still apply. */
49391 /* The GNU C library defines this for functions which it implements
49392 to always fail with ENOSYS. Some functions are actually named
49393 something starting with __ and the normal name is an alias. */
49394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49397 char (*f) () = $ac_func;
49406 return f != $ac_func;
49411 rm -f conftest.$ac_objext conftest$ac_exeext
49412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49413 (eval $ac_link) 2>conftest.er1
49415 grep -v '^ *+' conftest.er1 >conftest.err
49417 cat conftest.err >&5
49418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49419 (exit $ac_status); } &&
49420 { ac_try='test -z "$ac_c_werror_flag"
49421 || test ! -s conftest.err'
49422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49423 (eval $ac_try) 2>&5
49425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49426 (exit $ac_status); }; } &&
49427 { ac_try='test -s conftest$ac_exeext'
49428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49429 (eval $ac_try) 2>&5
49431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49432 (exit $ac_status); }; }; then
49433 eval "$as_ac_var=yes"
49435 echo "$as_me: failed program was:" >&5
49436 sed 's/^/| /' conftest.$ac_ext >&5
49438 eval "$as_ac_var=no"
49440 rm -f conftest.err conftest.$ac_objext \
49441 conftest$ac_exeext conftest.$ac_ext
49443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49444 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49445 if test `eval echo '${'$as_ac_var'}'` = yes; then
49446 cat >>confdefs.h <<_ACEOF
49447 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49449 ice_have_getopt=yes
49453 if test "${ice_have_getopt}" = yes; then
49454 echo "$as_me:$LINENO: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
49455 echo $ECHO_N "checking for getopt declaration in stdlib.h unistd.h libc.h... $ECHO_C" >&6
49456 if test "${ice_cv_have_getopt_decl+set}" = set; then
49457 echo $ECHO_N "(cached) $ECHO_C" >&6
49460 ice_cv_have_getopt_decl=no
49461 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49462 ice_re_word='(^|[^a-zA-Z0-9_])'
49463 for header in stdlib.h unistd.h libc.h; do
49464 # Check for ordinary declaration
49465 cat >conftest.$ac_ext <<_ACEOF
49468 cat confdefs.h >>conftest.$ac_ext
49469 cat >>conftest.$ac_ext <<_ACEOF
49470 /* end confdefs.h. */
49474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49475 $EGREP "${ice_re_word}getopt[ ]*\(" >/dev/null 2>&1; then
49476 ice_cv_have_getopt_decl=yes
49480 if test "$ice_cv_have_getopt_decl" = yes; then
49483 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49484 cat >conftest.$ac_ext <<_ACEOF
49487 cat confdefs.h >>conftest.$ac_ext
49488 cat >>conftest.$ac_ext <<_ACEOF
49489 /* end confdefs.h. */
49493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49494 $EGREP "${ice_re_word}getopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49495 ice_cv_have_getopt_decl=yes
49499 if test "$ice_cv_have_getopt_decl" = yes; then
49506 echo "$as_me:$LINENO: result: $ice_cv_have_getopt_decl" >&5
49507 echo "${ECHO_T}$ice_cv_have_getopt_decl" >&6
49508 if test "$ice_cv_have_getopt_decl" = yes; then
49510 cat >>confdefs.h <<_ACEOF
49511 #define HAVE_GETOPT_DECL 1
49518 ice_have_getpeername=no
49520 for ac_func in getpeername
49522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49523 echo "$as_me:$LINENO: checking for $ac_func" >&5
49524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49525 if eval "test \"\${$as_ac_var+set}\" = set"; then
49526 echo $ECHO_N "(cached) $ECHO_C" >&6
49528 cat >conftest.$ac_ext <<_ACEOF
49531 cat confdefs.h >>conftest.$ac_ext
49532 cat >>conftest.$ac_ext <<_ACEOF
49533 /* end confdefs.h. */
49534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49536 #define $ac_func innocuous_$ac_func
49538 /* System header to define __stub macros and hopefully few prototypes,
49539 which can conflict with char $ac_func (); below.
49540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49541 <limits.h> exists even on freestanding compilers. */
49544 # include <limits.h>
49546 # include <assert.h>
49551 /* Override any gcc2 internal prototype to avoid an error. */
49556 /* We use char because int might match the return type of a gcc2
49557 builtin and then its argument prototype would still apply. */
49559 /* The GNU C library defines this for functions which it implements
49560 to always fail with ENOSYS. Some functions are actually named
49561 something starting with __ and the normal name is an alias. */
49562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49565 char (*f) () = $ac_func;
49574 return f != $ac_func;
49579 rm -f conftest.$ac_objext conftest$ac_exeext
49580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49581 (eval $ac_link) 2>conftest.er1
49583 grep -v '^ *+' conftest.er1 >conftest.err
49585 cat conftest.err >&5
49586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49587 (exit $ac_status); } &&
49588 { ac_try='test -z "$ac_c_werror_flag"
49589 || test ! -s conftest.err'
49590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49591 (eval $ac_try) 2>&5
49593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49594 (exit $ac_status); }; } &&
49595 { ac_try='test -s conftest$ac_exeext'
49596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49597 (eval $ac_try) 2>&5
49599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49600 (exit $ac_status); }; }; then
49601 eval "$as_ac_var=yes"
49603 echo "$as_me: failed program was:" >&5
49604 sed 's/^/| /' conftest.$ac_ext >&5
49606 eval "$as_ac_var=no"
49608 rm -f conftest.err conftest.$ac_objext \
49609 conftest$ac_exeext conftest.$ac_ext
49611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49612 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49613 if test `eval echo '${'$as_ac_var'}'` = yes; then
49614 cat >>confdefs.h <<_ACEOF
49615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49617 ice_have_getpeername=yes
49621 if test "${ice_have_getpeername}" = yes; then
49622 echo "$as_me:$LINENO: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
49623 echo $ECHO_N "checking for getpeername declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
49624 if test "${ice_cv_have_getpeername_decl+set}" = set; then
49625 echo $ECHO_N "(cached) $ECHO_C" >&6
49628 ice_cv_have_getpeername_decl=no
49629 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49630 ice_re_word='(^|[^a-zA-Z0-9_])'
49631 for header in sys/types.h sys/socket.h; do
49632 # Check for ordinary declaration
49633 cat >conftest.$ac_ext <<_ACEOF
49636 cat confdefs.h >>conftest.$ac_ext
49637 cat >>conftest.$ac_ext <<_ACEOF
49638 /* end confdefs.h. */
49642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49643 $EGREP "${ice_re_word}getpeername[ ]*\(" >/dev/null 2>&1; then
49644 ice_cv_have_getpeername_decl=yes
49648 if test "$ice_cv_have_getpeername_decl" = yes; then
49651 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49652 cat >conftest.$ac_ext <<_ACEOF
49655 cat confdefs.h >>conftest.$ac_ext
49656 cat >>conftest.$ac_ext <<_ACEOF
49657 /* end confdefs.h. */
49661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49662 $EGREP "${ice_re_word}getpeername[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49663 ice_cv_have_getpeername_decl=yes
49667 if test "$ice_cv_have_getpeername_decl" = yes; then
49674 echo "$as_me:$LINENO: result: $ice_cv_have_getpeername_decl" >&5
49675 echo "${ECHO_T}$ice_cv_have_getpeername_decl" >&6
49676 if test "$ice_cv_have_getpeername_decl" = yes; then
49678 cat >>confdefs.h <<_ACEOF
49679 #define HAVE_GETPEERNAME_DECL 1
49686 for ac_func in getpgrp
49688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49689 echo "$as_me:$LINENO: checking for $ac_func" >&5
49690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49691 if eval "test \"\${$as_ac_var+set}\" = set"; then
49692 echo $ECHO_N "(cached) $ECHO_C" >&6
49694 cat >conftest.$ac_ext <<_ACEOF
49697 cat confdefs.h >>conftest.$ac_ext
49698 cat >>conftest.$ac_ext <<_ACEOF
49699 /* end confdefs.h. */
49700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49702 #define $ac_func innocuous_$ac_func
49704 /* System header to define __stub macros and hopefully few prototypes,
49705 which can conflict with char $ac_func (); below.
49706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49707 <limits.h> exists even on freestanding compilers. */
49710 # include <limits.h>
49712 # include <assert.h>
49717 /* Override any gcc2 internal prototype to avoid an error. */
49722 /* We use char because int might match the return type of a gcc2
49723 builtin and then its argument prototype would still apply. */
49725 /* The GNU C library defines this for functions which it implements
49726 to always fail with ENOSYS. Some functions are actually named
49727 something starting with __ and the normal name is an alias. */
49728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49731 char (*f) () = $ac_func;
49740 return f != $ac_func;
49745 rm -f conftest.$ac_objext conftest$ac_exeext
49746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49747 (eval $ac_link) 2>conftest.er1
49749 grep -v '^ *+' conftest.er1 >conftest.err
49751 cat conftest.err >&5
49752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49753 (exit $ac_status); } &&
49754 { ac_try='test -z "$ac_c_werror_flag"
49755 || test ! -s conftest.err'
49756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49757 (eval $ac_try) 2>&5
49759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49760 (exit $ac_status); }; } &&
49761 { ac_try='test -s conftest$ac_exeext'
49762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49763 (eval $ac_try) 2>&5
49765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49766 (exit $ac_status); }; }; then
49767 eval "$as_ac_var=yes"
49769 echo "$as_me: failed program was:" >&5
49770 sed 's/^/| /' conftest.$ac_ext >&5
49772 eval "$as_ac_var=no"
49774 rm -f conftest.err conftest.$ac_objext \
49775 conftest$ac_exeext conftest.$ac_ext
49777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49778 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49779 if test `eval echo '${'$as_ac_var'}'` = yes; then
49780 cat >>confdefs.h <<_ACEOF
49781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49787 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
49788 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
49789 if test "${ac_cv_func_getpgrp_void+set}" = set; then
49790 echo $ECHO_N "(cached) $ECHO_C" >&6
49792 # Use it with a single arg.
49793 cat >conftest.$ac_ext <<_ACEOF
49796 cat confdefs.h >>conftest.$ac_ext
49797 cat >>conftest.$ac_ext <<_ACEOF
49798 /* end confdefs.h. */
49799 $ac_includes_default
49808 rm -f conftest.$ac_objext
49809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49810 (eval $ac_compile) 2>conftest.er1
49812 grep -v '^ *+' conftest.er1 >conftest.err
49814 cat conftest.err >&5
49815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49816 (exit $ac_status); } &&
49817 { ac_try='test -z "$ac_c_werror_flag"
49818 || test ! -s conftest.err'
49819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49820 (eval $ac_try) 2>&5
49822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49823 (exit $ac_status); }; } &&
49824 { ac_try='test -s conftest.$ac_objext'
49825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49826 (eval $ac_try) 2>&5
49828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49829 (exit $ac_status); }; }; then
49830 ac_cv_func_getpgrp_void=no
49832 echo "$as_me: failed program was:" >&5
49833 sed 's/^/| /' conftest.$ac_ext >&5
49835 ac_cv_func_getpgrp_void=yes
49837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49840 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
49841 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
49842 if test $ac_cv_func_getpgrp_void = yes; then
49844 cat >>confdefs.h <<\_ACEOF
49845 #define GETPGRP_VOID 1
49851 ice_have_getsockname=no
49853 for ac_func in getsockname
49855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49856 echo "$as_me:$LINENO: checking for $ac_func" >&5
49857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49858 if eval "test \"\${$as_ac_var+set}\" = set"; then
49859 echo $ECHO_N "(cached) $ECHO_C" >&6
49861 cat >conftest.$ac_ext <<_ACEOF
49864 cat confdefs.h >>conftest.$ac_ext
49865 cat >>conftest.$ac_ext <<_ACEOF
49866 /* end confdefs.h. */
49867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49869 #define $ac_func innocuous_$ac_func
49871 /* System header to define __stub macros and hopefully few prototypes,
49872 which can conflict with char $ac_func (); below.
49873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49874 <limits.h> exists even on freestanding compilers. */
49877 # include <limits.h>
49879 # include <assert.h>
49884 /* Override any gcc2 internal prototype to avoid an error. */
49889 /* We use char because int might match the return type of a gcc2
49890 builtin and then its argument prototype would still apply. */
49892 /* The GNU C library defines this for functions which it implements
49893 to always fail with ENOSYS. Some functions are actually named
49894 something starting with __ and the normal name is an alias. */
49895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49898 char (*f) () = $ac_func;
49907 return f != $ac_func;
49912 rm -f conftest.$ac_objext conftest$ac_exeext
49913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49914 (eval $ac_link) 2>conftest.er1
49916 grep -v '^ *+' conftest.er1 >conftest.err
49918 cat conftest.err >&5
49919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49920 (exit $ac_status); } &&
49921 { ac_try='test -z "$ac_c_werror_flag"
49922 || test ! -s conftest.err'
49923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49924 (eval $ac_try) 2>&5
49926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49927 (exit $ac_status); }; } &&
49928 { ac_try='test -s conftest$ac_exeext'
49929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49930 (eval $ac_try) 2>&5
49932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49933 (exit $ac_status); }; }; then
49934 eval "$as_ac_var=yes"
49936 echo "$as_me: failed program was:" >&5
49937 sed 's/^/| /' conftest.$ac_ext >&5
49939 eval "$as_ac_var=no"
49941 rm -f conftest.err conftest.$ac_objext \
49942 conftest$ac_exeext conftest.$ac_ext
49944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49945 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49946 if test `eval echo '${'$as_ac_var'}'` = yes; then
49947 cat >>confdefs.h <<_ACEOF
49948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49950 ice_have_getsockname=yes
49954 if test "${ice_have_getsockname}" = yes; then
49955 echo "$as_me:$LINENO: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
49956 echo $ECHO_N "checking for getsockname declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
49957 if test "${ice_cv_have_getsockname_decl+set}" = set; then
49958 echo $ECHO_N "(cached) $ECHO_C" >&6
49961 ice_cv_have_getsockname_decl=no
49962 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49963 ice_re_word='(^|[^a-zA-Z0-9_])'
49964 for header in sys/types.h sys/socket.h; do
49965 # Check for ordinary declaration
49966 cat >conftest.$ac_ext <<_ACEOF
49969 cat confdefs.h >>conftest.$ac_ext
49970 cat >>conftest.$ac_ext <<_ACEOF
49971 /* end confdefs.h. */
49975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49976 $EGREP "${ice_re_word}getsockname[ ]*\(" >/dev/null 2>&1; then
49977 ice_cv_have_getsockname_decl=yes
49981 if test "$ice_cv_have_getsockname_decl" = yes; then
49984 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49985 cat >conftest.$ac_ext <<_ACEOF
49988 cat confdefs.h >>conftest.$ac_ext
49989 cat >>conftest.$ac_ext <<_ACEOF
49990 /* end confdefs.h. */
49994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49995 $EGREP "${ice_re_word}getsockname[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49996 ice_cv_have_getsockname_decl=yes
50000 if test "$ice_cv_have_getsockname_decl" = yes; then
50007 echo "$as_me:$LINENO: result: $ice_cv_have_getsockname_decl" >&5
50008 echo "${ECHO_T}$ice_cv_have_getsockname_decl" >&6
50009 if test "$ice_cv_have_getsockname_decl" = yes; then
50011 cat >>confdefs.h <<_ACEOF
50012 #define HAVE_GETSOCKNAME_DECL 1
50019 ice_have_getsockopt=no
50021 for ac_func in getsockopt
50023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50024 echo "$as_me:$LINENO: checking for $ac_func" >&5
50025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50026 if eval "test \"\${$as_ac_var+set}\" = set"; then
50027 echo $ECHO_N "(cached) $ECHO_C" >&6
50029 cat >conftest.$ac_ext <<_ACEOF
50032 cat confdefs.h >>conftest.$ac_ext
50033 cat >>conftest.$ac_ext <<_ACEOF
50034 /* end confdefs.h. */
50035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50037 #define $ac_func innocuous_$ac_func
50039 /* System header to define __stub macros and hopefully few prototypes,
50040 which can conflict with char $ac_func (); below.
50041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50042 <limits.h> exists even on freestanding compilers. */
50045 # include <limits.h>
50047 # include <assert.h>
50052 /* Override any gcc2 internal prototype to avoid an error. */
50057 /* We use char because int might match the return type of a gcc2
50058 builtin and then its argument prototype would still apply. */
50060 /* The GNU C library defines this for functions which it implements
50061 to always fail with ENOSYS. Some functions are actually named
50062 something starting with __ and the normal name is an alias. */
50063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50066 char (*f) () = $ac_func;
50075 return f != $ac_func;
50080 rm -f conftest.$ac_objext conftest$ac_exeext
50081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50082 (eval $ac_link) 2>conftest.er1
50084 grep -v '^ *+' conftest.er1 >conftest.err
50086 cat conftest.err >&5
50087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50088 (exit $ac_status); } &&
50089 { ac_try='test -z "$ac_c_werror_flag"
50090 || test ! -s conftest.err'
50091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50092 (eval $ac_try) 2>&5
50094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50095 (exit $ac_status); }; } &&
50096 { ac_try='test -s conftest$ac_exeext'
50097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50098 (eval $ac_try) 2>&5
50100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50101 (exit $ac_status); }; }; then
50102 eval "$as_ac_var=yes"
50104 echo "$as_me: failed program was:" >&5
50105 sed 's/^/| /' conftest.$ac_ext >&5
50107 eval "$as_ac_var=no"
50109 rm -f conftest.err conftest.$ac_objext \
50110 conftest$ac_exeext conftest.$ac_ext
50112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50113 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50114 if test `eval echo '${'$as_ac_var'}'` = yes; then
50115 cat >>confdefs.h <<_ACEOF
50116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50118 ice_have_getsockopt=yes
50122 if test "${ice_have_getsockopt}" = yes; then
50123 echo "$as_me:$LINENO: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
50124 echo $ECHO_N "checking for getsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
50125 if test "${ice_cv_have_getsockopt_decl+set}" = set; then
50126 echo $ECHO_N "(cached) $ECHO_C" >&6
50129 ice_cv_have_getsockopt_decl=no
50130 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50131 ice_re_word='(^|[^a-zA-Z0-9_])'
50132 for header in sys/types.h sys/socket.h; do
50133 # Check for ordinary declaration
50134 cat >conftest.$ac_ext <<_ACEOF
50137 cat confdefs.h >>conftest.$ac_ext
50138 cat >>conftest.$ac_ext <<_ACEOF
50139 /* end confdefs.h. */
50143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50144 $EGREP "${ice_re_word}getsockopt[ ]*\(" >/dev/null 2>&1; then
50145 ice_cv_have_getsockopt_decl=yes
50149 if test "$ice_cv_have_getsockopt_decl" = yes; then
50152 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50153 cat >conftest.$ac_ext <<_ACEOF
50156 cat confdefs.h >>conftest.$ac_ext
50157 cat >>conftest.$ac_ext <<_ACEOF
50158 /* end confdefs.h. */
50162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50163 $EGREP "${ice_re_word}getsockopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50164 ice_cv_have_getsockopt_decl=yes
50168 if test "$ice_cv_have_getsockopt_decl" = yes; then
50175 echo "$as_me:$LINENO: result: $ice_cv_have_getsockopt_decl" >&5
50176 echo "${ECHO_T}$ice_cv_have_getsockopt_decl" >&6
50177 if test "$ice_cv_have_getsockopt_decl" = yes; then
50179 cat >>confdefs.h <<_ACEOF
50180 #define HAVE_GETSOCKOPT_DECL 1
50187 ice_have_gettimeofday=no
50189 for ac_func in gettimeofday
50191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50192 echo "$as_me:$LINENO: checking for $ac_func" >&5
50193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50194 if eval "test \"\${$as_ac_var+set}\" = set"; then
50195 echo $ECHO_N "(cached) $ECHO_C" >&6
50197 cat >conftest.$ac_ext <<_ACEOF
50200 cat confdefs.h >>conftest.$ac_ext
50201 cat >>conftest.$ac_ext <<_ACEOF
50202 /* end confdefs.h. */
50203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50205 #define $ac_func innocuous_$ac_func
50207 /* System header to define __stub macros and hopefully few prototypes,
50208 which can conflict with char $ac_func (); below.
50209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50210 <limits.h> exists even on freestanding compilers. */
50213 # include <limits.h>
50215 # include <assert.h>
50220 /* Override any gcc2 internal prototype to avoid an error. */
50225 /* We use char because int might match the return type of a gcc2
50226 builtin and then its argument prototype would still apply. */
50228 /* The GNU C library defines this for functions which it implements
50229 to always fail with ENOSYS. Some functions are actually named
50230 something starting with __ and the normal name is an alias. */
50231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50234 char (*f) () = $ac_func;
50243 return f != $ac_func;
50248 rm -f conftest.$ac_objext conftest$ac_exeext
50249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50250 (eval $ac_link) 2>conftest.er1
50252 grep -v '^ *+' conftest.er1 >conftest.err
50254 cat conftest.err >&5
50255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50256 (exit $ac_status); } &&
50257 { ac_try='test -z "$ac_c_werror_flag"
50258 || test ! -s conftest.err'
50259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50260 (eval $ac_try) 2>&5
50262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50263 (exit $ac_status); }; } &&
50264 { ac_try='test -s conftest$ac_exeext'
50265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50266 (eval $ac_try) 2>&5
50268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50269 (exit $ac_status); }; }; then
50270 eval "$as_ac_var=yes"
50272 echo "$as_me: failed program was:" >&5
50273 sed 's/^/| /' conftest.$ac_ext >&5
50275 eval "$as_ac_var=no"
50277 rm -f conftest.err conftest.$ac_objext \
50278 conftest$ac_exeext conftest.$ac_ext
50280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50281 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50282 if test `eval echo '${'$as_ac_var'}'` = yes; then
50283 cat >>confdefs.h <<_ACEOF
50284 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50286 ice_have_gettimeofday=yes
50290 if test "${ice_have_gettimeofday}" = yes; then
50291 echo "$as_me:$LINENO: checking for gettimeofday declaration in time.h sys/time.h" >&5
50292 echo $ECHO_N "checking for gettimeofday declaration in time.h sys/time.h... $ECHO_C" >&6
50293 if test "${ice_cv_have_gettimeofday_decl+set}" = set; then
50294 echo $ECHO_N "(cached) $ECHO_C" >&6
50297 ice_cv_have_gettimeofday_decl=no
50298 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50299 ice_re_word='(^|[^a-zA-Z0-9_])'
50300 for header in time.h sys/time.h; do
50301 # Check for ordinary declaration
50302 cat >conftest.$ac_ext <<_ACEOF
50305 cat confdefs.h >>conftest.$ac_ext
50306 cat >>conftest.$ac_ext <<_ACEOF
50307 /* end confdefs.h. */
50311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50312 $EGREP "${ice_re_word}gettimeofday[ ]*\(" >/dev/null 2>&1; then
50313 ice_cv_have_gettimeofday_decl=yes
50317 if test "$ice_cv_have_gettimeofday_decl" = yes; then
50320 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50321 cat >conftest.$ac_ext <<_ACEOF
50324 cat confdefs.h >>conftest.$ac_ext
50325 cat >>conftest.$ac_ext <<_ACEOF
50326 /* end confdefs.h. */
50330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50331 $EGREP "${ice_re_word}gettimeofday[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50332 ice_cv_have_gettimeofday_decl=yes
50336 if test "$ice_cv_have_gettimeofday_decl" = yes; then
50343 echo "$as_me:$LINENO: result: $ice_cv_have_gettimeofday_decl" >&5
50344 echo "${ECHO_T}$ice_cv_have_gettimeofday_decl" >&6
50345 if test "$ice_cv_have_gettimeofday_decl" = yes; then
50347 cat >>confdefs.h <<_ACEOF
50348 #define HAVE_GETTIMEOFDAY_DECL 1
50356 echo "$as_me:$LINENO: checking for gettimeofday number of arguments" >&5
50357 echo $ECHO_N "checking for gettimeofday number of arguments... $ECHO_C" >&6
50358 if test "${amanda_cv_gettimeofday_args+set}" = set; then
50359 echo $ECHO_N "(cached) $ECHO_C" >&6
50362 cat >conftest.$ac_ext <<_ACEOF
50365 cat confdefs.h >>conftest.$ac_ext
50366 cat >>conftest.$ac_ext <<_ACEOF
50367 /* end confdefs.h. */
50369 #ifdef TIME_WITH_SYS_TIME
50370 # include <sys/time.h>
50373 # ifdef HAVE_SYS_TIME_H
50374 # include <sys/time.h>
50384 struct timeval val;
50385 struct timezone zone;
50386 gettimeofday(&val, &zone);
50392 rm -f conftest.$ac_objext
50393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50394 (eval $ac_compile) 2>conftest.er1
50396 grep -v '^ *+' conftest.er1 >conftest.err
50398 cat conftest.err >&5
50399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50400 (exit $ac_status); } &&
50401 { ac_try='test -z "$ac_c_werror_flag"
50402 || test ! -s conftest.err'
50403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50404 (eval $ac_try) 2>&5
50406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50407 (exit $ac_status); }; } &&
50408 { ac_try='test -s conftest.$ac_objext'
50409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50410 (eval $ac_try) 2>&5
50412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50413 (exit $ac_status); }; }; then
50414 amanda_cv_gettimeofday_args=2
50416 echo "$as_me: failed program was:" >&5
50417 sed 's/^/| /' conftest.$ac_ext >&5
50419 amanda_cv_gettimeofday_args=1
50422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50426 echo "$as_me:$LINENO: result: $amanda_cv_gettimeofday_args" >&5
50427 echo "${ECHO_T}$amanda_cv_gettimeofday_args" >&6
50428 if test "$amanda_cv_gettimeofday_args" = 2; then
50430 cat >>confdefs.h <<\_ACEOF
50431 #define HAVE_TWO_ARG_GETTIMEOFDAY 1
50440 for ac_func in getvfsent initgroups isascii
50442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50443 echo "$as_me:$LINENO: checking for $ac_func" >&5
50444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50445 if eval "test \"\${$as_ac_var+set}\" = set"; then
50446 echo $ECHO_N "(cached) $ECHO_C" >&6
50448 cat >conftest.$ac_ext <<_ACEOF
50451 cat confdefs.h >>conftest.$ac_ext
50452 cat >>conftest.$ac_ext <<_ACEOF
50453 /* end confdefs.h. */
50454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50456 #define $ac_func innocuous_$ac_func
50458 /* System header to define __stub macros and hopefully few prototypes,
50459 which can conflict with char $ac_func (); below.
50460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50461 <limits.h> exists even on freestanding compilers. */
50464 # include <limits.h>
50466 # include <assert.h>
50471 /* Override any gcc2 internal prototype to avoid an error. */
50476 /* We use char because int might match the return type of a gcc2
50477 builtin and then its argument prototype would still apply. */
50479 /* The GNU C library defines this for functions which it implements
50480 to always fail with ENOSYS. Some functions are actually named
50481 something starting with __ and the normal name is an alias. */
50482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50485 char (*f) () = $ac_func;
50494 return f != $ac_func;
50499 rm -f conftest.$ac_objext conftest$ac_exeext
50500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50501 (eval $ac_link) 2>conftest.er1
50503 grep -v '^ *+' conftest.er1 >conftest.err
50505 cat conftest.err >&5
50506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50507 (exit $ac_status); } &&
50508 { ac_try='test -z "$ac_c_werror_flag"
50509 || test ! -s conftest.err'
50510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50511 (eval $ac_try) 2>&5
50513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50514 (exit $ac_status); }; } &&
50515 { ac_try='test -s conftest$ac_exeext'
50516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50517 (eval $ac_try) 2>&5
50519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50520 (exit $ac_status); }; }; then
50521 eval "$as_ac_var=yes"
50523 echo "$as_me: failed program was:" >&5
50524 sed 's/^/| /' conftest.$ac_ext >&5
50526 eval "$as_ac_var=no"
50528 rm -f conftest.err conftest.$ac_objext \
50529 conftest$ac_exeext conftest.$ac_ext
50531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50532 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50533 if test `eval echo '${'$as_ac_var'}'` = yes; then
50534 cat >>confdefs.h <<_ACEOF
50535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50542 ice_have_initgroups=no
50544 for ac_func in initgroups
50546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50547 echo "$as_me:$LINENO: checking for $ac_func" >&5
50548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50549 if eval "test \"\${$as_ac_var+set}\" = set"; then
50550 echo $ECHO_N "(cached) $ECHO_C" >&6
50552 cat >conftest.$ac_ext <<_ACEOF
50555 cat confdefs.h >>conftest.$ac_ext
50556 cat >>conftest.$ac_ext <<_ACEOF
50557 /* end confdefs.h. */
50558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50560 #define $ac_func innocuous_$ac_func
50562 /* System header to define __stub macros and hopefully few prototypes,
50563 which can conflict with char $ac_func (); below.
50564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50565 <limits.h> exists even on freestanding compilers. */
50568 # include <limits.h>
50570 # include <assert.h>
50575 /* Override any gcc2 internal prototype to avoid an error. */
50580 /* We use char because int might match the return type of a gcc2
50581 builtin and then its argument prototype would still apply. */
50583 /* The GNU C library defines this for functions which it implements
50584 to always fail with ENOSYS. Some functions are actually named
50585 something starting with __ and the normal name is an alias. */
50586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50589 char (*f) () = $ac_func;
50598 return f != $ac_func;
50603 rm -f conftest.$ac_objext conftest$ac_exeext
50604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50605 (eval $ac_link) 2>conftest.er1
50607 grep -v '^ *+' conftest.er1 >conftest.err
50609 cat conftest.err >&5
50610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50611 (exit $ac_status); } &&
50612 { ac_try='test -z "$ac_c_werror_flag"
50613 || test ! -s conftest.err'
50614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50615 (eval $ac_try) 2>&5
50617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50618 (exit $ac_status); }; } &&
50619 { ac_try='test -s conftest$ac_exeext'
50620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50621 (eval $ac_try) 2>&5
50623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50624 (exit $ac_status); }; }; then
50625 eval "$as_ac_var=yes"
50627 echo "$as_me: failed program was:" >&5
50628 sed 's/^/| /' conftest.$ac_ext >&5
50630 eval "$as_ac_var=no"
50632 rm -f conftest.err conftest.$ac_objext \
50633 conftest$ac_exeext conftest.$ac_ext
50635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50637 if test `eval echo '${'$as_ac_var'}'` = yes; then
50638 cat >>confdefs.h <<_ACEOF
50639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50641 ice_have_initgroups=yes
50645 if test "${ice_have_initgroups}" = yes; then
50646 echo "$as_me:$LINENO: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
50647 echo $ECHO_N "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... $ECHO_C" >&6
50648 if test "${ice_cv_have_initgroups_decl+set}" = set; then
50649 echo $ECHO_N "(cached) $ECHO_C" >&6
50652 ice_cv_have_initgroups_decl=no
50653 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50654 ice_re_word='(^|[^a-zA-Z0-9_])'
50655 for header in grp.h sys/types.h unistd.h libc.h; do
50656 # Check for ordinary declaration
50657 cat >conftest.$ac_ext <<_ACEOF
50660 cat confdefs.h >>conftest.$ac_ext
50661 cat >>conftest.$ac_ext <<_ACEOF
50662 /* end confdefs.h. */
50666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50667 $EGREP "${ice_re_word}initgroups[ ]*\(" >/dev/null 2>&1; then
50668 ice_cv_have_initgroups_decl=yes
50672 if test "$ice_cv_have_initgroups_decl" = yes; then
50675 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50676 cat >conftest.$ac_ext <<_ACEOF
50679 cat confdefs.h >>conftest.$ac_ext
50680 cat >>conftest.$ac_ext <<_ACEOF
50681 /* end confdefs.h. */
50685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50686 $EGREP "${ice_re_word}initgroups[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50687 ice_cv_have_initgroups_decl=yes
50691 if test "$ice_cv_have_initgroups_decl" = yes; then
50698 echo "$as_me:$LINENO: result: $ice_cv_have_initgroups_decl" >&5
50699 echo "${ECHO_T}$ice_cv_have_initgroups_decl" >&6
50700 if test "$ice_cv_have_initgroups_decl" = yes; then
50702 cat >>confdefs.h <<_ACEOF
50703 #define HAVE_INITGROUPS_DECL 1
50712 for ac_func in ioctl
50714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50715 echo "$as_me:$LINENO: checking for $ac_func" >&5
50716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50717 if eval "test \"\${$as_ac_var+set}\" = set"; then
50718 echo $ECHO_N "(cached) $ECHO_C" >&6
50720 cat >conftest.$ac_ext <<_ACEOF
50723 cat confdefs.h >>conftest.$ac_ext
50724 cat >>conftest.$ac_ext <<_ACEOF
50725 /* end confdefs.h. */
50726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50728 #define $ac_func innocuous_$ac_func
50730 /* System header to define __stub macros and hopefully few prototypes,
50731 which can conflict with char $ac_func (); below.
50732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50733 <limits.h> exists even on freestanding compilers. */
50736 # include <limits.h>
50738 # include <assert.h>
50743 /* Override any gcc2 internal prototype to avoid an error. */
50748 /* We use char because int might match the return type of a gcc2
50749 builtin and then its argument prototype would still apply. */
50751 /* The GNU C library defines this for functions which it implements
50752 to always fail with ENOSYS. Some functions are actually named
50753 something starting with __ and the normal name is an alias. */
50754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50757 char (*f) () = $ac_func;
50766 return f != $ac_func;
50771 rm -f conftest.$ac_objext conftest$ac_exeext
50772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50773 (eval $ac_link) 2>conftest.er1
50775 grep -v '^ *+' conftest.er1 >conftest.err
50777 cat conftest.err >&5
50778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50779 (exit $ac_status); } &&
50780 { ac_try='test -z "$ac_c_werror_flag"
50781 || test ! -s conftest.err'
50782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50783 (eval $ac_try) 2>&5
50785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50786 (exit $ac_status); }; } &&
50787 { ac_try='test -s conftest$ac_exeext'
50788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50789 (eval $ac_try) 2>&5
50791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50792 (exit $ac_status); }; }; then
50793 eval "$as_ac_var=yes"
50795 echo "$as_me: failed program was:" >&5
50796 sed 's/^/| /' conftest.$ac_ext >&5
50798 eval "$as_ac_var=no"
50800 rm -f conftest.err conftest.$ac_objext \
50801 conftest$ac_exeext conftest.$ac_ext
50803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50804 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50805 if test `eval echo '${'$as_ac_var'}'` = yes; then
50806 cat >>confdefs.h <<_ACEOF
50807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50813 if test "${ice_have_ioctl}" = yes; then
50814 echo "$as_me:$LINENO: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
50815 echo $ECHO_N "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... $ECHO_C" >&6
50816 if test "${ice_cv_have_ioctl_decl+set}" = set; then
50817 echo $ECHO_N "(cached) $ECHO_C" >&6
50820 ice_cv_have_ioctl_decl=no
50821 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50822 ice_re_word='(^|[^a-zA-Z0-9_])'
50823 for header in sys/ioctl.h unistd.h libc.h; do
50824 # Check for ordinary declaration
50825 cat >conftest.$ac_ext <<_ACEOF
50828 cat confdefs.h >>conftest.$ac_ext
50829 cat >>conftest.$ac_ext <<_ACEOF
50830 /* end confdefs.h. */
50834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50835 $EGREP "${ice_re_word}ioctl[ ]*\(" >/dev/null 2>&1; then
50836 ice_cv_have_ioctl_decl=yes
50840 if test "$ice_cv_have_ioctl_decl" = yes; then
50843 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50844 cat >conftest.$ac_ext <<_ACEOF
50847 cat confdefs.h >>conftest.$ac_ext
50848 cat >>conftest.$ac_ext <<_ACEOF
50849 /* end confdefs.h. */
50853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50854 $EGREP "${ice_re_word}ioctl[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50855 ice_cv_have_ioctl_decl=yes
50859 if test "$ice_cv_have_ioctl_decl" = yes; then
50866 echo "$as_me:$LINENO: result: $ice_cv_have_ioctl_decl" >&5
50867 echo "${ECHO_T}$ice_cv_have_ioctl_decl" >&6
50868 if test "$ice_cv_have_ioctl_decl" = yes; then
50870 cat >>confdefs.h <<_ACEOF
50871 #define HAVE_IOCTL_DECL 1
50878 ice_have_isnormal=no
50880 for ac_func in isnormal
50882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50883 echo "$as_me:$LINENO: checking for $ac_func" >&5
50884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50885 if eval "test \"\${$as_ac_var+set}\" = set"; then
50886 echo $ECHO_N "(cached) $ECHO_C" >&6
50888 cat >conftest.$ac_ext <<_ACEOF
50891 cat confdefs.h >>conftest.$ac_ext
50892 cat >>conftest.$ac_ext <<_ACEOF
50893 /* end confdefs.h. */
50894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50896 #define $ac_func innocuous_$ac_func
50898 /* System header to define __stub macros and hopefully few prototypes,
50899 which can conflict with char $ac_func (); below.
50900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50901 <limits.h> exists even on freestanding compilers. */
50904 # include <limits.h>
50906 # include <assert.h>
50911 /* Override any gcc2 internal prototype to avoid an error. */
50916 /* We use char because int might match the return type of a gcc2
50917 builtin and then its argument prototype would still apply. */
50919 /* The GNU C library defines this for functions which it implements
50920 to always fail with ENOSYS. Some functions are actually named
50921 something starting with __ and the normal name is an alias. */
50922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50925 char (*f) () = $ac_func;
50934 return f != $ac_func;
50939 rm -f conftest.$ac_objext conftest$ac_exeext
50940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50941 (eval $ac_link) 2>conftest.er1
50943 grep -v '^ *+' conftest.er1 >conftest.err
50945 cat conftest.err >&5
50946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50947 (exit $ac_status); } &&
50948 { ac_try='test -z "$ac_c_werror_flag"
50949 || test ! -s conftest.err'
50950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50951 (eval $ac_try) 2>&5
50953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50954 (exit $ac_status); }; } &&
50955 { ac_try='test -s conftest$ac_exeext'
50956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50957 (eval $ac_try) 2>&5
50959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50960 (exit $ac_status); }; }; then
50961 eval "$as_ac_var=yes"
50963 echo "$as_me: failed program was:" >&5
50964 sed 's/^/| /' conftest.$ac_ext >&5
50966 eval "$as_ac_var=no"
50968 rm -f conftest.err conftest.$ac_objext \
50969 conftest$ac_exeext conftest.$ac_ext
50971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50972 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50973 if test `eval echo '${'$as_ac_var'}'` = yes; then
50974 cat >>confdefs.h <<_ACEOF
50975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50977 ice_have_isnormal=yes
50981 if test "${ice_have_isnormal}" = yes; then
50982 echo "$as_me:$LINENO: checking for isnormal declaration in math.h" >&5
50983 echo $ECHO_N "checking for isnormal declaration in math.h... $ECHO_C" >&6
50984 if test "${ice_cv_have_isnormal_decl+set}" = set; then
50985 echo $ECHO_N "(cached) $ECHO_C" >&6
50988 ice_cv_have_isnormal_decl=no
50989 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50990 ice_re_word='(^|[^a-zA-Z0-9_])'
50991 for header in math.h; do
50992 # Check for ordinary declaration
50993 cat >conftest.$ac_ext <<_ACEOF
50996 cat confdefs.h >>conftest.$ac_ext
50997 cat >>conftest.$ac_ext <<_ACEOF
50998 /* end confdefs.h. */
51002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51003 $EGREP "${ice_re_word}isnormal[ ]*\(" >/dev/null 2>&1; then
51004 ice_cv_have_isnormal_decl=yes
51008 if test "$ice_cv_have_isnormal_decl" = yes; then
51011 # Check for "fixed" declaration like "getpid _PARAMS((int))"
51012 cat >conftest.$ac_ext <<_ACEOF
51015 cat confdefs.h >>conftest.$ac_ext
51016 cat >>conftest.$ac_ext <<_ACEOF
51017 /* end confdefs.h. */
51021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51022 $EGREP "${ice_re_word}isnormal[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
51023 ice_cv_have_isnormal_decl=yes
51027 if test "$ice_cv_have_isnormal_decl" = yes; then
51034 echo "$as_me:$LINENO: result: $ice_cv_have_isnormal_decl" >&5
51035 echo "${ECHO_T}$ice_cv_have_isnormal_decl" >&6
51036 if test "$ice_cv_have_isnormal_decl" = yes; then
51038 cat >>confdefs.h <<_ACEOF
51039 #define HAVE_ISNORMAL_DECL 1
51048 for ac_func in listen
51050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51051 echo "$as_me:$LINENO: checking for $ac_func" >&5
51052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51053 if eval "test \"\${$as_ac_var+set}\" = set"; then
51054 echo $ECHO_N "(cached) $ECHO_C" >&6
51056 cat >conftest.$ac_ext <<_ACEOF
51059 cat confdefs.h >>conftest.$ac_ext
51060 cat >>conftest.$ac_ext <<_ACEOF
51061 /* end confdefs.h. */
51062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51064 #define $ac_func innocuous_$ac_func
51066 /* System header to define __stub macros and hopefully few prototypes,
51067 which can conflict with char $ac_func (); below.
51068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51069 <limits.h> exists even on freestanding compilers. */
51072 # include <limits.h>
51074 # include <assert.h>
51079 /* Override any gcc2 internal prototype to avoid an error. */
51084 /* We use char because int might match the return type of a gcc2
51085 builtin and then its argument prototype would still apply. */
51087 /* The GNU C library defines this for functions which it implements
51088 to always fail with ENOSYS. Some functions are actually named
51089 something starting with __ and the normal name is an alias. */
51090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51093 char (*f) () = $ac_func;
51102 return f != $ac_func;
51107 rm -f conftest.$ac_objext conftest$ac_exeext
51108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51109 (eval $ac_link) 2>conftest.er1
51111 grep -v '^ *+' conftest.er1 >conftest.err
51113 cat conftest.err >&5
51114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51115 (exit $ac_status); } &&
51116 { ac_try='test -z "$ac_c_werror_flag"
51117 || test ! -s conftest.err'
51118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51119 (eval $ac_try) 2>&5
51121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51122 (exit $ac_status); }; } &&
51123 { ac_try='test -s conftest$ac_exeext'
51124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51125 (eval $ac_try) 2>&5
51127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51128 (exit $ac_status); }; }; then
51129 eval "$as_ac_var=yes"
51131 echo "$as_me: failed program was:" >&5
51132 sed 's/^/| /' conftest.$ac_ext >&5
51134 eval "$as_ac_var=no"
51136 rm -f conftest.err conftest.$ac_objext \
51137 conftest$ac_exeext conftest.$ac_ext
51139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51140 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51141 if test `eval echo '${'$as_ac_var'}'` = yes; then
51142 cat >>confdefs.h <<_ACEOF
51143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51145 ice_have_listen=yes
51149 if test "${ice_have_listen}" = yes; then
51150 echo "$as_me:$LINENO: checking for listen declaration in sys/types.h sys/socket.h" >&5
51151 echo $ECHO_N "checking for listen declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
51152 if test "${ice_cv_have_listen_decl+set}" = set; then
51153 echo $ECHO_N "(cached) $ECHO_C" >&6
51156 ice_cv_have_listen_decl=no
51157 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
51158 ice_re_word='(^|[^a-zA-Z0-9_])'
51159 for header in sys/types.h sys/socket.h; do
51160 # Check for ordinary declaration
51161 cat >conftest.$ac_ext <<_ACEOF
51164 cat confdefs.h >>conftest.$ac_ext
51165 cat >>conftest.$ac_ext <<_ACEOF
51166 /* end confdefs.h. */
51170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51171 $EGREP "${ice_re_word}listen[ ]*\(" >/dev/null 2>&1; then
51172 ice_cv_have_listen_decl=yes
51176 if test "$ice_cv_have_listen_decl" = yes; then
51179 # Check for "fixed" declaration like "getpid _PARAMS((int))"
51180 cat >conftest.$ac_ext <<_ACEOF
51183 cat confdefs.h >>conftest.$ac_ext
51184 cat >>conftest.$ac_ext <<_ACEOF
51185 /* end confdefs.h. */
51189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51190 $EGREP "${ice_re_word}listen[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
51191 ice_cv_have_listen_decl=yes
51195 if test "$ice_cv_have_listen_decl" = yes; then
51202 echo "$as_me:$LINENO: result: $ice_cv_have_listen_decl" >&5
51203 echo "${ECHO_T}$ice_cv_have_listen_decl" >&6
51204 if test "$ice_cv_have_listen_decl" = yes; then
51206 cat >>confdefs.h <<_ACEOF
51207 #define HAVE_LISTEN_DECL 1
51216 for ac_func in lstat
51218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51219 echo "$as_me:$LINENO: checking for $ac_func" >&5
51220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51221 if eval "test \"\${$as_ac_var+set}\" = set"; then
51222 echo $ECHO_N "(cached) $ECHO_C" >&6
51224 cat >conftest.$ac_ext <<_ACEOF
51227 cat confdefs.h >>conftest.$ac_ext
51228 cat >>conftest.$ac_ext <<_ACEOF
51229 /* end confdefs.h. */
51230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51232 #define $ac_func innocuous_$ac_func
51234 /* System header to define __stub macros and hopefully few prototypes,
51235 which can conflict with char $ac_func (); below.
51236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51237 <limits.h> exists even on freestanding compilers. */
51240 # include <limits.h>
51242 # include <assert.h>
51247 /* Override any gcc2 internal prototype to avoid an error. */
51252 /* We use char because int might match the return type of a gcc2
51253 builtin and then its argument prototype would still apply. */
51255 /* The GNU C library defines this for functions which it implements
51256 to always fail with ENOSYS. Some functions are actually named
51257 something starting with __ and the normal name is an alias. */
51258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51261 char (*f) () = $ac_func;
51270 return f != $ac_func;
51275 rm -f conftest.$ac_objext conftest$ac_exeext
51276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51277 (eval $ac_link) 2>conftest.er1
51279 grep -v '^ *+' conftest.er1 >conftest.err
51281 cat conftest.err >&5
51282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51283 (exit $ac_status); } &&
51284 { ac_try='test -z "$ac_c_werror_flag"
51285 || test ! -s conftest.err'
51286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51287 (eval $ac_try) 2>&5
51289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51290 (exit $ac_status); }; } &&
51291 { ac_try='test -s conftest$ac_exeext'
51292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51293 (eval $ac_try) 2>&5
51295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51296 (exit $ac_status); }; }; then
51297 eval "$as_ac_var=yes"
51299 echo "$as_me: failed program was:" >&5
51300 sed 's/^/| /' conftest.$ac_ext >&5
51302 eval "$as_ac_var=no"
51304 rm -f conftest.err conftest.$ac_objext \
51305 conftest$ac_exeext conftest.$ac_ext
51307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51308 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51309 if test `eval echo '${'$as_ac_var'}'` = yes; then
51310 cat >>confdefs.h <<_ACEOF
51311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51317 if test "${ice_have_lstat}" = yes; then
51318 echo "$as_me:$LINENO: checking for lstat declaration in sys/types.h sys/stat.h" >&5
51319 echo $ECHO_N "checking for lstat declaration in sys/types.h sys/stat.h... $ECHO_C" >&6
51320 if test "${ice_cv_have_lstat_decl+set}" = set; then
51321 echo $ECHO_N "(cached) $ECHO_C" >&6
51324 ice_cv_have_lstat_decl=no
51325 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
51326 ice_re_word='(^|[^a-zA-Z0-9_])'
51327 for header in sys/types.h sys/stat.h; do
51328 # Check for ordinary declaration
51329 cat >conftest.$ac_ext <<_ACEOF
51332 cat confdefs.h >>conftest.$ac_ext
51333 cat >>conftest.$ac_ext <<_ACEOF
51334 /* end confdefs.h. */
51338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51339 $EGREP "${ice_re_word}lstat[ ]*\(" >/dev/null 2>&1; then
51340 ice_cv_have_lstat_decl=yes
51344 if test "$ice_cv_have_lstat_decl" = yes; then
51347 # Check for "fixed" declaration like "getpid _PARAMS((int))"
51348 cat >conftest.$ac_ext <<_ACEOF
51351 cat confdefs.h >>conftest.$ac_ext
51352 cat >>conftest.$ac_ext <<_ACEOF
51353 /* end confdefs.h. */
51357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51358 $EGREP "${ice_re_word}lstat[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
51359 ice_cv_have_lstat_decl=yes
51363 if test "$ice_cv_have_lstat_decl" = yes; then
51370 echo "$as_me:$LINENO: result: $ice_cv_have_lstat_decl" >&5
51371 echo "${ECHO_T}$ice_cv_have_lstat_decl" >&6
51372 if test "$ice_cv_have_lstat_decl" = yes; then
51374 cat >>confdefs.h <<_ACEOF
51375 #define HAVE_LSTAT_DECL 1
51384 for ac_func in malloc
51386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51387 echo "$as_me:$LINENO: checking for $ac_func" >&5
51388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51389 if eval "test \"\${$as_ac_var+set}\" = set"; then
51390 echo $ECHO_N "(cached) $ECHO_C" >&6
51392 cat >conftest.$ac_ext <<_ACEOF
51395 cat confdefs.h >>conftest.$ac_ext
51396 cat >>conftest.$ac_ext <<_ACEOF
51397 /* end confdefs.h. */
51398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51400 #define $ac_func innocuous_$ac_func
51402 /* System header to define __stub macros and hopefully few prototypes,
51403 which can conflict with char $ac_func (); below.
51404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51405 <limits.h> exists even on freestanding compilers. */
51408 # include <limits.h>
51410 # include <assert.h>
51415 /* Override any gcc2 internal prototype to avoid an error. */
51420 /* We use char because int might match the return type of a gcc2
51421 builtin and then its argument prototype would still apply. */
51423 /* The GNU C library defines this for functions which it implements
51424 to always fail with ENOSYS. Some functions are actually named
51425 something starting with __ and the normal name is an alias. */
51426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51429 char (*f) () = $ac_func;
51438 return f != $ac_func;
51443 rm -f conftest.$ac_objext conftest$ac_exeext
51444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51445 (eval $ac_link) 2>conftest.er1
51447 grep -v '^ *+' conftest.er1 >conftest.err
51449 cat conftest.err >&5
51450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51451 (exit $ac_status); } &&
51452 { ac_try='test -z "$ac_c_werror_flag"
51453 || test ! -s conftest.err'
51454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51455 (eval $ac_try) 2>&5
51457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51458 (exit $ac_status); }; } &&
51459 { ac_try='test -s conftest$ac_exeext'
51460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51461 (eval $ac_try) 2>&5
51463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51464 (exit $ac_status); }; }; then
51465 eval "$as_ac_var=yes"
51467 echo "$as_me: failed program was:" >&5
51468 sed 's/^/| /' conftest.$ac_ext >&5
51470 eval "$as_ac_var=no"
51472 rm -f conftest.err conftest.$ac_objext \
51473 conftest$ac_exeext conftest.$ac_ext
51475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51476 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51477 if test `eval echo '${'$as_ac_var'}'` = yes; then
51478 cat >>confdefs.h <<_ACEOF
51479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51481 ice_have_malloc=yes
51485 if test "${ice_have_malloc}" = yes; then
51486 echo "$as_me:$LINENO: checking for malloc declaration in stdlib.h" >&5
51487 echo $ECHO_N "checking for malloc declaration in stdlib.h... $ECHO_C" >&6
51488 if test "${ice_cv_have_malloc_decl+set}" = set; then
51489 echo $ECHO_N "(cached) $ECHO_C" >&6
51492 ice_cv_have_malloc_decl=no
51493 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
51494 ice_re_word='(^|[^a-zA-Z0-9_])'
51495 for header in stdlib.h; do
51496 # Check for ordinary declaration
51497 cat >conftest.$ac_ext <<_ACEOF
51500 cat confdefs.h >>conftest.$ac_ext
51501 cat >>conftest.$ac_ext <<_ACEOF
51502 /* end confdefs.h. */
51506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51507 $EGREP "${ice_re_word}malloc[ ]*\(" >/dev/null 2>&1; then
51508 ice_cv_have_malloc_decl=yes
51512 if test "$ice_cv_have_malloc_decl" = yes; then
51515 # Check for "fixed" declaration like "getpid _PARAMS((int))"
51516 cat >conftest.$ac_ext <<_ACEOF
51519 cat confdefs.h >>conftest.$ac_ext
51520 cat >>conftest.$ac_ext <<_ACEOF
51521 /* end confdefs.h. */
51525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51526 $EGREP "${ice_re_word}malloc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
51527 ice_cv_have_malloc_decl=yes
51531 if test "$ice_cv_have_malloc_decl" = yes; then
51538 echo "$as_me:$LINENO: result: $ice_cv_have_malloc_decl" >&5
51539 echo "${ECHO_T}$ice_cv_have_malloc_decl" >&6
51540 if test "$ice_cv_have_malloc_decl" = yes; then
51542 cat >>confdefs.h <<_ACEOF
51543 #define HAVE_MALLOC_DECL 1
51550 ice_have_memmove=no
51552 for ac_func in memmove
51554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51555 echo "$as_me:$LINENO: checking for $ac_func" >&5
51556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51557 if eval "test \"\${$as_ac_var+set}\" = set"; then
51558 echo $ECHO_N "(cached) $ECHO_C" >&6
51560 cat >conftest.$ac_ext <<_ACEOF
51563 cat confdefs.h >>conftest.$ac_ext
51564 cat >>conftest.$ac_ext <<_ACEOF
51565 /* end confdefs.h. */
51566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51568 #define $ac_func innocuous_$ac_func
51570 /* System header to define __stub macros and hopefully few prototypes,
51571 which can conflict with char $ac_func (); below.
51572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51573 <limits.h> exists even on freestanding compilers. */
51576 # include <limits.h>
51578 # include <assert.h>
51583 /* Override any gcc2 internal prototype to avoid an error. */
51588 /* We use char because int might match the return type of a gcc2
51589 builtin and then its argument prototype would still apply. */
51591 /* The GNU C library defines this for functions which it implements
51592 to always fail with ENOSYS. Some functions are actually named
51593 something starting with __ and the normal name is an alias. */
51594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51597 char (*f) () = $ac_func;
51606 return f != $ac_func;
51611 rm -f conftest.$ac_objext conftest$ac_exeext
51612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51613 (eval $ac_link) 2>conftest.er1
51615 grep -v '^ *+' conftest.er1 >conftest.err
51617 cat conftest.err >&5
51618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51619 (exit $ac_status); } &&
51620 { ac_try='test -z "$ac_c_werror_flag"
51621 || test ! -s conftest.err'
51622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51623 (eval $ac_try) 2>&5
51625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51626 (exit $ac_status); }; } &&
51627 { ac_try='test -s conftest$ac_exeext'
51628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51629 (eval $ac_try) 2>&5
51631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51632 (exit $ac_status); }; }; then
51633 eval "$as_ac_var=yes"
51635 echo "$as_me: failed program was:" >&5
51636 sed 's/^/| /' conftest.$ac_ext >&5
51638 eval "$as_ac_var=no"
51640 rm -f conftest.err conftest.$ac_objext \
51641 conftest$ac_exeext conftest.$ac_ext
51643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51645 if test `eval echo '${'$as_ac_var'}'` = yes; then
51646 cat >>confdefs.h <<_ACEOF
51647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51649 ice_have_memmove=yes
51653 if test "${ice_have_memmove}" = yes; then
51654 echo "$as_me:$LINENO: checking for memmove declaration in string.h strings.h" >&5
51655 echo $ECHO_N "checking for memmove declaration in string.h strings.h... $ECHO_C" >&6
51656 if test "${ice_cv_have_memmove_decl+set}" = set; then
51657 echo $ECHO_N "(cached) $ECHO_C" >&6
51660 ice_cv_have_memmove_decl=no
51661 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
51662 ice_re_word='(^|[^a-zA-Z0-9_])'
51663 for header in string.h strings.h; do
51664 # Check for ordinary declaration
51665 cat >conftest.$ac_ext <<_ACEOF
51668 cat confdefs.h >>conftest.$ac_ext
51669 cat >>conftest.$ac_ext <<_ACEOF
51670 /* end confdefs.h. */
51674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51675 $EGREP "${ice_re_word}memmove[ ]*\(" >/dev/null 2>&1; then
51676 ice_cv_have_memmove_decl=yes
51680 if test "$ice_cv_have_memmove_decl" = yes; then
51683 # Check for "fixed" declaration like "getpid _PARAMS((int))"
51684 cat >conftest.$ac_ext <<_ACEOF
51687 cat confdefs.h >>conftest.$ac_ext
51688 cat >>conftest.$ac_ext <<_ACEOF
51689 /* end confdefs.h. */
51693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51694 $EGREP "${ice_re_word}memmove[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
51695 ice_cv_have_memmove_decl=yes
51699 if test "$ice_cv_have_memmove_decl" = yes; then
51706 echo "$as_me:$LINENO: result: $ice_cv_have_memmove_decl" >&5
51707 echo "${ECHO_T}$ice_cv_have_memmove_decl" >&6
51708 if test "$ice_cv_have_memmove_decl" = yes; then
51710 cat >>confdefs.h <<_ACEOF
51711 #define HAVE_MEMMOVE_DECL 1
51720 for ac_func in memset
51722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51723 echo "$as_me:$LINENO: checking for $ac_func" >&5
51724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51725 if eval "test \"\${$as_ac_var+set}\" = set"; then
51726 echo $ECHO_N "(cached) $ECHO_C" >&6
51728 cat >conftest.$ac_ext <<_ACEOF
51731 cat confdefs.h >>conftest.$ac_ext
51732 cat >>conftest.$ac_ext <<_ACEOF
51733 /* end confdefs.h. */
51734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51736 #define $ac_func innocuous_$ac_func
51738 /* System header to define __stub macros and hopefully few prototypes,
51739 which can conflict with char $ac_func (); below.
51740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51741 <limits.h> exists even on freestanding compilers. */
51744 # include <limits.h>
51746 # include <assert.h>
51751 /* Override any gcc2 internal prototype to avoid an error. */
51756 /* We use char because int might match the return type of a gcc2
51757 builtin and then its argument prototype would still apply. */
51759 /* The GNU C library defines this for functions which it implements
51760 to always fail with ENOSYS. Some functions are actually named
51761 something starting with __ and the normal name is an alias. */
51762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51765 char (*f) () = $ac_func;
51774 return f != $ac_func;
51779 rm -f conftest.$ac_objext conftest$ac_exeext
51780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51781 (eval $ac_link) 2>conftest.er1
51783 grep -v '^ *+' conftest.er1 >conftest.err
51785 cat conftest.err >&5
51786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51787 (exit $ac_status); } &&
51788 { ac_try='test -z "$ac_c_werror_flag"
51789 || test ! -s conftest.err'
51790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51791 (eval $ac_try) 2>&5
51793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51794 (exit $ac_status); }; } &&
51795 { ac_try='test -s conftest$ac_exeext'
51796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51797 (eval $ac_try) 2>&5
51799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51800 (exit $ac_status); }; }; then
51801 eval "$as_ac_var=yes"
51803 echo "$as_me: failed program was:" >&5
51804 sed 's/^/| /' conftest.$ac_ext >&5
51806 eval "$as_ac_var=no"
51808 rm -f conftest.err conftest.$ac_objext \
51809 conftest$ac_exeext conftest.$ac_ext
51811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51812 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51813 if test `eval echo '${'$as_ac_var'}'` = yes; then
51814 cat >>confdefs.h <<_ACEOF
51815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51817 ice_have_memset=yes
51821 if test "${ice_have_memset}" = yes; then
51822 echo "$as_me:$LINENO: checking for memset declaration in string.h strings.h" >&5
51823 echo $ECHO_N "checking for memset declaration in string.h strings.h... $ECHO_C" >&6
51824 if test "${ice_cv_have_memset_decl+set}" = set; then
51825 echo $ECHO_N "(cached) $ECHO_C" >&6
51828 ice_cv_have_memset_decl=no
51829 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
51830 ice_re_word='(^|[^a-zA-Z0-9_])'
51831 for header in string.h strings.h; do
51832 # Check for ordinary declaration
51833 cat >conftest.$ac_ext <<_ACEOF
51836 cat confdefs.h >>conftest.$ac_ext
51837 cat >>conftest.$ac_ext <<_ACEOF
51838 /* end confdefs.h. */
51842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51843 $EGREP "${ice_re_word}memset[ ]*\(" >/dev/null 2>&1; then
51844 ice_cv_have_memset_decl=yes
51848 if test "$ice_cv_have_memset_decl" = yes; then
51851 # Check for "fixed" declaration like "getpid _PARAMS((int))"
51852 cat >conftest.$ac_ext <<_ACEOF
51855 cat confdefs.h >>conftest.$ac_ext
51856 cat >>conftest.$ac_ext <<_ACEOF
51857 /* end confdefs.h. */
51861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51862 $EGREP "${ice_re_word}memset[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
51863 ice_cv_have_memset_decl=yes
51867 if test "$ice_cv_have_memset_decl" = yes; then
51874 echo "$as_me:$LINENO: result: $ice_cv_have_memset_decl" >&5
51875 echo "${ECHO_T}$ice_cv_have_memset_decl" >&6
51876 if test "$ice_cv_have_memset_decl" = yes; then
51878 cat >>confdefs.h <<_ACEOF
51879 #define HAVE_MEMSET_DECL 1
51886 for ac_func in mkdir
51888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51889 echo "$as_me:$LINENO: checking for $ac_func" >&5
51890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51891 if eval "test \"\${$as_ac_var+set}\" = set"; then
51892 echo $ECHO_N "(cached) $ECHO_C" >&6
51894 cat >conftest.$ac_ext <<_ACEOF
51897 cat confdefs.h >>conftest.$ac_ext
51898 cat >>conftest.$ac_ext <<_ACEOF
51899 /* end confdefs.h. */
51900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51902 #define $ac_func innocuous_$ac_func
51904 /* System header to define __stub macros and hopefully few prototypes,
51905 which can conflict with char $ac_func (); below.
51906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51907 <limits.h> exists even on freestanding compilers. */
51910 # include <limits.h>
51912 # include <assert.h>
51917 /* Override any gcc2 internal prototype to avoid an error. */
51922 /* We use char because int might match the return type of a gcc2
51923 builtin and then its argument prototype would still apply. */
51925 /* The GNU C library defines this for functions which it implements
51926 to always fail with ENOSYS. Some functions are actually named
51927 something starting with __ and the normal name is an alias. */
51928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51931 char (*f) () = $ac_func;
51940 return f != $ac_func;
51945 rm -f conftest.$ac_objext conftest$ac_exeext
51946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51947 (eval $ac_link) 2>conftest.er1
51949 grep -v '^ *+' conftest.er1 >conftest.err
51951 cat conftest.err >&5
51952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51953 (exit $ac_status); } &&
51954 { ac_try='test -z "$ac_c_werror_flag"
51955 || test ! -s conftest.err'
51956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51957 (eval $ac_try) 2>&5
51959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51960 (exit $ac_status); }; } &&
51961 { ac_try='test -s conftest$ac_exeext'
51962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51963 (eval $ac_try) 2>&5
51965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51966 (exit $ac_status); }; }; then
51967 eval "$as_ac_var=yes"
51969 echo "$as_me: failed program was:" >&5
51970 sed 's/^/| /' conftest.$ac_ext >&5
51972 eval "$as_ac_var=no"
51974 rm -f conftest.err conftest.$ac_objext \
51975 conftest$ac_exeext conftest.$ac_ext
51977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51979 if test `eval echo '${'$as_ac_var'}'` = yes; then
51980 cat >>confdefs.h <<_ACEOF
51981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51988 ice_have_mkstemp=no
51990 for ac_func in mkstemp
51992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51993 echo "$as_me:$LINENO: checking for $ac_func" >&5
51994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51995 if eval "test \"\${$as_ac_var+set}\" = set"; then
51996 echo $ECHO_N "(cached) $ECHO_C" >&6
51998 cat >conftest.$ac_ext <<_ACEOF
52001 cat confdefs.h >>conftest.$ac_ext
52002 cat >>conftest.$ac_ext <<_ACEOF
52003 /* end confdefs.h. */
52004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52006 #define $ac_func innocuous_$ac_func
52008 /* System header to define __stub macros and hopefully few prototypes,
52009 which can conflict with char $ac_func (); below.
52010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52011 <limits.h> exists even on freestanding compilers. */
52014 # include <limits.h>
52016 # include <assert.h>
52021 /* Override any gcc2 internal prototype to avoid an error. */
52026 /* We use char because int might match the return type of a gcc2
52027 builtin and then its argument prototype would still apply. */
52029 /* The GNU C library defines this for functions which it implements
52030 to always fail with ENOSYS. Some functions are actually named
52031 something starting with __ and the normal name is an alias. */
52032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52035 char (*f) () = $ac_func;
52044 return f != $ac_func;
52049 rm -f conftest.$ac_objext conftest$ac_exeext
52050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52051 (eval $ac_link) 2>conftest.er1
52053 grep -v '^ *+' conftest.er1 >conftest.err
52055 cat conftest.err >&5
52056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52057 (exit $ac_status); } &&
52058 { ac_try='test -z "$ac_c_werror_flag"
52059 || test ! -s conftest.err'
52060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52061 (eval $ac_try) 2>&5
52063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52064 (exit $ac_status); }; } &&
52065 { ac_try='test -s conftest$ac_exeext'
52066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52067 (eval $ac_try) 2>&5
52069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52070 (exit $ac_status); }; }; then
52071 eval "$as_ac_var=yes"
52073 echo "$as_me: failed program was:" >&5
52074 sed 's/^/| /' conftest.$ac_ext >&5
52076 eval "$as_ac_var=no"
52078 rm -f conftest.err conftest.$ac_objext \
52079 conftest$ac_exeext conftest.$ac_ext
52081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52083 if test `eval echo '${'$as_ac_var'}'` = yes; then
52084 cat >>confdefs.h <<_ACEOF
52085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52087 ice_have_mkstemp=yes
52091 if test "${ice_have_mkstemp}" = yes; then
52092 echo "$as_me:$LINENO: checking for mkstemp declaration in stdlib.h" >&5
52093 echo $ECHO_N "checking for mkstemp declaration in stdlib.h... $ECHO_C" >&6
52094 if test "${ice_cv_have_mkstemp_decl+set}" = set; then
52095 echo $ECHO_N "(cached) $ECHO_C" >&6
52098 ice_cv_have_mkstemp_decl=no
52099 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
52100 ice_re_word='(^|[^a-zA-Z0-9_])'
52101 for header in stdlib.h; do
52102 # Check for ordinary declaration
52103 cat >conftest.$ac_ext <<_ACEOF
52106 cat confdefs.h >>conftest.$ac_ext
52107 cat >>conftest.$ac_ext <<_ACEOF
52108 /* end confdefs.h. */
52112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52113 $EGREP "${ice_re_word}mkstemp[ ]*\(" >/dev/null 2>&1; then
52114 ice_cv_have_mkstemp_decl=yes
52118 if test "$ice_cv_have_mkstemp_decl" = yes; then
52121 # Check for "fixed" declaration like "getpid _PARAMS((int))"
52122 cat >conftest.$ac_ext <<_ACEOF
52125 cat confdefs.h >>conftest.$ac_ext
52126 cat >>conftest.$ac_ext <<_ACEOF
52127 /* end confdefs.h. */
52131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52132 $EGREP "${ice_re_word}mkstemp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
52133 ice_cv_have_mkstemp_decl=yes
52137 if test "$ice_cv_have_mkstemp_decl" = yes; then
52144 echo "$as_me:$LINENO: result: $ice_cv_have_mkstemp_decl" >&5
52145 echo "${ECHO_T}$ice_cv_have_mkstemp_decl" >&6
52146 if test "$ice_cv_have_mkstemp_decl" = yes; then
52148 cat >>confdefs.h <<_ACEOF
52149 #define HAVE_MKSTEMP_DECL 1
52158 for ac_func in mktemp
52160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52161 echo "$as_me:$LINENO: checking for $ac_func" >&5
52162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52163 if eval "test \"\${$as_ac_var+set}\" = set"; then
52164 echo $ECHO_N "(cached) $ECHO_C" >&6
52166 cat >conftest.$ac_ext <<_ACEOF
52169 cat confdefs.h >>conftest.$ac_ext
52170 cat >>conftest.$ac_ext <<_ACEOF
52171 /* end confdefs.h. */
52172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52174 #define $ac_func innocuous_$ac_func
52176 /* System header to define __stub macros and hopefully few prototypes,
52177 which can conflict with char $ac_func (); below.
52178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52179 <limits.h> exists even on freestanding compilers. */
52182 # include <limits.h>
52184 # include <assert.h>
52189 /* Override any gcc2 internal prototype to avoid an error. */
52194 /* We use char because int might match the return type of a gcc2
52195 builtin and then its argument prototype would still apply. */
52197 /* The GNU C library defines this for functions which it implements
52198 to always fail with ENOSYS. Some functions are actually named
52199 something starting with __ and the normal name is an alias. */
52200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52203 char (*f) () = $ac_func;
52212 return f != $ac_func;
52217 rm -f conftest.$ac_objext conftest$ac_exeext
52218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52219 (eval $ac_link) 2>conftest.er1
52221 grep -v '^ *+' conftest.er1 >conftest.err
52223 cat conftest.err >&5
52224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52225 (exit $ac_status); } &&
52226 { ac_try='test -z "$ac_c_werror_flag"
52227 || test ! -s conftest.err'
52228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52229 (eval $ac_try) 2>&5
52231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52232 (exit $ac_status); }; } &&
52233 { ac_try='test -s conftest$ac_exeext'
52234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52235 (eval $ac_try) 2>&5
52237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52238 (exit $ac_status); }; }; then
52239 eval "$as_ac_var=yes"
52241 echo "$as_me: failed program was:" >&5
52242 sed 's/^/| /' conftest.$ac_ext >&5
52244 eval "$as_ac_var=no"
52246 rm -f conftest.err conftest.$ac_objext \
52247 conftest$ac_exeext conftest.$ac_ext
52249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52251 if test `eval echo '${'$as_ac_var'}'` = yes; then
52252 cat >>confdefs.h <<_ACEOF
52253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52255 ice_have_mktemp=yes
52259 if test "${ice_have_mktemp}" = yes; then
52260 echo "$as_me:$LINENO: checking for mktemp declaration in stdlib.h" >&5
52261 echo $ECHO_N "checking for mktemp declaration in stdlib.h... $ECHO_C" >&6
52262 if test "${ice_cv_have_mktemp_decl+set}" = set; then
52263 echo $ECHO_N "(cached) $ECHO_C" >&6
52266 ice_cv_have_mktemp_decl=no
52267 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
52268 ice_re_word='(^|[^a-zA-Z0-9_])'
52269 for header in stdlib.h; do
52270 # Check for ordinary declaration
52271 cat >conftest.$ac_ext <<_ACEOF
52274 cat confdefs.h >>conftest.$ac_ext
52275 cat >>conftest.$ac_ext <<_ACEOF
52276 /* end confdefs.h. */
52280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52281 $EGREP "${ice_re_word}mktemp[ ]*\(" >/dev/null 2>&1; then
52282 ice_cv_have_mktemp_decl=yes
52286 if test "$ice_cv_have_mktemp_decl" = yes; then
52289 # Check for "fixed" declaration like "getpid _PARAMS((int))"
52290 cat >conftest.$ac_ext <<_ACEOF
52293 cat confdefs.h >>conftest.$ac_ext
52294 cat >>conftest.$ac_ext <<_ACEOF
52295 /* end confdefs.h. */
52299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52300 $EGREP "${ice_re_word}mktemp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
52301 ice_cv_have_mktemp_decl=yes
52305 if test "$ice_cv_have_mktemp_decl" = yes; then
52312 echo "$as_me:$LINENO: result: $ice_cv_have_mktemp_decl" >&5
52313 echo "${ECHO_T}$ice_cv_have_mktemp_decl" >&6
52314 if test "$ice_cv_have_mktemp_decl" = yes; then
52316 cat >>confdefs.h <<_ACEOF
52317 #define HAVE_MKTEMP_DECL 1
52326 for ac_func in mktime
52328 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52329 echo "$as_me:$LINENO: checking for $ac_func" >&5
52330 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52331 if eval "test \"\${$as_ac_var+set}\" = set"; then
52332 echo $ECHO_N "(cached) $ECHO_C" >&6
52334 cat >conftest.$ac_ext <<_ACEOF
52337 cat confdefs.h >>conftest.$ac_ext
52338 cat >>conftest.$ac_ext <<_ACEOF
52339 /* end confdefs.h. */
52340 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52342 #define $ac_func innocuous_$ac_func
52344 /* System header to define __stub macros and hopefully few prototypes,
52345 which can conflict with char $ac_func (); below.
52346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52347 <limits.h> exists even on freestanding compilers. */
52350 # include <limits.h>
52352 # include <assert.h>
52357 /* Override any gcc2 internal prototype to avoid an error. */
52362 /* We use char because int might match the return type of a gcc2
52363 builtin and then its argument prototype would still apply. */
52365 /* The GNU C library defines this for functions which it implements
52366 to always fail with ENOSYS. Some functions are actually named
52367 something starting with __ and the normal name is an alias. */
52368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52371 char (*f) () = $ac_func;
52380 return f != $ac_func;
52385 rm -f conftest.$ac_objext conftest$ac_exeext
52386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52387 (eval $ac_link) 2>conftest.er1
52389 grep -v '^ *+' conftest.er1 >conftest.err
52391 cat conftest.err >&5
52392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52393 (exit $ac_status); } &&
52394 { ac_try='test -z "$ac_c_werror_flag"
52395 || test ! -s conftest.err'
52396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52397 (eval $ac_try) 2>&5
52399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52400 (exit $ac_status); }; } &&
52401 { ac_try='test -s conftest$ac_exeext'
52402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52403 (eval $ac_try) 2>&5
52405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52406 (exit $ac_status); }; }; then
52407 eval "$as_ac_var=yes"
52409 echo "$as_me: failed program was:" >&5
52410 sed 's/^/| /' conftest.$ac_ext >&5
52412 eval "$as_ac_var=no"
52414 rm -f conftest.err conftest.$ac_objext \
52415 conftest$ac_exeext conftest.$ac_ext
52417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52418 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52419 if test `eval echo '${'$as_ac_var'}'` = yes; then
52420 cat >>confdefs.h <<_ACEOF
52421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52423 ice_have_mktime=yes
52427 if test "${ice_have_mktime}" = yes; then
52428 echo "$as_me:$LINENO: checking for mktime declaration in time.h sys/time.h" >&5
52429 echo $ECHO_N "checking for mktime declaration in time.h sys/time.h... $ECHO_C" >&6
52430 if test "${ice_cv_have_mktime_decl+set}" = set; then
52431 echo $ECHO_N "(cached) $ECHO_C" >&6
52434 ice_cv_have_mktime_decl=no
52435 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
52436 ice_re_word='(^|[^a-zA-Z0-9_])'
52437 for header in time.h sys/time.h; do
52438 # Check for ordinary declaration
52439 cat >conftest.$ac_ext <<_ACEOF
52442 cat confdefs.h >>conftest.$ac_ext
52443 cat >>conftest.$ac_ext <<_ACEOF
52444 /* end confdefs.h. */
52448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52449 $EGREP "${ice_re_word}mktime[ ]*\(" >/dev/null 2>&1; then
52450 ice_cv_have_mktime_decl=yes
52454 if test "$ice_cv_have_mktime_decl" = yes; then
52457 # Check for "fixed" declaration like "getpid _PARAMS((int))"
52458 cat >conftest.$ac_ext <<_ACEOF
52461 cat confdefs.h >>conftest.$ac_ext
52462 cat >>conftest.$ac_ext <<_ACEOF
52463 /* end confdefs.h. */
52467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52468 $EGREP "${ice_re_word}mktime[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
52469 ice_cv_have_mktime_decl=yes
52473 if test "$ice_cv_have_mktime_decl" = yes; then
52480 echo "$as_me:$LINENO: result: $ice_cv_have_mktime_decl" >&5
52481 echo "${ECHO_T}$ice_cv_have_mktime_decl" >&6
52482 if test "$ice_cv_have_mktime_decl" = yes; then
52484 cat >>confdefs.h <<_ACEOF
52485 #define HAVE_MKTIME_DECL 1
52493 for ac_header in stdlib.h unistd.h
52495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52497 echo "$as_me:$LINENO: checking for $ac_header" >&5
52498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52500 echo $ECHO_N "(cached) $ECHO_C" >&6
52502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52505 # Is the header compilable?
52506 echo "$as_me:$LINENO: checking $ac_header usability" >&5
52507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
52508 cat >conftest.$ac_ext <<_ACEOF
52511 cat confdefs.h >>conftest.$ac_ext
52512 cat >>conftest.$ac_ext <<_ACEOF
52513 /* end confdefs.h. */
52514 $ac_includes_default
52515 #include <$ac_header>
52517 rm -f conftest.$ac_objext
52518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52519 (eval $ac_compile) 2>conftest.er1
52521 grep -v '^ *+' conftest.er1 >conftest.err
52523 cat conftest.err >&5
52524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52525 (exit $ac_status); } &&
52526 { ac_try='test -z "$ac_c_werror_flag"
52527 || test ! -s conftest.err'
52528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52529 (eval $ac_try) 2>&5
52531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52532 (exit $ac_status); }; } &&
52533 { ac_try='test -s conftest.$ac_objext'
52534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52535 (eval $ac_try) 2>&5
52537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52538 (exit $ac_status); }; }; then
52539 ac_header_compiler=yes
52541 echo "$as_me: failed program was:" >&5
52542 sed 's/^/| /' conftest.$ac_ext >&5
52544 ac_header_compiler=no
52546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52547 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52548 echo "${ECHO_T}$ac_header_compiler" >&6
52550 # Is the header present?
52551 echo "$as_me:$LINENO: checking $ac_header presence" >&5
52552 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
52553 cat >conftest.$ac_ext <<_ACEOF
52556 cat confdefs.h >>conftest.$ac_ext
52557 cat >>conftest.$ac_ext <<_ACEOF
52558 /* end confdefs.h. */
52559 #include <$ac_header>
52561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52564 grep -v '^ *+' conftest.er1 >conftest.err
52566 cat conftest.err >&5
52567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52568 (exit $ac_status); } >/dev/null; then
52569 if test -s conftest.err; then
52570 ac_cpp_err=$ac_c_preproc_warn_flag
52571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52578 if test -z "$ac_cpp_err"; then
52579 ac_header_preproc=yes
52581 echo "$as_me: failed program was:" >&5
52582 sed 's/^/| /' conftest.$ac_ext >&5
52584 ac_header_preproc=no
52586 rm -f conftest.err conftest.$ac_ext
52587 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52588 echo "${ECHO_T}$ac_header_preproc" >&6
52590 # So? What about this header?
52591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52593 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52594 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52596 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52597 ac_header_preproc=yes
52600 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52602 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
52603 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
52604 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52605 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52606 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
52607 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
52608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52610 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52611 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52614 ## ------------------------------------------ ##
52615 ## Report this to the AC_PACKAGE_NAME lists. ##
52616 ## ------------------------------------------ ##
52619 sed "s/^/$as_me: WARNING: /" >&2
52622 echo "$as_me:$LINENO: checking for $ac_header" >&5
52623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52625 echo $ECHO_N "(cached) $ECHO_C" >&6
52627 eval "$as_ac_Header=\$ac_header_preproc"
52629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52634 cat >>confdefs.h <<_ACEOF
52635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52643 for ac_func in getpagesize
52645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52646 echo "$as_me:$LINENO: checking for $ac_func" >&5
52647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52648 if eval "test \"\${$as_ac_var+set}\" = set"; then
52649 echo $ECHO_N "(cached) $ECHO_C" >&6
52651 cat >conftest.$ac_ext <<_ACEOF
52654 cat confdefs.h >>conftest.$ac_ext
52655 cat >>conftest.$ac_ext <<_ACEOF
52656 /* end confdefs.h. */
52657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52659 #define $ac_func innocuous_$ac_func
52661 /* System header to define __stub macros and hopefully few prototypes,
52662 which can conflict with char $ac_func (); below.
52663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52664 <limits.h> exists even on freestanding compilers. */
52667 # include <limits.h>
52669 # include <assert.h>
52674 /* Override any gcc2 internal prototype to avoid an error. */
52679 /* We use char because int might match the return type of a gcc2
52680 builtin and then its argument prototype would still apply. */
52682 /* The GNU C library defines this for functions which it implements
52683 to always fail with ENOSYS. Some functions are actually named
52684 something starting with __ and the normal name is an alias. */
52685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52688 char (*f) () = $ac_func;
52697 return f != $ac_func;
52702 rm -f conftest.$ac_objext conftest$ac_exeext
52703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52704 (eval $ac_link) 2>conftest.er1
52706 grep -v '^ *+' conftest.er1 >conftest.err
52708 cat conftest.err >&5
52709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52710 (exit $ac_status); } &&
52711 { ac_try='test -z "$ac_c_werror_flag"
52712 || test ! -s conftest.err'
52713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52714 (eval $ac_try) 2>&5
52716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52717 (exit $ac_status); }; } &&
52718 { ac_try='test -s conftest$ac_exeext'
52719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52720 (eval $ac_try) 2>&5
52722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52723 (exit $ac_status); }; }; then
52724 eval "$as_ac_var=yes"
52726 echo "$as_me: failed program was:" >&5
52727 sed 's/^/| /' conftest.$ac_ext >&5
52729 eval "$as_ac_var=no"
52731 rm -f conftest.err conftest.$ac_objext \
52732 conftest$ac_exeext conftest.$ac_ext
52734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52735 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52736 if test `eval echo '${'$as_ac_var'}'` = yes; then
52737 cat >>confdefs.h <<_ACEOF
52738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52744 echo "$as_me:$LINENO: checking for working mmap" >&5
52745 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
52746 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
52747 echo $ECHO_N "(cached) $ECHO_C" >&6
52749 if test "$cross_compiling" = yes; then
52750 ac_cv_func_mmap_fixed_mapped=no
52752 cat >conftest.$ac_ext <<_ACEOF
52755 cat confdefs.h >>conftest.$ac_ext
52756 cat >>conftest.$ac_ext <<_ACEOF
52757 /* end confdefs.h. */
52758 $ac_includes_default
52759 /* malloc might have been renamed as rpl_malloc. */
52762 /* Thanks to Mike Haertel and Jim Avera for this test.
52763 Here is a matrix of mmap possibilities:
52764 mmap private not fixed
52765 mmap private fixed at somewhere currently unmapped
52766 mmap private fixed at somewhere already mapped
52767 mmap shared not fixed
52768 mmap shared fixed at somewhere currently unmapped
52769 mmap shared fixed at somewhere already mapped
52770 For private mappings, we should verify that changes cannot be read()
52771 back from the file, nor mmap's back from the file at a different
52772 address. (There have been systems where private was not correctly
52773 implemented like the infamous i386 svr4.0, and systems where the
52774 VM page cache was not coherent with the file system buffer cache
52775 like early versions of FreeBSD and possibly contemporary NetBSD.)
52776 For shared mappings, we should conversely verify that changes get
52777 propagated back to all the places they're supposed to be.
52779 Grep wants private fixed already mapped.
52780 The main things grep needs to know about mmap are:
52781 * does it exist and is it safe to write into the mmap'd area
52782 * how to use it (BSD variants) */
52785 #include <sys/mman.h>
52787 #if !STDC_HEADERS && !HAVE_STDLIB_H
52791 /* This mess was copied from the GNU getpagesize.h. */
52792 #if !HAVE_GETPAGESIZE
52793 /* Assume that all systems that can run configure have sys/param.h. */
52794 # if !HAVE_SYS_PARAM_H
52795 # define HAVE_SYS_PARAM_H 1
52798 # ifdef _SC_PAGESIZE
52799 # define getpagesize() sysconf(_SC_PAGESIZE)
52800 # else /* no _SC_PAGESIZE */
52801 # if HAVE_SYS_PARAM_H
52802 # include <sys/param.h>
52803 # ifdef EXEC_PAGESIZE
52804 # define getpagesize() EXEC_PAGESIZE
52805 # else /* no EXEC_PAGESIZE */
52807 # define getpagesize() NBPG * CLSIZE
52810 # endif /* no CLSIZE */
52811 # else /* no NBPG */
52813 # define getpagesize() NBPC
52814 # else /* no NBPC */
52816 # define getpagesize() PAGESIZE
52817 # endif /* PAGESIZE */
52818 # endif /* no NBPC */
52819 # endif /* no NBPG */
52820 # endif /* no EXEC_PAGESIZE */
52821 # else /* no HAVE_SYS_PARAM_H */
52822 # define getpagesize() 8192 /* punt totally */
52823 # endif /* no HAVE_SYS_PARAM_H */
52824 # endif /* no _SC_PAGESIZE */
52826 #endif /* no HAVE_GETPAGESIZE */
52831 char *data, *data2, *data3;
52835 pagesize = getpagesize ();
52837 /* First, make a file with some known garbage in it. */
52838 data = (char *) malloc (pagesize);
52841 for (i = 0; i < pagesize; ++i)
52842 *(data + i) = rand ();
52844 fd = creat ("conftest.mmap", 0600);
52847 if (write (fd, data, pagesize) != pagesize)
52851 /* Next, try to mmap the file at a fixed address which already has
52852 something else allocated at it. If we can, also make sure that
52853 we see the same garbage. */
52854 fd = open ("conftest.mmap", O_RDWR);
52857 data2 = (char *) malloc (2 * pagesize);
52860 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
52861 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
52862 MAP_PRIVATE | MAP_FIXED, fd, 0L))
52864 for (i = 0; i < pagesize; ++i)
52865 if (*(data + i) != *(data2 + i))
52868 /* Finally, make sure that changes to the mapped area do not
52869 percolate back to the file as seen by read(). (This is a bug on
52870 some variants of i386 svr4.0.) */
52871 for (i = 0; i < pagesize; ++i)
52872 *(data2 + i) = *(data2 + i) + 1;
52873 data3 = (char *) malloc (pagesize);
52876 if (read (fd, data3, pagesize) != pagesize)
52878 for (i = 0; i < pagesize; ++i)
52879 if (*(data + i) != *(data3 + i))
52885 rm -f conftest$ac_exeext
52886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52887 (eval $ac_link) 2>&5
52889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52892 (eval $ac_try) 2>&5
52894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52895 (exit $ac_status); }; }; then
52896 ac_cv_func_mmap_fixed_mapped=yes
52898 echo "$as_me: program exited with status $ac_status" >&5
52899 echo "$as_me: failed program was:" >&5
52900 sed 's/^/| /' conftest.$ac_ext >&5
52902 ( exit $ac_status )
52903 ac_cv_func_mmap_fixed_mapped=no
52905 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52908 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
52909 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
52910 if test $ac_cv_func_mmap_fixed_mapped = yes; then
52912 cat >>confdefs.h <<\_ACEOF
52913 #define HAVE_MMAP 1
52917 rm -f conftest.mmap
52920 for ac_func in on_exit
52922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52923 echo "$as_me:$LINENO: checking for $ac_func" >&5
52924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52925 if eval "test \"\${$as_ac_var+set}\" = set"; then
52926 echo $ECHO_N "(cached) $ECHO_C" >&6
52928 cat >conftest.$ac_ext <<_ACEOF
52931 cat confdefs.h >>conftest.$ac_ext
52932 cat >>conftest.$ac_ext <<_ACEOF
52933 /* end confdefs.h. */
52934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52936 #define $ac_func innocuous_$ac_func
52938 /* System header to define __stub macros and hopefully few prototypes,
52939 which can conflict with char $ac_func (); below.
52940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52941 <limits.h> exists even on freestanding compilers. */
52944 # include <limits.h>
52946 # include <assert.h>
52951 /* Override any gcc2 internal prototype to avoid an error. */
52956 /* We use char because int might match the return type of a gcc2
52957 builtin and then its argument prototype would still apply. */
52959 /* The GNU C library defines this for functions which it implements
52960 to always fail with ENOSYS. Some functions are actually named
52961 something starting with __ and the normal name is an alias. */
52962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52965 char (*f) () = $ac_func;
52974 return f != $ac_func;
52979 rm -f conftest.$ac_objext conftest$ac_exeext
52980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52981 (eval $ac_link) 2>conftest.er1
52983 grep -v '^ *+' conftest.er1 >conftest.err
52985 cat conftest.err >&5
52986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52987 (exit $ac_status); } &&
52988 { ac_try='test -z "$ac_c_werror_flag"
52989 || test ! -s conftest.err'
52990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52991 (eval $ac_try) 2>&5
52993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52994 (exit $ac_status); }; } &&
52995 { ac_try='test -s conftest$ac_exeext'
52996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52997 (eval $ac_try) 2>&5
52999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53000 (exit $ac_status); }; }; then
53001 eval "$as_ac_var=yes"
53003 echo "$as_me: failed program was:" >&5
53004 sed 's/^/| /' conftest.$ac_ext >&5
53006 eval "$as_ac_var=no"
53008 rm -f conftest.err conftest.$ac_objext \
53009 conftest$ac_exeext conftest.$ac_ext
53011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53012 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53013 if test `eval echo '${'$as_ac_var'}'` = yes; then
53014 cat >>confdefs.h <<_ACEOF
53015 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53022 ice_have_openlog=no
53024 for ac_func in openlog
53026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53027 echo "$as_me:$LINENO: checking for $ac_func" >&5
53028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53029 if eval "test \"\${$as_ac_var+set}\" = set"; then
53030 echo $ECHO_N "(cached) $ECHO_C" >&6
53032 cat >conftest.$ac_ext <<_ACEOF
53035 cat confdefs.h >>conftest.$ac_ext
53036 cat >>conftest.$ac_ext <<_ACEOF
53037 /* end confdefs.h. */
53038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53040 #define $ac_func innocuous_$ac_func
53042 /* System header to define __stub macros and hopefully few prototypes,
53043 which can conflict with char $ac_func (); below.
53044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53045 <limits.h> exists even on freestanding compilers. */
53048 # include <limits.h>
53050 # include <assert.h>
53055 /* Override any gcc2 internal prototype to avoid an error. */
53060 /* We use char because int might match the return type of a gcc2
53061 builtin and then its argument prototype would still apply. */
53063 /* The GNU C library defines this for functions which it implements
53064 to always fail with ENOSYS. Some functions are actually named
53065 something starting with __ and the normal name is an alias. */
53066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53069 char (*f) () = $ac_func;
53078 return f != $ac_func;
53083 rm -f conftest.$ac_objext conftest$ac_exeext
53084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53085 (eval $ac_link) 2>conftest.er1
53087 grep -v '^ *+' conftest.er1 >conftest.err
53089 cat conftest.err >&5
53090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53091 (exit $ac_status); } &&
53092 { ac_try='test -z "$ac_c_werror_flag"
53093 || test ! -s conftest.err'
53094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53095 (eval $ac_try) 2>&5
53097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53098 (exit $ac_status); }; } &&
53099 { ac_try='test -s conftest$ac_exeext'
53100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53101 (eval $ac_try) 2>&5
53103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53104 (exit $ac_status); }; }; then
53105 eval "$as_ac_var=yes"
53107 echo "$as_me: failed program was:" >&5
53108 sed 's/^/| /' conftest.$ac_ext >&5
53110 eval "$as_ac_var=no"
53112 rm -f conftest.err conftest.$ac_objext \
53113 conftest$ac_exeext conftest.$ac_ext
53115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53116 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53117 if test `eval echo '${'$as_ac_var'}'` = yes; then
53118 cat >>confdefs.h <<_ACEOF
53119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53121 ice_have_openlog=yes
53125 if test "${ice_have_openlog}" = yes; then
53126 echo "$as_me:$LINENO: checking for openlog declaration in syslog.h" >&5
53127 echo $ECHO_N "checking for openlog declaration in syslog.h... $ECHO_C" >&6
53128 if test "${ice_cv_have_openlog_decl+set}" = set; then
53129 echo $ECHO_N "(cached) $ECHO_C" >&6
53132 ice_cv_have_openlog_decl=no
53133 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
53134 ice_re_word='(^|[^a-zA-Z0-9_])'
53135 for header in syslog.h; do
53136 # Check for ordinary declaration
53137 cat >conftest.$ac_ext <<_ACEOF
53140 cat confdefs.h >>conftest.$ac_ext
53141 cat >>conftest.$ac_ext <<_ACEOF
53142 /* end confdefs.h. */
53146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53147 $EGREP "${ice_re_word}openlog[ ]*\(" >/dev/null 2>&1; then
53148 ice_cv_have_openlog_decl=yes
53152 if test "$ice_cv_have_openlog_decl" = yes; then
53155 # Check for "fixed" declaration like "getpid _PARAMS((int))"
53156 cat >conftest.$ac_ext <<_ACEOF
53159 cat confdefs.h >>conftest.$ac_ext
53160 cat >>conftest.$ac_ext <<_ACEOF
53161 /* end confdefs.h. */
53165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53166 $EGREP "${ice_re_word}openlog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
53167 ice_cv_have_openlog_decl=yes
53171 if test "$ice_cv_have_openlog_decl" = yes; then
53178 echo "$as_me:$LINENO: result: $ice_cv_have_openlog_decl" >&5
53179 echo "${ECHO_T}$ice_cv_have_openlog_decl" >&6
53180 if test "$ice_cv_have_openlog_decl" = yes; then
53182 cat >>confdefs.h <<_ACEOF
53183 #define HAVE_OPENLOG_DECL 1
53192 for ac_func in pclose
53194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53195 echo "$as_me:$LINENO: checking for $ac_func" >&5
53196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53197 if eval "test \"\${$as_ac_var+set}\" = set"; then
53198 echo $ECHO_N "(cached) $ECHO_C" >&6
53200 cat >conftest.$ac_ext <<_ACEOF
53203 cat confdefs.h >>conftest.$ac_ext
53204 cat >>conftest.$ac_ext <<_ACEOF
53205 /* end confdefs.h. */
53206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53208 #define $ac_func innocuous_$ac_func
53210 /* System header to define __stub macros and hopefully few prototypes,
53211 which can conflict with char $ac_func (); below.
53212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53213 <limits.h> exists even on freestanding compilers. */
53216 # include <limits.h>
53218 # include <assert.h>
53223 /* Override any gcc2 internal prototype to avoid an error. */
53228 /* We use char because int might match the return type of a gcc2
53229 builtin and then its argument prototype would still apply. */
53231 /* The GNU C library defines this for functions which it implements
53232 to always fail with ENOSYS. Some functions are actually named
53233 something starting with __ and the normal name is an alias. */
53234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53237 char (*f) () = $ac_func;
53246 return f != $ac_func;
53251 rm -f conftest.$ac_objext conftest$ac_exeext
53252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53253 (eval $ac_link) 2>conftest.er1
53255 grep -v '^ *+' conftest.er1 >conftest.err
53257 cat conftest.err >&5
53258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53259 (exit $ac_status); } &&
53260 { ac_try='test -z "$ac_c_werror_flag"
53261 || test ! -s conftest.err'
53262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53263 (eval $ac_try) 2>&5
53265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53266 (exit $ac_status); }; } &&
53267 { ac_try='test -s conftest$ac_exeext'
53268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53269 (eval $ac_try) 2>&5
53271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53272 (exit $ac_status); }; }; then
53273 eval "$as_ac_var=yes"
53275 echo "$as_me: failed program was:" >&5
53276 sed 's/^/| /' conftest.$ac_ext >&5
53278 eval "$as_ac_var=no"
53280 rm -f conftest.err conftest.$ac_objext \
53281 conftest$ac_exeext conftest.$ac_ext
53283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53285 if test `eval echo '${'$as_ac_var'}'` = yes; then
53286 cat >>confdefs.h <<_ACEOF
53287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53289 ice_have_pclose=yes
53293 if test "${ice_have_pclose}" = yes; then
53294 echo "$as_me:$LINENO: checking for pclose declaration in stdio.h" >&5
53295 echo $ECHO_N "checking for pclose declaration in stdio.h... $ECHO_C" >&6
53296 if test "${ice_cv_have_pclose_decl+set}" = set; then
53297 echo $ECHO_N "(cached) $ECHO_C" >&6
53300 ice_cv_have_pclose_decl=no
53301 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
53302 ice_re_word='(^|[^a-zA-Z0-9_])'
53303 for header in stdio.h; do
53304 # Check for ordinary declaration
53305 cat >conftest.$ac_ext <<_ACEOF
53308 cat confdefs.h >>conftest.$ac_ext
53309 cat >>conftest.$ac_ext <<_ACEOF
53310 /* end confdefs.h. */
53314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53315 $EGREP "${ice_re_word}pclose[ ]*\(" >/dev/null 2>&1; then
53316 ice_cv_have_pclose_decl=yes
53320 if test "$ice_cv_have_pclose_decl" = yes; then
53323 # Check for "fixed" declaration like "getpid _PARAMS((int))"
53324 cat >conftest.$ac_ext <<_ACEOF
53327 cat confdefs.h >>conftest.$ac_ext
53328 cat >>conftest.$ac_ext <<_ACEOF
53329 /* end confdefs.h. */
53333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53334 $EGREP "${ice_re_word}pclose[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
53335 ice_cv_have_pclose_decl=yes
53339 if test "$ice_cv_have_pclose_decl" = yes; then
53346 echo "$as_me:$LINENO: result: $ice_cv_have_pclose_decl" >&5
53347 echo "${ECHO_T}$ice_cv_have_pclose_decl" >&6
53348 if test "$ice_cv_have_pclose_decl" = yes; then
53350 cat >>confdefs.h <<_ACEOF
53351 #define HAVE_PCLOSE_DECL 1
53360 for ac_func in perror
53362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53363 echo "$as_me:$LINENO: checking for $ac_func" >&5
53364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53365 if eval "test \"\${$as_ac_var+set}\" = set"; then
53366 echo $ECHO_N "(cached) $ECHO_C" >&6
53368 cat >conftest.$ac_ext <<_ACEOF
53371 cat confdefs.h >>conftest.$ac_ext
53372 cat >>conftest.$ac_ext <<_ACEOF
53373 /* end confdefs.h. */
53374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53376 #define $ac_func innocuous_$ac_func
53378 /* System header to define __stub macros and hopefully few prototypes,
53379 which can conflict with char $ac_func (); below.
53380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53381 <limits.h> exists even on freestanding compilers. */
53384 # include <limits.h>
53386 # include <assert.h>
53391 /* Override any gcc2 internal prototype to avoid an error. */
53396 /* We use char because int might match the return type of a gcc2
53397 builtin and then its argument prototype would still apply. */
53399 /* The GNU C library defines this for functions which it implements
53400 to always fail with ENOSYS. Some functions are actually named
53401 something starting with __ and the normal name is an alias. */
53402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53405 char (*f) () = $ac_func;
53414 return f != $ac_func;
53419 rm -f conftest.$ac_objext conftest$ac_exeext
53420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53421 (eval $ac_link) 2>conftest.er1
53423 grep -v '^ *+' conftest.er1 >conftest.err
53425 cat conftest.err >&5
53426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53427 (exit $ac_status); } &&
53428 { ac_try='test -z "$ac_c_werror_flag"
53429 || test ! -s conftest.err'
53430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53431 (eval $ac_try) 2>&5
53433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53434 (exit $ac_status); }; } &&
53435 { ac_try='test -s conftest$ac_exeext'
53436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53437 (eval $ac_try) 2>&5
53439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53440 (exit $ac_status); }; }; then
53441 eval "$as_ac_var=yes"
53443 echo "$as_me: failed program was:" >&5
53444 sed 's/^/| /' conftest.$ac_ext >&5
53446 eval "$as_ac_var=no"
53448 rm -f conftest.err conftest.$ac_objext \
53449 conftest$ac_exeext conftest.$ac_ext
53451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53452 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53453 if test `eval echo '${'$as_ac_var'}'` = yes; then
53454 cat >>confdefs.h <<_ACEOF
53455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53457 ice_have_perror=yes
53461 if test "${ice_have_perror}" = yes; then
53462 echo "$as_me:$LINENO: checking for perror declaration in stdio.h" >&5
53463 echo $ECHO_N "checking for perror declaration in stdio.h... $ECHO_C" >&6
53464 if test "${ice_cv_have_perror_decl+set}" = set; then
53465 echo $ECHO_N "(cached) $ECHO_C" >&6
53468 ice_cv_have_perror_decl=no
53469 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
53470 ice_re_word='(^|[^a-zA-Z0-9_])'
53471 for header in stdio.h; do
53472 # Check for ordinary declaration
53473 cat >conftest.$ac_ext <<_ACEOF
53476 cat confdefs.h >>conftest.$ac_ext
53477 cat >>conftest.$ac_ext <<_ACEOF
53478 /* end confdefs.h. */
53482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53483 $EGREP "${ice_re_word}perror[ ]*\(" >/dev/null 2>&1; then
53484 ice_cv_have_perror_decl=yes
53488 if test "$ice_cv_have_perror_decl" = yes; then
53491 # Check for "fixed" declaration like "getpid _PARAMS((int))"
53492 cat >conftest.$ac_ext <<_ACEOF
53495 cat confdefs.h >>conftest.$ac_ext
53496 cat >>conftest.$ac_ext <<_ACEOF
53497 /* end confdefs.h. */
53501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53502 $EGREP "${ice_re_word}perror[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
53503 ice_cv_have_perror_decl=yes
53507 if test "$ice_cv_have_perror_decl" = yes; then
53514 echo "$as_me:$LINENO: result: $ice_cv_have_perror_decl" >&5
53515 echo "${ECHO_T}$ice_cv_have_perror_decl" >&6
53516 if test "$ice_cv_have_perror_decl" = yes; then
53518 cat >>confdefs.h <<_ACEOF
53519 #define HAVE_PERROR_DECL 1
53528 for ac_func in printf
53530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53531 echo "$as_me:$LINENO: checking for $ac_func" >&5
53532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53533 if eval "test \"\${$as_ac_var+set}\" = set"; then
53534 echo $ECHO_N "(cached) $ECHO_C" >&6
53536 cat >conftest.$ac_ext <<_ACEOF
53539 cat confdefs.h >>conftest.$ac_ext
53540 cat >>conftest.$ac_ext <<_ACEOF
53541 /* end confdefs.h. */
53542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53544 #define $ac_func innocuous_$ac_func
53546 /* System header to define __stub macros and hopefully few prototypes,
53547 which can conflict with char $ac_func (); below.
53548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53549 <limits.h> exists even on freestanding compilers. */
53552 # include <limits.h>
53554 # include <assert.h>
53559 /* Override any gcc2 internal prototype to avoid an error. */
53564 /* We use char because int might match the return type of a gcc2
53565 builtin and then its argument prototype would still apply. */
53567 /* The GNU C library defines this for functions which it implements
53568 to always fail with ENOSYS. Some functions are actually named
53569 something starting with __ and the normal name is an alias. */
53570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53573 char (*f) () = $ac_func;
53582 return f != $ac_func;
53587 rm -f conftest.$ac_objext conftest$ac_exeext
53588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53589 (eval $ac_link) 2>conftest.er1
53591 grep -v '^ *+' conftest.er1 >conftest.err
53593 cat conftest.err >&5
53594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53595 (exit $ac_status); } &&
53596 { ac_try='test -z "$ac_c_werror_flag"
53597 || test ! -s conftest.err'
53598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53599 (eval $ac_try) 2>&5
53601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53602 (exit $ac_status); }; } &&
53603 { ac_try='test -s conftest$ac_exeext'
53604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53605 (eval $ac_try) 2>&5
53607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53608 (exit $ac_status); }; }; then
53609 eval "$as_ac_var=yes"
53611 echo "$as_me: failed program was:" >&5
53612 sed 's/^/| /' conftest.$ac_ext >&5
53614 eval "$as_ac_var=no"
53616 rm -f conftest.err conftest.$ac_objext \
53617 conftest$ac_exeext conftest.$ac_ext
53619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53620 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53621 if test `eval echo '${'$as_ac_var'}'` = yes; then
53622 cat >>confdefs.h <<_ACEOF
53623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53625 ice_have_printf=yes
53629 if test "${ice_have_printf}" = yes; then
53630 echo "$as_me:$LINENO: checking for printf declaration in stdio.h" >&5
53631 echo $ECHO_N "checking for printf declaration in stdio.h... $ECHO_C" >&6
53632 if test "${ice_cv_have_printf_decl+set}" = set; then
53633 echo $ECHO_N "(cached) $ECHO_C" >&6
53636 ice_cv_have_printf_decl=no
53637 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
53638 ice_re_word='(^|[^a-zA-Z0-9_])'
53639 for header in stdio.h; do
53640 # Check for ordinary declaration
53641 cat >conftest.$ac_ext <<_ACEOF
53644 cat confdefs.h >>conftest.$ac_ext
53645 cat >>conftest.$ac_ext <<_ACEOF
53646 /* end confdefs.h. */
53650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53651 $EGREP "${ice_re_word}printf[ ]*\(" >/dev/null 2>&1; then
53652 ice_cv_have_printf_decl=yes
53656 if test "$ice_cv_have_printf_decl" = yes; then
53659 # Check for "fixed" declaration like "getpid _PARAMS((int))"
53660 cat >conftest.$ac_ext <<_ACEOF
53663 cat confdefs.h >>conftest.$ac_ext
53664 cat >>conftest.$ac_ext <<_ACEOF
53665 /* end confdefs.h. */
53669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53670 $EGREP "${ice_re_word}printf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
53671 ice_cv_have_printf_decl=yes
53675 if test "$ice_cv_have_printf_decl" = yes; then
53682 echo "$as_me:$LINENO: result: $ice_cv_have_printf_decl" >&5
53683 echo "${ECHO_T}$ice_cv_have_printf_decl" >&6
53684 if test "$ice_cv_have_printf_decl" = yes; then
53686 cat >>confdefs.h <<_ACEOF
53687 #define HAVE_PRINTF_DECL 1
53694 for ac_func in putenv
53696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53697 echo "$as_me:$LINENO: checking for $ac_func" >&5
53698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53699 if eval "test \"\${$as_ac_var+set}\" = set"; then
53700 echo $ECHO_N "(cached) $ECHO_C" >&6
53702 cat >conftest.$ac_ext <<_ACEOF
53705 cat confdefs.h >>conftest.$ac_ext
53706 cat >>conftest.$ac_ext <<_ACEOF
53707 /* end confdefs.h. */
53708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53710 #define $ac_func innocuous_$ac_func
53712 /* System header to define __stub macros and hopefully few prototypes,
53713 which can conflict with char $ac_func (); below.
53714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53715 <limits.h> exists even on freestanding compilers. */
53718 # include <limits.h>
53720 # include <assert.h>
53725 /* Override any gcc2 internal prototype to avoid an error. */
53730 /* We use char because int might match the return type of a gcc2
53731 builtin and then its argument prototype would still apply. */
53733 /* The GNU C library defines this for functions which it implements
53734 to always fail with ENOSYS. Some functions are actually named
53735 something starting with __ and the normal name is an alias. */
53736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53739 char (*f) () = $ac_func;
53748 return f != $ac_func;
53753 rm -f conftest.$ac_objext conftest$ac_exeext
53754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53755 (eval $ac_link) 2>conftest.er1
53757 grep -v '^ *+' conftest.er1 >conftest.err
53759 cat conftest.err >&5
53760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53761 (exit $ac_status); } &&
53762 { ac_try='test -z "$ac_c_werror_flag"
53763 || test ! -s conftest.err'
53764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53765 (eval $ac_try) 2>&5
53767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53768 (exit $ac_status); }; } &&
53769 { ac_try='test -s conftest$ac_exeext'
53770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53771 (eval $ac_try) 2>&5
53773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53774 (exit $ac_status); }; }; then
53775 eval "$as_ac_var=yes"
53777 echo "$as_me: failed program was:" >&5
53778 sed 's/^/| /' conftest.$ac_ext >&5
53780 eval "$as_ac_var=no"
53782 rm -f conftest.err conftest.$ac_objext \
53783 conftest$ac_exeext conftest.$ac_ext
53785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53786 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53787 if test `eval echo '${'$as_ac_var'}'` = yes; then
53788 cat >>confdefs.h <<_ACEOF
53789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53798 for ac_func in puts
53800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53801 echo "$as_me:$LINENO: checking for $ac_func" >&5
53802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53803 if eval "test \"\${$as_ac_var+set}\" = set"; then
53804 echo $ECHO_N "(cached) $ECHO_C" >&6
53806 cat >conftest.$ac_ext <<_ACEOF
53809 cat confdefs.h >>conftest.$ac_ext
53810 cat >>conftest.$ac_ext <<_ACEOF
53811 /* end confdefs.h. */
53812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53814 #define $ac_func innocuous_$ac_func
53816 /* System header to define __stub macros and hopefully few prototypes,
53817 which can conflict with char $ac_func (); below.
53818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53819 <limits.h> exists even on freestanding compilers. */
53822 # include <limits.h>
53824 # include <assert.h>
53829 /* Override any gcc2 internal prototype to avoid an error. */
53834 /* We use char because int might match the return type of a gcc2
53835 builtin and then its argument prototype would still apply. */
53837 /* The GNU C library defines this for functions which it implements
53838 to always fail with ENOSYS. Some functions are actually named
53839 something starting with __ and the normal name is an alias. */
53840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53843 char (*f) () = $ac_func;
53852 return f != $ac_func;
53857 rm -f conftest.$ac_objext conftest$ac_exeext
53858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53859 (eval $ac_link) 2>conftest.er1
53861 grep -v '^ *+' conftest.er1 >conftest.err
53863 cat conftest.err >&5
53864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53865 (exit $ac_status); } &&
53866 { ac_try='test -z "$ac_c_werror_flag"
53867 || test ! -s conftest.err'
53868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53869 (eval $ac_try) 2>&5
53871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53872 (exit $ac_status); }; } &&
53873 { ac_try='test -s conftest$ac_exeext'
53874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53875 (eval $ac_try) 2>&5
53877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53878 (exit $ac_status); }; }; then
53879 eval "$as_ac_var=yes"
53881 echo "$as_me: failed program was:" >&5
53882 sed 's/^/| /' conftest.$ac_ext >&5
53884 eval "$as_ac_var=no"
53886 rm -f conftest.err conftest.$ac_objext \
53887 conftest$ac_exeext conftest.$ac_ext
53889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53891 if test `eval echo '${'$as_ac_var'}'` = yes; then
53892 cat >>confdefs.h <<_ACEOF
53893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53899 if test "${ice_have_puts}" = yes; then
53900 echo "$as_me:$LINENO: checking for puts declaration in stdio.h" >&5
53901 echo $ECHO_N "checking for puts declaration in stdio.h... $ECHO_C" >&6
53902 if test "${ice_cv_have_puts_decl+set}" = set; then
53903 echo $ECHO_N "(cached) $ECHO_C" >&6
53906 ice_cv_have_puts_decl=no
53907 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
53908 ice_re_word='(^|[^a-zA-Z0-9_])'
53909 for header in stdio.h; do
53910 # Check for ordinary declaration
53911 cat >conftest.$ac_ext <<_ACEOF
53914 cat confdefs.h >>conftest.$ac_ext
53915 cat >>conftest.$ac_ext <<_ACEOF
53916 /* end confdefs.h. */
53920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53921 $EGREP "${ice_re_word}puts[ ]*\(" >/dev/null 2>&1; then
53922 ice_cv_have_puts_decl=yes
53926 if test "$ice_cv_have_puts_decl" = yes; then
53929 # Check for "fixed" declaration like "getpid _PARAMS((int))"
53930 cat >conftest.$ac_ext <<_ACEOF
53933 cat confdefs.h >>conftest.$ac_ext
53934 cat >>conftest.$ac_ext <<_ACEOF
53935 /* end confdefs.h. */
53939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53940 $EGREP "${ice_re_word}puts[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
53941 ice_cv_have_puts_decl=yes
53945 if test "$ice_cv_have_puts_decl" = yes; then
53952 echo "$as_me:$LINENO: result: $ice_cv_have_puts_decl" >&5
53953 echo "${ECHO_T}$ice_cv_have_puts_decl" >&6
53954 if test "$ice_cv_have_puts_decl" = yes; then
53956 cat >>confdefs.h <<_ACEOF
53957 #define HAVE_PUTS_DECL 1
53964 ice_have_realloc=no
53966 for ac_func in realloc
53968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53969 echo "$as_me:$LINENO: checking for $ac_func" >&5
53970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53971 if eval "test \"\${$as_ac_var+set}\" = set"; then
53972 echo $ECHO_N "(cached) $ECHO_C" >&6
53974 cat >conftest.$ac_ext <<_ACEOF
53977 cat confdefs.h >>conftest.$ac_ext
53978 cat >>conftest.$ac_ext <<_ACEOF
53979 /* end confdefs.h. */
53980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53982 #define $ac_func innocuous_$ac_func
53984 /* System header to define __stub macros and hopefully few prototypes,
53985 which can conflict with char $ac_func (); below.
53986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53987 <limits.h> exists even on freestanding compilers. */
53990 # include <limits.h>
53992 # include <assert.h>
53997 /* Override any gcc2 internal prototype to avoid an error. */
54002 /* We use char because int might match the return type of a gcc2
54003 builtin and then its argument prototype would still apply. */
54005 /* The GNU C library defines this for functions which it implements
54006 to always fail with ENOSYS. Some functions are actually named
54007 something starting with __ and the normal name is an alias. */
54008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54011 char (*f) () = $ac_func;
54020 return f != $ac_func;
54025 rm -f conftest.$ac_objext conftest$ac_exeext
54026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54027 (eval $ac_link) 2>conftest.er1
54029 grep -v '^ *+' conftest.er1 >conftest.err
54031 cat conftest.err >&5
54032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54033 (exit $ac_status); } &&
54034 { ac_try='test -z "$ac_c_werror_flag"
54035 || test ! -s conftest.err'
54036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54037 (eval $ac_try) 2>&5
54039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54040 (exit $ac_status); }; } &&
54041 { ac_try='test -s conftest$ac_exeext'
54042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54043 (eval $ac_try) 2>&5
54045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54046 (exit $ac_status); }; }; then
54047 eval "$as_ac_var=yes"
54049 echo "$as_me: failed program was:" >&5
54050 sed 's/^/| /' conftest.$ac_ext >&5
54052 eval "$as_ac_var=no"
54054 rm -f conftest.err conftest.$ac_objext \
54055 conftest$ac_exeext conftest.$ac_ext
54057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54059 if test `eval echo '${'$as_ac_var'}'` = yes; then
54060 cat >>confdefs.h <<_ACEOF
54061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54063 ice_have_realloc=yes
54067 if test "${ice_have_realloc}" = yes; then
54068 echo "$as_me:$LINENO: checking for realloc declaration in stdlib.h" >&5
54069 echo $ECHO_N "checking for realloc declaration in stdlib.h... $ECHO_C" >&6
54070 if test "${ice_cv_have_realloc_decl+set}" = set; then
54071 echo $ECHO_N "(cached) $ECHO_C" >&6
54074 ice_cv_have_realloc_decl=no
54075 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
54076 ice_re_word='(^|[^a-zA-Z0-9_])'
54077 for header in stdlib.h; do
54078 # Check for ordinary declaration
54079 cat >conftest.$ac_ext <<_ACEOF
54082 cat confdefs.h >>conftest.$ac_ext
54083 cat >>conftest.$ac_ext <<_ACEOF
54084 /* end confdefs.h. */
54088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54089 $EGREP "${ice_re_word}realloc[ ]*\(" >/dev/null 2>&1; then
54090 ice_cv_have_realloc_decl=yes
54094 if test "$ice_cv_have_realloc_decl" = yes; then
54097 # Check for "fixed" declaration like "getpid _PARAMS((int))"
54098 cat >conftest.$ac_ext <<_ACEOF
54101 cat confdefs.h >>conftest.$ac_ext
54102 cat >>conftest.$ac_ext <<_ACEOF
54103 /* end confdefs.h. */
54107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54108 $EGREP "${ice_re_word}realloc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
54109 ice_cv_have_realloc_decl=yes
54113 if test "$ice_cv_have_realloc_decl" = yes; then
54120 echo "$as_me:$LINENO: result: $ice_cv_have_realloc_decl" >&5
54121 echo "${ECHO_T}$ice_cv_have_realloc_decl" >&6
54122 if test "$ice_cv_have_realloc_decl" = yes; then
54124 cat >>confdefs.h <<_ACEOF
54125 #define HAVE_REALLOC_DECL 1
54132 ice_have_recvfrom=no
54134 for ac_func in recvfrom
54136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54137 echo "$as_me:$LINENO: checking for $ac_func" >&5
54138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54139 if eval "test \"\${$as_ac_var+set}\" = set"; then
54140 echo $ECHO_N "(cached) $ECHO_C" >&6
54142 cat >conftest.$ac_ext <<_ACEOF
54145 cat confdefs.h >>conftest.$ac_ext
54146 cat >>conftest.$ac_ext <<_ACEOF
54147 /* end confdefs.h. */
54148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54150 #define $ac_func innocuous_$ac_func
54152 /* System header to define __stub macros and hopefully few prototypes,
54153 which can conflict with char $ac_func (); below.
54154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54155 <limits.h> exists even on freestanding compilers. */
54158 # include <limits.h>
54160 # include <assert.h>
54165 /* Override any gcc2 internal prototype to avoid an error. */
54170 /* We use char because int might match the return type of a gcc2
54171 builtin and then its argument prototype would still apply. */
54173 /* The GNU C library defines this for functions which it implements
54174 to always fail with ENOSYS. Some functions are actually named
54175 something starting with __ and the normal name is an alias. */
54176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54179 char (*f) () = $ac_func;
54188 return f != $ac_func;
54193 rm -f conftest.$ac_objext conftest$ac_exeext
54194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54195 (eval $ac_link) 2>conftest.er1
54197 grep -v '^ *+' conftest.er1 >conftest.err
54199 cat conftest.err >&5
54200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54201 (exit $ac_status); } &&
54202 { ac_try='test -z "$ac_c_werror_flag"
54203 || test ! -s conftest.err'
54204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54205 (eval $ac_try) 2>&5
54207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54208 (exit $ac_status); }; } &&
54209 { ac_try='test -s conftest$ac_exeext'
54210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54211 (eval $ac_try) 2>&5
54213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54214 (exit $ac_status); }; }; then
54215 eval "$as_ac_var=yes"
54217 echo "$as_me: failed program was:" >&5
54218 sed 's/^/| /' conftest.$ac_ext >&5
54220 eval "$as_ac_var=no"
54222 rm -f conftest.err conftest.$ac_objext \
54223 conftest$ac_exeext conftest.$ac_ext
54225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54226 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54227 if test `eval echo '${'$as_ac_var'}'` = yes; then
54228 cat >>confdefs.h <<_ACEOF
54229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54231 ice_have_recvfrom=yes
54235 if test "${ice_have_recvfrom}" = yes; then
54236 echo "$as_me:$LINENO: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
54237 echo $ECHO_N "checking for recvfrom declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
54238 if test "${ice_cv_have_recvfrom_decl+set}" = set; then
54239 echo $ECHO_N "(cached) $ECHO_C" >&6
54242 ice_cv_have_recvfrom_decl=no
54243 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
54244 ice_re_word='(^|[^a-zA-Z0-9_])'
54245 for header in sys/types.h sys/socket.h; do
54246 # Check for ordinary declaration
54247 cat >conftest.$ac_ext <<_ACEOF
54250 cat confdefs.h >>conftest.$ac_ext
54251 cat >>conftest.$ac_ext <<_ACEOF
54252 /* end confdefs.h. */
54256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54257 $EGREP "${ice_re_word}recvfrom[ ]*\(" >/dev/null 2>&1; then
54258 ice_cv_have_recvfrom_decl=yes
54262 if test "$ice_cv_have_recvfrom_decl" = yes; then
54265 # Check for "fixed" declaration like "getpid _PARAMS((int))"
54266 cat >conftest.$ac_ext <<_ACEOF
54269 cat confdefs.h >>conftest.$ac_ext
54270 cat >>conftest.$ac_ext <<_ACEOF
54271 /* end confdefs.h. */
54275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54276 $EGREP "${ice_re_word}recvfrom[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
54277 ice_cv_have_recvfrom_decl=yes
54281 if test "$ice_cv_have_recvfrom_decl" = yes; then
54288 echo "$as_me:$LINENO: result: $ice_cv_have_recvfrom_decl" >&5
54289 echo "${ECHO_T}$ice_cv_have_recvfrom_decl" >&6
54290 if test "$ice_cv_have_recvfrom_decl" = yes; then
54292 cat >>confdefs.h <<_ACEOF
54293 #define HAVE_RECVFROM_DECL 1
54302 for ac_func in remove
54304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54305 echo "$as_me:$LINENO: checking for $ac_func" >&5
54306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54307 if eval "test \"\${$as_ac_var+set}\" = set"; then
54308 echo $ECHO_N "(cached) $ECHO_C" >&6
54310 cat >conftest.$ac_ext <<_ACEOF
54313 cat confdefs.h >>conftest.$ac_ext
54314 cat >>conftest.$ac_ext <<_ACEOF
54315 /* end confdefs.h. */
54316 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54318 #define $ac_func innocuous_$ac_func
54320 /* System header to define __stub macros and hopefully few prototypes,
54321 which can conflict with char $ac_func (); below.
54322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54323 <limits.h> exists even on freestanding compilers. */
54326 # include <limits.h>
54328 # include <assert.h>
54333 /* Override any gcc2 internal prototype to avoid an error. */
54338 /* We use char because int might match the return type of a gcc2
54339 builtin and then its argument prototype would still apply. */
54341 /* The GNU C library defines this for functions which it implements
54342 to always fail with ENOSYS. Some functions are actually named
54343 something starting with __ and the normal name is an alias. */
54344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54347 char (*f) () = $ac_func;
54356 return f != $ac_func;
54361 rm -f conftest.$ac_objext conftest$ac_exeext
54362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54363 (eval $ac_link) 2>conftest.er1
54365 grep -v '^ *+' conftest.er1 >conftest.err
54367 cat conftest.err >&5
54368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54369 (exit $ac_status); } &&
54370 { ac_try='test -z "$ac_c_werror_flag"
54371 || test ! -s conftest.err'
54372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54373 (eval $ac_try) 2>&5
54375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54376 (exit $ac_status); }; } &&
54377 { ac_try='test -s conftest$ac_exeext'
54378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54379 (eval $ac_try) 2>&5
54381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54382 (exit $ac_status); }; }; then
54383 eval "$as_ac_var=yes"
54385 echo "$as_me: failed program was:" >&5
54386 sed 's/^/| /' conftest.$ac_ext >&5
54388 eval "$as_ac_var=no"
54390 rm -f conftest.err conftest.$ac_objext \
54391 conftest$ac_exeext conftest.$ac_ext
54393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54394 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54395 if test `eval echo '${'$as_ac_var'}'` = yes; then
54396 cat >>confdefs.h <<_ACEOF
54397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54399 ice_have_remove=yes
54403 if test "${ice_have_remove}" = yes; then
54404 echo "$as_me:$LINENO: checking for remove declaration in stdio.h" >&5
54405 echo $ECHO_N "checking for remove declaration in stdio.h... $ECHO_C" >&6
54406 if test "${ice_cv_have_remove_decl+set}" = set; then
54407 echo $ECHO_N "(cached) $ECHO_C" >&6
54410 ice_cv_have_remove_decl=no
54411 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
54412 ice_re_word='(^|[^a-zA-Z0-9_])'
54413 for header in stdio.h; do
54414 # Check for ordinary declaration
54415 cat >conftest.$ac_ext <<_ACEOF
54418 cat confdefs.h >>conftest.$ac_ext
54419 cat >>conftest.$ac_ext <<_ACEOF
54420 /* end confdefs.h. */
54424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54425 $EGREP "${ice_re_word}remove[ ]*\(" >/dev/null 2>&1; then
54426 ice_cv_have_remove_decl=yes
54430 if test "$ice_cv_have_remove_decl" = yes; then
54433 # Check for "fixed" declaration like "getpid _PARAMS((int))"
54434 cat >conftest.$ac_ext <<_ACEOF
54437 cat confdefs.h >>conftest.$ac_ext
54438 cat >>conftest.$ac_ext <<_ACEOF
54439 /* end confdefs.h. */
54443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54444 $EGREP "${ice_re_word}remove[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
54445 ice_cv_have_remove_decl=yes
54449 if test "$ice_cv_have_remove_decl" = yes; then
54456 echo "$as_me:$LINENO: result: $ice_cv_have_remove_decl" >&5
54457 echo "${ECHO_T}$ice_cv_have_remove_decl" >&6
54458 if test "$ice_cv_have_remove_decl" = yes; then
54460 cat >>confdefs.h <<_ACEOF
54461 #define HAVE_REMOVE_DECL 1
54470 for ac_func in rename
54472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54473 echo "$as_me:$LINENO: checking for $ac_func" >&5
54474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54475 if eval "test \"\${$as_ac_var+set}\" = set"; then
54476 echo $ECHO_N "(cached) $ECHO_C" >&6
54478 cat >conftest.$ac_ext <<_ACEOF
54481 cat confdefs.h >>conftest.$ac_ext
54482 cat >>conftest.$ac_ext <<_ACEOF
54483 /* end confdefs.h. */
54484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54486 #define $ac_func innocuous_$ac_func
54488 /* System header to define __stub macros and hopefully few prototypes,
54489 which can conflict with char $ac_func (); below.
54490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54491 <limits.h> exists even on freestanding compilers. */
54494 # include <limits.h>
54496 # include <assert.h>
54501 /* Override any gcc2 internal prototype to avoid an error. */
54506 /* We use char because int might match the return type of a gcc2
54507 builtin and then its argument prototype would still apply. */
54509 /* The GNU C library defines this for functions which it implements
54510 to always fail with ENOSYS. Some functions are actually named
54511 something starting with __ and the normal name is an alias. */
54512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54515 char (*f) () = $ac_func;
54524 return f != $ac_func;
54529 rm -f conftest.$ac_objext conftest$ac_exeext
54530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54531 (eval $ac_link) 2>conftest.er1
54533 grep -v '^ *+' conftest.er1 >conftest.err
54535 cat conftest.err >&5
54536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54537 (exit $ac_status); } &&
54538 { ac_try='test -z "$ac_c_werror_flag"
54539 || test ! -s conftest.err'
54540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54541 (eval $ac_try) 2>&5
54543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54544 (exit $ac_status); }; } &&
54545 { ac_try='test -s conftest$ac_exeext'
54546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54547 (eval $ac_try) 2>&5
54549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54550 (exit $ac_status); }; }; then
54551 eval "$as_ac_var=yes"
54553 echo "$as_me: failed program was:" >&5
54554 sed 's/^/| /' conftest.$ac_ext >&5
54556 eval "$as_ac_var=no"
54558 rm -f conftest.err conftest.$ac_objext \
54559 conftest$ac_exeext conftest.$ac_ext
54561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54563 if test `eval echo '${'$as_ac_var'}'` = yes; then
54564 cat >>confdefs.h <<_ACEOF
54565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54567 ice_have_rename=yes
54571 if test "${ice_have_rename}" = yes; then
54572 echo "$as_me:$LINENO: checking for rename declaration in stdio.h" >&5
54573 echo $ECHO_N "checking for rename declaration in stdio.h... $ECHO_C" >&6
54574 if test "${ice_cv_have_rename_decl+set}" = set; then
54575 echo $ECHO_N "(cached) $ECHO_C" >&6
54578 ice_cv_have_rename_decl=no
54579 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
54580 ice_re_word='(^|[^a-zA-Z0-9_])'
54581 for header in stdio.h; do
54582 # Check for ordinary declaration
54583 cat >conftest.$ac_ext <<_ACEOF
54586 cat confdefs.h >>conftest.$ac_ext
54587 cat >>conftest.$ac_ext <<_ACEOF
54588 /* end confdefs.h. */
54592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54593 $EGREP "${ice_re_word}rename[ ]*\(" >/dev/null 2>&1; then
54594 ice_cv_have_rename_decl=yes
54598 if test "$ice_cv_have_rename_decl" = yes; then
54601 # Check for "fixed" declaration like "getpid _PARAMS((int))"
54602 cat >conftest.$ac_ext <<_ACEOF
54605 cat confdefs.h >>conftest.$ac_ext
54606 cat >>conftest.$ac_ext <<_ACEOF
54607 /* end confdefs.h. */
54611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54612 $EGREP "${ice_re_word}rename[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
54613 ice_cv_have_rename_decl=yes
54617 if test "$ice_cv_have_rename_decl" = yes; then
54624 echo "$as_me:$LINENO: result: $ice_cv_have_rename_decl" >&5
54625 echo "${ECHO_T}$ice_cv_have_rename_decl" >&6
54626 if test "$ice_cv_have_rename_decl" = yes; then
54628 cat >>confdefs.h <<_ACEOF
54629 #define HAVE_RENAME_DECL 1
54638 for ac_func in rewind
54640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54641 echo "$as_me:$LINENO: checking for $ac_func" >&5
54642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54643 if eval "test \"\${$as_ac_var+set}\" = set"; then
54644 echo $ECHO_N "(cached) $ECHO_C" >&6
54646 cat >conftest.$ac_ext <<_ACEOF
54649 cat confdefs.h >>conftest.$ac_ext
54650 cat >>conftest.$ac_ext <<_ACEOF
54651 /* end confdefs.h. */
54652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54654 #define $ac_func innocuous_$ac_func
54656 /* System header to define __stub macros and hopefully few prototypes,
54657 which can conflict with char $ac_func (); below.
54658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54659 <limits.h> exists even on freestanding compilers. */
54662 # include <limits.h>
54664 # include <assert.h>
54669 /* Override any gcc2 internal prototype to avoid an error. */
54674 /* We use char because int might match the return type of a gcc2
54675 builtin and then its argument prototype would still apply. */
54677 /* The GNU C library defines this for functions which it implements
54678 to always fail with ENOSYS. Some functions are actually named
54679 something starting with __ and the normal name is an alias. */
54680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54683 char (*f) () = $ac_func;
54692 return f != $ac_func;
54697 rm -f conftest.$ac_objext conftest$ac_exeext
54698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54699 (eval $ac_link) 2>conftest.er1
54701 grep -v '^ *+' conftest.er1 >conftest.err
54703 cat conftest.err >&5
54704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54705 (exit $ac_status); } &&
54706 { ac_try='test -z "$ac_c_werror_flag"
54707 || test ! -s conftest.err'
54708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54709 (eval $ac_try) 2>&5
54711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54712 (exit $ac_status); }; } &&
54713 { ac_try='test -s conftest$ac_exeext'
54714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54715 (eval $ac_try) 2>&5
54717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54718 (exit $ac_status); }; }; then
54719 eval "$as_ac_var=yes"
54721 echo "$as_me: failed program was:" >&5
54722 sed 's/^/| /' conftest.$ac_ext >&5
54724 eval "$as_ac_var=no"
54726 rm -f conftest.err conftest.$ac_objext \
54727 conftest$ac_exeext conftest.$ac_ext
54729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54730 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54731 if test `eval echo '${'$as_ac_var'}'` = yes; then
54732 cat >>confdefs.h <<_ACEOF
54733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54735 ice_have_rewind=yes
54739 if test "${ice_have_rewind}" = yes; then
54740 echo "$as_me:$LINENO: checking for rewind declaration in stdio.h" >&5
54741 echo $ECHO_N "checking for rewind declaration in stdio.h... $ECHO_C" >&6
54742 if test "${ice_cv_have_rewind_decl+set}" = set; then
54743 echo $ECHO_N "(cached) $ECHO_C" >&6
54746 ice_cv_have_rewind_decl=no
54747 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
54748 ice_re_word='(^|[^a-zA-Z0-9_])'
54749 for header in stdio.h; do
54750 # Check for ordinary declaration
54751 cat >conftest.$ac_ext <<_ACEOF
54754 cat confdefs.h >>conftest.$ac_ext
54755 cat >>conftest.$ac_ext <<_ACEOF
54756 /* end confdefs.h. */
54760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54761 $EGREP "${ice_re_word}rewind[ ]*\(" >/dev/null 2>&1; then
54762 ice_cv_have_rewind_decl=yes
54766 if test "$ice_cv_have_rewind_decl" = yes; then
54769 # Check for "fixed" declaration like "getpid _PARAMS((int))"
54770 cat >conftest.$ac_ext <<_ACEOF
54773 cat confdefs.h >>conftest.$ac_ext
54774 cat >>conftest.$ac_ext <<_ACEOF
54775 /* end confdefs.h. */
54779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54780 $EGREP "${ice_re_word}rewind[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
54781 ice_cv_have_rewind_decl=yes
54785 if test "$ice_cv_have_rewind_decl" = yes; then
54792 echo "$as_me:$LINENO: result: $ice_cv_have_rewind_decl" >&5
54793 echo "${ECHO_T}$ice_cv_have_rewind_decl" >&6
54794 if test "$ice_cv_have_rewind_decl" = yes; then
54796 cat >>confdefs.h <<_ACEOF
54797 #define HAVE_REWIND_DECL 1
54804 for ac_func in rmdir
54806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54807 echo "$as_me:$LINENO: checking for $ac_func" >&5
54808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54809 if eval "test \"\${$as_ac_var+set}\" = set"; then
54810 echo $ECHO_N "(cached) $ECHO_C" >&6
54812 cat >conftest.$ac_ext <<_ACEOF
54815 cat confdefs.h >>conftest.$ac_ext
54816 cat >>conftest.$ac_ext <<_ACEOF
54817 /* end confdefs.h. */
54818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54820 #define $ac_func innocuous_$ac_func
54822 /* System header to define __stub macros and hopefully few prototypes,
54823 which can conflict with char $ac_func (); below.
54824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54825 <limits.h> exists even on freestanding compilers. */
54828 # include <limits.h>
54830 # include <assert.h>
54835 /* Override any gcc2 internal prototype to avoid an error. */
54840 /* We use char because int might match the return type of a gcc2
54841 builtin and then its argument prototype would still apply. */
54843 /* The GNU C library defines this for functions which it implements
54844 to always fail with ENOSYS. Some functions are actually named
54845 something starting with __ and the normal name is an alias. */
54846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54849 char (*f) () = $ac_func;
54858 return f != $ac_func;
54863 rm -f conftest.$ac_objext conftest$ac_exeext
54864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54865 (eval $ac_link) 2>conftest.er1
54867 grep -v '^ *+' conftest.er1 >conftest.err
54869 cat conftest.err >&5
54870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54871 (exit $ac_status); } &&
54872 { ac_try='test -z "$ac_c_werror_flag"
54873 || test ! -s conftest.err'
54874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54875 (eval $ac_try) 2>&5
54877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54878 (exit $ac_status); }; } &&
54879 { ac_try='test -s conftest$ac_exeext'
54880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54881 (eval $ac_try) 2>&5
54883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54884 (exit $ac_status); }; }; then
54885 eval "$as_ac_var=yes"
54887 echo "$as_me: failed program was:" >&5
54888 sed 's/^/| /' conftest.$ac_ext >&5
54890 eval "$as_ac_var=no"
54892 rm -f conftest.err conftest.$ac_objext \
54893 conftest$ac_exeext conftest.$ac_ext
54895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54897 if test `eval echo '${'$as_ac_var'}'` = yes; then
54898 cat >>confdefs.h <<_ACEOF
54899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54906 ice_have_ruserok=no
54908 for ac_func in ruserok
54910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54911 echo "$as_me:$LINENO: checking for $ac_func" >&5
54912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54913 if eval "test \"\${$as_ac_var+set}\" = set"; then
54914 echo $ECHO_N "(cached) $ECHO_C" >&6
54916 cat >conftest.$ac_ext <<_ACEOF
54919 cat confdefs.h >>conftest.$ac_ext
54920 cat >>conftest.$ac_ext <<_ACEOF
54921 /* end confdefs.h. */
54922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54924 #define $ac_func innocuous_$ac_func
54926 /* System header to define __stub macros and hopefully few prototypes,
54927 which can conflict with char $ac_func (); below.
54928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54929 <limits.h> exists even on freestanding compilers. */
54932 # include <limits.h>
54934 # include <assert.h>
54939 /* Override any gcc2 internal prototype to avoid an error. */
54944 /* We use char because int might match the return type of a gcc2
54945 builtin and then its argument prototype would still apply. */
54947 /* The GNU C library defines this for functions which it implements
54948 to always fail with ENOSYS. Some functions are actually named
54949 something starting with __ and the normal name is an alias. */
54950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54953 char (*f) () = $ac_func;
54962 return f != $ac_func;
54967 rm -f conftest.$ac_objext conftest$ac_exeext
54968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54969 (eval $ac_link) 2>conftest.er1
54971 grep -v '^ *+' conftest.er1 >conftest.err
54973 cat conftest.err >&5
54974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54975 (exit $ac_status); } &&
54976 { ac_try='test -z "$ac_c_werror_flag"
54977 || test ! -s conftest.err'
54978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54979 (eval $ac_try) 2>&5
54981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54982 (exit $ac_status); }; } &&
54983 { ac_try='test -s conftest$ac_exeext'
54984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54985 (eval $ac_try) 2>&5
54987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54988 (exit $ac_status); }; }; then
54989 eval "$as_ac_var=yes"
54991 echo "$as_me: failed program was:" >&5
54992 sed 's/^/| /' conftest.$ac_ext >&5
54994 eval "$as_ac_var=no"
54996 rm -f conftest.err conftest.$ac_objext \
54997 conftest$ac_exeext conftest.$ac_ext
54999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55001 if test `eval echo '${'$as_ac_var'}'` = yes; then
55002 cat >>confdefs.h <<_ACEOF
55003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55005 ice_have_ruserok=yes
55009 if test "${ice_have_ruserok}" = yes; then
55010 echo "$as_me:$LINENO: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
55011 echo $ECHO_N "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... $ECHO_C" >&6
55012 if test "${ice_cv_have_ruserok_decl+set}" = set; then
55013 echo $ECHO_N "(cached) $ECHO_C" >&6
55016 ice_cv_have_ruserok_decl=no
55017 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
55018 ice_re_word='(^|[^a-zA-Z0-9_])'
55019 for header in netdb.h sys/socket.h libc.h unistd.h; do
55020 # Check for ordinary declaration
55021 cat >conftest.$ac_ext <<_ACEOF
55024 cat confdefs.h >>conftest.$ac_ext
55025 cat >>conftest.$ac_ext <<_ACEOF
55026 /* end confdefs.h. */
55030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55031 $EGREP "${ice_re_word}ruserok[ ]*\(" >/dev/null 2>&1; then
55032 ice_cv_have_ruserok_decl=yes
55036 if test "$ice_cv_have_ruserok_decl" = yes; then
55039 # Check for "fixed" declaration like "getpid _PARAMS((int))"
55040 cat >conftest.$ac_ext <<_ACEOF
55043 cat confdefs.h >>conftest.$ac_ext
55044 cat >>conftest.$ac_ext <<_ACEOF
55045 /* end confdefs.h. */
55049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55050 $EGREP "${ice_re_word}ruserok[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
55051 ice_cv_have_ruserok_decl=yes
55055 if test "$ice_cv_have_ruserok_decl" = yes; then
55062 echo "$as_me:$LINENO: result: $ice_cv_have_ruserok_decl" >&5
55063 echo "${ECHO_T}$ice_cv_have_ruserok_decl" >&6
55064 if test "$ice_cv_have_ruserok_decl" = yes; then
55066 cat >>confdefs.h <<_ACEOF
55067 #define HAVE_RUSEROK_DECL 1
55076 for ac_func in select
55078 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55079 echo "$as_me:$LINENO: checking for $ac_func" >&5
55080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55081 if eval "test \"\${$as_ac_var+set}\" = set"; then
55082 echo $ECHO_N "(cached) $ECHO_C" >&6
55084 cat >conftest.$ac_ext <<_ACEOF
55087 cat confdefs.h >>conftest.$ac_ext
55088 cat >>conftest.$ac_ext <<_ACEOF
55089 /* end confdefs.h. */
55090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
55092 #define $ac_func innocuous_$ac_func
55094 /* System header to define __stub macros and hopefully few prototypes,
55095 which can conflict with char $ac_func (); below.
55096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55097 <limits.h> exists even on freestanding compilers. */
55100 # include <limits.h>
55102 # include <assert.h>
55107 /* Override any gcc2 internal prototype to avoid an error. */
55112 /* We use char because int might match the return type of a gcc2
55113 builtin and then its argument prototype would still apply. */
55115 /* The GNU C library defines this for functions which it implements
55116 to always fail with ENOSYS. Some functions are actually named
55117 something starting with __ and the normal name is an alias. */
55118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55121 char (*f) () = $ac_func;
55130 return f != $ac_func;
55135 rm -f conftest.$ac_objext conftest$ac_exeext
55136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55137 (eval $ac_link) 2>conftest.er1
55139 grep -v '^ *+' conftest.er1 >conftest.err
55141 cat conftest.err >&5
55142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55143 (exit $ac_status); } &&
55144 { ac_try='test -z "$ac_c_werror_flag"
55145 || test ! -s conftest.err'
55146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55147 (eval $ac_try) 2>&5
55149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55150 (exit $ac_status); }; } &&
55151 { ac_try='test -s conftest$ac_exeext'
55152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55153 (eval $ac_try) 2>&5
55155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55156 (exit $ac_status); }; }; then
55157 eval "$as_ac_var=yes"
55159 echo "$as_me: failed program was:" >&5
55160 sed 's/^/| /' conftest.$ac_ext >&5
55162 eval "$as_ac_var=no"
55164 rm -f conftest.err conftest.$ac_objext \
55165 conftest$ac_exeext conftest.$ac_ext
55167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55168 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55169 if test `eval echo '${'$as_ac_var'}'` = yes; then
55170 cat >>confdefs.h <<_ACEOF
55171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55173 ice_have_select=yes
55177 if test "${ice_have_select}" = yes; then
55178 echo "$as_me:$LINENO: checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h" >&5
55179 echo $ECHO_N "checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h... $ECHO_C" >&6
55180 if test "${ice_cv_have_select_decl+set}" = set; then
55181 echo $ECHO_N "(cached) $ECHO_C" >&6
55184 ice_cv_have_select_decl=no
55185 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
55186 ice_re_word='(^|[^a-zA-Z0-9_])'
55187 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
55188 # Check for ordinary declaration
55189 cat >conftest.$ac_ext <<_ACEOF
55192 cat confdefs.h >>conftest.$ac_ext
55193 cat >>conftest.$ac_ext <<_ACEOF
55194 /* end confdefs.h. */
55198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55199 $EGREP "${ice_re_word}select[ ]*\(" >/dev/null 2>&1; then
55200 ice_cv_have_select_decl=yes
55204 if test "$ice_cv_have_select_decl" = yes; then
55207 # Check for "fixed" declaration like "getpid _PARAMS((int))"
55208 cat >conftest.$ac_ext <<_ACEOF
55211 cat confdefs.h >>conftest.$ac_ext
55212 cat >>conftest.$ac_ext <<_ACEOF
55213 /* end confdefs.h. */
55217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55218 $EGREP "${ice_re_word}select[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
55219 ice_cv_have_select_decl=yes
55223 if test "$ice_cv_have_select_decl" = yes; then
55230 echo "$as_me:$LINENO: result: $ice_cv_have_select_decl" >&5
55231 echo "${ECHO_T}$ice_cv_have_select_decl" >&6
55232 if test "$ice_cv_have_select_decl" = yes; then
55234 cat >>confdefs.h <<_ACEOF
55235 #define HAVE_SELECT_DECL 1
55242 echo "$as_me:$LINENO: checking for select() argument type" >&5
55243 echo $ECHO_N "checking for select() argument type... $ECHO_C" >&6
55244 if test "${amanda_cv_select_arg_type+set}" = set; then
55245 echo $ECHO_N "(cached) $ECHO_C" >&6
55249 cat <<EOF >conftest.$ac_ext
55250 #include "confdefs.h"
55251 #ifdef HAVE_SYS_TIME_H
55252 # include <sys/time.h>
55254 #ifdef HAVE_SYS_TYPES_H
55255 # include <sys/types.h>
55257 #ifdef HAVE_SYS_SELECT_H
55258 # include <sys/select.h>
55260 #ifdef HAVE_SYS_SOCKET_H
55261 # include <sys/socket.h>
55263 #ifdef HAVE_UNISTD_H
55264 # include <unistd.h>
55269 #ifdef FD_SET_POINTER
55270 (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
55272 (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
55278 amanda_cv_select_arg_type=no
55279 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
55280 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
55281 if test $? -ne 0; then
55282 amanda_cv_select_arg_type=int
55284 if test "$amanda_cv_select_arg_type" = no; then
55285 $select_compile conftest.$ac_ext 1>conftest.int 2>&1
55286 if test $? -ne 0; then
55287 amanda_cv_select_arg_type=fd_set
55290 if test "$amanda_cv_select_arg_type" = no; then
55291 wc_fdset=`wc -l <conftest.fd_set`
55292 wc_int=`wc -l <conftest.int`
55293 if test "$wc_fdset" -le "$wc_int"; then
55294 amanda_cv_select_arg_type=fd_set
55296 amanda_cv_select_arg_type=int
55303 echo "$as_me:$LINENO: result: $amanda_cv_select_arg_type" >&5
55304 echo "${ECHO_T}$amanda_cv_select_arg_type" >&6
55306 cat >>confdefs.h <<_ACEOF
55307 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
55315 for ac_func in sendto
55317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55318 echo "$as_me:$LINENO: checking for $ac_func" >&5
55319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55320 if eval "test \"\${$as_ac_var+set}\" = set"; then
55321 echo $ECHO_N "(cached) $ECHO_C" >&6
55323 cat >conftest.$ac_ext <<_ACEOF
55326 cat confdefs.h >>conftest.$ac_ext
55327 cat >>conftest.$ac_ext <<_ACEOF
55328 /* end confdefs.h. */
55329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
55331 #define $ac_func innocuous_$ac_func
55333 /* System header to define __stub macros and hopefully few prototypes,
55334 which can conflict with char $ac_func (); below.
55335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55336 <limits.h> exists even on freestanding compilers. */
55339 # include <limits.h>
55341 # include <assert.h>
55346 /* Override any gcc2 internal prototype to avoid an error. */
55351 /* We use char because int might match the return type of a gcc2
55352 builtin and then its argument prototype would still apply. */
55354 /* The GNU C library defines this for functions which it implements
55355 to always fail with ENOSYS. Some functions are actually named
55356 something starting with __ and the normal name is an alias. */
55357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55360 char (*f) () = $ac_func;
55369 return f != $ac_func;
55374 rm -f conftest.$ac_objext conftest$ac_exeext
55375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55376 (eval $ac_link) 2>conftest.er1
55378 grep -v '^ *+' conftest.er1 >conftest.err
55380 cat conftest.err >&5
55381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55382 (exit $ac_status); } &&
55383 { ac_try='test -z "$ac_c_werror_flag"
55384 || test ! -s conftest.err'
55385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55386 (eval $ac_try) 2>&5
55388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55389 (exit $ac_status); }; } &&
55390 { ac_try='test -s conftest$ac_exeext'
55391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55392 (eval $ac_try) 2>&5
55394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55395 (exit $ac_status); }; }; then
55396 eval "$as_ac_var=yes"
55398 echo "$as_me: failed program was:" >&5
55399 sed 's/^/| /' conftest.$ac_ext >&5
55401 eval "$as_ac_var=no"
55403 rm -f conftest.err conftest.$ac_objext \
55404 conftest$ac_exeext conftest.$ac_ext
55406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55408 if test `eval echo '${'$as_ac_var'}'` = yes; then
55409 cat >>confdefs.h <<_ACEOF
55410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55412 ice_have_sendto=yes
55416 if test "${ice_have_sendto}" = yes; then
55417 echo "$as_me:$LINENO: checking for sendto declaration in sys/types.h sys/socket.h" >&5
55418 echo $ECHO_N "checking for sendto declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
55419 if test "${ice_cv_have_sendto_decl+set}" = set; then
55420 echo $ECHO_N "(cached) $ECHO_C" >&6
55423 ice_cv_have_sendto_decl=no
55424 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
55425 ice_re_word='(^|[^a-zA-Z0-9_])'
55426 for header in sys/types.h sys/socket.h; do
55427 # Check for ordinary declaration
55428 cat >conftest.$ac_ext <<_ACEOF
55431 cat confdefs.h >>conftest.$ac_ext
55432 cat >>conftest.$ac_ext <<_ACEOF
55433 /* end confdefs.h. */
55437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55438 $EGREP "${ice_re_word}sendto[ ]*\(" >/dev/null 2>&1; then
55439 ice_cv_have_sendto_decl=yes
55443 if test "$ice_cv_have_sendto_decl" = yes; then
55446 # Check for "fixed" declaration like "getpid _PARAMS((int))"
55447 cat >conftest.$ac_ext <<_ACEOF
55450 cat confdefs.h >>conftest.$ac_ext
55451 cat >>conftest.$ac_ext <<_ACEOF
55452 /* end confdefs.h. */
55456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55457 $EGREP "${ice_re_word}sendto[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
55458 ice_cv_have_sendto_decl=yes
55462 if test "$ice_cv_have_sendto_decl" = yes; then
55469 echo "$as_me:$LINENO: result: $ice_cv_have_sendto_decl" >&5
55470 echo "${ECHO_T}$ice_cv_have_sendto_decl" >&6
55471 if test "$ice_cv_have_sendto_decl" = yes; then
55473 cat >>confdefs.h <<_ACEOF
55474 #define HAVE_SENDTO_DECL 1
55481 ice_have_setegid=no
55483 for ac_func in setegid
55485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55486 echo "$as_me:$LINENO: checking for $ac_func" >&5
55487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55488 if eval "test \"\${$as_ac_var+set}\" = set"; then
55489 echo $ECHO_N "(cached) $ECHO_C" >&6
55491 cat >conftest.$ac_ext <<_ACEOF
55494 cat confdefs.h >>conftest.$ac_ext
55495 cat >>conftest.$ac_ext <<_ACEOF
55496 /* end confdefs.h. */
55497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
55499 #define $ac_func innocuous_$ac_func
55501 /* System header to define __stub macros and hopefully few prototypes,
55502 which can conflict with char $ac_func (); below.
55503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55504 <limits.h> exists even on freestanding compilers. */
55507 # include <limits.h>
55509 # include <assert.h>
55514 /* Override any gcc2 internal prototype to avoid an error. */
55519 /* We use char because int might match the return type of a gcc2
55520 builtin and then its argument prototype would still apply. */
55522 /* The GNU C library defines this for functions which it implements
55523 to always fail with ENOSYS. Some functions are actually named
55524 something starting with __ and the normal name is an alias. */
55525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55528 char (*f) () = $ac_func;
55537 return f != $ac_func;
55542 rm -f conftest.$ac_objext conftest$ac_exeext
55543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55544 (eval $ac_link) 2>conftest.er1
55546 grep -v '^ *+' conftest.er1 >conftest.err
55548 cat conftest.err >&5
55549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55550 (exit $ac_status); } &&
55551 { ac_try='test -z "$ac_c_werror_flag"
55552 || test ! -s conftest.err'
55553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55554 (eval $ac_try) 2>&5
55556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55557 (exit $ac_status); }; } &&
55558 { ac_try='test -s conftest$ac_exeext'
55559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55560 (eval $ac_try) 2>&5
55562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55563 (exit $ac_status); }; }; then
55564 eval "$as_ac_var=yes"
55566 echo "$as_me: failed program was:" >&5
55567 sed 's/^/| /' conftest.$ac_ext >&5
55569 eval "$as_ac_var=no"
55571 rm -f conftest.err conftest.$ac_objext \
55572 conftest$ac_exeext conftest.$ac_ext
55574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55576 if test `eval echo '${'$as_ac_var'}'` = yes; then
55577 cat >>confdefs.h <<_ACEOF
55578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55580 ice_have_setegid=yes
55584 if test "${ice_have_setegid}" = yes; then
55585 echo "$as_me:$LINENO: checking for setegid declaration in unistd.h" >&5
55586 echo $ECHO_N "checking for setegid declaration in unistd.h... $ECHO_C" >&6
55587 if test "${ice_cv_have_setegid_decl+set}" = set; then
55588 echo $ECHO_N "(cached) $ECHO_C" >&6
55591 ice_cv_have_setegid_decl=no
55592 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
55593 ice_re_word='(^|[^a-zA-Z0-9_])'
55594 for header in unistd.h; do
55595 # Check for ordinary declaration
55596 cat >conftest.$ac_ext <<_ACEOF
55599 cat confdefs.h >>conftest.$ac_ext
55600 cat >>conftest.$ac_ext <<_ACEOF
55601 /* end confdefs.h. */
55605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55606 $EGREP "${ice_re_word}setegid[ ]*\(" >/dev/null 2>&1; then
55607 ice_cv_have_setegid_decl=yes
55611 if test "$ice_cv_have_setegid_decl" = yes; then
55614 # Check for "fixed" declaration like "getpid _PARAMS((int))"
55615 cat >conftest.$ac_ext <<_ACEOF
55618 cat confdefs.h >>conftest.$ac_ext
55619 cat >>conftest.$ac_ext <<_ACEOF
55620 /* end confdefs.h. */
55624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55625 $EGREP "${ice_re_word}setegid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
55626 ice_cv_have_setegid_decl=yes
55630 if test "$ice_cv_have_setegid_decl" = yes; then
55637 echo "$as_me:$LINENO: result: $ice_cv_have_setegid_decl" >&5
55638 echo "${ECHO_T}$ice_cv_have_setegid_decl" >&6
55639 if test "$ice_cv_have_setegid_decl" = yes; then
55641 cat >>confdefs.h <<_ACEOF
55642 #define HAVE_SETEGID_DECL 1
55649 ice_have_seteuid=no
55651 for ac_func in seteuid
55653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55654 echo "$as_me:$LINENO: checking for $ac_func" >&5
55655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55656 if eval "test \"\${$as_ac_var+set}\" = set"; then
55657 echo $ECHO_N "(cached) $ECHO_C" >&6
55659 cat >conftest.$ac_ext <<_ACEOF
55662 cat confdefs.h >>conftest.$ac_ext
55663 cat >>conftest.$ac_ext <<_ACEOF
55664 /* end confdefs.h. */
55665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
55667 #define $ac_func innocuous_$ac_func
55669 /* System header to define __stub macros and hopefully few prototypes,
55670 which can conflict with char $ac_func (); below.
55671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55672 <limits.h> exists even on freestanding compilers. */
55675 # include <limits.h>
55677 # include <assert.h>
55682 /* Override any gcc2 internal prototype to avoid an error. */
55687 /* We use char because int might match the return type of a gcc2
55688 builtin and then its argument prototype would still apply. */
55690 /* The GNU C library defines this for functions which it implements
55691 to always fail with ENOSYS. Some functions are actually named
55692 something starting with __ and the normal name is an alias. */
55693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55696 char (*f) () = $ac_func;
55705 return f != $ac_func;
55710 rm -f conftest.$ac_objext conftest$ac_exeext
55711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55712 (eval $ac_link) 2>conftest.er1
55714 grep -v '^ *+' conftest.er1 >conftest.err
55716 cat conftest.err >&5
55717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55718 (exit $ac_status); } &&
55719 { ac_try='test -z "$ac_c_werror_flag"
55720 || test ! -s conftest.err'
55721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55722 (eval $ac_try) 2>&5
55724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55725 (exit $ac_status); }; } &&
55726 { ac_try='test -s conftest$ac_exeext'
55727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55728 (eval $ac_try) 2>&5
55730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55731 (exit $ac_status); }; }; then
55732 eval "$as_ac_var=yes"
55734 echo "$as_me: failed program was:" >&5
55735 sed 's/^/| /' conftest.$ac_ext >&5
55737 eval "$as_ac_var=no"
55739 rm -f conftest.err conftest.$ac_objext \
55740 conftest$ac_exeext conftest.$ac_ext
55742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55743 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55744 if test `eval echo '${'$as_ac_var'}'` = yes; then
55745 cat >>confdefs.h <<_ACEOF
55746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55748 ice_have_seteuid=yes
55752 if test "${ice_have_seteuid}" = yes; then
55753 echo "$as_me:$LINENO: checking for seteuid declaration in unistd.h" >&5
55754 echo $ECHO_N "checking for seteuid declaration in unistd.h... $ECHO_C" >&6
55755 if test "${ice_cv_have_seteuid_decl+set}" = set; then
55756 echo $ECHO_N "(cached) $ECHO_C" >&6
55759 ice_cv_have_seteuid_decl=no
55760 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
55761 ice_re_word='(^|[^a-zA-Z0-9_])'
55762 for header in unistd.h; do
55763 # Check for ordinary declaration
55764 cat >conftest.$ac_ext <<_ACEOF
55767 cat confdefs.h >>conftest.$ac_ext
55768 cat >>conftest.$ac_ext <<_ACEOF
55769 /* end confdefs.h. */
55773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55774 $EGREP "${ice_re_word}seteuid[ ]*\(" >/dev/null 2>&1; then
55775 ice_cv_have_seteuid_decl=yes
55779 if test "$ice_cv_have_seteuid_decl" = yes; then
55782 # Check for "fixed" declaration like "getpid _PARAMS((int))"
55783 cat >conftest.$ac_ext <<_ACEOF
55786 cat confdefs.h >>conftest.$ac_ext
55787 cat >>conftest.$ac_ext <<_ACEOF
55788 /* end confdefs.h. */
55792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55793 $EGREP "${ice_re_word}seteuid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
55794 ice_cv_have_seteuid_decl=yes
55798 if test "$ice_cv_have_seteuid_decl" = yes; then
55805 echo "$as_me:$LINENO: result: $ice_cv_have_seteuid_decl" >&5
55806 echo "${ECHO_T}$ice_cv_have_seteuid_decl" >&6
55807 if test "$ice_cv_have_seteuid_decl" = yes; then
55809 cat >>confdefs.h <<_ACEOF
55810 #define HAVE_SETEUID_DECL 1
55817 for ac_func in setmntent
55819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55820 echo "$as_me:$LINENO: checking for $ac_func" >&5
55821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55822 if eval "test \"\${$as_ac_var+set}\" = set"; then
55823 echo $ECHO_N "(cached) $ECHO_C" >&6
55825 cat >conftest.$ac_ext <<_ACEOF
55828 cat confdefs.h >>conftest.$ac_ext
55829 cat >>conftest.$ac_ext <<_ACEOF
55830 /* end confdefs.h. */
55831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
55833 #define $ac_func innocuous_$ac_func
55835 /* System header to define __stub macros and hopefully few prototypes,
55836 which can conflict with char $ac_func (); below.
55837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55838 <limits.h> exists even on freestanding compilers. */
55841 # include <limits.h>
55843 # include <assert.h>
55848 /* Override any gcc2 internal prototype to avoid an error. */
55853 /* We use char because int might match the return type of a gcc2
55854 builtin and then its argument prototype would still apply. */
55856 /* The GNU C library defines this for functions which it implements
55857 to always fail with ENOSYS. Some functions are actually named
55858 something starting with __ and the normal name is an alias. */
55859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55862 char (*f) () = $ac_func;
55871 return f != $ac_func;
55876 rm -f conftest.$ac_objext conftest$ac_exeext
55877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55878 (eval $ac_link) 2>conftest.er1
55880 grep -v '^ *+' conftest.er1 >conftest.err
55882 cat conftest.err >&5
55883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55884 (exit $ac_status); } &&
55885 { ac_try='test -z "$ac_c_werror_flag"
55886 || test ! -s conftest.err'
55887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55888 (eval $ac_try) 2>&5
55890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55891 (exit $ac_status); }; } &&
55892 { ac_try='test -s conftest$ac_exeext'
55893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55894 (eval $ac_try) 2>&5
55896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55897 (exit $ac_status); }; }; then
55898 eval "$as_ac_var=yes"
55900 echo "$as_me: failed program was:" >&5
55901 sed 's/^/| /' conftest.$ac_ext >&5
55903 eval "$as_ac_var=no"
55905 rm -f conftest.err conftest.$ac_objext \
55906 conftest$ac_exeext conftest.$ac_ext
55908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55910 if test `eval echo '${'$as_ac_var'}'` = yes; then
55911 cat >>confdefs.h <<_ACEOF
55912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55919 for ac_func in shquote
55921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55922 echo "$as_me:$LINENO: checking for $ac_func" >&5
55923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55924 if eval "test \"\${$as_ac_var+set}\" = set"; then
55925 echo $ECHO_N "(cached) $ECHO_C" >&6
55927 cat >conftest.$ac_ext <<_ACEOF
55930 cat confdefs.h >>conftest.$ac_ext
55931 cat >>conftest.$ac_ext <<_ACEOF
55932 /* end confdefs.h. */
55933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
55935 #define $ac_func innocuous_$ac_func
55937 /* System header to define __stub macros and hopefully few prototypes,
55938 which can conflict with char $ac_func (); below.
55939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55940 <limits.h> exists even on freestanding compilers. */
55943 # include <limits.h>
55945 # include <assert.h>
55950 /* Override any gcc2 internal prototype to avoid an error. */
55955 /* We use char because int might match the return type of a gcc2
55956 builtin and then its argument prototype would still apply. */
55958 /* The GNU C library defines this for functions which it implements
55959 to always fail with ENOSYS. Some functions are actually named
55960 something starting with __ and the normal name is an alias. */
55961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55964 char (*f) () = $ac_func;
55973 return f != $ac_func;
55978 rm -f conftest.$ac_objext conftest$ac_exeext
55979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55980 (eval $ac_link) 2>conftest.er1
55982 grep -v '^ *+' conftest.er1 >conftest.err
55984 cat conftest.err >&5
55985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55986 (exit $ac_status); } &&
55987 { ac_try='test -z "$ac_c_werror_flag"
55988 || test ! -s conftest.err'
55989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55990 (eval $ac_try) 2>&5
55992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55993 (exit $ac_status); }; } &&
55994 { ac_try='test -s conftest$ac_exeext'
55995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55996 (eval $ac_try) 2>&5
55998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55999 (exit $ac_status); }; }; then
56000 eval "$as_ac_var=yes"
56002 echo "$as_me: failed program was:" >&5
56003 sed 's/^/| /' conftest.$ac_ext >&5
56005 eval "$as_ac_var=no"
56007 rm -f conftest.err conftest.$ac_objext \
56008 conftest$ac_exeext conftest.$ac_ext
56010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56011 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56012 if test `eval echo '${'$as_ac_var'}'` = yes; then
56013 cat >>confdefs.h <<_ACEOF
56014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56022 ice_have_setresgid=no
56024 for ac_func in setresgid
56026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56027 echo "$as_me:$LINENO: checking for $ac_func" >&5
56028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56029 if eval "test \"\${$as_ac_var+set}\" = set"; then
56030 echo $ECHO_N "(cached) $ECHO_C" >&6
56032 cat >conftest.$ac_ext <<_ACEOF
56035 cat confdefs.h >>conftest.$ac_ext
56036 cat >>conftest.$ac_ext <<_ACEOF
56037 /* end confdefs.h. */
56038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56040 #define $ac_func innocuous_$ac_func
56042 /* System header to define __stub macros and hopefully few prototypes,
56043 which can conflict with char $ac_func (); below.
56044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56045 <limits.h> exists even on freestanding compilers. */
56048 # include <limits.h>
56050 # include <assert.h>
56055 /* Override any gcc2 internal prototype to avoid an error. */
56060 /* We use char because int might match the return type of a gcc2
56061 builtin and then its argument prototype would still apply. */
56063 /* The GNU C library defines this for functions which it implements
56064 to always fail with ENOSYS. Some functions are actually named
56065 something starting with __ and the normal name is an alias. */
56066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56069 char (*f) () = $ac_func;
56078 return f != $ac_func;
56083 rm -f conftest.$ac_objext conftest$ac_exeext
56084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56085 (eval $ac_link) 2>conftest.er1
56087 grep -v '^ *+' conftest.er1 >conftest.err
56089 cat conftest.err >&5
56090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56091 (exit $ac_status); } &&
56092 { ac_try='test -z "$ac_c_werror_flag"
56093 || test ! -s conftest.err'
56094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56095 (eval $ac_try) 2>&5
56097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56098 (exit $ac_status); }; } &&
56099 { ac_try='test -s conftest$ac_exeext'
56100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56101 (eval $ac_try) 2>&5
56103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56104 (exit $ac_status); }; }; then
56105 eval "$as_ac_var=yes"
56107 echo "$as_me: failed program was:" >&5
56108 sed 's/^/| /' conftest.$ac_ext >&5
56110 eval "$as_ac_var=no"
56112 rm -f conftest.err conftest.$ac_objext \
56113 conftest$ac_exeext conftest.$ac_ext
56115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56116 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56117 if test `eval echo '${'$as_ac_var'}'` = yes; then
56118 cat >>confdefs.h <<_ACEOF
56119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56121 ice_have_setresgid=yes
56125 if test "${ice_have_setresgid}" = yes; then
56126 echo "$as_me:$LINENO: checking for setresgid declaration in unistd.h" >&5
56127 echo $ECHO_N "checking for setresgid declaration in unistd.h... $ECHO_C" >&6
56128 if test "${ice_cv_have_setresgid_decl+set}" = set; then
56129 echo $ECHO_N "(cached) $ECHO_C" >&6
56132 ice_cv_have_setresgid_decl=no
56133 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
56134 ice_re_word='(^|[^a-zA-Z0-9_])'
56135 for header in unistd.h; do
56136 # Check for ordinary declaration
56137 cat >conftest.$ac_ext <<_ACEOF
56140 cat confdefs.h >>conftest.$ac_ext
56141 cat >>conftest.$ac_ext <<_ACEOF
56142 /* end confdefs.h. */
56146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56147 $EGREP "${ice_re_word}setresgid[ ]*\(" >/dev/null 2>&1; then
56148 ice_cv_have_setresgid_decl=yes
56152 if test "$ice_cv_have_setresgid_decl" = yes; then
56155 # Check for "fixed" declaration like "getpid _PARAMS((int))"
56156 cat >conftest.$ac_ext <<_ACEOF
56159 cat confdefs.h >>conftest.$ac_ext
56160 cat >>conftest.$ac_ext <<_ACEOF
56161 /* end confdefs.h. */
56165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56166 $EGREP "${ice_re_word}setresgid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
56167 ice_cv_have_setresgid_decl=yes
56171 if test "$ice_cv_have_setresgid_decl" = yes; then
56178 echo "$as_me:$LINENO: result: $ice_cv_have_setresgid_decl" >&5
56179 echo "${ECHO_T}$ice_cv_have_setresgid_decl" >&6
56180 if test "$ice_cv_have_setresgid_decl" = yes; then
56182 cat >>confdefs.h <<_ACEOF
56183 #define HAVE_SETRESGID_DECL 1
56190 ice_have_setresuid=no
56192 for ac_func in setresuid
56194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56195 echo "$as_me:$LINENO: checking for $ac_func" >&5
56196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56197 if eval "test \"\${$as_ac_var+set}\" = set"; then
56198 echo $ECHO_N "(cached) $ECHO_C" >&6
56200 cat >conftest.$ac_ext <<_ACEOF
56203 cat confdefs.h >>conftest.$ac_ext
56204 cat >>conftest.$ac_ext <<_ACEOF
56205 /* end confdefs.h. */
56206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56208 #define $ac_func innocuous_$ac_func
56210 /* System header to define __stub macros and hopefully few prototypes,
56211 which can conflict with char $ac_func (); below.
56212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56213 <limits.h> exists even on freestanding compilers. */
56216 # include <limits.h>
56218 # include <assert.h>
56223 /* Override any gcc2 internal prototype to avoid an error. */
56228 /* We use char because int might match the return type of a gcc2
56229 builtin and then its argument prototype would still apply. */
56231 /* The GNU C library defines this for functions which it implements
56232 to always fail with ENOSYS. Some functions are actually named
56233 something starting with __ and the normal name is an alias. */
56234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56237 char (*f) () = $ac_func;
56246 return f != $ac_func;
56251 rm -f conftest.$ac_objext conftest$ac_exeext
56252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56253 (eval $ac_link) 2>conftest.er1
56255 grep -v '^ *+' conftest.er1 >conftest.err
56257 cat conftest.err >&5
56258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56259 (exit $ac_status); } &&
56260 { ac_try='test -z "$ac_c_werror_flag"
56261 || test ! -s conftest.err'
56262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56263 (eval $ac_try) 2>&5
56265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56266 (exit $ac_status); }; } &&
56267 { ac_try='test -s conftest$ac_exeext'
56268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56269 (eval $ac_try) 2>&5
56271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56272 (exit $ac_status); }; }; then
56273 eval "$as_ac_var=yes"
56275 echo "$as_me: failed program was:" >&5
56276 sed 's/^/| /' conftest.$ac_ext >&5
56278 eval "$as_ac_var=no"
56280 rm -f conftest.err conftest.$ac_objext \
56281 conftest$ac_exeext conftest.$ac_ext
56283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56285 if test `eval echo '${'$as_ac_var'}'` = yes; then
56286 cat >>confdefs.h <<_ACEOF
56287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56289 ice_have_setresuid=yes
56293 if test "${ice_have_setresuid}" = yes; then
56294 echo "$as_me:$LINENO: checking for setresuid declaration in unistd.h" >&5
56295 echo $ECHO_N "checking for setresuid declaration in unistd.h... $ECHO_C" >&6
56296 if test "${ice_cv_have_setresuid_decl+set}" = set; then
56297 echo $ECHO_N "(cached) $ECHO_C" >&6
56300 ice_cv_have_setresuid_decl=no
56301 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
56302 ice_re_word='(^|[^a-zA-Z0-9_])'
56303 for header in unistd.h; do
56304 # Check for ordinary declaration
56305 cat >conftest.$ac_ext <<_ACEOF
56308 cat confdefs.h >>conftest.$ac_ext
56309 cat >>conftest.$ac_ext <<_ACEOF
56310 /* end confdefs.h. */
56314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56315 $EGREP "${ice_re_word}setresuid[ ]*\(" >/dev/null 2>&1; then
56316 ice_cv_have_setresuid_decl=yes
56320 if test "$ice_cv_have_setresuid_decl" = yes; then
56323 # Check for "fixed" declaration like "getpid _PARAMS((int))"
56324 cat >conftest.$ac_ext <<_ACEOF
56327 cat confdefs.h >>conftest.$ac_ext
56328 cat >>conftest.$ac_ext <<_ACEOF
56329 /* end confdefs.h. */
56333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56334 $EGREP "${ice_re_word}setresuid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
56335 ice_cv_have_setresuid_decl=yes
56339 if test "$ice_cv_have_setresuid_decl" = yes; then
56346 echo "$as_me:$LINENO: result: $ice_cv_have_setresuid_decl" >&5
56347 echo "${ECHO_T}$ice_cv_have_setresuid_decl" >&6
56348 if test "$ice_cv_have_setresuid_decl" = yes; then
56350 cat >>confdefs.h <<_ACEOF
56351 #define HAVE_SETRESUID_DECL 1
56358 ice_have_snprintf=no
56360 for ac_func in snprintf
56362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56363 echo "$as_me:$LINENO: checking for $ac_func" >&5
56364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56365 if eval "test \"\${$as_ac_var+set}\" = set"; then
56366 echo $ECHO_N "(cached) $ECHO_C" >&6
56368 cat >conftest.$ac_ext <<_ACEOF
56371 cat confdefs.h >>conftest.$ac_ext
56372 cat >>conftest.$ac_ext <<_ACEOF
56373 /* end confdefs.h. */
56374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56376 #define $ac_func innocuous_$ac_func
56378 /* System header to define __stub macros and hopefully few prototypes,
56379 which can conflict with char $ac_func (); below.
56380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56381 <limits.h> exists even on freestanding compilers. */
56384 # include <limits.h>
56386 # include <assert.h>
56391 /* Override any gcc2 internal prototype to avoid an error. */
56396 /* We use char because int might match the return type of a gcc2
56397 builtin and then its argument prototype would still apply. */
56399 /* The GNU C library defines this for functions which it implements
56400 to always fail with ENOSYS. Some functions are actually named
56401 something starting with __ and the normal name is an alias. */
56402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56405 char (*f) () = $ac_func;
56414 return f != $ac_func;
56419 rm -f conftest.$ac_objext conftest$ac_exeext
56420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56421 (eval $ac_link) 2>conftest.er1
56423 grep -v '^ *+' conftest.er1 >conftest.err
56425 cat conftest.err >&5
56426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56427 (exit $ac_status); } &&
56428 { ac_try='test -z "$ac_c_werror_flag"
56429 || test ! -s conftest.err'
56430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56431 (eval $ac_try) 2>&5
56433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56434 (exit $ac_status); }; } &&
56435 { ac_try='test -s conftest$ac_exeext'
56436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56437 (eval $ac_try) 2>&5
56439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56440 (exit $ac_status); }; }; then
56441 eval "$as_ac_var=yes"
56443 echo "$as_me: failed program was:" >&5
56444 sed 's/^/| /' conftest.$ac_ext >&5
56446 eval "$as_ac_var=no"
56448 rm -f conftest.err conftest.$ac_objext \
56449 conftest$ac_exeext conftest.$ac_ext
56451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56452 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56453 if test `eval echo '${'$as_ac_var'}'` = yes; then
56454 cat >>confdefs.h <<_ACEOF
56455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56457 ice_have_snprintf=yes
56461 if test "${ice_have_snprintf}" = yes; then
56462 echo "$as_me:$LINENO: checking for snprintf declaration in stdio.h" >&5
56463 echo $ECHO_N "checking for snprintf declaration in stdio.h... $ECHO_C" >&6
56464 if test "${ice_cv_have_snprintf_decl+set}" = set; then
56465 echo $ECHO_N "(cached) $ECHO_C" >&6
56468 ice_cv_have_snprintf_decl=no
56469 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
56470 ice_re_word='(^|[^a-zA-Z0-9_])'
56471 for header in stdio.h; do
56472 # Check for ordinary declaration
56473 cat >conftest.$ac_ext <<_ACEOF
56476 cat confdefs.h >>conftest.$ac_ext
56477 cat >>conftest.$ac_ext <<_ACEOF
56478 /* end confdefs.h. */
56482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56483 $EGREP "${ice_re_word}snprintf[ ]*\(" >/dev/null 2>&1; then
56484 ice_cv_have_snprintf_decl=yes
56488 if test "$ice_cv_have_snprintf_decl" = yes; then
56491 # Check for "fixed" declaration like "getpid _PARAMS((int))"
56492 cat >conftest.$ac_ext <<_ACEOF
56495 cat confdefs.h >>conftest.$ac_ext
56496 cat >>conftest.$ac_ext <<_ACEOF
56497 /* end confdefs.h. */
56501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56502 $EGREP "${ice_re_word}snprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
56503 ice_cv_have_snprintf_decl=yes
56507 if test "$ice_cv_have_snprintf_decl" = yes; then
56514 echo "$as_me:$LINENO: result: $ice_cv_have_snprintf_decl" >&5
56515 echo "${ECHO_T}$ice_cv_have_snprintf_decl" >&6
56516 if test "$ice_cv_have_snprintf_decl" = yes; then
56518 cat >>confdefs.h <<_ACEOF
56519 #define HAVE_SNPRINTF_DECL 1
56526 ice_have_vsnprintf=no
56528 for ac_func in vsnprintf
56530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56531 echo "$as_me:$LINENO: checking for $ac_func" >&5
56532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56533 if eval "test \"\${$as_ac_var+set}\" = set"; then
56534 echo $ECHO_N "(cached) $ECHO_C" >&6
56536 cat >conftest.$ac_ext <<_ACEOF
56539 cat confdefs.h >>conftest.$ac_ext
56540 cat >>conftest.$ac_ext <<_ACEOF
56541 /* end confdefs.h. */
56542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56544 #define $ac_func innocuous_$ac_func
56546 /* System header to define __stub macros and hopefully few prototypes,
56547 which can conflict with char $ac_func (); below.
56548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56549 <limits.h> exists even on freestanding compilers. */
56552 # include <limits.h>
56554 # include <assert.h>
56559 /* Override any gcc2 internal prototype to avoid an error. */
56564 /* We use char because int might match the return type of a gcc2
56565 builtin and then its argument prototype would still apply. */
56567 /* The GNU C library defines this for functions which it implements
56568 to always fail with ENOSYS. Some functions are actually named
56569 something starting with __ and the normal name is an alias. */
56570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56573 char (*f) () = $ac_func;
56582 return f != $ac_func;
56587 rm -f conftest.$ac_objext conftest$ac_exeext
56588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56589 (eval $ac_link) 2>conftest.er1
56591 grep -v '^ *+' conftest.er1 >conftest.err
56593 cat conftest.err >&5
56594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56595 (exit $ac_status); } &&
56596 { ac_try='test -z "$ac_c_werror_flag"
56597 || test ! -s conftest.err'
56598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56599 (eval $ac_try) 2>&5
56601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56602 (exit $ac_status); }; } &&
56603 { ac_try='test -s conftest$ac_exeext'
56604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56605 (eval $ac_try) 2>&5
56607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56608 (exit $ac_status); }; }; then
56609 eval "$as_ac_var=yes"
56611 echo "$as_me: failed program was:" >&5
56612 sed 's/^/| /' conftest.$ac_ext >&5
56614 eval "$as_ac_var=no"
56616 rm -f conftest.err conftest.$ac_objext \
56617 conftest$ac_exeext conftest.$ac_ext
56619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56620 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56621 if test `eval echo '${'$as_ac_var'}'` = yes; then
56622 cat >>confdefs.h <<_ACEOF
56623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56625 ice_have_vsnprintf=yes
56629 if test "${ice_have_vsnprintf}" = yes; then
56630 echo "$as_me:$LINENO: checking for vsnprintf declaration in stdio.h" >&5
56631 echo $ECHO_N "checking for vsnprintf declaration in stdio.h... $ECHO_C" >&6
56632 if test "${ice_cv_have_vsnprintf_decl+set}" = set; then
56633 echo $ECHO_N "(cached) $ECHO_C" >&6
56636 ice_cv_have_vsnprintf_decl=no
56637 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
56638 ice_re_word='(^|[^a-zA-Z0-9_])'
56639 for header in stdio.h; do
56640 # Check for ordinary declaration
56641 cat >conftest.$ac_ext <<_ACEOF
56644 cat confdefs.h >>conftest.$ac_ext
56645 cat >>conftest.$ac_ext <<_ACEOF
56646 /* end confdefs.h. */
56650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56651 $EGREP "${ice_re_word}vsnprintf[ ]*\(" >/dev/null 2>&1; then
56652 ice_cv_have_vsnprintf_decl=yes
56656 if test "$ice_cv_have_vsnprintf_decl" = yes; then
56659 # Check for "fixed" declaration like "getpid _PARAMS((int))"
56660 cat >conftest.$ac_ext <<_ACEOF
56663 cat confdefs.h >>conftest.$ac_ext
56664 cat >>conftest.$ac_ext <<_ACEOF
56665 /* end confdefs.h. */
56669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56670 $EGREP "${ice_re_word}vsnprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
56671 ice_cv_have_vsnprintf_decl=yes
56675 if test "$ice_cv_have_vsnprintf_decl" = yes; then
56682 echo "$as_me:$LINENO: result: $ice_cv_have_vsnprintf_decl" >&5
56683 echo "${ECHO_T}$ice_cv_have_vsnprintf_decl" >&6
56684 if test "$ice_cv_have_vsnprintf_decl" = yes; then
56686 cat >>confdefs.h <<_ACEOF
56687 #define HAVE_VSNPRINTF_DECL 1
56694 echo "$as_me:$LINENO: checking for setpgid" >&5
56695 echo $ECHO_N "checking for setpgid... $ECHO_C" >&6
56696 if test "${ac_cv_func_setpgid+set}" = set; then
56697 echo $ECHO_N "(cached) $ECHO_C" >&6
56699 cat >conftest.$ac_ext <<_ACEOF
56702 cat confdefs.h >>conftest.$ac_ext
56703 cat >>conftest.$ac_ext <<_ACEOF
56704 /* end confdefs.h. */
56705 /* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
56706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56707 #define setpgid innocuous_setpgid
56709 /* System header to define __stub macros and hopefully few prototypes,
56710 which can conflict with char setpgid (); below.
56711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56712 <limits.h> exists even on freestanding compilers. */
56715 # include <limits.h>
56717 # include <assert.h>
56722 /* Override any gcc2 internal prototype to avoid an error. */
56727 /* We use char because int might match the return type of a gcc2
56728 builtin and then its argument prototype would still apply. */
56730 /* The GNU C library defines this for functions which it implements
56731 to always fail with ENOSYS. Some functions are actually named
56732 something starting with __ and the normal name is an alias. */
56733 #if defined (__stub_setpgid) || defined (__stub___setpgid)
56736 char (*f) () = setpgid;
56745 return f != setpgid;
56750 rm -f conftest.$ac_objext conftest$ac_exeext
56751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56752 (eval $ac_link) 2>conftest.er1
56754 grep -v '^ *+' conftest.er1 >conftest.err
56756 cat conftest.err >&5
56757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56758 (exit $ac_status); } &&
56759 { ac_try='test -z "$ac_c_werror_flag"
56760 || test ! -s conftest.err'
56761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56762 (eval $ac_try) 2>&5
56764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56765 (exit $ac_status); }; } &&
56766 { ac_try='test -s conftest$ac_exeext'
56767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56768 (eval $ac_try) 2>&5
56770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56771 (exit $ac_status); }; }; then
56772 ac_cv_func_setpgid=yes
56774 echo "$as_me: failed program was:" >&5
56775 sed 's/^/| /' conftest.$ac_ext >&5
56777 ac_cv_func_setpgid=no
56779 rm -f conftest.err conftest.$ac_objext \
56780 conftest$ac_exeext conftest.$ac_ext
56782 echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
56783 echo "${ECHO_T}$ac_cv_func_setpgid" >&6
56784 if test $ac_cv_func_setpgid = yes; then
56787 cat >>confdefs.h <<\_ACEOF
56788 #define HAVE_SETPGID 1
56792 ice_have_setpgid=no
56794 for ac_func in setpgid
56796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56797 echo "$as_me:$LINENO: checking for $ac_func" >&5
56798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56799 if eval "test \"\${$as_ac_var+set}\" = set"; then
56800 echo $ECHO_N "(cached) $ECHO_C" >&6
56802 cat >conftest.$ac_ext <<_ACEOF
56805 cat confdefs.h >>conftest.$ac_ext
56806 cat >>conftest.$ac_ext <<_ACEOF
56807 /* end confdefs.h. */
56808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56810 #define $ac_func innocuous_$ac_func
56812 /* System header to define __stub macros and hopefully few prototypes,
56813 which can conflict with char $ac_func (); below.
56814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56815 <limits.h> exists even on freestanding compilers. */
56818 # include <limits.h>
56820 # include <assert.h>
56825 /* Override any gcc2 internal prototype to avoid an error. */
56830 /* We use char because int might match the return type of a gcc2
56831 builtin and then its argument prototype would still apply. */
56833 /* The GNU C library defines this for functions which it implements
56834 to always fail with ENOSYS. Some functions are actually named
56835 something starting with __ and the normal name is an alias. */
56836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56839 char (*f) () = $ac_func;
56848 return f != $ac_func;
56853 rm -f conftest.$ac_objext conftest$ac_exeext
56854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56855 (eval $ac_link) 2>conftest.er1
56857 grep -v '^ *+' conftest.er1 >conftest.err
56859 cat conftest.err >&5
56860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56861 (exit $ac_status); } &&
56862 { ac_try='test -z "$ac_c_werror_flag"
56863 || test ! -s conftest.err'
56864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56865 (eval $ac_try) 2>&5
56867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56868 (exit $ac_status); }; } &&
56869 { ac_try='test -s conftest$ac_exeext'
56870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56871 (eval $ac_try) 2>&5
56873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56874 (exit $ac_status); }; }; then
56875 eval "$as_ac_var=yes"
56877 echo "$as_me: failed program was:" >&5
56878 sed 's/^/| /' conftest.$ac_ext >&5
56880 eval "$as_ac_var=no"
56882 rm -f conftest.err conftest.$ac_objext \
56883 conftest$ac_exeext conftest.$ac_ext
56885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56886 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56887 if test `eval echo '${'$as_ac_var'}'` = yes; then
56888 cat >>confdefs.h <<_ACEOF
56889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56891 ice_have_setpgid=yes
56895 if test "${ice_have_setpgid}" = yes; then
56896 echo "$as_me:$LINENO: checking for setpgid declaration in sys/types.h unistd.h" >&5
56897 echo $ECHO_N "checking for setpgid declaration in sys/types.h unistd.h... $ECHO_C" >&6
56898 if test "${ice_cv_have_setpgid_decl+set}" = set; then
56899 echo $ECHO_N "(cached) $ECHO_C" >&6
56902 ice_cv_have_setpgid_decl=no
56903 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
56904 ice_re_word='(^|[^a-zA-Z0-9_])'
56905 for header in sys/types.h unistd.h; do
56906 # Check for ordinary declaration
56907 cat >conftest.$ac_ext <<_ACEOF
56910 cat confdefs.h >>conftest.$ac_ext
56911 cat >>conftest.$ac_ext <<_ACEOF
56912 /* end confdefs.h. */
56916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56917 $EGREP "${ice_re_word}setpgid[ ]*\(" >/dev/null 2>&1; then
56918 ice_cv_have_setpgid_decl=yes
56922 if test "$ice_cv_have_setpgid_decl" = yes; then
56925 # Check for "fixed" declaration like "getpid _PARAMS((int))"
56926 cat >conftest.$ac_ext <<_ACEOF
56929 cat confdefs.h >>conftest.$ac_ext
56930 cat >>conftest.$ac_ext <<_ACEOF
56931 /* end confdefs.h. */
56935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56936 $EGREP "${ice_re_word}setpgid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
56937 ice_cv_have_setpgid_decl=yes
56941 if test "$ice_cv_have_setpgid_decl" = yes; then
56948 echo "$as_me:$LINENO: result: $ice_cv_have_setpgid_decl" >&5
56949 echo "${ECHO_T}$ice_cv_have_setpgid_decl" >&6
56950 if test "$ice_cv_have_setpgid_decl" = yes; then
56952 cat >>confdefs.h <<_ACEOF
56953 #define HAVE_SETPGID_DECL 1
56962 echo "$as_me:$LINENO: checking for setpgrp" >&5
56963 echo $ECHO_N "checking for setpgrp... $ECHO_C" >&6
56964 if test "${ac_cv_func_setpgrp+set}" = set; then
56965 echo $ECHO_N "(cached) $ECHO_C" >&6
56967 cat >conftest.$ac_ext <<_ACEOF
56970 cat confdefs.h >>conftest.$ac_ext
56971 cat >>conftest.$ac_ext <<_ACEOF
56972 /* end confdefs.h. */
56973 /* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
56974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56975 #define setpgrp innocuous_setpgrp
56977 /* System header to define __stub macros and hopefully few prototypes,
56978 which can conflict with char setpgrp (); below.
56979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56980 <limits.h> exists even on freestanding compilers. */
56983 # include <limits.h>
56985 # include <assert.h>
56990 /* Override any gcc2 internal prototype to avoid an error. */
56995 /* We use char because int might match the return type of a gcc2
56996 builtin and then its argument prototype would still apply. */
56998 /* The GNU C library defines this for functions which it implements
56999 to always fail with ENOSYS. Some functions are actually named
57000 something starting with __ and the normal name is an alias. */
57001 #if defined (__stub_setpgrp) || defined (__stub___setpgrp)
57004 char (*f) () = setpgrp;
57013 return f != setpgrp;
57018 rm -f conftest.$ac_objext conftest$ac_exeext
57019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57020 (eval $ac_link) 2>conftest.er1
57022 grep -v '^ *+' conftest.er1 >conftest.err
57024 cat conftest.err >&5
57025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57026 (exit $ac_status); } &&
57027 { ac_try='test -z "$ac_c_werror_flag"
57028 || test ! -s conftest.err'
57029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57030 (eval $ac_try) 2>&5
57032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57033 (exit $ac_status); }; } &&
57034 { ac_try='test -s conftest$ac_exeext'
57035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57036 (eval $ac_try) 2>&5
57038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57039 (exit $ac_status); }; }; then
57040 ac_cv_func_setpgrp=yes
57042 echo "$as_me: failed program was:" >&5
57043 sed 's/^/| /' conftest.$ac_ext >&5
57045 ac_cv_func_setpgrp=no
57047 rm -f conftest.err conftest.$ac_objext \
57048 conftest$ac_exeext conftest.$ac_ext
57050 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
57051 echo "${ECHO_T}$ac_cv_func_setpgrp" >&6
57052 if test $ac_cv_func_setpgrp = yes; then
57053 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
57054 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
57055 if test "${ac_cv_func_setpgrp_void+set}" = set; then
57056 echo $ECHO_N "(cached) $ECHO_C" >&6
57058 if test "$cross_compiling" = yes; then
57059 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
57060 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
57061 { (exit 1); exit 1; }; }
57063 cat >conftest.$ac_ext <<_ACEOF
57066 cat confdefs.h >>conftest.$ac_ext
57067 cat >>conftest.$ac_ext <<_ACEOF
57068 /* end confdefs.h. */
57070 # include <unistd.h>
57076 /* If this system has a BSD-style setpgrp which takes arguments,
57077 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
57078 exit successfully. */
57079 exit (setpgrp (1,1) == -1 ? 0 : 1);
57084 rm -f conftest$ac_exeext
57085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57086 (eval $ac_link) 2>&5
57088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
57090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57091 (eval $ac_try) 2>&5
57093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57094 (exit $ac_status); }; }; then
57095 ac_cv_func_setpgrp_void=no
57097 echo "$as_me: program exited with status $ac_status" >&5
57098 echo "$as_me: failed program was:" >&5
57099 sed 's/^/| /' conftest.$ac_ext >&5
57101 ( exit $ac_status )
57102 ac_cv_func_setpgrp_void=yes
57104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
57107 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
57108 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
57109 if test $ac_cv_func_setpgrp_void = yes; then
57111 cat >>confdefs.h <<\_ACEOF
57112 #define SETPGRP_VOID 1
57120 ice_have_setpgrp=no
57122 for ac_func in setpgrp
57124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57125 echo "$as_me:$LINENO: checking for $ac_func" >&5
57126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57127 if eval "test \"\${$as_ac_var+set}\" = set"; then
57128 echo $ECHO_N "(cached) $ECHO_C" >&6
57130 cat >conftest.$ac_ext <<_ACEOF
57133 cat confdefs.h >>conftest.$ac_ext
57134 cat >>conftest.$ac_ext <<_ACEOF
57135 /* end confdefs.h. */
57136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57138 #define $ac_func innocuous_$ac_func
57140 /* System header to define __stub macros and hopefully few prototypes,
57141 which can conflict with char $ac_func (); below.
57142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57143 <limits.h> exists even on freestanding compilers. */
57146 # include <limits.h>
57148 # include <assert.h>
57153 /* Override any gcc2 internal prototype to avoid an error. */
57158 /* We use char because int might match the return type of a gcc2
57159 builtin and then its argument prototype would still apply. */
57161 /* The GNU C library defines this for functions which it implements
57162 to always fail with ENOSYS. Some functions are actually named
57163 something starting with __ and the normal name is an alias. */
57164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57167 char (*f) () = $ac_func;
57176 return f != $ac_func;
57181 rm -f conftest.$ac_objext conftest$ac_exeext
57182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57183 (eval $ac_link) 2>conftest.er1
57185 grep -v '^ *+' conftest.er1 >conftest.err
57187 cat conftest.err >&5
57188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57189 (exit $ac_status); } &&
57190 { ac_try='test -z "$ac_c_werror_flag"
57191 || test ! -s conftest.err'
57192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57193 (eval $ac_try) 2>&5
57195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57196 (exit $ac_status); }; } &&
57197 { ac_try='test -s conftest$ac_exeext'
57198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57199 (eval $ac_try) 2>&5
57201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57202 (exit $ac_status); }; }; then
57203 eval "$as_ac_var=yes"
57205 echo "$as_me: failed program was:" >&5
57206 sed 's/^/| /' conftest.$ac_ext >&5
57208 eval "$as_ac_var=no"
57210 rm -f conftest.err conftest.$ac_objext \
57211 conftest$ac_exeext conftest.$ac_ext
57213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57214 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57215 if test `eval echo '${'$as_ac_var'}'` = yes; then
57216 cat >>confdefs.h <<_ACEOF
57217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57219 ice_have_setpgrp=yes
57223 if test "${ice_have_setpgrp}" = yes; then
57224 echo "$as_me:$LINENO: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
57225 echo $ECHO_N "checking for setpgrp declaration in sys/types.h unistd.h libc.h... $ECHO_C" >&6
57226 if test "${ice_cv_have_setpgrp_decl+set}" = set; then
57227 echo $ECHO_N "(cached) $ECHO_C" >&6
57230 ice_cv_have_setpgrp_decl=no
57231 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57232 ice_re_word='(^|[^a-zA-Z0-9_])'
57233 for header in sys/types.h unistd.h libc.h; do
57234 # Check for ordinary declaration
57235 cat >conftest.$ac_ext <<_ACEOF
57238 cat confdefs.h >>conftest.$ac_ext
57239 cat >>conftest.$ac_ext <<_ACEOF
57240 /* end confdefs.h. */
57244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57245 $EGREP "${ice_re_word}setpgrp[ ]*\(" >/dev/null 2>&1; then
57246 ice_cv_have_setpgrp_decl=yes
57250 if test "$ice_cv_have_setpgrp_decl" = yes; then
57253 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57254 cat >conftest.$ac_ext <<_ACEOF
57257 cat confdefs.h >>conftest.$ac_ext
57258 cat >>conftest.$ac_ext <<_ACEOF
57259 /* end confdefs.h. */
57263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57264 $EGREP "${ice_re_word}setpgrp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57265 ice_cv_have_setpgrp_decl=yes
57269 if test "$ice_cv_have_setpgrp_decl" = yes; then
57276 echo "$as_me:$LINENO: result: $ice_cv_have_setpgrp_decl" >&5
57277 echo "${ECHO_T}$ice_cv_have_setpgrp_decl" >&6
57278 if test "$ice_cv_have_setpgrp_decl" = yes; then
57280 cat >>confdefs.h <<_ACEOF
57281 #define HAVE_SETPGRP_DECL 1
57289 ice_have_setsockopt=no
57291 for ac_func in setsockopt
57293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57294 echo "$as_me:$LINENO: checking for $ac_func" >&5
57295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57296 if eval "test \"\${$as_ac_var+set}\" = set"; then
57297 echo $ECHO_N "(cached) $ECHO_C" >&6
57299 cat >conftest.$ac_ext <<_ACEOF
57302 cat confdefs.h >>conftest.$ac_ext
57303 cat >>conftest.$ac_ext <<_ACEOF
57304 /* end confdefs.h. */
57305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57307 #define $ac_func innocuous_$ac_func
57309 /* System header to define __stub macros and hopefully few prototypes,
57310 which can conflict with char $ac_func (); below.
57311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57312 <limits.h> exists even on freestanding compilers. */
57315 # include <limits.h>
57317 # include <assert.h>
57322 /* Override any gcc2 internal prototype to avoid an error. */
57327 /* We use char because int might match the return type of a gcc2
57328 builtin and then its argument prototype would still apply. */
57330 /* The GNU C library defines this for functions which it implements
57331 to always fail with ENOSYS. Some functions are actually named
57332 something starting with __ and the normal name is an alias. */
57333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57336 char (*f) () = $ac_func;
57345 return f != $ac_func;
57350 rm -f conftest.$ac_objext conftest$ac_exeext
57351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57352 (eval $ac_link) 2>conftest.er1
57354 grep -v '^ *+' conftest.er1 >conftest.err
57356 cat conftest.err >&5
57357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57358 (exit $ac_status); } &&
57359 { ac_try='test -z "$ac_c_werror_flag"
57360 || test ! -s conftest.err'
57361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57362 (eval $ac_try) 2>&5
57364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57365 (exit $ac_status); }; } &&
57366 { ac_try='test -s conftest$ac_exeext'
57367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57368 (eval $ac_try) 2>&5
57370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57371 (exit $ac_status); }; }; then
57372 eval "$as_ac_var=yes"
57374 echo "$as_me: failed program was:" >&5
57375 sed 's/^/| /' conftest.$ac_ext >&5
57377 eval "$as_ac_var=no"
57379 rm -f conftest.err conftest.$ac_objext \
57380 conftest$ac_exeext conftest.$ac_ext
57382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57383 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57384 if test `eval echo '${'$as_ac_var'}'` = yes; then
57385 cat >>confdefs.h <<_ACEOF
57386 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57388 ice_have_setsockopt=yes
57392 if test "${ice_have_setsockopt}" = yes; then
57393 echo "$as_me:$LINENO: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
57394 echo $ECHO_N "checking for setsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
57395 if test "${ice_cv_have_setsockopt_decl+set}" = set; then
57396 echo $ECHO_N "(cached) $ECHO_C" >&6
57399 ice_cv_have_setsockopt_decl=no
57400 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57401 ice_re_word='(^|[^a-zA-Z0-9_])'
57402 for header in sys/types.h sys/socket.h; do
57403 # Check for ordinary declaration
57404 cat >conftest.$ac_ext <<_ACEOF
57407 cat confdefs.h >>conftest.$ac_ext
57408 cat >>conftest.$ac_ext <<_ACEOF
57409 /* end confdefs.h. */
57413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57414 $EGREP "${ice_re_word}setsockopt[ ]*\(" >/dev/null 2>&1; then
57415 ice_cv_have_setsockopt_decl=yes
57419 if test "$ice_cv_have_setsockopt_decl" = yes; then
57422 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57423 cat >conftest.$ac_ext <<_ACEOF
57426 cat confdefs.h >>conftest.$ac_ext
57427 cat >>conftest.$ac_ext <<_ACEOF
57428 /* end confdefs.h. */
57432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57433 $EGREP "${ice_re_word}setsockopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57434 ice_cv_have_setsockopt_decl=yes
57438 if test "$ice_cv_have_setsockopt_decl" = yes; then
57445 echo "$as_me:$LINENO: result: $ice_cv_have_setsockopt_decl" >&5
57446 echo "${ECHO_T}$ice_cv_have_setsockopt_decl" >&6
57447 if test "$ice_cv_have_setsockopt_decl" = yes; then
57449 cat >>confdefs.h <<_ACEOF
57450 #define HAVE_SETSOCKOPT_DECL 1
57458 for ac_func in shmget
57460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57461 echo "$as_me:$LINENO: checking for $ac_func" >&5
57462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57463 if eval "test \"\${$as_ac_var+set}\" = set"; then
57464 echo $ECHO_N "(cached) $ECHO_C" >&6
57466 cat >conftest.$ac_ext <<_ACEOF
57469 cat confdefs.h >>conftest.$ac_ext
57470 cat >>conftest.$ac_ext <<_ACEOF
57471 /* end confdefs.h. */
57472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57474 #define $ac_func innocuous_$ac_func
57476 /* System header to define __stub macros and hopefully few prototypes,
57477 which can conflict with char $ac_func (); below.
57478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57479 <limits.h> exists even on freestanding compilers. */
57482 # include <limits.h>
57484 # include <assert.h>
57489 /* Override any gcc2 internal prototype to avoid an error. */
57494 /* We use char because int might match the return type of a gcc2
57495 builtin and then its argument prototype would still apply. */
57497 /* The GNU C library defines this for functions which it implements
57498 to always fail with ENOSYS. Some functions are actually named
57499 something starting with __ and the normal name is an alias. */
57500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57503 char (*f) () = $ac_func;
57512 return f != $ac_func;
57517 rm -f conftest.$ac_objext conftest$ac_exeext
57518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57519 (eval $ac_link) 2>conftest.er1
57521 grep -v '^ *+' conftest.er1 >conftest.err
57523 cat conftest.err >&5
57524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57525 (exit $ac_status); } &&
57526 { ac_try='test -z "$ac_c_werror_flag"
57527 || test ! -s conftest.err'
57528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57529 (eval $ac_try) 2>&5
57531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57532 (exit $ac_status); }; } &&
57533 { ac_try='test -s conftest$ac_exeext'
57534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57535 (eval $ac_try) 2>&5
57537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57538 (exit $ac_status); }; }; then
57539 eval "$as_ac_var=yes"
57541 echo "$as_me: failed program was:" >&5
57542 sed 's/^/| /' conftest.$ac_ext >&5
57544 eval "$as_ac_var=no"
57546 rm -f conftest.err conftest.$ac_objext \
57547 conftest$ac_exeext conftest.$ac_ext
57549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57550 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57551 if test `eval echo '${'$as_ac_var'}'` = yes; then
57552 cat >>confdefs.h <<_ACEOF
57553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57557 echo "$as_me:$LINENO: checking for shmdt() argument type" >&5
57558 echo $ECHO_N "checking for shmdt() argument type... $ECHO_C" >&6
57559 if test "${amanda_cv_shmdt_arg_type+set}" = set; then
57560 echo $ECHO_N "(cached) $ECHO_C" >&6
57563 if test "$ac_cv_func_shmget" = yes; then
57564 cat <<EOF >conftest.$ac_ext
57565 #include "confdefs.h"
57566 #ifdef HAVE_SYS_TYPES_H
57567 # include <sys/types.h>
57569 #ifdef HAVE_SYS_IPC_H
57570 # include <sys/ipc.h>
57572 #ifdef HAVE_SYS_SHM_H
57573 # include <sys/shm.h>
57577 extern "C" void *shmat(int, void *, int);
57588 ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >/dev/null 2>/dev/null
57589 if test $? = 0; then
57590 amanda_cv_shmdt_arg_type=void
57592 amanda_cv_shmdt_arg_type=char
57596 amanda_cv_shmdt_arg_type=nothing
57601 echo "$as_me:$LINENO: result: $amanda_cv_shmdt_arg_type" >&5
57602 echo "${ECHO_T}$amanda_cv_shmdt_arg_type" >&6
57604 cat >>confdefs.h <<_ACEOF
57605 #define SHM_ARG_TYPE $amanda_cv_shmdt_arg_type
57610 case "$FORCE_MMAP" in
57613 cat >>confdefs.h <<\_ACEOF
57614 #define HAVE_SYSVSHM 1
57627 for ac_func in shmat
57629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57630 echo "$as_me:$LINENO: checking for $ac_func" >&5
57631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57632 if eval "test \"\${$as_ac_var+set}\" = set"; then
57633 echo $ECHO_N "(cached) $ECHO_C" >&6
57635 cat >conftest.$ac_ext <<_ACEOF
57638 cat confdefs.h >>conftest.$ac_ext
57639 cat >>conftest.$ac_ext <<_ACEOF
57640 /* end confdefs.h. */
57641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57643 #define $ac_func innocuous_$ac_func
57645 /* System header to define __stub macros and hopefully few prototypes,
57646 which can conflict with char $ac_func (); below.
57647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57648 <limits.h> exists even on freestanding compilers. */
57651 # include <limits.h>
57653 # include <assert.h>
57658 /* Override any gcc2 internal prototype to avoid an error. */
57663 /* We use char because int might match the return type of a gcc2
57664 builtin and then its argument prototype would still apply. */
57666 /* The GNU C library defines this for functions which it implements
57667 to always fail with ENOSYS. Some functions are actually named
57668 something starting with __ and the normal name is an alias. */
57669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57672 char (*f) () = $ac_func;
57681 return f != $ac_func;
57686 rm -f conftest.$ac_objext conftest$ac_exeext
57687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57688 (eval $ac_link) 2>conftest.er1
57690 grep -v '^ *+' conftest.er1 >conftest.err
57692 cat conftest.err >&5
57693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57694 (exit $ac_status); } &&
57695 { ac_try='test -z "$ac_c_werror_flag"
57696 || test ! -s conftest.err'
57697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57698 (eval $ac_try) 2>&5
57700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57701 (exit $ac_status); }; } &&
57702 { ac_try='test -s conftest$ac_exeext'
57703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57704 (eval $ac_try) 2>&5
57706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57707 (exit $ac_status); }; }; then
57708 eval "$as_ac_var=yes"
57710 echo "$as_me: failed program was:" >&5
57711 sed 's/^/| /' conftest.$ac_ext >&5
57713 eval "$as_ac_var=no"
57715 rm -f conftest.err conftest.$ac_objext \
57716 conftest$ac_exeext conftest.$ac_ext
57718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57719 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57720 if test `eval echo '${'$as_ac_var'}'` = yes; then
57721 cat >>confdefs.h <<_ACEOF
57722 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57728 if test "${ice_have_shmat}" = yes; then
57729 echo "$as_me:$LINENO: checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
57730 echo $ECHO_N "checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
57731 if test "${ice_cv_have_shmat_decl+set}" = set; then
57732 echo $ECHO_N "(cached) $ECHO_C" >&6
57735 ice_cv_have_shmat_decl=no
57736 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57737 ice_re_word='(^|[^a-zA-Z0-9_])'
57738 for header in sys/types.h sys/ipc.h sys/shm.h; do
57739 # Check for ordinary declaration
57740 cat >conftest.$ac_ext <<_ACEOF
57743 cat confdefs.h >>conftest.$ac_ext
57744 cat >>conftest.$ac_ext <<_ACEOF
57745 /* end confdefs.h. */
57749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57750 $EGREP "${ice_re_word}shmat[ ]*\(" >/dev/null 2>&1; then
57751 ice_cv_have_shmat_decl=yes
57755 if test "$ice_cv_have_shmat_decl" = yes; then
57758 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57759 cat >conftest.$ac_ext <<_ACEOF
57762 cat confdefs.h >>conftest.$ac_ext
57763 cat >>conftest.$ac_ext <<_ACEOF
57764 /* end confdefs.h. */
57768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57769 $EGREP "${ice_re_word}shmat[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57770 ice_cv_have_shmat_decl=yes
57774 if test "$ice_cv_have_shmat_decl" = yes; then
57781 echo "$as_me:$LINENO: result: $ice_cv_have_shmat_decl" >&5
57782 echo "${ECHO_T}$ice_cv_have_shmat_decl" >&6
57783 if test "$ice_cv_have_shmat_decl" = yes; then
57785 cat >>confdefs.h <<_ACEOF
57786 #define HAVE_SHMAT_DECL 1
57795 for ac_func in shmctl
57797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57798 echo "$as_me:$LINENO: checking for $ac_func" >&5
57799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57800 if eval "test \"\${$as_ac_var+set}\" = set"; then
57801 echo $ECHO_N "(cached) $ECHO_C" >&6
57803 cat >conftest.$ac_ext <<_ACEOF
57806 cat confdefs.h >>conftest.$ac_ext
57807 cat >>conftest.$ac_ext <<_ACEOF
57808 /* end confdefs.h. */
57809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57811 #define $ac_func innocuous_$ac_func
57813 /* System header to define __stub macros and hopefully few prototypes,
57814 which can conflict with char $ac_func (); below.
57815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57816 <limits.h> exists even on freestanding compilers. */
57819 # include <limits.h>
57821 # include <assert.h>
57826 /* Override any gcc2 internal prototype to avoid an error. */
57831 /* We use char because int might match the return type of a gcc2
57832 builtin and then its argument prototype would still apply. */
57834 /* The GNU C library defines this for functions which it implements
57835 to always fail with ENOSYS. Some functions are actually named
57836 something starting with __ and the normal name is an alias. */
57837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57840 char (*f) () = $ac_func;
57849 return f != $ac_func;
57854 rm -f conftest.$ac_objext conftest$ac_exeext
57855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57856 (eval $ac_link) 2>conftest.er1
57858 grep -v '^ *+' conftest.er1 >conftest.err
57860 cat conftest.err >&5
57861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57862 (exit $ac_status); } &&
57863 { ac_try='test -z "$ac_c_werror_flag"
57864 || test ! -s conftest.err'
57865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57866 (eval $ac_try) 2>&5
57868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57869 (exit $ac_status); }; } &&
57870 { ac_try='test -s conftest$ac_exeext'
57871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57872 (eval $ac_try) 2>&5
57874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57875 (exit $ac_status); }; }; then
57876 eval "$as_ac_var=yes"
57878 echo "$as_me: failed program was:" >&5
57879 sed 's/^/| /' conftest.$ac_ext >&5
57881 eval "$as_ac_var=no"
57883 rm -f conftest.err conftest.$ac_objext \
57884 conftest$ac_exeext conftest.$ac_ext
57886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57887 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57888 if test `eval echo '${'$as_ac_var'}'` = yes; then
57889 cat >>confdefs.h <<_ACEOF
57890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57892 ice_have_shmctl=yes
57896 if test "${ice_have_shmctl}" = yes; then
57897 echo "$as_me:$LINENO: checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
57898 echo $ECHO_N "checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
57899 if test "${ice_cv_have_shmctl_decl+set}" = set; then
57900 echo $ECHO_N "(cached) $ECHO_C" >&6
57903 ice_cv_have_shmctl_decl=no
57904 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57905 ice_re_word='(^|[^a-zA-Z0-9_])'
57906 for header in sys/types.h sys/ipc.h sys/shm.h; do
57907 # Check for ordinary declaration
57908 cat >conftest.$ac_ext <<_ACEOF
57911 cat confdefs.h >>conftest.$ac_ext
57912 cat >>conftest.$ac_ext <<_ACEOF
57913 /* end confdefs.h. */
57917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57918 $EGREP "${ice_re_word}shmctl[ ]*\(" >/dev/null 2>&1; then
57919 ice_cv_have_shmctl_decl=yes
57923 if test "$ice_cv_have_shmctl_decl" = yes; then
57926 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57927 cat >conftest.$ac_ext <<_ACEOF
57930 cat confdefs.h >>conftest.$ac_ext
57931 cat >>conftest.$ac_ext <<_ACEOF
57932 /* end confdefs.h. */
57936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57937 $EGREP "${ice_re_word}shmctl[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57938 ice_cv_have_shmctl_decl=yes
57942 if test "$ice_cv_have_shmctl_decl" = yes; then
57949 echo "$as_me:$LINENO: result: $ice_cv_have_shmctl_decl" >&5
57950 echo "${ECHO_T}$ice_cv_have_shmctl_decl" >&6
57951 if test "$ice_cv_have_shmctl_decl" = yes; then
57953 cat >>confdefs.h <<_ACEOF
57954 #define HAVE_SHMCTL_DECL 1
57963 for ac_func in shmdt
57965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57966 echo "$as_me:$LINENO: checking for $ac_func" >&5
57967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57968 if eval "test \"\${$as_ac_var+set}\" = set"; then
57969 echo $ECHO_N "(cached) $ECHO_C" >&6
57971 cat >conftest.$ac_ext <<_ACEOF
57974 cat confdefs.h >>conftest.$ac_ext
57975 cat >>conftest.$ac_ext <<_ACEOF
57976 /* end confdefs.h. */
57977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57979 #define $ac_func innocuous_$ac_func
57981 /* System header to define __stub macros and hopefully few prototypes,
57982 which can conflict with char $ac_func (); below.
57983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57984 <limits.h> exists even on freestanding compilers. */
57987 # include <limits.h>
57989 # include <assert.h>
57994 /* Override any gcc2 internal prototype to avoid an error. */
57999 /* We use char because int might match the return type of a gcc2
58000 builtin and then its argument prototype would still apply. */
58002 /* The GNU C library defines this for functions which it implements
58003 to always fail with ENOSYS. Some functions are actually named
58004 something starting with __ and the normal name is an alias. */
58005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58008 char (*f) () = $ac_func;
58017 return f != $ac_func;
58022 rm -f conftest.$ac_objext conftest$ac_exeext
58023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58024 (eval $ac_link) 2>conftest.er1
58026 grep -v '^ *+' conftest.er1 >conftest.err
58028 cat conftest.err >&5
58029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58030 (exit $ac_status); } &&
58031 { ac_try='test -z "$ac_c_werror_flag"
58032 || test ! -s conftest.err'
58033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58034 (eval $ac_try) 2>&5
58036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58037 (exit $ac_status); }; } &&
58038 { ac_try='test -s conftest$ac_exeext'
58039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58040 (eval $ac_try) 2>&5
58042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58043 (exit $ac_status); }; }; then
58044 eval "$as_ac_var=yes"
58046 echo "$as_me: failed program was:" >&5
58047 sed 's/^/| /' conftest.$ac_ext >&5
58049 eval "$as_ac_var=no"
58051 rm -f conftest.err conftest.$ac_objext \
58052 conftest$ac_exeext conftest.$ac_ext
58054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58055 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58056 if test `eval echo '${'$as_ac_var'}'` = yes; then
58057 cat >>confdefs.h <<_ACEOF
58058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58064 if test "${ice_have_shmdt}" = yes; then
58065 echo "$as_me:$LINENO: checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
58066 echo $ECHO_N "checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
58067 if test "${ice_cv_have_shmdt_decl+set}" = set; then
58068 echo $ECHO_N "(cached) $ECHO_C" >&6
58071 ice_cv_have_shmdt_decl=no
58072 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58073 ice_re_word='(^|[^a-zA-Z0-9_])'
58074 for header in sys/types.h sys/ipc.h sys/shm.h; do
58075 # Check for ordinary declaration
58076 cat >conftest.$ac_ext <<_ACEOF
58079 cat confdefs.h >>conftest.$ac_ext
58080 cat >>conftest.$ac_ext <<_ACEOF
58081 /* end confdefs.h. */
58085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58086 $EGREP "${ice_re_word}shmdt[ ]*\(" >/dev/null 2>&1; then
58087 ice_cv_have_shmdt_decl=yes
58091 if test "$ice_cv_have_shmdt_decl" = yes; then
58094 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58095 cat >conftest.$ac_ext <<_ACEOF
58098 cat confdefs.h >>conftest.$ac_ext
58099 cat >>conftest.$ac_ext <<_ACEOF
58100 /* end confdefs.h. */
58104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58105 $EGREP "${ice_re_word}shmdt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58106 ice_cv_have_shmdt_decl=yes
58110 if test "$ice_cv_have_shmdt_decl" = yes; then
58117 echo "$as_me:$LINENO: result: $ice_cv_have_shmdt_decl" >&5
58118 echo "${ECHO_T}$ice_cv_have_shmdt_decl" >&6
58119 if test "$ice_cv_have_shmdt_decl" = yes; then
58121 cat >>confdefs.h <<_ACEOF
58122 #define HAVE_SHMDT_DECL 1
58131 for ac_func in shmget
58133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58134 echo "$as_me:$LINENO: checking for $ac_func" >&5
58135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58136 if eval "test \"\${$as_ac_var+set}\" = set"; then
58137 echo $ECHO_N "(cached) $ECHO_C" >&6
58139 cat >conftest.$ac_ext <<_ACEOF
58142 cat confdefs.h >>conftest.$ac_ext
58143 cat >>conftest.$ac_ext <<_ACEOF
58144 /* end confdefs.h. */
58145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58147 #define $ac_func innocuous_$ac_func
58149 /* System header to define __stub macros and hopefully few prototypes,
58150 which can conflict with char $ac_func (); below.
58151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58152 <limits.h> exists even on freestanding compilers. */
58155 # include <limits.h>
58157 # include <assert.h>
58162 /* Override any gcc2 internal prototype to avoid an error. */
58167 /* We use char because int might match the return type of a gcc2
58168 builtin and then its argument prototype would still apply. */
58170 /* The GNU C library defines this for functions which it implements
58171 to always fail with ENOSYS. Some functions are actually named
58172 something starting with __ and the normal name is an alias. */
58173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58176 char (*f) () = $ac_func;
58185 return f != $ac_func;
58190 rm -f conftest.$ac_objext conftest$ac_exeext
58191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58192 (eval $ac_link) 2>conftest.er1
58194 grep -v '^ *+' conftest.er1 >conftest.err
58196 cat conftest.err >&5
58197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58198 (exit $ac_status); } &&
58199 { ac_try='test -z "$ac_c_werror_flag"
58200 || test ! -s conftest.err'
58201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58202 (eval $ac_try) 2>&5
58204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58205 (exit $ac_status); }; } &&
58206 { ac_try='test -s conftest$ac_exeext'
58207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58208 (eval $ac_try) 2>&5
58210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58211 (exit $ac_status); }; }; then
58212 eval "$as_ac_var=yes"
58214 echo "$as_me: failed program was:" >&5
58215 sed 's/^/| /' conftest.$ac_ext >&5
58217 eval "$as_ac_var=no"
58219 rm -f conftest.err conftest.$ac_objext \
58220 conftest$ac_exeext conftest.$ac_ext
58222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58223 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58224 if test `eval echo '${'$as_ac_var'}'` = yes; then
58225 cat >>confdefs.h <<_ACEOF
58226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58228 ice_have_shmget=yes
58232 if test "${ice_have_shmget}" = yes; then
58233 echo "$as_me:$LINENO: checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
58234 echo $ECHO_N "checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
58235 if test "${ice_cv_have_shmget_decl+set}" = set; then
58236 echo $ECHO_N "(cached) $ECHO_C" >&6
58239 ice_cv_have_shmget_decl=no
58240 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58241 ice_re_word='(^|[^a-zA-Z0-9_])'
58242 for header in sys/types.h sys/ipc.h sys/shm.h; do
58243 # Check for ordinary declaration
58244 cat >conftest.$ac_ext <<_ACEOF
58247 cat confdefs.h >>conftest.$ac_ext
58248 cat >>conftest.$ac_ext <<_ACEOF
58249 /* end confdefs.h. */
58253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58254 $EGREP "${ice_re_word}shmget[ ]*\(" >/dev/null 2>&1; then
58255 ice_cv_have_shmget_decl=yes
58259 if test "$ice_cv_have_shmget_decl" = yes; then
58262 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58263 cat >conftest.$ac_ext <<_ACEOF
58266 cat confdefs.h >>conftest.$ac_ext
58267 cat >>conftest.$ac_ext <<_ACEOF
58268 /* end confdefs.h. */
58272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58273 $EGREP "${ice_re_word}shmget[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58274 ice_cv_have_shmget_decl=yes
58278 if test "$ice_cv_have_shmget_decl" = yes; then
58285 echo "$as_me:$LINENO: result: $ice_cv_have_shmget_decl" >&5
58286 echo "${ECHO_T}$ice_cv_have_shmget_decl" >&6
58287 if test "$ice_cv_have_shmget_decl" = yes; then
58289 cat >>confdefs.h <<_ACEOF
58290 #define HAVE_SHMGET_DECL 1
58297 if test "x$ac_cv_func_mmap_fixed_mapped" != xyes; then
58298 case "$FORCE_MMAP" in
58300 if test "x$ac_cv_func_shmget" != xyes; then
58301 { echo "$as_me:$LINENO: WARNING: *** Neither shmget() nor mmap() found!" >&5
58302 echo "$as_me: WARNING: *** Neither shmget() nor mmap() found!" >&2;}
58303 { echo "$as_me:$LINENO: WARNING: *** This system will not support the Amanda server." >&5
58304 echo "$as_me: WARNING: *** This system will not support the Amanda server." >&2;}
58305 NO_SERVER_MODE=true
58309 { echo "$as_me:$LINENO: WARNING: *** --with-mmap used on a system with no mmap() support!" >&5
58310 echo "$as_me: WARNING: *** --with-mmap used on a system with no mmap() support!" >&2;}
58311 { echo "$as_me:$LINENO: WARNING: *** This system will not support the Amanda server." >&5
58312 echo "$as_me: WARNING: *** This system will not support the Amanda server." >&2;}
58313 NO_SERVER_MODE=true
58321 for ac_func in sigaction sigemptyset sigvec
58323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58324 echo "$as_me:$LINENO: checking for $ac_func" >&5
58325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58326 if eval "test \"\${$as_ac_var+set}\" = set"; then
58327 echo $ECHO_N "(cached) $ECHO_C" >&6
58329 cat >conftest.$ac_ext <<_ACEOF
58332 cat confdefs.h >>conftest.$ac_ext
58333 cat >>conftest.$ac_ext <<_ACEOF
58334 /* end confdefs.h. */
58335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58337 #define $ac_func innocuous_$ac_func
58339 /* System header to define __stub macros and hopefully few prototypes,
58340 which can conflict with char $ac_func (); below.
58341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58342 <limits.h> exists even on freestanding compilers. */
58345 # include <limits.h>
58347 # include <assert.h>
58352 /* Override any gcc2 internal prototype to avoid an error. */
58357 /* We use char because int might match the return type of a gcc2
58358 builtin and then its argument prototype would still apply. */
58360 /* The GNU C library defines this for functions which it implements
58361 to always fail with ENOSYS. Some functions are actually named
58362 something starting with __ and the normal name is an alias. */
58363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58366 char (*f) () = $ac_func;
58375 return f != $ac_func;
58380 rm -f conftest.$ac_objext conftest$ac_exeext
58381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58382 (eval $ac_link) 2>conftest.er1
58384 grep -v '^ *+' conftest.er1 >conftest.err
58386 cat conftest.err >&5
58387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58388 (exit $ac_status); } &&
58389 { ac_try='test -z "$ac_c_werror_flag"
58390 || test ! -s conftest.err'
58391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58392 (eval $ac_try) 2>&5
58394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58395 (exit $ac_status); }; } &&
58396 { ac_try='test -s conftest$ac_exeext'
58397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58398 (eval $ac_try) 2>&5
58400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58401 (exit $ac_status); }; }; then
58402 eval "$as_ac_var=yes"
58404 echo "$as_me: failed program was:" >&5
58405 sed 's/^/| /' conftest.$ac_ext >&5
58407 eval "$as_ac_var=no"
58409 rm -f conftest.err conftest.$ac_objext \
58410 conftest$ac_exeext conftest.$ac_ext
58412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58413 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58414 if test `eval echo '${'$as_ac_var'}'` = yes; then
58415 cat >>confdefs.h <<_ACEOF
58416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58425 for ac_func in socket
58427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58428 echo "$as_me:$LINENO: checking for $ac_func" >&5
58429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58430 if eval "test \"\${$as_ac_var+set}\" = set"; then
58431 echo $ECHO_N "(cached) $ECHO_C" >&6
58433 cat >conftest.$ac_ext <<_ACEOF
58436 cat confdefs.h >>conftest.$ac_ext
58437 cat >>conftest.$ac_ext <<_ACEOF
58438 /* end confdefs.h. */
58439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58441 #define $ac_func innocuous_$ac_func
58443 /* System header to define __stub macros and hopefully few prototypes,
58444 which can conflict with char $ac_func (); below.
58445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58446 <limits.h> exists even on freestanding compilers. */
58449 # include <limits.h>
58451 # include <assert.h>
58456 /* Override any gcc2 internal prototype to avoid an error. */
58461 /* We use char because int might match the return type of a gcc2
58462 builtin and then its argument prototype would still apply. */
58464 /* The GNU C library defines this for functions which it implements
58465 to always fail with ENOSYS. Some functions are actually named
58466 something starting with __ and the normal name is an alias. */
58467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58470 char (*f) () = $ac_func;
58479 return f != $ac_func;
58484 rm -f conftest.$ac_objext conftest$ac_exeext
58485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58486 (eval $ac_link) 2>conftest.er1
58488 grep -v '^ *+' conftest.er1 >conftest.err
58490 cat conftest.err >&5
58491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58492 (exit $ac_status); } &&
58493 { ac_try='test -z "$ac_c_werror_flag"
58494 || test ! -s conftest.err'
58495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58496 (eval $ac_try) 2>&5
58498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58499 (exit $ac_status); }; } &&
58500 { ac_try='test -s conftest$ac_exeext'
58501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58502 (eval $ac_try) 2>&5
58504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58505 (exit $ac_status); }; }; then
58506 eval "$as_ac_var=yes"
58508 echo "$as_me: failed program was:" >&5
58509 sed 's/^/| /' conftest.$ac_ext >&5
58511 eval "$as_ac_var=no"
58513 rm -f conftest.err conftest.$ac_objext \
58514 conftest$ac_exeext conftest.$ac_ext
58516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58517 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58518 if test `eval echo '${'$as_ac_var'}'` = yes; then
58519 cat >>confdefs.h <<_ACEOF
58520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58522 ice_have_socket=yes
58526 if test "${ice_have_socket}" = yes; then
58527 echo "$as_me:$LINENO: checking for socket declaration in sys/types.h sys/socket.h" >&5
58528 echo $ECHO_N "checking for socket declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
58529 if test "${ice_cv_have_socket_decl+set}" = set; then
58530 echo $ECHO_N "(cached) $ECHO_C" >&6
58533 ice_cv_have_socket_decl=no
58534 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58535 ice_re_word='(^|[^a-zA-Z0-9_])'
58536 for header in sys/types.h sys/socket.h; do
58537 # Check for ordinary declaration
58538 cat >conftest.$ac_ext <<_ACEOF
58541 cat confdefs.h >>conftest.$ac_ext
58542 cat >>conftest.$ac_ext <<_ACEOF
58543 /* end confdefs.h. */
58547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58548 $EGREP "${ice_re_word}socket[ ]*\(" >/dev/null 2>&1; then
58549 ice_cv_have_socket_decl=yes
58553 if test "$ice_cv_have_socket_decl" = yes; then
58556 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58557 cat >conftest.$ac_ext <<_ACEOF
58560 cat confdefs.h >>conftest.$ac_ext
58561 cat >>conftest.$ac_ext <<_ACEOF
58562 /* end confdefs.h. */
58566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58567 $EGREP "${ice_re_word}socket[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58568 ice_cv_have_socket_decl=yes
58572 if test "$ice_cv_have_socket_decl" = yes; then
58579 echo "$as_me:$LINENO: result: $ice_cv_have_socket_decl" >&5
58580 echo "${ECHO_T}$ice_cv_have_socket_decl" >&6
58581 if test "$ice_cv_have_socket_decl" = yes; then
58583 cat >>confdefs.h <<_ACEOF
58584 #define HAVE_SOCKET_DECL 1
58591 ice_have_socketpair=no
58593 for ac_func in socketpair
58595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58596 echo "$as_me:$LINENO: checking for $ac_func" >&5
58597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58598 if eval "test \"\${$as_ac_var+set}\" = set"; then
58599 echo $ECHO_N "(cached) $ECHO_C" >&6
58601 cat >conftest.$ac_ext <<_ACEOF
58604 cat confdefs.h >>conftest.$ac_ext
58605 cat >>conftest.$ac_ext <<_ACEOF
58606 /* end confdefs.h. */
58607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58609 #define $ac_func innocuous_$ac_func
58611 /* System header to define __stub macros and hopefully few prototypes,
58612 which can conflict with char $ac_func (); below.
58613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58614 <limits.h> exists even on freestanding compilers. */
58617 # include <limits.h>
58619 # include <assert.h>
58624 /* Override any gcc2 internal prototype to avoid an error. */
58629 /* We use char because int might match the return type of a gcc2
58630 builtin and then its argument prototype would still apply. */
58632 /* The GNU C library defines this for functions which it implements
58633 to always fail with ENOSYS. Some functions are actually named
58634 something starting with __ and the normal name is an alias. */
58635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58638 char (*f) () = $ac_func;
58647 return f != $ac_func;
58652 rm -f conftest.$ac_objext conftest$ac_exeext
58653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58654 (eval $ac_link) 2>conftest.er1
58656 grep -v '^ *+' conftest.er1 >conftest.err
58658 cat conftest.err >&5
58659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58660 (exit $ac_status); } &&
58661 { ac_try='test -z "$ac_c_werror_flag"
58662 || test ! -s conftest.err'
58663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58664 (eval $ac_try) 2>&5
58666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58667 (exit $ac_status); }; } &&
58668 { ac_try='test -s conftest$ac_exeext'
58669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58670 (eval $ac_try) 2>&5
58672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58673 (exit $ac_status); }; }; then
58674 eval "$as_ac_var=yes"
58676 echo "$as_me: failed program was:" >&5
58677 sed 's/^/| /' conftest.$ac_ext >&5
58679 eval "$as_ac_var=no"
58681 rm -f conftest.err conftest.$ac_objext \
58682 conftest$ac_exeext conftest.$ac_ext
58684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58686 if test `eval echo '${'$as_ac_var'}'` = yes; then
58687 cat >>confdefs.h <<_ACEOF
58688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58690 ice_have_socketpair=yes
58694 if test "${ice_have_socketpair}" = yes; then
58695 echo "$as_me:$LINENO: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
58696 echo $ECHO_N "checking for socketpair declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
58697 if test "${ice_cv_have_socketpair_decl+set}" = set; then
58698 echo $ECHO_N "(cached) $ECHO_C" >&6
58701 ice_cv_have_socketpair_decl=no
58702 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58703 ice_re_word='(^|[^a-zA-Z0-9_])'
58704 for header in sys/types.h sys/socket.h; do
58705 # Check for ordinary declaration
58706 cat >conftest.$ac_ext <<_ACEOF
58709 cat confdefs.h >>conftest.$ac_ext
58710 cat >>conftest.$ac_ext <<_ACEOF
58711 /* end confdefs.h. */
58715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58716 $EGREP "${ice_re_word}socketpair[ ]*\(" >/dev/null 2>&1; then
58717 ice_cv_have_socketpair_decl=yes
58721 if test "$ice_cv_have_socketpair_decl" = yes; then
58724 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58725 cat >conftest.$ac_ext <<_ACEOF
58728 cat confdefs.h >>conftest.$ac_ext
58729 cat >>conftest.$ac_ext <<_ACEOF
58730 /* end confdefs.h. */
58734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58735 $EGREP "${ice_re_word}socketpair[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58736 ice_cv_have_socketpair_decl=yes
58740 if test "$ice_cv_have_socketpair_decl" = yes; then
58747 echo "$as_me:$LINENO: result: $ice_cv_have_socketpair_decl" >&5
58748 echo "${ECHO_T}$ice_cv_have_socketpair_decl" >&6
58749 if test "$ice_cv_have_socketpair_decl" = yes; then
58751 cat >>confdefs.h <<_ACEOF
58752 #define HAVE_SOCKETPAIR_DECL 1
58761 for ac_func in sscanf
58763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58764 echo "$as_me:$LINENO: checking for $ac_func" >&5
58765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58766 if eval "test \"\${$as_ac_var+set}\" = set"; then
58767 echo $ECHO_N "(cached) $ECHO_C" >&6
58769 cat >conftest.$ac_ext <<_ACEOF
58772 cat confdefs.h >>conftest.$ac_ext
58773 cat >>conftest.$ac_ext <<_ACEOF
58774 /* end confdefs.h. */
58775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58777 #define $ac_func innocuous_$ac_func
58779 /* System header to define __stub macros and hopefully few prototypes,
58780 which can conflict with char $ac_func (); below.
58781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58782 <limits.h> exists even on freestanding compilers. */
58785 # include <limits.h>
58787 # include <assert.h>
58792 /* Override any gcc2 internal prototype to avoid an error. */
58797 /* We use char because int might match the return type of a gcc2
58798 builtin and then its argument prototype would still apply. */
58800 /* The GNU C library defines this for functions which it implements
58801 to always fail with ENOSYS. Some functions are actually named
58802 something starting with __ and the normal name is an alias. */
58803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58806 char (*f) () = $ac_func;
58815 return f != $ac_func;
58820 rm -f conftest.$ac_objext conftest$ac_exeext
58821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58822 (eval $ac_link) 2>conftest.er1
58824 grep -v '^ *+' conftest.er1 >conftest.err
58826 cat conftest.err >&5
58827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58828 (exit $ac_status); } &&
58829 { ac_try='test -z "$ac_c_werror_flag"
58830 || test ! -s conftest.err'
58831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58832 (eval $ac_try) 2>&5
58834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58835 (exit $ac_status); }; } &&
58836 { ac_try='test -s conftest$ac_exeext'
58837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58838 (eval $ac_try) 2>&5
58840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58841 (exit $ac_status); }; }; then
58842 eval "$as_ac_var=yes"
58844 echo "$as_me: failed program was:" >&5
58845 sed 's/^/| /' conftest.$ac_ext >&5
58847 eval "$as_ac_var=no"
58849 rm -f conftest.err conftest.$ac_objext \
58850 conftest$ac_exeext conftest.$ac_ext
58852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58853 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58854 if test `eval echo '${'$as_ac_var'}'` = yes; then
58855 cat >>confdefs.h <<_ACEOF
58856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58858 ice_have_sscanf=yes
58862 if test "${ice_have_sscanf}" = yes; then
58863 echo "$as_me:$LINENO: checking for sscanf declaration in stdio.h" >&5
58864 echo $ECHO_N "checking for sscanf declaration in stdio.h... $ECHO_C" >&6
58865 if test "${ice_cv_have_sscanf_decl+set}" = set; then
58866 echo $ECHO_N "(cached) $ECHO_C" >&6
58869 ice_cv_have_sscanf_decl=no
58870 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58871 ice_re_word='(^|[^a-zA-Z0-9_])'
58872 for header in stdio.h; do
58873 # Check for ordinary declaration
58874 cat >conftest.$ac_ext <<_ACEOF
58877 cat confdefs.h >>conftest.$ac_ext
58878 cat >>conftest.$ac_ext <<_ACEOF
58879 /* end confdefs.h. */
58883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58884 $EGREP "${ice_re_word}sscanf[ ]*\(" >/dev/null 2>&1; then
58885 ice_cv_have_sscanf_decl=yes
58889 if test "$ice_cv_have_sscanf_decl" = yes; then
58892 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58893 cat >conftest.$ac_ext <<_ACEOF
58896 cat confdefs.h >>conftest.$ac_ext
58897 cat >>conftest.$ac_ext <<_ACEOF
58898 /* end confdefs.h. */
58902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58903 $EGREP "${ice_re_word}sscanf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58904 ice_cv_have_sscanf_decl=yes
58908 if test "$ice_cv_have_sscanf_decl" = yes; then
58915 echo "$as_me:$LINENO: result: $ice_cv_have_sscanf_decl" >&5
58916 echo "${ECHO_T}$ice_cv_have_sscanf_decl" >&6
58917 if test "$ice_cv_have_sscanf_decl" = yes; then
58919 cat >>confdefs.h <<_ACEOF
58920 #define HAVE_SSCANF_DECL 1
58928 for ac_func in statfs statvfs
58930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58931 echo "$as_me:$LINENO: checking for $ac_func" >&5
58932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58933 if eval "test \"\${$as_ac_var+set}\" = set"; then
58934 echo $ECHO_N "(cached) $ECHO_C" >&6
58936 cat >conftest.$ac_ext <<_ACEOF
58939 cat confdefs.h >>conftest.$ac_ext
58940 cat >>conftest.$ac_ext <<_ACEOF
58941 /* end confdefs.h. */
58942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58944 #define $ac_func innocuous_$ac_func
58946 /* System header to define __stub macros and hopefully few prototypes,
58947 which can conflict with char $ac_func (); below.
58948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58949 <limits.h> exists even on freestanding compilers. */
58952 # include <limits.h>
58954 # include <assert.h>
58959 /* Override any gcc2 internal prototype to avoid an error. */
58964 /* We use char because int might match the return type of a gcc2
58965 builtin and then its argument prototype would still apply. */
58967 /* The GNU C library defines this for functions which it implements
58968 to always fail with ENOSYS. Some functions are actually named
58969 something starting with __ and the normal name is an alias. */
58970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58973 char (*f) () = $ac_func;
58982 return f != $ac_func;
58987 rm -f conftest.$ac_objext conftest$ac_exeext
58988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58989 (eval $ac_link) 2>conftest.er1
58991 grep -v '^ *+' conftest.er1 >conftest.err
58993 cat conftest.err >&5
58994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58995 (exit $ac_status); } &&
58996 { ac_try='test -z "$ac_c_werror_flag"
58997 || test ! -s conftest.err'
58998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58999 (eval $ac_try) 2>&5
59001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59002 (exit $ac_status); }; } &&
59003 { ac_try='test -s conftest$ac_exeext'
59004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59005 (eval $ac_try) 2>&5
59007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59008 (exit $ac_status); }; }; then
59009 eval "$as_ac_var=yes"
59011 echo "$as_me: failed program was:" >&5
59012 sed 's/^/| /' conftest.$ac_ext >&5
59014 eval "$as_ac_var=no"
59016 rm -f conftest.err conftest.$ac_objext \
59017 conftest$ac_exeext conftest.$ac_ext
59019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59021 if test `eval echo '${'$as_ac_var'}'` = yes; then
59022 cat >>confdefs.h <<_ACEOF
59023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59030 ice_have_strerror=no
59032 for ac_func in strerror
59034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59035 echo "$as_me:$LINENO: checking for $ac_func" >&5
59036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59037 if eval "test \"\${$as_ac_var+set}\" = set"; then
59038 echo $ECHO_N "(cached) $ECHO_C" >&6
59040 cat >conftest.$ac_ext <<_ACEOF
59043 cat confdefs.h >>conftest.$ac_ext
59044 cat >>conftest.$ac_ext <<_ACEOF
59045 /* end confdefs.h. */
59046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59048 #define $ac_func innocuous_$ac_func
59050 /* System header to define __stub macros and hopefully few prototypes,
59051 which can conflict with char $ac_func (); below.
59052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59053 <limits.h> exists even on freestanding compilers. */
59056 # include <limits.h>
59058 # include <assert.h>
59063 /* Override any gcc2 internal prototype to avoid an error. */
59068 /* We use char because int might match the return type of a gcc2
59069 builtin and then its argument prototype would still apply. */
59071 /* The GNU C library defines this for functions which it implements
59072 to always fail with ENOSYS. Some functions are actually named
59073 something starting with __ and the normal name is an alias. */
59074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59077 char (*f) () = $ac_func;
59086 return f != $ac_func;
59091 rm -f conftest.$ac_objext conftest$ac_exeext
59092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59093 (eval $ac_link) 2>conftest.er1
59095 grep -v '^ *+' conftest.er1 >conftest.err
59097 cat conftest.err >&5
59098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59099 (exit $ac_status); } &&
59100 { ac_try='test -z "$ac_c_werror_flag"
59101 || test ! -s conftest.err'
59102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59103 (eval $ac_try) 2>&5
59105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59106 (exit $ac_status); }; } &&
59107 { ac_try='test -s conftest$ac_exeext'
59108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59109 (eval $ac_try) 2>&5
59111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59112 (exit $ac_status); }; }; then
59113 eval "$as_ac_var=yes"
59115 echo "$as_me: failed program was:" >&5
59116 sed 's/^/| /' conftest.$ac_ext >&5
59118 eval "$as_ac_var=no"
59120 rm -f conftest.err conftest.$ac_objext \
59121 conftest$ac_exeext conftest.$ac_ext
59123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59125 if test `eval echo '${'$as_ac_var'}'` = yes; then
59126 cat >>confdefs.h <<_ACEOF
59127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59129 ice_have_strerror=yes
59133 if test "${ice_have_strerror}" = yes; then
59134 echo "$as_me:$LINENO: checking for strerror declaration in string.h strings.h" >&5
59135 echo $ECHO_N "checking for strerror declaration in string.h strings.h... $ECHO_C" >&6
59136 if test "${ice_cv_have_strerror_decl+set}" = set; then
59137 echo $ECHO_N "(cached) $ECHO_C" >&6
59140 ice_cv_have_strerror_decl=no
59141 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59142 ice_re_word='(^|[^a-zA-Z0-9_])'
59143 for header in string.h strings.h; do
59144 # Check for ordinary declaration
59145 cat >conftest.$ac_ext <<_ACEOF
59148 cat confdefs.h >>conftest.$ac_ext
59149 cat >>conftest.$ac_ext <<_ACEOF
59150 /* end confdefs.h. */
59154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59155 $EGREP "${ice_re_word}strerror[ ]*\(" >/dev/null 2>&1; then
59156 ice_cv_have_strerror_decl=yes
59160 if test "$ice_cv_have_strerror_decl" = yes; then
59163 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59164 cat >conftest.$ac_ext <<_ACEOF
59167 cat confdefs.h >>conftest.$ac_ext
59168 cat >>conftest.$ac_ext <<_ACEOF
59169 /* end confdefs.h. */
59173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59174 $EGREP "${ice_re_word}strerror[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59175 ice_cv_have_strerror_decl=yes
59179 if test "$ice_cv_have_strerror_decl" = yes; then
59186 echo "$as_me:$LINENO: result: $ice_cv_have_strerror_decl" >&5
59187 echo "${ECHO_T}$ice_cv_have_strerror_decl" >&6
59188 if test "$ice_cv_have_strerror_decl" = yes; then
59190 cat >>confdefs.h <<_ACEOF
59191 #define HAVE_STRERROR_DECL 1
59198 for ac_func in strftime
59200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59201 echo "$as_me:$LINENO: checking for $ac_func" >&5
59202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59203 if eval "test \"\${$as_ac_var+set}\" = set"; then
59204 echo $ECHO_N "(cached) $ECHO_C" >&6
59206 cat >conftest.$ac_ext <<_ACEOF
59209 cat confdefs.h >>conftest.$ac_ext
59210 cat >>conftest.$ac_ext <<_ACEOF
59211 /* end confdefs.h. */
59212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59214 #define $ac_func innocuous_$ac_func
59216 /* System header to define __stub macros and hopefully few prototypes,
59217 which can conflict with char $ac_func (); below.
59218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59219 <limits.h> exists even on freestanding compilers. */
59222 # include <limits.h>
59224 # include <assert.h>
59229 /* Override any gcc2 internal prototype to avoid an error. */
59234 /* We use char because int might match the return type of a gcc2
59235 builtin and then its argument prototype would still apply. */
59237 /* The GNU C library defines this for functions which it implements
59238 to always fail with ENOSYS. Some functions are actually named
59239 something starting with __ and the normal name is an alias. */
59240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59243 char (*f) () = $ac_func;
59252 return f != $ac_func;
59257 rm -f conftest.$ac_objext conftest$ac_exeext
59258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59259 (eval $ac_link) 2>conftest.er1
59261 grep -v '^ *+' conftest.er1 >conftest.err
59263 cat conftest.err >&5
59264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59265 (exit $ac_status); } &&
59266 { ac_try='test -z "$ac_c_werror_flag"
59267 || test ! -s conftest.err'
59268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59269 (eval $ac_try) 2>&5
59271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59272 (exit $ac_status); }; } &&
59273 { ac_try='test -s conftest$ac_exeext'
59274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59275 (eval $ac_try) 2>&5
59277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59278 (exit $ac_status); }; }; then
59279 eval "$as_ac_var=yes"
59281 echo "$as_me: failed program was:" >&5
59282 sed 's/^/| /' conftest.$ac_ext >&5
59284 eval "$as_ac_var=no"
59286 rm -f conftest.err conftest.$ac_objext \
59287 conftest$ac_exeext conftest.$ac_ext
59289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59290 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59291 if test `eval echo '${'$as_ac_var'}'` = yes; then
59292 cat >>confdefs.h <<_ACEOF
59293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59297 # strftime is in -lintl on SCO UNIX.
59298 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
59299 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
59300 if test "${ac_cv_lib_intl_strftime+set}" = set; then
59301 echo $ECHO_N "(cached) $ECHO_C" >&6
59303 ac_check_lib_save_LIBS=$LIBS
59304 LIBS="-lintl $LIBS"
59305 cat >conftest.$ac_ext <<_ACEOF
59308 cat confdefs.h >>conftest.$ac_ext
59309 cat >>conftest.$ac_ext <<_ACEOF
59310 /* end confdefs.h. */
59312 /* Override any gcc2 internal prototype to avoid an error. */
59316 /* We use char because int might match the return type of a gcc2
59317 builtin and then its argument prototype would still apply. */
59327 rm -f conftest.$ac_objext conftest$ac_exeext
59328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59329 (eval $ac_link) 2>conftest.er1
59331 grep -v '^ *+' conftest.er1 >conftest.err
59333 cat conftest.err >&5
59334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59335 (exit $ac_status); } &&
59336 { ac_try='test -z "$ac_c_werror_flag"
59337 || test ! -s conftest.err'
59338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59339 (eval $ac_try) 2>&5
59341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59342 (exit $ac_status); }; } &&
59343 { ac_try='test -s conftest$ac_exeext'
59344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59345 (eval $ac_try) 2>&5
59347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59348 (exit $ac_status); }; }; then
59349 ac_cv_lib_intl_strftime=yes
59351 echo "$as_me: failed program was:" >&5
59352 sed 's/^/| /' conftest.$ac_ext >&5
59354 ac_cv_lib_intl_strftime=no
59356 rm -f conftest.err conftest.$ac_objext \
59357 conftest$ac_exeext conftest.$ac_ext
59358 LIBS=$ac_check_lib_save_LIBS
59360 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
59361 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
59362 if test $ac_cv_lib_intl_strftime = yes; then
59363 cat >>confdefs.h <<\_ACEOF
59364 #define HAVE_STRFTIME 1
59367 LIBS="-lintl $LIBS"
59374 ice_have_strftime=no
59376 for ac_func in strftime
59378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59379 echo "$as_me:$LINENO: checking for $ac_func" >&5
59380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59381 if eval "test \"\${$as_ac_var+set}\" = set"; then
59382 echo $ECHO_N "(cached) $ECHO_C" >&6
59384 cat >conftest.$ac_ext <<_ACEOF
59387 cat confdefs.h >>conftest.$ac_ext
59388 cat >>conftest.$ac_ext <<_ACEOF
59389 /* end confdefs.h. */
59390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59392 #define $ac_func innocuous_$ac_func
59394 /* System header to define __stub macros and hopefully few prototypes,
59395 which can conflict with char $ac_func (); below.
59396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59397 <limits.h> exists even on freestanding compilers. */
59400 # include <limits.h>
59402 # include <assert.h>
59407 /* Override any gcc2 internal prototype to avoid an error. */
59412 /* We use char because int might match the return type of a gcc2
59413 builtin and then its argument prototype would still apply. */
59415 /* The GNU C library defines this for functions which it implements
59416 to always fail with ENOSYS. Some functions are actually named
59417 something starting with __ and the normal name is an alias. */
59418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59421 char (*f) () = $ac_func;
59430 return f != $ac_func;
59435 rm -f conftest.$ac_objext conftest$ac_exeext
59436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59437 (eval $ac_link) 2>conftest.er1
59439 grep -v '^ *+' conftest.er1 >conftest.err
59441 cat conftest.err >&5
59442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59443 (exit $ac_status); } &&
59444 { ac_try='test -z "$ac_c_werror_flag"
59445 || test ! -s conftest.err'
59446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59447 (eval $ac_try) 2>&5
59449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59450 (exit $ac_status); }; } &&
59451 { ac_try='test -s conftest$ac_exeext'
59452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59453 (eval $ac_try) 2>&5
59455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59456 (exit $ac_status); }; }; then
59457 eval "$as_ac_var=yes"
59459 echo "$as_me: failed program was:" >&5
59460 sed 's/^/| /' conftest.$ac_ext >&5
59462 eval "$as_ac_var=no"
59464 rm -f conftest.err conftest.$ac_objext \
59465 conftest$ac_exeext conftest.$ac_ext
59467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59468 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59469 if test `eval echo '${'$as_ac_var'}'` = yes; then
59470 cat >>confdefs.h <<_ACEOF
59471 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59473 ice_have_strftime=yes
59477 if test "${ice_have_strftime}" = yes; then
59478 echo "$as_me:$LINENO: checking for strftime declaration in time.h sys/time.h" >&5
59479 echo $ECHO_N "checking for strftime declaration in time.h sys/time.h... $ECHO_C" >&6
59480 if test "${ice_cv_have_strftime_decl+set}" = set; then
59481 echo $ECHO_N "(cached) $ECHO_C" >&6
59484 ice_cv_have_strftime_decl=no
59485 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59486 ice_re_word='(^|[^a-zA-Z0-9_])'
59487 for header in time.h sys/time.h; do
59488 # Check for ordinary declaration
59489 cat >conftest.$ac_ext <<_ACEOF
59492 cat confdefs.h >>conftest.$ac_ext
59493 cat >>conftest.$ac_ext <<_ACEOF
59494 /* end confdefs.h. */
59498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59499 $EGREP "${ice_re_word}strftime[ ]*\(" >/dev/null 2>&1; then
59500 ice_cv_have_strftime_decl=yes
59504 if test "$ice_cv_have_strftime_decl" = yes; then
59507 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59508 cat >conftest.$ac_ext <<_ACEOF
59511 cat confdefs.h >>conftest.$ac_ext
59512 cat >>conftest.$ac_ext <<_ACEOF
59513 /* end confdefs.h. */
59517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59518 $EGREP "${ice_re_word}strftime[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59519 ice_cv_have_strftime_decl=yes
59523 if test "$ice_cv_have_strftime_decl" = yes; then
59530 echo "$as_me:$LINENO: result: $ice_cv_have_strftime_decl" >&5
59531 echo "${ECHO_T}$ice_cv_have_strftime_decl" >&6
59532 if test "$ice_cv_have_strftime_decl" = yes; then
59534 cat >>confdefs.h <<_ACEOF
59535 #define HAVE_STRFTIME_DECL 1
59542 ice_have_strncasecmp=no
59544 for ac_func in strncasecmp
59546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59547 echo "$as_me:$LINENO: checking for $ac_func" >&5
59548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59549 if eval "test \"\${$as_ac_var+set}\" = set"; then
59550 echo $ECHO_N "(cached) $ECHO_C" >&6
59552 cat >conftest.$ac_ext <<_ACEOF
59555 cat confdefs.h >>conftest.$ac_ext
59556 cat >>conftest.$ac_ext <<_ACEOF
59557 /* end confdefs.h. */
59558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59560 #define $ac_func innocuous_$ac_func
59562 /* System header to define __stub macros and hopefully few prototypes,
59563 which can conflict with char $ac_func (); below.
59564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59565 <limits.h> exists even on freestanding compilers. */
59568 # include <limits.h>
59570 # include <assert.h>
59575 /* Override any gcc2 internal prototype to avoid an error. */
59580 /* We use char because int might match the return type of a gcc2
59581 builtin and then its argument prototype would still apply. */
59583 /* The GNU C library defines this for functions which it implements
59584 to always fail with ENOSYS. Some functions are actually named
59585 something starting with __ and the normal name is an alias. */
59586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59589 char (*f) () = $ac_func;
59598 return f != $ac_func;
59603 rm -f conftest.$ac_objext conftest$ac_exeext
59604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59605 (eval $ac_link) 2>conftest.er1
59607 grep -v '^ *+' conftest.er1 >conftest.err
59609 cat conftest.err >&5
59610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59611 (exit $ac_status); } &&
59612 { ac_try='test -z "$ac_c_werror_flag"
59613 || test ! -s conftest.err'
59614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59615 (eval $ac_try) 2>&5
59617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59618 (exit $ac_status); }; } &&
59619 { ac_try='test -s conftest$ac_exeext'
59620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59621 (eval $ac_try) 2>&5
59623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59624 (exit $ac_status); }; }; then
59625 eval "$as_ac_var=yes"
59627 echo "$as_me: failed program was:" >&5
59628 sed 's/^/| /' conftest.$ac_ext >&5
59630 eval "$as_ac_var=no"
59632 rm -f conftest.err conftest.$ac_objext \
59633 conftest$ac_exeext conftest.$ac_ext
59635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59637 if test `eval echo '${'$as_ac_var'}'` = yes; then
59638 cat >>confdefs.h <<_ACEOF
59639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59641 ice_have_strncasecmp=yes
59645 if test "${ice_have_strncasecmp}" = yes; then
59646 echo "$as_me:$LINENO: checking for strncasecmp declaration in string.h strings.h" >&5
59647 echo $ECHO_N "checking for strncasecmp declaration in string.h strings.h... $ECHO_C" >&6
59648 if test "${ice_cv_have_strncasecmp_decl+set}" = set; then
59649 echo $ECHO_N "(cached) $ECHO_C" >&6
59652 ice_cv_have_strncasecmp_decl=no
59653 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59654 ice_re_word='(^|[^a-zA-Z0-9_])'
59655 for header in string.h strings.h; do
59656 # Check for ordinary declaration
59657 cat >conftest.$ac_ext <<_ACEOF
59660 cat confdefs.h >>conftest.$ac_ext
59661 cat >>conftest.$ac_ext <<_ACEOF
59662 /* end confdefs.h. */
59666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59667 $EGREP "${ice_re_word}strncasecmp[ ]*\(" >/dev/null 2>&1; then
59668 ice_cv_have_strncasecmp_decl=yes
59672 if test "$ice_cv_have_strncasecmp_decl" = yes; then
59675 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59676 cat >conftest.$ac_ext <<_ACEOF
59679 cat confdefs.h >>conftest.$ac_ext
59680 cat >>conftest.$ac_ext <<_ACEOF
59681 /* end confdefs.h. */
59685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59686 $EGREP "${ice_re_word}strncasecmp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59687 ice_cv_have_strncasecmp_decl=yes
59691 if test "$ice_cv_have_strncasecmp_decl" = yes; then
59698 echo "$as_me:$LINENO: result: $ice_cv_have_strncasecmp_decl" >&5
59699 echo "${ECHO_T}$ice_cv_have_strncasecmp_decl" >&6
59700 if test "$ice_cv_have_strncasecmp_decl" = yes; then
59702 cat >>confdefs.h <<_ACEOF
59703 #define HAVE_STRNCASECMP_DECL 1
59712 for ac_func in syslog
59714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59715 echo "$as_me:$LINENO: checking for $ac_func" >&5
59716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59717 if eval "test \"\${$as_ac_var+set}\" = set"; then
59718 echo $ECHO_N "(cached) $ECHO_C" >&6
59720 cat >conftest.$ac_ext <<_ACEOF
59723 cat confdefs.h >>conftest.$ac_ext
59724 cat >>conftest.$ac_ext <<_ACEOF
59725 /* end confdefs.h. */
59726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59728 #define $ac_func innocuous_$ac_func
59730 /* System header to define __stub macros and hopefully few prototypes,
59731 which can conflict with char $ac_func (); below.
59732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59733 <limits.h> exists even on freestanding compilers. */
59736 # include <limits.h>
59738 # include <assert.h>
59743 /* Override any gcc2 internal prototype to avoid an error. */
59748 /* We use char because int might match the return type of a gcc2
59749 builtin and then its argument prototype would still apply. */
59751 /* The GNU C library defines this for functions which it implements
59752 to always fail with ENOSYS. Some functions are actually named
59753 something starting with __ and the normal name is an alias. */
59754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59757 char (*f) () = $ac_func;
59766 return f != $ac_func;
59771 rm -f conftest.$ac_objext conftest$ac_exeext
59772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59773 (eval $ac_link) 2>conftest.er1
59775 grep -v '^ *+' conftest.er1 >conftest.err
59777 cat conftest.err >&5
59778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59779 (exit $ac_status); } &&
59780 { ac_try='test -z "$ac_c_werror_flag"
59781 || test ! -s conftest.err'
59782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59783 (eval $ac_try) 2>&5
59785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59786 (exit $ac_status); }; } &&
59787 { ac_try='test -s conftest$ac_exeext'
59788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59789 (eval $ac_try) 2>&5
59791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59792 (exit $ac_status); }; }; then
59793 eval "$as_ac_var=yes"
59795 echo "$as_me: failed program was:" >&5
59796 sed 's/^/| /' conftest.$ac_ext >&5
59798 eval "$as_ac_var=no"
59800 rm -f conftest.err conftest.$ac_objext \
59801 conftest$ac_exeext conftest.$ac_ext
59803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59804 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59805 if test `eval echo '${'$as_ac_var'}'` = yes; then
59806 cat >>confdefs.h <<_ACEOF
59807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59809 ice_have_syslog=yes
59813 if test "${ice_have_syslog}" = yes; then
59814 echo "$as_me:$LINENO: checking for syslog declaration in syslog.h" >&5
59815 echo $ECHO_N "checking for syslog declaration in syslog.h... $ECHO_C" >&6
59816 if test "${ice_cv_have_syslog_decl+set}" = set; then
59817 echo $ECHO_N "(cached) $ECHO_C" >&6
59820 ice_cv_have_syslog_decl=no
59821 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59822 ice_re_word='(^|[^a-zA-Z0-9_])'
59823 for header in syslog.h; do
59824 # Check for ordinary declaration
59825 cat >conftest.$ac_ext <<_ACEOF
59828 cat confdefs.h >>conftest.$ac_ext
59829 cat >>conftest.$ac_ext <<_ACEOF
59830 /* end confdefs.h. */
59834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59835 $EGREP "${ice_re_word}syslog[ ]*\(" >/dev/null 2>&1; then
59836 ice_cv_have_syslog_decl=yes
59840 if test "$ice_cv_have_syslog_decl" = yes; then
59843 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59844 cat >conftest.$ac_ext <<_ACEOF
59847 cat confdefs.h >>conftest.$ac_ext
59848 cat >>conftest.$ac_ext <<_ACEOF
59849 /* end confdefs.h. */
59853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59854 $EGREP "${ice_re_word}syslog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59855 ice_cv_have_syslog_decl=yes
59859 if test "$ice_cv_have_syslog_decl" = yes; then
59866 echo "$as_me:$LINENO: result: $ice_cv_have_syslog_decl" >&5
59867 echo "${ECHO_T}$ice_cv_have_syslog_decl" >&6
59868 if test "$ice_cv_have_syslog_decl" = yes; then
59870 cat >>confdefs.h <<_ACEOF
59871 #define HAVE_SYSLOG_DECL 1
59880 for ac_func in system
59882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59883 echo "$as_me:$LINENO: checking for $ac_func" >&5
59884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59885 if eval "test \"\${$as_ac_var+set}\" = set"; then
59886 echo $ECHO_N "(cached) $ECHO_C" >&6
59888 cat >conftest.$ac_ext <<_ACEOF
59891 cat confdefs.h >>conftest.$ac_ext
59892 cat >>conftest.$ac_ext <<_ACEOF
59893 /* end confdefs.h. */
59894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59896 #define $ac_func innocuous_$ac_func
59898 /* System header to define __stub macros and hopefully few prototypes,
59899 which can conflict with char $ac_func (); below.
59900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59901 <limits.h> exists even on freestanding compilers. */
59904 # include <limits.h>
59906 # include <assert.h>
59911 /* Override any gcc2 internal prototype to avoid an error. */
59916 /* We use char because int might match the return type of a gcc2
59917 builtin and then its argument prototype would still apply. */
59919 /* The GNU C library defines this for functions which it implements
59920 to always fail with ENOSYS. Some functions are actually named
59921 something starting with __ and the normal name is an alias. */
59922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59925 char (*f) () = $ac_func;
59934 return f != $ac_func;
59939 rm -f conftest.$ac_objext conftest$ac_exeext
59940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59941 (eval $ac_link) 2>conftest.er1
59943 grep -v '^ *+' conftest.er1 >conftest.err
59945 cat conftest.err >&5
59946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59947 (exit $ac_status); } &&
59948 { ac_try='test -z "$ac_c_werror_flag"
59949 || test ! -s conftest.err'
59950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59951 (eval $ac_try) 2>&5
59953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59954 (exit $ac_status); }; } &&
59955 { ac_try='test -s conftest$ac_exeext'
59956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59957 (eval $ac_try) 2>&5
59959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59960 (exit $ac_status); }; }; then
59961 eval "$as_ac_var=yes"
59963 echo "$as_me: failed program was:" >&5
59964 sed 's/^/| /' conftest.$ac_ext >&5
59966 eval "$as_ac_var=no"
59968 rm -f conftest.err conftest.$ac_objext \
59969 conftest$ac_exeext conftest.$ac_ext
59971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59972 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59973 if test `eval echo '${'$as_ac_var'}'` = yes; then
59974 cat >>confdefs.h <<_ACEOF
59975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59977 ice_have_system=yes
59981 if test "${ice_have_system}" = yes; then
59982 echo "$as_me:$LINENO: checking for system declaration in stdlib.h" >&5
59983 echo $ECHO_N "checking for system declaration in stdlib.h... $ECHO_C" >&6
59984 if test "${ice_cv_have_system_decl+set}" = set; then
59985 echo $ECHO_N "(cached) $ECHO_C" >&6
59988 ice_cv_have_system_decl=no
59989 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59990 ice_re_word='(^|[^a-zA-Z0-9_])'
59991 for header in stdlib.h; do
59992 # Check for ordinary declaration
59993 cat >conftest.$ac_ext <<_ACEOF
59996 cat confdefs.h >>conftest.$ac_ext
59997 cat >>conftest.$ac_ext <<_ACEOF
59998 /* end confdefs.h. */
60002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60003 $EGREP "${ice_re_word}system[ ]*\(" >/dev/null 2>&1; then
60004 ice_cv_have_system_decl=yes
60008 if test "$ice_cv_have_system_decl" = yes; then
60011 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60012 cat >conftest.$ac_ext <<_ACEOF
60015 cat confdefs.h >>conftest.$ac_ext
60016 cat >>conftest.$ac_ext <<_ACEOF
60017 /* end confdefs.h. */
60021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60022 $EGREP "${ice_re_word}system[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60023 ice_cv_have_system_decl=yes
60027 if test "$ice_cv_have_system_decl" = yes; then
60034 echo "$as_me:$LINENO: result: $ice_cv_have_system_decl" >&5
60035 echo "${ECHO_T}$ice_cv_have_system_decl" >&6
60036 if test "$ice_cv_have_system_decl" = yes; then
60038 cat >>confdefs.h <<_ACEOF
60039 #define HAVE_SYSTEM_DECL 1
60048 for ac_func in time
60050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60051 echo "$as_me:$LINENO: checking for $ac_func" >&5
60052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
60053 if eval "test \"\${$as_ac_var+set}\" = set"; then
60054 echo $ECHO_N "(cached) $ECHO_C" >&6
60056 cat >conftest.$ac_ext <<_ACEOF
60059 cat confdefs.h >>conftest.$ac_ext
60060 cat >>conftest.$ac_ext <<_ACEOF
60061 /* end confdefs.h. */
60062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60064 #define $ac_func innocuous_$ac_func
60066 /* System header to define __stub macros and hopefully few prototypes,
60067 which can conflict with char $ac_func (); below.
60068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60069 <limits.h> exists even on freestanding compilers. */
60072 # include <limits.h>
60074 # include <assert.h>
60079 /* Override any gcc2 internal prototype to avoid an error. */
60084 /* We use char because int might match the return type of a gcc2
60085 builtin and then its argument prototype would still apply. */
60087 /* The GNU C library defines this for functions which it implements
60088 to always fail with ENOSYS. Some functions are actually named
60089 something starting with __ and the normal name is an alias. */
60090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
60093 char (*f) () = $ac_func;
60102 return f != $ac_func;
60107 rm -f conftest.$ac_objext conftest$ac_exeext
60108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60109 (eval $ac_link) 2>conftest.er1
60111 grep -v '^ *+' conftest.er1 >conftest.err
60113 cat conftest.err >&5
60114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60115 (exit $ac_status); } &&
60116 { ac_try='test -z "$ac_c_werror_flag"
60117 || test ! -s conftest.err'
60118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60119 (eval $ac_try) 2>&5
60121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60122 (exit $ac_status); }; } &&
60123 { ac_try='test -s conftest$ac_exeext'
60124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60125 (eval $ac_try) 2>&5
60127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60128 (exit $ac_status); }; }; then
60129 eval "$as_ac_var=yes"
60131 echo "$as_me: failed program was:" >&5
60132 sed 's/^/| /' conftest.$ac_ext >&5
60134 eval "$as_ac_var=no"
60136 rm -f conftest.err conftest.$ac_objext \
60137 conftest$ac_exeext conftest.$ac_ext
60139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
60140 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
60141 if test `eval echo '${'$as_ac_var'}'` = yes; then
60142 cat >>confdefs.h <<_ACEOF
60143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60149 if test "${ice_have_time}" = yes; then
60150 echo "$as_me:$LINENO: checking for time declaration in time.h sys/time.h" >&5
60151 echo $ECHO_N "checking for time declaration in time.h sys/time.h... $ECHO_C" >&6
60152 if test "${ice_cv_have_time_decl+set}" = set; then
60153 echo $ECHO_N "(cached) $ECHO_C" >&6
60156 ice_cv_have_time_decl=no
60157 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60158 ice_re_word='(^|[^a-zA-Z0-9_])'
60159 for header in time.h sys/time.h; do
60160 # Check for ordinary declaration
60161 cat >conftest.$ac_ext <<_ACEOF
60164 cat confdefs.h >>conftest.$ac_ext
60165 cat >>conftest.$ac_ext <<_ACEOF
60166 /* end confdefs.h. */
60170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60171 $EGREP "${ice_re_word}time[ ]*\(" >/dev/null 2>&1; then
60172 ice_cv_have_time_decl=yes
60176 if test "$ice_cv_have_time_decl" = yes; then
60179 # Check for "fixed" declaration like "getpid _PARAMS((int))"
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}time[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60191 ice_cv_have_time_decl=yes
60195 if test "$ice_cv_have_time_decl" = yes; then
60202 echo "$as_me:$LINENO: result: $ice_cv_have_time_decl" >&5
60203 echo "${ECHO_T}$ice_cv_have_time_decl" >&6
60204 if test "$ice_cv_have_time_decl" = yes; then
60206 cat >>confdefs.h <<_ACEOF
60207 #define HAVE_TIME_DECL 1
60214 ice_have_tolower=no
60216 for ac_func in tolower
60218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60219 echo "$as_me:$LINENO: checking for $ac_func" >&5
60220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
60221 if eval "test \"\${$as_ac_var+set}\" = set"; then
60222 echo $ECHO_N "(cached) $ECHO_C" >&6
60224 cat >conftest.$ac_ext <<_ACEOF
60227 cat confdefs.h >>conftest.$ac_ext
60228 cat >>conftest.$ac_ext <<_ACEOF
60229 /* end confdefs.h. */
60230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60232 #define $ac_func innocuous_$ac_func
60234 /* System header to define __stub macros and hopefully few prototypes,
60235 which can conflict with char $ac_func (); below.
60236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60237 <limits.h> exists even on freestanding compilers. */
60240 # include <limits.h>
60242 # include <assert.h>
60247 /* Override any gcc2 internal prototype to avoid an error. */
60252 /* We use char because int might match the return type of a gcc2
60253 builtin and then its argument prototype would still apply. */
60255 /* The GNU C library defines this for functions which it implements
60256 to always fail with ENOSYS. Some functions are actually named
60257 something starting with __ and the normal name is an alias. */
60258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
60261 char (*f) () = $ac_func;
60270 return f != $ac_func;
60275 rm -f conftest.$ac_objext conftest$ac_exeext
60276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60277 (eval $ac_link) 2>conftest.er1
60279 grep -v '^ *+' conftest.er1 >conftest.err
60281 cat conftest.err >&5
60282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60283 (exit $ac_status); } &&
60284 { ac_try='test -z "$ac_c_werror_flag"
60285 || test ! -s conftest.err'
60286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60287 (eval $ac_try) 2>&5
60289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60290 (exit $ac_status); }; } &&
60291 { ac_try='test -s conftest$ac_exeext'
60292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60293 (eval $ac_try) 2>&5
60295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60296 (exit $ac_status); }; }; then
60297 eval "$as_ac_var=yes"
60299 echo "$as_me: failed program was:" >&5
60300 sed 's/^/| /' conftest.$ac_ext >&5
60302 eval "$as_ac_var=no"
60304 rm -f conftest.err conftest.$ac_objext \
60305 conftest$ac_exeext conftest.$ac_ext
60307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
60308 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
60309 if test `eval echo '${'$as_ac_var'}'` = yes; then
60310 cat >>confdefs.h <<_ACEOF
60311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60313 ice_have_tolower=yes
60317 if test "${ice_have_tolower}" = yes; then
60318 echo "$as_me:$LINENO: checking for tolower declaration in ctype.h" >&5
60319 echo $ECHO_N "checking for tolower declaration in ctype.h... $ECHO_C" >&6
60320 if test "${ice_cv_have_tolower_decl+set}" = set; then
60321 echo $ECHO_N "(cached) $ECHO_C" >&6
60324 ice_cv_have_tolower_decl=no
60325 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60326 ice_re_word='(^|[^a-zA-Z0-9_])'
60327 for header in ctype.h; do
60328 # Check for ordinary declaration
60329 cat >conftest.$ac_ext <<_ACEOF
60332 cat confdefs.h >>conftest.$ac_ext
60333 cat >>conftest.$ac_ext <<_ACEOF
60334 /* end confdefs.h. */
60338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60339 $EGREP "${ice_re_word}tolower[ ]*\(" >/dev/null 2>&1; then
60340 ice_cv_have_tolower_decl=yes
60344 if test "$ice_cv_have_tolower_decl" = yes; then
60347 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60348 cat >conftest.$ac_ext <<_ACEOF
60351 cat confdefs.h >>conftest.$ac_ext
60352 cat >>conftest.$ac_ext <<_ACEOF
60353 /* end confdefs.h. */
60357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60358 $EGREP "${ice_re_word}tolower[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60359 ice_cv_have_tolower_decl=yes
60363 if test "$ice_cv_have_tolower_decl" = yes; then
60370 echo "$as_me:$LINENO: result: $ice_cv_have_tolower_decl" >&5
60371 echo "${ECHO_T}$ice_cv_have_tolower_decl" >&6
60372 if test "$ice_cv_have_tolower_decl" = yes; then
60374 cat >>confdefs.h <<_ACEOF
60375 #define HAVE_TOLOWER_DECL 1
60382 ice_have_toupper=no
60384 for ac_func in toupper
60386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60387 echo "$as_me:$LINENO: checking for $ac_func" >&5
60388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
60389 if eval "test \"\${$as_ac_var+set}\" = set"; then
60390 echo $ECHO_N "(cached) $ECHO_C" >&6
60392 cat >conftest.$ac_ext <<_ACEOF
60395 cat confdefs.h >>conftest.$ac_ext
60396 cat >>conftest.$ac_ext <<_ACEOF
60397 /* end confdefs.h. */
60398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60400 #define $ac_func innocuous_$ac_func
60402 /* System header to define __stub macros and hopefully few prototypes,
60403 which can conflict with char $ac_func (); below.
60404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60405 <limits.h> exists even on freestanding compilers. */
60408 # include <limits.h>
60410 # include <assert.h>
60415 /* Override any gcc2 internal prototype to avoid an error. */
60420 /* We use char because int might match the return type of a gcc2
60421 builtin and then its argument prototype would still apply. */
60423 /* The GNU C library defines this for functions which it implements
60424 to always fail with ENOSYS. Some functions are actually named
60425 something starting with __ and the normal name is an alias. */
60426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
60429 char (*f) () = $ac_func;
60438 return f != $ac_func;
60443 rm -f conftest.$ac_objext conftest$ac_exeext
60444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60445 (eval $ac_link) 2>conftest.er1
60447 grep -v '^ *+' conftest.er1 >conftest.err
60449 cat conftest.err >&5
60450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60451 (exit $ac_status); } &&
60452 { ac_try='test -z "$ac_c_werror_flag"
60453 || test ! -s conftest.err'
60454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60455 (eval $ac_try) 2>&5
60457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60458 (exit $ac_status); }; } &&
60459 { ac_try='test -s conftest$ac_exeext'
60460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60461 (eval $ac_try) 2>&5
60463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60464 (exit $ac_status); }; }; then
60465 eval "$as_ac_var=yes"
60467 echo "$as_me: failed program was:" >&5
60468 sed 's/^/| /' conftest.$ac_ext >&5
60470 eval "$as_ac_var=no"
60472 rm -f conftest.err conftest.$ac_objext \
60473 conftest$ac_exeext conftest.$ac_ext
60475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
60476 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
60477 if test `eval echo '${'$as_ac_var'}'` = yes; then
60478 cat >>confdefs.h <<_ACEOF
60479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60481 ice_have_toupper=yes
60485 if test "${ice_have_toupper}" = yes; then
60486 echo "$as_me:$LINENO: checking for toupper declaration in ctype.h" >&5
60487 echo $ECHO_N "checking for toupper declaration in ctype.h... $ECHO_C" >&6
60488 if test "${ice_cv_have_toupper_decl+set}" = set; then
60489 echo $ECHO_N "(cached) $ECHO_C" >&6
60492 ice_cv_have_toupper_decl=no
60493 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60494 ice_re_word='(^|[^a-zA-Z0-9_])'
60495 for header in ctype.h; do
60496 # Check for ordinary declaration
60497 cat >conftest.$ac_ext <<_ACEOF
60500 cat confdefs.h >>conftest.$ac_ext
60501 cat >>conftest.$ac_ext <<_ACEOF
60502 /* end confdefs.h. */
60506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60507 $EGREP "${ice_re_word}toupper[ ]*\(" >/dev/null 2>&1; then
60508 ice_cv_have_toupper_decl=yes
60512 if test "$ice_cv_have_toupper_decl" = yes; then
60515 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60516 cat >conftest.$ac_ext <<_ACEOF
60519 cat confdefs.h >>conftest.$ac_ext
60520 cat >>conftest.$ac_ext <<_ACEOF
60521 /* end confdefs.h. */
60525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60526 $EGREP "${ice_re_word}toupper[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60527 ice_cv_have_toupper_decl=yes
60531 if test "$ice_cv_have_toupper_decl" = yes; then
60538 echo "$as_me:$LINENO: result: $ice_cv_have_toupper_decl" >&5
60539 echo "${ECHO_T}$ice_cv_have_toupper_decl" >&6
60540 if test "$ice_cv_have_toupper_decl" = yes; then
60542 cat >>confdefs.h <<_ACEOF
60543 #define HAVE_TOUPPER_DECL 1
60552 for ac_func in ungetc
60554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60555 echo "$as_me:$LINENO: checking for $ac_func" >&5
60556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
60557 if eval "test \"\${$as_ac_var+set}\" = set"; then
60558 echo $ECHO_N "(cached) $ECHO_C" >&6
60560 cat >conftest.$ac_ext <<_ACEOF
60563 cat confdefs.h >>conftest.$ac_ext
60564 cat >>conftest.$ac_ext <<_ACEOF
60565 /* end confdefs.h. */
60566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60568 #define $ac_func innocuous_$ac_func
60570 /* System header to define __stub macros and hopefully few prototypes,
60571 which can conflict with char $ac_func (); below.
60572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60573 <limits.h> exists even on freestanding compilers. */
60576 # include <limits.h>
60578 # include <assert.h>
60583 /* Override any gcc2 internal prototype to avoid an error. */
60588 /* We use char because int might match the return type of a gcc2
60589 builtin and then its argument prototype would still apply. */
60591 /* The GNU C library defines this for functions which it implements
60592 to always fail with ENOSYS. Some functions are actually named
60593 something starting with __ and the normal name is an alias. */
60594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
60597 char (*f) () = $ac_func;
60606 return f != $ac_func;
60611 rm -f conftest.$ac_objext conftest$ac_exeext
60612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60613 (eval $ac_link) 2>conftest.er1
60615 grep -v '^ *+' conftest.er1 >conftest.err
60617 cat conftest.err >&5
60618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60619 (exit $ac_status); } &&
60620 { ac_try='test -z "$ac_c_werror_flag"
60621 || test ! -s conftest.err'
60622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60623 (eval $ac_try) 2>&5
60625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60626 (exit $ac_status); }; } &&
60627 { ac_try='test -s conftest$ac_exeext'
60628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60629 (eval $ac_try) 2>&5
60631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60632 (exit $ac_status); }; }; then
60633 eval "$as_ac_var=yes"
60635 echo "$as_me: failed program was:" >&5
60636 sed 's/^/| /' conftest.$ac_ext >&5
60638 eval "$as_ac_var=no"
60640 rm -f conftest.err conftest.$ac_objext \
60641 conftest$ac_exeext conftest.$ac_ext
60643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
60644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
60645 if test `eval echo '${'$as_ac_var'}'` = yes; then
60646 cat >>confdefs.h <<_ACEOF
60647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60649 ice_have_ungetc=yes
60653 if test "${ice_have_ungetc}" = yes; then
60654 echo "$as_me:$LINENO: checking for ungetc declaration in stdio.h" >&5
60655 echo $ECHO_N "checking for ungetc declaration in stdio.h... $ECHO_C" >&6
60656 if test "${ice_cv_have_ungetc_decl+set}" = set; then
60657 echo $ECHO_N "(cached) $ECHO_C" >&6
60660 ice_cv_have_ungetc_decl=no
60661 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60662 ice_re_word='(^|[^a-zA-Z0-9_])'
60663 for header in stdio.h; do
60664 # Check for ordinary declaration
60665 cat >conftest.$ac_ext <<_ACEOF
60668 cat confdefs.h >>conftest.$ac_ext
60669 cat >>conftest.$ac_ext <<_ACEOF
60670 /* end confdefs.h. */
60674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60675 $EGREP "${ice_re_word}ungetc[ ]*\(" >/dev/null 2>&1; then
60676 ice_cv_have_ungetc_decl=yes
60680 if test "$ice_cv_have_ungetc_decl" = yes; then
60683 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60684 cat >conftest.$ac_ext <<_ACEOF
60687 cat confdefs.h >>conftest.$ac_ext
60688 cat >>conftest.$ac_ext <<_ACEOF
60689 /* end confdefs.h. */
60693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60694 $EGREP "${ice_re_word}ungetc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60695 ice_cv_have_ungetc_decl=yes
60699 if test "$ice_cv_have_ungetc_decl" = yes; then
60706 echo "$as_me:$LINENO: result: $ice_cv_have_ungetc_decl" >&5
60707 echo "${ECHO_T}$ice_cv_have_ungetc_decl" >&6
60708 if test "$ice_cv_have_ungetc_decl" = yes; then
60710 cat >>confdefs.h <<_ACEOF
60711 #define HAVE_UNGETC_DECL 1
60718 for ac_func in vprintf
60720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60721 echo "$as_me:$LINENO: checking for $ac_func" >&5
60722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
60723 if eval "test \"\${$as_ac_var+set}\" = set"; then
60724 echo $ECHO_N "(cached) $ECHO_C" >&6
60726 cat >conftest.$ac_ext <<_ACEOF
60729 cat confdefs.h >>conftest.$ac_ext
60730 cat >>conftest.$ac_ext <<_ACEOF
60731 /* end confdefs.h. */
60732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60734 #define $ac_func innocuous_$ac_func
60736 /* System header to define __stub macros and hopefully few prototypes,
60737 which can conflict with char $ac_func (); below.
60738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60739 <limits.h> exists even on freestanding compilers. */
60742 # include <limits.h>
60744 # include <assert.h>
60749 /* Override any gcc2 internal prototype to avoid an error. */
60754 /* We use char because int might match the return type of a gcc2
60755 builtin and then its argument prototype would still apply. */
60757 /* The GNU C library defines this for functions which it implements
60758 to always fail with ENOSYS. Some functions are actually named
60759 something starting with __ and the normal name is an alias. */
60760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
60763 char (*f) () = $ac_func;
60772 return f != $ac_func;
60777 rm -f conftest.$ac_objext conftest$ac_exeext
60778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60779 (eval $ac_link) 2>conftest.er1
60781 grep -v '^ *+' conftest.er1 >conftest.err
60783 cat conftest.err >&5
60784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60785 (exit $ac_status); } &&
60786 { ac_try='test -z "$ac_c_werror_flag"
60787 || test ! -s conftest.err'
60788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60789 (eval $ac_try) 2>&5
60791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60792 (exit $ac_status); }; } &&
60793 { ac_try='test -s conftest$ac_exeext'
60794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60795 (eval $ac_try) 2>&5
60797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60798 (exit $ac_status); }; }; then
60799 eval "$as_ac_var=yes"
60801 echo "$as_me: failed program was:" >&5
60802 sed 's/^/| /' conftest.$ac_ext >&5
60804 eval "$as_ac_var=no"
60806 rm -f conftest.err conftest.$ac_objext \
60807 conftest$ac_exeext conftest.$ac_ext
60809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
60810 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
60811 if test `eval echo '${'$as_ac_var'}'` = yes; then
60812 cat >>confdefs.h <<_ACEOF
60813 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60816 echo "$as_me:$LINENO: checking for _doprnt" >&5
60817 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
60818 if test "${ac_cv_func__doprnt+set}" = set; then
60819 echo $ECHO_N "(cached) $ECHO_C" >&6
60821 cat >conftest.$ac_ext <<_ACEOF
60824 cat confdefs.h >>conftest.$ac_ext
60825 cat >>conftest.$ac_ext <<_ACEOF
60826 /* end confdefs.h. */
60827 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
60828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60829 #define _doprnt innocuous__doprnt
60831 /* System header to define __stub macros and hopefully few prototypes,
60832 which can conflict with char _doprnt (); below.
60833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60834 <limits.h> exists even on freestanding compilers. */
60837 # include <limits.h>
60839 # include <assert.h>
60844 /* Override any gcc2 internal prototype to avoid an error. */
60849 /* We use char because int might match the return type of a gcc2
60850 builtin and then its argument prototype would still apply. */
60852 /* The GNU C library defines this for functions which it implements
60853 to always fail with ENOSYS. Some functions are actually named
60854 something starting with __ and the normal name is an alias. */
60855 #if defined (__stub__doprnt) || defined (__stub____doprnt)
60858 char (*f) () = _doprnt;
60867 return f != _doprnt;
60872 rm -f conftest.$ac_objext conftest$ac_exeext
60873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60874 (eval $ac_link) 2>conftest.er1
60876 grep -v '^ *+' conftest.er1 >conftest.err
60878 cat conftest.err >&5
60879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60880 (exit $ac_status); } &&
60881 { ac_try='test -z "$ac_c_werror_flag"
60882 || test ! -s conftest.err'
60883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60884 (eval $ac_try) 2>&5
60886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60887 (exit $ac_status); }; } &&
60888 { ac_try='test -s conftest$ac_exeext'
60889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60890 (eval $ac_try) 2>&5
60892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60893 (exit $ac_status); }; }; then
60894 ac_cv_func__doprnt=yes
60896 echo "$as_me: failed program was:" >&5
60897 sed 's/^/| /' conftest.$ac_ext >&5
60899 ac_cv_func__doprnt=no
60901 rm -f conftest.err conftest.$ac_objext \
60902 conftest$ac_exeext conftest.$ac_ext
60904 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
60905 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
60906 if test $ac_cv_func__doprnt = yes; then
60908 cat >>confdefs.h <<\_ACEOF
60909 #define HAVE_DOPRNT 1
60919 ice_have_vfprintf=no
60921 for ac_func in vfprintf
60923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60924 echo "$as_me:$LINENO: checking for $ac_func" >&5
60925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
60926 if eval "test \"\${$as_ac_var+set}\" = set"; then
60927 echo $ECHO_N "(cached) $ECHO_C" >&6
60929 cat >conftest.$ac_ext <<_ACEOF
60932 cat confdefs.h >>conftest.$ac_ext
60933 cat >>conftest.$ac_ext <<_ACEOF
60934 /* end confdefs.h. */
60935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60937 #define $ac_func innocuous_$ac_func
60939 /* System header to define __stub macros and hopefully few prototypes,
60940 which can conflict with char $ac_func (); below.
60941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60942 <limits.h> exists even on freestanding compilers. */
60945 # include <limits.h>
60947 # include <assert.h>
60952 /* Override any gcc2 internal prototype to avoid an error. */
60957 /* We use char because int might match the return type of a gcc2
60958 builtin and then its argument prototype would still apply. */
60960 /* The GNU C library defines this for functions which it implements
60961 to always fail with ENOSYS. Some functions are actually named
60962 something starting with __ and the normal name is an alias. */
60963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
60966 char (*f) () = $ac_func;
60975 return f != $ac_func;
60980 rm -f conftest.$ac_objext conftest$ac_exeext
60981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60982 (eval $ac_link) 2>conftest.er1
60984 grep -v '^ *+' conftest.er1 >conftest.err
60986 cat conftest.err >&5
60987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60988 (exit $ac_status); } &&
60989 { ac_try='test -z "$ac_c_werror_flag"
60990 || test ! -s conftest.err'
60991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60992 (eval $ac_try) 2>&5
60994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60995 (exit $ac_status); }; } &&
60996 { ac_try='test -s conftest$ac_exeext'
60997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60998 (eval $ac_try) 2>&5
61000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61001 (exit $ac_status); }; }; then
61002 eval "$as_ac_var=yes"
61004 echo "$as_me: failed program was:" >&5
61005 sed 's/^/| /' conftest.$ac_ext >&5
61007 eval "$as_ac_var=no"
61009 rm -f conftest.err conftest.$ac_objext \
61010 conftest$ac_exeext conftest.$ac_ext
61012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61013 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61014 if test `eval echo '${'$as_ac_var'}'` = yes; then
61015 cat >>confdefs.h <<_ACEOF
61016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61018 ice_have_vfprintf=yes
61022 if test "${ice_have_vfprintf}" = yes; then
61023 echo "$as_me:$LINENO: checking for vfprintf declaration in stdio.h stdlib.h" >&5
61024 echo $ECHO_N "checking for vfprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
61025 if test "${ice_cv_have_vfprintf_decl+set}" = set; then
61026 echo $ECHO_N "(cached) $ECHO_C" >&6
61029 ice_cv_have_vfprintf_decl=no
61030 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61031 ice_re_word='(^|[^a-zA-Z0-9_])'
61032 for header in stdio.h stdlib.h; do
61033 # Check for ordinary declaration
61034 cat >conftest.$ac_ext <<_ACEOF
61037 cat confdefs.h >>conftest.$ac_ext
61038 cat >>conftest.$ac_ext <<_ACEOF
61039 /* end confdefs.h. */
61043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61044 $EGREP "${ice_re_word}vfprintf[ ]*\(" >/dev/null 2>&1; then
61045 ice_cv_have_vfprintf_decl=yes
61049 if test "$ice_cv_have_vfprintf_decl" = yes; then
61052 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61053 cat >conftest.$ac_ext <<_ACEOF
61056 cat confdefs.h >>conftest.$ac_ext
61057 cat >>conftest.$ac_ext <<_ACEOF
61058 /* end confdefs.h. */
61062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61063 $EGREP "${ice_re_word}vfprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61064 ice_cv_have_vfprintf_decl=yes
61068 if test "$ice_cv_have_vfprintf_decl" = yes; then
61075 echo "$as_me:$LINENO: result: $ice_cv_have_vfprintf_decl" >&5
61076 echo "${ECHO_T}$ice_cv_have_vfprintf_decl" >&6
61077 if test "$ice_cv_have_vfprintf_decl" = yes; then
61079 cat >>confdefs.h <<_ACEOF
61080 #define HAVE_VFPRINTF_DECL 1
61087 ice_have_vprintf=no
61089 for ac_func in vprintf
61091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61092 echo "$as_me:$LINENO: checking for $ac_func" >&5
61093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61094 if eval "test \"\${$as_ac_var+set}\" = set"; then
61095 echo $ECHO_N "(cached) $ECHO_C" >&6
61097 cat >conftest.$ac_ext <<_ACEOF
61100 cat confdefs.h >>conftest.$ac_ext
61101 cat >>conftest.$ac_ext <<_ACEOF
61102 /* end confdefs.h. */
61103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61105 #define $ac_func innocuous_$ac_func
61107 /* System header to define __stub macros and hopefully few prototypes,
61108 which can conflict with char $ac_func (); below.
61109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61110 <limits.h> exists even on freestanding compilers. */
61113 # include <limits.h>
61115 # include <assert.h>
61120 /* Override any gcc2 internal prototype to avoid an error. */
61125 /* We use char because int might match the return type of a gcc2
61126 builtin and then its argument prototype would still apply. */
61128 /* The GNU C library defines this for functions which it implements
61129 to always fail with ENOSYS. Some functions are actually named
61130 something starting with __ and the normal name is an alias. */
61131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61134 char (*f) () = $ac_func;
61143 return f != $ac_func;
61148 rm -f conftest.$ac_objext conftest$ac_exeext
61149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61150 (eval $ac_link) 2>conftest.er1
61152 grep -v '^ *+' conftest.er1 >conftest.err
61154 cat conftest.err >&5
61155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61156 (exit $ac_status); } &&
61157 { ac_try='test -z "$ac_c_werror_flag"
61158 || test ! -s conftest.err'
61159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61160 (eval $ac_try) 2>&5
61162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61163 (exit $ac_status); }; } &&
61164 { ac_try='test -s conftest$ac_exeext'
61165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61166 (eval $ac_try) 2>&5
61168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61169 (exit $ac_status); }; }; then
61170 eval "$as_ac_var=yes"
61172 echo "$as_me: failed program was:" >&5
61173 sed 's/^/| /' conftest.$ac_ext >&5
61175 eval "$as_ac_var=no"
61177 rm -f conftest.err conftest.$ac_objext \
61178 conftest$ac_exeext conftest.$ac_ext
61180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61181 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61182 if test `eval echo '${'$as_ac_var'}'` = yes; then
61183 cat >>confdefs.h <<_ACEOF
61184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61186 ice_have_vprintf=yes
61190 if test "${ice_have_vprintf}" = yes; then
61191 echo "$as_me:$LINENO: checking for vprintf declaration in stdio.h stdlib.h" >&5
61192 echo $ECHO_N "checking for vprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
61193 if test "${ice_cv_have_vprintf_decl+set}" = set; then
61194 echo $ECHO_N "(cached) $ECHO_C" >&6
61197 ice_cv_have_vprintf_decl=no
61198 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61199 ice_re_word='(^|[^a-zA-Z0-9_])'
61200 for header in stdio.h stdlib.h; do
61201 # Check for ordinary declaration
61202 cat >conftest.$ac_ext <<_ACEOF
61205 cat confdefs.h >>conftest.$ac_ext
61206 cat >>conftest.$ac_ext <<_ACEOF
61207 /* end confdefs.h. */
61211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61212 $EGREP "${ice_re_word}vprintf[ ]*\(" >/dev/null 2>&1; then
61213 ice_cv_have_vprintf_decl=yes
61217 if test "$ice_cv_have_vprintf_decl" = yes; then
61220 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61221 cat >conftest.$ac_ext <<_ACEOF
61224 cat confdefs.h >>conftest.$ac_ext
61225 cat >>conftest.$ac_ext <<_ACEOF
61226 /* end confdefs.h. */
61230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61231 $EGREP "${ice_re_word}vprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61232 ice_cv_have_vprintf_decl=yes
61236 if test "$ice_cv_have_vprintf_decl" = yes; then
61243 echo "$as_me:$LINENO: result: $ice_cv_have_vprintf_decl" >&5
61244 echo "${ECHO_T}$ice_cv_have_vprintf_decl" >&6
61245 if test "$ice_cv_have_vprintf_decl" = yes; then
61247 cat >>confdefs.h <<_ACEOF
61248 #define HAVE_VPRINTF_DECL 1
61255 ice_have_vsprintf=no
61257 for ac_func in vsprintf
61259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61260 echo "$as_me:$LINENO: checking for $ac_func" >&5
61261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61262 if eval "test \"\${$as_ac_var+set}\" = set"; then
61263 echo $ECHO_N "(cached) $ECHO_C" >&6
61265 cat >conftest.$ac_ext <<_ACEOF
61268 cat confdefs.h >>conftest.$ac_ext
61269 cat >>conftest.$ac_ext <<_ACEOF
61270 /* end confdefs.h. */
61271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61273 #define $ac_func innocuous_$ac_func
61275 /* System header to define __stub macros and hopefully few prototypes,
61276 which can conflict with char $ac_func (); below.
61277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61278 <limits.h> exists even on freestanding compilers. */
61281 # include <limits.h>
61283 # include <assert.h>
61288 /* Override any gcc2 internal prototype to avoid an error. */
61293 /* We use char because int might match the return type of a gcc2
61294 builtin and then its argument prototype would still apply. */
61296 /* The GNU C library defines this for functions which it implements
61297 to always fail with ENOSYS. Some functions are actually named
61298 something starting with __ and the normal name is an alias. */
61299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61302 char (*f) () = $ac_func;
61311 return f != $ac_func;
61316 rm -f conftest.$ac_objext conftest$ac_exeext
61317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61318 (eval $ac_link) 2>conftest.er1
61320 grep -v '^ *+' conftest.er1 >conftest.err
61322 cat conftest.err >&5
61323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61324 (exit $ac_status); } &&
61325 { ac_try='test -z "$ac_c_werror_flag"
61326 || test ! -s conftest.err'
61327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61328 (eval $ac_try) 2>&5
61330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61331 (exit $ac_status); }; } &&
61332 { ac_try='test -s conftest$ac_exeext'
61333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61334 (eval $ac_try) 2>&5
61336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61337 (exit $ac_status); }; }; then
61338 eval "$as_ac_var=yes"
61340 echo "$as_me: failed program was:" >&5
61341 sed 's/^/| /' conftest.$ac_ext >&5
61343 eval "$as_ac_var=no"
61345 rm -f conftest.err conftest.$ac_objext \
61346 conftest$ac_exeext conftest.$ac_ext
61348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61349 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61350 if test `eval echo '${'$as_ac_var'}'` = yes; then
61351 cat >>confdefs.h <<_ACEOF
61352 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61354 ice_have_vsprintf=yes
61358 if test "${ice_have_vsprintf}" = yes; then
61359 echo "$as_me:$LINENO: checking for vsprintf declaration in stdio.h stdlib.h" >&5
61360 echo $ECHO_N "checking for vsprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
61361 if test "${ice_cv_have_vsprintf_decl+set}" = set; then
61362 echo $ECHO_N "(cached) $ECHO_C" >&6
61365 ice_cv_have_vsprintf_decl=no
61366 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61367 ice_re_word='(^|[^a-zA-Z0-9_])'
61368 for header in stdio.h stdlib.h; do
61369 # Check for ordinary declaration
61370 cat >conftest.$ac_ext <<_ACEOF
61373 cat confdefs.h >>conftest.$ac_ext
61374 cat >>conftest.$ac_ext <<_ACEOF
61375 /* end confdefs.h. */
61379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61380 $EGREP "${ice_re_word}vsprintf[ ]*\(" >/dev/null 2>&1; then
61381 ice_cv_have_vsprintf_decl=yes
61385 if test "$ice_cv_have_vsprintf_decl" = yes; then
61388 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61389 cat >conftest.$ac_ext <<_ACEOF
61392 cat confdefs.h >>conftest.$ac_ext
61393 cat >>conftest.$ac_ext <<_ACEOF
61394 /* end confdefs.h. */
61398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61399 $EGREP "${ice_re_word}vsprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61400 ice_cv_have_vsprintf_decl=yes
61404 if test "$ice_cv_have_vsprintf_decl" = yes; then
61411 echo "$as_me:$LINENO: result: $ice_cv_have_vsprintf_decl" >&5
61412 echo "${ECHO_T}$ice_cv_have_vsprintf_decl" >&6
61413 if test "$ice_cv_have_vsprintf_decl" = yes; then
61415 cat >>confdefs.h <<_ACEOF
61416 #define HAVE_VSPRINTF_DECL 1
61422 echo "$as_me:$LINENO: checking for wait4" >&5
61423 echo $ECHO_N "checking for wait4... $ECHO_C" >&6
61424 if test "${ac_cv_func_wait4+set}" = set; then
61425 echo $ECHO_N "(cached) $ECHO_C" >&6
61427 cat >conftest.$ac_ext <<_ACEOF
61430 cat confdefs.h >>conftest.$ac_ext
61431 cat >>conftest.$ac_ext <<_ACEOF
61432 /* end confdefs.h. */
61433 /* Define wait4 to an innocuous variant, in case <limits.h> declares wait4.
61434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61435 #define wait4 innocuous_wait4
61437 /* System header to define __stub macros and hopefully few prototypes,
61438 which can conflict with char wait4 (); below.
61439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61440 <limits.h> exists even on freestanding compilers. */
61443 # include <limits.h>
61445 # include <assert.h>
61450 /* Override any gcc2 internal prototype to avoid an error. */
61455 /* We use char because int might match the return type of a gcc2
61456 builtin and then its argument prototype would still apply. */
61458 /* The GNU C library defines this for functions which it implements
61459 to always fail with ENOSYS. Some functions are actually named
61460 something starting with __ and the normal name is an alias. */
61461 #if defined (__stub_wait4) || defined (__stub___wait4)
61464 char (*f) () = wait4;
61478 rm -f conftest.$ac_objext conftest$ac_exeext
61479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61480 (eval $ac_link) 2>conftest.er1
61482 grep -v '^ *+' conftest.er1 >conftest.err
61484 cat conftest.err >&5
61485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61486 (exit $ac_status); } &&
61487 { ac_try='test -z "$ac_c_werror_flag"
61488 || test ! -s conftest.err'
61489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61490 (eval $ac_try) 2>&5
61492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61493 (exit $ac_status); }; } &&
61494 { ac_try='test -s conftest$ac_exeext'
61495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61496 (eval $ac_try) 2>&5
61498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61499 (exit $ac_status); }; }; then
61500 ac_cv_func_wait4=yes
61502 echo "$as_me: failed program was:" >&5
61503 sed 's/^/| /' conftest.$ac_ext >&5
61505 ac_cv_func_wait4=no
61507 rm -f conftest.err conftest.$ac_objext \
61508 conftest$ac_exeext conftest.$ac_ext
61510 echo "$as_me:$LINENO: result: $ac_cv_func_wait4" >&5
61511 echo "${ECHO_T}$ac_cv_func_wait4" >&6
61513 #AC_REPLACE_FUNCS(writev)
61517 for ac_func in writev
61519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61520 echo "$as_me:$LINENO: checking for $ac_func" >&5
61521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61522 if eval "test \"\${$as_ac_var+set}\" = set"; then
61523 echo $ECHO_N "(cached) $ECHO_C" >&6
61525 cat >conftest.$ac_ext <<_ACEOF
61528 cat confdefs.h >>conftest.$ac_ext
61529 cat >>conftest.$ac_ext <<_ACEOF
61530 /* end confdefs.h. */
61531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61533 #define $ac_func innocuous_$ac_func
61535 /* System header to define __stub macros and hopefully few prototypes,
61536 which can conflict with char $ac_func (); below.
61537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61538 <limits.h> exists even on freestanding compilers. */
61541 # include <limits.h>
61543 # include <assert.h>
61548 /* Override any gcc2 internal prototype to avoid an error. */
61553 /* We use char because int might match the return type of a gcc2
61554 builtin and then its argument prototype would still apply. */
61556 /* The GNU C library defines this for functions which it implements
61557 to always fail with ENOSYS. Some functions are actually named
61558 something starting with __ and the normal name is an alias. */
61559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61562 char (*f) () = $ac_func;
61571 return f != $ac_func;
61576 rm -f conftest.$ac_objext conftest$ac_exeext
61577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61578 (eval $ac_link) 2>conftest.er1
61580 grep -v '^ *+' conftest.er1 >conftest.err
61582 cat conftest.err >&5
61583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61584 (exit $ac_status); } &&
61585 { ac_try='test -z "$ac_c_werror_flag"
61586 || test ! -s conftest.err'
61587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61588 (eval $ac_try) 2>&5
61590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61591 (exit $ac_status); }; } &&
61592 { ac_try='test -s conftest$ac_exeext'
61593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61594 (eval $ac_try) 2>&5
61596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61597 (exit $ac_status); }; }; then
61598 eval "$as_ac_var=yes"
61600 echo "$as_me: failed program was:" >&5
61601 sed 's/^/| /' conftest.$ac_ext >&5
61603 eval "$as_ac_var=no"
61605 rm -f conftest.err conftest.$ac_objext \
61606 conftest$ac_exeext conftest.$ac_ext
61608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61609 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61610 if test `eval echo '${'$as_ac_var'}'` = yes; then
61611 cat >>confdefs.h <<_ACEOF
61612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61614 ice_have_writev=yes
61618 if test "${ice_have_writev}" = yes; then
61619 echo "$as_me:$LINENO: checking for writev declaration in unistd.h sys/uio.h" >&5
61620 echo $ECHO_N "checking for writev declaration in unistd.h sys/uio.h... $ECHO_C" >&6
61621 if test "${ice_cv_have_writev_decl+set}" = set; then
61622 echo $ECHO_N "(cached) $ECHO_C" >&6
61625 ice_cv_have_writev_decl=no
61626 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61627 ice_re_word='(^|[^a-zA-Z0-9_])'
61628 for header in unistd.h sys/uio.h; do
61629 # Check for ordinary declaration
61630 cat >conftest.$ac_ext <<_ACEOF
61633 cat confdefs.h >>conftest.$ac_ext
61634 cat >>conftest.$ac_ext <<_ACEOF
61635 /* end confdefs.h. */
61639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61640 $EGREP "${ice_re_word}writev[ ]*\(" >/dev/null 2>&1; then
61641 ice_cv_have_writev_decl=yes
61645 if test "$ice_cv_have_writev_decl" = yes; then
61648 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61649 cat >conftest.$ac_ext <<_ACEOF
61652 cat confdefs.h >>conftest.$ac_ext
61653 cat >>conftest.$ac_ext <<_ACEOF
61654 /* end confdefs.h. */
61658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61659 $EGREP "${ice_re_word}writev[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61660 ice_cv_have_writev_decl=yes
61664 if test "$ice_cv_have_writev_decl" = yes; then
61671 echo "$as_me:$LINENO: result: $ice_cv_have_writev_decl" >&5
61672 echo "${ECHO_T}$ice_cv_have_writev_decl" >&6
61673 if test "$ice_cv_have_writev_decl" = yes; then
61675 cat >>confdefs.h <<_ACEOF
61676 #define HAVE_WRITEV_DECL 1
61683 ice_have_strcasecmp=no
61685 for ac_func in strcasecmp
61687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61688 echo "$as_me:$LINENO: checking for $ac_func" >&5
61689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61690 if eval "test \"\${$as_ac_var+set}\" = set"; then
61691 echo $ECHO_N "(cached) $ECHO_C" >&6
61693 cat >conftest.$ac_ext <<_ACEOF
61696 cat confdefs.h >>conftest.$ac_ext
61697 cat >>conftest.$ac_ext <<_ACEOF
61698 /* end confdefs.h. */
61699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61701 #define $ac_func innocuous_$ac_func
61703 /* System header to define __stub macros and hopefully few prototypes,
61704 which can conflict with char $ac_func (); below.
61705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61706 <limits.h> exists even on freestanding compilers. */
61709 # include <limits.h>
61711 # include <assert.h>
61716 /* Override any gcc2 internal prototype to avoid an error. */
61721 /* We use char because int might match the return type of a gcc2
61722 builtin and then its argument prototype would still apply. */
61724 /* The GNU C library defines this for functions which it implements
61725 to always fail with ENOSYS. Some functions are actually named
61726 something starting with __ and the normal name is an alias. */
61727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61730 char (*f) () = $ac_func;
61739 return f != $ac_func;
61744 rm -f conftest.$ac_objext conftest$ac_exeext
61745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61746 (eval $ac_link) 2>conftest.er1
61748 grep -v '^ *+' conftest.er1 >conftest.err
61750 cat conftest.err >&5
61751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61752 (exit $ac_status); } &&
61753 { ac_try='test -z "$ac_c_werror_flag"
61754 || test ! -s conftest.err'
61755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61756 (eval $ac_try) 2>&5
61758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61759 (exit $ac_status); }; } &&
61760 { ac_try='test -s conftest$ac_exeext'
61761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61762 (eval $ac_try) 2>&5
61764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61765 (exit $ac_status); }; }; then
61766 eval "$as_ac_var=yes"
61768 echo "$as_me: failed program was:" >&5
61769 sed 's/^/| /' conftest.$ac_ext >&5
61771 eval "$as_ac_var=no"
61773 rm -f conftest.err conftest.$ac_objext \
61774 conftest$ac_exeext conftest.$ac_ext
61776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61778 if test `eval echo '${'$as_ac_var'}'` = yes; then
61779 cat >>confdefs.h <<_ACEOF
61780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61782 ice_have_strcasecmp=yes
61786 if test "${ice_have_strcasecmp}" = yes; then
61787 echo "$as_me:$LINENO: checking for strcasecmp declaration in string.h strings.h" >&5
61788 echo $ECHO_N "checking for strcasecmp declaration in string.h strings.h... $ECHO_C" >&6
61789 if test "${ice_cv_have_strcasecmp_decl+set}" = set; then
61790 echo $ECHO_N "(cached) $ECHO_C" >&6
61793 ice_cv_have_strcasecmp_decl=no
61794 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61795 ice_re_word='(^|[^a-zA-Z0-9_])'
61796 for header in string.h strings.h; do
61797 # Check for ordinary declaration
61798 cat >conftest.$ac_ext <<_ACEOF
61801 cat confdefs.h >>conftest.$ac_ext
61802 cat >>conftest.$ac_ext <<_ACEOF
61803 /* end confdefs.h. */
61807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61808 $EGREP "${ice_re_word}strcasecmp[ ]*\(" >/dev/null 2>&1; then
61809 ice_cv_have_strcasecmp_decl=yes
61813 if test "$ice_cv_have_strcasecmp_decl" = yes; then
61816 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61817 cat >conftest.$ac_ext <<_ACEOF
61820 cat confdefs.h >>conftest.$ac_ext
61821 cat >>conftest.$ac_ext <<_ACEOF
61822 /* end confdefs.h. */
61826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61827 $EGREP "${ice_re_word}strcasecmp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61828 ice_cv_have_strcasecmp_decl=yes
61832 if test "$ice_cv_have_strcasecmp_decl" = yes; then
61839 echo "$as_me:$LINENO: result: $ice_cv_have_strcasecmp_decl" >&5
61840 echo "${ECHO_T}$ice_cv_have_strcasecmp_decl" >&6
61841 if test "$ice_cv_have_strcasecmp_decl" = yes; then
61843 cat >>confdefs.h <<_ACEOF
61844 #define HAVE_STRCASECMP_DECL 1
61852 for ac_func in fnmatch
61854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61855 echo "$as_me:$LINENO: checking for $ac_func" >&5
61856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61857 if eval "test \"\${$as_ac_var+set}\" = set"; then
61858 echo $ECHO_N "(cached) $ECHO_C" >&6
61860 cat >conftest.$ac_ext <<_ACEOF
61863 cat confdefs.h >>conftest.$ac_ext
61864 cat >>conftest.$ac_ext <<_ACEOF
61865 /* end confdefs.h. */
61866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61868 #define $ac_func innocuous_$ac_func
61870 /* System header to define __stub macros and hopefully few prototypes,
61871 which can conflict with char $ac_func (); below.
61872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61873 <limits.h> exists even on freestanding compilers. */
61876 # include <limits.h>
61878 # include <assert.h>
61883 /* Override any gcc2 internal prototype to avoid an error. */
61888 /* We use char because int might match the return type of a gcc2
61889 builtin and then its argument prototype would still apply. */
61891 /* The GNU C library defines this for functions which it implements
61892 to always fail with ENOSYS. Some functions are actually named
61893 something starting with __ and the normal name is an alias. */
61894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61897 char (*f) () = $ac_func;
61906 return f != $ac_func;
61911 rm -f conftest.$ac_objext conftest$ac_exeext
61912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61913 (eval $ac_link) 2>conftest.er1
61915 grep -v '^ *+' conftest.er1 >conftest.err
61917 cat conftest.err >&5
61918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61919 (exit $ac_status); } &&
61920 { ac_try='test -z "$ac_c_werror_flag"
61921 || test ! -s conftest.err'
61922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61923 (eval $ac_try) 2>&5
61925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61926 (exit $ac_status); }; } &&
61927 { ac_try='test -s conftest$ac_exeext'
61928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61929 (eval $ac_try) 2>&5
61931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61932 (exit $ac_status); }; }; then
61933 eval "$as_ac_var=yes"
61935 echo "$as_me: failed program was:" >&5
61936 sed 's/^/| /' conftest.$ac_ext >&5
61938 eval "$as_ac_var=no"
61940 rm -f conftest.err conftest.$ac_objext \
61941 conftest$ac_exeext conftest.$ac_ext
61943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61945 if test `eval echo '${'$as_ac_var'}'` = yes; then
61946 cat >>confdefs.h <<_ACEOF
61947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61955 echo "$as_me:$LINENO: checking disk device prefixes" >&5
61956 echo $ECHO_N "checking disk device prefixes... $ECHO_C" >&6
61958 df / | while read line; do
61960 while test $# -gt 0; do
61961 if test "x$1" = "x/"; then
61968 ) | sed 's/(//' | sed 's/)//' `
61972 while test $# -gt 0; do
61973 if expr "$1" : '.*dev' >/dev/null 2>&1; then
61981 if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
61982 echo "$as_me:$LINENO: result: (predefined) $DEV_PREFIX - $RDEV_PREFIX" >&5
61983 echo "${ECHO_T}(predefined) $DEV_PREFIX - $RDEV_PREFIX" >&6
61985 if test -d /dev/dsk; then
61986 DEV_PREFIX=/dev/dsk/
61987 if test -d /dev/rdsk; then
61988 RDEV_PREFIX=/dev/rdsk/
61990 RDEV_PREFIX=/dev/dsk/
61992 elif test -d /dev; then
61995 dev_prefix=/dev/dsk/
61996 rdev_prefix=/dev/rdsk/
61997 { echo "$as_me:$LINENO: WARNING: \"*** Run amsinixfixdevs on Sinix systems using VxFS.\"" >&5
61998 echo "$as_me: WARNING: \"*** Run amsinixfixdevs on Sinix systems using VxFS.\"" >&2;}
62003 # Some systems, notably Linux, do not have raw disk devices
62004 # names. Check this by trying to see if a raw disk device name
62005 # exists using the normal raw device path prepended to the
62006 # mount point of the root filesystem.
62007 if test "$mount"; then
62008 dev_name="/dev/r`basename $mount`"
62009 if test -b $dev_name -o -c $dev_name; then
62023 echo "$as_me:$LINENO: result: $DEV_PREFIX - $RDEV_PREFIX" >&5
62024 echo "${ECHO_T}$DEV_PREFIX - $RDEV_PREFIX" >&6
62028 cat >>confdefs.h <<_ACEOF
62029 #define DEV_PREFIX "${DEV_PREFIX}"
62033 cat >>confdefs.h <<_ACEOF
62034 #define RDEV_PREFIX "${RDEV_PREFIX}"
62040 { echo "$as_me:$LINENO: WARNING: \"*** Run amhpfixdevs on HP-UX systems using /dev/vg??.\"" >&5
62041 echo "$as_me: WARNING: \"*** Run amhpfixdevs on HP-UX systems using /dev/vg??.\"" >&2;}
62045 echo "$as_me:$LINENO: checking whether posix fcntl locking works" >&5
62046 echo $ECHO_N "checking whether posix fcntl locking works... $ECHO_C" >&6
62047 if test "${amanda_cv_posix_filelocking+set}" = set; then
62048 echo $ECHO_N "(cached) $ECHO_C" >&6
62051 if test "$cross_compiling" = yes; then
62053 amanda_cv_posix_filelocking="no (cannot run test)"
62056 cat >conftest.$ac_ext <<_ACEOF
62059 cat confdefs.h >>conftest.$ac_ext
62060 cat >>conftest.$ac_ext <<_ACEOF
62061 /* end confdefs.h. */
62064 #define CONFIGURE_TEST
62065 #define USE_POSIX_FCNTL
62066 #include "${srcdir-.}/common-src/amflock.c"
62069 rm -f conftest$ac_exeext
62070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62071 (eval $ac_link) 2>&5
62073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
62075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62076 (eval $ac_try) 2>&5
62078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62079 (exit $ac_status); }; }; then
62081 amanda_cv_posix_filelocking=yes
62084 echo "$as_me: program exited with status $ac_status" >&5
62085 echo "$as_me: failed program was:" >&5
62086 sed 's/^/| /' conftest.$ac_ext >&5
62088 ( exit $ac_status )
62090 amanda_cv_posix_filelocking="no"
62093 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
62095 rm -f /tmp/conftest.lock
62098 echo "$as_me:$LINENO: result: $amanda_cv_posix_filelocking" >&5
62099 echo "${ECHO_T}$amanda_cv_posix_filelocking" >&6
62100 if test "x$amanda_cv_posix_filelocking" = xyes; then
62102 cat >>confdefs.h <<\_ACEOF
62103 #define USE_POSIX_FCNTL 1
62106 HAS_WORKING_FILE_LOCK=1
62109 if test -z "$HAS_WORKING_FILE_LOCK"; then
62110 echo "$as_me:$LINENO: checking whether flock locking works" >&5
62111 echo $ECHO_N "checking whether flock locking works... $ECHO_C" >&6
62112 if test "${amanda_cv_flock_filelocking+set}" = set; then
62113 echo $ECHO_N "(cached) $ECHO_C" >&6
62116 if test "$cross_compiling" = yes; then
62118 amanda_cv_flock_filelocking="no (cannot run test)"
62121 cat >conftest.$ac_ext <<_ACEOF
62124 cat confdefs.h >>conftest.$ac_ext
62125 cat >>conftest.$ac_ext <<_ACEOF
62126 /* end confdefs.h. */
62129 #define CONFIGURE_TEST
62131 #include "${srcdir-.}/common-src/amflock.c"
62134 rm -f conftest$ac_exeext
62135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62136 (eval $ac_link) 2>&5
62138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
62140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62141 (eval $ac_try) 2>&5
62143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62144 (exit $ac_status); }; }; then
62146 amanda_cv_flock_filelocking="yes"
62149 echo "$as_me: program exited with status $ac_status" >&5
62150 echo "$as_me: failed program was:" >&5
62151 sed 's/^/| /' conftest.$ac_ext >&5
62153 ( exit $ac_status )
62155 amanda_cv_flock_filelocking="no"
62158 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
62160 rm -f /tmp/conftest.lock
62163 echo "$as_me:$LINENO: result: $amanda_cv_flock_filelocking" >&5
62164 echo "${ECHO_T}$amanda_cv_flock_filelocking" >&6
62165 if test "x$amanda_cv_flock_filelocking" = xyes; then
62167 cat >>confdefs.h <<\_ACEOF
62168 #define USE_FLOCK 1
62171 HAS_WORKING_FILE_LOCK=1
62175 if test -z "$HAS_WORKING_FILE_LOCK"; then
62176 echo "$as_me:$LINENO: checking whether lockf locking works" >&5
62177 echo $ECHO_N "checking whether lockf locking works... $ECHO_C" >&6
62178 if test "${amanda_cv_lockf_filelocking+set}" = set; then
62179 echo $ECHO_N "(cached) $ECHO_C" >&6
62182 if test "$cross_compiling" = yes; then
62184 amanda_cv_lockf_filelocking="no (cannot run test)"
62187 cat >conftest.$ac_ext <<_ACEOF
62190 cat confdefs.h >>conftest.$ac_ext
62191 cat >>conftest.$ac_ext <<_ACEOF
62192 /* end confdefs.h. */
62195 #define CONFIGURE_TEST
62197 #include "${srcdir-.}/common-src/amflock.c"
62200 rm -f conftest$ac_exeext
62201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62202 (eval $ac_link) 2>&5
62204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
62206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62207 (eval $ac_try) 2>&5
62209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62210 (exit $ac_status); }; }; then
62212 amanda_cv_lockf_filelocking="yes"
62215 echo "$as_me: program exited with status $ac_status" >&5
62216 echo "$as_me: failed program was:" >&5
62217 sed 's/^/| /' conftest.$ac_ext >&5
62219 ( exit $ac_status )
62221 amanda_cv_lockf_filelocking="no"
62224 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
62226 rm -f /tmp/conftest.lock
62229 echo "$as_me:$LINENO: result: $amanda_cv_lockf_filelocking" >&5
62230 echo "${ECHO_T}$amanda_cv_lockf_filelocking" >&6
62231 if test "x$amanda_cv_lockf_filelocking" = xyes; then
62233 cat >>confdefs.h <<\_ACEOF
62234 #define USE_LOCKF 1
62237 HAS_WORKING_FILE_LOCK=1
62241 if test -z "$HAS_WORKING_FILE_LOCK"; then
62242 echo "$as_me:$LINENO: checking whether lnlock locking works" >&5
62243 echo $ECHO_N "checking whether lnlock locking works... $ECHO_C" >&6
62244 if test "${amanda_cv_lnlock_filelocking+set}" = set; then
62245 echo $ECHO_N "(cached) $ECHO_C" >&6
62248 if test "$cross_compiling" = yes; then
62250 amanda_cv_lnlock_filelocking="no (cannot run test)"
62253 cat >conftest.$ac_ext <<_ACEOF
62256 cat confdefs.h >>conftest.$ac_ext
62257 cat >>conftest.$ac_ext <<_ACEOF
62258 /* end confdefs.h. */
62261 #define CONFIGURE_TEST
62263 #include "${srcdir-.}/common-src/amflock.c"
62264 #include "${srcdir-.}/common-src/alloc.c"
62265 #include "${srcdir-.}/common-src/error.c"
62266 #include "${srcdir-.}/common-src/snprintf.c"
62269 rm -f conftest$ac_exeext
62270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62271 (eval $ac_link) 2>&5
62273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
62275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62276 (eval $ac_try) 2>&5
62278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62279 (exit $ac_status); }; }; then
62281 amanda_cv_lnlock_filelocking="yes"
62284 echo "$as_me: program exited with status $ac_status" >&5
62285 echo "$as_me: failed program was:" >&5
62286 sed 's/^/| /' conftest.$ac_ext >&5
62288 ( exit $ac_status )
62290 amanda_cv_lnlock_filelocking="no"
62293 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
62295 rm -f /tmp/conftest.lock
62298 echo "$as_me:$LINENO: result: $amanda_cv_lnlock_filelocking" >&5
62299 echo "${ECHO_T}$amanda_cv_lnlock_filelocking" >&6
62300 if test "x$amanda_cv_lnlock_filelocking" = xyes; then
62302 cat >>confdefs.h <<\_ACEOF
62303 #define USE_LNLOCK 1
62306 HAS_WORKING_FILE_LOCK=1
62310 if test -z "$HAS_WORKING_FILE_LOCK"; then
62311 { echo "$as_me:$LINENO: WARNING: *** No working file locking capability found!" >&5
62312 echo "$as_me: WARNING: *** No working file locking capability found!" >&2;}
62313 { echo "$as_me:$LINENO: WARNING: *** Be VERY VERY careful." >&5
62314 echo "$as_me: WARNING: *** Be VERY VERY careful." >&2;}
62325 if test x"$NO_CLIENT_MODE" != x"true"; then
62327 WANT_CLIENT_FALSE='#'
62329 WANT_CLIENT_TRUE='#'
62335 if test ! -z "$SAMBA_CLIENT"; then
62337 WANT_SAMBA_FALSE='#'
62339 WANT_SAMBA_TRUE='#'
62345 if test x"$NO_RESTORE_MODE" != x"true"; then
62347 WANT_RESTORE_FALSE='#'
62349 WANT_RESTORE_TRUE='#'
62350 WANT_RESTORE_FALSE=
62355 if test x"$NO_SERVER_MODE" != x"true"; then
62357 WANT_SERVER_FALSE='#'
62359 WANT_SERVER_TRUE='#'
62365 if test x"$NO_RECOVER_MODE" != x"true" && test x"$NO_CLIENT_MODE" != x"true"; then
62367 WANT_RECOVER_FALSE='#'
62369 WANT_RECOVER_TRUE='#'
62370 WANT_RECOVER_FALSE=
62375 if test x"$NO_SERVER_MODE" != x"true" || test x"$NO_RESTORE_MODE" != x"true"; then
62377 WANT_TAPE_FALSE='#'
62385 if test x"$NO_AMPLOT_MODE" != x"true"; then
62387 WANT_AMPLOT_FALSE='#'
62389 WANT_AMPLOT_TRUE='#'
62395 if test x"$NO_SCSI_CHANGER_MODE" != x"true"; then
62396 WANT_CHG_SCSI_TRUE=
62397 WANT_CHG_SCSI_FALSE='#'
62399 WANT_CHG_SCSI_TRUE='#'
62400 WANT_CHG_SCSI_FALSE=
62405 if test x"$NO_CHIO_CHANGER_MODE" != x"true"; then
62406 WANT_CHIO_SCSI_TRUE=
62407 WANT_CHIO_SCSI_FALSE='#'
62409 WANT_CHIO_SCSI_TRUE='#'
62410 WANT_CHIO_SCSI_FALSE=
62415 if test x"$NEED_RUNTIME_PSEUDO_RELOC" = x"true"; then
62416 WANT_RUNTIME_PSEUDO_RELOC_TRUE=
62417 WANT_RUNTIME_PSEUDO_RELOC_FALSE='#'
62419 WANT_RUNTIME_PSEUDO_RELOC_TRUE='#'
62420 WANT_RUNTIME_PSEUDO_RELOC_FALSE=
62425 if test x"$NEED_SETUID_CLIENT" != x"false"; then
62426 WANT_SETUID_CLIENT_TRUE=
62427 WANT_SETUID_CLIENT_FALSE='#'
62429 WANT_SETUID_CLIENT_TRUE='#'
62430 WANT_SETUID_CLIENT_FALSE=
62435 if test x"$SSH_SECURITY_SET" = x"true"; then
62436 WANT_SSH_SECURITY_TRUE=
62437 WANT_SSH_SECURITY_FALSE='#'
62439 WANT_SSH_SECURITY_TRUE='#'
62440 WANT_SSH_SECURITY_FALSE=
62444 case "${FORCE_USE_RUNDUMP-${USE_RUNDUMP}}" in
62446 cat >>confdefs.h <<\_ACEOF
62447 #define USE_RUNDUMP 1
62452 # This is necessary so that .o files in LIBOBJS are also built via
62453 # the ANSI2KNR-filtering rules.
62454 LIBOBJS=`echo "$LIBOBJS" |
62455 sed 's,\.[^.]* ,$U&,g;s,\.[^.]*$,$U&,'`
62456 LTLIBOBJS=`echo "$LIBOBJS" |
62457 sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
62460 LTALLOCA=`echo "$ALLOCA" | sed 's/\.'"${ac_objext}"'/\.lo/g'`
62463 ## This stuff is needed for the documentation.
62464 DOC_BUILD_DATE=`date '+%d-%m-%Y'`
62467 # Check whether --enable-manpage-build or --disable-manpage-build was given.
62468 if test "${enable_manpage_build+set}" = set; then
62469 enableval="$enable_manpage_build"
62470 ENABLE_MANPAGE_BUILD=$enableval
62472 ENABLE_MANPAGE_BUILD=no
62476 XSLTPROC_FLAGS="--nonet"
62479 # The (lack of) whitespace and overquoting here are all necessary for
62480 # proper formatting.
62482 # Check whether --with-xsltproc or --without-xsltproc was given.
62483 if test "${with_xsltproc+set}" = set; then
62484 withval="$with_xsltproc"
62485 ac_with_xsltproc=$withval;
62487 ac_with_xsltproc=maybe;
62491 # Check whether --with-xsltproc-flags or --without-xsltproc-flags was given.
62492 if test "${with_xsltproc_flags+set}" = set; then
62493 withval="$with_xsltproc_flags"
62494 if test "x$withval" == "xno"; then
62497 if test "x$withval" != "xyes"; then
62498 XSLTPROC_FLAGS="$withval"
62504 # search for xsltproc if it wasn't specified
62505 if test "$ac_with_xsltproc" = "yes" -o "$ac_with_xsltproc" = "maybe"; then
62506 for ac_prog in xsltproc
62508 # Extract the first word of "$ac_prog", so it can be a program name with args.
62509 set dummy $ac_prog; ac_word=$2
62510 echo "$as_me:$LINENO: checking for $ac_word" >&5
62511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
62512 if test "${ac_cv_path_XSLTPROC+set}" = set; then
62513 echo $ECHO_N "(cached) $ECHO_C" >&6
62517 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
62520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
62521 for as_dir in $LOCSYSPATH
62524 test -z "$as_dir" && as_dir=.
62525 for ac_exec_ext in '' $ac_executable_extensions; do
62526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
62527 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
62528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
62537 XSLTPROC=$ac_cv_path_XSLTPROC
62539 if test -n "$XSLTPROC"; then
62540 echo "$as_me:$LINENO: result: $XSLTPROC" >&5
62541 echo "${ECHO_T}$XSLTPROC" >&6
62543 echo "$as_me:$LINENO: result: no" >&5
62544 echo "${ECHO_T}no" >&6
62547 test -n "$XSLTPROC" && break
62551 if test "$ac_with_xsltproc" != "no"; then
62552 if test -x "$ac_with_xsltproc"; then
62553 XSLTPROC="$ac_with_xsltproc";
62555 { echo "$as_me:$LINENO: WARNING: Specified xsltproc of $ac_with_xsltproc isn't" >&5
62556 echo "$as_me: WARNING: Specified xsltproc of $ac_with_xsltproc isn't" >&2;}
62557 { echo "$as_me:$LINENO: WARNING: executable; searching for an alternative." >&5
62558 echo "$as_me: WARNING: executable; searching for an alternative." >&2;}
62559 for ac_prog in xsltproc
62561 # Extract the first word of "$ac_prog", so it can be a program name with args.
62562 set dummy $ac_prog; ac_word=$2
62563 echo "$as_me:$LINENO: checking for $ac_word" >&5
62564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
62565 if test "${ac_cv_path_XSLTPROC+set}" = set; then
62566 echo $ECHO_N "(cached) $ECHO_C" >&6
62570 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
62573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
62574 for as_dir in $LOCSYSPATH
62577 test -z "$as_dir" && as_dir=.
62578 for ac_exec_ext in '' $ac_executable_extensions; do
62579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
62580 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
62581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
62590 XSLTPROC=$ac_cv_path_XSLTPROC
62592 if test -n "$XSLTPROC"; then
62593 echo "$as_me:$LINENO: result: $XSLTPROC" >&5
62594 echo "${ECHO_T}$XSLTPROC" >&6
62596 echo "$as_me:$LINENO: result: no" >&5
62597 echo "${ECHO_T}no" >&6
62600 test -n "$XSLTPROC" && break
62615 echo "$as_me:$LINENO: checking for Docbook XSLT version 1.72.0" >&5
62616 echo $ECHO_N "checking for Docbook XSLT version 1.72.0... $ECHO_C" >&6
62617 if test "${ac_cv_docbook_xslt_1_72_0+set}" = set; then
62618 echo $ECHO_N "(cached) $ECHO_C" >&6
62621 ac_cv_docbook_xslt_1_72_0=no
62622 if test -n "$XSLTPROC"; then
62623 echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl'" >&5
62624 $XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl >&5 2>&1
62626 if test "$?" = 0; then
62627 ac_cv_docbook_xslt_1_72_0=yes
62632 echo "$as_me:$LINENO: result: $ac_cv_docbook_xslt_1_72_0" >&5
62633 echo "${ECHO_T}$ac_cv_docbook_xslt_1_72_0" >&6
62635 HAVE_DOCBOOK_XSLT_1_72_0="$ac_cv_docbook_xslt_1_72_0"
62636 HAVE_DOCBOOK_XSLT=HAVE_DOCBOOK_XSLT_1_72_0
62647 echo "$as_me:$LINENO: checking for Docbook DTD version 4.1.2" >&5
62648 echo $ECHO_N "checking for Docbook DTD version 4.1.2... $ECHO_C" >&6
62649 if test "${ac_cv_docbook_dtd_4_1_2+set}" = set; then
62650 echo $ECHO_N "(cached) $ECHO_C" >&6
62653 ac_cv_docbook_dtd_4_1_2=no
62654 if test -n "$XSLTPROC"; then
62655 MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
62656 cat <<EOF >conftest.xml
62657 <?xml version="1.0" encoding='ISO-8859-1'?>
62658 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
62662 echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
62663 $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
62664 if test "$?" = 0; then
62665 # failing to load the DTD is just a warning, so check for it in the output.
62666 if grep 'warning: failed to load external entity' conftest_out >/dev/null 2>&1; then
62669 ac_cv_docbook_dtd_4_1_2=yes
62672 cat conftest.out >&5
62674 rm -f conftest.xml conftest.out
62678 echo "$as_me:$LINENO: result: $ac_cv_docbook_dtd_4_1_2" >&5
62679 echo "${ECHO_T}$ac_cv_docbook_dtd_4_1_2" >&6
62681 HAVE_DOCBOOK_DTD_4_1_2="$ac_cv_docbook_dtd_4_1_2"
62682 HAVE_DOCBOOK_DTD=HAVE_DOCBOOK_DTD_4_1_2
62693 echo "$as_me:$LINENO: checking for Docbook DTD version 4.2" >&5
62694 echo $ECHO_N "checking for Docbook DTD version 4.2... $ECHO_C" >&6
62695 if test "${ac_cv_docbook_dtd_4_2+set}" = set; then
62696 echo $ECHO_N "(cached) $ECHO_C" >&6
62699 ac_cv_docbook_dtd_4_2=no
62700 if test -n "$XSLTPROC"; then
62701 MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
62702 cat <<EOF >conftest.xml
62703 <?xml version="1.0" encoding='ISO-8859-1'?>
62704 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
62708 echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
62709 $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
62710 if test "$?" = 0; then
62711 # failing to load the DTD is just a warning, so check for it in the output.
62712 if grep 'warning: failed to load external entity' conftest_out >/dev/null 2>&1; then
62715 ac_cv_docbook_dtd_4_2=yes
62718 cat conftest.out >&5
62720 rm -f conftest.xml conftest.out
62724 echo "$as_me:$LINENO: result: $ac_cv_docbook_dtd_4_2" >&5
62725 echo "${ECHO_T}$ac_cv_docbook_dtd_4_2" >&6
62727 HAVE_DOCBOOK_DTD_4_2="$ac_cv_docbook_dtd_4_2"
62728 HAVE_DOCBOOK_DTD=HAVE_DOCBOOK_DTD_4_2
62732 # and ensure that everything docbook-related is OK if we'll be using it
62733 if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
62734 if test -z "$XSLTPROC"; then
62735 { { echo "$as_me:$LINENO: error: Cannot build manpages: 'xsltproc' was not found." >&5
62736 echo "$as_me: error: Cannot build manpages: 'xsltproc' was not found." >&2;}
62737 { (exit 1); exit 1; }; }
62740 if test "x$HAVE_DOCBOOK_XSLT_1_72_0" = "xno"; then
62741 { { echo "$as_me:$LINENO: error: Cannot build manpages: docbook version 1.72.0 was not found." >&5
62742 echo "$as_me: error: Cannot build manpages: docbook version 1.72.0 was not found." >&2;}
62743 { (exit 1); exit 1; }; }
62746 if test "x$HAVE_DOCBOOK_DTD_4_1_2" = "xno" || test "x$HAVE_DOCBOOK_DTD_4_2" = "xno"; then
62747 { echo "$as_me:$LINENO: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&5
62748 echo "$as_me: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&2;}
62749 XSLTPROC_FLAGS="$XSLTPROC_FLAGS --novalid"
62754 if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
62755 ENABLE_MANPAGE_BUILD_TRUE=
62756 ENABLE_MANPAGE_BUILD_FALSE='#'
62758 ENABLE_MANPAGE_BUILD_TRUE='#'
62759 ENABLE_MANPAGE_BUILD_FALSE=
62763 echo "$as_me:$LINENO: checking for working IPv6" >&5
62764 echo $ECHO_N "checking for working IPv6... $ECHO_C" >&6
62765 if test "${amanda_working_ipv6+set}" = set; then
62766 echo $ECHO_N "(cached) $ECHO_C" >&6
62768 if test "$cross_compiling" = yes; then
62769 amanda_working_ipv6=yes
62772 cat >conftest.$ac_ext <<_ACEOF
62775 cat confdefs.h >>conftest.$ac_ext
62776 cat >>conftest.$ac_ext <<_ACEOF
62777 /* end confdefs.h. */
62778 #include <sys/types.h>
62779 #ifdef HAVE_SYS_SOCKET_H
62780 #include <sys/socket.h>
62782 #ifdef HAVE_NETINET_IN_H
62783 #include <netinet/in.h>
62785 #ifdef HAVE_WINSOCK2_H
62786 #include <winsock2.h>
62788 #include <sys/socket.h>
62789 #include <netinet/in.h>
62795 aa = socket(AF_INET6, SOCK_STREAM, 0);
62796 if (aa > 0) return 0;
62800 rm -f conftest$ac_exeext
62801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62802 (eval $ac_link) 2>&5
62804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
62806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62807 (eval $ac_try) 2>&5
62809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62810 (exit $ac_status); }; }; then
62811 amanda_working_ipv6=yes
62813 echo "$as_me: program exited with status $ac_status" >&5
62814 echo "$as_me: failed program was:" >&5
62815 sed 's/^/| /' conftest.$ac_ext >&5
62817 ( exit $ac_status )
62818 amanda_working_ipv6=no
62820 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
62825 echo "$as_me:$LINENO: result: $amanda_working_ipv6" >&5
62826 echo "${ECHO_T}$amanda_working_ipv6" >&6
62828 if test "$BROKEN_IPV6" = true; then
62829 amanda_working_ipv6=no;
62832 if test "$amanda_working_ipv6" = yes; then
62833 if test "$amanda_ipv6" != false; then
62835 cat >>confdefs.h <<\_ACEOF
62836 #define WORKING_IPV6 1
62841 if test "$amanda_ipv6" = true; then
62842 { { echo "$as_me:$LINENO: error: Asked for IPv6 but it is not working." >&5
62843 echo "$as_me: error: Asked for IPv6 but it is not working." >&2;}
62844 { (exit 1); exit 1; }; }
62850 if test "x$CC" = "xgcc"; then
62852 GCC_COMPILER_FALSE='#'
62854 GCC_COMPILER_TRUE='#'
62855 GCC_COMPILER_FALSE=
62859 #### Enforce amanda code cleanliness rules.
62860 #### Done here to allow configuration code to remain intact.
62861 if test "x$CC" = "xgcc"; then
62862 AM_CFLAGS="$AM_CFLAGS -Wall"
62863 $CC -v --help 2>&1 | $GREP -- '-Wextra ' 2>&1 > /dev/null
62864 if test $? -eq 0; then
62865 AM_CFLAGS="$AM_CFLAGS -Wextra"
62867 AM_CFLAGS="$AM_CFLAGS -W"
62870 $CC -v --help 2>&1 | $GREP -- '-Wparentheses' 2>&1 > /dev/null
62871 if test $? -eq 0; then
62872 AM_CFLAGS="$AM_CFLAGS -Wparentheses"
62875 $CC -v --help 2>&1 | $GREP -- '-Wdeclaration-after-statement' 2>&1 > /dev/null
62876 if test $? -eq 0; then
62877 AM_CFLAGS="$AM_CFLAGS -Wdeclaration-after-statement"
62880 $CC -v --help 2>&1 | $GREP -- '-Wmissing-prototypes ' 2>&1 > /dev/null
62881 if test $? -eq 0; then
62882 AM_CFLAGS="$AM_CFLAGS -Wmissing-prototypes"
62885 $CC -v --help 2>&1 | $GREP -- '-Wstrict-prototypes ' 2>&1 > /dev/null
62886 if test $? -eq 0; then
62887 AM_CFLAGS="$AM_CFLAGS -Wstrict-prototypes"
62890 $CC -v --help 2>&1 | $GREP -- '-Wmissing-declarations ' 2>&1 > /dev/null
62891 if test $? -eq 0; then
62892 AM_CFLAGS="$AM_CFLAGS -Wmissing-declarations"
62895 $CC -v --help 2>&1 | $GREP -- '-Wformat' 2>&1 > /dev/null
62896 if test $? -eq 0; then
62897 AM_CFLAGS="$AM_CFLAGS -Wformat"
62900 $CC -v --help 2>&1 | $GREP -- '-Wsign-compare' 2>&1 > /dev/null
62901 if test $? -eq 0; then
62902 AM_CFLAGS="$AM_CFLAGS -Wsign-compare"
62905 $CC -v --help 2>&1 | $GREP -- '-fno-strict-aliasing' 2>&1 > /dev/null
62906 if test $? -eq 0; then
62907 AM_CFLAGS="$AM_CFLAGS -fno-strict-aliasing"
62910 $CC -v --help 2>&1 | $GREP -- '-Wfloat-equal' 2>&1 > /dev/null
62911 if test $? -eq 0; then
62912 AM_CFLAGS="$AM_CFLAGS -Wfloat-equal"
62915 $CC -v --help 2>&1 | $GREP -- '-Wold-style-definition' 2>&1 > /dev/null
62916 if test $? -eq 0; then
62917 AM_CFLAGS="$AM_CFLAGS -Wold-style-definition"
62922 ac_config_files="$ac_config_files gnulib/Makefile amplot/amcat.awk amplot/amplot.sh amplot/Makefile amandad-src/Makefile changer-src/chg-manual.sh changer-src/chg-multi.sh changer-src/chg-mtx.sh changer-src/chg-chs.sh changer-src/chg-rth.pl changer-src/chg-chio.pl changer-src/chg-zd-mtx.sh changer-src/Makefile changer-src/chg-juke.sh changer-src/chg-rait.sh changer-src/chg-null.sh changer-src/chg-mcutil.sh changer-src/chg-disk.sh changer-src/chg-iomega.pl changer-src/chg-lib.sh client-src/patch-system.sh client-src/Makefile dumper-src/amgtar.pl dumper-src/generic-dumper.pl dumper-src/Makefile common-src/versuff.c common-src/Makefile example/amanda.conf example/Makefile example/chg-mcutil.conf example/amanda-client.conf man/Makefile docs/Makefile recover-src/Makefile oldrecover-src/Makefile restore-src/Makefile server-src/amcheckdb.sh server-src/amcleanup.sh server-src/amdump.sh server-src/amfreetapes.sh server-src/amoverview.pl server-src/amrmtape.sh server-src/amtoc.pl server-src/amverify.sh server-src/Makefile server-src/amstatus.pl server-src/amverifyrun.sh server-src/amcrypt.sh server-src/amaespipe.sh server-src/amcrypt-ossl.sh server-src/amcrypt-ossl-asym.sh tape-src/Makefile config/Makefile Makefile"
62925 cat >confcache <<\_ACEOF
62926 # This file is a shell script that caches the results of configure
62927 # tests run on this system so they can be shared between configure
62928 # scripts and configure runs, see configure's option --config-cache.
62929 # It is not useful on other systems. If it contains results you don't
62930 # want to keep, you may remove or edit it.
62932 # config.status only pays attention to the cache file if you give it
62933 # the --recheck option to rerun configure.
62935 # `ac_cv_env_foo' variables (set or unset) will be overridden when
62936 # loading this file, other *unset* `ac_cv_foo' will be assigned the
62937 # following values.
62941 # The following way of writing the cache mishandles newlines in values,
62942 # but we know of no workaround that is simple, portable, and efficient.
62943 # So, don't put newlines in cache variables' values.
62944 # Ultrix sh set writes to stderr and can't be redirected directly,
62945 # and sets the high bit in the cache file unless we assign to the vars.
62948 case `(ac_space=' '; set | grep ac_space) 2>&1` in
62950 # `set' does not quote correctly, so add quotes (double-quote
62951 # substitution turns \\\\ into \\, and sed turns \\ into \).
62954 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
62957 # `set' quotes correctly as required by POSIX, so do not add quotes.
62959 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
62966 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
62968 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
62970 if diff $cache_file confcache >/dev/null 2>&1; then :; else
62971 if test -w $cache_file; then
62972 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
62973 cat confcache >$cache_file
62975 echo "not updating unwritable cache $cache_file"
62980 test "x$prefix" = xNONE && prefix=$ac_default_prefix
62981 # Let make expand exec_prefix.
62982 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
62984 # VPATH may cause trouble with some makes, so we remove $(srcdir),
62985 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
62986 # trailing colons and then remove the whole line if VPATH becomes empty
62987 # (actually we leave an empty line to preserve line numbers).
62988 if test "x$srcdir" = x.; then
62989 ac_vpsub='/^[ ]*VPATH[ ]*=/{
62990 s/:*\$(srcdir):*/:/;
62991 s/:*\${srcdir}:*/:/;
62993 s/^\([^=]*=[ ]*\):*/\1/;
62999 DEFS=-DHAVE_CONFIG_H
63003 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
63004 # 1. Remove the extension, and $U if already installed.
63005 ac_i=`echo "$ac_i" |
63006 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
63008 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
63009 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
63011 LIBOBJS=$ac_libobjs
63013 LTLIBOBJS=$ac_ltlibobjs
63016 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
63017 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
63018 Usually this means the macro was only invoked conditionally." >&5
63019 echo "$as_me: error: conditional \"AMDEP\" was never defined.
63020 Usually this means the macro was only invoked conditionally." >&2;}
63021 { (exit 1); exit 1; }; }
63023 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
63024 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
63025 Usually this means the macro was only invoked conditionally." >&5
63026 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
63027 Usually this means the macro was only invoked conditionally." >&2;}
63028 { (exit 1); exit 1; }; }
63030 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
63031 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
63032 Usually this means the macro was only invoked conditionally." >&5
63033 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
63034 Usually this means the macro was only invoked conditionally." >&2;}
63035 { (exit 1); exit 1; }; }
63040 if test -n "$gl_LIBOBJS"; then
63041 # Remove the extension.
63042 sed_drop_objext='s/\.o$//;s/\.obj$//'
63043 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
63044 gl_libobjs="$gl_libobjs $i.$ac_objext"
63045 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
63048 gl_LIBOBJS=$gl_libobjs
63050 gl_LTLIBOBJS=$gl_ltlibobjs
63053 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
63054 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
63055 Usually this means the macro was only invoked conditionally." >&5
63056 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
63057 Usually this means the macro was only invoked conditionally." >&2;}
63058 { (exit 1); exit 1; }; }
63060 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
63061 { { echo "$as_me:$LINENO: error: conditional \"WANT_CLIENT\" was never defined.
63062 Usually this means the macro was only invoked conditionally." >&5
63063 echo "$as_me: error: conditional \"WANT_CLIENT\" was never defined.
63064 Usually this means the macro was only invoked conditionally." >&2;}
63065 { (exit 1); exit 1; }; }
63067 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
63068 { { echo "$as_me:$LINENO: error: conditional \"WANT_SAMBA\" was never defined.
63069 Usually this means the macro was only invoked conditionally." >&5
63070 echo "$as_me: error: conditional \"WANT_SAMBA\" was never defined.
63071 Usually this means the macro was only invoked conditionally." >&2;}
63072 { (exit 1); exit 1; }; }
63074 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
63075 { { echo "$as_me:$LINENO: error: conditional \"WANT_RESTORE\" was never defined.
63076 Usually this means the macro was only invoked conditionally." >&5
63077 echo "$as_me: error: conditional \"WANT_RESTORE\" was never defined.
63078 Usually this means the macro was only invoked conditionally." >&2;}
63079 { (exit 1); exit 1; }; }
63081 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
63082 { { echo "$as_me:$LINENO: error: conditional \"WANT_SERVER\" was never defined.
63083 Usually this means the macro was only invoked conditionally." >&5
63084 echo "$as_me: error: conditional \"WANT_SERVER\" was never defined.
63085 Usually this means the macro was only invoked conditionally." >&2;}
63086 { (exit 1); exit 1; }; }
63088 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
63089 { { echo "$as_me:$LINENO: error: conditional \"WANT_RECOVER\" was never defined.
63090 Usually this means the macro was only invoked conditionally." >&5
63091 echo "$as_me: error: conditional \"WANT_RECOVER\" was never defined.
63092 Usually this means the macro was only invoked conditionally." >&2;}
63093 { (exit 1); exit 1; }; }
63095 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
63096 { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE\" was never defined.
63097 Usually this means the macro was only invoked conditionally." >&5
63098 echo "$as_me: error: conditional \"WANT_TAPE\" was never defined.
63099 Usually this means the macro was only invoked conditionally." >&2;}
63100 { (exit 1); exit 1; }; }
63102 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
63103 { { echo "$as_me:$LINENO: error: conditional \"WANT_AMPLOT\" was never defined.
63104 Usually this means the macro was only invoked conditionally." >&5
63105 echo "$as_me: error: conditional \"WANT_AMPLOT\" was never defined.
63106 Usually this means the macro was only invoked conditionally." >&2;}
63107 { (exit 1); exit 1; }; }
63109 if test -z "${WANT_CHG_SCSI_TRUE}" && test -z "${WANT_CHG_SCSI_FALSE}"; then
63110 { { echo "$as_me:$LINENO: error: conditional \"WANT_CHG_SCSI\" was never defined.
63111 Usually this means the macro was only invoked conditionally." >&5
63112 echo "$as_me: error: conditional \"WANT_CHG_SCSI\" was never defined.
63113 Usually this means the macro was only invoked conditionally." >&2;}
63114 { (exit 1); exit 1; }; }
63116 if test -z "${WANT_CHIO_SCSI_TRUE}" && test -z "${WANT_CHIO_SCSI_FALSE}"; then
63117 { { echo "$as_me:$LINENO: error: conditional \"WANT_CHIO_SCSI\" was never defined.
63118 Usually this means the macro was only invoked conditionally." >&5
63119 echo "$as_me: error: conditional \"WANT_CHIO_SCSI\" was never defined.
63120 Usually this means the macro was only invoked conditionally." >&2;}
63121 { (exit 1); exit 1; }; }
63123 if test -z "${WANT_RUNTIME_PSEUDO_RELOC_TRUE}" && test -z "${WANT_RUNTIME_PSEUDO_RELOC_FALSE}"; then
63124 { { echo "$as_me:$LINENO: error: conditional \"WANT_RUNTIME_PSEUDO_RELOC\" was never defined.
63125 Usually this means the macro was only invoked conditionally." >&5
63126 echo "$as_me: error: conditional \"WANT_RUNTIME_PSEUDO_RELOC\" was never defined.
63127 Usually this means the macro was only invoked conditionally." >&2;}
63128 { (exit 1); exit 1; }; }
63130 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
63131 { { echo "$as_me:$LINENO: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
63132 Usually this means the macro was only invoked conditionally." >&5
63133 echo "$as_me: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
63134 Usually this means the macro was only invoked conditionally." >&2;}
63135 { (exit 1); exit 1; }; }
63137 if test -z "${WANT_SSH_SECURITY_TRUE}" && test -z "${WANT_SSH_SECURITY_FALSE}"; then
63138 { { echo "$as_me:$LINENO: error: conditional \"WANT_SSH_SECURITY\" was never defined.
63139 Usually this means the macro was only invoked conditionally." >&5
63140 echo "$as_me: error: conditional \"WANT_SSH_SECURITY\" was never defined.
63141 Usually this means the macro was only invoked conditionally." >&2;}
63142 { (exit 1); exit 1; }; }
63144 if test -z "${ENABLE_MANPAGE_BUILD_TRUE}" && test -z "${ENABLE_MANPAGE_BUILD_FALSE}"; then
63145 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
63146 Usually this means the macro was only invoked conditionally." >&5
63147 echo "$as_me: error: conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
63148 Usually this means the macro was only invoked conditionally." >&2;}
63149 { (exit 1); exit 1; }; }
63151 if test -z "${GCC_COMPILER_TRUE}" && test -z "${GCC_COMPILER_FALSE}"; then
63152 { { echo "$as_me:$LINENO: error: conditional \"GCC_COMPILER\" was never defined.
63153 Usually this means the macro was only invoked conditionally." >&5
63154 echo "$as_me: error: conditional \"GCC_COMPILER\" was never defined.
63155 Usually this means the macro was only invoked conditionally." >&2;}
63156 { (exit 1); exit 1; }; }
63159 : ${CONFIG_STATUS=./config.status}
63160 ac_clean_files_save=$ac_clean_files
63161 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
63162 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
63163 echo "$as_me: creating $CONFIG_STATUS" >&6;}
63164 cat >$CONFIG_STATUS <<_ACEOF
63166 # Generated by $as_me.
63167 # Run this file to recreate the current configuration.
63168 # Compiler output produced by configure, useful for debugging
63169 # configure, is in config.log if it exists.
63172 ac_cs_recheck=false
63174 SHELL=\${CONFIG_SHELL-$SHELL}
63177 cat >>$CONFIG_STATUS <<\_ACEOF
63178 ## --------------------- ##
63179 ## M4sh Initialization. ##
63180 ## --------------------- ##
63182 # Be Bourne compatible
63183 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
63186 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
63187 # is contrary to our usage. Disable this feature.
63188 alias -g '${1+"$@"}'='"$@"'
63189 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
63192 DUALCASE=1; export DUALCASE # for MKS sh
63194 # Support unset when possible.
63195 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
63202 # Work around bugs in pre-3.0 UWIN ksh.
63203 $as_unset ENV MAIL MAILPATH
63210 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
63211 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
63212 LC_TELEPHONE LC_TIME
63214 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
63215 eval $as_var=C; export $as_var
63221 # Required to use basename.
63222 if expr a : '\(a\)' >/dev/null 2>&1; then
63228 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63229 as_basename=basename
63235 # Name of the executable.
63236 as_me=`$as_basename "$0" ||
63237 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
63238 X"$0" : 'X\(//\)$' \| \
63239 X"$0" : 'X\(/\)$' \| \
63240 . : '\(.\)' 2>/dev/null ||
63242 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
63243 /^X\/\(\/\/\)$/{ s//\1/; q; }
63244 /^X\/\(\/\).*/{ s//\1/; q; }
63248 # PATH needs CR, and LINENO needs CR and PATH.
63249 # Avoid depending upon Character Ranges.
63250 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
63251 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
63252 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
63253 as_cr_digits='0123456789'
63254 as_cr_alnum=$as_cr_Letters$as_cr_digits
63256 # The user is always right.
63257 if test "${PATH_SEPARATOR+set}" != set; then
63258 echo "#! /bin/sh" >conf$$.sh
63259 echo "exit 0" >>conf$$.sh
63261 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
63270 as_lineno_1=$LINENO
63271 as_lineno_2=$LINENO
63272 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
63273 test "x$as_lineno_1" != "x$as_lineno_2" &&
63274 test "x$as_lineno_3" = "x$as_lineno_2" || {
63275 # Find who we are. Look in the path if we contain no path at all
63278 *[\\/]* ) as_myself=$0 ;;
63279 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
63280 for as_dir in $PATH
63283 test -z "$as_dir" && as_dir=.
63284 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
63289 # We did not find ourselves, most probably we were run as `sh COMMAND'
63290 # in which case we are not to be found in the path.
63291 if test "x$as_myself" = x; then
63294 if test ! -f "$as_myself"; then
63295 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
63296 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
63297 { (exit 1); exit 1; }; }
63299 case $CONFIG_SHELL in
63301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
63302 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
63305 test -z "$as_dir" && as_dir=.
63306 for as_base in sh bash ksh sh5; do
63309 if ("$as_dir/$as_base" -c '
63310 as_lineno_1=$LINENO
63311 as_lineno_2=$LINENO
63312 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
63313 test "x$as_lineno_1" != "x$as_lineno_2" &&
63314 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
63315 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
63316 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
63317 CONFIG_SHELL=$as_dir/$as_base
63318 export CONFIG_SHELL
63319 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
63327 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
63328 # uniformly replaced by the line number. The first 'sed' inserts a
63329 # line-number line before each line; the second 'sed' does the real
63330 # work. The second script uses 'N' to pair each line-number line
63331 # with the numbered line, and appends trailing '-' during
63332 # substitution so that $LINENO is not a special case at line end.
63333 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
63334 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
63335 sed '=' <$as_myself |
63340 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
63343 s,^['$as_cr_digits']*\n,,
63344 ' >$as_me.lineno &&
63345 chmod +x $as_me.lineno ||
63346 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
63347 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
63348 { (exit 1); exit 1; }; }
63350 # Don't try to exec as it changes $[0], causing all sort of problems
63351 # (the dirname of $[0] is not the place where we might find the
63352 # original and so on. Autoconf is especially sensible to this).
63354 # Exit status is that of the last command.
63359 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
63360 *c*,-n*) ECHO_N= ECHO_C='
63362 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
63363 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
63366 if expr a : '\(a\)' >/dev/null 2>&1; then
63372 rm -f conf$$ conf$$.exe conf$$.file
63374 if ln -s conf$$.file conf$$ 2>/dev/null; then
63375 # We could just check for DJGPP; but this test a) works b) is more generic
63376 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
63377 if test -f conf$$.exe; then
63378 # Don't use ln at all; we don't have any links
63383 elif ln conf$$.file conf$$ 2>/dev/null; then
63388 rm -f conf$$ conf$$.exe conf$$.file
63390 if mkdir -p . 2>/dev/null; then
63393 test -d ./-p && rmdir ./-p
63397 as_executable_p="test -f"
63399 # Sed expression to map a string onto a valid CPP name.
63400 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
63402 # Sed expression to map a string onto a valid variable name.
63403 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
63407 # We need space, tab and new line, in precisely that order.
63417 # Open the log real soon, to keep \$[0] and so on meaningful, and to
63418 # report actual input values of CONFIG_FILES etc. instead of their
63419 # values after options handling. Logging --version etc. is OK.
63423 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
63424 ## Running $as_me. ##
63429 This file was extended by $as_me, which was
63430 generated by GNU Autoconf 2.59. Invocation command line was
63432 CONFIG_FILES = $CONFIG_FILES
63433 CONFIG_HEADERS = $CONFIG_HEADERS
63434 CONFIG_LINKS = $CONFIG_LINKS
63435 CONFIG_COMMANDS = $CONFIG_COMMANDS
63439 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
63443 # Files that config.status was made for.
63444 if test -n "$ac_config_files"; then
63445 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
63448 if test -n "$ac_config_headers"; then
63449 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
63452 if test -n "$ac_config_links"; then
63453 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
63456 if test -n "$ac_config_commands"; then
63457 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
63460 cat >>$CONFIG_STATUS <<\_ACEOF
63463 \`$as_me' instantiates files from templates according to the
63464 current configuration.
63466 Usage: $0 [OPTIONS] [FILE]...
63468 -h, --help print this help, then exit
63469 -V, --version print version number, then exit
63470 -q, --quiet do not print progress messages
63471 -d, --debug don't remove temporary files
63472 --recheck update $as_me by reconfiguring in the same conditions
63473 --file=FILE[:TEMPLATE]
63474 instantiate the configuration file FILE
63475 --header=FILE[:TEMPLATE]
63476 instantiate the configuration header FILE
63478 Configuration files:
63481 Configuration headers:
63484 Configuration commands:
63487 Report bugs to <bug-autoconf@gnu.org>."
63490 cat >>$CONFIG_STATUS <<_ACEOF
63493 configured by $0, generated by GNU Autoconf 2.59,
63494 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
63496 Copyright (C) 2003 Free Software Foundation, Inc.
63497 This config.status script is free software; the Free Software Foundation
63498 gives unlimited permission to copy, distribute and modify it."
63503 cat >>$CONFIG_STATUS <<\_ACEOF
63504 # If no file are specified by the user, then we need to provide default
63505 # value. By we need to know if files were specified by the user.
63511 ac_option=`expr "x$1" : 'x\([^=]*\)='`
63512 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
63520 *) # This is not an option, so the user has probably given explicit
63523 ac_need_defaults=false;;
63527 # Handling of the options.
63529 cat >>$CONFIG_STATUS <<\_ACEOF
63530 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
63532 --version | --vers* | -V )
63533 echo "$ac_cs_version"; exit 0 ;;
63535 # Conflict between --help and --header
63536 { { echo "$as_me:$LINENO: error: ambiguous option: $1
63537 Try \`$0 --help' for more information." >&5
63538 echo "$as_me: error: ambiguous option: $1
63539 Try \`$0 --help' for more information." >&2;}
63540 { (exit 1); exit 1; }; };;
63541 --help | --hel | -h )
63542 echo "$ac_cs_usage"; exit 0 ;;
63543 --debug | --d* | -d )
63545 --file | --fil | --fi | --f )
63547 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
63548 ac_need_defaults=false;;
63549 --header | --heade | --head | --hea )
63551 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
63552 ac_need_defaults=false;;
63553 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
63554 | -silent | --silent | --silen | --sile | --sil | --si | --s)
63557 # This is an error.
63558 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
63559 Try \`$0 --help' for more information." >&5
63560 echo "$as_me: error: unrecognized option: $1
63561 Try \`$0 --help' for more information." >&2;}
63562 { (exit 1); exit 1; }; } ;;
63564 *) ac_config_targets="$ac_config_targets $1" ;;
63570 ac_configure_extra_args=
63572 if $ac_cs_silent; then
63574 ac_configure_extra_args="$ac_configure_extra_args --silent"
63578 cat >>$CONFIG_STATUS <<_ACEOF
63579 if \$ac_cs_recheck; then
63580 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
63581 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
63586 cat >>$CONFIG_STATUS <<_ACEOF
63588 # INIT-COMMANDS section.
63591 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
63592 # variables for create stdint.h replacement
63595 ac_stdint_h="$ac_stdint_h"
63596 _ac_stdint_h=`echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
63597 ac_cv_stdint_message="$ac_cv_stdint_message"
63598 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
63599 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
63600 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
63601 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
63602 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
63603 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
63604 ac_cv_char_data_model="$ac_cv_char_data_model"
63605 ac_cv_long_data_model="$ac_cv_long_data_model"
63606 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
63607 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
63608 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
63615 cat >>$CONFIG_STATUS <<\_ACEOF
63616 for ac_config_target in $ac_config_targets
63618 case "$ac_config_target" in
63619 # Handling of arguments.
63620 "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
63621 "amplot/amcat.awk" ) CONFIG_FILES="$CONFIG_FILES amplot/amcat.awk" ;;
63622 "amplot/amplot.sh" ) CONFIG_FILES="$CONFIG_FILES amplot/amplot.sh" ;;
63623 "amplot/Makefile" ) CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
63624 "amandad-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES amandad-src/Makefile" ;;
63625 "changer-src/chg-manual.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-manual.sh" ;;
63626 "changer-src/chg-multi.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-multi.sh" ;;
63627 "changer-src/chg-mtx.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-mtx.sh" ;;
63628 "changer-src/chg-chs.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-chs.sh" ;;
63629 "changer-src/chg-rth.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-rth.pl" ;;
63630 "changer-src/chg-chio.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-chio.pl" ;;
63631 "changer-src/chg-zd-mtx.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-zd-mtx.sh" ;;
63632 "changer-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
63633 "changer-src/chg-juke.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-juke.sh" ;;
63634 "changer-src/chg-rait.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-rait.sh" ;;
63635 "changer-src/chg-null.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-null.sh" ;;
63636 "changer-src/chg-mcutil.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-mcutil.sh" ;;
63637 "changer-src/chg-disk.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-disk.sh" ;;
63638 "changer-src/chg-iomega.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-iomega.pl" ;;
63639 "changer-src/chg-lib.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-lib.sh" ;;
63640 "client-src/patch-system.sh" ) CONFIG_FILES="$CONFIG_FILES client-src/patch-system.sh" ;;
63641 "client-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
63642 "dumper-src/amgtar.pl" ) CONFIG_FILES="$CONFIG_FILES dumper-src/amgtar.pl" ;;
63643 "dumper-src/generic-dumper.pl" ) CONFIG_FILES="$CONFIG_FILES dumper-src/generic-dumper.pl" ;;
63644 "dumper-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES dumper-src/Makefile" ;;
63645 "common-src/versuff.c" ) CONFIG_FILES="$CONFIG_FILES common-src/versuff.c" ;;
63646 "common-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
63647 "example/amanda.conf" ) CONFIG_FILES="$CONFIG_FILES example/amanda.conf" ;;
63648 "example/Makefile" ) CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
63649 "example/chg-mcutil.conf" ) CONFIG_FILES="$CONFIG_FILES example/chg-mcutil.conf" ;;
63650 "example/amanda-client.conf" ) CONFIG_FILES="$CONFIG_FILES example/amanda-client.conf" ;;
63651 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
63652 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
63653 "recover-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
63654 "oldrecover-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldrecover-src/Makefile" ;;
63655 "restore-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES restore-src/Makefile" ;;
63656 "server-src/amcheckdb.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcheckdb.sh" ;;
63657 "server-src/amcleanup.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcleanup.sh" ;;
63658 "server-src/amdump.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amdump.sh" ;;
63659 "server-src/amfreetapes.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amfreetapes.sh" ;;
63660 "server-src/amoverview.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amoverview.pl" ;;
63661 "server-src/amrmtape.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amrmtape.sh" ;;
63662 "server-src/amtoc.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amtoc.pl" ;;
63663 "server-src/amverify.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amverify.sh" ;;
63664 "server-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
63665 "server-src/amstatus.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amstatus.pl" ;;
63666 "server-src/amverifyrun.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amverifyrun.sh" ;;
63667 "server-src/amcrypt.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcrypt.sh" ;;
63668 "server-src/amaespipe.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amaespipe.sh" ;;
63669 "server-src/amcrypt-ossl.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcrypt-ossl.sh" ;;
63670 "server-src/amcrypt-ossl-asym.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcrypt-ossl-asym.sh" ;;
63671 "tape-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES tape-src/Makefile" ;;
63672 "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
63673 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
63674 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
63675 "$ac_stdint_h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
63676 "config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
63677 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
63678 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
63679 { (exit 1); exit 1; }; };;
63683 # If the user did not use the arguments to specify the items to instantiate,
63684 # then the envvar interface is used. Set only those that are not.
63685 # We use the long form for the default assignment because of an extremely
63686 # bizarre bug on SunOS 4.1.3.
63687 if $ac_need_defaults; then
63688 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
63689 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
63690 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
63693 # Have a temporary directory for convenience. Make it in the build tree
63694 # simply because there is no reason to put it here, and in addition,
63695 # creating and moving files from /tmp can sometimes cause problems.
63696 # Create a temporary directory, and hook for its removal unless debugging.
63699 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
63700 trap '{ (exit 1); exit 1; }' 1 2 13 15
63703 # Create a (secure) tmp directory for tmp files.
63706 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
63707 test -n "$tmp" && test -d "$tmp"
63710 tmp=./confstat$$-$RANDOM
63711 (umask 077 && mkdir $tmp)
63714 echo "$me: cannot create a temporary directory in ." >&2
63715 { (exit 1); exit 1; }
63720 cat >>$CONFIG_STATUS <<_ACEOF
63723 # CONFIG_FILES section.
63726 # No need to generate the scripts if there are no CONFIG_FILES.
63727 # This happens for instance when ./config.status config.h
63728 if test -n "\$CONFIG_FILES"; then
63729 # Protect against being on the right side of a sed subst in config.status.
63730 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
63731 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
63732 s,@SHELL@,$SHELL,;t t
63733 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
63734 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
63735 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
63736 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
63737 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
63738 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
63739 s,@exec_prefix@,$exec_prefix,;t t
63740 s,@prefix@,$prefix,;t t
63741 s,@program_transform_name@,$program_transform_name,;t t
63742 s,@bindir@,$bindir,;t t
63743 s,@sbindir@,$sbindir,;t t
63744 s,@libexecdir@,$libexecdir,;t t
63745 s,@datadir@,$datadir,;t t
63746 s,@sysconfdir@,$sysconfdir,;t t
63747 s,@sharedstatedir@,$sharedstatedir,;t t
63748 s,@localstatedir@,$localstatedir,;t t
63749 s,@libdir@,$libdir,;t t
63750 s,@includedir@,$includedir,;t t
63751 s,@oldincludedir@,$oldincludedir,;t t
63752 s,@infodir@,$infodir,;t t
63753 s,@mandir@,$mandir,;t t
63754 s,@build_alias@,$build_alias,;t t
63755 s,@host_alias@,$host_alias,;t t
63756 s,@target_alias@,$target_alias,;t t
63757 s,@DEFS@,$DEFS,;t t
63758 s,@ECHO_C@,$ECHO_C,;t t
63759 s,@ECHO_N@,$ECHO_N,;t t
63760 s,@ECHO_T@,$ECHO_T,;t t
63761 s,@LIBS@,$LIBS,;t t
63762 s,@build@,$build,;t t
63763 s,@build_cpu@,$build_cpu,;t t
63764 s,@build_vendor@,$build_vendor,;t t
63765 s,@build_os@,$build_os,;t t
63766 s,@host@,$host,;t t
63767 s,@host_cpu@,$host_cpu,;t t
63768 s,@host_vendor@,$host_vendor,;t t
63769 s,@host_os@,$host_os,;t t
63770 s,@target@,$target,;t t
63771 s,@target_cpu@,$target_cpu,;t t
63772 s,@target_vendor@,$target_vendor,;t t
63773 s,@target_os@,$target_os,;t t
63774 s,@CONFIGURE_COMMAND@,$CONFIGURE_COMMAND,;t t
63775 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
63776 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
63777 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
63778 s,@CYGPATH_W@,$CYGPATH_W,;t t
63779 s,@PACKAGE@,$PACKAGE,;t t
63780 s,@VERSION@,$VERSION,;t t
63781 s,@ACLOCAL@,$ACLOCAL,;t t
63782 s,@AUTOCONF@,$AUTOCONF,;t t
63783 s,@AUTOMAKE@,$AUTOMAKE,;t t
63784 s,@AUTOHEADER@,$AUTOHEADER,;t t
63785 s,@MAKEINFO@,$MAKEINFO,;t t
63786 s,@install_sh@,$install_sh,;t t
63787 s,@STRIP@,$STRIP,;t t
63788 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
63789 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
63790 s,@mkdir_p@,$mkdir_p,;t t
63792 s,@SET_MAKE@,$SET_MAKE,;t t
63793 s,@am__leading_dot@,$am__leading_dot,;t t
63794 s,@AMTAR@,$AMTAR,;t t
63795 s,@am__tar@,$am__tar,;t t
63796 s,@am__untar@,$am__untar,;t t
63797 s,@SNAPSHOT_STAMP@,$SNAPSHOT_STAMP,;t t
63798 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
63799 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
63800 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
63801 s,@VERSION_COMMENT@,$VERSION_COMMENT,;t t
63802 s,@VERSION_SUFFIX@,$VERSION_SUFFIX,;t t
63804 s,@CFLAGS@,$CFLAGS,;t t
63805 s,@LDFLAGS@,$LDFLAGS,;t t
63806 s,@CPPFLAGS@,$CPPFLAGS,;t t
63807 s,@ac_ct_CC@,$ac_ct_CC,;t t
63808 s,@EXEEXT@,$EXEEXT,;t t
63809 s,@OBJEXT@,$OBJEXT,;t t
63810 s,@DEPDIR@,$DEPDIR,;t t
63811 s,@am__include@,$am__include,;t t
63812 s,@am__quote@,$am__quote,;t t
63813 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
63814 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
63815 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
63816 s,@CCDEPMODE@,$CCDEPMODE,;t t
63817 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
63818 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
63819 s,@RANLIB@,$RANLIB,;t t
63820 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
63822 s,@EGREP@,$EGREP,;t t
63823 s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
63824 s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
63825 s,@ALLOCA@,$ALLOCA,;t t
63826 s,@ALLOCA_H@,$ALLOCA_H,;t t
63827 s,@ARPA_INET_H@,$ARPA_INET_H,;t t
63828 s,@SYS_SOCKET_H@,$SYS_SOCKET_H,;t t
63829 s,@LIBPTH@,$LIBPTH,;t t
63830 s,@LTLIBPTH@,$LTLIBPTH,;t t
63831 s,@LIBPTH_PREFIX@,$LIBPTH_PREFIX,;t t
63832 s,@LIBTHREAD@,$LIBTHREAD,;t t
63833 s,@LTLIBTHREAD@,$LTLIBTHREAD,;t t
63834 s,@LIBMULTITHREAD@,$LIBMULTITHREAD,;t t
63835 s,@LTLIBMULTITHREAD@,$LTLIBMULTITHREAD,;t t
63836 s,@NETINET_IN_H@,$NETINET_IN_H,;t t
63837 s,@STDBOOL_H@,$STDBOOL_H,;t t
63838 s,@HAVE__BOOL@,$HAVE__BOOL,;t t
63839 s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
63840 s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
63841 s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
63842 s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
63843 s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
63844 s,@HAVE_DECL_STRNCASECMP@,$HAVE_DECL_STRNCASECMP,;t t
63845 s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
63846 s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
63847 s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
63848 s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
63849 s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
63850 s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
63851 s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
63852 s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
63853 s,@REPLACE_STRCASECMP@,$REPLACE_STRCASECMP,;t t
63854 s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
63855 s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
63856 s,@ABSOLUTE_STRING_H@,$ABSOLUTE_STRING_H,;t t
63857 s,@MKDIR_P@,$MKDIR_P,;t t
63858 s,@EOVERFLOW@,$EOVERFLOW,;t t
63859 s,@CFLAG_VISIBILITY@,$CFLAG_VISIBILITY,;t t
63860 s,@HAVE_VISIBILITY@,$HAVE_VISIBILITY,;t t
63861 s,@GREP@,$GREP,;t t
63862 s,@AMLINT@,$AMLINT,;t t
63863 s,@AMLINTFLAGS@,$AMLINTFLAGS,;t t
63864 s,@DUMPER_DIR@,$DUMPER_DIR,;t t
63865 s,@CONFIG_DIR@,$CONFIG_DIR,;t t
63866 s,@USE_VERSION_SUFFIXES@,$USE_VERSION_SUFFIXES,;t t
63867 s,@CLIENT_SCRIPTS_OPT@,$CLIENT_SCRIPTS_OPT,;t t
63868 s,@DEFAULT_SERVER@,$DEFAULT_SERVER,;t t
63869 s,@CLIENT_LOGIN@,$CLIENT_LOGIN,;t t
63870 s,@SETUID_GROUP@,$SETUID_GROUP,;t t
63871 s,@BINARY_OWNER@,$BINARY_OWNER,;t t
63872 s,@DEFAULT_CONFIG@,$DEFAULT_CONFIG,;t t
63873 s,@DEFAULT_TAPE_SERVER@,$DEFAULT_TAPE_SERVER,;t t
63874 s,@DEFAULT_TAPE_DEVICE@,$DEFAULT_TAPE_DEVICE,;t t
63875 s,@EXAMPLE_TAPEDEV@,$EXAMPLE_TAPEDEV,;t t
63876 s,@DEFAULT_RAW_TAPE_DEVICE@,$DEFAULT_RAW_TAPE_DEVICE,;t t
63877 s,@DEFAULT_CHANGER_DEVICE@,$DEFAULT_CHANGER_DEVICE,;t t
63878 s,@GNUTAR_LISTED_INCREMENTAL_DIRX@,$GNUTAR_LISTED_INCREMENTAL_DIRX,;t t
63879 s,@GNUTAR_LISTED_INCREMENTAL_DIR@,$GNUTAR_LISTED_INCREMENTAL_DIR,;t t
63881 s,@MAXTAPEBLOCKSIZE@,$MAXTAPEBLOCKSIZE,;t t
63882 s,@AMANDA_TMPDIR@,$AMANDA_TMPDIR,;t t
63883 s,@AMANDA_DBGDIR@,$AMANDA_DBGDIR,;t t
63884 s,@AMANDA_DEBUG_DAYS@,$AMANDA_DEBUG_DAYS,;t t
63885 s,@SERVICE_SUFFIX@,$SERVICE_SUFFIX,;t t
63886 s,@MT_FILE_FLAG@,$MT_FILE_FLAG,;t t
63888 s,@YACC@,$YACC,;t t
63890 s,@COMPRESS@,$COMPRESS,;t t
63892 s,@GETCONF@,$GETCONF,;t t
63893 s,@GNUPLOT@,$GNUPLOT,;t t
63894 s,@GNUTAR@,$GNUTAR,;t t
63895 s,@SAMBA_CLIENT@,$SAMBA_CLIENT,;t t
63896 s,@GZIP@,$GZIP,;t t
63897 s,@SORT@,$SORT,;t t
63898 s,@MAILER@,$MAILER,;t t
63900 s,@CHIO@,$CHIO,;t t
63903 s,@MCUTIL@,$MCUTIL,;t t
63904 s,@PRINT@,$PRINT,;t t
63905 s,@PCAT@,$PCAT,;t t
63906 s,@PERL@,$PERL,;t t
63907 s,@DUMP@,$DUMP,;t t
63908 s,@RESTORE@,$RESTORE,;t t
63909 s,@XFSDUMP@,$XFSDUMP,;t t
63910 s,@XFSRESTORE@,$XFSRESTORE,;t t
63911 s,@VXDUMP@,$VXDUMP,;t t
63912 s,@VXRESTORE@,$VXRESTORE,;t t
63913 s,@VDUMP@,$VDUMP,;t t
63914 s,@VRESTORE@,$VRESTORE,;t t
63915 s,@AMPLOT_COMPRESS@,$AMPLOT_COMPRESS,;t t
63916 s,@AMPLOT_CAT_GZIP@,$AMPLOT_CAT_GZIP,;t t
63917 s,@AMPLOT_CAT_COMPRESS@,$AMPLOT_CAT_COMPRESS,;t t
63918 s,@AMPLOT_CAT_PACK@,$AMPLOT_CAT_PACK,;t t
63919 s,@LL_FMT@,$LL_FMT,;t t
63920 s,@LL_RFMT@,$LL_RFMT,;t t
63921 s,@LN_S@,$LN_S,;t t
63922 s,@ECHO@,$ECHO,;t t
63923 s,@ac_ct_AR@,$ac_ct_AR,;t t
63925 s,@CXXFLAGS@,$CXXFLAGS,;t t
63926 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
63927 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
63928 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
63929 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
63930 s,@CXXCPP@,$CXXCPP,;t t
63932 s,@FFLAGS@,$FFLAGS,;t t
63933 s,@ac_ct_F77@,$ac_ct_F77,;t t
63934 s,@LIBTOOL@,$LIBTOOL,;t t
63935 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
63937 s,@LEXLIB@,$LEXLIB,;t t
63938 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
63939 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
63940 s,@DB_EXT@,$DB_EXT,;t t
63941 s,@ac_n@,$ac_n,;t t
63942 s,@ac_c@,$ac_c,;t t
63943 s,@WANT_CLIENT_TRUE@,$WANT_CLIENT_TRUE,;t t
63944 s,@WANT_CLIENT_FALSE@,$WANT_CLIENT_FALSE,;t t
63945 s,@WANT_SAMBA_TRUE@,$WANT_SAMBA_TRUE,;t t
63946 s,@WANT_SAMBA_FALSE@,$WANT_SAMBA_FALSE,;t t
63947 s,@WANT_RESTORE_TRUE@,$WANT_RESTORE_TRUE,;t t
63948 s,@WANT_RESTORE_FALSE@,$WANT_RESTORE_FALSE,;t t
63949 s,@WANT_SERVER_TRUE@,$WANT_SERVER_TRUE,;t t
63950 s,@WANT_SERVER_FALSE@,$WANT_SERVER_FALSE,;t t
63951 s,@WANT_RECOVER_TRUE@,$WANT_RECOVER_TRUE,;t t
63952 s,@WANT_RECOVER_FALSE@,$WANT_RECOVER_FALSE,;t t
63953 s,@WANT_TAPE_TRUE@,$WANT_TAPE_TRUE,;t t
63954 s,@WANT_TAPE_FALSE@,$WANT_TAPE_FALSE,;t t
63955 s,@WANT_AMPLOT_TRUE@,$WANT_AMPLOT_TRUE,;t t
63956 s,@WANT_AMPLOT_FALSE@,$WANT_AMPLOT_FALSE,;t t
63957 s,@WANT_CHG_SCSI_TRUE@,$WANT_CHG_SCSI_TRUE,;t t
63958 s,@WANT_CHG_SCSI_FALSE@,$WANT_CHG_SCSI_FALSE,;t t
63959 s,@WANT_CHIO_SCSI_TRUE@,$WANT_CHIO_SCSI_TRUE,;t t
63960 s,@WANT_CHIO_SCSI_FALSE@,$WANT_CHIO_SCSI_FALSE,;t t
63961 s,@WANT_RUNTIME_PSEUDO_RELOC_TRUE@,$WANT_RUNTIME_PSEUDO_RELOC_TRUE,;t t
63962 s,@WANT_RUNTIME_PSEUDO_RELOC_FALSE@,$WANT_RUNTIME_PSEUDO_RELOC_FALSE,;t t
63963 s,@WANT_SETUID_CLIENT_TRUE@,$WANT_SETUID_CLIENT_TRUE,;t t
63964 s,@WANT_SETUID_CLIENT_FALSE@,$WANT_SETUID_CLIENT_FALSE,;t t
63965 s,@WANT_SSH_SECURITY_TRUE@,$WANT_SSH_SECURITY_TRUE,;t t
63966 s,@WANT_SSH_SECURITY_FALSE@,$WANT_SSH_SECURITY_FALSE,;t t
63967 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
63968 s,@LTALLOCA@,$LTALLOCA,;t t
63969 s,@DOC_BUILD_DATE@,$DOC_BUILD_DATE,;t t
63970 s,@XSLTPROC_FLAGS@,$XSLTPROC_FLAGS,;t t
63971 s,@XSLTPROC@,$XSLTPROC,;t t
63972 s,@ENABLE_MANPAGE_BUILD_TRUE@,$ENABLE_MANPAGE_BUILD_TRUE,;t t
63973 s,@ENABLE_MANPAGE_BUILD_FALSE@,$ENABLE_MANPAGE_BUILD_FALSE,;t t
63974 s,@GCC_COMPILER_TRUE@,$GCC_COMPILER_TRUE,;t t
63975 s,@GCC_COMPILER_FALSE@,$GCC_COMPILER_FALSE,;t t
63976 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
63977 s,@LIBOBJS@,$LIBOBJS,;t t
63978 s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
63979 s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
63984 cat >>$CONFIG_STATUS <<\_ACEOF
63985 # Split the substitutions into bite-sized pieces for seds with
63986 # small command number limits, like on Digital OSF/1 and HP-UX.
63987 ac_max_sed_lines=48
63988 ac_sed_frag=1 # Number of current file.
63989 ac_beg=1 # First line for current file.
63990 ac_end=$ac_max_sed_lines # Line after last line for current file.
63993 while $ac_more_lines; do
63994 if test $ac_beg -gt 1; then
63995 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
63997 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
63999 if test ! -s $tmp/subs.frag; then
64000 ac_more_lines=false
64002 # The purpose of the label and of the branching condition is to
64003 # speed up the sed processing (if there are no `@' at all, there
64004 # is no need to browse any of the substitutions).
64005 # These are the two extra sed commands mentioned above.
64007 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
64008 if test -z "$ac_sed_cmds"; then
64009 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
64011 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
64013 ac_sed_frag=`expr $ac_sed_frag + 1`
64015 ac_end=`expr $ac_end + $ac_max_sed_lines`
64018 if test -z "$ac_sed_cmds"; then
64021 fi # test -n "$CONFIG_FILES"
64024 cat >>$CONFIG_STATUS <<\_ACEOF
64025 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
64026 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
64028 - | *:- | *:-:* ) # input from stdin
64030 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
64031 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
64032 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
64033 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
64034 * ) ac_file_in=$ac_file.in ;;
64037 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
64038 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
64039 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
64040 X"$ac_file" : 'X\(//\)[^/]' \| \
64041 X"$ac_file" : 'X\(//\)$' \| \
64042 X"$ac_file" : 'X\(/\)' \| \
64043 . : '\(.\)' 2>/dev/null ||
64045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
64046 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
64047 /^X\(\/\/\)$/{ s//\1/; q; }
64048 /^X\(\/\).*/{ s//\1/; q; }
64050 { if $as_mkdir_p; then
64055 while test ! -d "$as_dir"; do
64056 as_dirs="$as_dir $as_dirs"
64057 as_dir=`(dirname "$as_dir") 2>/dev/null ||
64058 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
64059 X"$as_dir" : 'X\(//\)[^/]' \| \
64060 X"$as_dir" : 'X\(//\)$' \| \
64061 X"$as_dir" : 'X\(/\)' \| \
64062 . : '\(.\)' 2>/dev/null ||
64064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
64065 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
64066 /^X\(\/\/\)$/{ s//\1/; q; }
64067 /^X\(\/\).*/{ s//\1/; q; }
64070 test ! -n "$as_dirs" || mkdir $as_dirs
64071 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
64072 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
64073 { (exit 1); exit 1; }; }; }
64077 if test "$ac_dir" != .; then
64078 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
64079 # A "../" for each directory in $ac_dir_suffix.
64080 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
64082 ac_dir_suffix= ac_top_builddir=
64086 .) # No --srcdir option. We are building in place.
64088 if test -z "$ac_top_builddir"; then
64091 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
64093 [\\/]* | ?:[\\/]* ) # Absolute path.
64094 ac_srcdir=$srcdir$ac_dir_suffix;
64095 ac_top_srcdir=$srcdir ;;
64096 *) # Relative path.
64097 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
64098 ac_top_srcdir=$ac_top_builddir$srcdir ;;
64101 # Do not use `cd foo && pwd` to compute absolute paths, because
64102 # the directories may not exist.
64104 .) ac_abs_builddir="$ac_dir";;
64107 .) ac_abs_builddir=`pwd`;;
64108 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
64109 *) ac_abs_builddir=`pwd`/"$ac_dir";;
64112 case $ac_abs_builddir in
64113 .) ac_abs_top_builddir=${ac_top_builddir}.;;
64115 case ${ac_top_builddir}. in
64116 .) ac_abs_top_builddir=$ac_abs_builddir;;
64117 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
64118 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
64121 case $ac_abs_builddir in
64122 .) ac_abs_srcdir=$ac_srcdir;;
64125 .) ac_abs_srcdir=$ac_abs_builddir;;
64126 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
64127 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
64130 case $ac_abs_builddir in
64131 .) ac_abs_top_srcdir=$ac_top_srcdir;;
64133 case $ac_top_srcdir in
64134 .) ac_abs_top_srcdir=$ac_abs_builddir;;
64135 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
64136 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
64142 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
64143 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
64146 if test x"$ac_file" != x-; then
64147 { echo "$as_me:$LINENO: creating $ac_file" >&5
64148 echo "$as_me: creating $ac_file" >&6;}
64151 # Let's still pretend it is `configure' which instantiates (i.e., don't
64152 # use $as_me), people would be surprised to read:
64153 # /* config.h. Generated by config.status. */
64154 if test x"$ac_file" = x-; then
64157 configure_input="$ac_file. "
64159 configure_input=$configure_input"Generated from `echo $ac_file_in |
64160 sed 's,.*/,,'` by configure."
64162 # First look for the input files in the build tree, otherwise in the
64164 ac_file_inputs=`IFS=:
64165 for f in $ac_file_in; do
64167 -) echo $tmp/stdin ;;
64169 # Absolute (can't be DOS-style, as IFS=:)
64170 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
64171 echo "$as_me: error: cannot find input file: $f" >&2;}
64172 { (exit 1); exit 1; }; }
64175 if test -f "$f"; then
64178 elif test -f "$srcdir/$f"; then
64183 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
64184 echo "$as_me: error: cannot find input file: $f" >&2;}
64185 { (exit 1); exit 1; }; }
64188 done` || { (exit 1); exit 1; }
64190 cat >>$CONFIG_STATUS <<_ACEOF
64194 cat >>$CONFIG_STATUS <<\_ACEOF
64196 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
64197 s,@configure_input@,$configure_input,;t t
64198 s,@srcdir@,$ac_srcdir,;t t
64199 s,@abs_srcdir@,$ac_abs_srcdir,;t t
64200 s,@top_srcdir@,$ac_top_srcdir,;t t
64201 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
64202 s,@builddir@,$ac_builddir,;t t
64203 s,@abs_builddir@,$ac_abs_builddir,;t t
64204 s,@top_builddir@,$ac_top_builddir,;t t
64205 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
64206 s,@INSTALL@,$ac_INSTALL,;t t
64207 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
64209 if test x"$ac_file" != x-; then
64210 mv $tmp/out $ac_file
64218 cat >>$CONFIG_STATUS <<\_ACEOF
64221 # CONFIG_HEADER section.
64224 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
64225 # NAME is the cpp macro being defined and VALUE is the value it is being given.
64227 # ac_d sets the value in "#define NAME VALUE" lines.
64228 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
64229 ac_dB='[ ].*$,\1#\2'
64232 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
64233 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
64234 ac_uB='$,\1#\2define\3'
64238 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
64239 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
64241 - | *:- | *:-:* ) # input from stdin
64243 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
64244 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
64245 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
64246 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
64247 * ) ac_file_in=$ac_file.in ;;
64250 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
64251 echo "$as_me: creating $ac_file" >&6;}
64253 # First look for the input files in the build tree, otherwise in the
64255 ac_file_inputs=`IFS=:
64256 for f in $ac_file_in; do
64258 -) echo $tmp/stdin ;;
64260 # Absolute (can't be DOS-style, as IFS=:)
64261 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
64262 echo "$as_me: error: cannot find input file: $f" >&2;}
64263 { (exit 1); exit 1; }; }
64264 # Do quote $f, to prevent DOS paths from being IFS'd.
64267 if test -f "$f"; then
64270 elif test -f "$srcdir/$f"; then
64275 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
64276 echo "$as_me: error: cannot find input file: $f" >&2;}
64277 { (exit 1); exit 1; }; }
64280 done` || { (exit 1); exit 1; }
64281 # Remove the trailing spaces.
64282 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
64286 # Transform confdefs.h into two sed scripts, `conftest.defines' and
64287 # `conftest.undefs', that substitutes the proper values into
64288 # config.h.in to produce config.h. The first handles `#define'
64289 # templates, and the second `#undef' templates.
64290 # And first: Protect against being on the right side of a sed subst in
64291 # config.status. Protect against being in an unquoted here document
64292 # in config.status.
64293 rm -f conftest.defines conftest.undefs
64294 # Using a here document instead of a string reduces the quoting nightmare.
64295 # Putting comments in sed scripts is not portable.
64297 # `end' is used to avoid that the second main sed command (meant for
64298 # 0-ary CPP macros) applies to n-ary macro definitions.
64299 # See the Autoconf documentation for `clear'.
64300 cat >confdef2sed.sed <<\_ACEOF
64305 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
64307 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
64310 # If some macros were called several times there might be several times
64311 # the same #defines, which is useless. Nevertheless, we may not want to
64312 # sort them, since we want the *last* AC-DEFINE to be honored.
64313 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
64314 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
64315 rm -f confdef2sed.sed
64317 # This sed command replaces #undef with comments. This is necessary, for
64318 # example, in the case of _POSIX_SOURCE, which is predefined and required
64319 # on some systems where configure will not decide to define it.
64320 cat >>conftest.undefs <<\_ACEOF
64321 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
64324 # Break up conftest.defines because some shells have a limit on the size
64325 # of here documents, and old seds have small limits too (100 cmds).
64326 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
64327 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
64328 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
64329 echo ' :' >>$CONFIG_STATUS
64330 rm -f conftest.tail
64331 while grep . conftest.defines >/dev/null
64333 # Write a limited-size here document to $tmp/defines.sed.
64334 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
64335 # Speed up: don't consider the non `#define' lines.
64336 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
64337 # Work around the forget-to-reset-the-flag bug.
64338 echo 't clr' >>$CONFIG_STATUS
64339 echo ': clr' >>$CONFIG_STATUS
64340 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
64342 sed -f $tmp/defines.sed $tmp/in >$tmp/out
64344 mv $tmp/out $tmp/in
64346 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
64347 rm -f conftest.defines
64348 mv conftest.tail conftest.defines
64350 rm -f conftest.defines
64351 echo ' fi # grep' >>$CONFIG_STATUS
64352 echo >>$CONFIG_STATUS
64354 # Break up conftest.undefs because some shells have a limit on the size
64355 # of here documents, and old seds have small limits too (100 cmds).
64356 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
64357 rm -f conftest.tail
64358 while grep . conftest.undefs >/dev/null
64360 # Write a limited-size here document to $tmp/undefs.sed.
64361 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
64362 # Speed up: don't consider the non `#undef'
64363 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
64364 # Work around the forget-to-reset-the-flag bug.
64365 echo 't clr' >>$CONFIG_STATUS
64366 echo ': clr' >>$CONFIG_STATUS
64367 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
64369 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
64371 mv $tmp/out $tmp/in
64373 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
64374 rm -f conftest.undefs
64375 mv conftest.tail conftest.undefs
64377 rm -f conftest.undefs
64379 cat >>$CONFIG_STATUS <<\_ACEOF
64380 # Let's still pretend it is `configure' which instantiates (i.e., don't
64381 # use $as_me), people would be surprised to read:
64382 # /* config.h. Generated by config.status. */
64383 if test x"$ac_file" = x-; then
64384 echo "/* Generated by configure. */" >$tmp/config.h
64386 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
64388 cat $tmp/in >>$tmp/config.h
64390 if test x"$ac_file" != x-; then
64391 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
64392 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
64393 echo "$as_me: $ac_file is unchanged" >&6;}
64395 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
64396 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
64397 X"$ac_file" : 'X\(//\)[^/]' \| \
64398 X"$ac_file" : 'X\(//\)$' \| \
64399 X"$ac_file" : 'X\(/\)' \| \
64400 . : '\(.\)' 2>/dev/null ||
64402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
64403 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
64404 /^X\(\/\/\)$/{ s//\1/; q; }
64405 /^X\(\/\).*/{ s//\1/; q; }
64407 { if $as_mkdir_p; then
64412 while test ! -d "$as_dir"; do
64413 as_dirs="$as_dir $as_dirs"
64414 as_dir=`(dirname "$as_dir") 2>/dev/null ||
64415 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
64416 X"$as_dir" : 'X\(//\)[^/]' \| \
64417 X"$as_dir" : 'X\(//\)$' \| \
64418 X"$as_dir" : 'X\(/\)' \| \
64419 . : '\(.\)' 2>/dev/null ||
64421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
64422 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
64423 /^X\(\/\/\)$/{ s//\1/; q; }
64424 /^X\(\/\).*/{ s//\1/; q; }
64427 test ! -n "$as_dirs" || mkdir $as_dirs
64428 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
64429 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
64430 { (exit 1); exit 1; }; }; }
64433 mv $tmp/config.h $ac_file
64437 rm -f $tmp/config.h
64439 # Compute $ac_file's index in $config_headers.
64441 for _am_header in $config_headers :; do
64442 case $_am_header in
64443 $ac_file | $ac_file:* )
64446 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
64449 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
64450 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
64451 X$ac_file : 'X\(//\)[^/]' \| \
64452 X$ac_file : 'X\(//\)$' \| \
64453 X$ac_file : 'X\(/\)' \| \
64454 . : '\(.\)' 2>/dev/null ||
64456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
64457 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
64458 /^X\(\/\/\)$/{ s//\1/; q; }
64459 /^X\(\/\).*/{ s//\1/; q; }
64460 s/.*/./; q'`/stamp-h$_am_stamp_count
64463 cat >>$CONFIG_STATUS <<\_ACEOF
64466 # CONFIG_COMMANDS section.
64468 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
64469 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
64470 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
64471 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
64472 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
64473 X"$ac_dest" : 'X\(//\)[^/]' \| \
64474 X"$ac_dest" : 'X\(//\)$' \| \
64475 X"$ac_dest" : 'X\(/\)' \| \
64476 . : '\(.\)' 2>/dev/null ||
64478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
64479 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
64480 /^X\(\/\/\)$/{ s//\1/; q; }
64481 /^X\(\/\).*/{ s//\1/; q; }
64483 { if $as_mkdir_p; then
64488 while test ! -d "$as_dir"; do
64489 as_dirs="$as_dir $as_dirs"
64490 as_dir=`(dirname "$as_dir") 2>/dev/null ||
64491 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
64492 X"$as_dir" : 'X\(//\)[^/]' \| \
64493 X"$as_dir" : 'X\(//\)$' \| \
64494 X"$as_dir" : 'X\(/\)' \| \
64495 . : '\(.\)' 2>/dev/null ||
64497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
64498 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
64499 /^X\(\/\/\)$/{ s//\1/; q; }
64500 /^X\(\/\).*/{ s//\1/; q; }
64503 test ! -n "$as_dirs" || mkdir $as_dirs
64504 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
64505 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
64506 { (exit 1); exit 1; }; }; }
64510 if test "$ac_dir" != .; then
64511 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
64512 # A "../" for each directory in $ac_dir_suffix.
64513 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
64515 ac_dir_suffix= ac_top_builddir=
64519 .) # No --srcdir option. We are building in place.
64521 if test -z "$ac_top_builddir"; then
64524 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
64526 [\\/]* | ?:[\\/]* ) # Absolute path.
64527 ac_srcdir=$srcdir$ac_dir_suffix;
64528 ac_top_srcdir=$srcdir ;;
64529 *) # Relative path.
64530 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
64531 ac_top_srcdir=$ac_top_builddir$srcdir ;;
64534 # Do not use `cd foo && pwd` to compute absolute paths, because
64535 # the directories may not exist.
64537 .) ac_abs_builddir="$ac_dir";;
64540 .) ac_abs_builddir=`pwd`;;
64541 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
64542 *) ac_abs_builddir=`pwd`/"$ac_dir";;
64545 case $ac_abs_builddir in
64546 .) ac_abs_top_builddir=${ac_top_builddir}.;;
64548 case ${ac_top_builddir}. in
64549 .) ac_abs_top_builddir=$ac_abs_builddir;;
64550 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
64551 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
64554 case $ac_abs_builddir in
64555 .) ac_abs_srcdir=$ac_srcdir;;
64558 .) ac_abs_srcdir=$ac_abs_builddir;;
64559 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
64560 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
64563 case $ac_abs_builddir in
64564 .) ac_abs_top_srcdir=$ac_top_srcdir;;
64566 case $ac_top_srcdir in
64567 .) ac_abs_top_srcdir=$ac_abs_builddir;;
64568 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
64569 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
64574 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
64575 echo "$as_me: executing $ac_dest commands" >&6;}
64577 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
64578 # Strip MF so we end up with the name of the file.
64579 mf=`echo "$mf" | sed -e 's/:.*$//'`
64580 # Check whether this is an Automake generated Makefile or not.
64581 # We used to match only the files named `Makefile.in', but
64582 # some people rename them; so instead we look at the file content.
64583 # Grep'ing the first line is not enough: some people post-process
64584 # each Makefile.in and add a new line on top of each file to say so.
64585 # So let's grep whole file.
64586 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
64587 dirpart=`(dirname "$mf") 2>/dev/null ||
64588 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
64589 X"$mf" : 'X\(//\)[^/]' \| \
64590 X"$mf" : 'X\(//\)$' \| \
64591 X"$mf" : 'X\(/\)' \| \
64592 . : '\(.\)' 2>/dev/null ||
64594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
64595 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
64596 /^X\(\/\/\)$/{ s//\1/; q; }
64597 /^X\(\/\).*/{ s//\1/; q; }
64602 # Extract the definition of DEPDIR, am__include, and am__quote
64603 # from the Makefile without running `make'.
64604 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
64605 test -z "$DEPDIR" && continue
64606 am__include=`sed -n 's/^am__include = //p' < "$mf"`
64607 test -z "am__include" && continue
64608 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
64609 # When using ansi2knr, U may be empty or an underscore; expand it
64610 U=`sed -n 's/^U = //p' < "$mf"`
64611 # Find all dependency output files, they are included files with
64612 # $(DEPDIR) in their names. We invoke sed twice because it is the
64613 # simplest approach to changing $(DEPDIR) to its actual value in the
64615 for file in `sed -n "
64616 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
64617 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
64618 # Make sure the directory exists.
64619 test -f "$dirpart/$file" && continue
64620 fdir=`(dirname "$file") 2>/dev/null ||
64621 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
64622 X"$file" : 'X\(//\)[^/]' \| \
64623 X"$file" : 'X\(//\)$' \| \
64624 X"$file" : 'X\(/\)' \| \
64625 . : '\(.\)' 2>/dev/null ||
64627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
64628 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
64629 /^X\(\/\/\)$/{ s//\1/; q; }
64630 /^X\(\/\).*/{ s//\1/; q; }
64632 { if $as_mkdir_p; then
64633 mkdir -p $dirpart/$fdir
64635 as_dir=$dirpart/$fdir
64637 while test ! -d "$as_dir"; do
64638 as_dirs="$as_dir $as_dirs"
64639 as_dir=`(dirname "$as_dir") 2>/dev/null ||
64640 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
64641 X"$as_dir" : 'X\(//\)[^/]' \| \
64642 X"$as_dir" : 'X\(//\)$' \| \
64643 X"$as_dir" : 'X\(/\)' \| \
64644 . : '\(.\)' 2>/dev/null ||
64646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
64647 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
64648 /^X\(\/\/\)$/{ s//\1/; q; }
64649 /^X\(\/\).*/{ s//\1/; q; }
64652 test ! -n "$as_dirs" || mkdir $as_dirs
64653 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
64654 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
64655 { (exit 1); exit 1; }; }; }
64657 # echo "creating $dirpart/$file"
64658 echo '# dummy' > "$dirpart/$file"
64663 { echo "$as_me:$LINENO: creating $ac_stdint_h : $_ac_stdint_h" >&5
64664 echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
64665 ac_stdint=$tmp/_stdint.h
64667 echo "#ifndef" $_ac_stdint_h >$ac_stdint
64668 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
64669 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
64670 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
64671 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
64672 if test "_$ac_cv_header_stdint_t" != "_" ; then
64673 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
64674 echo "#include <stdint.h>" >>$ac_stdint
64675 echo "#endif" >>$ac_stdint
64676 echo "#endif" >>$ac_stdint
64679 cat >>$ac_stdint <<STDINT_EOF
64681 /* ................... shortcircuit part ........................... */
64683 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
64684 #include <stdint.h>
64686 #include <stddef.h>
64688 /* .................... configured part ............................ */
64692 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
64693 if test "_$ac_cv_header_stdint_x" != "_" ; then
64694 ac_header="$ac_cv_header_stdint_x"
64695 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
64697 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
64700 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
64701 if test "_$ac_cv_header_stdint_o" != "_" ; then
64702 ac_header="$ac_cv_header_stdint_o"
64703 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
64705 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
64708 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
64709 if test "_$ac_cv_header_stdint_u" != "_" ; then
64710 ac_header="$ac_cv_header_stdint_u"
64711 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
64713 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
64716 echo "" >>$ac_stdint
64718 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
64719 echo "#include <$ac_header>" >>$ac_stdint
64720 echo "" >>$ac_stdint
64723 echo "/* which 64bit typedef has been found */" >>$ac_stdint
64724 if test "$ac_cv_type_uint64_t" = "yes" ; then
64725 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
64727 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
64729 if test "$ac_cv_type_u_int64_t" = "yes" ; then
64730 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
64732 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
64734 echo "" >>$ac_stdint
64736 echo "/* which type model has been detected */" >>$ac_stdint
64737 if test "_$ac_cv_char_data_model" != "_" ; then
64738 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
64739 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
64741 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
64742 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
64744 echo "" >>$ac_stdint
64746 echo "/* whether int_least types were detected */" >>$ac_stdint
64747 if test "$ac_cv_type_int_least32_t" = "yes"; then
64748 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
64750 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
64752 echo "/* whether int_fast types were detected */" >>$ac_stdint
64753 if test "$ac_cv_type_int_fast32_t" = "yes"; then
64754 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
64756 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
64758 echo "/* whether intmax_t type was detected */" >>$ac_stdint
64759 if test "$ac_cv_type_intmax_t" = "yes"; then
64760 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
64762 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
64764 echo "" >>$ac_stdint
64766 cat >>$ac_stdint <<STDINT_EOF
64767 /* .................... detections part ............................ */
64769 /* whether we need to define bitspecific types from compiler base types */
64770 #ifndef _STDINT_HEADER_INTPTR
64771 #ifndef _STDINT_HEADER_UINT32
64772 #ifndef _STDINT_HEADER_U_INT32
64773 #define _STDINT_NEED_INT_MODEL_T
64775 #define _STDINT_HAVE_U_INT_TYPES
64780 #ifdef _STDINT_HAVE_U_INT_TYPES
64781 #undef _STDINT_NEED_INT_MODEL_T
64784 #ifdef _STDINT_CHAR_MODEL
64785 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
64786 #ifndef _STDINT_BYTE_MODEL
64787 #define _STDINT_BYTE_MODEL 12
64792 #ifndef _STDINT_HAVE_INT_LEAST32_T
64793 #define _STDINT_NEED_INT_LEAST_T
64796 #ifndef _STDINT_HAVE_INT_FAST32_T
64797 #define _STDINT_NEED_INT_FAST_T
64800 #ifndef _STDINT_HEADER_INTPTR
64801 #define _STDINT_NEED_INTPTR_T
64802 #ifndef _STDINT_HAVE_INTMAX_T
64803 #define _STDINT_NEED_INTMAX_T
64808 /* .................... definition part ............................ */
64810 /* some system headers have good uint64_t */
64811 #ifndef _HAVE_UINT64_T
64812 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
64813 #define _HAVE_UINT64_T
64814 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
64815 #define _HAVE_UINT64_T
64816 typedef u_int64_t uint64_t;
64820 #ifndef _HAVE_UINT64_T
64821 /* .. here are some common heuristics using compiler runtime specifics */
64822 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
64823 #define _HAVE_UINT64_T
64824 #define _HAVE_LONGLONG_UINT64_T
64825 typedef long long int64_t;
64826 typedef unsigned long long uint64_t;
64828 #elif !defined __STRICT_ANSI__
64829 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
64830 #define _HAVE_UINT64_T
64831 typedef __int64 int64_t;
64832 typedef unsigned __int64 uint64_t;
64834 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
64835 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
64836 #if !defined _NO_LONGLONG
64837 #define _HAVE_UINT64_T
64838 #define _HAVE_LONGLONG_UINT64_T
64839 typedef long long int64_t;
64840 typedef unsigned long long uint64_t;
64843 #elif defined __alpha || (defined __mips && defined _ABIN32)
64844 #if !defined _NO_LONGLONG
64845 #define _HAVE_UINT64_T
64846 typedef long int64_t;
64847 typedef unsigned long uint64_t;
64849 /* compiler/cpu type to define int64_t */
64854 #if defined _STDINT_HAVE_U_INT_TYPES
64855 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
64856 typedef u_int8_t uint8_t;
64857 typedef u_int16_t uint16_t;
64858 typedef u_int32_t uint32_t;
64860 /* glibc compatibility */
64861 #ifndef __int8_t_defined
64862 #define __int8_t_defined
64866 #ifdef _STDINT_NEED_INT_MODEL_T
64867 /* we must guess all the basic types. Apart from byte-adressable system, */
64868 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
64869 /* (btw, those nibble-addressable systems are way off, or so we assume) */
64872 #if defined _STDINT_BYTE_MODEL
64873 #if _STDINT_LONG_MODEL+0 == 242
64874 /* 2:4:2 = IP16 = a normal 16-bit system */
64875 typedef unsigned char uint8_t;
64876 typedef unsigned short uint16_t;
64877 typedef unsigned long uint32_t;
64878 #ifndef __int8_t_defined
64879 #define __int8_t_defined
64880 typedef char int8_t;
64881 typedef short int16_t;
64882 typedef long int32_t;
64884 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
64885 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
64886 /* 4:4:4 = ILP32 = a normal 32-bit system */
64887 typedef unsigned char uint8_t;
64888 typedef unsigned short uint16_t;
64889 typedef unsigned int uint32_t;
64890 #ifndef __int8_t_defined
64891 #define __int8_t_defined
64892 typedef char int8_t;
64893 typedef short int16_t;
64894 typedef int int32_t;
64896 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
64897 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
64898 /* 4:8:8 = LP64 = a normal 64-bit system */
64899 typedef unsigned char uint8_t;
64900 typedef unsigned short uint16_t;
64901 typedef unsigned int uint32_t;
64902 #ifndef __int8_t_defined
64903 #define __int8_t_defined
64904 typedef char int8_t;
64905 typedef short int16_t;
64906 typedef int int32_t;
64908 /* this system has a "long" of 64bit */
64909 #ifndef _HAVE_UINT64_T
64910 #define _HAVE_UINT64_T
64911 typedef unsigned long uint64_t;
64912 typedef long int64_t;
64914 #elif _STDINT_LONG_MODEL+0 == 448
64915 /* LLP64 a 64-bit system derived from a 32-bit system */
64916 typedef unsigned char uint8_t;
64917 typedef unsigned short uint16_t;
64918 typedef unsigned int uint32_t;
64919 #ifndef __int8_t_defined
64920 #define __int8_t_defined
64921 typedef char int8_t;
64922 typedef short int16_t;
64923 typedef int int32_t;
64925 /* assuming the system has a "long long" */
64926 #ifndef _HAVE_UINT64_T
64927 #define _HAVE_UINT64_T
64928 #define _HAVE_LONGLONG_UINT64_T
64929 typedef unsigned long long uint64_t;
64930 typedef long long int64_t;
64933 #define _STDINT_NO_INT32_T
64936 #define _STDINT_NO_INT8_T
64937 #define _STDINT_NO_INT32_T
64942 * quote from SunOS-5.8 sys/inttypes.h:
64943 * Use at your own risk. As of February 1996, the committee is squarely
64944 * behind the fixed sized types; the "least" and "fast" types are still being
64945 * discussed. The probability that the "fast" types may be removed before
64946 * the standard is finalized is high enough that they are not currently
64950 #if defined _STDINT_NEED_INT_LEAST_T
64951 typedef int8_t int_least8_t;
64952 typedef int16_t int_least16_t;
64953 typedef int32_t int_least32_t;
64954 #ifdef _HAVE_UINT64_T
64955 typedef int64_t int_least64_t;
64958 typedef uint8_t uint_least8_t;
64959 typedef uint16_t uint_least16_t;
64960 typedef uint32_t uint_least32_t;
64961 #ifdef _HAVE_UINT64_T
64962 typedef uint64_t uint_least64_t;
64967 #if defined _STDINT_NEED_INT_FAST_T
64968 typedef int8_t int_fast8_t;
64969 typedef int int_fast16_t;
64970 typedef int32_t int_fast32_t;
64971 #ifdef _HAVE_UINT64_T
64972 typedef int64_t int_fast64_t;
64975 typedef uint8_t uint_fast8_t;
64976 typedef unsigned uint_fast16_t;
64977 typedef uint32_t uint_fast32_t;
64978 #ifdef _HAVE_UINT64_T
64979 typedef uint64_t uint_fast64_t;
64984 #ifdef _STDINT_NEED_INTMAX_T
64985 #ifdef _HAVE_UINT64_T
64986 typedef int64_t intmax_t;
64987 typedef uint64_t uintmax_t;
64989 typedef long intmax_t;
64990 typedef unsigned long uintmax_t;
64994 #ifdef _STDINT_NEED_INTPTR_T
64995 #ifndef __intptr_t_defined
64996 #define __intptr_t_defined
64997 /* we encourage using "long" to store pointer values, never use "int" ! */
64998 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
64999 typedef unsinged int uintptr_t;
65000 typedef int intptr_t;
65001 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
65002 typedef unsigned long uintptr_t;
65003 typedef long intptr_t;
65004 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
65005 typedef uint64_t uintptr_t;
65006 typedef int64_t intptr_t;
65007 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
65008 typedef unsigned long uintptr_t;
65009 typedef long intptr_t;
65014 /* The ISO C99 standard specifies that in C++ implementations these
65015 should only be defined if explicitly requested. */
65016 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
65020 # define INT8_C(c) c
65021 # define INT16_C(c) c
65022 # define INT32_C(c) c
65023 # ifdef _HAVE_LONGLONG_UINT64_T
65024 # define INT64_C(c) c ## L
65026 # define INT64_C(c) c ## LL
65030 # define UINT8_C(c) c ## U
65031 # define UINT16_C(c) c ## U
65032 # define UINT32_C(c) c ## U
65033 # ifdef _HAVE_LONGLONG_UINT64_T
65034 # define UINT64_C(c) c ## UL
65036 # define UINT64_C(c) c ## ULL
65039 /* Maximal type. */
65040 # ifdef _HAVE_LONGLONG_UINT64_T
65041 # define INTMAX_C(c) c ## L
65042 # define UINTMAX_C(c) c ## UL
65044 # define INTMAX_C(c) c ## LL
65045 # define UINTMAX_C(c) c ## ULL
65048 /* literalnumbers */
65052 /* These limits are merily those of a two complement byte-oriented system */
65054 /* Minimum of signed integral types. */
65055 # define INT8_MIN (-128)
65056 # define INT16_MIN (-32767-1)
65057 # define INT32_MIN (-2147483647-1)
65058 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
65059 /* Maximum of signed integral types. */
65060 # define INT8_MAX (127)
65061 # define INT16_MAX (32767)
65062 # define INT32_MAX (2147483647)
65063 # define INT64_MAX (__INT64_C(9223372036854775807))
65065 /* Maximum of unsigned integral types. */
65066 # define UINT8_MAX (255)
65067 # define UINT16_MAX (65535)
65068 # define UINT32_MAX (4294967295U)
65069 # define UINT64_MAX (__UINT64_C(18446744073709551615))
65071 /* Minimum of signed integral types having a minimum size. */
65072 # define INT_LEAST8_MIN INT8_MIN
65073 # define INT_LEAST16_MIN INT16_MIN
65074 # define INT_LEAST32_MIN INT32_MIN
65075 # define INT_LEAST64_MIN INT64_MIN
65076 /* Maximum of signed integral types having a minimum size. */
65077 # define INT_LEAST8_MAX INT8_MAX
65078 # define INT_LEAST16_MAX INT16_MAX
65079 # define INT_LEAST32_MAX INT32_MAX
65080 # define INT_LEAST64_MAX INT64_MAX
65082 /* Maximum of unsigned integral types having a minimum size. */
65083 # define UINT_LEAST8_MAX UINT8_MAX
65084 # define UINT_LEAST16_MAX UINT16_MAX
65085 # define UINT_LEAST32_MAX UINT32_MAX
65086 # define UINT_LEAST64_MAX UINT64_MAX
65095 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
65096 { echo "$as_me:$LINENO: $ac_stdint_h is unchanged" >&5
65097 echo "$as_me: $ac_stdint_h is unchanged" >&6;}
65099 ac_dir=`(dirname "$ac_stdint_h") 2>/dev/null ||
65100 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
65101 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
65102 X"$ac_stdint_h" : 'X\(//\)$' \| \
65103 X"$ac_stdint_h" : 'X\(/\)' \| \
65104 . : '\(.\)' 2>/dev/null ||
65105 echo X"$ac_stdint_h" |
65106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
65107 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
65108 /^X\(\/\/\)$/{ s//\1/; q; }
65109 /^X\(\/\).*/{ s//\1/; q; }
65111 { if $as_mkdir_p; then
65116 while test ! -d "$as_dir"; do
65117 as_dirs="$as_dir $as_dirs"
65118 as_dir=`(dirname "$as_dir") 2>/dev/null ||
65119 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
65120 X"$as_dir" : 'X\(//\)[^/]' \| \
65121 X"$as_dir" : 'X\(//\)$' \| \
65122 X"$as_dir" : 'X\(/\)' \| \
65123 . : '\(.\)' 2>/dev/null ||
65125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
65126 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
65127 /^X\(\/\/\)$/{ s//\1/; q; }
65128 /^X\(\/\).*/{ s//\1/; q; }
65131 test ! -n "$as_dirs" || mkdir $as_dirs
65132 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
65133 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
65134 { (exit 1); exit 1; }; }; }
65137 mv $ac_stdint $ac_stdint_h
65144 cat >>$CONFIG_STATUS <<\_ACEOF
65146 { (exit 0); exit 0; }
65148 chmod +x $CONFIG_STATUS
65149 ac_clean_files=$ac_clean_files_save
65152 # configure is writing to config.log, and then calls config.status.
65153 # config.status does its own redirection, appending to config.log.
65154 # Unfortunately, on DOS this fails, as config.log is still kept open
65155 # by configure, so config.status won't be able to write to it; its
65156 # output is simply discarded. So we exec the FD to /dev/null,
65157 # effectively closing config.log, so it can be properly (re)opened and
65158 # appended to by config.status. When coming back to configure, we
65159 # need to make the FD available again.
65160 if test "$no_create" != yes; then
65162 ac_config_status_args=
65163 test "$silent" = yes &&
65164 ac_config_status_args="$ac_config_status_args --quiet"
65166 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
65168 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
65169 # would make configure fail if this is the last instruction.
65170 $ac_cs_success || { (exit 1); exit 1; }