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>
466 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 CONFIG_DIR USE_VERSION_SUFFIXES CLIENT_SCRIPTS_OPT DEFAULT_SERVER CLIENT_LOGIN SETUID_GROUP BINARY_OWNER DEFAULT_CONFIG DEFAULT_TAPE_SERVER DEFAULT_TAPE_DEVICE DEFAULT_RAW_TAPE_DEVICE DEFAULT_CHANGER_DEVICE GNUTAR_LISTED_INCREMENTAL_DIRX MAXTAPEBLOCKSIZE AMANDA_TMPDIR AMANDA_DBGDIR AMANDA_DEBUG_DAYS SERVICE_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 MT_FILE_FLAG CPP EGREP AR AWK_VAR_ASSIGNMENT_OPT YACC CAT COMPRESS DD GETCONF GNUPLOT GREP GNUTAR SAMBA_CLIENT GZIP 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 LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB 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 ALLOCA LIBOBJS 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 LTLIBOBJS LTALLOCA'
469 # Initialize some variables set by options.
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
481 program_transform_name=s,x,x,
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519 # Accept the important Cygnus configure options, so we can diagnose typos.
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build_alias ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build_alias=$ac_optarg ;;
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file=$ac_optarg ;;
541 cache_file=config.cache ;;
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 datadir=$ac_optarg ;;
549 -disable-* | --disable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
558 -enable-* | --enable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 eval "enable_$ac_feature='$ac_optarg'" ;;
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix=$ac_optarg ;;
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
584 -help | --help | --hel | --he | -h)
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
591 -host | --host | --hos | --ho)
592 ac_prev=host_alias ;;
593 -host=* | --host=* | --hos=* | --ho=*)
594 host_alias=$ac_optarg ;;
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
601 includedir=$ac_optarg ;;
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 infodir=$ac_optarg ;;
608 -libdir | --libdir | --libdi | --libd)
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
618 libexecdir=$ac_optarg ;;
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627 localstatedir=$ac_optarg ;;
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635 # Obsolete; use --without-fp.
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 | --no-cr | --no-c | -n)
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653 oldincludedir=$ac_optarg ;;
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665 program_prefix=$ac_optarg ;;
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672 program_suffix=$ac_optarg ;;
674 -program-transform-name | --program-transform-name \
675 | --program-transform-nam | --program-transform-na \
676 | --program-transform-n | --program-transform- \
677 | --program-transform | --program-transfor \
678 | --program-transfo | --program-transf \
679 | --program-trans | --program-tran \
680 | --progr-tra | --program-tr | --program-t)
681 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
689 program_transform_name=$ac_optarg ;;
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 sbindir=$ac_optarg ;;
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 sharedstatedir=$ac_optarg ;;
712 -site | --site | --sit)
714 -site=* | --site=* | --sit=*)
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727 sysconfdir=$ac_optarg ;;
729 -target | --target | --targe | --targ | --tar | --ta | --t)
730 ac_prev=target_alias ;;
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 target_alias=$ac_optarg ;;
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 -version | --version | --versio | --versi | --vers | -V)
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package=`echo $ac_package| sed 's/-/_/g'`
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 eval "with_$ac_package='$ac_optarg'" ;;
753 -without-* | --without-*)
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
763 # Obsolete; use --with-x.
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771 x_includes=$ac_optarg ;;
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778 x_libraries=$ac_optarg ;;
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806 if test -n "$ac_prev"; then
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
815 eval ac_val=$`echo $ac_var`
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 localstatedir libdir includedir oldincludedir infodir mandir
827 eval ac_val=$`echo $ac_var`
829 [\\/$]* | ?:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856 test "$silent" = yes && exec 6>/dev/null
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
876 if test ! -r $srcdir/$ac_unique_file; then
880 ac_srcdir_defaulted=no
882 if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CPP_set=${CPP+set}
924 ac_env_CPP_value=$CPP
925 ac_cv_env_CPP_set=${CPP+set}
926 ac_cv_env_CPP_value=$CPP
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
949 # Report the --help message.
951 if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
955 \`configure' configures this package to adapt to many kinds of systems.
957 Usage: $0 [OPTION]... [VAR=VALUE]...
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE. See below for descriptions of some of the useful variables.
962 Defaults for the options are specified in brackets.
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
978 Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
989 For better control, use the options below.
991 Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016 --target=TARGET configure for building compilers for TARGET [HOST]
1020 if test -n "$ac_init_help"; then
1025 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1027 --disable-dependency-tracking speeds up one-time build
1028 --enable-dependency-tracking do not reject slow dependency extractors
1029 --enable-shared[=PKGS]
1030 build shared libraries [default=yes]
1031 --enable-static[=PKGS]
1032 build static libraries [default=yes]
1033 --enable-fast-install[=PKGS]
1034 optimize for fast installation [default=yes]
1035 --disable-libtool-lock avoid locking (might break parallel builds)
1038 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1039 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1040 --with-includes=DIR site header files for readline, etc in DIR
1041 --with-libraries=DIR site library directories for readline, etc in DIR
1042 --with-configdir=DIR runtime config files in DIR sysconfdir/amanda
1043 --with-indexdir deprecated, use indexdir in amanda.conf
1044 --with-dbdir deprecated, use infofile in amanda.conf
1045 --with-logdir deprecated, use logfile in amanda.conf
1046 --with-suffixes install binaries with version string appended to name
1047 --with-client-only deprecated, use --without-server
1048 --with-server-only deprecated, use --without-client
1049 --without-client do not build client stuff
1050 --without-server do not build server stuff (set --without-restore)
1051 --without-restore do not build amrestore nor amidxtaped
1052 --without-amrecover do not build amrecover
1053 --with-index-server=HOST default amanda index server `uname -n`
1054 --without-force-uid do not force the uid to --with-user
1055 --with-user=USER force execution to USER on client systems required
1056 --with-group=GROUP group allowed to execute setuid-root programs required
1057 --with-owner=USER force ownership of files to USER default == --with-user value
1058 --with-rundump use rundump (setuid-root) to invoke dump
1059 --with-config=CONFIG default configuration DailySet1
1060 --with-tape-server=HOST default restoring tape server is HOST same as --with-index-server
1061 --with-tape-device=ARG restoring tape server HOST's no rewinding tape drive
1062 --with-ftape-rawdevice=ARG raw device on tape server HOST's if using Linux ftape >=3.04d
1063 --with-rew-tape deprecated, use --with-tape-device
1064 --with-norew-tape=ARG deprecated, use --with-tape-device
1065 --with-changer-device=ARG default tape changer device /dev/ch0 if it exists
1066 --with-fqdn use FQDN's to backup multiple networks
1067 --with-broken-fsf only enable if tape fsf calls fail mid-file
1068 --with-gnutar=PROG use PROG as GNU tar executable default: looks for one
1069 --with-qde use quick-and-dirty estimates for gnutar
1070 --with-smbclient=PROG use PROG as Samba's smbclient executable default: looks for one
1071 --with-samba-user was deprecated
1072 --with-gnutar-listdir=DIR gnutar directory lists go in DIR localstatedir/amanda/gnutar-lists
1073 --with-gnutar-listed-incremental was deprecated, use --with-gnutar-listdir
1074 --without-bsd-security do not use BSD rsh/rlogin style security
1075 --without-amandahosts use .rhosts instead of .amandahosts
1076 --with-krb4-security=DIR Location of Kerberos software /usr/kerberos /usr/cygnus /usr /opt/kerberos
1077 --with-server-principal=ARG server host principal "amanda"
1078 --with-server-instance=ARG server host instance "amanda"
1079 --with-server-keyfile=ARG server host key file "/.amanda"
1080 --with-client-principal=ARG client host principal "rcmd"
1081 --with-client-instance=ARG client host instance HOSTNAME_INSTANCE
1082 --with-client-keyfile=ARG client host key file KEYFILE
1083 --with-ticket-lifetime=ARG ticket lifetime 128
1084 --with-portrange=low,high bind unreserved TCP server sockets to ports within this range unlimited
1085 --with-tcpportrange=low,high bind unreserved TCP server sockets to ports within this range unlimited
1086 --with-udpportrange=low,high bind reserved UDP server sockets to ports within this range unlimited
1087 --with-maxtapeblocksize=kb Maximum size of a tape block
1088 --with-db={text,db,dbm,gdbm,ndbm} use the selected database format text
1089 --with-mmap force use of mmap instead of shared memory support
1090 --with-buffered-dump buffer the dumping sockets on the server for speed
1091 --with-assertions compile assertions into code
1092 --with-tmpdir=/temp/dir area Amanda can use for temp files /tmp/amanda
1093 --without-debugging=/debug/dir do not record runtime debugging information in specified directory --with-tmpdir
1094 --with-debug-days=NN number of days to keep debugging files default=4
1095 --with-testing=suffix use alternate service names
1096 --with-dump-honor-nodump if dump supports -h, use it for level0s too
1097 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1098 --with-pic try to use only PIC/non-PIC objects [default=use
1101 include additional configurations [automatic]
1103 Some influential environment variables:
1104 CC C compiler command
1105 CFLAGS C compiler flags
1106 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1107 nonstandard directory <lib dir>
1108 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1109 headers in a nonstandard directory <include dir>
1111 CXX C++ compiler command
1112 CXXFLAGS C++ compiler flags
1113 CXXCPP C++ preprocessor
1114 F77 Fortran 77 compiler command
1115 FFLAGS Fortran 77 compiler flags
1117 Use these variables to override the choices made by `configure' or to help
1118 it to find libraries and programs with nonstandard names/locations.
1123 if test "$ac_init_help" = "recursive"; then
1124 # If there are subdirs, report their specific --help.
1126 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1127 test -d $ac_dir || continue
1130 if test "$ac_dir" != .; then
1131 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1132 # A "../" for each directory in $ac_dir_suffix.
1133 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1135 ac_dir_suffix= ac_top_builddir=
1139 .) # No --srcdir option. We are building in place.
1141 if test -z "$ac_top_builddir"; then
1144 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1146 [\\/]* | ?:[\\/]* ) # Absolute path.
1147 ac_srcdir=$srcdir$ac_dir_suffix;
1148 ac_top_srcdir=$srcdir ;;
1150 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1151 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1154 # Do not use `cd foo && pwd` to compute absolute paths, because
1155 # the directories may not exist.
1157 .) ac_abs_builddir="$ac_dir";;
1160 .) ac_abs_builddir=`pwd`;;
1161 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1162 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1165 case $ac_abs_builddir in
1166 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1168 case ${ac_top_builddir}. in
1169 .) ac_abs_top_builddir=$ac_abs_builddir;;
1170 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1171 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1174 case $ac_abs_builddir in
1175 .) ac_abs_srcdir=$ac_srcdir;;
1178 .) ac_abs_srcdir=$ac_abs_builddir;;
1179 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1180 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1183 case $ac_abs_builddir in
1184 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1186 case $ac_top_srcdir in
1187 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1188 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1189 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1194 # Check for guested configure; otherwise get Cygnus style configure.
1195 if test -f $ac_srcdir/configure.gnu; then
1197 $SHELL $ac_srcdir/configure.gnu --help=recursive
1198 elif test -f $ac_srcdir/configure; then
1200 $SHELL $ac_srcdir/configure --help=recursive
1201 elif test -f $ac_srcdir/configure.ac ||
1202 test -f $ac_srcdir/configure.in; then
1204 $ac_configure --help
1206 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1212 test -n "$ac_init_help" && exit 0
1213 if $ac_init_version; then
1216 Copyright (C) 2003 Free Software Foundation, Inc.
1217 This configure script is free software; the Free Software Foundation
1218 gives unlimited permission to copy, distribute and modify it.
1224 This file contains any messages produced by compilers while
1225 running configure, to aid debugging if configure makes a mistake.
1227 It was created by $as_me, which was
1228 generated by GNU Autoconf 2.59. Invocation command line was
1239 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1240 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1241 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1242 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1243 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1245 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1246 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1248 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1249 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1250 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1251 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1252 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1253 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1254 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1262 test -z "$as_dir" && as_dir=.
1263 echo "PATH: $as_dir"
1278 # Keep a trace of the command line.
1279 # Strip out --no-create and --no-recursion so they do not pile up.
1280 # Strip out --silent because we don't want to record it for future runs.
1281 # Also quote any args containing shell meta-characters.
1282 # Make two passes to allow for proper duplicate-argument suppression.
1287 ac_must_keep_next=false
1293 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1294 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1295 | -silent | --silent | --silen | --sile | --sil)
1297 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1298 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1301 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1303 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1304 if test $ac_must_keep_next = true; then
1305 ac_must_keep_next=false # Got value, back to normal.
1308 *=* | --config-cache | -C | -disable-* | --disable-* \
1309 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1310 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1311 | -with-* | --with-* | -without-* | --without-* | --x)
1312 case "$ac_configure_args0 " in
1313 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1316 -* ) ac_must_keep_next=true ;;
1319 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1320 # Get rid of the leading space.
1326 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1327 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1329 # When interrupted or exit'd, cleanup temporary files, and complete
1330 # config.log. We remove comments because anyway the quotes in there
1331 # would cause problems or look ugly.
1332 # WARNING: Be sure not to use single quotes in there, as some shells,
1333 # such as our DU 5.0 friend, will then `close' the trap.
1334 trap 'exit_status=$?
1335 # Save into config.log some information that might help in debugging.
1340 ## ---------------- ##
1341 ## Cache variables. ##
1342 ## ---------------- ##
1345 # The following way of writing the cache mishandles newlines in values,
1348 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1351 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1352 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1356 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1363 ## ----------------- ##
1364 ## Output variables. ##
1365 ## ----------------- ##
1368 for ac_var in $ac_subst_vars
1370 eval ac_val=$`echo $ac_var`
1371 echo "$ac_var='"'"'$ac_val'"'"'"
1375 if test -n "$ac_subst_files"; then
1382 for ac_var in $ac_subst_files
1384 eval ac_val=$`echo $ac_var`
1385 echo "$ac_var='"'"'$ac_val'"'"'"
1390 if test -s confdefs.h; then
1397 sed "/^$/d" confdefs.h | sort
1400 test "$ac_signal" != 0 &&
1401 echo "$as_me: caught signal $ac_signal"
1402 echo "$as_me: exit $exit_status"
1404 rm -f core *.core &&
1405 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1408 for ac_signal in 1 2 13 15; do
1409 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1413 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1414 rm -rf conftest* confdefs.h
1415 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1418 # Predefined preprocessor variables.
1420 cat >>confdefs.h <<_ACEOF
1421 #define PACKAGE_NAME "$PACKAGE_NAME"
1425 cat >>confdefs.h <<_ACEOF
1426 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1430 cat >>confdefs.h <<_ACEOF
1431 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1435 cat >>confdefs.h <<_ACEOF
1436 #define PACKAGE_STRING "$PACKAGE_STRING"
1440 cat >>confdefs.h <<_ACEOF
1441 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1445 # Let the site file select an alternate cache file if it wants to.
1446 # Prefer explicitly selected file to automatically selected ones.
1447 if test -z "$CONFIG_SITE"; then
1448 if test "x$prefix" != xNONE; then
1449 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1451 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1454 for ac_site_file in $CONFIG_SITE; do
1455 if test -r "$ac_site_file"; then
1456 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1457 echo "$as_me: loading site script $ac_site_file" >&6;}
1458 sed 's/^/| /' "$ac_site_file" >&5
1463 if test -r "$cache_file"; then
1464 # Some versions of bash will fail to source /dev/null (special
1465 # files actually), so we avoid doing that.
1466 if test -f "$cache_file"; then
1467 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1468 echo "$as_me: loading cache $cache_file" >&6;}
1470 [\\/]* | ?:[\\/]* ) . $cache_file;;
1471 *) . ./$cache_file;;
1475 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1476 echo "$as_me: creating cache $cache_file" >&6;}
1480 # Check that the precious variables saved in the cache have kept the same
1482 ac_cache_corrupted=false
1483 for ac_var in `(set) 2>&1 |
1484 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1485 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1486 eval ac_new_set=\$ac_env_${ac_var}_set
1487 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1488 eval ac_new_val="\$ac_env_${ac_var}_value"
1489 case $ac_old_set,$ac_new_set in
1491 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1492 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1493 ac_cache_corrupted=: ;;
1495 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1496 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1497 ac_cache_corrupted=: ;;
1500 if test "x$ac_old_val" != "x$ac_new_val"; then
1501 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1502 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1503 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1504 echo "$as_me: former value: $ac_old_val" >&2;}
1505 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1506 echo "$as_me: current value: $ac_new_val" >&2;}
1507 ac_cache_corrupted=:
1510 # Pass precious variables to config.status.
1511 if test "$ac_new_set" = set; then
1513 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1514 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1515 *) ac_arg=$ac_var=$ac_new_val ;;
1517 case " $ac_configure_args " in
1518 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1519 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1523 if $ac_cache_corrupted; then
1524 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1525 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1526 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1527 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1528 { (exit 1); exit 1; }; }
1532 ac_cpp='$CPP $CPPFLAGS'
1533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1557 for ac_dir in config $srcdir/config; do
1558 if test -f $ac_dir/install-sh; then
1560 ac_install_sh="$ac_aux_dir/install-sh -c"
1562 elif test -f $ac_dir/install.sh; then
1564 ac_install_sh="$ac_aux_dir/install.sh -c"
1566 elif test -f $ac_dir/shtool; then
1568 ac_install_sh="$ac_aux_dir/shtool install -c"
1572 if test -z "$ac_aux_dir"; then
1573 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1574 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1575 { (exit 1); exit 1; }; }
1577 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1578 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1579 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1581 # Make sure we can run config.sub.
1582 $ac_config_sub sun4 >/dev/null 2>&1 ||
1583 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1584 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1585 { (exit 1); exit 1; }; }
1587 echo "$as_me:$LINENO: checking build system type" >&5
1588 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1589 if test "${ac_cv_build+set}" = set; then
1590 echo $ECHO_N "(cached) $ECHO_C" >&6
1592 ac_cv_build_alias=$build_alias
1593 test -z "$ac_cv_build_alias" &&
1594 ac_cv_build_alias=`$ac_config_guess`
1595 test -z "$ac_cv_build_alias" &&
1596 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1597 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1598 { (exit 1); exit 1; }; }
1599 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1600 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1601 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1602 { (exit 1); exit 1; }; }
1605 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1606 echo "${ECHO_T}$ac_cv_build" >&6
1608 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1609 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1610 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1613 echo "$as_me:$LINENO: checking host system type" >&5
1614 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1615 if test "${ac_cv_host+set}" = set; then
1616 echo $ECHO_N "(cached) $ECHO_C" >&6
1618 ac_cv_host_alias=$host_alias
1619 test -z "$ac_cv_host_alias" &&
1620 ac_cv_host_alias=$ac_cv_build_alias
1621 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1622 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1623 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1624 { (exit 1); exit 1; }; }
1627 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1628 echo "${ECHO_T}$ac_cv_host" >&6
1630 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1631 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1632 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1635 echo "$as_me:$LINENO: checking target system type" >&5
1636 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1637 if test "${ac_cv_target+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 ac_cv_target_alias=$target_alias
1641 test "x$ac_cv_target_alias" = "x" &&
1642 ac_cv_target_alias=$ac_cv_host_alias
1643 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1644 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1645 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1646 { (exit 1); exit 1; }; }
1649 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1650 echo "${ECHO_T}$ac_cv_target" >&6
1651 target=$ac_cv_target
1652 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1653 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1654 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1657 # The aliases save the names the user supplied, while $host etc.
1658 # will get canonicalized.
1659 test -n "$target_alias" &&
1660 test "$program_prefix$program_suffix$program_transform_name" = \
1662 program_prefix=${target_alias}-
1665 CONFIGURE_COMMAND="'$0'"
1667 CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$arg'"
1670 cat >>confdefs.h <<_ACEOF
1671 #define CONFIGURE_COMMAND "$CONFIGURE_COMMAND"
1676 am__api_version="1.9"
1677 # Find a good install program. We prefer a C program (faster),
1678 # so one script is as good as another. But avoid the broken or
1679 # incompatible versions:
1680 # SysV /etc/install, /usr/sbin/install
1681 # SunOS /usr/etc/install
1682 # IRIX /sbin/install
1684 # AmigaOS /C/install, which installs bootblocks on floppy discs
1685 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1686 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1687 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1688 # OS/2's system install, which has a completely different semantic
1689 # ./install, which can be erroneously created by make from ./install.sh.
1690 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1691 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1692 if test -z "$INSTALL"; then
1693 if test "${ac_cv_path_install+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 test -z "$as_dir" && as_dir=.
1701 # Account for people who put trailing slashes in PATH elements.
1703 ./ | .// | /cC/* | \
1704 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1705 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1708 # OSF1 and SCO ODT 3.0 have their own names for install.
1709 # Don't use installbsd from OSF since it installs stuff as root
1711 for ac_prog in ginstall scoinst install; do
1712 for ac_exec_ext in '' $ac_executable_extensions; do
1713 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1714 if test $ac_prog = install &&
1715 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1716 # AIX install. It has an incompatible calling convention.
1718 elif test $ac_prog = install &&
1719 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1720 # program-specific install script used by HP pwplus--don't use.
1723 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1735 if test "${ac_cv_path_install+set}" = set; then
1736 INSTALL=$ac_cv_path_install
1738 # As a last resort, use the slow shell script. We don't cache a
1739 # path for INSTALL within a source directory, because that will
1740 # break other packages using the cache if that directory is
1741 # removed, or if the path is relative.
1742 INSTALL=$ac_install_sh
1745 echo "$as_me:$LINENO: result: $INSTALL" >&5
1746 echo "${ECHO_T}$INSTALL" >&6
1748 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1749 # It thinks the first close brace ends the variable substitution.
1750 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1752 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1754 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1756 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1757 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1760 echo timestamp > conftest.file
1761 # Do `set' in a subshell so we don't clobber the current shell's
1762 # arguments. Must try -L first in case configure is actually a
1763 # symlink; some systems play weird games with the mod time of symlinks
1764 # (eg FreeBSD returns the mod time of the symlink's containing
1767 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1768 if test "$*" = "X"; then
1770 set X `ls -t $srcdir/configure conftest.file`
1773 if test "$*" != "X $srcdir/configure conftest.file" \
1774 && test "$*" != "X conftest.file $srcdir/configure"; then
1776 # If neither matched, then we have a broken ls. This can happen
1777 # if, for instance, CONFIG_SHELL is bash and it inherits a
1778 # broken ls alias from the environment. This has actually
1779 # happened. Such a system could not be considered "sane".
1780 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1781 alias in your environment" >&5
1782 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1783 alias in your environment" >&2;}
1784 { (exit 1); exit 1; }; }
1787 test "$2" = conftest.file
1793 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1794 Check your system clock" >&5
1795 echo "$as_me: error: newly created file is older than distributed files!
1796 Check your system clock" >&2;}
1797 { (exit 1); exit 1; }; }
1799 echo "$as_me:$LINENO: result: yes" >&5
1800 echo "${ECHO_T}yes" >&6
1801 test "$program_prefix" != NONE &&
1802 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1803 # Use a double $ so make ignores it.
1804 test "$program_suffix" != NONE &&
1805 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1806 # Double any \ or $. echo might interpret backslashes.
1807 # By default was `s,x,x', remove it if useless.
1808 cat <<\_ACEOF >conftest.sed
1809 s/[\\$]/&&/g;s/;s,x,x,$//
1811 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1814 # expand $ac_aux_dir to an absolute path
1815 am_aux_dir=`cd $ac_aux_dir && pwd`
1817 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1818 # Use eval to expand $SHELL
1819 if eval "$MISSING --run true"; then
1820 am_missing_run="$MISSING --run "
1823 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1824 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1827 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1828 # We used to keeping the `.' as first argument, in order to
1829 # allow $(mkdir_p) to be used without argument. As in
1830 # $(mkdir_p) $(somedir)
1831 # where $(somedir) is conditionally defined. However this is wrong
1833 # 1. if the package is installed by a user who cannot write `.'
1834 # make install will fail,
1835 # 2. the above comment should most certainly read
1836 # $(mkdir_p) $(DESTDIR)$(somedir)
1837 # so it does not work when $(somedir) is undefined and
1838 # $(DESTDIR) is not.
1839 # To support the latter case, we have to write
1840 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1841 # so the `.' trick is pointless.
1842 mkdir_p='mkdir -p --'
1844 # On NextStep and OpenStep, the `mkdir' command does not
1845 # recognize any option. It will interpret all options as
1846 # directories to create, and then abort because `.' already
1848 for d in ./-p ./--version;
1850 test -d $d && rmdir $d
1852 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1853 if test -f "$ac_aux_dir/mkinstalldirs"; then
1854 mkdir_p='$(mkinstalldirs)'
1856 mkdir_p='$(install_sh) -d'
1860 for ac_prog in gawk mawk nawk awk
1862 # Extract the first word of "$ac_prog", so it can be a program name with args.
1863 set dummy $ac_prog; ac_word=$2
1864 echo "$as_me:$LINENO: checking for $ac_word" >&5
1865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1866 if test "${ac_cv_prog_AWK+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 if test -n "$AWK"; then
1870 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876 test -z "$as_dir" && as_dir=.
1877 for ac_exec_ext in '' $ac_executable_extensions; do
1878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879 ac_cv_prog_AWK="$ac_prog"
1880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1889 if test -n "$AWK"; then
1890 echo "$as_me:$LINENO: result: $AWK" >&5
1891 echo "${ECHO_T}$AWK" >&6
1893 echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6
1897 test -n "$AWK" && break
1900 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1901 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1902 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1903 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 cat >conftest.make <<\_ACEOF
1908 @echo 'ac_maketemp="$(MAKE)"'
1910 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1911 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1912 if test -n "$ac_maketemp"; then
1913 eval ac_cv_prog_make_${ac_make}_set=yes
1915 eval ac_cv_prog_make_${ac_make}_set=no
1919 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1920 echo "$as_me:$LINENO: result: yes" >&5
1921 echo "${ECHO_T}yes" >&6
1924 echo "$as_me:$LINENO: result: no" >&5
1925 echo "${ECHO_T}no" >&6
1926 SET_MAKE="MAKE=${MAKE-make}"
1929 rm -rf .tst 2>/dev/null
1930 mkdir .tst 2>/dev/null
1931 if test -d .tst; then
1936 rmdir .tst 2>/dev/null
1938 # test to see if srcdir already configured
1939 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1940 test -f $srcdir/config.status; then
1941 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1942 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1943 { (exit 1); exit 1; }; }
1946 # test whether we have cygpath
1947 if test -z "$CYGPATH_W"; then
1948 if (cygpath --version) >/dev/null 2>/dev/null; then
1949 CYGPATH_W='cygpath -w'
1956 # Define the identity of the package.
1961 cat >>confdefs.h <<_ACEOF
1962 #define PACKAGE "$PACKAGE"
1966 cat >>confdefs.h <<_ACEOF
1967 #define VERSION "$VERSION"
1970 # Some tools Automake needs.
1972 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1975 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1978 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1981 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1984 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1986 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1988 # Installed binaries are usually stripped using `strip' when the user
1989 # run `make install-strip'. However `strip' might not be the right
1990 # tool to use in cross-compilation environments, therefore Automake
1991 # will honor the `STRIP' environment variable to overrule this program.
1992 if test "$cross_compiling" != no; then
1993 if test -n "$ac_tool_prefix"; then
1994 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1995 set dummy ${ac_tool_prefix}strip; ac_word=$2
1996 echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998 if test "${ac_cv_prog_STRIP+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2001 if test -n "$STRIP"; then
2002 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 test -z "$as_dir" && as_dir=.
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020 STRIP=$ac_cv_prog_STRIP
2021 if test -n "$STRIP"; then
2022 echo "$as_me:$LINENO: result: $STRIP" >&5
2023 echo "${ECHO_T}$STRIP" >&6
2025 echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2030 if test -z "$ac_cv_prog_STRIP"; then
2032 # Extract the first word of "strip", so it can be a program name with args.
2033 set dummy strip; ac_word=$2
2034 echo "$as_me:$LINENO: checking for $ac_word" >&5
2035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2036 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2039 if test -n "$ac_ct_STRIP"; then
2040 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 test -z "$as_dir" && as_dir=.
2047 for ac_exec_ext in '' $ac_executable_extensions; do
2048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2049 ac_cv_prog_ac_ct_STRIP="strip"
2050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2059 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2060 if test -n "$ac_ct_STRIP"; then
2061 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2062 echo "${ECHO_T}$ac_ct_STRIP" >&6
2064 echo "$as_me:$LINENO: result: no" >&5
2065 echo "${ECHO_T}no" >&6
2070 STRIP="$ac_cv_prog_STRIP"
2074 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2076 # We need awk for the "check" target. The system "awk" is bad on
2078 # Always define AMTAR for backward compatibility.
2080 AMTAR=${AMTAR-"${am_missing_run}tar"}
2082 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2088 ac_config_headers="$ac_config_headers config/config.h"
2092 if test -f "$srcdir/SNAPSHOT"; then
2093 cat < "$srcdir/SNAPSHOT"
2095 snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
2097 test -z "$snapdate" || VERSION="$VERSION-$snapdate"
2098 SNAPSHOT_STAMP=SNAPSHOT
2104 if test -f config.local; then
2105 echo "running local script ./config.local"
2110 VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
2111 VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
2112 VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
2113 VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
2116 VERSION_SUFFIX="$VERSION"
2123 SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/ucb:/usr/bsd:/etc:/usr/etc"
2125 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2126 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
2127 eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin"
2129 SYSLOCPATH="$SYSPATH:$LOCPATH"
2130 LOCSYSPATH="$LOCPATH:$SYSPATH"
2133 # Check whether --with-includes or --without-includes was given.
2134 if test "${with_includes+set}" = set; then
2135 withval="$with_includes"
2138 "" | y | ye | yes | n | no)
2139 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-includes option." >&5
2140 echo "$as_me: error: *** You must supply an argument to the --with-includes option." >&2;}
2141 { (exit 1); exit 1; }; }
2144 INCLUDE_DIRS="$withval"
2148 if test "$INCLUDE_DIRS"; then
2149 for dir in $INCLUDE_DIRS; do
2150 if test -d "$dir"; then
2151 AMANDA_CPPFLAGS="$AMANDA_CPPFLAGS -I$dir"
2153 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2154 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2160 # Check whether --with-libraries or --without-libraries was given.
2161 if test "${with_libraries+set}" = set; then
2162 withval="$with_libraries"
2165 "" | y | ye | yes | n | no)
2166 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-libraries option." >&5
2167 echo "$as_me: error: *** You must supply an argument to the --with-libraries option." >&2;}
2168 { (exit 1); exit 1; }; }
2171 LIBRARY_DIRS="$withval"
2175 if test "$LIBRARY_DIRS"; then
2176 for dir in $LIBRARY_DIRS; do
2177 if test -d "$dir"; then
2180 AMANDA_LDFLAGS="$AMANDA_LDFLAGS -R$dir"
2183 AMANDA_LDFLAGS="$AMANDA_LDFLAGS -L$dir"
2185 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2186 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2192 # Check whether --with-configdir or --without-configdir was given.
2193 if test "${with_configdir+set}" = set; then
2194 withval="$with_configdir"
2197 "" | y | ye | yes | n | no)
2198 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-configdir option." >&5
2199 echo "$as_me: error: *** You must supply an argument to the --with-configdir option." >&2;}
2200 { (exit 1); exit 1; }; }
2202 *) CONFIG_DIR="$withval"
2207 : ${CONFIG_DIR=$sysconfdir/amanda}
2211 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2212 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
2213 eval echo "$CONFIG_DIR"
2216 cat >>confdefs.h <<_ACEOF
2217 #define CONFIG_DIR "$CONFIG_DIR"
2223 # Check whether --with-indexdir or --without-indexdir was given.
2224 if test "${with_indexdir+set}" = set; then
2225 withval="$with_indexdir"
2226 { { echo "$as_me:$LINENO: error: *** --with-indexdir is deprecated, use indexdir in amanda.conf instead." >&5
2227 echo "$as_me: error: *** --with-indexdir is deprecated, use indexdir in amanda.conf instead." >&2;}
2228 { (exit 1); exit 1; }; }
2233 # Check whether --with-dbdir or --without-dbdir was given.
2234 if test "${with_dbdir+set}" = set; then
2235 withval="$with_dbdir"
2236 { { echo "$as_me:$LINENO: error: *** --with-dbdir is deprecated, use infofile in amanda.conf instead." >&5
2237 echo "$as_me: error: *** --with-dbdir is deprecated, use infofile in amanda.conf instead." >&2;}
2238 { (exit 1); exit 1; }; }
2243 # Check whether --with-logdir or --without-logdir was given.
2244 if test "${with_logdir+set}" = set; then
2245 withval="$with_logdir"
2246 { { echo "$as_me:$LINENO: error: *** --with-logdir is deprecated, use logdir in amanda.conf instead." >&5
2247 echo "$as_me: error: *** --with-logdir is deprecated, use logdir in amanda.conf instead." >&2;}
2248 { (exit 1); exit 1; }; }
2253 # Check whether --with-suffixes or --without-suffixes was given.
2254 if test "${with_suffixes+set}" = set; then
2255 withval="$with_suffixes"
2256 USE_VERSION_SUFFIXES=$withval
2258 : ${USE_VERSION_SUFFIXES=no}
2261 case "$USE_VERSION_SUFFIXES" in
2264 cat >>confdefs.h <<\_ACEOF
2265 #define USE_VERSION_SUFFIXES 1
2269 program_suffix="-$VERSION"
2270 # This is from the output of configure.in.
2271 if test "$program_transform_name" = s,x,x,; then
2272 program_transform_name=
2274 # Double any \ or $. echo might interpret backslashes.
2275 cat <<\EOF_SED > conftestsed
2276 s,\\,\\\\,g; s,\$,$$,g
2278 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2281 test "$program_prefix" != NONE &&
2282 program_transform_name="s,^,${program_prefix},; $program_transform_name"
2283 # Use a double $ so make ignores it.
2284 test "$program_suffix" != NONE &&
2285 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
2287 # sed with no file args requires a program.
2288 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
2289 # Remove empty command
2290 cat <<\EOF_SED > conftestsed
2291 s,\;\;,\;,g; s,\; \$,,g; s,\;$,,g
2293 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2296 n | no) USE_VERSION_SUFFIXES=no
2298 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-suffixes option." >&5
2299 echo "$as_me: error: *** You must not supply an argument to --with-suffixes option." >&2;}
2300 { (exit 1); exit 1; }; }
2307 CLIENT_SCRIPTS_OPT=amhpfixdevs
2310 CLIENT_SCRIPTS_OPT=amsinixfixdevs
2320 # Check whether --with-client-only or --without-client-only was given.
2321 if test "${with_client_only+set}" = set; then
2322 withval="$with_client_only"
2323 { { echo "$as_me:$LINENO: error: *** --with-client-only is deprecated, use --without-server instead." >&5
2324 echo "$as_me: error: *** --with-client-only is deprecated, use --without-server instead." >&2;}
2325 { (exit 1); exit 1; }; }
2329 # Check whether --with-server-only or --without-server-only was given.
2330 if test "${with_server_only+set}" = set; then
2331 withval="$with_server_only"
2332 { { echo "$as_me:$LINENO: error: *** --with-server-only is deprecated, use --without-client instead." >&5
2333 echo "$as_me: error: *** --with-server-only is deprecated, use --without-client instead." >&2;}
2334 { (exit 1); exit 1; }; }
2339 # Check whether --with-client or --without-client was given.
2340 if test "${with_client+set}" = set; then
2341 withval="$with_client"
2344 y | ye | yes) NO_CLIENT_MODE=false;;
2345 n | no) NO_CLIENT_MODE=true;;
2347 { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-client option." >&5
2348 echo "$as_me: error: *** You must not supply an argument to --with-client option." >&2;}
2349 { (exit 1); exit 1; }; }
2357 # Check whether --with-server or --without-server was given.
2358 if test "${with_server+set}" = set; then
2359 withval="$with_server"
2362 y | ye | yes) NO_SERVER_MODE=false ;;
2363 n | no) NO_SERVER_MODE=true;NO_RESTORE_MODE=true;;
2365 { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-server option. Maybe you meant --with-index-server=$withval" >&5
2366 echo "$as_me: error: *** You must not supply an argument to --with-server option. Maybe you meant --with-index-server=$withval" >&2;}
2367 { (exit 1); exit 1; }; }
2373 if test "x${NO_SERVER_MODE+set}" != xset ; then
2374 NO_SERVER_MODE=false
2378 # Check whether --with-restore or --without-restore was given.
2379 if test "${with_restore+set}" = set; then
2380 withval="$with_restore"
2383 y | ye | yes) NO_RESTORE_MODE=false;;
2384 n | no) NO_RESTORE_MODE=true;;
2386 { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-restore option." >&5
2387 echo "$as_me: error: *** You must not supply an argument to --with-restore option." >&2;}
2388 { (exit 1); exit 1; }; }
2394 if test "x${NO_RESTORE_MODE+set}" != xset ; then
2395 NO_RESTORE_MODE=${NO_SERVER_MODE-false}
2398 if ${NO_SERVER_MODE-false}; then
2399 if ${NO_RESTORE_MODE-false}; then
2402 { { echo "$as_me:$LINENO: error: *** --without-server requires --without-restore" >&5
2403 echo "$as_me: error: *** --without-server requires --without-restore" >&2;}
2404 { (exit 1); exit 1; }; }
2409 # Check whether --with-amrecover or --without-amrecover was given.
2410 if test "${with_amrecover+set}" = set; then
2411 withval="$with_amrecover"
2415 if ${NO_CLIENT_MODE-false}; then
2416 { { echo "$as_me:$LINENO: error: *** --without-client and --with-amrecover are incompatible" >&5
2417 echo "$as_me: error: *** --without-client and --with-amrecover are incompatible" >&2;}
2418 { (exit 1); exit 1; }; }
2420 NO_RECOVER_MODE=false;;
2421 n | no) NO_RECOVER_MODE=true;;
2423 { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-amrecover option." >&5
2424 echo "$as_me: error: *** You must not supply an argument to --with-amrecover option." >&2;}
2425 { (exit 1); exit 1; }; }
2433 # Check whether --with-index-server or --without-index-server was given.
2434 if test "${with_index_server+set}" = set; then
2435 withval="$with_index_server"
2438 "" | y | ye | yes | n | no)
2439 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-index-server option." >&5
2440 echo "$as_me: error: *** You must supply an argument to the --with-index-server option." >&2;}
2441 { (exit 1); exit 1; }; }
2443 *) DEFAULT_SERVER="$withval"
2448 : ${DEFAULT_SERVER=`uname -n`}
2452 cat >>confdefs.h <<_ACEOF
2453 #define DEFAULT_SERVER "$DEFAULT_SERVER"
2459 # Check whether --with-force-uid or --without-force-uid was given.
2460 if test "${with_force_uid+set}" = set; then
2461 withval="$with_force_uid"
2462 FORCE_USERID="$withval"
2464 : ${FORCE_USERID=yes}
2467 case "$FORCE_USERID" in
2469 cat >>confdefs.h <<\_ACEOF
2470 #define FORCE_USERID 1
2476 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-force-uid option." >&5
2477 echo "$as_me: error: *** You must not supply an argument to --with-force-uid option." >&2;}
2478 { (exit 1); exit 1; }; }
2482 # Check whether --with-user or --without-user was given.
2483 if test "${with_user+set}" = set; then
2484 withval="$with_user"
2487 "" | y | ye | yes | n | no)
2488 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-user option." >&5
2489 echo "$as_me: error: *** You must supply an argument to the --with-user option." >&2;}
2490 { (exit 1); exit 1; }; }
2492 *) CLIENT_LOGIN="$withval"
2498 if test "x${CLIENT_LOGIN+set}" != xset; then
2499 { { echo "$as_me:$LINENO: error: *** --with-user=USER is missing" >&5
2500 echo "$as_me: error: *** --with-user=USER is missing" >&2;}
2501 { (exit 1); exit 1; }; }
2504 cat >>confdefs.h <<_ACEOF
2505 #define CLIENT_LOGIN "$CLIENT_LOGIN"
2511 # Check whether --with-group or --without-group was given.
2512 if test "${with_group+set}" = set; then
2513 withval="$with_group"
2516 "" | y | ye | yes | n | no)
2517 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-group option." >&5
2518 echo "$as_me: error: *** You must supply an argument to the --with-group option." >&2;}
2519 { (exit 1); exit 1; }; }
2521 *) SETUID_GROUP="$withval"
2527 if test "x${SETUID_GROUP+set}" != xset; then
2528 { { echo "$as_me:$LINENO: error: *** --with-group=GROUP is missing" >&5
2529 echo "$as_me: error: *** --with-group=GROUP is missing" >&2;}
2530 { (exit 1); exit 1; }; }
2535 # Check whether --with-owner or --without-owner was given.
2536 if test "${with_owner+set}" = set; then
2537 withval="$with_owner"
2540 "" | y | ye | yes | n | no)
2541 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-owner option." >&5
2542 echo "$as_me: error: *** You must supply an argument to the --with-owner option." >&2;}
2543 { (exit 1); exit 1; }; }
2545 *) BINARY_OWNER="$withval"
2551 if test "x${BINARY_OWNER+set}" != xset ; then
2552 BINARY_OWNER=$CLIENT_LOGIN
2555 cat >>confdefs.h <<_ACEOF
2556 #define BINARY_OWNER "$BINARY_OWNER"
2562 # Check whether --with-rundump or --without-rundump was given.
2563 if test "${with_rundump+set}" = set; then
2564 withval="$with_rundump"
2567 n | no | y | ye | yes) FORCE_USE_RUNDUMP="$withval";;
2568 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-rundump option." >&5
2569 echo "$as_me: error: *** You must not supply an argument to --with-rundump option." >&2;}
2570 { (exit 1); exit 1; }; };;
2577 # Check whether --with-config or --without-config was given.
2578 if test "${with_config+set}" = set; then
2579 withval="$with_config"
2582 "" | y | ye | yes | n | no)
2583 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-config option." >&5
2584 echo "$as_me: error: *** You must supply an argument to the --with-config option." >&2;}
2585 { (exit 1); exit 1; }; }
2587 *) DEFAULT_CONFIG="$withval"
2592 : ${DEFAULT_CONFIG=DailySet1}
2596 cat >>confdefs.h <<_ACEOF
2597 #define DEFAULT_CONFIG "$DEFAULT_CONFIG"
2603 # Check whether --with-tape-server or --without-tape-server was given.
2604 if test "${with_tape_server+set}" = set; then
2605 withval="$with_tape_server"
2608 "" | y | ye | yes | n | no)
2609 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-server option." >&5
2610 echo "$as_me: error: *** You must supply an argument to the --with-tape-server option." >&2;}
2611 { (exit 1); exit 1; }; }
2613 *) DEFAULT_TAPE_SERVER="$withval"
2618 : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
2622 cat >>confdefs.h <<_ACEOF
2623 #define DEFAULT_TAPE_SERVER "$DEFAULT_TAPE_SERVER"
2629 # Check whether --with-tape-device or --without-tape-device was given.
2630 if test "${with_tape_device+set}" = set; then
2631 withval="$with_tape_device"
2634 "" | y | ye | yes | n | no)
2635 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-device option." >&5
2636 echo "$as_me: error: *** You must supply an argument to the --with-tape-device option." >&2;}
2637 { (exit 1); exit 1; }; }
2639 *) DEFAULT_TAPE_DEVICE="$withval"
2645 if test -z "$DEFAULT_TAPE_DEVICE"; then
2646 echo "$as_me:$LINENO: checking for non-rewinding tape device" >&5
2647 echo $ECHO_N "checking for non-rewinding tape device... $ECHO_C" >&6
2649 nr_tape_dev=/dev/null
2650 if test -d /dev/rmt; then
2653 for num in 9 8 7 6 5 4 3 2 1 0; do
2655 ntd=/dev/rmt/${num}bn
2656 if test -r $td -a -r $ntd; then
2662 for num in 9 8 7 6 5 4 3 2 1 0; do
2665 if test -r $td -a -r $ntd; then
2671 DEFAULT_TAPE_DEVICE=$nr_tape_dev
2672 echo "$as_me:$LINENO: result: $DEFAULT_TAPE_DEVICE" >&5
2673 echo "${ECHO_T}$DEFAULT_TAPE_DEVICE" >&6
2679 if test -z "$DEFAULT_TAPE_DEVICE"; then
2680 DEFAULT_TAPE_DEVICE=/dev/null
2684 cat >>confdefs.h <<_ACEOF
2685 #define DEFAULT_TAPE_DEVICE "$DEFAULT_TAPE_DEVICE"
2691 # Check whether --with-ftape-raw-device or --without-ftape-raw-device was given.
2692 if test "${with_ftape_raw_device+set}" = set; then
2693 withval="$with_ftape_raw_device"
2696 "" | y | ye | yes | n | no)
2697 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-ftape-rawdevice option." >&5
2698 echo "$as_me: error: *** You must supply an argument to the --with-ftape-rawdevice option." >&2;}
2699 { (exit 1); exit 1; }; }
2701 *) DEFAULT_RAW_TAPE_DEVICE="$withval"
2707 if test -z "$DEFAULT_RAW_TAPE_DEVICE"; then
2708 echo "$as_me:$LINENO: checking for raw ftape device" >&5
2709 echo $ECHO_N "checking for raw ftape device... $ECHO_C" >&6
2710 raw_tape_dev=/dev/null
2711 for num in 3 2 1 0 ; do
2713 if test -r $td; then
2717 DEFAULT_RAW_TAPE_DEVICE=$raw_tape_dev
2718 echo "$as_me:$LINENO: result: $DEFAULT_RAW_TAPE_DEVICE" >&5
2719 echo "${ECHO_T}$DEFAULT_RAW_TAPE_DEVICE" >&6
2725 if test -z "$DEFAULT_RAW_TAPE_DEVICE"; then
2726 DEFAULT_RAW_TAPE_DEVICE=/dev/null
2730 cat >>confdefs.h <<_ACEOF
2731 #define DEFAULT_RAW_TAPE_DEVICE "$DEFAULT_RAW_TAPE_DEVICE"
2737 # Check whether --with-rew-tape or --without-rew-tape was given.
2738 if test "${with_rew_tape+set}" = set; then
2739 withval="$with_rew_tape"
2740 { { echo "$as_me:$LINENO: error: *** --with-rew-tape is deprecated, use --with-tape-device instead." >&5
2741 echo "$as_me: error: *** --with-rew-tape is deprecated, use --with-tape-device instead." >&2;}
2742 { (exit 1); exit 1; }; }
2747 # Check whether --with-norew-tape or --without-norew-tape was given.
2748 if test "${with_norew_tape+set}" = set; then
2749 withval="$with_norew_tape"
2750 { { echo "$as_me:$LINENO: error: *** --with-norew-tape is deprecated, use --with-tape-device instead." >&5
2751 echo "$as_me: error: *** --with-norew-tape is deprecated, use --with-tape-device instead." >&2;}
2752 { (exit 1); exit 1; }; }
2757 # Check whether --with-changer-device or --without-changer-device was given.
2758 if test "${with_changer_device+set}" = set; then
2759 withval="$with_changer_device"
2762 "" | y | ye | yes | n | no)
2763 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-changer-device option." >&5
2764 echo "$as_me: error: *** You must supply an argument to the --with-changer-device option." >&2;}
2765 { (exit 1); exit 1; }; }
2767 *) DEFAULT_CHANGER_DEVICE="$withval"
2773 if test -z "$DEFAULT_CHANGER_DEVICE" &&
2774 test -f /dev/ch0; then
2775 DEFAULT_CHANGER_DEVICE=/dev/ch0
2781 if test -z "$DEFAULT_CHANGER_DEVICE"; then
2782 DEFAULT_CHANGER_DEVICE=/dev/null
2786 cat >>confdefs.h <<_ACEOF
2787 #define DEFAULT_CHANGER_DEVICE "$DEFAULT_CHANGER_DEVICE"
2793 # Check whether --with-fqdn or --without-fqdn was given.
2794 if test "${with_fqdn+set}" = set; then
2795 withval="$with_fqdn"
2804 cat >>confdefs.h <<\_ACEOF
2809 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-fqdn option." >&5
2810 echo "$as_me: error: *** You must not supply an argument to --with-fqdn option." >&2;}
2811 { (exit 1); exit 1; }; }
2816 # Check whether --with-broken-fsf or --without-broken-fsf was given.
2817 if test "${with_broken_fsf+set}" = set; then
2818 withval="$with_broken_fsf"
2819 HAVE_BROKEN_FSF=$withval
2821 : ${HAVE_BROKEN_FSF=no}
2824 case "$HAVE_BROKEN_FSF" in
2827 cat >>confdefs.h <<\_ACEOF
2828 #define HAVE_BROKEN_FSF 1
2832 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-broken-fsf option." >&5
2833 echo "$as_me: error: *** You must not supply an argument to --with-broken-fsf option." >&2;}
2834 { (exit 1); exit 1; }; }
2839 # Check whether --with-gnutar or --without-gnutar was given.
2840 if test "${with_gnutar+set}" = set; then
2841 withval="$with_gnutar"
2844 /*) GNUTAR="$withval";;
2847 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar" >&5
2848 echo "$as_me: error: *** You must supply a full pathname to --with-gnutar" >&2;}
2849 { (exit 1); exit 1; }; };;
2856 # Check whether --with-qde or --without-qde was given.
2857 if test "${with_qde+set}" = set; then
2859 USE_QUICK_AND_DIRTY_ESTIMATES=$withval
2861 : ${USE_QUICK_AND_DIRTY_ESTIMATES=no}
2864 case "$USE_QUICK_AND_DIRTY_ESTIMATES" in
2865 n | no) : USE_QUICK_AND_DIRTY_ESTIMATES=no;;
2866 y | ye | yes) : USE_QUICK_AND_DIRTY_ESTIMATES=yes
2868 cat >>confdefs.h <<\_ACEOF
2869 #define USE_QUICK_AND_DIRTY_ESTIMATES 1
2873 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-qde option." >&5
2874 echo "$as_me: error: *** You must not supply an argument to --with-qde option." >&2;}
2875 { (exit 1); exit 1; }; }
2881 # Check whether --with-smbclient or --without-smbclient was given.
2882 if test "${with_smbclient+set}" = set; then
2883 withval="$with_smbclient"
2886 /*) SAMBA_CLIENT="$withval";;
2888 n|no) SAMBA_CLIENT="no";;
2889 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-smbclient" >&5
2890 echo "$as_me: error: *** You must supply a full pathname to --with-smbclient" >&2;}
2891 { (exit 1); exit 1; }; };;
2898 # Check whether --with-samba-user or --without-samba-user was given.
2899 if test "${with_samba_user+set}" = set; then
2900 withval="$with_samba_user"
2901 { { echo "$as_me:$LINENO: error: *** The samba-user option was deprecated, the username go in the amandapass" >&5
2902 echo "$as_me: error: *** The samba-user option was deprecated, the username go in the amandapass" >&2;}
2903 { (exit 1); exit 1; }; }
2909 # Check whether --with-gnutar-listdir or --without-gnutar-listdir was given.
2910 if test "${with_gnutar_listdir+set}" = set; then
2911 withval="$with_gnutar_listdir"
2914 n | no) unset GNUTAR_LISTDIR ;;
2915 y | ye | yes) : ${GNUTAR_LISTDIR=$localstatedir/amanda/gnutar-lists} ;;
2916 /*) GNUTAR_LISTDIR="$withval" ;;
2917 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar-listdir" >&5
2918 echo "$as_me: error: *** You must supply a full pathname to --with-gnutar-listdir" >&2;}
2919 { (exit 1); exit 1; }; }
2923 : ${GNUTAR_LISTDIR=$localstatedir/amanda/gnutar-lists}
2926 if test "$GNUTAR_LISTDIR"; then
2928 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2929 eval echo "$GNUTAR_LISTDIR"
2932 cat >>confdefs.h <<_ACEOF
2933 #define GNUTAR_LISTED_INCREMENTAL_DIR "$GNUTAR_LISTDIR"
2936 GNUTAR_LISTED_INCREMENTAL_DIRX=$GNUTAR_LISTDIR
2938 GNUTAR_LISTED_INCREMENTAL_DIRX=
2943 # Check whether --with-gnutar-listed-incremental or --without-gnutar-listed-incremental was given.
2944 if test "${with_gnutar_listed_incremental+set}" = set; then
2945 withval="$with_gnutar_listed_incremental"
2946 { { echo "$as_me:$LINENO: error: *** The gnutar-listed-incremental option was deprecated, use gnutar-listdir instead" >&5
2947 echo "$as_me: error: *** The gnutar-listed-incremental option was deprecated, use gnutar-listdir instead" >&2;}
2948 { (exit 1); exit 1; }; }
2954 # Check whether --with-bsd-security or --without-bsd-security was given.
2955 if test "${with_bsd_security+set}" = set; then
2956 withval="$with_bsd_security"
2957 BSD_SECURITY=$withval
2959 : ${BSD_SECURITY=yes}
2962 case "$BSD_SECURITY" in
2965 cat >>confdefs.h <<\_ACEOF
2966 #define BSD_SECURITY 1
2970 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsd-security option." >&5
2971 echo "$as_me: error: *** You must not supply an argument to --with-bsd-security option." >&2;}
2972 { (exit 1); exit 1; }; }
2977 # Check whether --with-amandahosts or --without-amandahosts was given.
2978 if test "${with_amandahosts+set}" = set; then
2979 withval="$with_amandahosts"
2980 USE_AMANDAHOSTS=$withval
2982 : ${USE_AMANDAHOSTS=yes}
2985 case "$USE_AMANDAHOSTS" in
2988 case "$BSD_SECURITY" in
2990 cat >>confdefs.h <<\_ACEOF
2991 #define USE_AMANDAHOSTS 1
2997 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-amandahosts option." >&5
2998 echo "$as_me: error: *** You must not supply an argument to --with-amandahosts option." >&2;}
2999 { (exit 1); exit 1; }; }
3004 : ${KRB4_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
3007 # Check whether --with-krb4-security or --without-krb4-security was given.
3008 if test "${with_krb4_security+set}" = set; then
3009 withval="$with_krb4_security"
3010 KRB4_SECURITY="$withval"
3012 : ${KRB4_SECURITY=no}
3016 case "$KRB4_SECURITY" in
3017 n | no) KRB4_SECURITY=no ;;
3019 *) KRB4_SPOTS="$KRB4_SECURITY"
3024 echo "$as_me:$LINENO: checking for Kerberos and Amanda kerberos4 bits" >&5
3025 echo $ECHO_N "checking for Kerberos and Amanda kerberos4 bits... $ECHO_C" >&6
3026 if test "${KRB4_SECURITY}" = yes -a -f ${srcdir-.}/common-src/krb4-security.c ; then
3027 for dir in $KRB4_SPOTS; do
3028 if test -f ${dir}/lib/libkrb.a -a -f ${dir}/lib/libdes.a ; then
3030 # This is the original Kerberos 4.
3032 echo "$as_me:$LINENO: result: found in $dir" >&5
3033 echo "${ECHO_T}found in $dir" >&6
3036 cat >>confdefs.h <<\_ACEOF
3037 #define KRB4_SECURITY 1
3040 if test -d $dir/include/kerberosIV ; then
3042 # This handles BSD/OS.
3044 KRB4INCLUDES=-I$dir/include/kerberosIV
3046 KRB4INCLUDES=-I$dir/include
3048 KRB4LDFLAGS=-L$dir/lib
3049 KRB4LIBS="-lkrb -ldes"
3050 if test -f ${dir}/lib/libcom_err.a ; then
3051 KRB4LIBS="$KRB4LIBS -lcom_err"
3053 if test -f ${dir}/lib/libroken.a ; then
3054 KRB4LIBS="$KRB4LIBS -lroken"
3057 elif test -f ${dir}/lib/libkrb4.a &&
3058 test -f ${dir}/lib/libcrypto.a &&
3059 test -f ${dir}/lib/libdes425.a ; then
3061 # This is Kerberos 5 with Kerberos 4 back-support.
3063 echo "$as_me:$LINENO: result: found in $dir" >&5
3064 echo "${ECHO_T}found in $dir" >&6
3067 cat >>confdefs.h <<\_ACEOF
3068 #define KRB4_SECURITY 1
3071 KRB4INCLUDES="-I$dir/include -I$dir/include/kerberosIV"
3072 KRB4LDFLAGS=-L$dir/lib
3073 if test -f ${dir}/lib/libkrb5.a &&
3074 test -f ${dir}/lib/libcom_err.a; then
3075 KRB4LIBS="-lkrb4 -lkrb5 -lcrypto -ldes425 -lcom_err"
3077 KRB4LIBS="-lkrb4 -lcrypto -ldes425"
3080 elif test -f ${dir}/lib/libkrb4.dylib &&
3081 test -f ${dir}/lib/libcrypto.dylib &&
3082 test -f ${dir}/lib/libdes425.dylib ; then
3084 # This is Kerberos 5 with Kerberos 4 back-support for Mac OS X.
3086 echo "$as_me:$LINENO: result: found in $dir" >&5
3087 echo "${ECHO_T}found in $dir" >&6
3090 cat >>confdefs.h <<\_ACEOF
3091 #define KRB4_SECURITY 1
3094 KRB4INCLUDES="-I$dir/include -I$dir/include/kerberosIV"
3095 KRB4LDFLAGS=-L$dir/lib
3096 if test -f ${dir}/lib/libkrb5.dylib &&
3097 test -f ${dir}/lib/libcom_err.dylib; then
3098 KRB4LIBS="-lkrb4 -lkrb5 -lcrypto -ldes425 -lcom_err"
3100 KRB4LIBS="-lkrb4 -lcrypto -ldes425"
3106 if test "$KRB4LDFLAGS" = "" ; then
3107 { { echo "$as_me:$LINENO: error: *** Kerberos IV not found." >&5
3108 echo "$as_me: error: *** Kerberos IV not found." >&2;}
3109 { (exit 1); exit 1; }; }
3112 echo "$as_me:$LINENO: result: no" >&5
3113 echo "${ECHO_T}no" >&6
3117 # Check whether --with-server-principal or --without-server-principal was given.
3118 if test "${with_server_principal+set}" = set; then
3119 withval="$with_server_principal"
3122 "" | y | ye | yes | n | no)
3123 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-principal option." >&5
3124 echo "$as_me: error: *** You must supply an argument to the --with-server-principal option." >&2;}
3125 { (exit 1); exit 1; }; }
3128 SERVER_HOST_PRINCIPLE="$withval"
3133 : ${SERVER_HOST_PRINCIPLE="amanda"}
3137 cat >>confdefs.h <<_ACEOF
3138 #define SERVER_HOST_PRINCIPLE "$SERVER_HOST_PRINCIPLE"
3143 # Check whether --with-server-instance or --without-server-instance was given.
3144 if test "${with_server_instance+set}" = set; then
3145 withval="$with_server_instance"
3148 "" | y | ye | yes | n | no)
3149 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-instance option." >&5
3150 echo "$as_me: error: *** You must supply an argument to the --with-server-instance option." >&2;}
3151 { (exit 1); exit 1; }; }
3153 *) SERVER_HOST_INSTANCE="$withval"
3158 : ${SERVER_HOST_INSTANCE="amanda"}
3162 cat >>confdefs.h <<_ACEOF
3163 #define SERVER_HOST_INSTANCE "$SERVER_HOST_INSTANCE"
3168 # Check whether --with-server-keyfile or --without-server-keyfile was given.
3169 if test "${with_server_keyfile+set}" = set; then
3170 withval="$with_server_keyfile"
3173 "" | y | ye | yes | n | no)
3174 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-keyfile option." >&5
3175 echo "$as_me: error: *** You must supply an argument to the --with-server-keyfile option." >&2;}
3176 { (exit 1); exit 1; }; }
3178 *) SERVER_HOST_KEY_FILE="$withval"
3183 : ${SERVER_HOST_KEY_FILE="/.amanda"}
3187 cat >>confdefs.h <<_ACEOF
3188 #define SERVER_HOST_KEY_FILE "$SERVER_HOST_KEY_FILE"
3193 # Check whether --with-client-principal or --without-client-principal was given.
3194 if test "${with_client_principal+set}" = set; then
3195 withval="$with_client_principal"
3198 "" | y | ye | yes | n | no)
3199 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-principal option." >&5
3200 echo "$as_me: error: *** You must supply an argument to the --with-client-principal option." >&2;}
3201 { (exit 1); exit 1; }; }
3203 *) CLIENT_HOST_PRINCIPLE="$withval"
3208 : ${CLIENT_HOST_PRINCIPLE="rcmd"}
3212 cat >>confdefs.h <<_ACEOF
3213 #define CLIENT_HOST_PRINCIPLE "$CLIENT_HOST_PRINCIPLE"
3218 # Check whether --with-client-instance or --without-client-instance was given.
3219 if test "${with_client_instance+set}" = set; then
3220 withval="$with_client_instance"
3223 "" | y | ye | yes | n | no)
3224 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-instance option." >&5
3225 echo "$as_me: error: *** You must supply an argument to the --with-client-instance option." >&2;}
3226 { (exit 1); exit 1; }; }
3228 *) CLIENT_HOST_INSTANCE="$withval"
3233 : ${CLIENT_HOST_INSTANCE=HOSTNAME_INSTANCE}
3237 cat >>confdefs.h <<_ACEOF
3238 #define CLIENT_HOST_INSTANCE $CLIENT_HOST_INSTANCE
3243 # Check whether --with-client-keyfile or --without-client-keyfile was given.
3244 if test "${with_client_keyfile+set}" = set; then
3245 withval="$with_client_keyfile"
3248 "" | y | ye | yes | n | no)
3249 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-keyfile option." >&5
3250 echo "$as_me: error: *** You must supply an argument to the --with-client-keyfile option." >&2;}
3251 { (exit 1); exit 1; }; }
3253 *) CLIENT_HOST_KEY_FILE="$withval"
3258 : ${CLIENT_HOST_KEY_FILE=KEYFILE}
3262 # Assume it's either KEYFILE (defined in krb.h), or a string filename...
3263 if test "$CLIENT_HOST_KEY_FILE" != "KEYFILE"; then
3264 CLIENT_HOST_KEY_FILE="\"$CLIENT_HOST_KEY_FILE\""
3268 cat >>confdefs.h <<_ACEOF
3269 #define CLIENT_HOST_KEY_FILE $CLIENT_HOST_KEY_FILE
3274 # Check whether --with-ticket-lifetime or --without-ticket-lifetime was given.
3275 if test "${with_ticket_lifetime+set}" = set; then
3276 withval="$with_ticket_lifetime"
3279 "" | y | ye | yes | n | no)
3280 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-ticket-lifetime option." >&5
3281 echo "$as_me: error: *** You must supply an argument to the --with-ticket-lifetime option." >&2;}
3282 { (exit 1); exit 1; }; }
3284 *) TICKET_LIFETIME="$withval"
3289 : ${TICKET_LIFETIME=128}
3293 cat >>confdefs.h <<_ACEOF
3294 #define TICKET_LIFETIME $TICKET_LIFETIME
3300 # Check whether --with-portrange or --without-portrange was given.
3301 if test "${with_portrange+set}" = set; then
3302 withval="$with_portrange"
3304 TCPPORTRANGE="$withval"
3309 # Check whether --with-tcpportrange or --without-tcpportrange was given.
3310 if test "${with_tcpportrange+set}" = set; then
3311 withval="$with_tcpportrange"
3313 TCPPORTRANGE="$withval"
3317 if test x"${TCPPORTRANGE+set}" = x"set"; then
3318 if test x`echo "$TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
3319 { { echo "$as_me:$LINENO: error: *** --with-tcpportrange requires two comma-separated positive numbers" >&5
3320 echo "$as_me: error: *** --with-tcpportrange requires two comma-separated positive numbers" >&2;}
3321 { (exit 1); exit 1; }; }
3323 min_tcp_port=`echo "$TCPPORTRANGE" | sed 's/,.*//'`
3324 max_tcp_port=`echo "$TCPPORTRANGE" | sed 's/.*,//'`
3325 if test $min_tcp_port -gt $max_tcp_port; then
3326 { { echo "$as_me:$LINENO: error: *** the second TCP port number must be greater than the first in --with-tcpportrange" >&5
3327 echo "$as_me: error: *** the second TCP port number must be greater than the first in --with-tcpportrange" >&2;}
3328 { (exit 1); exit 1; }; }
3330 if test $min_tcp_port -lt 1024; then
3331 { echo "$as_me:$LINENO: WARNING: *** the TCP port range should be 1024 or greater in --with-tcpportrange" >&5
3332 echo "$as_me: WARNING: *** the TCP port range should be 1024 or greater in --with-tcpportrange" >&2;}
3334 if test $max_tcp_port -ge 65536; then
3335 { echo "$as_me:$LINENO: WARNING: *** the TCP port range should be less than 65536 in --with-tcpportrange" >&5
3336 echo "$as_me: WARNING: *** the TCP port range should be less than 65536 in --with-tcpportrange" >&2;}
3339 cat >>confdefs.h <<_ACEOF
3340 #define TCPPORTRANGE $TCPPORTRANGE
3346 # Check whether --with-udpportrange or --without-udpportrange was given.
3347 if test "${with_udpportrange+set}" = set; then
3348 withval="$with_udpportrange"
3350 UDPPORTRANGE="$withval"
3354 if test x"${UDPPORTRANGE+set}" = x"set"; then
3355 if test x`echo "$UDPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
3356 { { echo "$as_me:$LINENO: error: *** --with-udpportrange requires two comma-separated positive numbers" >&5
3357 echo "$as_me: error: *** --with-udpportrange requires two comma-separated positive numbers" >&2;}
3358 { (exit 1); exit 1; }; }
3360 min_udp_port=`echo "$UDPPORTRANGE" | sed 's/,.*//'`
3361 max_udp_port=`echo "$UDPPORTRANGE" | sed 's/.*,//'`
3362 if test $min_udp_port -gt $max_udp_port; then
3363 { { echo "$as_me:$LINENO: error: *** the second UDP port number must be greater than the first in --with-udpportrange" >&5
3364 echo "$as_me: error: *** the second UDP port number must be greater than the first in --with-udpportrange" >&2;}
3365 { (exit 1); exit 1; }; }
3367 if test $max_udp_port -ge 1024; then
3368 { echo "$as_me:$LINENO: WARNING: *** the UDP port range should be less than 1024 in --with-udpportrange" >&5
3369 echo "$as_me: WARNING: *** the UDP port range should be less than 1024 in --with-udpportrange" >&2;}
3371 if test $min_udp_port -le 0; then
3372 { echo "$as_me:$LINENO: WARNING: *** the UDP port range should be greater than 0 in --with-udpportrange" >&5
3373 echo "$as_me: WARNING: *** the UDP port range should be greater than 0 in --with-udpportrange" >&2;}
3376 cat >>confdefs.h <<_ACEOF
3377 #define UDPPORTRANGE $UDPPORTRANGE
3383 # Check whether --with-maxtapeblocksize or --without-maxtapeblocksize was given.
3384 if test "${with_maxtapeblocksize+set}" = set; then
3385 withval="$with_maxtapeblocksize"
3387 MAXTAPEBLOCKSIZE="$withval"
3390 : ${MAXTAPEBLOCKSIZE=32}
3395 cat >>confdefs.h <<_ACEOF
3396 #define MAX_TAPE_BLOCK_KB ($MAXTAPEBLOCKSIZE)
3402 # Check whether --with-db or --without-db was given.
3403 if test "${with_db+set}" = set; then
3407 "" | y | ye | yes | n | no)
3408 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-db option." >&5
3409 echo "$as_me: error: *** You must supply an argument to the --with-db option." >&2;}
3410 { (exit 1); exit 1; }; }
3412 *) DB_STYLE="$withval"
3418 if test "$DB_STYLE"; then
3420 db | dbm | gdbm | ndbm | text) ;;
3422 { { echo "$as_me:$LINENO: error: *** Unknown argument $DB_STYLE given to --with-db. Choose from db, dbm, gdbm, ndbm, text." >&5
3423 echo "$as_me: error: *** Unknown argument $DB_STYLE given to --with-db. Choose from db, dbm, gdbm, ndbm, text." >&2;}
3424 { (exit 1); exit 1; }; }
3431 # Check whether --with-mmap or --without-mmap was given.
3432 if test "${with_mmap+set}" = set; then
3433 withval="$with_mmap"
3439 case "$FORCE_MMAP" in
3440 y | ye | yes | n | no) : ;;
3441 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-mmap." >&5
3442 echo "$as_me: error: *** You must not supply an argument to --with-mmap." >&2;}
3443 { (exit 1); exit 1; }; }
3448 # Check whether --with-buffered-dump or --without-buffered-dump was given.
3449 if test "${with_buffered_dump+set}" = set; then
3450 withval="$with_buffered_dump"
3451 DUMPER_SOCKET_BUFFERING=$withval
3453 : ${DUMPER_SOCKET_BUFFERING=no}
3456 case "$DUMPER_SOCKET_BUFFERING" in
3460 cat >>confdefs.h <<\_ACEOF
3461 #define DUMPER_SOCKET_BUFFERING 1
3465 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-buffered-dump." >&5
3466 echo "$as_me: error: *** You must not supply an argument to --with-buffered-dump." >&2;}
3467 { (exit 1); exit 1; }; }
3472 # Check whether --with-assertions or --without-assertions was given.
3473 if test "${with_assertions+set}" = set; then
3474 withval="$with_assertions"
3475 ASSERTIONS="$withval"
3480 case "$ASSERTIONS" in
3483 cat >>confdefs.h <<\_ACEOF
3484 #define ASSERTIONS 1
3488 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-assertions option." >&5
3489 echo "$as_me: error: *** You must not supply an argument to --with-assertions option." >&2;}
3490 { (exit 1); exit 1; }; }
3495 # Check whether --with-tmpdir or --without-tmpdir was given.
3496 if test "${with_tmpdir+set}" = set; then
3497 withval="$with_tmpdir"
3504 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3505 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3509 n | no) { { echo "$as_me:$LINENO: error: *** --without-tmpdir is not allowed." >&5
3510 echo "$as_me: error: *** --without-tmpdir is not allowed." >&2;}
3511 { (exit 1); exit 1; }; };;
3513 AMANDA_TMPDIR="/tmp/amanda";;
3515 AMANDA_TMPDIR="$tmpdir";;
3516 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-tmpdir option." >&5
3517 echo "$as_me: error: *** You must supply a full pathname to --with-tmpdir option." >&2;}
3518 { (exit 1); exit 1; }; };;
3521 cat >>confdefs.h <<_ACEOF
3522 #define AMANDA_TMPDIR "$AMANDA_TMPDIR"
3528 # Check whether --with-debugging or --without-debugging was given.
3529 if test "${with_debugging+set}" = set; then
3530 withval="$with_debugging"
3531 debugging="$withval"
3537 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3538 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3539 eval echo "$debugging"
3541 case "$debugging" in
3542 n | no) AMANDA_DBGDIR="";;
3543 y | ye | yes) AMANDA_DBGDIR="$AMANDA_TMPDIR" ;;
3544 /*) AMANDA_DBGDIR="$debugging" ;;
3545 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-debugging option." >&5
3546 echo "$as_me: error: *** You must supply a full pathname to --with-debugging option." >&2;}
3547 { (exit 1); exit 1; }; }
3550 case "$AMANDA_DBGDIR" in
3553 cat >>confdefs.h <<\_ACEOF
3554 #define DEBUG_CODE 1
3558 cat >>confdefs.h <<_ACEOF
3559 #define AMANDA_DBGDIR "$AMANDA_DBGDIR"
3566 # Check whether --with-debug_days or --without-debug_days was given.
3567 if test "${with_debug_days+set}" = set; then
3568 withval="$with_debug_days"
3569 debug_days="$withval"
3574 case "$debug_days" in
3575 n | no) AMANDA_DEBUG_DAYS=0 ;;
3576 y | ye | yes) AMANDA_DEBUG_DAYS=4 ;;
3577 [0-9] | [0-9][0-9] | [0-9][0-9][0-9]) AMANDA_DEBUG_DAYS="$debug_days" ;;
3578 *) { { echo "$as_me:$LINENO: error: *** --with-debug-days value not numeric or out of range." >&5
3579 echo "$as_me: error: *** --with-debug-days value not numeric or out of range." >&2;}
3580 { (exit 1); exit 1; }; }
3584 cat >>confdefs.h <<_ACEOF
3585 #define AMANDA_DEBUG_DAYS $AMANDA_DEBUG_DAYS
3591 # Check whether --with-testing or --without-testing was given.
3592 if test "${with_testing+set}" = set; then
3593 withval="$with_testing"
3600 n | no) SERVICE_SUFFIX="";;
3601 y | ye | yes) SERVICE_SUFFIX="-test";;
3602 *) SERVICE_SUFFIX="-$TESTING";;
3604 AMANDA_SERVICE_NAME="amanda$SERVICE_SUFFIX"
3605 KAMANDA_SERVICE_NAME="kamanda$SERVICE_SUFFIX"
3608 cat >>confdefs.h <<_ACEOF
3609 #define SERVICE_SUFFIX "$SERVICE_SUFFIX"
3613 cat >>confdefs.h <<_ACEOF
3614 #define AMANDA_SERVICE_NAME "$AMANDA_SERVICE_NAME"
3618 cat >>confdefs.h <<_ACEOF
3619 #define KAMANDA_SERVICE_NAME "$KAMANDA_SERVICE_NAME"
3624 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3625 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3627 tmp=`eval echo "$bindir"`
3629 cat >>confdefs.h <<_ACEOF
3630 #define bindir "$tmp"
3634 tmp=`eval echo "$sbindir"`
3636 cat >>confdefs.h <<_ACEOF
3637 #define sbindir "$tmp"
3641 tmp=`eval echo "$libexecdir"`
3643 cat >>confdefs.h <<_ACEOF
3644 #define libexecdir "$tmp"
3648 tmp=`eval echo $mandir`
3650 cat >>confdefs.h <<_ACEOF
3651 #define mandir "$tmp"
3657 ac_cpp='$CPP $CPPFLAGS'
3658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3661 if test -n "$ac_tool_prefix"; then
3662 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3663 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3664 echo "$as_me:$LINENO: checking for $ac_word" >&5
3665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3666 if test "${ac_cv_prog_CC+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 if test -n "$CC"; then
3670 ac_cv_prog_CC="$CC" # Let the user override the test.
3672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676 test -z "$as_dir" && as_dir=.
3677 for ac_exec_ext in '' $ac_executable_extensions; do
3678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3679 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3689 if test -n "$CC"; then
3690 echo "$as_me:$LINENO: result: $CC" >&5
3691 echo "${ECHO_T}$CC" >&6
3693 echo "$as_me:$LINENO: result: no" >&5
3694 echo "${ECHO_T}no" >&6
3698 if test -z "$ac_cv_prog_CC"; then
3700 # Extract the first word of "gcc", so it can be a program name with args.
3701 set dummy gcc; ac_word=$2
3702 echo "$as_me:$LINENO: checking for $ac_word" >&5
3703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3704 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 if test -n "$ac_ct_CC"; then
3708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717 ac_cv_prog_ac_ct_CC="gcc"
3718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3727 if test -n "$ac_ct_CC"; then
3728 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3729 echo "${ECHO_T}$ac_ct_CC" >&6
3731 echo "$as_me:$LINENO: result: no" >&5
3732 echo "${ECHO_T}no" >&6
3740 if test -z "$CC"; then
3741 if test -n "$ac_tool_prefix"; then
3742 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3743 set dummy ${ac_tool_prefix}cc; ac_word=$2
3744 echo "$as_me:$LINENO: checking for $ac_word" >&5
3745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3746 if test "${ac_cv_prog_CC+set}" = set; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 if test -n "$CC"; then
3750 ac_cv_prog_CC="$CC" # Let the user override the test.
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 test -z "$as_dir" && as_dir=.
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3759 ac_cv_prog_CC="${ac_tool_prefix}cc"
3760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3769 if test -n "$CC"; then
3770 echo "$as_me:$LINENO: result: $CC" >&5
3771 echo "${ECHO_T}$CC" >&6
3773 echo "$as_me:$LINENO: result: no" >&5
3774 echo "${ECHO_T}no" >&6
3778 if test -z "$ac_cv_prog_CC"; then
3780 # Extract the first word of "cc", so it can be a program name with args.
3781 set dummy cc; ac_word=$2
3782 echo "$as_me:$LINENO: checking for $ac_word" >&5
3783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3784 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 if test -n "$ac_ct_CC"; then
3788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 test -z "$as_dir" && as_dir=.
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3797 ac_cv_prog_ac_ct_CC="cc"
3798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3807 if test -n "$ac_ct_CC"; then
3808 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3809 echo "${ECHO_T}$ac_ct_CC" >&6
3811 echo "$as_me:$LINENO: result: no" >&5
3812 echo "${ECHO_T}no" >&6
3821 if test -z "$CC"; then
3822 # Extract the first word of "cc", so it can be a program name with args.
3823 set dummy cc; ac_word=$2
3824 echo "$as_me:$LINENO: checking for $ac_word" >&5
3825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3826 if test "${ac_cv_prog_CC+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 if test -n "$CC"; then
3830 ac_cv_prog_CC="$CC" # Let the user override the test.
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 test -z "$as_dir" && as_dir=.
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3840 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3841 ac_prog_rejected=yes
3845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3851 if test $ac_prog_rejected = yes; then
3852 # We found a bogon in the path, so make sure we never use it.
3853 set dummy $ac_cv_prog_CC
3855 if test $# != 0; then
3856 # We chose a different compiler from the bogus one.
3857 # However, it has the same basename, so the bogon will be chosen
3858 # first if we set CC to just the basename; use the full file name.
3860 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3866 if test -n "$CC"; then
3867 echo "$as_me:$LINENO: result: $CC" >&5
3868 echo "${ECHO_T}$CC" >&6
3870 echo "$as_me:$LINENO: result: no" >&5
3871 echo "${ECHO_T}no" >&6
3875 if test -z "$CC"; then
3876 if test -n "$ac_tool_prefix"; then
3879 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3880 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3881 echo "$as_me:$LINENO: checking for $ac_word" >&5
3882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3883 if test "${ac_cv_prog_CC+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3886 if test -n "$CC"; then
3887 ac_cv_prog_CC="$CC" # Let the user override the test.
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 test -z "$as_dir" && as_dir=.
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3906 if test -n "$CC"; then
3907 echo "$as_me:$LINENO: result: $CC" >&5
3908 echo "${ECHO_T}$CC" >&6
3910 echo "$as_me:$LINENO: result: no" >&5
3911 echo "${ECHO_T}no" >&6
3914 test -n "$CC" && break
3917 if test -z "$CC"; then
3921 # Extract the first word of "$ac_prog", so it can be a program name with args.
3922 set dummy $ac_prog; ac_word=$2
3923 echo "$as_me:$LINENO: checking for $ac_word" >&5
3924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3925 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 if test -n "$ac_ct_CC"; then
3929 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935 test -z "$as_dir" && as_dir=.
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3938 ac_cv_prog_ac_ct_CC="$ac_prog"
3939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3948 if test -n "$ac_ct_CC"; then
3949 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3950 echo "${ECHO_T}$ac_ct_CC" >&6
3952 echo "$as_me:$LINENO: result: no" >&5
3953 echo "${ECHO_T}no" >&6
3956 test -n "$ac_ct_CC" && break
3965 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3966 See \`config.log' for more details." >&5
3967 echo "$as_me: error: no acceptable C compiler found in \$PATH
3968 See \`config.log' for more details." >&2;}
3969 { (exit 1); exit 1; }; }
3971 # Provide some information about the compiler.
3972 echo "$as_me:$LINENO:" \
3973 "checking for C compiler version" >&5
3974 ac_compiler=`set X $ac_compile; echo $2`
3975 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3976 (eval $ac_compiler --version </dev/null >&5) 2>&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }
3980 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3981 (eval $ac_compiler -v </dev/null >&5) 2>&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }
3985 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3986 (eval $ac_compiler -V </dev/null >&5) 2>&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }
3991 cat >conftest.$ac_ext <<_ACEOF
3994 cat confdefs.h >>conftest.$ac_ext
3995 cat >>conftest.$ac_ext <<_ACEOF
3996 /* end confdefs.h. */
4006 ac_clean_files_save=$ac_clean_files
4007 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4008 # Try to create an executable without -o first, disregard a.out.
4009 # It will help us diagnose broken compilers, and finding out an intuition
4011 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4012 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4013 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4014 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4015 (eval $ac_link_default) 2>&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; then
4019 # Find the output, starting from the most likely. This scheme is
4020 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4023 # Be careful to initialize this variable, since it used to be cached.
4024 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4026 # b.out is created by i960 compilers.
4027 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4029 test -f "$ac_file" || continue
4031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4034 # This is the source file.
4037 # We found the default executable, but exeext='' is most
4041 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4042 # FIXME: I believe we export ac_cv_exeext for Libtool,
4043 # but it would be cool to find out if it's true. Does anybody
4044 # maintain Libtool? --akim.
4052 echo "$as_me: failed program was:" >&5
4053 sed 's/^/| /' conftest.$ac_ext >&5
4055 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4056 See \`config.log' for more details." >&5
4057 echo "$as_me: error: C compiler cannot create executables
4058 See \`config.log' for more details." >&2;}
4059 { (exit 77); exit 77; }; }
4062 ac_exeext=$ac_cv_exeext
4063 echo "$as_me:$LINENO: result: $ac_file" >&5
4064 echo "${ECHO_T}$ac_file" >&6
4066 # Check the compiler produces executables we can run. If not, either
4067 # the compiler is broken, or we cross compile.
4068 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4069 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4070 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4071 # If not cross compiling, check that we can run a simple program.
4072 if test "$cross_compiling" != yes; then
4073 if { ac_try='./$ac_file'
4074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; }; then
4081 if test "$cross_compiling" = maybe; then
4084 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4085 If you meant to cross compile, use \`--host'.
4086 See \`config.log' for more details." >&5
4087 echo "$as_me: error: cannot run C compiled programs.
4088 If you meant to cross compile, use \`--host'.
4089 See \`config.log' for more details." >&2;}
4090 { (exit 1); exit 1; }; }
4094 echo "$as_me:$LINENO: result: yes" >&5
4095 echo "${ECHO_T}yes" >&6
4097 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4098 ac_clean_files=$ac_clean_files_save
4099 # Check the compiler produces executables we can run. If not, either
4100 # the compiler is broken, or we cross compile.
4101 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4102 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4103 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4104 echo "${ECHO_T}$cross_compiling" >&6
4106 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4107 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4109 (eval $ac_link) 2>&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); }; then
4113 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4114 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4115 # work properly (i.e., refer to `conftest.exe'), while it won't with
4117 for ac_file in conftest.exe conftest conftest.*; do
4118 test -f "$ac_file" || continue
4120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4121 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4128 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4129 See \`config.log' for more details." >&5
4130 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4131 See \`config.log' for more details." >&2;}
4132 { (exit 1); exit 1; }; }
4135 rm -f conftest$ac_cv_exeext
4136 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4137 echo "${ECHO_T}$ac_cv_exeext" >&6
4139 rm -f conftest.$ac_ext
4140 EXEEXT=$ac_cv_exeext
4142 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4143 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4144 if test "${ac_cv_objext+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 cat >conftest.$ac_ext <<_ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h. */
4162 rm -f conftest.o conftest.obj
4163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4164 (eval $ac_compile) 2>&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; then
4168 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4171 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4176 echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4179 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4180 See \`config.log' for more details." >&5
4181 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4182 See \`config.log' for more details." >&2;}
4183 { (exit 1); exit 1; }; }
4186 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4188 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4189 echo "${ECHO_T}$ac_cv_objext" >&6
4190 OBJEXT=$ac_cv_objext
4192 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4193 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4194 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 cat >conftest.$ac_ext <<_ACEOF
4200 cat confdefs.h >>conftest.$ac_ext
4201 cat >>conftest.$ac_ext <<_ACEOF
4202 /* end confdefs.h. */
4215 rm -f conftest.$ac_objext
4216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4217 (eval $ac_compile) 2>conftest.er1
4219 grep -v '^ *+' conftest.er1 >conftest.err
4221 cat conftest.err >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } &&
4224 { ac_try='test -z "$ac_c_werror_flag"
4225 || test ! -s conftest.err'
4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; } &&
4231 { ac_try='test -s conftest.$ac_objext'
4232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; }; then
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4245 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4248 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4249 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4250 GCC=`test $ac_compiler_gnu = yes && echo yes`
4251 ac_test_CFLAGS=${CFLAGS+set}
4252 ac_save_CFLAGS=$CFLAGS
4254 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4255 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4256 if test "${ac_cv_prog_cc_g+set}" = set; then
4257 echo $ECHO_N "(cached) $ECHO_C" >&6
4259 cat >conftest.$ac_ext <<_ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h. */
4274 rm -f conftest.$ac_objext
4275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4276 (eval $ac_compile) 2>conftest.er1
4278 grep -v '^ *+' conftest.er1 >conftest.err
4280 cat conftest.err >&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); } &&
4283 { ac_try='test -z "$ac_c_werror_flag"
4284 || test ! -s conftest.err'
4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; } &&
4290 { ac_try='test -s conftest.$ac_objext'
4291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); }; }; then
4298 echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4305 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4306 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4307 if test "$ac_test_CFLAGS" = set; then
4308 CFLAGS=$ac_save_CFLAGS
4309 elif test $ac_cv_prog_cc_g = yes; then
4310 if test "$GCC" = yes; then
4316 if test "$GCC" = yes; then
4322 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4323 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4324 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4327 ac_cv_prog_cc_stdc=no
4329 cat >conftest.$ac_ext <<_ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h. */
4337 #include <sys/types.h>
4338 #include <sys/stat.h>
4339 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4340 struct buf { int x; };
4341 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4342 static char *e (p, i)
4348 static char *f (char * (*g) (char **, int), char **p, ...)
4353 s = g (p, va_arg (v,int));
4358 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4359 function prototypes and stuff, but not '\xHH' hex character constants.
4360 These don't provoke an error unfortunately, instead are silently treated
4361 as 'x'. The following induces an error, until -std1 is added to get
4362 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4363 array size at least. It's necessary to write '\x00'==0 to get something
4364 that's true only with -std1. */
4365 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4367 int test (int i, double x);
4368 struct s1 {int (*f) (int a);};
4369 struct s2 {int (*f) (double a);};
4370 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4376 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4381 # Don't try gcc -ansi; that turns off useful extensions and
4382 # breaks some systems' header files.
4383 # AIX -qlanglvl=ansi
4384 # Ultrix and OSF/1 -std1
4385 # HP-UX 10.20 and later -Ae
4386 # HP-UX older versions -Aa -D_HPUX_SOURCE
4387 # SVR4 -Xc -D__EXTENSIONS__
4388 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4390 CC="$ac_save_CC $ac_arg"
4391 rm -f conftest.$ac_objext
4392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4393 (eval $ac_compile) 2>conftest.er1
4395 grep -v '^ *+' conftest.er1 >conftest.err
4397 cat conftest.err >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } &&
4400 { ac_try='test -z "$ac_c_werror_flag"
4401 || test ! -s conftest.err'
4402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; } &&
4407 { ac_try='test -s conftest.$ac_objext'
4408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; }; then
4413 ac_cv_prog_cc_stdc=$ac_arg
4416 echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4420 rm -f conftest.err conftest.$ac_objext
4422 rm -f conftest.$ac_ext conftest.$ac_objext
4427 case "x$ac_cv_prog_cc_stdc" in
4429 echo "$as_me:$LINENO: result: none needed" >&5
4430 echo "${ECHO_T}none needed" >&6 ;;
4432 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4433 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4434 CC="$CC $ac_cv_prog_cc_stdc" ;;
4437 # Some people use a C++ compiler to compile C. Since we use `exit',
4438 # in C++ we need to declare it. In case someone uses the same compiler
4439 # for both compiling C and C++ we need to have the C++ compiler decide
4440 # the declaration of exit, since it's the most demanding environment.
4441 cat >conftest.$ac_ext <<_ACEOF
4446 rm -f conftest.$ac_objext
4447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4448 (eval $ac_compile) 2>conftest.er1
4450 grep -v '^ *+' conftest.er1 >conftest.err
4452 cat conftest.err >&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } &&
4455 { ac_try='test -z "$ac_c_werror_flag"
4456 || test ! -s conftest.err'
4457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; } &&
4462 { ac_try='test -s conftest.$ac_objext'
4463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; }; then
4468 for ac_declaration in \
4470 'extern "C" void std::exit (int) throw (); using std::exit;' \
4471 'extern "C" void std::exit (int); using std::exit;' \
4472 'extern "C" void exit (int) throw ();' \
4473 'extern "C" void exit (int);' \
4476 cat >conftest.$ac_ext <<_ACEOF
4479 cat confdefs.h >>conftest.$ac_ext
4480 cat >>conftest.$ac_ext <<_ACEOF
4481 /* end confdefs.h. */
4492 rm -f conftest.$ac_objext
4493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4494 (eval $ac_compile) 2>conftest.er1
4496 grep -v '^ *+' conftest.er1 >conftest.err
4498 cat conftest.err >&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); } &&
4501 { ac_try='test -z "$ac_c_werror_flag"
4502 || test ! -s conftest.err'
4503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; } &&
4508 { ac_try='test -s conftest.$ac_objext'
4509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); }; }; then
4516 echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4522 cat >conftest.$ac_ext <<_ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h. */
4537 rm -f conftest.$ac_objext
4538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4539 (eval $ac_compile) 2>conftest.er1
4541 grep -v '^ *+' conftest.er1 >conftest.err
4543 cat conftest.err >&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } &&
4546 { ac_try='test -z "$ac_c_werror_flag"
4547 || test ! -s conftest.err'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; } &&
4553 { ac_try='test -s conftest.$ac_objext'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; }; then
4561 echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4568 if test -n "$ac_declaration"; then
4569 echo '#ifdef __cplusplus' >>confdefs.h
4570 echo $ac_declaration >>confdefs.h
4571 echo '#endif' >>confdefs.h
4575 echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4581 ac_cpp='$CPP $CPPFLAGS'
4582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4585 DEPDIR="${am__leading_dot}deps"
4587 ac_config_commands="$ac_config_commands depfiles"
4590 am_make=${MAKE-make}
4591 cat > confinc << 'END'
4596 # If we don't find an include directive, just comment out the code.
4597 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4598 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4602 # First try GNU make style include.
4603 echo "include confinc" > confmf
4604 # We grep out `Entering directory' and `Leaving directory'
4605 # messages which can occur if `w' ends up in MAKEFLAGS.
4606 # In particular we don't look at `^make:' because GNU make might
4607 # be invoked under some other name (usually "gmake"), in which
4608 # case it prints its new name instead of `make'.
4609 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4614 # Now try BSD make style include.
4615 if test "$am__include" = "#"; then
4616 echo '.include "confinc"' > confmf
4617 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4618 am__include=.include
4625 echo "$as_me:$LINENO: result: $_am_result" >&5
4626 echo "${ECHO_T}$_am_result" >&6
4627 rm -f confinc confmf
4629 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4630 if test "${enable_dependency_tracking+set}" = set; then
4631 enableval="$enable_dependency_tracking"
4634 if test "x$enable_dependency_tracking" != xno; then
4635 am_depcomp="$ac_aux_dir/depcomp"
4640 if test "x$enable_dependency_tracking" != xno; then
4651 depcc="$CC" am_compiler_list=
4653 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4654 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4655 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4659 # We make a subdir and do the tests there. Otherwise we can end up
4660 # making bogus files that we don't know about and never remove. For
4661 # instance it was reported that on HP-UX the gcc test will end up
4662 # making a dummy file named `D' -- because `-MD' means `put the output
4665 # Copy depcomp to subdir because otherwise we won't find it if we're
4666 # using a relative directory.
4667 cp "$am_depcomp" conftest.dir
4669 # We will build objects and dependencies in a subdirectory because
4670 # it helps to detect inapplicable dependency modes. For instance
4671 # both Tru64's cc and ICC support -MD to output dependencies as a
4672 # side effect of compilation, but ICC will put the dependencies in
4673 # the current directory while Tru64 will put them in the object
4677 am_cv_CC_dependencies_compiler_type=none
4678 if test "$am_compiler_list" = ""; then
4679 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4681 for depmode in $am_compiler_list; do
4682 # Setup a source with many dependencies, because some compilers
4683 # like to wrap large dependency lists on column 80 (with \), and
4684 # we should not choose a depcomp mode which is confused by this.
4686 # We need to recreate these files for each test, as the compiler may
4687 # overwrite some of them when testing with obscure command lines.
4688 # This happens at least with the AIX C compiler.
4690 for i in 1 2 3 4 5 6; do
4691 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4692 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4693 # Solaris 8's {/usr,}/bin/sh.
4694 touch sub/conftst$i.h
4696 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4700 # after this tag, mechanisms are not by side-effect, so they'll
4701 # only be used when explicitly requested
4702 if test "x$enable_dependency_tracking" = xyes; then
4710 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4711 # mode. It turns out that the SunPro C++ compiler does not properly
4712 # handle `-M -o', and we need to detect this.
4713 if depmode=$depmode \
4714 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4715 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4716 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4717 >/dev/null 2>conftest.err &&
4718 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4719 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4720 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4721 # icc doesn't choke on unknown options, it will just issue warnings
4722 # or remarks (even with -Werror). So we grep stderr for any message
4723 # that says an option was ignored or not supported.
4724 # When given -MP, icc 7.0 and 7.1 complain thusly:
4725 # icc: Command line warning: ignoring option '-M'; no argument required
4726 # The diagnosis changed in icc 8.0:
4727 # icc: Command line remark: option '-MP' not supported
4728 if (grep 'ignoring option' conftest.err ||
4729 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4730 am_cv_CC_dependencies_compiler_type=$depmode
4739 am_cv_CC_dependencies_compiler_type=none
4743 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4744 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4745 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4750 test "x$enable_dependency_tracking" != xno \
4751 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4753 am__fastdepCC_FALSE='#'
4755 am__fastdepCC_TRUE='#'
4756 am__fastdepCC_FALSE=
4763 DUMP_PROGRAMS="ufsdump dump backup"
4771 cat >>confdefs.h <<\_ACEOF
4772 #define STATFS_OSF1 1
4777 DUMP_PROGRAMS="dump "$DUMP_PROGRAMS
4778 : ${USE_RUNDUMP=yes}
4789 GETCONF_LFS="XBS5_ILP32_OFFBIG"
4792 AMANDA_CPPFLAGS="-D__STDC_EXT__ $AMANDA_CPPFLAGS"
4795 AMANDA_CFLAGS="-Ae $AMANDA_CFLAGS"
4800 GETCONF_LFS="XBS5_ILP32_OFFBIG"
4801 DUMP_PROGRAMS="backup "$DUMP_PROGRAMS
4803 cat >>confdefs.h <<\_ACEOF
4804 #define AIX_TAPEIO 1
4808 cat >>confdefs.h <<\_ACEOF
4809 #define AIX_BACKUP 1
4813 m88k-motorola-sysv4)
4841 : ${USE_RUNDUMP=yes}
4843 cat >>confdefs.h <<\_ACEOF
4844 #define STATFS_ULTRIX 1
4851 cat >>confdefs.h <<\_ACEOF
4852 #define UWARE_TAPEIO 1
4863 cat >>confdefs.h <<\_ACEOF
4864 #define STATFS_SCO_OS5 1
4875 cat >>confdefs.h <<\_ACEOF
4876 #define IGNORE_TAR_ERRORS 1
4879 # Cygwin needs PATH to find cygwin1.dll
4881 cat >>confdefs.h <<\_ACEOF
4882 #define NEED_PATH_ENV 1
4886 cat >>confdefs.h <<\_ACEOF
4887 #define IGNORE_UID_CHECK 1
4891 cat >>confdefs.h <<\_ACEOF
4892 #define IGNORE_FSTAB 1
4896 cat >>confdefs.h <<\_ACEOF
4897 #define DONT_SUID_ROOT 1
4900 NEED_SETUID_CLIENT=false
4901 NEED_RUNTIME_PSEUDO_RELOC=true
4907 This machine, target type $target, is not known
4908 to be fully supported by this configure script. If the
4909 installation of Amanda on this system succeeds or needed
4910 any patches, please email amanda-hackers@amanda.org with
4911 the patches or an indication of the sucess or failure of
4912 the Amanda installation on your system.
4919 if test -n "$dump_returns_1"; then
4921 cat >>confdefs.h <<\_ACEOF
4922 #define DUMP_RETURNS_1 1
4927 if test -n "$xenix_tapeio"; then
4929 cat >>confdefs.h <<\_ACEOF
4930 #define XENIX_TAPEIO 1
4935 AMANDA_CFLAGS="$AMANDA_CFLAGS $KRB4INCLUDES"
4936 AMANDA_CPPFLAGS="$AMANDA_CPPFLAGS $KRB4INCLUDES"
4937 AMANDA_LDFLAGS="$AMANDA_LDFLAGS $KRB4LDFLAGS"
4938 AMANDA_LIBS="$KRB4LIBS $AMANDA_LIBS"
4939 CFLAGS="$CFLAGS $AMANDA_CFLAGS"
4940 CPPFLAGS="$CPPFLAGS $AMANDA_CPPFLAGS"
4941 LDFLAGS="$LDFLAGS $AMANDA_LDFLAGS"
4942 LIBS="$AMANDA_LIBS $LIBS"
4945 : ${MT_FILE_FLAG="-f"}
4948 cat >>confdefs.h <<_ACEOF
4949 #define MT_FILE_FLAG "$MT_FILE_FLAG"
4955 ac_cpp='$CPP $CPPFLAGS'
4956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4959 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4960 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4961 # On Suns, sometimes $CPP names a directory.
4962 if test -n "$CPP" && test -d "$CPP"; then
4965 if test -z "$CPP"; then
4966 if test "${ac_cv_prog_CPP+set}" = set; then
4967 echo $ECHO_N "(cached) $ECHO_C" >&6
4969 # Double quotes because CPP needs to be expanded
4970 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4973 for ac_c_preproc_warn_flag in '' yes
4975 # Use a header file that comes with gcc, so configuring glibc
4976 # with a fresh cross-compiler works.
4977 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4978 # <limits.h> exists even on freestanding compilers.
4979 # On the NeXT, cc -E runs the code through the compiler's parser,
4980 # not just through cpp. "Syntax error" is here to catch this case.
4981 cat >conftest.$ac_ext <<_ACEOF
4984 cat confdefs.h >>conftest.$ac_ext
4985 cat >>conftest.$ac_ext <<_ACEOF
4986 /* end confdefs.h. */
4988 # include <limits.h>
4990 # include <assert.h>
4994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4997 grep -v '^ *+' conftest.er1 >conftest.err
4999 cat conftest.err >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } >/dev/null; then
5002 if test -s conftest.err; then
5003 ac_cpp_err=$ac_c_preproc_warn_flag
5004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5011 if test -z "$ac_cpp_err"; then
5014 echo "$as_me: failed program was:" >&5
5015 sed 's/^/| /' conftest.$ac_ext >&5
5017 # Broken: fails on valid input.
5020 rm -f conftest.err conftest.$ac_ext
5022 # OK, works on sane cases. Now check whether non-existent headers
5023 # can be detected and how.
5024 cat >conftest.$ac_ext <<_ACEOF
5027 cat confdefs.h >>conftest.$ac_ext
5028 cat >>conftest.$ac_ext <<_ACEOF
5029 /* end confdefs.h. */
5030 #include <ac_nonexistent.h>
5032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5035 grep -v '^ *+' conftest.er1 >conftest.err
5037 cat conftest.err >&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } >/dev/null; then
5040 if test -s conftest.err; then
5041 ac_cpp_err=$ac_c_preproc_warn_flag
5042 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5049 if test -z "$ac_cpp_err"; then
5050 # Broken: success on invalid input.
5053 echo "$as_me: failed program was:" >&5
5054 sed 's/^/| /' conftest.$ac_ext >&5
5056 # Passes both tests.
5060 rm -f conftest.err conftest.$ac_ext
5063 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5064 rm -f conftest.err conftest.$ac_ext
5065 if $ac_preproc_ok; then
5077 echo "$as_me:$LINENO: result: $CPP" >&5
5078 echo "${ECHO_T}$CPP" >&6
5080 for ac_c_preproc_warn_flag in '' yes
5082 # Use a header file that comes with gcc, so configuring glibc
5083 # with a fresh cross-compiler works.
5084 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5085 # <limits.h> exists even on freestanding compilers.
5086 # On the NeXT, cc -E runs the code through the compiler's parser,
5087 # not just through cpp. "Syntax error" is here to catch this case.
5088 cat >conftest.$ac_ext <<_ACEOF
5091 cat confdefs.h >>conftest.$ac_ext
5092 cat >>conftest.$ac_ext <<_ACEOF
5093 /* end confdefs.h. */
5095 # include <limits.h>
5097 # include <assert.h>
5101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5104 grep -v '^ *+' conftest.er1 >conftest.err
5106 cat conftest.err >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } >/dev/null; then
5109 if test -s conftest.err; then
5110 ac_cpp_err=$ac_c_preproc_warn_flag
5111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5118 if test -z "$ac_cpp_err"; then
5121 echo "$as_me: failed program was:" >&5
5122 sed 's/^/| /' conftest.$ac_ext >&5
5124 # Broken: fails on valid input.
5127 rm -f conftest.err conftest.$ac_ext
5129 # OK, works on sane cases. Now check whether non-existent headers
5130 # can be detected and how.
5131 cat >conftest.$ac_ext <<_ACEOF
5134 cat confdefs.h >>conftest.$ac_ext
5135 cat >>conftest.$ac_ext <<_ACEOF
5136 /* end confdefs.h. */
5137 #include <ac_nonexistent.h>
5139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5142 grep -v '^ *+' conftest.er1 >conftest.err
5144 cat conftest.err >&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); } >/dev/null; then
5147 if test -s conftest.err; then
5148 ac_cpp_err=$ac_c_preproc_warn_flag
5149 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5156 if test -z "$ac_cpp_err"; then
5157 # Broken: success on invalid input.
5160 echo "$as_me: failed program was:" >&5
5161 sed 's/^/| /' conftest.$ac_ext >&5
5163 # Passes both tests.
5167 rm -f conftest.err conftest.$ac_ext
5170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5171 rm -f conftest.err conftest.$ac_ext
5172 if $ac_preproc_ok; then
5175 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5176 See \`config.log' for more details." >&5
5177 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5178 See \`config.log' for more details." >&2;}
5179 { (exit 1); exit 1; }; }
5183 ac_cpp='$CPP $CPPFLAGS'
5184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5189 echo "$as_me:$LINENO: checking for egrep" >&5
5190 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5191 if test "${ac_cv_prog_egrep+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5195 then ac_cv_prog_egrep='grep -E'
5196 else ac_cv_prog_egrep='egrep'
5199 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5200 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5201 EGREP=$ac_cv_prog_egrep
5204 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5205 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5206 if test "${ac_cv_header_stdc+set}" = set; then
5207 echo $ECHO_N "(cached) $ECHO_C" >&6
5209 cat >conftest.$ac_ext <<_ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h. */
5228 rm -f conftest.$ac_objext
5229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5230 (eval $ac_compile) 2>conftest.er1
5232 grep -v '^ *+' conftest.er1 >conftest.err
5234 cat conftest.err >&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } &&
5237 { ac_try='test -z "$ac_c_werror_flag"
5238 || test ! -s conftest.err'
5239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }; } &&
5244 { ac_try='test -s conftest.$ac_objext'
5245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); }; }; then
5250 ac_cv_header_stdc=yes
5252 echo "$as_me: failed program was:" >&5
5253 sed 's/^/| /' conftest.$ac_ext >&5
5255 ac_cv_header_stdc=no
5257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5259 if test $ac_cv_header_stdc = yes; then
5260 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5261 cat >conftest.$ac_ext <<_ACEOF
5264 cat confdefs.h >>conftest.$ac_ext
5265 cat >>conftest.$ac_ext <<_ACEOF
5266 /* end confdefs.h. */
5270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5271 $EGREP "memchr" >/dev/null 2>&1; then
5274 ac_cv_header_stdc=no
5280 if test $ac_cv_header_stdc = yes; then
5281 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5282 cat >conftest.$ac_ext <<_ACEOF
5285 cat confdefs.h >>conftest.$ac_ext
5286 cat >>conftest.$ac_ext <<_ACEOF
5287 /* end confdefs.h. */
5291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5292 $EGREP "free" >/dev/null 2>&1; then
5295 ac_cv_header_stdc=no
5301 if test $ac_cv_header_stdc = yes; then
5302 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5303 if test "$cross_compiling" = yes; then
5306 cat >conftest.$ac_ext <<_ACEOF
5309 cat confdefs.h >>conftest.$ac_ext
5310 cat >>conftest.$ac_ext <<_ACEOF
5311 /* end confdefs.h. */
5313 #if ((' ' & 0x0FF) == 0x020)
5314 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5315 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5317 # define ISLOWER(c) \
5318 (('a' <= (c) && (c) <= 'i') \
5319 || ('j' <= (c) && (c) <= 'r') \
5320 || ('s' <= (c) && (c) <= 'z'))
5321 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5324 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5329 for (i = 0; i < 256; i++)
5330 if (XOR (islower (i), ISLOWER (i))
5331 || toupper (i) != TOUPPER (i))
5336 rm -f conftest$ac_exeext
5337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5338 (eval $ac_link) 2>&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; }; then
5349 echo "$as_me: program exited with status $ac_status" >&5
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5354 ac_cv_header_stdc=no
5356 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5360 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5361 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5362 if test $ac_cv_header_stdc = yes; then
5364 cat >>confdefs.h <<\_ACEOF
5365 #define STDC_HEADERS 1
5370 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5380 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5381 inttypes.h stdint.h unistd.h
5383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5384 echo "$as_me:$LINENO: checking for $ac_header" >&5
5385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5389 cat >conftest.$ac_ext <<_ACEOF
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h. */
5395 $ac_includes_default
5397 #include <$ac_header>
5399 rm -f conftest.$ac_objext
5400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5401 (eval $ac_compile) 2>conftest.er1
5403 grep -v '^ *+' conftest.er1 >conftest.err
5405 cat conftest.err >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); } &&
5408 { ac_try='test -z "$ac_c_werror_flag"
5409 || test ! -s conftest.err'
5410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); }; } &&
5415 { ac_try='test -s conftest.$ac_objext'
5416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); }; }; then
5421 eval "$as_ac_Header=yes"
5423 echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5426 eval "$as_ac_Header=no"
5428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5433 cat >>confdefs.h <<_ACEOF
5434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5442 # ------ AX CREATE STDINT H -------------------------------------
5443 echo "$as_me:$LINENO: checking for stdint types" >&5
5444 echo $ECHO_N "checking for stdint types... $ECHO_C" >&6
5445 ac_stdint_h=`echo common-src/amanda-int.h`
5446 # try to shortcircuit - if the default include path of the compiler
5447 # can find a "stdint.h" header then we assume that all compilers can.
5448 if test "${ac_cv_header_stdint_t+set}" = set; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5452 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
5453 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
5454 old_CFLAGS="$CFLAGS" ; CFLAGS=""
5455 cat >conftest.$ac_ext <<_ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5465 int_least32_t v = 0;
5470 rm -f conftest.$ac_objext
5471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5472 (eval $ac_compile) 2>conftest.er1
5474 grep -v '^ *+' conftest.er1 >conftest.err
5476 cat conftest.err >&5
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); } &&
5479 { ac_try='test -z "$ac_c_werror_flag"
5480 || test ! -s conftest.err'
5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); }; } &&
5486 { ac_try='test -s conftest.$ac_objext'
5487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); }; }; then
5492 ac_cv_stdint_result="(assuming C99 compatible system)"
5493 ac_cv_header_stdint_t="stdint.h";
5495 echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.$ac_ext >&5
5498 ac_cv_header_stdint_t=""
5500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5501 CXXFLAGS="$old_CXXFLAGS"
5502 CPPFLAGS="$old_CPPFLAGS"
5503 CFLAGS="$old_CFLAGS"
5507 v="... $ac_cv_header_stdint_h"
5508 if test "$ac_stdint_h" = "stdint.h" ; then
5509 echo "$as_me:$LINENO: result: (are you sure you want them in ./stdint.h?)" >&5
5510 echo "${ECHO_T}(are you sure you want them in ./stdint.h?)" >&6
5511 elif test "$ac_stdint_h" = "inttypes.h" ; then
5512 echo "$as_me:$LINENO: result: (are you sure you want them in ./inttypes.h?)" >&5
5513 echo "${ECHO_T}(are you sure you want them in ./inttypes.h?)" >&6
5514 elif test "_$ac_cv_header_stdint_t" = "_" ; then
5515 echo "$as_me:$LINENO: result: (putting them into $ac_stdint_h)$v" >&5
5516 echo "${ECHO_T}(putting them into $ac_stdint_h)$v" >&6
5518 ac_cv_header_stdint="$ac_cv_header_stdint_t"
5519 echo "$as_me:$LINENO: result: $ac_cv_header_stdint (shortcircuit)" >&5
5520 echo "${ECHO_T}$ac_cv_header_stdint (shortcircuit)" >&6
5523 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
5526 inttype_headers=`echo | sed -e 's/,/ /g'`
5528 ac_cv_stdint_result="(no helpful system typedefs seen)"
5529 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
5530 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
5531 if test "${ac_cv_header_stdint_x+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5535 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
5536 echo "$as_me:$LINENO: result: (..)" >&5
5537 echo "${ECHO_T}(..)" >&6
5538 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
5539 unset ac_cv_type_uintptr_t
5540 unset ac_cv_type_uint64_t
5541 echo "$as_me:$LINENO: checking for uintptr_t" >&5
5542 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
5543 if test "${ac_cv_type_uintptr_t+set}" = set; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5546 cat >conftest.$ac_ext <<_ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5557 if ((uintptr_t *) 0)
5559 if (sizeof (uintptr_t))
5565 rm -f conftest.$ac_objext
5566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5567 (eval $ac_compile) 2>conftest.er1
5569 grep -v '^ *+' conftest.er1 >conftest.err
5571 cat conftest.err >&5
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } &&
5574 { ac_try='test -z "$ac_c_werror_flag"
5575 || test ! -s conftest.err'
5576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; } &&
5581 { ac_try='test -s conftest.$ac_objext'
5582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); }; }; then
5587 ac_cv_type_uintptr_t=yes
5589 echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5592 ac_cv_type_uintptr_t=no
5594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5596 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
5597 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
5598 if test $ac_cv_type_uintptr_t = yes; then
5599 ac_cv_header_stdint_x=$i
5604 echo "$as_me:$LINENO: checking for uint64_t" >&5
5605 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5606 if test "${ac_cv_type_uint64_t+set}" = set; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5609 cat >conftest.$ac_ext <<_ACEOF
5612 cat confdefs.h >>conftest.$ac_ext
5613 cat >>conftest.$ac_ext <<_ACEOF
5614 /* end confdefs.h. */
5622 if (sizeof (uint64_t))
5628 rm -f conftest.$ac_objext
5629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5630 (eval $ac_compile) 2>conftest.er1
5632 grep -v '^ *+' conftest.er1 >conftest.err
5634 cat conftest.err >&5
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } &&
5637 { ac_try='test -z "$ac_c_werror_flag"
5638 || test ! -s conftest.err'
5639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; } &&
5644 { ac_try='test -s conftest.$ac_objext'
5645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }; }; then
5650 ac_cv_type_uint64_t=yes
5652 echo "$as_me: failed program was:" >&5
5653 sed 's/^/| /' conftest.$ac_ext >&5
5655 ac_cv_type_uint64_t=no
5657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5659 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5660 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5661 if test $ac_cv_type_uint64_t = yes; then
5667 ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
5670 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
5671 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
5674 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5
5675 echo "${ECHO_T}$ac_cv_header_stdint_x" >&6
5677 if test "_$ac_cv_header_stdint_x" = "_" ; then
5678 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
5679 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
5680 if test "${ac_cv_header_stdint_o+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5684 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
5685 echo "$as_me:$LINENO: result: (..)" >&5
5686 echo "${ECHO_T}(..)" >&6
5687 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
5688 unset ac_cv_type_uint32_t
5689 unset ac_cv_type_uint64_t
5690 echo "$as_me:$LINENO: checking for uint32_t" >&5
5691 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5692 if test "${ac_cv_type_uint32_t+set}" = set; then
5693 echo $ECHO_N "(cached) $ECHO_C" >&6
5695 cat >conftest.$ac_ext <<_ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5708 if (sizeof (uint32_t))
5714 rm -f conftest.$ac_objext
5715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5716 (eval $ac_compile) 2>conftest.er1
5718 grep -v '^ *+' conftest.er1 >conftest.err
5720 cat conftest.err >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } &&
5723 { ac_try='test -z "$ac_c_werror_flag"
5724 || test ! -s conftest.err'
5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; } &&
5730 { ac_try='test -s conftest.$ac_objext'
5731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; }; then
5736 ac_cv_type_uint32_t=yes
5738 echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5741 ac_cv_type_uint32_t=no
5743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5745 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5746 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5747 if test $ac_cv_type_uint32_t = yes; then
5748 ac_cv_header_stdint_o=$i
5753 echo "$as_me:$LINENO: checking for uint64_t" >&5
5754 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5755 if test "${ac_cv_type_uint64_t+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5758 cat >conftest.$ac_ext <<_ACEOF
5761 cat confdefs.h >>conftest.$ac_ext
5762 cat >>conftest.$ac_ext <<_ACEOF
5763 /* end confdefs.h. */
5771 if (sizeof (uint64_t))
5777 rm -f conftest.$ac_objext
5778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5779 (eval $ac_compile) 2>conftest.er1
5781 grep -v '^ *+' conftest.er1 >conftest.err
5783 cat conftest.err >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } &&
5786 { ac_try='test -z "$ac_c_werror_flag"
5787 || test ! -s conftest.err'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; } &&
5793 { ac_try='test -s conftest.$ac_objext'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; }; then
5799 ac_cv_type_uint64_t=yes
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5804 ac_cv_type_uint64_t=no
5806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5808 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5809 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5810 if test $ac_cv_type_uint64_t = yes; then
5816 ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
5819 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
5820 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
5823 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5
5824 echo "${ECHO_T}$ac_cv_header_stdint_o" >&6
5827 if test "_$ac_cv_header_stdint_x" = "_" ; then
5828 if test "_$ac_cv_header_stdint_o" = "_" ; then
5829 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
5830 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
5831 if test "${ac_cv_header_stdint_u+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
5836 echo "$as_me:$LINENO: result: (..)" >&5
5837 echo "${ECHO_T}(..)" >&6
5838 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
5839 unset ac_cv_type_u_int32_t
5840 unset ac_cv_type_u_int64_t
5841 echo "$as_me:$LINENO: checking for u_int32_t" >&5
5842 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
5843 if test "${ac_cv_type_u_int32_t+set}" = set; then
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
5846 cat >conftest.$ac_ext <<_ACEOF
5849 cat confdefs.h >>conftest.$ac_ext
5850 cat >>conftest.$ac_ext <<_ACEOF
5851 /* end confdefs.h. */
5857 if ((u_int32_t *) 0)
5859 if (sizeof (u_int32_t))
5865 rm -f conftest.$ac_objext
5866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5867 (eval $ac_compile) 2>conftest.er1
5869 grep -v '^ *+' conftest.er1 >conftest.err
5871 cat conftest.err >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } &&
5874 { ac_try='test -z "$ac_c_werror_flag"
5875 || test ! -s conftest.err'
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; } &&
5881 { ac_try='test -s conftest.$ac_objext'
5882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; }; then
5887 ac_cv_type_u_int32_t=yes
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5892 ac_cv_type_u_int32_t=no
5894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5896 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
5897 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
5898 if test $ac_cv_type_u_int32_t = yes; then
5899 ac_cv_header_stdint_u=$i
5904 echo "$as_me:$LINENO: checking for u_int64_t" >&5
5905 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
5906 if test "${ac_cv_type_u_int64_t+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 cat >conftest.$ac_ext <<_ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5920 if ((u_int64_t *) 0)
5922 if (sizeof (u_int64_t))
5928 rm -f conftest.$ac_objext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930 (eval $ac_compile) 2>conftest.er1
5932 grep -v '^ *+' conftest.er1 >conftest.err
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
5937 { ac_try='test -z "$ac_c_werror_flag"
5938 || test ! -s conftest.err'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try='test -s conftest.$ac_objext'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5950 ac_cv_type_u_int64_t=yes
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5955 ac_cv_type_u_int64_t=no
5957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5959 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
5960 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
5961 if test $ac_cv_type_u_int64_t = yes; then
5967 ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
5970 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
5971 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
5974 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5
5975 echo "${ECHO_T}$ac_cv_header_stdint_u" >&6
5978 if test "_$ac_cv_header_stdint_x" = "_" ; then
5979 echo "$as_me:$LINENO: checking for stdint datatype model" >&5
5980 echo $ECHO_N "checking for stdint datatype model... $ECHO_C" >&6
5981 echo "$as_me:$LINENO: result: (..)" >&5
5982 echo "${ECHO_T}(..)" >&6
5983 echo "$as_me:$LINENO: checking for char" >&5
5984 echo $ECHO_N "checking for char... $ECHO_C" >&6
5985 if test "${ac_cv_type_char+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5988 cat >conftest.$ac_ext <<_ACEOF
5991 cat confdefs.h >>conftest.$ac_ext
5992 cat >>conftest.$ac_ext <<_ACEOF
5993 /* end confdefs.h. */
5994 $ac_includes_default
6006 rm -f conftest.$ac_objext
6007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6008 (eval $ac_compile) 2>conftest.er1
6010 grep -v '^ *+' conftest.er1 >conftest.err
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } &&
6015 { ac_try='test -z "$ac_c_werror_flag"
6016 || test ! -s conftest.err'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; } &&
6022 { ac_try='test -s conftest.$ac_objext'
6023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; }; then
6030 echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6037 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
6038 echo "${ECHO_T}$ac_cv_type_char" >&6
6040 echo "$as_me:$LINENO: checking size of char" >&5
6041 echo $ECHO_N "checking size of char... $ECHO_C" >&6
6042 if test "${ac_cv_sizeof_char+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 if test "$ac_cv_type_char" = yes; then
6046 # The cast to unsigned long works around a bug in the HP C Compiler
6047 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6048 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6049 # This bug is HP SR number 8606223364.
6050 if test "$cross_compiling" = yes; then
6051 # Depending upon the size, compute the lo and hi bounds.
6052 cat >conftest.$ac_ext <<_ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6058 $ac_includes_default
6062 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
6069 rm -f conftest.$ac_objext
6070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6071 (eval $ac_compile) 2>conftest.er1
6073 grep -v '^ *+' conftest.er1 >conftest.err
6075 cat conftest.err >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } &&
6078 { ac_try='test -z "$ac_c_werror_flag"
6079 || test ! -s conftest.err'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; } &&
6085 { ac_try='test -s conftest.$ac_objext'
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; }; then
6093 cat >conftest.$ac_ext <<_ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h. */
6099 $ac_includes_default
6103 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
6110 rm -f conftest.$ac_objext
6111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6112 (eval $ac_compile) 2>conftest.er1
6114 grep -v '^ *+' conftest.er1 >conftest.err
6116 cat conftest.err >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); } &&
6119 { ac_try='test -z "$ac_c_werror_flag"
6120 || test ! -s conftest.err'
6121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); }; } &&
6126 { ac_try='test -s conftest.$ac_objext'
6127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); }; }; then
6132 ac_hi=$ac_mid; break
6134 echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.$ac_ext >&5
6137 ac_lo=`expr $ac_mid + 1`
6138 if test $ac_lo -le $ac_mid; then
6142 ac_mid=`expr 2 '*' $ac_mid + 1`
6144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6147 echo "$as_me: failed program was:" >&5
6148 sed 's/^/| /' conftest.$ac_ext >&5
6150 cat >conftest.$ac_ext <<_ACEOF
6153 cat confdefs.h >>conftest.$ac_ext
6154 cat >>conftest.$ac_ext <<_ACEOF
6155 /* end confdefs.h. */
6156 $ac_includes_default
6160 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
6167 rm -f conftest.$ac_objext
6168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6169 (eval $ac_compile) 2>conftest.er1
6171 grep -v '^ *+' conftest.er1 >conftest.err
6173 cat conftest.err >&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); } &&
6176 { ac_try='test -z "$ac_c_werror_flag"
6177 || test ! -s conftest.err'
6178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }; } &&
6183 { ac_try='test -s conftest.$ac_objext'
6184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }; }; then
6191 cat >conftest.$ac_ext <<_ACEOF
6194 cat confdefs.h >>conftest.$ac_ext
6195 cat >>conftest.$ac_ext <<_ACEOF
6196 /* end confdefs.h. */
6197 $ac_includes_default
6201 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
6208 rm -f conftest.$ac_objext
6209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6210 (eval $ac_compile) 2>conftest.er1
6212 grep -v '^ *+' conftest.er1 >conftest.err
6214 cat conftest.err >&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); } &&
6217 { ac_try='test -z "$ac_c_werror_flag"
6218 || test ! -s conftest.err'
6219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); }; } &&
6224 { ac_try='test -s conftest.$ac_objext'
6225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); }; }; then
6230 ac_lo=$ac_mid; break
6232 echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.$ac_ext >&5
6235 ac_hi=`expr '(' $ac_mid ')' - 1`
6236 if test $ac_mid -le $ac_hi; then
6240 ac_mid=`expr 2 '*' $ac_mid`
6242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6245 echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6253 # Binary search between lo and hi bounds.
6254 while test "x$ac_lo" != "x$ac_hi"; do
6255 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6256 cat >conftest.$ac_ext <<_ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6262 $ac_includes_default
6266 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
6273 rm -f conftest.$ac_objext
6274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6275 (eval $ac_compile) 2>conftest.er1
6277 grep -v '^ *+' conftest.er1 >conftest.err
6279 cat conftest.err >&5
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); } &&
6282 { ac_try='test -z "$ac_c_werror_flag"
6283 || test ! -s conftest.err'
6284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); }; } &&
6289 { ac_try='test -s conftest.$ac_objext'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; }; then
6297 echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6300 ac_lo=`expr '(' $ac_mid ')' + 1`
6302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6305 ?*) ac_cv_sizeof_char=$ac_lo;;
6306 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
6307 See \`config.log' for more details." >&5
6308 echo "$as_me: error: cannot compute sizeof (char), 77
6309 See \`config.log' for more details." >&2;}
6310 { (exit 1); exit 1; }; } ;;
6313 if test "$cross_compiling" = yes; then
6314 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6315 See \`config.log' for more details." >&5
6316 echo "$as_me: error: cannot run test program while cross compiling
6317 See \`config.log' for more details." >&2;}
6318 { (exit 1); exit 1; }; }
6320 cat >conftest.$ac_ext <<_ACEOF
6323 cat confdefs.h >>conftest.$ac_ext
6324 cat >>conftest.$ac_ext <<_ACEOF
6325 /* end confdefs.h. */
6326 $ac_includes_default
6327 long longval () { return (long) (sizeof (char)); }
6328 unsigned long ulongval () { return (long) (sizeof (char)); }
6335 FILE *f = fopen ("conftest.val", "w");
6338 if (((long) (sizeof (char))) < 0)
6340 long i = longval ();
6341 if (i != ((long) (sizeof (char))))
6343 fprintf (f, "%ld\n", i);
6347 unsigned long i = ulongval ();
6348 if (i != ((long) (sizeof (char))))
6350 fprintf (f, "%lu\n", i);
6352 exit (ferror (f) || fclose (f) != 0);
6358 rm -f conftest$ac_exeext
6359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6360 (eval $ac_link) 2>&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }; }; then
6369 ac_cv_sizeof_char=`cat conftest.val`
6371 echo "$as_me: program exited with status $ac_status" >&5
6372 echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6376 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
6377 See \`config.log' for more details." >&5
6378 echo "$as_me: error: cannot compute sizeof (char), 77
6379 See \`config.log' for more details." >&2;}
6380 { (exit 1); exit 1; }; }
6382 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6390 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
6391 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
6392 cat >>confdefs.h <<_ACEOF
6393 #define SIZEOF_CHAR $ac_cv_sizeof_char
6397 echo "$as_me:$LINENO: checking for short" >&5
6398 echo $ECHO_N "checking for short... $ECHO_C" >&6
6399 if test "${ac_cv_type_short+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6402 cat >conftest.$ac_ext <<_ACEOF
6405 cat confdefs.h >>conftest.$ac_ext
6406 cat >>conftest.$ac_ext <<_ACEOF
6407 /* end confdefs.h. */
6408 $ac_includes_default
6420 rm -f conftest.$ac_objext
6421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6422 (eval $ac_compile) 2>conftest.er1
6424 grep -v '^ *+' conftest.er1 >conftest.err
6426 cat conftest.err >&5
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); } &&
6429 { ac_try='test -z "$ac_c_werror_flag"
6430 || test ! -s conftest.err'
6431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); }; } &&
6436 { ac_try='test -s conftest.$ac_objext'
6437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); }; }; then
6442 ac_cv_type_short=yes
6444 echo "$as_me: failed program was:" >&5
6445 sed 's/^/| /' conftest.$ac_ext >&5
6449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6451 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
6452 echo "${ECHO_T}$ac_cv_type_short" >&6
6454 echo "$as_me:$LINENO: checking size of short" >&5
6455 echo $ECHO_N "checking size of short... $ECHO_C" >&6
6456 if test "${ac_cv_sizeof_short+set}" = set; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 if test "$ac_cv_type_short" = yes; then
6460 # The cast to unsigned long works around a bug in the HP C Compiler
6461 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6462 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6463 # This bug is HP SR number 8606223364.
6464 if test "$cross_compiling" = yes; then
6465 # Depending upon the size, compute the lo and hi bounds.
6466 cat >conftest.$ac_ext <<_ACEOF
6469 cat confdefs.h >>conftest.$ac_ext
6470 cat >>conftest.$ac_ext <<_ACEOF
6471 /* end confdefs.h. */
6472 $ac_includes_default
6476 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
6483 rm -f conftest.$ac_objext
6484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6485 (eval $ac_compile) 2>conftest.er1
6487 grep -v '^ *+' conftest.er1 >conftest.err
6489 cat conftest.err >&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } &&
6492 { ac_try='test -z "$ac_c_werror_flag"
6493 || test ! -s conftest.err'
6494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); }; } &&
6499 { ac_try='test -s conftest.$ac_objext'
6500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }; }; then
6507 cat >conftest.$ac_ext <<_ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h. */
6513 $ac_includes_default
6517 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6524 rm -f conftest.$ac_objext
6525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6526 (eval $ac_compile) 2>conftest.er1
6528 grep -v '^ *+' conftest.er1 >conftest.err
6530 cat conftest.err >&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); } &&
6533 { ac_try='test -z "$ac_c_werror_flag"
6534 || test ! -s conftest.err'
6535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; } &&
6540 { ac_try='test -s conftest.$ac_objext'
6541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); }; }; then
6546 ac_hi=$ac_mid; break
6548 echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6551 ac_lo=`expr $ac_mid + 1`
6552 if test $ac_lo -le $ac_mid; then
6556 ac_mid=`expr 2 '*' $ac_mid + 1`
6558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6561 echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.$ac_ext >&5
6564 cat >conftest.$ac_ext <<_ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6570 $ac_includes_default
6574 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
6581 rm -f conftest.$ac_objext
6582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6583 (eval $ac_compile) 2>conftest.er1
6585 grep -v '^ *+' conftest.er1 >conftest.err
6587 cat conftest.err >&5
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); } &&
6590 { ac_try='test -z "$ac_c_werror_flag"
6591 || test ! -s conftest.err'
6592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); }; } &&
6597 { ac_try='test -s conftest.$ac_objext'
6598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); }; }; then
6605 cat >conftest.$ac_ext <<_ACEOF
6608 cat confdefs.h >>conftest.$ac_ext
6609 cat >>conftest.$ac_ext <<_ACEOF
6610 /* end confdefs.h. */
6611 $ac_includes_default
6615 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
6622 rm -f conftest.$ac_objext
6623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6624 (eval $ac_compile) 2>conftest.er1
6626 grep -v '^ *+' conftest.er1 >conftest.err
6628 cat conftest.err >&5
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); } &&
6631 { ac_try='test -z "$ac_c_werror_flag"
6632 || test ! -s conftest.err'
6633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); }; } &&
6638 { ac_try='test -s conftest.$ac_objext'
6639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); }; }; then
6644 ac_lo=$ac_mid; break
6646 echo "$as_me: failed program was:" >&5
6647 sed 's/^/| /' conftest.$ac_ext >&5
6649 ac_hi=`expr '(' $ac_mid ')' - 1`
6650 if test $ac_mid -le $ac_hi; then
6654 ac_mid=`expr 2 '*' $ac_mid`
6656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6659 echo "$as_me: failed program was:" >&5
6660 sed 's/^/| /' conftest.$ac_ext >&5
6664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6667 # Binary search between lo and hi bounds.
6668 while test "x$ac_lo" != "x$ac_hi"; do
6669 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6670 cat >conftest.$ac_ext <<_ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h. */
6676 $ac_includes_default
6680 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6687 rm -f conftest.$ac_objext
6688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6689 (eval $ac_compile) 2>conftest.er1
6691 grep -v '^ *+' conftest.er1 >conftest.err
6693 cat conftest.err >&5
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); } &&
6696 { ac_try='test -z "$ac_c_werror_flag"
6697 || test ! -s conftest.err'
6698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); }; } &&
6703 { ac_try='test -s conftest.$ac_objext'
6704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); }; }; then
6711 echo "$as_me: failed program was:" >&5
6712 sed 's/^/| /' conftest.$ac_ext >&5
6714 ac_lo=`expr '(' $ac_mid ')' + 1`
6716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6719 ?*) ac_cv_sizeof_short=$ac_lo;;
6720 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
6721 See \`config.log' for more details." >&5
6722 echo "$as_me: error: cannot compute sizeof (short), 77
6723 See \`config.log' for more details." >&2;}
6724 { (exit 1); exit 1; }; } ;;
6727 if test "$cross_compiling" = yes; then
6728 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6729 See \`config.log' for more details." >&5
6730 echo "$as_me: error: cannot run test program while cross compiling
6731 See \`config.log' for more details." >&2;}
6732 { (exit 1); exit 1; }; }
6734 cat >conftest.$ac_ext <<_ACEOF
6737 cat confdefs.h >>conftest.$ac_ext
6738 cat >>conftest.$ac_ext <<_ACEOF
6739 /* end confdefs.h. */
6740 $ac_includes_default
6741 long longval () { return (long) (sizeof (short)); }
6742 unsigned long ulongval () { return (long) (sizeof (short)); }
6749 FILE *f = fopen ("conftest.val", "w");
6752 if (((long) (sizeof (short))) < 0)
6754 long i = longval ();
6755 if (i != ((long) (sizeof (short))))
6757 fprintf (f, "%ld\n", i);
6761 unsigned long i = ulongval ();
6762 if (i != ((long) (sizeof (short))))
6764 fprintf (f, "%lu\n", i);
6766 exit (ferror (f) || fclose (f) != 0);
6772 rm -f conftest$ac_exeext
6773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6774 (eval $ac_link) 2>&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); }; }; then
6783 ac_cv_sizeof_short=`cat conftest.val`
6785 echo "$as_me: program exited with status $ac_status" >&5
6786 echo "$as_me: failed program was:" >&5
6787 sed 's/^/| /' conftest.$ac_ext >&5
6790 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
6791 See \`config.log' for more details." >&5
6792 echo "$as_me: error: cannot compute sizeof (short), 77
6793 See \`config.log' for more details." >&2;}
6794 { (exit 1); exit 1; }; }
6796 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6801 ac_cv_sizeof_short=0
6804 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6805 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
6806 cat >>confdefs.h <<_ACEOF
6807 #define SIZEOF_SHORT $ac_cv_sizeof_short
6811 echo "$as_me:$LINENO: checking for int" >&5
6812 echo $ECHO_N "checking for int... $ECHO_C" >&6
6813 if test "${ac_cv_type_int+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 cat >conftest.$ac_ext <<_ACEOF
6819 cat confdefs.h >>conftest.$ac_ext
6820 cat >>conftest.$ac_ext <<_ACEOF
6821 /* end confdefs.h. */
6822 $ac_includes_default
6834 rm -f conftest.$ac_objext
6835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6836 (eval $ac_compile) 2>conftest.er1
6838 grep -v '^ *+' conftest.er1 >conftest.err
6840 cat conftest.err >&5
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); } &&
6843 { ac_try='test -z "$ac_c_werror_flag"
6844 || test ! -s conftest.err'
6845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); }; } &&
6850 { ac_try='test -s conftest.$ac_objext'
6851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); }; }; then
6858 echo "$as_me: failed program was:" >&5
6859 sed 's/^/| /' conftest.$ac_ext >&5
6863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6865 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6866 echo "${ECHO_T}$ac_cv_type_int" >&6
6868 echo "$as_me:$LINENO: checking size of int" >&5
6869 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6870 if test "${ac_cv_sizeof_int+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6873 if test "$ac_cv_type_int" = yes; then
6874 # The cast to unsigned long works around a bug in the HP C Compiler
6875 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6876 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6877 # This bug is HP SR number 8606223364.
6878 if test "$cross_compiling" = yes; then
6879 # Depending upon the size, compute the lo and hi bounds.
6880 cat >conftest.$ac_ext <<_ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h. */
6886 $ac_includes_default
6890 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6897 rm -f conftest.$ac_objext
6898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6899 (eval $ac_compile) 2>conftest.er1
6901 grep -v '^ *+' conftest.er1 >conftest.err
6903 cat conftest.err >&5
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); } &&
6906 { ac_try='test -z "$ac_c_werror_flag"
6907 || test ! -s conftest.err'
6908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); }; } &&
6913 { ac_try='test -s conftest.$ac_objext'
6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; }; then
6921 cat >conftest.$ac_ext <<_ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6927 $ac_includes_default
6931 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6938 rm -f conftest.$ac_objext
6939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6940 (eval $ac_compile) 2>conftest.er1
6942 grep -v '^ *+' conftest.er1 >conftest.err
6944 cat conftest.err >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); } &&
6947 { ac_try='test -z "$ac_c_werror_flag"
6948 || test ! -s conftest.err'
6949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); }; } &&
6954 { ac_try='test -s conftest.$ac_objext'
6955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); }; }; then
6960 ac_hi=$ac_mid; break
6962 echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6965 ac_lo=`expr $ac_mid + 1`
6966 if test $ac_lo -le $ac_mid; then
6970 ac_mid=`expr 2 '*' $ac_mid + 1`
6972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6975 echo "$as_me: failed program was:" >&5
6976 sed 's/^/| /' conftest.$ac_ext >&5
6978 cat >conftest.$ac_ext <<_ACEOF
6981 cat confdefs.h >>conftest.$ac_ext
6982 cat >>conftest.$ac_ext <<_ACEOF
6983 /* end confdefs.h. */
6984 $ac_includes_default
6988 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6995 rm -f conftest.$ac_objext
6996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6997 (eval $ac_compile) 2>conftest.er1
6999 grep -v '^ *+' conftest.er1 >conftest.err
7001 cat conftest.err >&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } &&
7004 { ac_try='test -z "$ac_c_werror_flag"
7005 || test ! -s conftest.err'
7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; } &&
7011 { ac_try='test -s conftest.$ac_objext'
7012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); }; }; then
7019 cat >conftest.$ac_ext <<_ACEOF
7022 cat confdefs.h >>conftest.$ac_ext
7023 cat >>conftest.$ac_ext <<_ACEOF
7024 /* end confdefs.h. */
7025 $ac_includes_default
7029 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7036 rm -f conftest.$ac_objext
7037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7038 (eval $ac_compile) 2>conftest.er1
7040 grep -v '^ *+' conftest.er1 >conftest.err
7042 cat conftest.err >&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); } &&
7045 { ac_try='test -z "$ac_c_werror_flag"
7046 || test ! -s conftest.err'
7047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); }; } &&
7052 { ac_try='test -s conftest.$ac_objext'
7053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); }; }; then
7058 ac_lo=$ac_mid; break
7060 echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7063 ac_hi=`expr '(' $ac_mid ')' - 1`
7064 if test $ac_mid -le $ac_hi; then
7068 ac_mid=`expr 2 '*' $ac_mid`
7070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7073 echo "$as_me: failed program was:" >&5
7074 sed 's/^/| /' conftest.$ac_ext >&5
7078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7081 # Binary search between lo and hi bounds.
7082 while test "x$ac_lo" != "x$ac_hi"; do
7083 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7084 cat >conftest.$ac_ext <<_ACEOF
7087 cat confdefs.h >>conftest.$ac_ext
7088 cat >>conftest.$ac_ext <<_ACEOF
7089 /* end confdefs.h. */
7090 $ac_includes_default
7094 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7101 rm -f conftest.$ac_objext
7102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7103 (eval $ac_compile) 2>conftest.er1
7105 grep -v '^ *+' conftest.er1 >conftest.err
7107 cat conftest.err >&5
7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); } &&
7110 { ac_try='test -z "$ac_c_werror_flag"
7111 || test ! -s conftest.err'
7112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); }; } &&
7117 { ac_try='test -s conftest.$ac_objext'
7118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); }; }; then
7125 echo "$as_me: failed program was:" >&5
7126 sed 's/^/| /' conftest.$ac_ext >&5
7128 ac_lo=`expr '(' $ac_mid ')' + 1`
7130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7133 ?*) ac_cv_sizeof_int=$ac_lo;;
7134 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7135 See \`config.log' for more details." >&5
7136 echo "$as_me: error: cannot compute sizeof (int), 77
7137 See \`config.log' for more details." >&2;}
7138 { (exit 1); exit 1; }; } ;;
7141 if test "$cross_compiling" = yes; then
7142 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7143 See \`config.log' for more details." >&5
7144 echo "$as_me: error: cannot run test program while cross compiling
7145 See \`config.log' for more details." >&2;}
7146 { (exit 1); exit 1; }; }
7148 cat >conftest.$ac_ext <<_ACEOF
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h. */
7154 $ac_includes_default
7155 long longval () { return (long) (sizeof (int)); }
7156 unsigned long ulongval () { return (long) (sizeof (int)); }
7163 FILE *f = fopen ("conftest.val", "w");
7166 if (((long) (sizeof (int))) < 0)
7168 long i = longval ();
7169 if (i != ((long) (sizeof (int))))
7171 fprintf (f, "%ld\n", i);
7175 unsigned long i = ulongval ();
7176 if (i != ((long) (sizeof (int))))
7178 fprintf (f, "%lu\n", i);
7180 exit (ferror (f) || fclose (f) != 0);
7186 rm -f conftest$ac_exeext
7187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7188 (eval $ac_link) 2>&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }; }; then
7197 ac_cv_sizeof_int=`cat conftest.val`
7199 echo "$as_me: program exited with status $ac_status" >&5
7200 echo "$as_me: failed program was:" >&5
7201 sed 's/^/| /' conftest.$ac_ext >&5
7204 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7205 See \`config.log' for more details." >&5
7206 echo "$as_me: error: cannot compute sizeof (int), 77
7207 See \`config.log' for more details." >&2;}
7208 { (exit 1); exit 1; }; }
7210 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7218 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7219 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7220 cat >>confdefs.h <<_ACEOF
7221 #define SIZEOF_INT $ac_cv_sizeof_int
7225 echo "$as_me:$LINENO: checking for long" >&5
7226 echo $ECHO_N "checking for long... $ECHO_C" >&6
7227 if test "${ac_cv_type_long+set}" = set; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7230 cat >conftest.$ac_ext <<_ACEOF
7233 cat confdefs.h >>conftest.$ac_ext
7234 cat >>conftest.$ac_ext <<_ACEOF
7235 /* end confdefs.h. */
7236 $ac_includes_default
7248 rm -f conftest.$ac_objext
7249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7250 (eval $ac_compile) 2>conftest.er1
7252 grep -v '^ *+' conftest.er1 >conftest.err
7254 cat conftest.err >&5
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); } &&
7257 { ac_try='test -z "$ac_c_werror_flag"
7258 || test ! -s conftest.err'
7259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); }; } &&
7264 { ac_try='test -s conftest.$ac_objext'
7265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); }; }; then
7272 echo "$as_me: failed program was:" >&5
7273 sed 's/^/| /' conftest.$ac_ext >&5
7277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7279 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7280 echo "${ECHO_T}$ac_cv_type_long" >&6
7282 echo "$as_me:$LINENO: checking size of long" >&5
7283 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7284 if test "${ac_cv_sizeof_long+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7287 if test "$ac_cv_type_long" = yes; then
7288 # The cast to unsigned long works around a bug in the HP C Compiler
7289 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7290 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7291 # This bug is HP SR number 8606223364.
7292 if test "$cross_compiling" = yes; then
7293 # Depending upon the size, compute the lo and hi bounds.
7294 cat >conftest.$ac_ext <<_ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h. */
7300 $ac_includes_default
7304 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7311 rm -f conftest.$ac_objext
7312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7313 (eval $ac_compile) 2>conftest.er1
7315 grep -v '^ *+' conftest.er1 >conftest.err
7317 cat conftest.err >&5
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); } &&
7320 { ac_try='test -z "$ac_c_werror_flag"
7321 || test ! -s conftest.err'
7322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); }; } &&
7327 { ac_try='test -s conftest.$ac_objext'
7328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); }; }; then
7335 cat >conftest.$ac_ext <<_ACEOF
7338 cat confdefs.h >>conftest.$ac_ext
7339 cat >>conftest.$ac_ext <<_ACEOF
7340 /* end confdefs.h. */
7341 $ac_includes_default
7345 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7352 rm -f conftest.$ac_objext
7353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7354 (eval $ac_compile) 2>conftest.er1
7356 grep -v '^ *+' conftest.er1 >conftest.err
7358 cat conftest.err >&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); } &&
7361 { ac_try='test -z "$ac_c_werror_flag"
7362 || test ! -s conftest.err'
7363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); }; } &&
7368 { ac_try='test -s conftest.$ac_objext'
7369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373 (exit $ac_status); }; }; then
7374 ac_hi=$ac_mid; break
7376 echo "$as_me: failed program was:" >&5
7377 sed 's/^/| /' conftest.$ac_ext >&5
7379 ac_lo=`expr $ac_mid + 1`
7380 if test $ac_lo -le $ac_mid; then
7384 ac_mid=`expr 2 '*' $ac_mid + 1`
7386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7389 echo "$as_me: failed program was:" >&5
7390 sed 's/^/| /' conftest.$ac_ext >&5
7392 cat >conftest.$ac_ext <<_ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h. */
7398 $ac_includes_default
7402 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7409 rm -f conftest.$ac_objext
7410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7411 (eval $ac_compile) 2>conftest.er1
7413 grep -v '^ *+' conftest.er1 >conftest.err
7415 cat conftest.err >&5
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); } &&
7418 { ac_try='test -z "$ac_c_werror_flag"
7419 || test ! -s conftest.err'
7420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); }; } &&
7425 { ac_try='test -s conftest.$ac_objext'
7426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); }; }; then
7433 cat >conftest.$ac_ext <<_ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h. */
7439 $ac_includes_default
7443 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7450 rm -f conftest.$ac_objext
7451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7452 (eval $ac_compile) 2>conftest.er1
7454 grep -v '^ *+' conftest.er1 >conftest.err
7456 cat conftest.err >&5
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); } &&
7459 { ac_try='test -z "$ac_c_werror_flag"
7460 || test ! -s conftest.err'
7461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); }; } &&
7466 { ac_try='test -s conftest.$ac_objext'
7467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); }; }; then
7472 ac_lo=$ac_mid; break
7474 echo "$as_me: failed program was:" >&5
7475 sed 's/^/| /' conftest.$ac_ext >&5
7477 ac_hi=`expr '(' $ac_mid ')' - 1`
7478 if test $ac_mid -le $ac_hi; then
7482 ac_mid=`expr 2 '*' $ac_mid`
7484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7487 echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7495 # Binary search between lo and hi bounds.
7496 while test "x$ac_lo" != "x$ac_hi"; do
7497 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7498 cat >conftest.$ac_ext <<_ACEOF
7501 cat confdefs.h >>conftest.$ac_ext
7502 cat >>conftest.$ac_ext <<_ACEOF
7503 /* end confdefs.h. */
7504 $ac_includes_default
7508 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7515 rm -f conftest.$ac_objext
7516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7517 (eval $ac_compile) 2>conftest.er1
7519 grep -v '^ *+' conftest.er1 >conftest.err
7521 cat conftest.err >&5
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); } &&
7524 { ac_try='test -z "$ac_c_werror_flag"
7525 || test ! -s conftest.err'
7526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); }; } &&
7531 { ac_try='test -s conftest.$ac_objext'
7532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); }; }; then
7539 echo "$as_me: failed program was:" >&5
7540 sed 's/^/| /' conftest.$ac_ext >&5
7542 ac_lo=`expr '(' $ac_mid ')' + 1`
7544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7547 ?*) ac_cv_sizeof_long=$ac_lo;;
7548 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7549 See \`config.log' for more details." >&5
7550 echo "$as_me: error: cannot compute sizeof (long), 77
7551 See \`config.log' for more details." >&2;}
7552 { (exit 1); exit 1; }; } ;;
7555 if test "$cross_compiling" = yes; then
7556 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7557 See \`config.log' for more details." >&5
7558 echo "$as_me: error: cannot run test program while cross compiling
7559 See \`config.log' for more details." >&2;}
7560 { (exit 1); exit 1; }; }
7562 cat >conftest.$ac_ext <<_ACEOF
7565 cat confdefs.h >>conftest.$ac_ext
7566 cat >>conftest.$ac_ext <<_ACEOF
7567 /* end confdefs.h. */
7568 $ac_includes_default
7569 long longval () { return (long) (sizeof (long)); }
7570 unsigned long ulongval () { return (long) (sizeof (long)); }
7577 FILE *f = fopen ("conftest.val", "w");
7580 if (((long) (sizeof (long))) < 0)
7582 long i = longval ();
7583 if (i != ((long) (sizeof (long))))
7585 fprintf (f, "%ld\n", i);
7589 unsigned long i = ulongval ();
7590 if (i != ((long) (sizeof (long))))
7592 fprintf (f, "%lu\n", i);
7594 exit (ferror (f) || fclose (f) != 0);
7600 rm -f conftest$ac_exeext
7601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7602 (eval $ac_link) 2>&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); }; }; then
7611 ac_cv_sizeof_long=`cat conftest.val`
7613 echo "$as_me: program exited with status $ac_status" >&5
7614 echo "$as_me: failed program was:" >&5
7615 sed 's/^/| /' conftest.$ac_ext >&5
7618 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7619 See \`config.log' for more details." >&5
7620 echo "$as_me: error: cannot compute sizeof (long), 77
7621 See \`config.log' for more details." >&2;}
7622 { (exit 1); exit 1; }; }
7624 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7632 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7633 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7634 cat >>confdefs.h <<_ACEOF
7635 #define SIZEOF_LONG $ac_cv_sizeof_long
7639 echo "$as_me:$LINENO: checking for void*" >&5
7640 echo $ECHO_N "checking for void*... $ECHO_C" >&6
7641 if test "${ac_cv_type_voidp+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
7644 cat >conftest.$ac_ext <<_ACEOF
7647 cat confdefs.h >>conftest.$ac_ext
7648 cat >>conftest.$ac_ext <<_ACEOF
7649 /* end confdefs.h. */
7650 $ac_includes_default
7662 rm -f conftest.$ac_objext
7663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7664 (eval $ac_compile) 2>conftest.er1
7666 grep -v '^ *+' conftest.er1 >conftest.err
7668 cat conftest.err >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } &&
7671 { ac_try='test -z "$ac_c_werror_flag"
7672 || test ! -s conftest.err'
7673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); }; } &&
7678 { ac_try='test -s conftest.$ac_objext'
7679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); }; }; then
7684 ac_cv_type_voidp=yes
7686 echo "$as_me: failed program was:" >&5
7687 sed 's/^/| /' conftest.$ac_ext >&5
7691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7693 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
7694 echo "${ECHO_T}$ac_cv_type_voidp" >&6
7696 echo "$as_me:$LINENO: checking size of void*" >&5
7697 echo $ECHO_N "checking size of void*... $ECHO_C" >&6
7698 if test "${ac_cv_sizeof_voidp+set}" = set; then
7699 echo $ECHO_N "(cached) $ECHO_C" >&6
7701 if test "$ac_cv_type_voidp" = yes; then
7702 # The cast to unsigned long works around a bug in the HP C Compiler
7703 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7704 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7705 # This bug is HP SR number 8606223364.
7706 if test "$cross_compiling" = yes; then
7707 # Depending upon the size, compute the lo and hi bounds.
7708 cat >conftest.$ac_ext <<_ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h. */
7714 $ac_includes_default
7718 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
7725 rm -f conftest.$ac_objext
7726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7727 (eval $ac_compile) 2>conftest.er1
7729 grep -v '^ *+' conftest.er1 >conftest.err
7731 cat conftest.err >&5
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); } &&
7734 { ac_try='test -z "$ac_c_werror_flag"
7735 || test ! -s conftest.err'
7736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); }; } &&
7741 { ac_try='test -s conftest.$ac_objext'
7742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); }; }; then
7749 cat >conftest.$ac_ext <<_ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7755 $ac_includes_default
7759 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
7766 rm -f conftest.$ac_objext
7767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7768 (eval $ac_compile) 2>conftest.er1
7770 grep -v '^ *+' conftest.er1 >conftest.err
7772 cat conftest.err >&5
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); } &&
7775 { ac_try='test -z "$ac_c_werror_flag"
7776 || test ! -s conftest.err'
7777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); }; } &&
7782 { ac_try='test -s conftest.$ac_objext'
7783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); }; }; then
7788 ac_hi=$ac_mid; break
7790 echo "$as_me: failed program was:" >&5
7791 sed 's/^/| /' conftest.$ac_ext >&5
7793 ac_lo=`expr $ac_mid + 1`
7794 if test $ac_lo -le $ac_mid; then
7798 ac_mid=`expr 2 '*' $ac_mid + 1`
7800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7803 echo "$as_me: failed program was:" >&5
7804 sed 's/^/| /' conftest.$ac_ext >&5
7806 cat >conftest.$ac_ext <<_ACEOF
7809 cat confdefs.h >>conftest.$ac_ext
7810 cat >>conftest.$ac_ext <<_ACEOF
7811 /* end confdefs.h. */
7812 $ac_includes_default
7816 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
7823 rm -f conftest.$ac_objext
7824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7825 (eval $ac_compile) 2>conftest.er1
7827 grep -v '^ *+' conftest.er1 >conftest.err
7829 cat conftest.err >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } &&
7832 { ac_try='test -z "$ac_c_werror_flag"
7833 || test ! -s conftest.err'
7834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; } &&
7839 { ac_try='test -s conftest.$ac_objext'
7840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); }; }; then
7847 cat >conftest.$ac_ext <<_ACEOF
7850 cat confdefs.h >>conftest.$ac_ext
7851 cat >>conftest.$ac_ext <<_ACEOF
7852 /* end confdefs.h. */
7853 $ac_includes_default
7857 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
7864 rm -f conftest.$ac_objext
7865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7866 (eval $ac_compile) 2>conftest.er1
7868 grep -v '^ *+' conftest.er1 >conftest.err
7870 cat conftest.err >&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } &&
7873 { ac_try='test -z "$ac_c_werror_flag"
7874 || test ! -s conftest.err'
7875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); }; } &&
7880 { ac_try='test -s conftest.$ac_objext'
7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; }; then
7886 ac_lo=$ac_mid; break
7888 echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7891 ac_hi=`expr '(' $ac_mid ')' - 1`
7892 if test $ac_mid -le $ac_hi; then
7896 ac_mid=`expr 2 '*' $ac_mid`
7898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7901 echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.$ac_ext >&5
7906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7909 # Binary search between lo and hi bounds.
7910 while test "x$ac_lo" != "x$ac_hi"; do
7911 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7912 cat >conftest.$ac_ext <<_ACEOF
7915 cat confdefs.h >>conftest.$ac_ext
7916 cat >>conftest.$ac_ext <<_ACEOF
7917 /* end confdefs.h. */
7918 $ac_includes_default
7922 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
7929 rm -f conftest.$ac_objext
7930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7931 (eval $ac_compile) 2>conftest.er1
7933 grep -v '^ *+' conftest.er1 >conftest.err
7935 cat conftest.err >&5
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); } &&
7938 { ac_try='test -z "$ac_c_werror_flag"
7939 || test ! -s conftest.err'
7940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); }; } &&
7945 { ac_try='test -s conftest.$ac_objext'
7946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); }; }; then
7953 echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7956 ac_lo=`expr '(' $ac_mid ')' + 1`
7958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7961 ?*) ac_cv_sizeof_voidp=$ac_lo;;
7962 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
7963 See \`config.log' for more details." >&5
7964 echo "$as_me: error: cannot compute sizeof (void*), 77
7965 See \`config.log' for more details." >&2;}
7966 { (exit 1); exit 1; }; } ;;
7969 if test "$cross_compiling" = yes; then
7970 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7971 See \`config.log' for more details." >&5
7972 echo "$as_me: error: cannot run test program while cross compiling
7973 See \`config.log' for more details." >&2;}
7974 { (exit 1); exit 1; }; }
7976 cat >conftest.$ac_ext <<_ACEOF
7979 cat confdefs.h >>conftest.$ac_ext
7980 cat >>conftest.$ac_ext <<_ACEOF
7981 /* end confdefs.h. */
7982 $ac_includes_default
7983 long longval () { return (long) (sizeof (void*)); }
7984 unsigned long ulongval () { return (long) (sizeof (void*)); }
7991 FILE *f = fopen ("conftest.val", "w");
7994 if (((long) (sizeof (void*))) < 0)
7996 long i = longval ();
7997 if (i != ((long) (sizeof (void*))))
7999 fprintf (f, "%ld\n", i);
8003 unsigned long i = ulongval ();
8004 if (i != ((long) (sizeof (void*))))
8006 fprintf (f, "%lu\n", i);
8008 exit (ferror (f) || fclose (f) != 0);
8014 rm -f conftest$ac_exeext
8015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8016 (eval $ac_link) 2>&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); }; }; then
8025 ac_cv_sizeof_voidp=`cat conftest.val`
8027 echo "$as_me: program exited with status $ac_status" >&5
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8032 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
8033 See \`config.log' for more details." >&5
8034 echo "$as_me: error: cannot compute sizeof (void*), 77
8035 See \`config.log' for more details." >&2;}
8036 { (exit 1); exit 1; }; }
8038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8043 ac_cv_sizeof_voidp=0
8046 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
8047 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
8048 cat >>confdefs.h <<_ACEOF
8049 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
8053 ac_cv_stdint_char_model=""
8054 ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_char"
8055 ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_short"
8056 ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_int"
8057 ac_cv_stdint_long_model=""
8058 ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_int"
8059 ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_long"
8060 ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_voidp"
8061 name="$ac_cv_stdint_long_model"
8062 case "$ac_cv_stdint_char_model/$ac_cv_stdint_long_model" in
8063 122/242) name="$name, IP16 (standard 16bit machine)" ;;
8064 122/244) name="$name, LP32 (standard 32bit mac/win)" ;;
8065 122/*) name="$name (unusual int16 model)" ;;
8066 124/444) name="$name, ILP32 (standard 32bit unixish)" ;;
8067 124/488) name="$name, LP64 (standard 64bit unixish)" ;;
8068 124/448) name="$name, LLP64 (unusual 64bit unixish)" ;;
8069 124/*) name="$name (unusual int32 model)" ;;
8070 128/888) name="$name, ILP64 (unusual 64bit numeric)" ;;
8071 128/*) name="$name (unusual int64 model)" ;;
8072 222/*|444/*) name="$name (unusual dsptype)" ;;
8073 *) name="$name (very unusal model)" ;;
8075 echo "$as_me:$LINENO: result: combined for stdint datatype model... $name" >&5
8076 echo "${ECHO_T}combined for stdint datatype model... $name" >&6
8079 if test "_$ac_cv_header_stdint_x" != "_" ; then
8080 ac_cv_header_stdint="$ac_cv_header_stdint_x"
8081 elif test "_$ac_cv_header_stdint_o" != "_" ; then
8082 ac_cv_header_stdint="$ac_cv_header_stdint_o"
8083 elif test "_$ac_cv_header_stdint_u" != "_" ; then
8084 ac_cv_header_stdint="$ac_cv_header_stdint_u"
8086 ac_cv_header_stdint="stddef.h"
8089 echo "$as_me:$LINENO: checking for extra inttypes in chosen header" >&5
8090 echo $ECHO_N "checking for extra inttypes in chosen header... $ECHO_C" >&6
8091 echo "$as_me:$LINENO: result: ($ac_cv_header_stdint)" >&5
8092 echo "${ECHO_T}($ac_cv_header_stdint)" >&6
8093 unset ac_cv_type_int_least32_t
8094 unset ac_cv_type_int_fast32_t
8095 echo "$as_me:$LINENO: checking for int_least32_t" >&5
8096 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
8097 if test "${ac_cv_type_int_least32_t+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8100 cat >conftest.$ac_ext <<_ACEOF
8103 cat confdefs.h >>conftest.$ac_ext
8104 cat >>conftest.$ac_ext <<_ACEOF
8105 /* end confdefs.h. */
8106 #include <$ac_cv_header_stdint>
8111 if ((int_least32_t *) 0)
8113 if (sizeof (int_least32_t))
8119 rm -f conftest.$ac_objext
8120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8121 (eval $ac_compile) 2>conftest.er1
8123 grep -v '^ *+' conftest.er1 >conftest.err
8125 cat conftest.err >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } &&
8128 { ac_try='test -z "$ac_c_werror_flag"
8129 || test ! -s conftest.err'
8130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); }; } &&
8135 { ac_try='test -s conftest.$ac_objext'
8136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; }; then
8141 ac_cv_type_int_least32_t=yes
8143 echo "$as_me: failed program was:" >&5
8144 sed 's/^/| /' conftest.$ac_ext >&5
8146 ac_cv_type_int_least32_t=no
8148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8150 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
8151 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
8153 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
8154 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
8155 if test "${ac_cv_type_int_fast32_t+set}" = set; then
8156 echo $ECHO_N "(cached) $ECHO_C" >&6
8158 cat >conftest.$ac_ext <<_ACEOF
8161 cat confdefs.h >>conftest.$ac_ext
8162 cat >>conftest.$ac_ext <<_ACEOF
8163 /* end confdefs.h. */
8164 #include<$ac_cv_header_stdint>
8169 if ((int_fast32_t *) 0)
8171 if (sizeof (int_fast32_t))
8177 rm -f conftest.$ac_objext
8178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8179 (eval $ac_compile) 2>conftest.er1
8181 grep -v '^ *+' conftest.er1 >conftest.err
8183 cat conftest.err >&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } &&
8186 { ac_try='test -z "$ac_c_werror_flag"
8187 || test ! -s conftest.err'
8188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; } &&
8193 { ac_try='test -s conftest.$ac_objext'
8194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); }; }; then
8199 ac_cv_type_int_fast32_t=yes
8201 echo "$as_me: failed program was:" >&5
8202 sed 's/^/| /' conftest.$ac_ext >&5
8204 ac_cv_type_int_fast32_t=no
8206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8208 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
8209 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
8211 echo "$as_me:$LINENO: checking for intmax_t" >&5
8212 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
8213 if test "${ac_cv_type_intmax_t+set}" = set; then
8214 echo $ECHO_N "(cached) $ECHO_C" >&6
8216 cat >conftest.$ac_ext <<_ACEOF
8219 cat confdefs.h >>conftest.$ac_ext
8220 cat >>conftest.$ac_ext <<_ACEOF
8221 /* end confdefs.h. */
8222 #include <$ac_cv_header_stdint>
8229 if (sizeof (intmax_t))
8235 rm -f conftest.$ac_objext
8236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8237 (eval $ac_compile) 2>conftest.er1
8239 grep -v '^ *+' conftest.er1 >conftest.err
8241 cat conftest.err >&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); } &&
8244 { ac_try='test -z "$ac_c_werror_flag"
8245 || test ! -s conftest.err'
8246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); }; } &&
8251 { ac_try='test -s conftest.$ac_objext'
8252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); }; }; then
8257 ac_cv_type_intmax_t=yes
8259 echo "$as_me: failed program was:" >&5
8260 sed 's/^/| /' conftest.$ac_ext >&5
8262 ac_cv_type_intmax_t=no
8264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8266 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
8267 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
8270 fi # shortcircut to system "stdint.h"
8271 # ------------------ PREPARE VARIABLES ------------------------------
8272 if test "$GCC" = "yes" ; then
8273 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
8275 ac_cv_stdint_message="using $CC"
8278 echo "$as_me:$LINENO: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
8279 echo "${ECHO_T}make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6
8281 # ----------------- DONE inttypes.h checks START header -------------
8282 ac_config_commands="$ac_config_commands $ac_stdint_h"
8288 # Extract the first word of "$ac_prog", so it can be a program name with args.
8289 set dummy $ac_prog; ac_word=$2
8290 echo "$as_me:$LINENO: checking for $ac_word" >&5
8291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8292 if test "${ac_cv_path_AR+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8297 ac_cv_path_AR="$AR" # Let the user override the test with a path.
8300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301 for as_dir in $LOCSYSPATH
8304 test -z "$as_dir" && as_dir=.
8305 for ac_exec_ext in '' $ac_executable_extensions; do
8306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8307 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
8308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8319 if test -n "$AR"; then
8320 echo "$as_me:$LINENO: result: $AR" >&5
8321 echo "${ECHO_T}$AR" >&6
8323 echo "$as_me:$LINENO: result: no" >&5
8324 echo "${ECHO_T}no" >&6
8327 test -n "$AR" && break
8331 for ac_prog in gawk mawk nawk awk
8333 # Extract the first word of "$ac_prog", so it can be a program name with args.
8334 set dummy $ac_prog; ac_word=$2
8335 echo "$as_me:$LINENO: checking for $ac_word" >&5
8336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8337 if test "${ac_cv_prog_AWK+set}" = set; then
8338 echo $ECHO_N "(cached) $ECHO_C" >&6
8340 if test -n "$AWK"; then
8341 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347 test -z "$as_dir" && as_dir=.
8348 for ac_exec_ext in '' $ac_executable_extensions; do
8349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8350 ac_cv_prog_AWK="$ac_prog"
8351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8360 if test -n "$AWK"; then
8361 echo "$as_me:$LINENO: result: $AWK" >&5
8362 echo "${ECHO_T}$AWK" >&6
8364 echo "$as_me:$LINENO: result: no" >&5
8365 echo "${ECHO_T}no" >&6
8368 test -n "$AWK" && break
8373 echo "$as_me:$LINENO: checking for $AWK command line variable assignment" >&5
8374 echo $ECHO_N "checking for $AWK command line variable assignment... $ECHO_C" >&6
8375 if test "${amanda_cv_awk_var_assignment+set}" = set; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8379 echo 'BEGIN{print i; exit}' > conftest.awk
8380 result=`$AWK -f conftest.awk i=xx | wc -c`
8381 if test "$result" -le 1; then
8382 result=`$AWK -f conftest.awk -v i=xx | wc -c`
8383 if test "$result" -le 1; then
8384 amanda_cv_awk_var_assignment=no
8386 amanda_cv_awk_var_assignment="yes with -v"
8389 amanda_cv_awk_var_assignment="yes"
8395 echo "$as_me:$LINENO: result: $amanda_cv_awk_var_assignment" >&5
8396 echo "${ECHO_T}$amanda_cv_awk_var_assignment" >&6
8397 AWK_VAR_ASSIGNMENT_OPT=
8398 case "$amanda_cv_awk_var_assignment" in
8400 HAVE_AWK_WITH_VAR=no
8403 HAVE_AWK_WITH_VAR=yes
8406 HAVE_AWK_WITH_VAR=yes
8407 AWK_VAR_ASSIGNMENT_OPT=-v
8413 if test "$amanda_cv_awk_var_assignment" = no; then
8415 { echo "$as_me:$LINENO: WARNING: *** Your $awk cannot do command line variable assignment. Amplot will not be installed." >&5
8416 echo "$as_me: WARNING: *** Your $awk cannot do command line variable assignment. Amplot will not be installed." >&2;}
8419 for ac_prog in 'bison -y' byacc
8421 # Extract the first word of "$ac_prog", so it can be a program name with args.
8422 set dummy $ac_prog; ac_word=$2
8423 echo "$as_me:$LINENO: checking for $ac_word" >&5
8424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8425 if test "${ac_cv_prog_YACC+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8428 if test -n "$YACC"; then
8429 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8435 test -z "$as_dir" && as_dir=.
8436 for ac_exec_ext in '' $ac_executable_extensions; do
8437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8438 ac_cv_prog_YACC="$ac_prog"
8439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8447 YACC=$ac_cv_prog_YACC
8448 if test -n "$YACC"; then
8449 echo "$as_me:$LINENO: result: $YACC" >&5
8450 echo "${ECHO_T}$YACC" >&6
8452 echo "$as_me:$LINENO: result: no" >&5
8453 echo "${ECHO_T}no" >&6
8456 test -n "$YACC" && break
8458 test -n "$YACC" || YACC="yacc"
8462 # Extract the first word of "$ac_prog", so it can be a program name with args.
8463 set dummy $ac_prog; ac_word=$2
8464 echo "$as_me:$LINENO: checking for $ac_word" >&5
8465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8466 if test "${ac_cv_path_CAT+set}" = set; then
8467 echo $ECHO_N "(cached) $ECHO_C" >&6
8471 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8475 for as_dir in $LOCSYSPATH
8478 test -z "$as_dir" && as_dir=.
8479 for ac_exec_ext in '' $ac_executable_extensions; do
8480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8481 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8493 if test -n "$CAT"; then
8494 echo "$as_me:$LINENO: result: $CAT" >&5
8495 echo "${ECHO_T}$CAT" >&6
8497 echo "$as_me:$LINENO: result: no" >&5
8498 echo "${ECHO_T}no" >&6
8501 test -n "$CAT" && break
8504 if test -z "$CAT"; then
8507 for ac_prog in compress
8509 # Extract the first word of "$ac_prog", so it can be a program name with args.
8510 set dummy $ac_prog; ac_word=$2
8511 echo "$as_me:$LINENO: checking for $ac_word" >&5
8512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8513 if test "${ac_cv_path_COMPRESS+set}" = set; then
8514 echo $ECHO_N "(cached) $ECHO_C" >&6
8518 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
8521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8522 for as_dir in $LOCSYSPATH
8525 test -z "$as_dir" && as_dir=.
8526 for ac_exec_ext in '' $ac_executable_extensions; do
8527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8528 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
8529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8538 COMPRESS=$ac_cv_path_COMPRESS
8540 if test -n "$COMPRESS"; then
8541 echo "$as_me:$LINENO: result: $COMPRESS" >&5
8542 echo "${ECHO_T}$COMPRESS" >&6
8544 echo "$as_me:$LINENO: result: no" >&5
8545 echo "${ECHO_T}no" >&6
8548 test -n "$COMPRESS" && break
8553 # Extract the first word of "$ac_prog", so it can be a program name with args.
8554 set dummy $ac_prog; ac_word=$2
8555 echo "$as_me:$LINENO: checking for $ac_word" >&5
8556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8557 if test "${ac_cv_path_DD+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8562 ac_cv_path_DD="$DD" # Let the user override the test with a path.
8565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8566 for as_dir in $LOCSYSPATH
8569 test -z "$as_dir" && as_dir=.
8570 for ac_exec_ext in '' $ac_executable_extensions; do
8571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8572 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
8573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8584 if test -n "$DD"; then
8585 echo "$as_me:$LINENO: result: $DD" >&5
8586 echo "${ECHO_T}$DD" >&6
8588 echo "$as_me:$LINENO: result: no" >&5
8589 echo "${ECHO_T}no" >&6
8592 test -n "$DD" && break
8595 for ac_prog in egrep
8597 # Extract the first word of "$ac_prog", so it can be a program name with args.
8598 set dummy $ac_prog; ac_word=$2
8599 echo "$as_me:$LINENO: checking for $ac_word" >&5
8600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8601 if test "${ac_cv_path_EGREP+set}" = set; then
8602 echo $ECHO_N "(cached) $ECHO_C" >&6
8606 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
8609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8610 for as_dir in $LOCSYSPATH
8613 test -z "$as_dir" && as_dir=.
8614 for ac_exec_ext in '' $ac_executable_extensions; do
8615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8616 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
8617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8626 EGREP=$ac_cv_path_EGREP
8628 if test -n "$EGREP"; then
8629 echo "$as_me:$LINENO: result: $EGREP" >&5
8630 echo "${ECHO_T}$EGREP" >&6
8632 echo "$as_me:$LINENO: result: no" >&5
8633 echo "${ECHO_T}no" >&6
8636 test -n "$EGREP" && break
8639 for ac_prog in getconf
8641 # Extract the first word of "$ac_prog", so it can be a program name with args.
8642 set dummy $ac_prog; ac_word=$2
8643 echo "$as_me:$LINENO: checking for $ac_word" >&5
8644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8645 if test "${ac_cv_path_GETCONF+set}" = set; then
8646 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
8653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8654 for as_dir in $SYSPATH
8657 test -z "$as_dir" && as_dir=.
8658 for ac_exec_ext in '' $ac_executable_extensions; do
8659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8660 ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
8661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8670 GETCONF=$ac_cv_path_GETCONF
8672 if test -n "$GETCONF"; then
8673 echo "$as_me:$LINENO: result: $GETCONF" >&5
8674 echo "${ECHO_T}$GETCONF" >&6
8676 echo "$as_me:$LINENO: result: no" >&5
8677 echo "${ECHO_T}no" >&6
8680 test -n "$GETCONF" && break
8684 for ac_prog in gnuplot
8686 # Extract the first word of "$ac_prog", so it can be a program name with args.
8687 set dummy $ac_prog; ac_word=$2
8688 echo "$as_me:$LINENO: checking for $ac_word" >&5
8689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8690 if test "${ac_cv_path_GNUPLOT+set}" = set; then
8691 echo $ECHO_N "(cached) $ECHO_C" >&6
8695 ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path.
8698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8699 for as_dir in $LOCSYSPATH
8702 test -z "$as_dir" && as_dir=.
8703 for ac_exec_ext in '' $ac_executable_extensions; do
8704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8705 ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext"
8706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8715 GNUPLOT=$ac_cv_path_GNUPLOT
8717 if test -n "$GNUPLOT"; then
8718 echo "$as_me:$LINENO: result: $GNUPLOT" >&5
8719 echo "${ECHO_T}$GNUPLOT" >&6
8721 echo "$as_me:$LINENO: result: no" >&5
8722 echo "${ECHO_T}no" >&6
8725 test -n "$GNUPLOT" && break
8728 if test -z "$GNUPLOT"; then
8730 { echo "$as_me:$LINENO: WARNING: *** You do not have gnuplot. Amplot will not be installed." >&5
8731 echo "$as_me: WARNING: *** You do not have gnuplot. Amplot will not be installed." >&2;}
8736 # Extract the first word of "$ac_prog", so it can be a program name with args.
8737 set dummy $ac_prog; ac_word=$2
8738 echo "$as_me:$LINENO: checking for $ac_word" >&5
8739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8740 if test "${ac_cv_path_GREP+set}" = set; then
8741 echo $ECHO_N "(cached) $ECHO_C" >&6
8745 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
8748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8749 for as_dir in $LOCSYSPATH
8752 test -z "$as_dir" && as_dir=.
8753 for ac_exec_ext in '' $ac_executable_extensions; do
8754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8755 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
8756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8765 GREP=$ac_cv_path_GREP
8767 if test -n "$GREP"; then
8768 echo "$as_me:$LINENO: result: $GREP" >&5
8769 echo "${ECHO_T}$GREP" >&6
8771 echo "$as_me:$LINENO: result: no" >&5
8772 echo "${ECHO_T}no" >&6
8775 test -n "$GREP" && break
8778 if test -z "$GREP"; then
8782 cat >>confdefs.h <<_ACEOF
8783 #define GREP "$GREP"
8787 for ac_prog in gtar gnutar tar
8789 # Extract the first word of "$ac_prog", so it can be a program name with args.
8790 set dummy $ac_prog; ac_word=$2
8791 echo "$as_me:$LINENO: checking for $ac_word" >&5
8792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8793 if test "${ac_cv_path_GNUTAR+set}" = set; then
8794 echo $ECHO_N "(cached) $ECHO_C" >&6
8798 ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
8801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8802 for as_dir in $LOCSYSPATH
8805 test -z "$as_dir" && as_dir=.
8806 for ac_exec_ext in '' $ac_executable_extensions; do
8807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8808 ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
8809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8818 GNUTAR=$ac_cv_path_GNUTAR
8820 if test -n "$GNUTAR"; then
8821 echo "$as_me:$LINENO: result: $GNUTAR" >&5
8822 echo "${ECHO_T}$GNUTAR" >&6
8824 echo "$as_me:$LINENO: result: no" >&5
8825 echo "${ECHO_T}no" >&6
8828 test -n "$GNUTAR" && break
8831 if test ! -z "$GNUTAR"; then
8832 case "`\"$GNUTAR\" --version 2>&1`" in
8833 *GNU*tar* | *Free*paxutils* )
8835 cat >>confdefs.h <<_ACEOF
8836 #define GNUTAR "$GNUTAR"
8841 { echo "$as_me:$LINENO: WARNING: *** $GNUTAR is not GNU tar, so it will not be used." >&5
8842 echo "$as_me: WARNING: *** $GNUTAR is not GNU tar, so it will not be used." >&2;}
8848 if test "x$SAMBA_CLIENT" != "xno"
8849 then for ac_prog in smbclient
8851 # Extract the first word of "$ac_prog", so it can be a program name with args.
8852 set dummy $ac_prog; ac_word=$2
8853 echo "$as_me:$LINENO: checking for $ac_word" >&5
8854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8855 if test "${ac_cv_path_SAMBA_CLIENT+set}" = set; then
8856 echo $ECHO_N "(cached) $ECHO_C" >&6
8858 case $SAMBA_CLIENT in
8860 ac_cv_path_SAMBA_CLIENT="$SAMBA_CLIENT" # Let the user override the test with a path.
8863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8864 for as_dir in $LOCSYSPATH
8867 test -z "$as_dir" && as_dir=.
8868 for ac_exec_ext in '' $ac_executable_extensions; do
8869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8870 ac_cv_path_SAMBA_CLIENT="$as_dir/$ac_word$ac_exec_ext"
8871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8880 SAMBA_CLIENT=$ac_cv_path_SAMBA_CLIENT
8882 if test -n "$SAMBA_CLIENT"; then
8883 echo "$as_me:$LINENO: result: $SAMBA_CLIENT" >&5
8884 echo "${ECHO_T}$SAMBA_CLIENT" >&6
8886 echo "$as_me:$LINENO: result: no" >&5
8887 echo "${ECHO_T}no" >&6
8890 test -n "$SAMBA_CLIENT" && break
8895 if test ! -z "$SAMBA_CLIENT"; then
8896 case "`\"$SAMBA_CLIENT\" '\\\\not.a.host.name\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1`" in
8900 *"Connection to not.a.host.name failed"*)
8904 { echo "$as_me:$LINENO: WARNING: *** $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&5
8905 echo "$as_me: WARNING: *** $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&2;}
8909 if test -n "$SAMBA_CLIENT"; then
8911 cat >>confdefs.h <<_ACEOF
8912 #define SAMBA_CLIENT "$SAMBA_CLIENT"
8916 cat >>confdefs.h <<_ACEOF
8917 #define SAMBA_VERSION $smbversion
8927 # Extract the first word of "$ac_prog", so it can be a program name with args.
8928 set dummy $ac_prog; ac_word=$2
8929 echo "$as_me:$LINENO: checking for $ac_word" >&5
8930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8931 if test "${ac_cv_path_GZIP+set}" = set; then
8932 echo $ECHO_N "(cached) $ECHO_C" >&6
8936 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8940 for as_dir in $LOCSYSPATH
8943 test -z "$as_dir" && as_dir=.
8944 for ac_exec_ext in '' $ac_executable_extensions; do
8945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8946 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8956 GZIP=$ac_cv_path_GZIP
8958 if test -n "$GZIP"; then
8959 echo "$as_me:$LINENO: result: $GZIP" >&5
8960 echo "${ECHO_T}$GZIP" >&6
8962 echo "$as_me:$LINENO: result: no" >&5
8963 echo "${ECHO_T}no" >&6
8966 test -n "$GZIP" && break
8969 if test "$GZIP"; then
8971 cat >>confdefs.h <<\_ACEOF
8975 COMPRESS_PATH="$GZIP"
8976 COMPRESS_SUFFIX=".gz"
8977 COMPRESS_FAST_OPT="--fast"
8978 COMPRESS_BEST_OPT="--best"
8979 UNCOMPRESS_PATH="$GZIP"
8980 UNCOMPRESS_OPT="-dc"
8982 if test "$COMPRESS"; then
8983 COMPRESS_PATH="$COMPRESS"
8984 COMPRESS_SUFFIX=".Z"
8985 COMPRESS_FAST_OPT="-f"
8986 COMPRESS_BEST_OPT="-f"
8987 UNCOMPRESS_PATH="$COMPRESS"
8988 UNCOMPRESS_OPT="-dc"
8990 { echo "$as_me:$LINENO: WARNING: *** Cannot find either gzip or compress. Using cat. ***" >&5
8991 echo "$as_me: WARNING: *** Cannot find either gzip or compress. Using cat. ***" >&2;}
8992 COMPRESS_PATH="$CAT"
8994 COMPRESS_FAST_OPT=""
8995 COMPRESS_BEST_OPT=""
8996 UNCOMPRESS_PATH="$CAT"
9001 cat >>confdefs.h <<_ACEOF
9002 #define COMPRESS_PATH "$COMPRESS_PATH"
9006 cat >>confdefs.h <<_ACEOF
9007 #define COMPRESS_SUFFIX "$COMPRESS_SUFFIX"
9011 cat >>confdefs.h <<_ACEOF
9012 #define COMPRESS_FAST_OPT "$COMPRESS_FAST_OPT"
9016 cat >>confdefs.h <<_ACEOF
9017 #define COMPRESS_BEST_OPT "$COMPRESS_BEST_OPT"
9021 cat >>confdefs.h <<_ACEOF
9022 #define UNCOMPRESS_PATH "$UNCOMPRESS_PATH"
9026 cat >>confdefs.h <<_ACEOF
9027 #define UNCOMPRESS_OPT "$UNCOMPRESS_OPT"
9031 for ac_prog in Mail mailx mail
9033 # Extract the first word of "$ac_prog", so it can be a program name with args.
9034 set dummy $ac_prog; ac_word=$2
9035 echo "$as_me:$LINENO: checking for $ac_word" >&5
9036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9037 if test "${ac_cv_path_MAILER+set}" = set; then
9038 echo $ECHO_N "(cached) $ECHO_C" >&6
9042 ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
9045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9049 test -z "$as_dir" && as_dir=.
9050 for ac_exec_ext in '' $ac_executable_extensions; do
9051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9052 ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
9053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9062 MAILER=$ac_cv_path_MAILER
9064 if test -n "$MAILER"; then
9065 echo "$as_me:$LINENO: result: $MAILER" >&5
9066 echo "${ECHO_T}$MAILER" >&6
9068 echo "$as_me:$LINENO: result: no" >&5
9069 echo "${ECHO_T}no" >&6
9072 test -n "$MAILER" && break
9075 if test -z "$MAILER"; then
9076 if $NO_SERVER_MODE; then
9078 { echo "$as_me:$LINENO: WARNING: *** WARNING: Amanda cannot send mail reports without these programs." >&5
9079 echo "$as_me: WARNING: *** WARNING: Amanda cannot send mail reports without these programs." >&2;}
9081 { { echo "$as_me:$LINENO: error: Set MAILER to some program that accepts -s subject user < message_file." >&5
9082 echo "$as_me: error: Set MAILER to some program that accepts -s subject user < message_file." >&2;}
9083 { (exit 1); exit 1; }; }
9087 cat >>confdefs.h <<_ACEOF
9088 #define MAILER "$MAILER"
9094 # Extract the first word of "$ac_prog", so it can be a program name with args.
9095 set dummy $ac_prog; ac_word=$2
9096 echo "$as_me:$LINENO: checking for $ac_word" >&5
9097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9098 if test "${ac_cv_path_MT+set}" = set; then
9099 echo $ECHO_N "(cached) $ECHO_C" >&6
9103 ac_cv_path_MT="$MT" # Let the user override the test with a path.
9106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9107 for as_dir in $LOCSYSPATH
9110 test -z "$as_dir" && as_dir=.
9111 for ac_exec_ext in '' $ac_executable_extensions; do
9112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9113 ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
9114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9125 if test -n "$MT"; then
9126 echo "$as_me:$LINENO: result: $MT" >&5
9127 echo "${ECHO_T}$MT" >&6
9129 echo "$as_me:$LINENO: result: no" >&5
9130 echo "${ECHO_T}no" >&6
9133 test -n "$MT" && break
9135 test -n "$MT" || MT="mt"
9140 # Extract the first word of "$ac_prog", so it can be a program name with args.
9141 set dummy $ac_prog; ac_word=$2
9142 echo "$as_me:$LINENO: checking for $ac_word" >&5
9143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9144 if test "${ac_cv_path_CHIO+set}" = set; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9149 ac_cv_path_CHIO="$CHIO" # Let the user override the test with a path.
9152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9153 for as_dir in $LOCSYSPATH
9156 test -z "$as_dir" && as_dir=.
9157 for ac_exec_ext in '' $ac_executable_extensions; do
9158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9159 ac_cv_path_CHIO="$as_dir/$ac_word$ac_exec_ext"
9160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9169 CHIO=$ac_cv_path_CHIO
9171 if test -n "$CHIO"; then
9172 echo "$as_me:$LINENO: result: $CHIO" >&5
9173 echo "${ECHO_T}$CHIO" >&6
9175 echo "$as_me:$LINENO: result: no" >&5
9176 echo "${ECHO_T}no" >&6
9179 test -n "$CHIO" && break
9181 test -n "$CHIO" || CHIO="chio"
9186 # Extract the first word of "$ac_prog", so it can be a program name with args.
9187 set dummy $ac_prog; ac_word=$2
9188 echo "$as_me:$LINENO: checking for $ac_word" >&5
9189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9190 if test "${ac_cv_path_CHS+set}" = set; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
9195 ac_cv_path_CHS="$CHS" # Let the user override the test with a path.
9198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9199 for as_dir in $LOCSYSPATH
9202 test -z "$as_dir" && as_dir=.
9203 for ac_exec_ext in '' $ac_executable_extensions; do
9204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9205 ac_cv_path_CHS="$as_dir/$ac_word$ac_exec_ext"
9206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9217 if test -n "$CHS"; then
9218 echo "$as_me:$LINENO: result: $CHS" >&5
9219 echo "${ECHO_T}$CHS" >&6
9221 echo "$as_me:$LINENO: result: no" >&5
9222 echo "${ECHO_T}no" >&6
9225 test -n "$CHS" && break
9227 test -n "$CHS" || CHS="chs"
9232 # Extract the first word of "$ac_prog", so it can be a program name with args.
9233 set dummy $ac_prog; ac_word=$2
9234 echo "$as_me:$LINENO: checking for $ac_word" >&5
9235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9236 if test "${ac_cv_path_MTX+set}" = set; then
9237 echo $ECHO_N "(cached) $ECHO_C" >&6
9241 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
9244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9245 for as_dir in $LOCSYSPATH
9248 test -z "$as_dir" && as_dir=.
9249 for ac_exec_ext in '' $ac_executable_extensions; do
9250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9251 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
9252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9263 if test -n "$MTX"; then
9264 echo "$as_me:$LINENO: result: $MTX" >&5
9265 echo "${ECHO_T}$MTX" >&6
9267 echo "$as_me:$LINENO: result: no" >&5
9268 echo "${ECHO_T}no" >&6
9271 test -n "$MTX" && break
9273 test -n "$MTX" || MTX="mtx"
9276 for ac_prog in mcutil
9278 # Extract the first word of "$ac_prog", so it can be a program name with args.
9279 set dummy $ac_prog; ac_word=$2
9280 echo "$as_me:$LINENO: checking for $ac_word" >&5
9281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9282 if test "${ac_cv_path_MCUTIL+set}" = set; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9287 ac_cv_path_MCUTIL="$MCUTIL" # Let the user override the test with a path.
9290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9291 for as_dir in $LOCSYSPATH
9294 test -z "$as_dir" && as_dir=.
9295 for ac_exec_ext in '' $ac_executable_extensions; do
9296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9297 ac_cv_path_MCUTIL="$as_dir/$ac_word$ac_exec_ext"
9298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9307 MCUTIL=$ac_cv_path_MCUTIL
9309 if test -n "$MCUTIL"; then
9310 echo "$as_me:$LINENO: result: $MCUTIL" >&5
9311 echo "${ECHO_T}$MCUTIL" >&6
9313 echo "$as_me:$LINENO: result: no" >&5
9314 echo "${ECHO_T}no" >&6
9317 test -n "$MCUTIL" && break
9319 test -n "$MCUTIL" || MCUTIL="mcutil"
9322 for ac_prog in lpr lp
9324 # Extract the first word of "$ac_prog", so it can be a program name with args.
9325 set dummy $ac_prog; ac_word=$2
9326 echo "$as_me:$LINENO: checking for $ac_word" >&5
9327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9328 if test "${ac_cv_path_PRINT+set}" = set; then
9329 echo $ECHO_N "(cached) $ECHO_C" >&6
9333 ac_cv_path_PRINT="$PRINT" # Let the user override the test with a path.
9336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9340 test -z "$as_dir" && as_dir=.
9341 for ac_exec_ext in '' $ac_executable_extensions; do
9342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9343 ac_cv_path_PRINT="$as_dir/$ac_word$ac_exec_ext"
9344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9353 PRINT=$ac_cv_path_PRINT
9355 if test -n "$PRINT"; then
9356 echo "$as_me:$LINENO: result: $PRINT" >&5
9357 echo "${ECHO_T}$PRINT" >&6
9359 echo "$as_me:$LINENO: result: no" >&5
9360 echo "${ECHO_T}no" >&6
9363 test -n "$PRINT" && break
9366 if test ! -z "$PRINT"; then
9368 cat >>confdefs.h <<_ACEOF
9369 #define LPRCMD "$PRINT"
9372 echo "$as_me:$LINENO: checking which flag to use to select a printer" >&5
9373 echo $ECHO_N "checking which flag to use to select a printer... $ECHO_C" >&6
9374 if test "${amanda_cv_printer_flag+set}" = set; then
9375 echo $ECHO_N "(cached) $ECHO_C" >&6
9378 amanda_cv_printer_flag=$PRINTER_FLAG
9380 lpr|*/lpr) amanda_cv_printer_flag="-P";;
9381 lp|*/lp) amanda_cv_printer_flag="-d";;
9385 echo "$as_me:$LINENO: result: $amanda_cv_printer_flag" >&5
9386 echo "${ECHO_T}$amanda_cv_printer_flag" >&6
9387 if test ! -z "$amanda_cv_printer_flag"; then
9389 cat >>confdefs.h <<_ACEOF
9390 #define LPRFLAG "$amanda_cv_printer_flag"
9394 { echo "$as_me:$LINENO: WARNING: *** WARNING: amanda will always print to the default printer" >&5
9395 echo "$as_me: WARNING: *** WARNING: amanda will always print to the default printer" >&2;}
9401 # Extract the first word of "$ac_prog", so it can be a program name with args.
9402 set dummy $ac_prog; ac_word=$2
9403 echo "$as_me:$LINENO: checking for $ac_word" >&5
9404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9405 if test "${ac_cv_path_PCAT+set}" = set; then
9406 echo $ECHO_N "(cached) $ECHO_C" >&6
9410 ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
9413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9414 for as_dir in $LOCSYSPATH
9417 test -z "$as_dir" && as_dir=.
9418 for ac_exec_ext in '' $ac_executable_extensions; do
9419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9420 ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
9421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9430 PCAT=$ac_cv_path_PCAT
9432 if test -n "$PCAT"; then
9433 echo "$as_me:$LINENO: result: $PCAT" >&5
9434 echo "${ECHO_T}$PCAT" >&6
9436 echo "$as_me:$LINENO: result: no" >&5
9437 echo "${ECHO_T}no" >&6
9440 test -n "$PCAT" && break
9443 for ac_prog in perl5 perl
9445 # Extract the first word of "$ac_prog", so it can be a program name with args.
9446 set dummy $ac_prog; ac_word=$2
9447 echo "$as_me:$LINENO: checking for $ac_word" >&5
9448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9449 if test "${ac_cv_path_PERL+set}" = set; then
9450 echo $ECHO_N "(cached) $ECHO_C" >&6
9454 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9458 for as_dir in $LOCSYSPATH
9461 test -z "$as_dir" && as_dir=.
9462 for ac_exec_ext in '' $ac_executable_extensions; do
9463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9464 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9474 PERL=$ac_cv_path_PERL
9476 if test -n "$PERL"; then
9477 echo "$as_me:$LINENO: result: $PERL" >&5
9478 echo "${ECHO_T}$PERL" >&6
9480 echo "$as_me:$LINENO: result: no" >&5
9481 echo "${ECHO_T}no" >&6
9484 test -n "$PERL" && break
9489 for ac_prog in $DUMP_PROGRAMS
9491 # Extract the first word of "$ac_prog", so it can be a program name with args.
9492 set dummy $ac_prog; ac_word=$2
9493 echo "$as_me:$LINENO: checking for $ac_word" >&5
9494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9495 if test "${ac_cv_path_DUMP+set}" = set; then
9496 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 ac_cv_path_DUMP="$DUMP" # Let the user override the test with a path.
9503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9504 for as_dir in $SYSLOCPATH
9507 test -z "$as_dir" && as_dir=.
9508 for ac_exec_ext in '' $ac_executable_extensions; do
9509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9510 ac_cv_path_DUMP="$as_dir/$ac_word$ac_exec_ext"
9511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9520 DUMP=$ac_cv_path_DUMP
9522 if test -n "$DUMP"; then
9523 echo "$as_me:$LINENO: result: $DUMP" >&5
9524 echo "${ECHO_T}$DUMP" >&6
9526 echo "$as_me:$LINENO: result: no" >&5
9527 echo "${ECHO_T}no" >&6
9530 test -n "$DUMP" && break
9533 for ac_prog in ufsrestore restore
9535 # Extract the first word of "$ac_prog", so it can be a program name with args.
9536 set dummy $ac_prog; ac_word=$2
9537 echo "$as_me:$LINENO: checking for $ac_word" >&5
9538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9539 if test "${ac_cv_path_RESTORE+set}" = set; then
9540 echo $ECHO_N "(cached) $ECHO_C" >&6
9544 ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
9547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9548 for as_dir in $SYSLOCPATH
9551 test -z "$as_dir" && as_dir=.
9552 for ac_exec_ext in '' $ac_executable_extensions; do
9553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9554 ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
9555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9564 RESTORE=$ac_cv_path_RESTORE
9566 if test -n "$RESTORE"; then
9567 echo "$as_me:$LINENO: result: $RESTORE" >&5
9568 echo "${ECHO_T}$RESTORE" >&6
9570 echo "$as_me:$LINENO: result: no" >&5
9571 echo "${ECHO_T}no" >&6
9574 test -n "$RESTORE" && break
9577 if test "$DUMP" -a "$RESTORE"; then
9579 cat >>confdefs.h <<_ACEOF
9580 #define DUMP "$DUMP"
9584 cat >>confdefs.h <<_ACEOF
9585 #define RESTORE "$RESTORE"
9588 if test -x $DUMP; then
9589 echo "$as_me:$LINENO: checking whether $DUMP supports -E or -S for estimates" >&5
9590 echo $ECHO_N "checking whether $DUMP supports -E or -S for estimates... $ECHO_C" >&6
9591 if test "${amanda_cv_dump_estimate+set}" = set; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9597 { ac_try='$DUMP 9Ef /dev/null /dev/null/invalid/fs 2>&1
9600 | $GREP -v Label >conftest.d-E 2>&1'
9601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); }; }
9606 cat conftest.d-E >&5
9607 { ac_try='$DUMP 9Sf /dev/null /dev/null/invalid/fs 2>&1
9610 | $GREP -v Label >conftest.d-S 2>&1'
9611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); }; }
9616 cat conftest.d-S >&5
9617 { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
9620 | $GREP -v Label >conftest.d 2>&1'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; }
9627 if { ac_try='cmp conftest.d-E conftest.d 1>&2'
9628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; }; then
9633 amanda_cv_dump_estimate=E
9634 elif { ac_try='cmp conftest.d-S conftest.d 1>&2'
9635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); }; }; then
9640 amanda_cv_dump_estimate=S
9642 amanda_cv_dump_estimate=no
9644 rm -f conftest.d conftest.d-E conftest.d-S
9646 *) amanda_cv_dump_estimate=no
9651 echo "$as_me:$LINENO: result: $amanda_cv_dump_estimate" >&5
9652 echo "${ECHO_T}$amanda_cv_dump_estimate" >&6
9654 { echo "$as_me:$LINENO: WARNING: *** $DUMP is not executable, cannot run -E/-S test" >&5
9655 echo "$as_me: WARNING: *** $DUMP is not executable, cannot run -E/-S test" >&2;}
9656 amanda_cv_dump_estimate=no
9658 if test "$amanda_cv_dump_estimate" != no; then
9660 cat >>confdefs.h <<_ACEOF
9661 #define HAVE_DUMP_ESTIMATE "$amanda_cv_dump_estimate"
9667 # Check whether --with-dump-honor-nodump or --without-dump-honor-nodump was given.
9668 if test "${with_dump_honor_nodump+set}" = set; then
9669 withval="$with_dump_honor_nodump"
9670 if test -x $DUMP; then
9671 echo "$as_me:$LINENO: checking whether $DUMP supports -h (honor nodump flag)" >&5
9672 echo $ECHO_N "checking whether $DUMP supports -h (honor nodump flag)... $ECHO_C" >&6
9673 if test "${amanda_cv_honor_nodump+set}" = set; then
9674 echo $ECHO_N "(cached) $ECHO_C" >&6
9679 { ac_try='$DUMP 9hf 0 /dev/null /dev/null/invalid/fs 2>&1
9682 | $GREP -v Label >conftest.d-h 2>&1'
9683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); }; }
9688 cat conftest.d-h >&5
9689 { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
9692 | $GREP -v Label >conftest.d 2>&1'
9693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); }; }
9699 if { ac_try='diff conftest.d-h conftest.d 1>&2'
9700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; }; then
9705 amanda_cv_honor_nodump=yes
9707 amanda_cv_honor_nodump=no
9709 rm -f conftest.d conftest.d-h
9711 *) amanda_cv_honor_nodump=no
9716 echo "$as_me:$LINENO: result: $amanda_cv_honor_nodump" >&5
9717 echo "${ECHO_T}$amanda_cv_honor_nodump" >&6
9719 { echo "$as_me:$LINENO: WARNING: *** $DUMP is not executable, cannot run -h test" >&5
9720 echo "$as_me: WARNING: *** $DUMP is not executable, cannot run -h test" >&2;}
9721 amanda_cv_honor_nodump=no
9723 if test "$amanda_cv_honor_nodump" = yes; then
9725 cat >>confdefs.h <<\_ACEOF
9726 #define HAVE_HONOR_NODUMP 1
9734 for ac_prog in xfsdump
9736 # Extract the first word of "$ac_prog", so it can be a program name with args.
9737 set dummy $ac_prog; ac_word=$2
9738 echo "$as_me:$LINENO: checking for $ac_word" >&5
9739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9740 if test "${ac_cv_path_XFSDUMP+set}" = set; then
9741 echo $ECHO_N "(cached) $ECHO_C" >&6
9745 ac_cv_path_XFSDUMP="$XFSDUMP" # Let the user override the test with a path.
9748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9749 for as_dir in $SYSLOCPATH
9752 test -z "$as_dir" && as_dir=.
9753 for ac_exec_ext in '' $ac_executable_extensions; do
9754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9755 ac_cv_path_XFSDUMP="$as_dir/$ac_word$ac_exec_ext"
9756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9765 XFSDUMP=$ac_cv_path_XFSDUMP
9767 if test -n "$XFSDUMP"; then
9768 echo "$as_me:$LINENO: result: $XFSDUMP" >&5
9769 echo "${ECHO_T}$XFSDUMP" >&6
9771 echo "$as_me:$LINENO: result: no" >&5
9772 echo "${ECHO_T}no" >&6
9775 test -n "$XFSDUMP" && break
9778 for ac_prog in xfsrestore
9780 # Extract the first word of "$ac_prog", so it can be a program name with args.
9781 set dummy $ac_prog; ac_word=$2
9782 echo "$as_me:$LINENO: checking for $ac_word" >&5
9783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9784 if test "${ac_cv_path_XFSRESTORE+set}" = set; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9789 ac_cv_path_XFSRESTORE="$XFSRESTORE" # Let the user override the test with a path.
9792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9793 for as_dir in $SYSLOCPATH
9796 test -z "$as_dir" && as_dir=.
9797 for ac_exec_ext in '' $ac_executable_extensions; do
9798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9799 ac_cv_path_XFSRESTORE="$as_dir/$ac_word$ac_exec_ext"
9800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9809 XFSRESTORE=$ac_cv_path_XFSRESTORE
9811 if test -n "$XFSRESTORE"; then
9812 echo "$as_me:$LINENO: result: $XFSRESTORE" >&5
9813 echo "${ECHO_T}$XFSRESTORE" >&6
9815 echo "$as_me:$LINENO: result: no" >&5
9816 echo "${ECHO_T}no" >&6
9819 test -n "$XFSRESTORE" && break
9822 if test "$XFSDUMP" -a "$XFSRESTORE"; then
9824 cat >>confdefs.h <<_ACEOF
9825 #define XFSDUMP "$XFSDUMP"
9829 cat >>confdefs.h <<_ACEOF
9830 #define XFSRESTORE "$XFSRESTORE"
9833 { echo "$as_me:$LINENO: WARNING: *** xfsdump causes the setuid-root rundump program to be enabled" >&5
9834 echo "$as_me: WARNING: *** xfsdump causes the setuid-root rundump program to be enabled" >&2;}
9835 { echo "$as_me:$LINENO: WARNING: *** to disable it, just #undef XFSDUMP in config/config.h" >&5
9836 echo "$as_me: WARNING: *** to disable it, just #undef XFSDUMP in config/config.h" >&2;}
9839 VXSYSLOCPATH="$SYSLOCPATH:/usr/lib/fs/vxfs"
9840 for ac_prog in vxdump
9842 # Extract the first word of "$ac_prog", so it can be a program name with args.
9843 set dummy $ac_prog; ac_word=$2
9844 echo "$as_me:$LINENO: checking for $ac_word" >&5
9845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9846 if test "${ac_cv_path_VXDUMP+set}" = set; then
9847 echo $ECHO_N "(cached) $ECHO_C" >&6
9851 ac_cv_path_VXDUMP="$VXDUMP" # Let the user override the test with a path.
9854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9855 for as_dir in $VXSYSLOCPATH
9858 test -z "$as_dir" && as_dir=.
9859 for ac_exec_ext in '' $ac_executable_extensions; do
9860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9861 ac_cv_path_VXDUMP="$as_dir/$ac_word$ac_exec_ext"
9862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9871 VXDUMP=$ac_cv_path_VXDUMP
9873 if test -n "$VXDUMP"; then
9874 echo "$as_me:$LINENO: result: $VXDUMP" >&5
9875 echo "${ECHO_T}$VXDUMP" >&6
9877 echo "$as_me:$LINENO: result: no" >&5
9878 echo "${ECHO_T}no" >&6
9881 test -n "$VXDUMP" && break
9884 for ac_prog in vxrestore
9886 # Extract the first word of "$ac_prog", so it can be a program name with args.
9887 set dummy $ac_prog; ac_word=$2
9888 echo "$as_me:$LINENO: checking for $ac_word" >&5
9889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9890 if test "${ac_cv_path_VXRESTORE+set}" = set; then
9891 echo $ECHO_N "(cached) $ECHO_C" >&6
9895 ac_cv_path_VXRESTORE="$VXRESTORE" # Let the user override the test with a path.
9898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9899 for as_dir in $VXSYSLOCPATH
9902 test -z "$as_dir" && as_dir=.
9903 for ac_exec_ext in '' $ac_executable_extensions; do
9904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9905 ac_cv_path_VXRESTORE="$as_dir/$ac_word$ac_exec_ext"
9906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9915 VXRESTORE=$ac_cv_path_VXRESTORE
9917 if test -n "$VXRESTORE"; then
9918 echo "$as_me:$LINENO: result: $VXRESTORE" >&5
9919 echo "${ECHO_T}$VXRESTORE" >&6
9921 echo "$as_me:$LINENO: result: no" >&5
9922 echo "${ECHO_T}no" >&6
9925 test -n "$VXRESTORE" && break
9928 if test "$VXDUMP" -a "$VXRESTORE"; then
9930 cat >>confdefs.h <<_ACEOF
9931 #define VXDUMP "$VXDUMP"
9935 cat >>confdefs.h <<_ACEOF
9936 #define VXRESTORE "$VXRESTORE"
9941 for ac_prog in vdump
9943 # Extract the first word of "$ac_prog", so it can be a program name with args.
9944 set dummy $ac_prog; ac_word=$2
9945 echo "$as_me:$LINENO: checking for $ac_word" >&5
9946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9947 if test "${ac_cv_path_VDUMP+set}" = set; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
9952 ac_cv_path_VDUMP="$VDUMP" # Let the user override the test with a path.
9955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9956 for as_dir in $SYSLOCPATH
9959 test -z "$as_dir" && as_dir=.
9960 for ac_exec_ext in '' $ac_executable_extensions; do
9961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9962 ac_cv_path_VDUMP="$as_dir/$ac_word$ac_exec_ext"
9963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9972 VDUMP=$ac_cv_path_VDUMP
9974 if test -n "$VDUMP"; then
9975 echo "$as_me:$LINENO: result: $VDUMP" >&5
9976 echo "${ECHO_T}$VDUMP" >&6
9978 echo "$as_me:$LINENO: result: no" >&5
9979 echo "${ECHO_T}no" >&6
9982 test -n "$VDUMP" && break
9985 for ac_prog in vrestore
9987 # Extract the first word of "$ac_prog", so it can be a program name with args.
9988 set dummy $ac_prog; ac_word=$2
9989 echo "$as_me:$LINENO: checking for $ac_word" >&5
9990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9991 if test "${ac_cv_path_VRESTORE+set}" = set; then
9992 echo $ECHO_N "(cached) $ECHO_C" >&6
9996 ac_cv_path_VRESTORE="$VRESTORE" # Let the user override the test with a path.
9999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10000 for as_dir in $SYSLOCPATH
10003 test -z "$as_dir" && as_dir=.
10004 for ac_exec_ext in '' $ac_executable_extensions; do
10005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10006 ac_cv_path_VRESTORE="$as_dir/$ac_word$ac_exec_ext"
10007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10016 VRESTORE=$ac_cv_path_VRESTORE
10018 if test -n "$VRESTORE"; then
10019 echo "$as_me:$LINENO: result: $VRESTORE" >&5
10020 echo "${ECHO_T}$VRESTORE" >&6
10022 echo "$as_me:$LINENO: result: no" >&5
10023 echo "${ECHO_T}no" >&6
10026 test -n "$VRESTORE" && break
10029 if test "$VDUMP" -a "$VRESTORE"; then
10031 cat >>confdefs.h <<_ACEOF
10032 #define VDUMP "$VDUMP"
10036 cat >>confdefs.h <<_ACEOF
10037 #define VRESTORE "$VRESTORE"
10042 if test "$PCAT"; then
10043 AMPLOT_CAT_PACK="if(o==\"z\")print \"$PCAT\"; else"
10047 if test "$COMPRESS"; then
10048 AMPLOT_COMPRESS=$COMPRESS
10049 AMPLOT_CAT_COMPRESS="if(o==\"Z\")print \"$COMPRESS -dc\"; else"
10051 AMPLOT_CAT_COMPRESS=
10053 if test "$GZIP"; then
10054 AMPLOT_COMPRESS=$GZIP
10055 AMPLOT_CAT_GZIP="if(o==\"gz\")print \"$GZIP -dc\"; else"
10067 echo "$as_me:$LINENO: checking for large file compilation CFLAGS" >&5
10068 echo $ECHO_N "checking for large file compilation CFLAGS... $ECHO_C" >&6
10069 if test "${amanda_cv_LFS_CFLAGS+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10073 amanda_cv_LFS_CFLAGS=
10074 if test "$GETCONF"; then
10075 if $GETCONF ${GETCONF_LFS}_CFLAGS >/dev/null 2>&1; then
10076 amanda_cv_LFS_CFLAGS=`$GETCONF ${GETCONF_LFS}_CFLAGS 2>/dev/null`
10083 echo "$as_me:$LINENO: result: $amanda_cv_LFS_CFLAGS" >&5
10084 echo "${ECHO_T}$amanda_cv_LFS_CFLAGS" >&6
10085 echo "$as_me:$LINENO: checking for large file compilation LDFLAGS" >&5
10086 echo $ECHO_N "checking for large file compilation LDFLAGS... $ECHO_C" >&6
10087 if test "${amanda_cv_LFS_LDFLAGS+set}" = set; then
10088 echo $ECHO_N "(cached) $ECHO_C" >&6
10091 amanda_cv_LFS_LDFLAGS=
10092 if test "$GETCONF"; then
10093 if $GETCONF ${GETCONF_LFS}_LDFLAGS >/dev/null 2>&1; then
10094 amanda_cv_LFS_LDFLAGS=`$GETCONF ${GETCONF_LFS}_LDFLAGS 2>/dev/null`
10101 echo "$as_me:$LINENO: result: $amanda_cv_LFS_LDFLAGS" >&5
10102 echo "${ECHO_T}$amanda_cv_LFS_LDFLAGS" >&6
10103 echo "$as_me:$LINENO: checking for large file compilation LIBS" >&5
10104 echo $ECHO_N "checking for large file compilation LIBS... $ECHO_C" >&6
10105 if test "${amanda_cv_LFS_LIBS+set}" = set; then
10106 echo $ECHO_N "(cached) $ECHO_C" >&6
10109 amanda_cv_LFS_LIBS=
10110 if test "$GETCONF"; then
10111 if $GETCONF ${GETCONF_LFS}_LIBS >/dev/null 2>&1; then
10112 amanda_cv_LFS_LIBS=`$GETCONF ${GETCONF_LFS}_LIBS 2>/dev/null`
10119 echo "$as_me:$LINENO: result: $amanda_cv_LFS_LIBS" >&5
10120 echo "${ECHO_T}$amanda_cv_LFS_LIBS" >&6
10121 if test "$need_resetofs" = yes; then
10123 cat >>confdefs.h <<\_ACEOF
10124 #define NEED_RESETOFS 1
10128 CFLAGS="$amanda_cv_LFS_CFLAGS $CFLAGS"
10129 CPPFLAGS="$amanda_cv_LFS_CFLAGS $CPPFLAGS"
10130 LDFLAGS="$amanda_cv_LFS_LDFLAGS $LDFLAGS"
10131 LIBS="$amanda_cv_LFS_LIBS $LIBS"
10133 # Check whether --enable-shared or --disable-shared was given.
10134 if test "${enable_shared+set}" = set; then
10135 enableval="$enable_shared"
10136 p=${PACKAGE-default}
10138 yes) enable_shared=yes ;;
10139 no) enable_shared=no ;;
10142 # Look at the argument we got. We use all the common list separators.
10143 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10144 for pkg in $enableval; do
10146 if test "X$pkg" = "X$p"; then
10157 # Check whether --enable-static or --disable-static was given.
10158 if test "${enable_static+set}" = set; then
10159 enableval="$enable_static"
10160 p=${PACKAGE-default}
10162 yes) enable_static=yes ;;
10163 no) enable_static=no ;;
10166 # Look at the argument we got. We use all the common list separators.
10167 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10168 for pkg in $enableval; do
10170 if test "X$pkg" = "X$p"; then
10181 # Check whether --enable-fast-install or --disable-fast-install was given.
10182 if test "${enable_fast_install+set}" = set; then
10183 enableval="$enable_fast_install"
10184 p=${PACKAGE-default}
10186 yes) enable_fast_install=yes ;;
10187 no) enable_fast_install=no ;;
10189 enable_fast_install=no
10190 # Look at the argument we got. We use all the common list separators.
10191 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10192 for pkg in $enableval; do
10194 if test "X$pkg" = "X$p"; then
10195 enable_fast_install=yes
10202 enable_fast_install=yes
10205 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10206 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10207 if test "${lt_cv_path_SED+set}" = set; then
10208 echo $ECHO_N "(cached) $ECHO_C" >&6
10210 # Loop through the user's path and test for sed and gsed.
10211 # Then use that list of sed's as ones to test for truncation.
10212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10213 for as_dir in $PATH
10216 test -z "$as_dir" && as_dir=.
10217 for lt_ac_prog in sed gsed; do
10218 for ac_exec_ext in '' $ac_executable_extensions; do
10219 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10220 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10227 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10228 # along with /bin/sed that truncates output.
10229 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10230 test ! -f $lt_ac_sed && continue
10231 cat /dev/null > conftest.in
10233 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10234 # Check for GNU sed and select it if it is found.
10235 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10236 lt_cv_path_SED=$lt_ac_sed
10240 cat conftest.in conftest.in >conftest.tmp
10241 mv conftest.tmp conftest.in
10242 cp conftest.in conftest.nl
10244 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10245 cmp -s conftest.out conftest.nl || break
10246 # 10000 chars as input seems more than enough
10247 test $lt_ac_count -gt 10 && break
10248 lt_ac_count=`expr $lt_ac_count + 1`
10249 if test $lt_ac_count -gt $lt_ac_max; then
10250 lt_ac_max=$lt_ac_count
10251 lt_cv_path_SED=$lt_ac_sed
10258 SED=$lt_cv_path_SED
10259 echo "$as_me:$LINENO: result: $SED" >&5
10260 echo "${ECHO_T}$SED" >&6
10263 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10264 if test "${with_gnu_ld+set}" = set; then
10265 withval="$with_gnu_ld"
10266 test "$withval" = no || with_gnu_ld=yes
10271 if test "$GCC" = yes; then
10272 # Check if gcc -print-prog-name=ld gives a path.
10273 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10274 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10277 # gcc leaves a trailing carriage return which upsets mingw
10278 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10280 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10283 # Accept absolute paths.
10285 re_direlt='/[^/][^/]*/\.\./'
10286 # Canonicalize the pathname of ld
10287 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10288 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10289 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10291 test -z "$LD" && LD="$ac_prog"
10294 # If it fails, then pretend we aren't using GCC.
10298 # If it is relative, then search for the first ld in PATH.
10299 with_gnu_ld=unknown
10302 elif test "$with_gnu_ld" = yes; then
10303 echo "$as_me:$LINENO: checking for GNU ld" >&5
10304 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10306 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10307 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10309 if test "${lt_cv_path_LD+set}" = set; then
10310 echo $ECHO_N "(cached) $ECHO_C" >&6
10312 if test -z "$LD"; then
10313 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10314 for ac_dir in $PATH; do
10316 test -z "$ac_dir" && ac_dir=.
10317 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10318 lt_cv_path_LD="$ac_dir/$ac_prog"
10319 # Check to see if the program is GNU ld. I'd rather use --version,
10320 # but apparently some GNU ld's only accept -v.
10321 # Break only if it was the GNU/non-GNU ld that we prefer.
10322 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10323 *GNU* | *'with BFD'*)
10324 test "$with_gnu_ld" != no && break
10327 test "$with_gnu_ld" != yes && break
10334 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10338 LD="$lt_cv_path_LD"
10339 if test -n "$LD"; then
10340 echo "$as_me:$LINENO: result: $LD" >&5
10341 echo "${ECHO_T}$LD" >&6
10343 echo "$as_me:$LINENO: result: no" >&5
10344 echo "${ECHO_T}no" >&6
10346 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10347 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10348 { (exit 1); exit 1; }; }
10349 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10350 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10351 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10352 echo $ECHO_N "(cached) $ECHO_C" >&6
10354 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10355 case `$LD -v 2>&1 </dev/null` in
10356 *GNU* | *'with BFD'*)
10357 lt_cv_prog_gnu_ld=yes
10360 lt_cv_prog_gnu_ld=no
10364 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10365 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10366 with_gnu_ld=$lt_cv_prog_gnu_ld
10369 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10370 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10371 if test "${lt_cv_ld_reload_flag+set}" = set; then
10372 echo $ECHO_N "(cached) $ECHO_C" >&6
10374 lt_cv_ld_reload_flag='-r'
10376 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10377 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10378 reload_flag=$lt_cv_ld_reload_flag
10379 case $reload_flag in
10381 *) reload_flag=" $reload_flag" ;;
10383 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10386 if test "$GCC" = yes; then
10387 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10389 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10394 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
10395 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
10396 if test "${lt_cv_path_NM+set}" = set; then
10397 echo $ECHO_N "(cached) $ECHO_C" >&6
10399 if test -n "$NM"; then
10400 # Let the user override the test.
10401 lt_cv_path_NM="$NM"
10403 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10404 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
10406 test -z "$ac_dir" && ac_dir=.
10407 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
10408 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10409 # Check to see if the nm accepts a BSD-compat flag.
10410 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10411 # nm: unknown option "B" ignored
10412 # Tru64's nm complains that /dev/null is an invalid object file
10413 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10414 */dev/null* | *'Invalid file or object type'*)
10415 lt_cv_path_NM="$tmp_nm -B"
10419 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10421 lt_cv_path_NM="$tmp_nm -p"
10425 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10426 continue # so that we can try to find one that supports BSD flags
10433 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
10436 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
10437 echo "${ECHO_T}$lt_cv_path_NM" >&6
10438 NM="$lt_cv_path_NM"
10440 echo "$as_me:$LINENO: checking whether ln -s works" >&5
10441 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
10443 if test "$LN_S" = "ln -s"; then
10444 echo "$as_me:$LINENO: result: yes" >&5
10445 echo "${ECHO_T}yes" >&6
10447 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10448 echo "${ECHO_T}no, using $LN_S" >&6
10451 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10452 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10453 if test "${lt_cv_deplibs_check_method+set}" = set; then
10454 echo $ECHO_N "(cached) $ECHO_C" >&6
10456 lt_cv_file_magic_cmd='$MAGIC_CMD'
10457 lt_cv_file_magic_test_file=
10458 lt_cv_deplibs_check_method='unknown'
10459 # Need to set the preceding variable on all platforms that support
10460 # interlibrary dependencies.
10461 # 'none' -- dependencies not supported.
10462 # `unknown' -- same as none, but documents that we really don't know.
10463 # 'pass_all' -- all dependencies passed with no checks.
10464 # 'test_compile' -- check by making test program.
10465 # 'file_magic [[regex]]' -- check by looking for files in library path
10466 # which responds to the $file_magic_cmd with a given extended regex.
10467 # If you have `file' or equivalent on your system and you're not sure
10468 # whether `pass_all' will *always* work, you probably want this one.
10472 lt_cv_deplibs_check_method=pass_all
10476 lt_cv_deplibs_check_method=pass_all
10480 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10481 lt_cv_file_magic_cmd='/usr/bin/file -L'
10482 lt_cv_file_magic_test_file=/shlib/libc.so
10486 # func_win32_libid is a shell function defined in ltmain.sh
10487 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10488 lt_cv_file_magic_cmd='func_win32_libid'
10492 # Base MSYS/MinGW do not provide the 'file' command needed by
10493 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10494 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10495 lt_cv_file_magic_cmd='$OBJDUMP -f'
10498 darwin* | rhapsody*)
10499 lt_cv_deplibs_check_method=pass_all
10502 freebsd* | kfreebsd*-gnu | dragonfly*)
10503 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10506 # Not sure whether the presence of OpenBSD here was a mistake.
10507 # Let's accept both of them until this is cleared up.
10508 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10509 lt_cv_file_magic_cmd=/usr/bin/file
10510 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10514 lt_cv_deplibs_check_method=pass_all
10519 lt_cv_deplibs_check_method=pass_all
10522 hpux10.20* | hpux11*)
10523 lt_cv_file_magic_cmd=/usr/bin/file
10524 case "$host_cpu" in
10526 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10527 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10530 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]'
10531 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10534 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10535 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10540 irix5* | irix6* | nonstopux*)
10542 *-32|*"-32 ") libmagic=32-bit;;
10543 *-n32|*"-n32 ") libmagic=N32;;
10544 *-64|*"-64 ") libmagic=64-bit;;
10545 *) libmagic=never-match;;
10547 lt_cv_deplibs_check_method=pass_all
10550 # This must be Linux ELF.
10552 lt_cv_deplibs_check_method=pass_all
10556 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10557 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10559 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10564 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10565 lt_cv_file_magic_cmd=/usr/bin/file
10566 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10570 lt_cv_deplibs_check_method=unknown
10574 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10575 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10577 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10581 osf3* | osf4* | osf5*)
10582 lt_cv_deplibs_check_method=pass_all
10586 lt_cv_deplibs_check_method=pass_all
10590 lt_cv_deplibs_check_method=pass_all
10593 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10594 case $host_vendor in
10596 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]'
10597 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10600 lt_cv_deplibs_check_method=pass_all
10603 lt_cv_file_magic_cmd='/bin/file'
10604 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10607 lt_cv_file_magic_cmd='/bin/file'
10608 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10609 lt_cv_file_magic_test_file=/lib/libc.so
10612 lt_cv_deplibs_check_method=pass_all
10617 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10618 lt_cv_deplibs_check_method=pass_all
10623 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10624 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10625 file_magic_cmd=$lt_cv_file_magic_cmd
10626 deplibs_check_method=$lt_cv_deplibs_check_method
10627 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10630 # If no C compiler was specified, use CC.
10633 # Allow CC to be a program name with arguments.
10636 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10637 if test "${enable_libtool_lock+set}" = set; then
10638 enableval="$enable_libtool_lock"
10641 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10643 # Some flags need to be propagated to the compiler or linker for good
10647 # Find out which ABI we are using.
10648 echo 'int i;' > conftest.$ac_ext
10649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10650 (eval $ac_compile) 2>&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); }; then
10654 case `/usr/bin/file conftest.$ac_objext` in
10656 HPUX_IA64_MODE="32"
10659 HPUX_IA64_MODE="64"
10666 # Find out which ABI we are using.
10667 echo '#line 10667 "configure"' > conftest.$ac_ext
10668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10669 (eval $ac_compile) 2>&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }; then
10673 if test "$lt_cv_prog_gnu_ld" = yes; then
10674 case `/usr/bin/file conftest.$ac_objext` in
10676 LD="${LD-ld} -melf32bsmip"
10679 LD="${LD-ld} -melf32bmipn32"
10682 LD="${LD-ld} -melf64bmip"
10686 case `/usr/bin/file conftest.$ac_objext` in
10702 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10703 # Find out which ABI we are using.
10704 echo 'int i;' > conftest.$ac_ext
10705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10706 (eval $ac_compile) 2>&5
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); }; then
10710 case "`/usr/bin/file conftest.o`" in
10714 LD="${LD-ld} -m elf_i386"
10716 ppc64-*linux*|powerpc64-*linux*)
10717 LD="${LD-ld} -m elf32ppclinux"
10720 LD="${LD-ld} -m elf_s390"
10723 LD="${LD-ld} -m elf32_sparc"
10730 LD="${LD-ld} -m elf_x86_64"
10732 ppc*-*linux*|powerpc*-*linux*)
10733 LD="${LD-ld} -m elf64ppc"
10736 LD="${LD-ld} -m elf64_s390"
10739 LD="${LD-ld} -m elf64_sparc"
10749 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10750 SAVE_CFLAGS="$CFLAGS"
10751 CFLAGS="$CFLAGS -belf"
10752 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10753 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10754 if test "${lt_cv_cc_needs_belf+set}" = set; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6
10758 ac_cpp='$CPP $CPPFLAGS'
10759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10763 cat >conftest.$ac_ext <<_ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h. */
10778 rm -f conftest.$ac_objext conftest$ac_exeext
10779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10780 (eval $ac_link) 2>conftest.er1
10782 grep -v '^ *+' conftest.er1 >conftest.err
10784 cat conftest.err >&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); } &&
10787 { ac_try='test -z "$ac_c_werror_flag"
10788 || test ! -s conftest.err'
10789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790 (eval $ac_try) 2>&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; } &&
10794 { ac_try='test -s conftest$ac_exeext'
10795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796 (eval $ac_try) 2>&5
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; }; then
10800 lt_cv_cc_needs_belf=yes
10802 echo "$as_me: failed program was:" >&5
10803 sed 's/^/| /' conftest.$ac_ext >&5
10805 lt_cv_cc_needs_belf=no
10807 rm -f conftest.err conftest.$ac_objext \
10808 conftest$ac_exeext conftest.$ac_ext
10810 ac_cpp='$CPP $CPPFLAGS'
10811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10816 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10817 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10818 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10819 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10820 CFLAGS="$SAVE_CFLAGS"
10826 need_locks="$enable_libtool_lock"
10830 for ac_header in dlfcn.h
10832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10834 echo "$as_me:$LINENO: checking for $ac_header" >&5
10835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10837 echo $ECHO_N "(cached) $ECHO_C" >&6
10839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10842 # Is the header compilable?
10843 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10845 cat >conftest.$ac_ext <<_ACEOF
10848 cat confdefs.h >>conftest.$ac_ext
10849 cat >>conftest.$ac_ext <<_ACEOF
10850 /* end confdefs.h. */
10851 $ac_includes_default
10852 #include <$ac_header>
10854 rm -f conftest.$ac_objext
10855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10856 (eval $ac_compile) 2>conftest.er1
10858 grep -v '^ *+' conftest.er1 >conftest.err
10860 cat conftest.err >&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); } &&
10863 { ac_try='test -z "$ac_c_werror_flag"
10864 || test ! -s conftest.err'
10865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10866 (eval $ac_try) 2>&5
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); }; } &&
10870 { ac_try='test -s conftest.$ac_objext'
10871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10872 (eval $ac_try) 2>&5
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); }; }; then
10876 ac_header_compiler=yes
10878 echo "$as_me: failed program was:" >&5
10879 sed 's/^/| /' conftest.$ac_ext >&5
10881 ac_header_compiler=no
10883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10885 echo "${ECHO_T}$ac_header_compiler" >&6
10887 # Is the header present?
10888 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10890 cat >conftest.$ac_ext <<_ACEOF
10893 cat confdefs.h >>conftest.$ac_ext
10894 cat >>conftest.$ac_ext <<_ACEOF
10895 /* end confdefs.h. */
10896 #include <$ac_header>
10898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10901 grep -v '^ *+' conftest.er1 >conftest.err
10903 cat conftest.err >&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); } >/dev/null; then
10906 if test -s conftest.err; then
10907 ac_cpp_err=$ac_c_preproc_warn_flag
10908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10915 if test -z "$ac_cpp_err"; then
10916 ac_header_preproc=yes
10918 echo "$as_me: failed program was:" >&5
10919 sed 's/^/| /' conftest.$ac_ext >&5
10921 ac_header_preproc=no
10923 rm -f conftest.err conftest.$ac_ext
10924 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10925 echo "${ECHO_T}$ac_header_preproc" >&6
10927 # So? What about this header?
10928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10934 ac_header_preproc=yes
10937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10940 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10941 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10942 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10943 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10944 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10947 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10948 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10951 ## ------------------------------------------ ##
10952 ## Report this to the AC_PACKAGE_NAME lists. ##
10953 ## ------------------------------------------ ##
10956 sed "s/^/$as_me: WARNING: /" >&2
10959 echo "$as_me:$LINENO: checking for $ac_header" >&5
10960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10964 eval "$as_ac_Header=\$ac_header_preproc"
10966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10971 cat >>confdefs.h <<_ACEOF
10972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10980 ac_cpp='$CXXCPP $CPPFLAGS'
10981 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10982 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10983 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10984 if test -n "$ac_tool_prefix"; then
10985 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10988 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10989 echo "$as_me:$LINENO: checking for $ac_word" >&5
10990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10991 if test "${ac_cv_prog_CXX+set}" = set; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10994 if test -n "$CXX"; then
10995 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10998 for as_dir in $PATH
11001 test -z "$as_dir" && as_dir=.
11002 for ac_exec_ext in '' $ac_executable_extensions; do
11003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11004 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11013 CXX=$ac_cv_prog_CXX
11014 if test -n "$CXX"; then
11015 echo "$as_me:$LINENO: result: $CXX" >&5
11016 echo "${ECHO_T}$CXX" >&6
11018 echo "$as_me:$LINENO: result: no" >&5
11019 echo "${ECHO_T}no" >&6
11022 test -n "$CXX" && break
11025 if test -z "$CXX"; then
11027 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11029 # Extract the first word of "$ac_prog", so it can be a program name with args.
11030 set dummy $ac_prog; ac_word=$2
11031 echo "$as_me:$LINENO: checking for $ac_word" >&5
11032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11033 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11034 echo $ECHO_N "(cached) $ECHO_C" >&6
11036 if test -n "$ac_ct_CXX"; then
11037 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11040 for as_dir in $PATH
11043 test -z "$as_dir" && as_dir=.
11044 for ac_exec_ext in '' $ac_executable_extensions; do
11045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11046 ac_cv_prog_ac_ct_CXX="$ac_prog"
11047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11055 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11056 if test -n "$ac_ct_CXX"; then
11057 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11058 echo "${ECHO_T}$ac_ct_CXX" >&6
11060 echo "$as_me:$LINENO: result: no" >&5
11061 echo "${ECHO_T}no" >&6
11064 test -n "$ac_ct_CXX" && break
11066 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11072 # Provide some information about the compiler.
11073 echo "$as_me:$LINENO:" \
11074 "checking for C++ compiler version" >&5
11075 ac_compiler=`set X $ac_compile; echo $2`
11076 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11077 (eval $ac_compiler --version </dev/null >&5) 2>&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); }
11081 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11082 (eval $ac_compiler -v </dev/null >&5) 2>&5
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); }
11086 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11087 (eval $ac_compiler -V </dev/null >&5) 2>&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }
11092 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11093 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11094 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11095 echo $ECHO_N "(cached) $ECHO_C" >&6
11097 cat >conftest.$ac_ext <<_ACEOF
11100 cat confdefs.h >>conftest.$ac_ext
11101 cat >>conftest.$ac_ext <<_ACEOF
11102 /* end confdefs.h. */
11115 rm -f conftest.$ac_objext
11116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11117 (eval $ac_compile) 2>conftest.er1
11119 grep -v '^ *+' conftest.er1 >conftest.err
11121 cat conftest.err >&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); } &&
11124 { ac_try='test -z "$ac_cxx_werror_flag"
11125 || test ! -s conftest.err'
11126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11127 (eval $ac_try) 2>&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); }; } &&
11131 { ac_try='test -s conftest.$ac_objext'
11132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11133 (eval $ac_try) 2>&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); }; }; then
11137 ac_compiler_gnu=yes
11139 echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.$ac_ext >&5
11144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11145 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11148 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11149 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11150 GXX=`test $ac_compiler_gnu = yes && echo yes`
11151 ac_test_CXXFLAGS=${CXXFLAGS+set}
11152 ac_save_CXXFLAGS=$CXXFLAGS
11154 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11155 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11156 if test "${ac_cv_prog_cxx_g+set}" = set; then
11157 echo $ECHO_N "(cached) $ECHO_C" >&6
11159 cat >conftest.$ac_ext <<_ACEOF
11162 cat confdefs.h >>conftest.$ac_ext
11163 cat >>conftest.$ac_ext <<_ACEOF
11164 /* end confdefs.h. */
11174 rm -f conftest.$ac_objext
11175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11176 (eval $ac_compile) 2>conftest.er1
11178 grep -v '^ *+' conftest.er1 >conftest.err
11180 cat conftest.err >&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } &&
11183 { ac_try='test -z "$ac_cxx_werror_flag"
11184 || test ! -s conftest.err'
11185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11186 (eval $ac_try) 2>&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); }; } &&
11190 { ac_try='test -s conftest.$ac_objext'
11191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11192 (eval $ac_try) 2>&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; }; then
11196 ac_cv_prog_cxx_g=yes
11198 echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11201 ac_cv_prog_cxx_g=no
11203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11205 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11206 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11207 if test "$ac_test_CXXFLAGS" = set; then
11208 CXXFLAGS=$ac_save_CXXFLAGS
11209 elif test $ac_cv_prog_cxx_g = yes; then
11210 if test "$GXX" = yes; then
11216 if test "$GXX" = yes; then
11222 for ac_declaration in \
11224 'extern "C" void std::exit (int) throw (); using std::exit;' \
11225 'extern "C" void std::exit (int); using std::exit;' \
11226 'extern "C" void exit (int) throw ();' \
11227 'extern "C" void exit (int);' \
11230 cat >conftest.$ac_ext <<_ACEOF
11233 cat confdefs.h >>conftest.$ac_ext
11234 cat >>conftest.$ac_ext <<_ACEOF
11235 /* end confdefs.h. */
11237 #include <stdlib.h>
11246 rm -f conftest.$ac_objext
11247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11248 (eval $ac_compile) 2>conftest.er1
11250 grep -v '^ *+' conftest.er1 >conftest.err
11252 cat conftest.err >&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); } &&
11255 { ac_try='test -z "$ac_cxx_werror_flag"
11256 || test ! -s conftest.err'
11257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11258 (eval $ac_try) 2>&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); }; } &&
11262 { ac_try='test -s conftest.$ac_objext'
11263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11264 (eval $ac_try) 2>&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); }; }; then
11270 echo "$as_me: failed program was:" >&5
11271 sed 's/^/| /' conftest.$ac_ext >&5
11275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11276 cat >conftest.$ac_ext <<_ACEOF
11279 cat confdefs.h >>conftest.$ac_ext
11280 cat >>conftest.$ac_ext <<_ACEOF
11281 /* end confdefs.h. */
11291 rm -f conftest.$ac_objext
11292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11293 (eval $ac_compile) 2>conftest.er1
11295 grep -v '^ *+' conftest.er1 >conftest.err
11297 cat conftest.err >&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); } &&
11300 { ac_try='test -z "$ac_cxx_werror_flag"
11301 || test ! -s conftest.err'
11302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11303 (eval $ac_try) 2>&5
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); }; } &&
11307 { ac_try='test -s conftest.$ac_objext'
11308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309 (eval $ac_try) 2>&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; }; then
11315 echo "$as_me: failed program was:" >&5
11316 sed 's/^/| /' conftest.$ac_ext >&5
11319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11322 if test -n "$ac_declaration"; then
11323 echo '#ifdef __cplusplus' >>confdefs.h
11324 echo $ac_declaration >>confdefs.h
11325 echo '#endif' >>confdefs.h
11329 ac_cpp='$CXXCPP $CPPFLAGS'
11330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11331 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11334 depcc="$CXX" am_compiler_list=
11336 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11337 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
11338 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
11339 echo $ECHO_N "(cached) $ECHO_C" >&6
11341 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11342 # We make a subdir and do the tests there. Otherwise we can end up
11343 # making bogus files that we don't know about and never remove. For
11344 # instance it was reported that on HP-UX the gcc test will end up
11345 # making a dummy file named `D' -- because `-MD' means `put the output
11348 # Copy depcomp to subdir because otherwise we won't find it if we're
11349 # using a relative directory.
11350 cp "$am_depcomp" conftest.dir
11352 # We will build objects and dependencies in a subdirectory because
11353 # it helps to detect inapplicable dependency modes. For instance
11354 # both Tru64's cc and ICC support -MD to output dependencies as a
11355 # side effect of compilation, but ICC will put the dependencies in
11356 # the current directory while Tru64 will put them in the object
11360 am_cv_CXX_dependencies_compiler_type=none
11361 if test "$am_compiler_list" = ""; then
11362 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11364 for depmode in $am_compiler_list; do
11365 # Setup a source with many dependencies, because some compilers
11366 # like to wrap large dependency lists on column 80 (with \), and
11367 # we should not choose a depcomp mode which is confused by this.
11369 # We need to recreate these files for each test, as the compiler may
11370 # overwrite some of them when testing with obscure command lines.
11371 # This happens at least with the AIX C compiler.
11373 for i in 1 2 3 4 5 6; do
11374 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11375 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11376 # Solaris 8's {/usr,}/bin/sh.
11377 touch sub/conftst$i.h
11379 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11383 # after this tag, mechanisms are not by side-effect, so they'll
11384 # only be used when explicitly requested
11385 if test "x$enable_dependency_tracking" = xyes; then
11393 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11394 # mode. It turns out that the SunPro C++ compiler does not properly
11395 # handle `-M -o', and we need to detect this.
11396 if depmode=$depmode \
11397 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11398 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11399 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11400 >/dev/null 2>conftest.err &&
11401 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11402 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11403 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11404 # icc doesn't choke on unknown options, it will just issue warnings
11405 # or remarks (even with -Werror). So we grep stderr for any message
11406 # that says an option was ignored or not supported.
11407 # When given -MP, icc 7.0 and 7.1 complain thusly:
11408 # icc: Command line warning: ignoring option '-M'; no argument required
11409 # The diagnosis changed in icc 8.0:
11410 # icc: Command line remark: option '-MP' not supported
11411 if (grep 'ignoring option' conftest.err ||
11412 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11413 am_cv_CXX_dependencies_compiler_type=$depmode
11420 rm -rf conftest.dir
11422 am_cv_CXX_dependencies_compiler_type=none
11426 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
11427 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
11428 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11433 test "x$enable_dependency_tracking" != xno \
11434 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11435 am__fastdepCXX_TRUE=
11436 am__fastdepCXX_FALSE='#'
11438 am__fastdepCXX_TRUE='#'
11439 am__fastdepCXX_FALSE=
11445 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11446 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11447 (test "X$CXX" != "Xg++"))) ; then
11449 ac_cpp='$CXXCPP $CPPFLAGS'
11450 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11451 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11452 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11453 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11454 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
11455 if test -z "$CXXCPP"; then
11456 if test "${ac_cv_prog_CXXCPP+set}" = set; then
11457 echo $ECHO_N "(cached) $ECHO_C" >&6
11459 # Double quotes because CXXCPP needs to be expanded
11460 for CXXCPP in "$CXX -E" "/lib/cpp"
11462 ac_preproc_ok=false
11463 for ac_cxx_preproc_warn_flag in '' yes
11465 # Use a header file that comes with gcc, so configuring glibc
11466 # with a fresh cross-compiler works.
11467 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11468 # <limits.h> exists even on freestanding compilers.
11469 # On the NeXT, cc -E runs the code through the compiler's parser,
11470 # not just through cpp. "Syntax error" is here to catch this case.
11471 cat >conftest.$ac_ext <<_ACEOF
11474 cat confdefs.h >>conftest.$ac_ext
11475 cat >>conftest.$ac_ext <<_ACEOF
11476 /* end confdefs.h. */
11478 # include <limits.h>
11480 # include <assert.h>
11484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11487 grep -v '^ *+' conftest.er1 >conftest.err
11489 cat conftest.err >&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); } >/dev/null; then
11492 if test -s conftest.err; then
11493 ac_cpp_err=$ac_cxx_preproc_warn_flag
11494 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11501 if test -z "$ac_cpp_err"; then
11504 echo "$as_me: failed program was:" >&5
11505 sed 's/^/| /' conftest.$ac_ext >&5
11507 # Broken: fails on valid input.
11510 rm -f conftest.err conftest.$ac_ext
11512 # OK, works on sane cases. Now check whether non-existent headers
11513 # can be detected and how.
11514 cat >conftest.$ac_ext <<_ACEOF
11517 cat confdefs.h >>conftest.$ac_ext
11518 cat >>conftest.$ac_ext <<_ACEOF
11519 /* end confdefs.h. */
11520 #include <ac_nonexistent.h>
11522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11525 grep -v '^ *+' conftest.er1 >conftest.err
11527 cat conftest.err >&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); } >/dev/null; then
11530 if test -s conftest.err; then
11531 ac_cpp_err=$ac_cxx_preproc_warn_flag
11532 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11539 if test -z "$ac_cpp_err"; then
11540 # Broken: success on invalid input.
11543 echo "$as_me: failed program was:" >&5
11544 sed 's/^/| /' conftest.$ac_ext >&5
11546 # Passes both tests.
11550 rm -f conftest.err conftest.$ac_ext
11553 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11554 rm -f conftest.err conftest.$ac_ext
11555 if $ac_preproc_ok; then
11560 ac_cv_prog_CXXCPP=$CXXCPP
11563 CXXCPP=$ac_cv_prog_CXXCPP
11565 ac_cv_prog_CXXCPP=$CXXCPP
11567 echo "$as_me:$LINENO: result: $CXXCPP" >&5
11568 echo "${ECHO_T}$CXXCPP" >&6
11569 ac_preproc_ok=false
11570 for ac_cxx_preproc_warn_flag in '' yes
11572 # Use a header file that comes with gcc, so configuring glibc
11573 # with a fresh cross-compiler works.
11574 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11575 # <limits.h> exists even on freestanding compilers.
11576 # On the NeXT, cc -E runs the code through the compiler's parser,
11577 # not just through cpp. "Syntax error" is here to catch this case.
11578 cat >conftest.$ac_ext <<_ACEOF
11581 cat confdefs.h >>conftest.$ac_ext
11582 cat >>conftest.$ac_ext <<_ACEOF
11583 /* end confdefs.h. */
11585 # include <limits.h>
11587 # include <assert.h>
11591 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11592 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11594 grep -v '^ *+' conftest.er1 >conftest.err
11596 cat conftest.err >&5
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); } >/dev/null; then
11599 if test -s conftest.err; then
11600 ac_cpp_err=$ac_cxx_preproc_warn_flag
11601 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11608 if test -z "$ac_cpp_err"; then
11611 echo "$as_me: failed program was:" >&5
11612 sed 's/^/| /' conftest.$ac_ext >&5
11614 # Broken: fails on valid input.
11617 rm -f conftest.err conftest.$ac_ext
11619 # OK, works on sane cases. Now check whether non-existent headers
11620 # can be detected and how.
11621 cat >conftest.$ac_ext <<_ACEOF
11624 cat confdefs.h >>conftest.$ac_ext
11625 cat >>conftest.$ac_ext <<_ACEOF
11626 /* end confdefs.h. */
11627 #include <ac_nonexistent.h>
11629 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11630 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11632 grep -v '^ *+' conftest.er1 >conftest.err
11634 cat conftest.err >&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); } >/dev/null; then
11637 if test -s conftest.err; then
11638 ac_cpp_err=$ac_cxx_preproc_warn_flag
11639 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11646 if test -z "$ac_cpp_err"; then
11647 # Broken: success on invalid input.
11650 echo "$as_me: failed program was:" >&5
11651 sed 's/^/| /' conftest.$ac_ext >&5
11653 # Passes both tests.
11657 rm -f conftest.err conftest.$ac_ext
11660 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11661 rm -f conftest.err conftest.$ac_ext
11662 if $ac_preproc_ok; then
11665 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11666 See \`config.log' for more details." >&5
11667 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11668 See \`config.log' for more details." >&2;}
11669 { (exit 1); exit 1; }; }
11673 ac_cpp='$CXXCPP $CPPFLAGS'
11674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11682 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11683 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11684 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11685 if test -n "$ac_tool_prefix"; then
11686 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11690 echo "$as_me:$LINENO: checking for $ac_word" >&5
11691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11692 if test "${ac_cv_prog_F77+set}" = set; then
11693 echo $ECHO_N "(cached) $ECHO_C" >&6
11695 if test -n "$F77"; then
11696 ac_cv_prog_F77="$F77" # Let the user override the test.
11698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11699 for as_dir in $PATH
11702 test -z "$as_dir" && as_dir=.
11703 for ac_exec_ext in '' $ac_executable_extensions; do
11704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11705 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
11706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11714 F77=$ac_cv_prog_F77
11715 if test -n "$F77"; then
11716 echo "$as_me:$LINENO: result: $F77" >&5
11717 echo "${ECHO_T}$F77" >&6
11719 echo "$as_me:$LINENO: result: no" >&5
11720 echo "${ECHO_T}no" >&6
11723 test -n "$F77" && break
11726 if test -z "$F77"; then
11728 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11730 # Extract the first word of "$ac_prog", so it can be a program name with args.
11731 set dummy $ac_prog; ac_word=$2
11732 echo "$as_me:$LINENO: checking for $ac_word" >&5
11733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11734 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
11737 if test -n "$ac_ct_F77"; then
11738 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
11740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11741 for as_dir in $PATH
11744 test -z "$as_dir" && as_dir=.
11745 for ac_exec_ext in '' $ac_executable_extensions; do
11746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11747 ac_cv_prog_ac_ct_F77="$ac_prog"
11748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11756 ac_ct_F77=$ac_cv_prog_ac_ct_F77
11757 if test -n "$ac_ct_F77"; then
11758 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
11759 echo "${ECHO_T}$ac_ct_F77" >&6
11761 echo "$as_me:$LINENO: result: no" >&5
11762 echo "${ECHO_T}no" >&6
11765 test -n "$ac_ct_F77" && break
11772 # Provide some information about the compiler.
11773 echo "$as_me:11773:" \
11774 "checking for Fortran 77 compiler version" >&5
11775 ac_compiler=`set X $ac_compile; echo $2`
11776 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11777 (eval $ac_compiler --version </dev/null >&5) 2>&5
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }
11781 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11782 (eval $ac_compiler -v </dev/null >&5) 2>&5
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }
11786 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11787 (eval $ac_compiler -V </dev/null >&5) 2>&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); }
11793 # If we don't use `.F' as extension, the preprocessor is not run on the
11794 # input file. (Note that this only needs to work for GNU compilers.)
11795 ac_save_ext=$ac_ext
11797 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
11798 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
11799 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
11800 echo $ECHO_N "(cached) $ECHO_C" >&6
11802 cat >conftest.$ac_ext <<_ACEOF
11810 rm -f conftest.$ac_objext
11811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11812 (eval $ac_compile) 2>conftest.er1
11814 grep -v '^ *+' conftest.er1 >conftest.err
11816 cat conftest.err >&5
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); } &&
11819 { ac_try='test -z "$ac_f77_werror_flag"
11820 || test ! -s conftest.err'
11821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11822 (eval $ac_try) 2>&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); }; } &&
11826 { ac_try='test -s conftest.$ac_objext'
11827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11828 (eval $ac_try) 2>&5
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); }; }; then
11832 ac_compiler_gnu=yes
11834 echo "$as_me: failed program was:" >&5
11835 sed 's/^/| /' conftest.$ac_ext >&5
11839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11840 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11843 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11844 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11845 ac_ext=$ac_save_ext
11846 ac_test_FFLAGS=${FFLAGS+set}
11847 ac_save_FFLAGS=$FFLAGS
11849 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11850 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11851 if test "${ac_cv_prog_f77_g+set}" = set; then
11852 echo $ECHO_N "(cached) $ECHO_C" >&6
11855 cat >conftest.$ac_ext <<_ACEOF
11860 rm -f conftest.$ac_objext
11861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11862 (eval $ac_compile) 2>conftest.er1
11864 grep -v '^ *+' conftest.er1 >conftest.err
11866 cat conftest.err >&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); } &&
11869 { ac_try='test -z "$ac_f77_werror_flag"
11870 || test ! -s conftest.err'
11871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872 (eval $ac_try) 2>&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; } &&
11876 { ac_try='test -s conftest.$ac_objext'
11877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878 (eval $ac_try) 2>&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; }; then
11882 ac_cv_prog_f77_g=yes
11884 echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11887 ac_cv_prog_f77_g=no
11889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11892 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11893 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11894 if test "$ac_test_FFLAGS" = set; then
11895 FFLAGS=$ac_save_FFLAGS
11896 elif test $ac_cv_prog_f77_g = yes; then
11897 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11903 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11910 G77=`test $ac_compiler_gnu = yes && echo yes`
11912 ac_cpp='$CPP $CPPFLAGS'
11913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11919 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11921 # find the maximum length of command line arguments
11922 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11923 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11924 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11925 echo $ECHO_N "(cached) $ECHO_C" >&6
11932 # On DJGPP, this test can blow up pretty badly due to problems in libc
11933 # (any single argument exceeding 2000 bytes causes a buffer overrun
11934 # during glob expansion). Even if it were fixed, the result of this
11935 # check would be larger than it should be.
11936 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11940 # Under GNU Hurd, this test is not required because there is
11941 # no limit to the length of command line arguments.
11942 # Libtool will interpret -1 as no limit whatsoever
11943 lt_cv_sys_max_cmd_len=-1;
11947 # On Win9x/ME, this test blows up -- it succeeds, but takes
11948 # about 5 minutes as the teststring grows exponentially.
11949 # Worse, since 9x/ME are not pre-emptively multitasking,
11950 # you end up with a "frozen" computer, even though with patience
11951 # the test eventually succeeds (with a max line length of 256k).
11952 # Instead, let's just punt: use the minimum linelength reported by
11953 # all of the supported platforms: 8192 (on NT/2K/XP).
11954 lt_cv_sys_max_cmd_len=8192;
11958 # On AmigaOS with pdksh, this test takes hours, literally.
11959 # So we just punt and use a minimum line length of 8192.
11960 lt_cv_sys_max_cmd_len=8192;
11963 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11964 # This has been around since 386BSD, at least. Likely further.
11965 if test -x /sbin/sysctl; then
11966 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11967 elif test -x /usr/sbin/sysctl; then
11968 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11970 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11972 # And add a safety zone
11973 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11974 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11977 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11978 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11979 # nice to cause kernel panics so lets avoid the loop below.
11980 # First set a reasonable default.
11981 lt_cv_sys_max_cmd_len=16384
11983 if test -x /sbin/sysconfig; then
11984 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11985 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11990 # If test is not a shell built-in, we'll probably end up computing a
11991 # maximum length that is only half of the actual maximum length, but
11993 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11994 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11995 = "XX$teststring") >/dev/null 2>&1 &&
11996 new_result=`expr "X$teststring" : ".*" 2>&1` &&
11997 lt_cv_sys_max_cmd_len=$new_result &&
11998 test $i != 17 # 1/2 MB should be enough
12001 teststring=$teststring$teststring
12004 # Add a significant safety factor because C++ compilers can tack on massive
12005 # amounts of additional arguments before passing them to the linker.
12006 # It appears as though 1/2 is a usable value.
12007 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12013 if test -n $lt_cv_sys_max_cmd_len ; then
12014 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12015 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
12017 echo "$as_me:$LINENO: result: none" >&5
12018 echo "${ECHO_T}none" >&6
12024 # Check for command to grab the raw symbol name followed by C symbol from nm.
12025 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12026 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
12027 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12028 echo $ECHO_N "(cached) $ECHO_C" >&6
12031 # These are sane defaults that work on at least a few old systems.
12032 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12034 # Character class describing NM global symbol codes.
12035 symcode='[BCDEGRST]'
12037 # Regexp to match symbols that can be accessed directly from C.
12038 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12040 # Transform an extracted symbol line into a proper C declaration
12041 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12043 # Transform an extracted symbol line into symbol name and symbol address
12044 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'"
12046 # Define system-specific variables.
12051 cygwin* | mingw* | pw32*)
12052 symcode='[ABCDGISTW]'
12054 hpux*) # Its linker distinguishes data from code symbols
12055 if test "$host_cpu" = ia64; then
12056 symcode='[ABCDEGRST]'
12058 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12059 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'"
12062 if test "$host_cpu" = ia64; then
12063 symcode='[ABCDGIRSTW]'
12064 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12065 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'"
12068 irix* | nonstopux*)
12069 symcode='[BCDEGRST]'
12072 symcode='[BCDEGQRST]'
12082 # Handle CRLF in mingw tool chain
12086 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12090 # If we're using GNU nm, then use its standard symbol codes.
12091 case `$NM -V 2>&1` in
12092 *GNU* | *'with BFD'*)
12093 symcode='[ABCDGIRSTW]' ;;
12096 # Try without a prefix undercore, then with it.
12097 for ac_symprfx in "" "_"; do
12099 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12100 symxfrm="\\1 $ac_symprfx\\2 \\2"
12102 # Write the raw and C identifiers.
12103 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12105 # Check to see that the pipe works correctly.
12109 cat > conftest.$ac_ext <<EOF
12114 void nm_test_func(){}
12118 int main(){nm_test_var='a';nm_test_func();return(0);}
12121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12122 (eval $ac_compile) 2>&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }; then
12126 # Now try to grab the symbols.
12128 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12129 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); } && test -s "$nlist"; then
12133 # Try sorting and uniquifying the output.
12134 if sort "$nlist" | uniq > "$nlist"T; then
12135 mv -f "$nlist"T "$nlist"
12140 # Make sure that we snagged all the symbols we need.
12141 if grep ' nm_test_var$' "$nlist" >/dev/null; then
12142 if grep ' nm_test_func$' "$nlist" >/dev/null; then
12143 cat <<EOF > conftest.$ac_ext
12149 # Now generate the symbol file.
12150 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12152 cat <<EOF >> conftest.$ac_ext
12153 #if defined (__STDC__) && __STDC__
12154 # define lt_ptr_t void *
12156 # define lt_ptr_t char *
12160 /* The mapping between symbol names and symbols. */
12165 lt_preloaded_symbols[] =
12168 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
12169 cat <<\EOF >> conftest.$ac_ext
12177 # Now try linking the two files.
12178 mv conftest.$ac_objext conftstm.$ac_objext
12179 lt_save_LIBS="$LIBS"
12180 lt_save_CFLAGS="$CFLAGS"
12181 LIBS="conftstm.$ac_objext"
12182 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12184 (eval $ac_link) 2>&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } && test -s conftest${ac_exeext}; then
12190 LIBS="$lt_save_LIBS"
12191 CFLAGS="$lt_save_CFLAGS"
12193 echo "cannot find nm_test_func in $nlist" >&5
12196 echo "cannot find nm_test_var in $nlist" >&5
12199 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12202 echo "$progname: failed program was:" >&5
12203 cat conftest.$ac_ext >&5
12205 rm -f conftest* conftst*
12207 # Do not use the global_symbol_pipe unless it works.
12208 if test "$pipe_works" = yes; then
12211 lt_cv_sys_global_symbol_pipe=
12217 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12218 lt_cv_sys_global_symbol_to_cdecl=
12220 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12221 echo "$as_me:$LINENO: result: failed" >&5
12222 echo "${ECHO_T}failed" >&6
12224 echo "$as_me:$LINENO: result: ok" >&5
12225 echo "${ECHO_T}ok" >&6
12228 echo "$as_me:$LINENO: checking for objdir" >&5
12229 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
12230 if test "${lt_cv_objdir+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12233 rm -f .libs 2>/dev/null
12234 mkdir .libs 2>/dev/null
12235 if test -d .libs; then
12238 # MS-DOS does not allow filenames that begin with a dot.
12241 rmdir .libs 2>/dev/null
12243 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
12244 echo "${ECHO_T}$lt_cv_objdir" >&6
12245 objdir=$lt_cv_objdir
12253 # AIX sometimes has problems with the GCC collect2 program. For some
12254 # reason, if we set the COLLECT_NAMES environment variable, the problems
12255 # vanish in a puff of smoke.
12256 if test "X${COLLECT_NAMES+set}" != Xset; then
12258 export COLLECT_NAMES
12263 # Sed substitution that helps us do robust quoting. It backslashifies
12264 # metacharacters that are still active within double-quoted strings.
12265 Xsed='sed -e 1s/^X//'
12266 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
12268 # Same as above, but do not quote variable references.
12269 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
12271 # Sed substitution to delay expansion of an escaped shell variable in a
12272 # double_quote_subst'ed string.
12273 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12275 # Sed substitution to avoid accidental globbing in evaled expressions
12276 no_glob_subst='s/\*/\\\*/g'
12281 # Global variables:
12282 default_ofile=libtool
12283 can_build_shared=yes
12285 # All known linkers require a `.a' archive for static linking (except M$VC,
12286 # which needs '.lib').
12288 ltmain="$ac_aux_dir/ltmain.sh"
12289 ofile="$default_ofile"
12290 with_gnu_ld="$lt_cv_prog_gnu_ld"
12292 if test -n "$ac_tool_prefix"; then
12293 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12294 set dummy ${ac_tool_prefix}ar; ac_word=$2
12295 echo "$as_me:$LINENO: checking for $ac_word" >&5
12296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12297 if test "${ac_cv_prog_AR+set}" = set; then
12298 echo $ECHO_N "(cached) $ECHO_C" >&6
12300 if test -n "$AR"; then
12301 ac_cv_prog_AR="$AR" # Let the user override the test.
12303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12304 for as_dir in $PATH
12307 test -z "$as_dir" && as_dir=.
12308 for ac_exec_ext in '' $ac_executable_extensions; do
12309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12310 ac_cv_prog_AR="${ac_tool_prefix}ar"
12311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12320 if test -n "$AR"; then
12321 echo "$as_me:$LINENO: result: $AR" >&5
12322 echo "${ECHO_T}$AR" >&6
12324 echo "$as_me:$LINENO: result: no" >&5
12325 echo "${ECHO_T}no" >&6
12329 if test -z "$ac_cv_prog_AR"; then
12331 # Extract the first word of "ar", so it can be a program name with args.
12332 set dummy ar; ac_word=$2
12333 echo "$as_me:$LINENO: checking for $ac_word" >&5
12334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12335 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12336 echo $ECHO_N "(cached) $ECHO_C" >&6
12338 if test -n "$ac_ct_AR"; then
12339 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12342 for as_dir in $PATH
12345 test -z "$as_dir" && as_dir=.
12346 for ac_exec_ext in '' $ac_executable_extensions; do
12347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12348 ac_cv_prog_ac_ct_AR="ar"
12349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12355 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
12358 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12359 if test -n "$ac_ct_AR"; then
12360 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12361 echo "${ECHO_T}$ac_ct_AR" >&6
12363 echo "$as_me:$LINENO: result: no" >&5
12364 echo "${ECHO_T}no" >&6
12369 AR="$ac_cv_prog_AR"
12372 if test -n "$ac_tool_prefix"; then
12373 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12374 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12375 echo "$as_me:$LINENO: checking for $ac_word" >&5
12376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12377 if test "${ac_cv_prog_RANLIB+set}" = set; then
12378 echo $ECHO_N "(cached) $ECHO_C" >&6
12380 if test -n "$RANLIB"; then
12381 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12384 for as_dir in $PATH
12387 test -z "$as_dir" && as_dir=.
12388 for ac_exec_ext in '' $ac_executable_extensions; do
12389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12390 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12399 RANLIB=$ac_cv_prog_RANLIB
12400 if test -n "$RANLIB"; then
12401 echo "$as_me:$LINENO: result: $RANLIB" >&5
12402 echo "${ECHO_T}$RANLIB" >&6
12404 echo "$as_me:$LINENO: result: no" >&5
12405 echo "${ECHO_T}no" >&6
12409 if test -z "$ac_cv_prog_RANLIB"; then
12410 ac_ct_RANLIB=$RANLIB
12411 # Extract the first word of "ranlib", so it can be a program name with args.
12412 set dummy ranlib; ac_word=$2
12413 echo "$as_me:$LINENO: checking for $ac_word" >&5
12414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12415 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12416 echo $ECHO_N "(cached) $ECHO_C" >&6
12418 if test -n "$ac_ct_RANLIB"; then
12419 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12422 for as_dir in $PATH
12425 test -z "$as_dir" && as_dir=.
12426 for ac_exec_ext in '' $ac_executable_extensions; do
12427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12428 ac_cv_prog_ac_ct_RANLIB="ranlib"
12429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12435 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12438 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12439 if test -n "$ac_ct_RANLIB"; then
12440 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12441 echo "${ECHO_T}$ac_ct_RANLIB" >&6
12443 echo "$as_me:$LINENO: result: no" >&5
12444 echo "${ECHO_T}no" >&6
12447 RANLIB=$ac_ct_RANLIB
12449 RANLIB="$ac_cv_prog_RANLIB"
12452 if test -n "$ac_tool_prefix"; then
12453 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12454 set dummy ${ac_tool_prefix}strip; ac_word=$2
12455 echo "$as_me:$LINENO: checking for $ac_word" >&5
12456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12457 if test "${ac_cv_prog_STRIP+set}" = set; then
12458 echo $ECHO_N "(cached) $ECHO_C" >&6
12460 if test -n "$STRIP"; then
12461 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12464 for as_dir in $PATH
12467 test -z "$as_dir" && as_dir=.
12468 for ac_exec_ext in '' $ac_executable_extensions; do
12469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12470 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12479 STRIP=$ac_cv_prog_STRIP
12480 if test -n "$STRIP"; then
12481 echo "$as_me:$LINENO: result: $STRIP" >&5
12482 echo "${ECHO_T}$STRIP" >&6
12484 echo "$as_me:$LINENO: result: no" >&5
12485 echo "${ECHO_T}no" >&6
12489 if test -z "$ac_cv_prog_STRIP"; then
12491 # Extract the first word of "strip", so it can be a program name with args.
12492 set dummy strip; ac_word=$2
12493 echo "$as_me:$LINENO: checking for $ac_word" >&5
12494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12495 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
12496 echo $ECHO_N "(cached) $ECHO_C" >&6
12498 if test -n "$ac_ct_STRIP"; then
12499 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12502 for as_dir in $PATH
12505 test -z "$as_dir" && as_dir=.
12506 for ac_exec_ext in '' $ac_executable_extensions; do
12507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12508 ac_cv_prog_ac_ct_STRIP="strip"
12509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12515 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
12518 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12519 if test -n "$ac_ct_STRIP"; then
12520 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12521 echo "${ECHO_T}$ac_ct_STRIP" >&6
12523 echo "$as_me:$LINENO: result: no" >&5
12524 echo "${ECHO_T}no" >&6
12529 STRIP="$ac_cv_prog_STRIP"
12534 old_CFLAGS="$CFLAGS"
12536 # Set sane defaults for various variables
12537 test -z "$AR" && AR=ar
12538 test -z "$AR_FLAGS" && AR_FLAGS=cru
12539 test -z "$AS" && AS=as
12540 test -z "$CC" && CC=cc
12541 test -z "$LTCC" && LTCC=$CC
12542 test -z "$DLLTOOL" && DLLTOOL=dlltool
12543 test -z "$LD" && LD=ld
12544 test -z "$LN_S" && LN_S="ln -s"
12545 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12546 test -z "$NM" && NM=nm
12547 test -z "$SED" && SED=sed
12548 test -z "$OBJDUMP" && OBJDUMP=objdump
12549 test -z "$RANLIB" && RANLIB=:
12550 test -z "$STRIP" && STRIP=:
12551 test -z "$ac_objext" && ac_objext=o
12553 # Determine commands to create old-style static archives.
12554 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
12555 old_postinstall_cmds='chmod 644 $oldlib'
12556 old_postuninstall_cmds=
12558 if test -n "$RANLIB"; then
12561 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
12564 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
12567 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12570 for cc_temp in $compiler""; do
12572 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12573 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12578 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12581 # Only perform the check for file, if the check method requires it
12582 case $deplibs_check_method in
12584 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12585 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
12586 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
12587 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12588 echo $ECHO_N "(cached) $ECHO_C" >&6
12592 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12595 lt_save_MAGIC_CMD="$MAGIC_CMD"
12596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12597 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12598 for ac_dir in $ac_dummy; do
12600 test -z "$ac_dir" && ac_dir=.
12601 if test -f $ac_dir/${ac_tool_prefix}file; then
12602 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12603 if test -n "$file_magic_test_file"; then
12604 case $deplibs_check_method in
12606 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12607 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12608 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12609 $EGREP "$file_magic_regex" > /dev/null; then
12614 *** Warning: the command libtool uses to detect shared libraries,
12615 *** $file_magic_cmd, produces output that libtool cannot recognize.
12616 *** The result is that libtool may fail to recognize shared libraries
12617 *** as such. This will affect the creation of libtool libraries that
12618 *** depend on shared libraries, but programs linked with such libtool
12619 *** libraries will work regardless of this problem. Nevertheless, you
12620 *** may want to report the problem to your system manager and/or to
12621 *** bug-libtool@gnu.org
12631 MAGIC_CMD="$lt_save_MAGIC_CMD"
12636 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12637 if test -n "$MAGIC_CMD"; then
12638 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12639 echo "${ECHO_T}$MAGIC_CMD" >&6
12641 echo "$as_me:$LINENO: result: no" >&5
12642 echo "${ECHO_T}no" >&6
12645 if test -z "$lt_cv_path_MAGIC_CMD"; then
12646 if test -n "$ac_tool_prefix"; then
12647 echo "$as_me:$LINENO: checking for file" >&5
12648 echo $ECHO_N "checking for file... $ECHO_C" >&6
12649 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12650 echo $ECHO_N "(cached) $ECHO_C" >&6
12654 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12657 lt_save_MAGIC_CMD="$MAGIC_CMD"
12658 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12659 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12660 for ac_dir in $ac_dummy; do
12662 test -z "$ac_dir" && ac_dir=.
12663 if test -f $ac_dir/file; then
12664 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12665 if test -n "$file_magic_test_file"; then
12666 case $deplibs_check_method in
12668 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12669 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12670 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12671 $EGREP "$file_magic_regex" > /dev/null; then
12676 *** Warning: the command libtool uses to detect shared libraries,
12677 *** $file_magic_cmd, produces output that libtool cannot recognize.
12678 *** The result is that libtool may fail to recognize shared libraries
12679 *** as such. This will affect the creation of libtool libraries that
12680 *** depend on shared libraries, but programs linked with such libtool
12681 *** libraries will work regardless of this problem. Nevertheless, you
12682 *** may want to report the problem to your system manager and/or to
12683 *** bug-libtool@gnu.org
12693 MAGIC_CMD="$lt_save_MAGIC_CMD"
12698 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12699 if test -n "$MAGIC_CMD"; then
12700 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12701 echo "${ECHO_T}$MAGIC_CMD" >&6
12703 echo "$as_me:$LINENO: result: no" >&5
12704 echo "${ECHO_T}no" >&6
12717 enable_win32_dll=no
12719 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
12720 if test "${enable_libtool_lock+set}" = set; then
12721 enableval="$enable_libtool_lock"
12724 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12727 # Check whether --with-pic or --without-pic was given.
12728 if test "${with_pic+set}" = set; then
12729 withval="$with_pic"
12730 pic_mode="$withval"
12734 test -z "$pic_mode" && pic_mode=default
12736 # Use C for the default configuration in the libtool script
12740 ac_cpp='$CPP $CPPFLAGS'
12741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12746 # Source file extension for C test sources.
12749 # Object file extension for compiled C test sources.
12753 # Code to be used in simple compile tests
12754 lt_simple_compile_test_code="int some_variable = 0;\n"
12756 # Code to be used in simple link tests
12757 lt_simple_link_test_code='int main(){return(0);}\n'
12760 # If no C compiler was specified, use CC.
12763 # Allow CC to be a program name with arguments.
12767 # save warnings/boilerplate of simple test code
12768 ac_outfile=conftest.$ac_objext
12769 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12770 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12771 _lt_compiler_boilerplate=`cat conftest.err`
12774 ac_outfile=conftest.$ac_objext
12775 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12776 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12777 _lt_linker_boilerplate=`cat conftest.err`
12782 # Check for any special shared library compilation flags.
12785 if test "$GCC" = no; then
12788 lt_prog_cc_shlib='-belf'
12792 if test -n "$lt_prog_cc_shlib"; then
12793 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
12794 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
12795 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
12797 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
12798 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
12799 lt_cv_prog_cc_can_build_shared=no
12805 # Check to make sure the static flag actually works.
12807 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
12808 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
12809 if test "${lt_prog_compiler_static_works+set}" = set; then
12810 echo $ECHO_N "(cached) $ECHO_C" >&6
12812 lt_prog_compiler_static_works=no
12813 save_LDFLAGS="$LDFLAGS"
12814 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
12815 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12816 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12817 # The compiler can only warn and ignore the option if not recognized
12818 # So say no if there are warnings
12819 if test -s conftest.err; then
12820 # Append any errors to the config.log.
12821 cat conftest.err 1>&5
12822 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
12823 $SED '/^$/d' conftest.err >conftest.er2
12824 if diff conftest.exp conftest.er2 >/dev/null; then
12825 lt_prog_compiler_static_works=yes
12828 lt_prog_compiler_static_works=yes
12832 LDFLAGS="$save_LDFLAGS"
12835 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12836 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12838 if test x"$lt_prog_compiler_static_works" = xyes; then
12841 lt_prog_compiler_static=
12847 ## There is no encapsulation within the following macros, do not change
12848 ## the running order or otherwise move them around unless you know exactly
12849 ## what you are doing...
12851 lt_prog_compiler_no_builtin_flag=
12853 if test "$GCC" = yes; then
12854 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12857 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12858 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12859 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12860 echo $ECHO_N "(cached) $ECHO_C" >&6
12862 lt_cv_prog_compiler_rtti_exceptions=no
12863 ac_outfile=conftest.$ac_objext
12864 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12865 lt_compiler_flag="-fno-rtti -fno-exceptions"
12866 # Insert the option either (1) after the last *FLAGS variable, or
12867 # (2) before a word containing "conftest.", or (3) at the end.
12868 # Note that $ac_compile itself does not contain backslashes and begins
12869 # with a dollar sign (not a hyphen), so the echo should work correctly.
12870 # The option is referenced via a variable to avoid confusing sed.
12871 lt_compile=`echo "$ac_compile" | $SED \
12872 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12873 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12874 -e 's:$: $lt_compiler_flag:'`
12875 (eval echo "\"\$as_me:12875: $lt_compile\"" >&5)
12876 (eval "$lt_compile" 2>conftest.err)
12878 cat conftest.err >&5
12879 echo "$as_me:12879: \$? = $ac_status" >&5
12880 if (exit $ac_status) && test -s "$ac_outfile"; then
12881 # The compiler can only warn and ignore the option if not recognized
12882 # So say no if there are warnings other than the usual output.
12883 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
12884 $SED '/^$/d' conftest.err >conftest.er2
12885 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
12886 lt_cv_prog_compiler_rtti_exceptions=yes
12892 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12893 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12895 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12896 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12903 lt_prog_compiler_wl=
12904 lt_prog_compiler_pic=
12905 lt_prog_compiler_static=
12907 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12908 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12910 if test "$GCC" = yes; then
12911 lt_prog_compiler_wl='-Wl,'
12912 lt_prog_compiler_static='-static'
12916 # All AIX code is PIC.
12917 if test "$host_cpu" = ia64; then
12918 # AIX 5 now supports IA64 processor
12919 lt_prog_compiler_static='-Bstatic'
12924 # FIXME: we need at least 68020 code to build shared libraries, but
12925 # adding the `-m68020' flag to GCC prevents building anything better,
12927 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12930 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12931 # PIC is the default for these OSes.
12934 mingw* | pw32* | os2*)
12935 # This hack is so that the source file can tell whether it is being
12936 # built for inclusion in a dll (and should export symbols for example).
12937 lt_prog_compiler_pic='-DDLL_EXPORT'
12940 darwin* | rhapsody*)
12941 # PIC is the default on this platform
12942 # Common symbols not allowed in MH_DYLIB files
12943 lt_prog_compiler_pic='-fno-common'
12947 # Just because we use GCC doesn't mean we suddenly get shared libraries
12948 # on systems that don't support them.
12949 lt_prog_compiler_can_build_shared=no
12954 if test -d /usr/nec; then
12955 lt_prog_compiler_pic=-Kconform_pic
12960 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12961 # not for PA HP-UX.
12962 case "$host_cpu" in
12967 lt_prog_compiler_pic='-fPIC'
12973 lt_prog_compiler_pic='-fPIC'
12977 # PORTME Check for flag to pass linker flags through the system compiler.
12980 lt_prog_compiler_wl='-Wl,'
12981 if test "$host_cpu" = ia64; then
12982 # AIX 5 now supports IA64 processor
12983 lt_prog_compiler_static='-Bstatic'
12985 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12989 # PIC is the default on this platform
12990 # Common symbols not allowed in MH_DYLIB files
12991 case $cc_basename in
12993 lt_prog_compiler_pic='-qnocommon'
12994 lt_prog_compiler_wl='-Wl,'
12999 mingw* | pw32* | os2*)
13000 # This hack is so that the source file can tell whether it is being
13001 # built for inclusion in a dll (and should export symbols for example).
13002 lt_prog_compiler_pic='-DDLL_EXPORT'
13005 hpux9* | hpux10* | hpux11*)
13006 lt_prog_compiler_wl='-Wl,'
13007 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13008 # not for PA HP-UX.
13009 case "$host_cpu" in
13014 lt_prog_compiler_pic='+Z'
13017 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13018 lt_prog_compiler_static='${wl}-a ${wl}archive'
13021 irix5* | irix6* | nonstopux*)
13022 lt_prog_compiler_wl='-Wl,'
13023 # PIC (with -KPIC) is the default.
13024 lt_prog_compiler_static='-non_shared'
13028 lt_prog_compiler_pic='-KPIC'
13029 lt_prog_compiler_static='-Bstatic'
13033 case $cc_basename in
13035 lt_prog_compiler_wl='-Wl,'
13036 lt_prog_compiler_pic='-KPIC'
13037 lt_prog_compiler_static='-static'
13039 pgcc* | pgf77* | pgf90*)
13040 # Portland Group compilers (*not* the Pentium gcc compiler,
13041 # which looks to be a dead project)
13042 lt_prog_compiler_wl='-Wl,'
13043 lt_prog_compiler_pic='-fpic'
13044 lt_prog_compiler_static='-static'
13047 lt_prog_compiler_wl='-Wl,'
13048 # All Alpha code is PIC.
13049 lt_prog_compiler_static='-non_shared'
13054 osf3* | osf4* | osf5*)
13055 lt_prog_compiler_wl='-Wl,'
13056 # All OSF/1 code is PIC.
13057 lt_prog_compiler_static='-non_shared'
13061 lt_prog_compiler_pic='-Kpic'
13062 lt_prog_compiler_static='-dn'
13066 lt_prog_compiler_pic='-KPIC'
13067 lt_prog_compiler_static='-Bstatic'
13068 case $cc_basename in
13069 f77* | f90* | f95*)
13070 lt_prog_compiler_wl='-Qoption ld ';;
13072 lt_prog_compiler_wl='-Wl,';;
13077 lt_prog_compiler_wl='-Qoption ld '
13078 lt_prog_compiler_pic='-PIC'
13079 lt_prog_compiler_static='-Bstatic'
13082 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13083 lt_prog_compiler_wl='-Wl,'
13084 lt_prog_compiler_pic='-KPIC'
13085 lt_prog_compiler_static='-Bstatic'
13089 if test -d /usr/nec ;then
13090 lt_prog_compiler_pic='-Kconform_pic'
13091 lt_prog_compiler_static='-Bstatic'
13096 lt_prog_compiler_wl='-Wl,'
13097 lt_prog_compiler_can_build_shared=no
13101 lt_prog_compiler_pic='-pic'
13102 lt_prog_compiler_static='-Bstatic'
13106 lt_prog_compiler_can_build_shared=no
13111 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13112 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
13115 # Check to make sure the PIC flag actually works.
13117 if test -n "$lt_prog_compiler_pic"; then
13119 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13120 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
13121 if test "${lt_prog_compiler_pic_works+set}" = set; then
13122 echo $ECHO_N "(cached) $ECHO_C" >&6
13124 lt_prog_compiler_pic_works=no
13125 ac_outfile=conftest.$ac_objext
13126 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13127 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13128 # Insert the option either (1) after the last *FLAGS variable, or
13129 # (2) before a word containing "conftest.", or (3) at the end.
13130 # Note that $ac_compile itself does not contain backslashes and begins
13131 # with a dollar sign (not a hyphen), so the echo should work correctly.
13132 # The option is referenced via a variable to avoid confusing sed.
13133 lt_compile=`echo "$ac_compile" | $SED \
13134 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13135 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13136 -e 's:$: $lt_compiler_flag:'`
13137 (eval echo "\"\$as_me:13137: $lt_compile\"" >&5)
13138 (eval "$lt_compile" 2>conftest.err)
13140 cat conftest.err >&5
13141 echo "$as_me:13141: \$? = $ac_status" >&5
13142 if (exit $ac_status) && test -s "$ac_outfile"; then
13143 # The compiler can only warn and ignore the option if not recognized
13144 # So say no if there are warnings other than the usual output.
13145 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13146 $SED '/^$/d' conftest.err >conftest.er2
13147 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13148 lt_prog_compiler_pic_works=yes
13154 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
13155 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
13157 if test x"$lt_prog_compiler_pic_works" = xyes; then
13158 case $lt_prog_compiler_pic in
13160 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13163 lt_prog_compiler_pic=
13164 lt_prog_compiler_can_build_shared=no
13169 # For platforms which do not support PIC, -DPIC is meaningless:
13171 lt_prog_compiler_pic=
13174 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13178 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13179 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13180 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13181 echo $ECHO_N "(cached) $ECHO_C" >&6
13183 lt_cv_prog_compiler_c_o=no
13184 $rm -r conftest 2>/dev/null
13188 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13190 lt_compiler_flag="-o out/conftest2.$ac_objext"
13191 # Insert the option either (1) after the last *FLAGS variable, or
13192 # (2) before a word containing "conftest.", or (3) at the end.
13193 # Note that $ac_compile itself does not contain backslashes and begins
13194 # with a dollar sign (not a hyphen), so the echo should work correctly.
13195 lt_compile=`echo "$ac_compile" | $SED \
13196 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13197 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13198 -e 's:$: $lt_compiler_flag:'`
13199 (eval echo "\"\$as_me:13199: $lt_compile\"" >&5)
13200 (eval "$lt_compile" 2>out/conftest.err)
13202 cat out/conftest.err >&5
13203 echo "$as_me:13203: \$? = $ac_status" >&5
13204 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13206 # The compiler can only warn and ignore the option if not recognized
13207 # So say no if there are warnings
13208 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13209 $SED '/^$/d' out/conftest.err >out/conftest.er2
13210 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13211 lt_cv_prog_compiler_c_o=yes
13216 # SGI C++ compiler will create directory out/ii_files/ for
13217 # template instantiation
13218 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13219 $rm out/* && rmdir out
13225 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13226 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
13229 hard_links="nottested"
13230 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13231 # do not overwrite the value of need_locks provided by the user
13232 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13233 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13236 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13238 ln conftest.a conftest.b 2>&5 || hard_links=no
13239 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13240 echo "$as_me:$LINENO: result: $hard_links" >&5
13241 echo "${ECHO_T}$hard_links" >&6
13242 if test "$hard_links" = no; then
13243 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13244 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13251 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13252 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13255 allow_undefined_flag=
13256 enable_shared_with_static_runtimes=no
13258 archive_expsym_cmds=
13259 old_archive_From_new_cmds=
13260 old_archive_from_expsyms_cmds=
13261 export_dynamic_flag_spec=
13262 whole_archive_flag_spec=
13263 thread_safe_flag_spec=
13264 hardcode_libdir_flag_spec=
13265 hardcode_libdir_flag_spec_ld=
13266 hardcode_libdir_separator=
13268 hardcode_minus_L=no
13269 hardcode_shlibpath_var=unsupported
13270 link_all_deplibs=unknown
13271 hardcode_automatic=no
13273 module_expsym_cmds=
13274 always_export_symbols=no
13275 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13276 # include_expsyms should be a list of space-separated symbols to be *always*
13277 # included in the symbol list
13279 # exclude_expsyms can be an extended regexp of symbols to exclude
13280 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13281 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13282 # as well as any symbol that contains `d'.
13283 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
13284 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13285 # platforms (ab)use it in PIC code, but their linkers get confused if
13286 # the symbol is explicitly referenced. Since portable code cannot
13287 # rely on this symbol name, it's probably fine to never include it in
13288 # preloaded symbol tables.
13289 extract_expsyms_cmds=
13290 # Just being paranoid about ensuring that cc_basename is set.
13291 for cc_temp in $compiler""; do
13293 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13294 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13299 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13302 cygwin* | mingw* | pw32*)
13303 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13304 # When not using gcc, we currently assume that we are using
13305 # Microsoft Visual C++.
13306 if test "$GCC" != yes; then
13316 if test "$with_gnu_ld" = yes; then
13317 # If archive_cmds runs LD, not CC, wlarc should be empty
13320 # Set some defaults for GNU ld with shared library support. These
13321 # are reset later if shared libraries are not supported. Putting them
13322 # here allows them to be overridden if necessary.
13323 runpath_var=LD_RUN_PATH
13324 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
13325 export_dynamic_flag_spec='${wl}--export-dynamic'
13326 # ancient GNU ld didn't support --whole-archive et. al.
13327 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13328 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13330 whole_archive_flag_spec=
13332 supports_anon_versioning=no
13333 case `$LD -v 2>/dev/null` in
13334 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13335 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13336 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13337 *\ 2.11.*) ;; # other 2.11 versions
13338 *) supports_anon_versioning=yes ;;
13341 # See if GNU ld supports shared libraries.
13343 aix3* | aix4* | aix5*)
13344 # On AIX/PPC, the GNU linker is very broken
13345 if test "$host_cpu" != ia64; then
13349 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13350 *** to be unable to reliably create shared libraries on AIX.
13351 *** Therefore, libtool is disabling shared libraries support. If you
13352 *** really care for shared libraries, you may want to modify your PATH
13353 *** so that a non-GNU linker is found, and then restart.
13360 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)'
13361 hardcode_libdir_flag_spec='-L$libdir'
13362 hardcode_minus_L=yes
13364 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13365 # that the semantics of dynamic libraries on AmigaOS, at least up
13366 # to version 4, is to share data among multiple programs linked
13367 # with the same dynamic library. Since this doesn't match the
13368 # behavior of shared libraries on other platforms, we can't use
13374 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13375 allow_undefined_flag=unsupported
13376 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13377 # support --undefined. This deserves some investigation. FIXME
13378 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13384 cygwin* | mingw* | pw32*)
13385 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13386 # as there is no search path for DLLs.
13387 hardcode_libdir_flag_spec='-L$libdir'
13388 allow_undefined_flag=unsupported
13389 always_export_symbols=no
13390 enable_shared_with_static_runtimes=yes
13391 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13393 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13394 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13395 # If the export-symbols file already is a .def file (1st line
13396 # is EXPORTS), use it as is; otherwise, prepend...
13397 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13398 cp $export_symbols $output_objdir/$soname.def;
13400 echo EXPORTS > $output_objdir/$soname.def;
13401 cat $export_symbols >> $output_objdir/$soname.def;
13403 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13410 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13412 case $cc_basename,$host_cpu in
13413 pgcc*) # Portland Group C compiler
13414 whole_archive_flag_spec=
13416 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
13417 whole_archive_flag_spec=
13418 tmp_addflag=' -fpic -Mnomain' ;;
13419 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13420 tmp_addflag=' -i_dynamic' ;;
13421 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13422 tmp_addflag=' -i_dynamic -nofor_main' ;;
13423 ifc* | ifort*) # Intel Fortran compiler
13424 tmp_addflag=' -nofor_main' ;;
13426 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13428 if test $supports_anon_versioning = yes; then
13429 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
13430 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13431 $echo "local: *; };" >> $output_objdir/$libname.ver~
13432 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13440 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13441 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13444 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13445 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13450 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13454 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13455 *** create shared libraries on Solaris systems. Therefore, libtool
13456 *** is disabling shared libraries support. We urge you to upgrade GNU
13457 *** binutils to release 2.9.1 or newer. Another option is to modify
13458 *** your PATH or compiler configuration so that the native linker is
13459 *** used, and then restart.
13462 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13463 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13464 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13471 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13473 hardcode_direct=yes
13474 hardcode_shlibpath_var=no
13478 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13479 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13480 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13487 if test "$ld_shlibs" = no; then
13489 hardcode_libdir_flag_spec=
13490 export_dynamic_flag_spec=
13491 whole_archive_flag_spec=
13494 # PORTME fill in a description of your system's linker (not GNU ld)
13497 allow_undefined_flag=unsupported
13498 always_export_symbols=yes
13499 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'
13500 # Note: this linker hardcodes the directories in LIBPATH if there
13501 # are no directories specified by -L.
13502 hardcode_minus_L=yes
13503 if test "$GCC" = yes && test -z "$link_static_flag"; then
13504 # Neither direct hardcoding nor static linking is supported with a
13506 hardcode_direct=unsupported
13511 if test "$host_cpu" = ia64; then
13512 # On IA64, the linker does run time linking by default, so we don't
13513 # have to do anything special.
13514 aix_use_runtimelinking=no
13515 exp_sym_flag='-Bexport'
13518 # If we're using GNU nm, then we don't want the "-C" option.
13519 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13520 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13521 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'
13523 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'
13525 aix_use_runtimelinking=no
13527 # Test if we are trying to use run time linking or normal
13528 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13529 # need to do runtime linking.
13530 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13531 for ld_flag in $LDFLAGS; do
13532 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13533 aix_use_runtimelinking=yes
13539 exp_sym_flag='-bexport'
13540 no_entry_flag='-bnoentry'
13543 # When large executables or shared objects are built, AIX ld can
13544 # have problems creating the table of contents. If linking a library
13545 # or program results in "error TOC overflow" add -mminimal-toc to
13546 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13547 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13550 hardcode_direct=yes
13551 hardcode_libdir_separator=':'
13552 link_all_deplibs=yes
13554 if test "$GCC" = yes; then
13555 case $host_os in aix4.[012]|aix4.[012].*)
13556 # We only want to do this on AIX 4.2 and lower, the check
13557 # below for broken collect2 doesn't work under 4.3+
13558 collect2name=`${CC} -print-prog-name=collect2`
13559 if test -f "$collect2name" && \
13560 strings "$collect2name" | grep resolve_lib_name >/dev/null
13562 # We have reworked collect2
13563 hardcode_direct=yes
13565 # We have old collect2
13566 hardcode_direct=unsupported
13567 # It fails to find uninstalled libraries when the uninstalled
13568 # path is not listed in the libpath. Setting hardcode_minus_L
13569 # to unsupported forces relinking
13570 hardcode_minus_L=yes
13571 hardcode_libdir_flag_spec='-L$libdir'
13572 hardcode_libdir_separator=
13575 shared_flag='-shared'
13576 if test "$aix_use_runtimelinking" = yes; then
13577 shared_flag="$shared_flag "'${wl}-G'
13581 if test "$host_cpu" = ia64; then
13582 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13583 # chokes on -Wl,-G. The following line is correct:
13586 if test "$aix_use_runtimelinking" = yes; then
13587 shared_flag='${wl}-G'
13589 shared_flag='${wl}-bM:SRE'
13594 # It seems that -bexpall does not export symbols beginning with
13595 # underscore (_), so it is better to generate a list of symbols to export.
13596 always_export_symbols=yes
13597 if test "$aix_use_runtimelinking" = yes; then
13598 # Warning - without using the other runtime loading flags (-brtl),
13599 # -berok will link without error, but may produce a broken library.
13600 allow_undefined_flag='-berok'
13601 # Determine the default libpath from the value encoded in an empty executable.
13602 cat >conftest.$ac_ext <<_ACEOF
13605 cat confdefs.h >>conftest.$ac_ext
13606 cat >>conftest.$ac_ext <<_ACEOF
13607 /* end confdefs.h. */
13617 rm -f conftest.$ac_objext conftest$ac_exeext
13618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13619 (eval $ac_link) 2>conftest.er1
13621 grep -v '^ *+' conftest.er1 >conftest.err
13623 cat conftest.err >&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); } &&
13626 { ac_try='test -z "$ac_c_werror_flag"
13627 || test ! -s conftest.err'
13628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629 (eval $ac_try) 2>&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; } &&
13633 { ac_try='test -s conftest$ac_exeext'
13634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13635 (eval $ac_try) 2>&5
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); }; }; then
13640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13642 # Check for a 64-bit object if we didn't find anything.
13643 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; }
13646 echo "$as_me: failed program was:" >&5
13647 sed 's/^/| /' conftest.$ac_ext >&5
13650 rm -f conftest.err conftest.$ac_objext \
13651 conftest$ac_exeext conftest.$ac_ext
13652 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13654 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13655 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"
13657 if test "$host_cpu" = ia64; then
13658 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13659 allow_undefined_flag="-z nodefs"
13660 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"
13662 # Determine the default libpath from the value encoded in an empty executable.
13663 cat >conftest.$ac_ext <<_ACEOF
13666 cat confdefs.h >>conftest.$ac_ext
13667 cat >>conftest.$ac_ext <<_ACEOF
13668 /* end confdefs.h. */
13678 rm -f conftest.$ac_objext conftest$ac_exeext
13679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13680 (eval $ac_link) 2>conftest.er1
13682 grep -v '^ *+' conftest.er1 >conftest.err
13684 cat conftest.err >&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } &&
13687 { ac_try='test -z "$ac_c_werror_flag"
13688 || test ! -s conftest.err'
13689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13690 (eval $ac_try) 2>&5
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); }; } &&
13694 { ac_try='test -s conftest$ac_exeext'
13695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13696 (eval $ac_try) 2>&5
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); }; }; then
13701 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13703 # Check for a 64-bit object if we didn't find anything.
13704 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; }
13707 echo "$as_me: failed program was:" >&5
13708 sed 's/^/| /' conftest.$ac_ext >&5
13711 rm -f conftest.err conftest.$ac_objext \
13712 conftest$ac_exeext conftest.$ac_ext
13713 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13715 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13716 # Warning - without using the other run time loading flags,
13717 # -berok will link without error, but may produce a broken library.
13718 no_undefined_flag=' ${wl}-bernotok'
13719 allow_undefined_flag=' ${wl}-berok'
13720 # -bexpall does not export symbols beginning with underscore (_)
13721 always_export_symbols=yes
13722 # Exported symbols can be pulled into shared objects from archives
13723 whole_archive_flag_spec=' '
13724 archive_cmds_need_lc=yes
13725 # This is similar to how AIX traditionally builds it's shared libraries.
13726 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'
13732 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)'
13733 hardcode_libdir_flag_spec='-L$libdir'
13734 hardcode_minus_L=yes
13735 # see comment about different semantics on the GNU ld section
13740 export_dynamic_flag_spec=-rdynamic
13743 cygwin* | mingw* | pw32*)
13744 # When not using gcc, we currently assume that we are using
13745 # Microsoft Visual C++.
13746 # hardcode_libdir_flag_spec is actually meaningless, as there is
13747 # no search path for DLLs.
13748 hardcode_libdir_flag_spec=' '
13749 allow_undefined_flag=unsupported
13750 # Tell ltmain to make .lib files, not .a files.
13752 # Tell ltmain to make .dll files, not .so files.
13754 # FIXME: Setting linknames here is a bad hack.
13755 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13756 # The linker will automatically build a .lib file if we build a DLL.
13757 old_archive_From_new_cmds='true'
13758 # FIXME: Should let the user specify the lib program.
13759 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
13760 fix_srcfile_path='`cygpath -w "$srcfile"`'
13761 enable_shared_with_static_runtimes=yes
13764 darwin* | rhapsody*)
13766 rhapsody* | darwin1.[012])
13767 allow_undefined_flag='${wl}-undefined ${wl}suppress'
13770 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13771 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13773 case ${MACOSX_DEPLOYMENT_TARGET} in
13775 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13778 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
13784 archive_cmds_need_lc=no
13786 hardcode_automatic=yes
13787 hardcode_shlibpath_var=unsupported
13788 whole_archive_flag_spec=''
13789 link_all_deplibs=yes
13790 if test "$GCC" = yes ; then
13791 output_verbose_link_cmd='echo'
13792 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13793 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13794 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13795 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}'
13796 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}'
13798 case $cc_basename in
13800 output_verbose_link_cmd='echo'
13801 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13802 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13803 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13804 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}'
13805 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}'
13815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13816 hardcode_libdir_flag_spec='-L$libdir'
13817 hardcode_shlibpath_var=no
13824 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13825 # support. Future versions do this automatically, but an explicit c++rt0.o
13826 # does not break anything, and helps significantly (at the cost of a little
13829 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13830 hardcode_libdir_flag_spec='-R$libdir'
13831 hardcode_direct=yes
13832 hardcode_shlibpath_var=no
13835 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13837 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13838 hardcode_direct=yes
13839 hardcode_minus_L=yes
13840 hardcode_shlibpath_var=no
13843 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13844 freebsd* | kfreebsd*-gnu | dragonfly*)
13845 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13846 hardcode_libdir_flag_spec='-R$libdir'
13847 hardcode_direct=yes
13848 hardcode_shlibpath_var=no
13852 if test "$GCC" = yes; then
13853 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'
13855 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'
13857 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13858 hardcode_libdir_separator=:
13859 hardcode_direct=yes
13861 # hardcode_minus_L: Not really in the search PATH,
13862 # but as the default location of the library.
13863 hardcode_minus_L=yes
13864 export_dynamic_flag_spec='${wl}-E'
13868 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13869 case "$host_cpu" in
13871 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13874 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13878 case "$host_cpu" in
13880 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13883 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13887 if test "$with_gnu_ld" = no; then
13888 case "$host_cpu" in
13890 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13891 hardcode_libdir_flag_spec_ld='+b $libdir'
13892 hardcode_libdir_separator=:
13894 hardcode_shlibpath_var=no
13897 hardcode_libdir_flag_spec='-L$libdir'
13899 hardcode_shlibpath_var=no
13901 # hardcode_minus_L: Not really in the search PATH,
13902 # but as the default location of the library.
13903 hardcode_minus_L=yes
13906 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13907 hardcode_libdir_separator=:
13908 hardcode_direct=yes
13909 export_dynamic_flag_spec='${wl}-E'
13911 # hardcode_minus_L: Not really in the search PATH,
13912 # but as the default location of the library.
13913 hardcode_minus_L=yes
13919 irix5* | irix6* | nonstopux*)
13920 if test "$GCC" = yes; then
13921 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'
13923 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'
13924 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13926 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13927 hardcode_libdir_separator=:
13928 link_all_deplibs=yes
13932 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13933 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13935 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13937 hardcode_libdir_flag_spec='-R$libdir'
13938 hardcode_direct=yes
13939 hardcode_shlibpath_var=no
13943 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13944 hardcode_direct=yes
13945 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13946 hardcode_libdir_separator=:
13947 hardcode_shlibpath_var=no
13951 hardcode_direct=yes
13952 hardcode_shlibpath_var=no
13953 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13954 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13955 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13956 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13957 export_dynamic_flag_spec='${wl}-E'
13960 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13961 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13962 hardcode_libdir_flag_spec='-R$libdir'
13965 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13966 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13973 hardcode_libdir_flag_spec='-L$libdir'
13974 hardcode_minus_L=yes
13975 allow_undefined_flag=unsupported
13976 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'
13977 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13981 if test "$GCC" = yes; then
13982 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13983 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'
13985 allow_undefined_flag=' -expect_unresolved \*'
13986 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'
13988 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13989 hardcode_libdir_separator=:
13992 osf4* | osf5*) # as osf3* with the addition of -msym flag
13993 if test "$GCC" = yes; then
13994 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13995 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'
13996 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13998 allow_undefined_flag=' -expect_unresolved \*'
13999 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'
14000 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14001 $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'
14003 # Both c and cxx compiler support -rpath directly
14004 hardcode_libdir_flag_spec='-rpath $libdir'
14006 hardcode_libdir_separator=:
14010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14011 hardcode_shlibpath_var=no
14012 export_dynamic_flag_spec='${wl}-Bexport'
14013 runpath_var=LD_RUN_PATH
14014 hardcode_runpath_var=yes
14018 no_undefined_flag=' -z text'
14019 if test "$GCC" = yes; then
14021 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14022 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14023 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14026 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14027 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14028 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14030 hardcode_libdir_flag_spec='-R$libdir'
14031 hardcode_shlibpath_var=no
14033 solaris2.[0-5] | solaris2.[0-5].*) ;;
14035 # The compiler driver will combine linker options so we
14036 # cannot just pass the convience library names through
14037 # without $wl, iff we do not link with $LD.
14038 # Luckily, gcc supports the same syntax we need for Sun Studio.
14039 # Supported since Solaris 2.6 (maybe 2.5.1?)
14042 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
14044 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' ;;
14047 link_all_deplibs=yes
14051 if test "x$host_vendor" = xsequent; then
14052 # Use $CC to link under sequent, because it throws in some extra .o
14053 # files that make .init and .fini sections work.
14054 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14056 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14058 hardcode_libdir_flag_spec='-L$libdir'
14059 hardcode_direct=yes
14060 hardcode_minus_L=yes
14061 hardcode_shlibpath_var=no
14065 case $host_vendor in
14067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14068 hardcode_direct=yes # is this really true???
14071 ## LD is ld it makes a PLAMLIB
14072 ## CC just makes a GrossModule.
14073 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14074 reload_cmds='$CC -r -o $output$reload_objs'
14078 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14079 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14082 runpath_var='LD_RUN_PATH'
14083 hardcode_shlibpath_var=no
14087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14088 hardcode_shlibpath_var=no
14089 export_dynamic_flag_spec='-Bexport'
14093 if test -d /usr/nec; then
14094 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14095 hardcode_shlibpath_var=no
14096 runpath_var=LD_RUN_PATH
14097 hardcode_runpath_var=yes
14103 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14104 hardcode_direct=yes
14105 hardcode_minus_L=no
14106 hardcode_shlibpath_var=no
14107 hardcode_runpath_var=yes
14108 runpath_var=LD_RUN_PATH
14111 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14112 no_undefined_flag='${wl}-z ${wl}text'
14113 if test "$GCC" = yes; then
14114 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14116 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14118 runpath_var='LD_RUN_PATH'
14119 hardcode_shlibpath_var=no
14123 no_undefined_flag=' -z text'
14124 # $CC -shared without GNU ld will not create a library from C++
14125 # object files and a static libstdc++, better avoid it by now
14126 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14127 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14128 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14129 hardcode_libdir_flag_spec=
14130 hardcode_shlibpath_var=no
14131 runpath_var='LD_RUN_PATH'
14135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14136 hardcode_libdir_flag_spec='-L$libdir'
14137 hardcode_shlibpath_var=no
14146 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
14147 echo "${ECHO_T}$ld_shlibs" >&6
14148 test "$ld_shlibs" = no && can_build_shared=no
14150 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14151 if test "$GCC" = yes; then
14152 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14156 # Do we need to explicitly link libc?
14158 case "x$archive_cmds_need_lc" in
14160 # Assume -lc should be added
14161 archive_cmds_need_lc=yes
14163 if test "$enable_shared" = yes && test "$GCC" = yes; then
14164 case $archive_cmds in
14166 # FIXME: we may have to deal with multi-command sequences.
14169 # Test whether the compiler implicitly links with -lc since on some
14170 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14171 # to ld, don't add -lc before -lgcc.
14172 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14173 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14175 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14178 (eval $ac_compile) 2>&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); } 2>conftest.err; then
14184 libobjs=conftest.$ac_objext
14186 wl=$lt_prog_compiler_wl
14192 lt_save_allow_undefined_flag=$allow_undefined_flag
14193 allow_undefined_flag=
14194 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14195 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); }
14200 archive_cmds_need_lc=no
14202 archive_cmds_need_lc=yes
14204 allow_undefined_flag=$lt_save_allow_undefined_flag
14206 cat conftest.err 1>&5
14209 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
14210 echo "${ECHO_T}$archive_cmds_need_lc" >&6
14217 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14218 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14219 library_names_spec=
14220 libname_spec='lib$name'
14224 postuninstall_cmds=
14228 shlibpath_overrides_runpath=unknown
14230 dynamic_linker="$host_os ld.so"
14231 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14232 if test "$GCC" = yes; then
14233 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14234 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14235 # if the path contains ";" then we assume it to be the separator
14236 # otherwise default to the standard path separator (i.e. ":") - it is
14237 # assumed that no part of a normal pathname contains ";" but that should
14238 # okay in the real world where ";" in dirpaths is itself problematic.
14239 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14241 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14244 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14246 need_lib_prefix=unknown
14247 hardcode_into_libs=no
14249 # when you set need_version to no, make sure it does not cause -set_version
14250 # flags to be left without arguments
14251 need_version=unknown
14256 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14257 shlibpath_var=LIBPATH
14259 # AIX 3 has no versioning support, so we append a major version to the name.
14260 soname_spec='${libname}${release}${shared_ext}$major'
14267 hardcode_into_libs=yes
14268 if test "$host_cpu" = ia64; then
14269 # AIX 5 supports IA64
14270 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14271 shlibpath_var=LD_LIBRARY_PATH
14273 # With GCC up to 2.95.x, collect2 would create an import file
14274 # for dependence libraries. The import file would start with
14275 # the line `#! .'. This would cause the generated library to
14276 # depend on `.', always an invalid library. This was fixed in
14277 # development snapshots of GCC prior to 3.0.
14279 aix4 | aix4.[01] | aix4.[01].*)
14280 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14282 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14285 can_build_shared=no
14289 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14290 # soname into executable. Probably we can add versioning support to
14291 # collect2, so additional links can be useful in future.
14292 if test "$aix_use_runtimelinking" = yes; then
14293 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14294 # instead of lib<name>.a to let people know that these are not
14295 # typical AIX shared libraries.
14296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14298 # We preserve .a as extension for shared libraries through AIX4.2
14299 # and later when we are not doing run time linking.
14300 library_names_spec='${libname}${release}.a $libname.a'
14301 soname_spec='${libname}${release}${shared_ext}$major'
14303 shlibpath_var=LIBPATH
14308 library_names_spec='$libname.ixlibrary $libname.a'
14309 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14310 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'
14314 library_names_spec='${libname}${shared_ext}'
14315 dynamic_linker="$host_os ld.so"
14316 shlibpath_var=LIBRARY_PATH
14322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14323 soname_spec='${libname}${release}${shared_ext}$major'
14324 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14325 shlibpath_var=LD_LIBRARY_PATH
14326 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14327 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14328 # the default ld.so.conf also contains /usr/contrib/lib and
14329 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14330 # libtool to hard-code these into programs
14333 cygwin* | mingw* | pw32*)
14334 version_type=windows
14339 case $GCC,$host_os in
14340 yes,cygwin* | yes,mingw* | yes,pw32*)
14341 library_names_spec='$libname.dll.a'
14342 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14343 postinstall_cmds='base_file=`basename \${file}`~
14344 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14345 dldir=$destdir/`dirname \$dlpath`~
14346 test -d \$dldir || mkdir -p \$dldir~
14347 $install_prog $dir/$dlname \$dldir/$dlname'
14348 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14349 dlpath=$dir/\$dldll~
14351 shlibpath_overrides_runpath=yes
14355 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14356 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14357 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14360 # MinGW DLLs use traditional 'lib' prefix
14361 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14362 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14363 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14364 # It is most probably a Windows format PATH printed by
14365 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14366 # path with ; separators, and with drive letters. We can handle the
14367 # drive letters (cygwin fileutils understands them), so leave them,
14368 # especially as we might pass files found there to a mingw objdump,
14369 # which wouldn't understand a cygwinified path. Ahh.
14370 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14372 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14376 # pw32 DLLs use 'pw' prefix rather than 'lib'
14377 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14383 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14386 dynamic_linker='Win32 ld.exe'
14387 # FIXME: first we should search . and the directory the executable is in
14391 darwin* | rhapsody*)
14392 dynamic_linker="$host_os dyld"
14393 version_type=darwin
14396 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14397 soname_spec='${libname}${release}${major}$shared_ext'
14398 shlibpath_overrides_runpath=yes
14399 shlibpath_var=DYLD_LIBRARY_PATH
14400 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14401 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14402 if test "$GCC" = yes; then
14403 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"`
14405 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14407 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14415 soname_spec='${libname}${release}${shared_ext}$major'
14416 shlibpath_var=LD_LIBRARY_PATH
14427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14428 soname_spec='${libname}${release}${shared_ext}$major'
14429 shlibpath_var=LD_LIBRARY_PATH
14430 shlibpath_overrides_runpath=no
14431 hardcode_into_libs=yes
14432 dynamic_linker='GNU ld.so'
14435 freebsd* | dragonfly*)
14436 # DragonFly does not have aout. When/if they implement a new
14437 # versioning mechanism, adjust this.
14438 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14439 version_type=freebsd-$objformat
14440 case $version_type in
14442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14447 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14451 shlibpath_var=LD_LIBRARY_PATH
14454 shlibpath_overrides_runpath=yes
14456 freebsd3.[01]* | freebsdelf3.[01]*)
14457 shlibpath_overrides_runpath=yes
14458 hardcode_into_libs=yes
14461 shlibpath_overrides_runpath=no
14462 hardcode_into_libs=yes
14471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14472 soname_spec='${libname}${release}${shared_ext}$major'
14473 shlibpath_var=LD_LIBRARY_PATH
14474 hardcode_into_libs=yes
14477 hpux9* | hpux10* | hpux11*)
14478 # Give a soname corresponding to the major version so that dld.sl refuses to
14479 # link against other versions.
14483 case "$host_cpu" in
14486 hardcode_into_libs=yes
14487 dynamic_linker="$host_os dld.so"
14488 shlibpath_var=LD_LIBRARY_PATH
14489 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14491 soname_spec='${libname}${release}${shared_ext}$major'
14492 if test "X$HPUX_IA64_MODE" = X32; then
14493 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14495 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14497 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14501 hardcode_into_libs=yes
14502 dynamic_linker="$host_os dld.sl"
14503 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14504 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14506 soname_spec='${libname}${release}${shared_ext}$major'
14507 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14508 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14512 dynamic_linker="$host_os dld.sl"
14513 shlibpath_var=SHLIB_PATH
14514 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14516 soname_spec='${libname}${release}${shared_ext}$major'
14519 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14520 postinstall_cmds='chmod 555 $lib'
14523 irix5* | irix6* | nonstopux*)
14525 nonstopux*) version_type=nonstopux ;;
14527 if test "$lt_cv_prog_gnu_ld" = yes; then
14535 soname_spec='${libname}${release}${shared_ext}$major'
14536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14538 irix5* | nonstopux*)
14539 libsuff= shlibsuff=
14542 case $LD in # libtool.m4 will add one of these switches to LD
14543 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14544 libsuff= shlibsuff= libmagic=32-bit;;
14545 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14546 libsuff=32 shlibsuff=N32 libmagic=N32;;
14547 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14548 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14549 *) libsuff= shlibsuff= libmagic=never-match;;
14553 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14554 shlibpath_overrides_runpath=no
14555 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14556 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14557 hardcode_into_libs=yes
14560 # No shared lib support for Linux oldld, aout, or coff.
14561 linux*oldld* | linux*aout* | linux*coff*)
14565 # This must be Linux ELF.
14570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14571 soname_spec='${libname}${release}${shared_ext}$major'
14572 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14573 shlibpath_var=LD_LIBRARY_PATH
14574 shlibpath_overrides_runpath=no
14575 # This implies no fast_install, which is unacceptable.
14576 # Some rework will be needed to allow for fast_install
14577 # before this can be enabled.
14578 hardcode_into_libs=yes
14580 # find out which ABI we are using
14582 case "$host_cpu" in
14583 x86_64*|s390x*|powerpc64*)
14584 echo '#line 14584 "configure"' > conftest.$ac_ext
14585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14586 (eval $ac_compile) 2>&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); }; then
14590 case `/usr/bin/file conftest.$ac_objext` in
14593 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14601 # Append ld.so.conf contents to the search path
14602 if test -f /etc/ld.so.conf; then
14603 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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14604 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14607 # We used to test for /lib/ld.so.1 and disable shared libraries on
14608 # powerpc, because MkLinux only supported shared libraries with the
14609 # GNU dynamic linker. Since this was broken with cross compilers,
14610 # most powerpc-linux boxes support dynamic linking these days and
14611 # people can always --disable-shared, the test was removed, and we
14612 # assume the GNU/Linux dynamic linker is in use.
14613 dynamic_linker='GNU/Linux ld.so'
14620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14621 soname_spec='${libname}${release}${shared_ext}$major'
14622 shlibpath_var=LD_LIBRARY_PATH
14623 shlibpath_overrides_runpath=no
14624 hardcode_into_libs=yes
14625 dynamic_linker='GNU ld.so'
14632 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14634 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14635 dynamic_linker='NetBSD (a.out) ld.so'
14637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14638 soname_spec='${libname}${release}${shared_ext}$major'
14639 dynamic_linker='NetBSD ld.elf_so'
14641 shlibpath_var=LD_LIBRARY_PATH
14642 shlibpath_overrides_runpath=yes
14643 hardcode_into_libs=yes
14648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14649 shlibpath_var=LD_LIBRARY_PATH
14650 shlibpath_overrides_runpath=yes
14657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14658 soname_spec='${libname}${release}${shared_ext}$major'
14659 shlibpath_var=LD_LIBRARY_PATH
14660 shlibpath_overrides_runpath=yes
14667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14668 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14669 shlibpath_var=LD_LIBRARY_PATH
14670 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14672 openbsd2.[89] | openbsd2.[89].*)
14673 shlibpath_overrides_runpath=no
14676 shlibpath_overrides_runpath=yes
14680 shlibpath_overrides_runpath=yes
14685 libname_spec='$name'
14688 library_names_spec='$libname${shared_ext} $libname.a'
14689 dynamic_linker='OS/2 ld.exe'
14690 shlibpath_var=LIBPATH
14693 osf3* | osf4* | osf5*)
14697 soname_spec='${libname}${release}${shared_ext}$major'
14698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14699 shlibpath_var=LD_LIBRARY_PATH
14700 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14701 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14706 soname_spec='${libname}${release}${shared_ext}$major'
14707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14708 shlibpath_var=LD_LIBRARY_PATH
14715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14716 soname_spec='${libname}${release}${shared_ext}$major'
14717 shlibpath_var=LD_LIBRARY_PATH
14718 shlibpath_overrides_runpath=yes
14719 hardcode_into_libs=yes
14720 # ldd complains unless libraries are executable
14721 postinstall_cmds='chmod +x $lib'
14726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14727 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14728 shlibpath_var=LD_LIBRARY_PATH
14729 shlibpath_overrides_runpath=yes
14730 if test "$with_gnu_ld" = yes; then
14736 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14739 soname_spec='${libname}${release}${shared_ext}$major'
14740 shlibpath_var=LD_LIBRARY_PATH
14741 case $host_vendor in
14743 shlibpath_overrides_runpath=no
14745 export_dynamic_flag_spec='${wl}-Blargedynsym'
14746 runpath_var=LD_RUN_PATH
14754 shlibpath_overrides_runpath=no
14755 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14761 if test -d /usr/nec ;then
14763 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14764 soname_spec='$libname${shared_ext}.$major'
14765 shlibpath_var=LD_LIBRARY_PATH
14771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14772 soname_spec='${libname}${release}${shared_ext}$major'
14773 shlibpath_var=LD_LIBRARY_PATH
14780 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14781 echo "${ECHO_T}$dynamic_linker" >&6
14782 test "$dynamic_linker" = no && can_build_shared=no
14784 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14785 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14787 if test -n "$hardcode_libdir_flag_spec" || \
14788 test -n "$runpath_var" || \
14789 test "X$hardcode_automatic" = "Xyes" ; then
14791 # We can hardcode non-existant directories.
14792 if test "$hardcode_direct" != no &&
14793 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14794 # have to relink, otherwise we might link with an installed library
14795 # when we should be linking with a yet-to-be-installed one
14796 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
14797 test "$hardcode_minus_L" != no; then
14798 # Linking always hardcodes the temporary library directory.
14799 hardcode_action=relink
14801 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14802 hardcode_action=immediate
14805 # We cannot hardcode anything, or else we can only hardcode existing
14807 hardcode_action=unsupported
14809 echo "$as_me:$LINENO: result: $hardcode_action" >&5
14810 echo "${ECHO_T}$hardcode_action" >&6
14812 if test "$hardcode_action" = relink; then
14813 # Fast installation is not supported
14814 enable_fast_install=no
14815 elif test "$shlibpath_overrides_runpath" = yes ||
14816 test "$enable_shared" = no; then
14817 # Fast installation is not necessary
14818 enable_fast_install=needless
14823 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14824 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14825 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14826 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14827 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14828 echo "$as_me:$LINENO: result: yes" >&5
14829 echo "${ECHO_T}yes" >&6
14831 # FIXME - insert some real tests, host_os isn't really good enough
14834 if test -n "$STRIP" ; then
14835 striplib="$STRIP -x"
14836 echo "$as_me:$LINENO: result: yes" >&5
14837 echo "${ECHO_T}yes" >&6
14839 echo "$as_me:$LINENO: result: no" >&5
14840 echo "${ECHO_T}no" >&6
14844 echo "$as_me:$LINENO: result: no" >&5
14845 echo "${ECHO_T}no" >&6
14850 if test "x$enable_dlopen" != xyes; then
14851 enable_dlopen=unknown
14852 enable_dlopen_self=unknown
14853 enable_dlopen_self_static=unknown
14860 lt_cv_dlopen="load_add_on"
14862 lt_cv_dlopen_self=yes
14866 lt_cv_dlopen="LoadLibrary"
14871 lt_cv_dlopen="dlopen"
14876 # if libdl is installed we need to link against it
14877 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14878 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14879 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14880 echo $ECHO_N "(cached) $ECHO_C" >&6
14882 ac_check_lib_save_LIBS=$LIBS
14884 cat >conftest.$ac_ext <<_ACEOF
14887 cat confdefs.h >>conftest.$ac_ext
14888 cat >>conftest.$ac_ext <<_ACEOF
14889 /* end confdefs.h. */
14891 /* Override any gcc2 internal prototype to avoid an error. */
14895 /* We use char because int might match the return type of a gcc2
14896 builtin and then its argument prototype would still apply. */
14906 rm -f conftest.$ac_objext conftest$ac_exeext
14907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14908 (eval $ac_link) 2>conftest.er1
14910 grep -v '^ *+' conftest.er1 >conftest.err
14912 cat conftest.err >&5
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); } &&
14915 { ac_try='test -z "$ac_c_werror_flag"
14916 || test ! -s conftest.err'
14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; } &&
14922 { ac_try='test -s conftest$ac_exeext'
14923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924 (eval $ac_try) 2>&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); }; }; then
14928 ac_cv_lib_dl_dlopen=yes
14930 echo "$as_me: failed program was:" >&5
14931 sed 's/^/| /' conftest.$ac_ext >&5
14933 ac_cv_lib_dl_dlopen=no
14935 rm -f conftest.err conftest.$ac_objext \
14936 conftest$ac_exeext conftest.$ac_ext
14937 LIBS=$ac_check_lib_save_LIBS
14939 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14940 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14941 if test $ac_cv_lib_dl_dlopen = yes; then
14942 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14945 lt_cv_dlopen="dyld"
14947 lt_cv_dlopen_self=yes
14954 echo "$as_me:$LINENO: checking for shl_load" >&5
14955 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14956 if test "${ac_cv_func_shl_load+set}" = set; then
14957 echo $ECHO_N "(cached) $ECHO_C" >&6
14959 cat >conftest.$ac_ext <<_ACEOF
14962 cat confdefs.h >>conftest.$ac_ext
14963 cat >>conftest.$ac_ext <<_ACEOF
14964 /* end confdefs.h. */
14965 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14967 #define shl_load innocuous_shl_load
14969 /* System header to define __stub macros and hopefully few prototypes,
14970 which can conflict with char shl_load (); below.
14971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14972 <limits.h> exists even on freestanding compilers. */
14975 # include <limits.h>
14977 # include <assert.h>
14982 /* Override any gcc2 internal prototype to avoid an error. */
14987 /* We use char because int might match the return type of a gcc2
14988 builtin and then its argument prototype would still apply. */
14990 /* The GNU C library defines this for functions which it implements
14991 to always fail with ENOSYS. Some functions are actually named
14992 something starting with __ and the normal name is an alias. */
14993 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14996 char (*f) () = shl_load;
15005 return f != shl_load;
15010 rm -f conftest.$ac_objext conftest$ac_exeext
15011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15012 (eval $ac_link) 2>conftest.er1
15014 grep -v '^ *+' conftest.er1 >conftest.err
15016 cat conftest.err >&5
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); } &&
15019 { ac_try='test -z "$ac_c_werror_flag"
15020 || test ! -s conftest.err'
15021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022 (eval $ac_try) 2>&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; } &&
15026 { ac_try='test -s conftest$ac_exeext'
15027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15028 (eval $ac_try) 2>&5
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); }; }; then
15032 ac_cv_func_shl_load=yes
15034 echo "$as_me: failed program was:" >&5
15035 sed 's/^/| /' conftest.$ac_ext >&5
15037 ac_cv_func_shl_load=no
15039 rm -f conftest.err conftest.$ac_objext \
15040 conftest$ac_exeext conftest.$ac_ext
15042 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15043 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15044 if test $ac_cv_func_shl_load = yes; then
15045 lt_cv_dlopen="shl_load"
15047 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15048 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15049 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15050 echo $ECHO_N "(cached) $ECHO_C" >&6
15052 ac_check_lib_save_LIBS=$LIBS
15054 cat >conftest.$ac_ext <<_ACEOF
15057 cat confdefs.h >>conftest.$ac_ext
15058 cat >>conftest.$ac_ext <<_ACEOF
15059 /* end confdefs.h. */
15061 /* Override any gcc2 internal prototype to avoid an error. */
15065 /* We use char because int might match the return type of a gcc2
15066 builtin and then its argument prototype would still apply. */
15076 rm -f conftest.$ac_objext conftest$ac_exeext
15077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15078 (eval $ac_link) 2>conftest.er1
15080 grep -v '^ *+' conftest.er1 >conftest.err
15082 cat conftest.err >&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); } &&
15085 { ac_try='test -z "$ac_c_werror_flag"
15086 || test ! -s conftest.err'
15087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088 (eval $ac_try) 2>&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); }; } &&
15092 { ac_try='test -s conftest$ac_exeext'
15093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15094 (eval $ac_try) 2>&5
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); }; }; then
15098 ac_cv_lib_dld_shl_load=yes
15100 echo "$as_me: failed program was:" >&5
15101 sed 's/^/| /' conftest.$ac_ext >&5
15103 ac_cv_lib_dld_shl_load=no
15105 rm -f conftest.err conftest.$ac_objext \
15106 conftest$ac_exeext conftest.$ac_ext
15107 LIBS=$ac_check_lib_save_LIBS
15109 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15110 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
15111 if test $ac_cv_lib_dld_shl_load = yes; then
15112 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15114 echo "$as_me:$LINENO: checking for dlopen" >&5
15115 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
15116 if test "${ac_cv_func_dlopen+set}" = set; then
15117 echo $ECHO_N "(cached) $ECHO_C" >&6
15119 cat >conftest.$ac_ext <<_ACEOF
15122 cat confdefs.h >>conftest.$ac_ext
15123 cat >>conftest.$ac_ext <<_ACEOF
15124 /* end confdefs.h. */
15125 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15127 #define dlopen innocuous_dlopen
15129 /* System header to define __stub macros and hopefully few prototypes,
15130 which can conflict with char dlopen (); below.
15131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15132 <limits.h> exists even on freestanding compilers. */
15135 # include <limits.h>
15137 # include <assert.h>
15142 /* Override any gcc2 internal prototype to avoid an error. */
15147 /* We use char because int might match the return type of a gcc2
15148 builtin and then its argument prototype would still apply. */
15150 /* The GNU C library defines this for functions which it implements
15151 to always fail with ENOSYS. Some functions are actually named
15152 something starting with __ and the normal name is an alias. */
15153 #if defined (__stub_dlopen) || defined (__stub___dlopen)
15156 char (*f) () = dlopen;
15165 return f != dlopen;
15170 rm -f conftest.$ac_objext conftest$ac_exeext
15171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15172 (eval $ac_link) 2>conftest.er1
15174 grep -v '^ *+' conftest.er1 >conftest.err
15176 cat conftest.err >&5
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); } &&
15179 { ac_try='test -z "$ac_c_werror_flag"
15180 || test ! -s conftest.err'
15181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15182 (eval $ac_try) 2>&5
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); }; } &&
15186 { ac_try='test -s conftest$ac_exeext'
15187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188 (eval $ac_try) 2>&5
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); }; }; then
15192 ac_cv_func_dlopen=yes
15194 echo "$as_me: failed program was:" >&5
15195 sed 's/^/| /' conftest.$ac_ext >&5
15197 ac_cv_func_dlopen=no
15199 rm -f conftest.err conftest.$ac_objext \
15200 conftest$ac_exeext conftest.$ac_ext
15202 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15203 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15204 if test $ac_cv_func_dlopen = yes; then
15205 lt_cv_dlopen="dlopen"
15207 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15208 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15209 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15210 echo $ECHO_N "(cached) $ECHO_C" >&6
15212 ac_check_lib_save_LIBS=$LIBS
15214 cat >conftest.$ac_ext <<_ACEOF
15217 cat confdefs.h >>conftest.$ac_ext
15218 cat >>conftest.$ac_ext <<_ACEOF
15219 /* end confdefs.h. */
15221 /* Override any gcc2 internal prototype to avoid an error. */
15225 /* We use char because int might match the return type of a gcc2
15226 builtin and then its argument prototype would still apply. */
15236 rm -f conftest.$ac_objext conftest$ac_exeext
15237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15238 (eval $ac_link) 2>conftest.er1
15240 grep -v '^ *+' conftest.er1 >conftest.err
15242 cat conftest.err >&5
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); } &&
15245 { ac_try='test -z "$ac_c_werror_flag"
15246 || test ! -s conftest.err'
15247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15248 (eval $ac_try) 2>&5
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); }; } &&
15252 { ac_try='test -s conftest$ac_exeext'
15253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254 (eval $ac_try) 2>&5
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; }; then
15258 ac_cv_lib_dl_dlopen=yes
15260 echo "$as_me: failed program was:" >&5
15261 sed 's/^/| /' conftest.$ac_ext >&5
15263 ac_cv_lib_dl_dlopen=no
15265 rm -f conftest.err conftest.$ac_objext \
15266 conftest$ac_exeext conftest.$ac_ext
15267 LIBS=$ac_check_lib_save_LIBS
15269 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15270 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15271 if test $ac_cv_lib_dl_dlopen = yes; then
15272 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15274 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15275 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15276 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15277 echo $ECHO_N "(cached) $ECHO_C" >&6
15279 ac_check_lib_save_LIBS=$LIBS
15280 LIBS="-lsvld $LIBS"
15281 cat >conftest.$ac_ext <<_ACEOF
15284 cat confdefs.h >>conftest.$ac_ext
15285 cat >>conftest.$ac_ext <<_ACEOF
15286 /* end confdefs.h. */
15288 /* Override any gcc2 internal prototype to avoid an error. */
15292 /* We use char because int might match the return type of a gcc2
15293 builtin and then its argument prototype would still apply. */
15303 rm -f conftest.$ac_objext conftest$ac_exeext
15304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15305 (eval $ac_link) 2>conftest.er1
15307 grep -v '^ *+' conftest.er1 >conftest.err
15309 cat conftest.err >&5
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); } &&
15312 { ac_try='test -z "$ac_c_werror_flag"
15313 || test ! -s conftest.err'
15314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15315 (eval $ac_try) 2>&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); }; } &&
15319 { ac_try='test -s conftest$ac_exeext'
15320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321 (eval $ac_try) 2>&5
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); }; }; then
15325 ac_cv_lib_svld_dlopen=yes
15327 echo "$as_me: failed program was:" >&5
15328 sed 's/^/| /' conftest.$ac_ext >&5
15330 ac_cv_lib_svld_dlopen=no
15332 rm -f conftest.err conftest.$ac_objext \
15333 conftest$ac_exeext conftest.$ac_ext
15334 LIBS=$ac_check_lib_save_LIBS
15336 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15337 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15338 if test $ac_cv_lib_svld_dlopen = yes; then
15339 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15341 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15342 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
15343 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15344 echo $ECHO_N "(cached) $ECHO_C" >&6
15346 ac_check_lib_save_LIBS=$LIBS
15348 cat >conftest.$ac_ext <<_ACEOF
15351 cat confdefs.h >>conftest.$ac_ext
15352 cat >>conftest.$ac_ext <<_ACEOF
15353 /* end confdefs.h. */
15355 /* Override any gcc2 internal prototype to avoid an error. */
15359 /* We use char because int might match the return type of a gcc2
15360 builtin and then its argument prototype would still apply. */
15370 rm -f conftest.$ac_objext conftest$ac_exeext
15371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15372 (eval $ac_link) 2>conftest.er1
15374 grep -v '^ *+' conftest.er1 >conftest.err
15376 cat conftest.err >&5
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); } &&
15379 { ac_try='test -z "$ac_c_werror_flag"
15380 || test ! -s conftest.err'
15381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382 (eval $ac_try) 2>&5
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); }; } &&
15386 { ac_try='test -s conftest$ac_exeext'
15387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388 (eval $ac_try) 2>&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; }; then
15392 ac_cv_lib_dld_dld_link=yes
15394 echo "$as_me: failed program was:" >&5
15395 sed 's/^/| /' conftest.$ac_ext >&5
15397 ac_cv_lib_dld_dld_link=no
15399 rm -f conftest.err conftest.$ac_objext \
15400 conftest$ac_exeext conftest.$ac_ext
15401 LIBS=$ac_check_lib_save_LIBS
15403 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
15404 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
15405 if test $ac_cv_lib_dld_dld_link = yes; then
15406 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
15427 if test "x$lt_cv_dlopen" != xno; then
15433 case $lt_cv_dlopen in
15435 save_CPPFLAGS="$CPPFLAGS"
15436 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15438 save_LDFLAGS="$LDFLAGS"
15439 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15442 LIBS="$lt_cv_dlopen_libs $LIBS"
15444 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
15445 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
15446 if test "${lt_cv_dlopen_self+set}" = set; then
15447 echo $ECHO_N "(cached) $ECHO_C" >&6
15449 if test "$cross_compiling" = yes; then :
15450 lt_cv_dlopen_self=cross
15452 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15453 lt_status=$lt_dlunknown
15454 cat > conftest.$ac_ext <<EOF
15455 #line 15455 "configure"
15456 #include "confdefs.h"
15465 # define LT_DLGLOBAL RTLD_GLOBAL
15468 # define LT_DLGLOBAL DL_GLOBAL
15470 # define LT_DLGLOBAL 0
15474 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15475 find out it does not work in some platform. */
15476 #ifndef LT_DLLAZY_OR_NOW
15478 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15481 # define LT_DLLAZY_OR_NOW DL_LAZY
15484 # define LT_DLLAZY_OR_NOW RTLD_NOW
15487 # define LT_DLLAZY_OR_NOW DL_NOW
15489 # define LT_DLLAZY_OR_NOW 0
15497 extern "C" void exit (int);
15500 void fnord() { int i=42;}
15503 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15504 int status = $lt_dlunknown;
15508 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15509 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15510 /* dlclose (self); */
15516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15517 (eval $ac_link) 2>&5
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15521 (./conftest; exit; ) 2>/dev/null
15523 case x$lt_status in
15524 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15525 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15526 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15529 # compilation failed
15530 lt_cv_dlopen_self=no
15537 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15538 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
15540 if test "x$lt_cv_dlopen_self" = xyes; then
15541 LDFLAGS="$LDFLAGS $link_static_flag"
15542 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15543 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
15544 if test "${lt_cv_dlopen_self_static+set}" = set; then
15545 echo $ECHO_N "(cached) $ECHO_C" >&6
15547 if test "$cross_compiling" = yes; then :
15548 lt_cv_dlopen_self_static=cross
15550 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15551 lt_status=$lt_dlunknown
15552 cat > conftest.$ac_ext <<EOF
15553 #line 15553 "configure"
15554 #include "confdefs.h"
15563 # define LT_DLGLOBAL RTLD_GLOBAL
15566 # define LT_DLGLOBAL DL_GLOBAL
15568 # define LT_DLGLOBAL 0
15572 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15573 find out it does not work in some platform. */
15574 #ifndef LT_DLLAZY_OR_NOW
15576 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15579 # define LT_DLLAZY_OR_NOW DL_LAZY
15582 # define LT_DLLAZY_OR_NOW RTLD_NOW
15585 # define LT_DLLAZY_OR_NOW DL_NOW
15587 # define LT_DLLAZY_OR_NOW 0
15595 extern "C" void exit (int);
15598 void fnord() { int i=42;}
15601 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15602 int status = $lt_dlunknown;
15606 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15607 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15608 /* dlclose (self); */
15614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15615 (eval $ac_link) 2>&5
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15619 (./conftest; exit; ) 2>/dev/null
15621 case x$lt_status in
15622 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15623 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15624 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15627 # compilation failed
15628 lt_cv_dlopen_self_static=no
15635 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15636 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15639 CPPFLAGS="$save_CPPFLAGS"
15640 LDFLAGS="$save_LDFLAGS"
15645 case $lt_cv_dlopen_self in
15646 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15647 *) enable_dlopen_self=unknown ;;
15650 case $lt_cv_dlopen_self_static in
15651 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15652 *) enable_dlopen_self_static=unknown ;;
15657 # Report which librarie types wil actually be built
15658 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15659 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15660 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15661 echo "${ECHO_T}$can_build_shared" >&6
15663 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15664 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15665 test "$can_build_shared" = "no" && enable_shared=no
15667 # On AIX, shared libraries and static libraries use the same namespace, and
15668 # are all built from PIC.
15671 test "$enable_shared" = yes && enable_static=no
15672 if test -n "$RANLIB"; then
15673 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15674 postinstall_cmds='$RANLIB $lib'
15679 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15680 test "$enable_shared" = yes && enable_static=no
15684 echo "$as_me:$LINENO: result: $enable_shared" >&5
15685 echo "${ECHO_T}$enable_shared" >&6
15687 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15688 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15689 # Make sure either enable_shared or enable_static is yes.
15690 test "$enable_shared" = yes || enable_static=yes
15691 echo "$as_me:$LINENO: result: $enable_static" >&5
15692 echo "${ECHO_T}$enable_static" >&6
15694 # The else clause should only fire when bootstrapping the
15695 # libtool distribution, otherwise you forgot to ship ltmain.sh
15696 # with your package, and you will get complaints that there are
15697 # no rules to generate ltmain.sh.
15698 if test -f "$ltmain"; then
15699 # See if we are running on zsh, and set the options which allow our commands through
15700 # without removal of \ escapes.
15701 if test -n "${ZSH_VERSION+set}" ; then
15702 setopt NO_GLOB_SUBST
15704 # Now quote all the things that may contain metacharacters while being
15705 # careful not to overquote the AC_SUBSTed values. We take copies of the
15706 # variables and quote the copies for generation of the libtool script.
15707 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15709 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15710 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15711 deplibs_check_method reload_flag reload_cmds need_locks \
15712 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15713 lt_cv_sys_global_symbol_to_c_name_address \
15714 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15715 old_postinstall_cmds old_postuninstall_cmds \
15719 lt_prog_compiler_wl \
15720 lt_prog_compiler_pic \
15721 lt_prog_compiler_static \
15722 lt_prog_compiler_no_builtin_flag \
15723 export_dynamic_flag_spec \
15724 thread_safe_flag_spec \
15725 whole_archive_flag_spec \
15726 enable_shared_with_static_runtimes \
15728 old_archive_from_new_cmds \
15733 compiler_lib_search_path \
15735 archive_expsym_cmds \
15737 postuninstall_cmds \
15738 old_archive_from_expsyms_cmds \
15739 allow_undefined_flag \
15740 no_undefined_flag \
15741 export_symbols_cmds \
15742 hardcode_libdir_flag_spec \
15743 hardcode_libdir_flag_spec_ld \
15744 hardcode_libdir_separator \
15745 hardcode_automatic \
15747 module_expsym_cmds \
15748 lt_cv_prog_compiler_c_o \
15750 include_expsyms; do
15753 old_archive_cmds | \
15754 old_archive_from_new_cmds | \
15756 archive_expsym_cmds | \
15758 module_expsym_cmds | \
15759 old_archive_from_expsyms_cmds | \
15760 export_symbols_cmds | \
15761 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15762 postinstall_cmds | postuninstall_cmds | \
15763 old_postinstall_cmds | old_postuninstall_cmds | \
15764 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15765 # Double-quote double-evaled strings.
15766 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15769 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15775 *'\$0 --fallback-echo"')
15776 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15780 cfgfile="${ofile}T"
15781 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
15783 { echo "$as_me:$LINENO: creating $ofile" >&5
15784 echo "$as_me: creating $ofile" >&6;}
15786 cat <<__EOF__ >> "$cfgfile"
15789 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15790 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
15791 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15793 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
15794 # Free Software Foundation, Inc.
15796 # This file is part of GNU Libtool:
15797 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15799 # This program is free software; you can redistribute it and/or modify
15800 # it under the terms of the GNU General Public License as published by
15801 # the Free Software Foundation; either version 2 of the License, or
15802 # (at your option) any later version.
15804 # This program is distributed in the hope that it will be useful, but
15805 # WITHOUT ANY WARRANTY; without even the implied warranty of
15806 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15807 # General Public License for more details.
15809 # You should have received a copy of the GNU General Public License
15810 # along with this program; if not, write to the Free Software
15811 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15813 # As a special exception to the GNU General Public License, if you
15814 # distribute this file as part of a program that contains a
15815 # configuration script generated by Autoconf, you may include it under
15816 # the same distribution terms that you use for the rest of that program.
15818 # A sed program that does not truncate output.
15821 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15822 Xsed="$SED -e 1s/^X//"
15824 # The HP-UX ksh and POSIX shell print the target directory to stdout
15825 # if CDPATH is set.
15826 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15828 # The names of the tagged configurations supported by this script.
15831 # ### BEGIN LIBTOOL CONFIG
15833 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15835 # Shell to use when invoking shell scripts.
15838 # Whether or not to build shared libraries.
15839 build_libtool_libs=$enable_shared
15841 # Whether or not to build static libraries.
15842 build_old_libs=$enable_static
15844 # Whether or not to add -lc for building shared libraries.
15845 build_libtool_need_lc=$archive_cmds_need_lc
15847 # Whether or not to disallow shared libs when runtime libs are static
15848 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15850 # Whether or not to optimize for fast installation.
15851 fast_install=$enable_fast_install
15854 host_alias=$host_alias
15858 # The build system.
15859 build_alias=$build_alias
15863 # An echo program that does not interpret backslashes.
15868 AR_FLAGS=$lt_AR_FLAGS
15873 # A language-specific compiler.
15876 # Is the compiler the GNU C compiler?
15882 # The linker used to build libraries.
15885 # Whether we need hard or soft links.
15888 # A BSD-compatible nm program.
15891 # A symbol stripping program
15894 # Used to examine libraries when file_magic_cmd begins "file"
15895 MAGIC_CMD=$MAGIC_CMD
15897 # Used on cygwin: DLL creation program.
15900 # Used on cygwin: object dumper.
15903 # Used on cygwin: assembler.
15906 # The name of the directory that contains temporary libtool files.
15909 # How to create reloadable object files.
15910 reload_flag=$lt_reload_flag
15911 reload_cmds=$lt_reload_cmds
15913 # How to pass a linker flag through the compiler.
15914 wl=$lt_lt_prog_compiler_wl
15916 # Object file suffix (normally "o").
15917 objext="$ac_objext"
15919 # Old archive suffix (normally "a").
15922 # Shared library suffix (normally ".so").
15923 shrext_cmds='$shrext_cmds'
15925 # Executable file suffix (normally "").
15928 # Additional compiler flags for building library objects.
15929 pic_flag=$lt_lt_prog_compiler_pic
15932 # What is the maximum length of a command?
15933 max_cmd_len=$lt_cv_sys_max_cmd_len
15935 # Does compiler simultaneously support -c and -o options?
15936 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15938 # Must we lock files when doing compilation?
15939 need_locks=$lt_need_locks
15941 # Do we need the lib prefix for modules?
15942 need_lib_prefix=$need_lib_prefix
15944 # Do we need a version for libraries?
15945 need_version=$need_version
15947 # Whether dlopen is supported.
15948 dlopen_support=$enable_dlopen
15950 # Whether dlopen of programs is supported.
15951 dlopen_self=$enable_dlopen_self
15953 # Whether dlopen of statically linked programs is supported.
15954 dlopen_self_static=$enable_dlopen_self_static
15956 # Compiler flag to prevent dynamic linking.
15957 link_static_flag=$lt_lt_prog_compiler_static
15959 # Compiler flag to turn off builtin functions.
15960 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15962 # Compiler flag to allow reflexive dlopens.
15963 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15965 # Compiler flag to generate shared objects directly from archives.
15966 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15968 # Compiler flag to generate thread-safe objects.
15969 thread_safe_flag_spec=$lt_thread_safe_flag_spec
15971 # Library versioning type.
15972 version_type=$version_type
15974 # Format of library name prefix.
15975 libname_spec=$lt_libname_spec
15977 # List of archive names. First name is the real one, the rest are links.
15978 # The last name is the one that the linker finds with -lNAME.
15979 library_names_spec=$lt_library_names_spec
15981 # The coded name of the library, if different from the real name.
15982 soname_spec=$lt_soname_spec
15984 # Commands used to build and install an old-style archive.
15986 old_archive_cmds=$lt_old_archive_cmds
15987 old_postinstall_cmds=$lt_old_postinstall_cmds
15988 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15990 # Create an old-style archive from a shared archive.
15991 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15993 # Create a temporary old-style archive to link instead of a shared archive.
15994 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15996 # Commands used to build and install a shared archive.
15997 archive_cmds=$lt_archive_cmds
15998 archive_expsym_cmds=$lt_archive_expsym_cmds
15999 postinstall_cmds=$lt_postinstall_cmds
16000 postuninstall_cmds=$lt_postuninstall_cmds
16002 # Commands used to build a loadable module (assumed same as above if empty)
16003 module_cmds=$lt_module_cmds
16004 module_expsym_cmds=$lt_module_expsym_cmds
16006 # Commands to strip libraries.
16007 old_striplib=$lt_old_striplib
16008 striplib=$lt_striplib
16010 # Dependencies to place before the objects being linked to create a
16012 predep_objects=$lt_predep_objects
16014 # Dependencies to place after the objects being linked to create a
16016 postdep_objects=$lt_postdep_objects
16018 # Dependencies to place before the objects being linked to create a
16020 predeps=$lt_predeps
16022 # Dependencies to place after the objects being linked to create a
16024 postdeps=$lt_postdeps
16026 # The library search path used internally by the compiler when linking
16027 # a shared library.
16028 compiler_lib_search_path=$lt_compiler_lib_search_path
16030 # Method to check whether dependent libraries are shared objects.
16031 deplibs_check_method=$lt_deplibs_check_method
16033 # Command to use when deplibs_check_method == file_magic.
16034 file_magic_cmd=$lt_file_magic_cmd
16036 # Flag that allows shared libraries with undefined symbols to be built.
16037 allow_undefined_flag=$lt_allow_undefined_flag
16039 # Flag that forces no undefined symbols.
16040 no_undefined_flag=$lt_no_undefined_flag
16042 # Commands used to finish a libtool library installation in a directory.
16043 finish_cmds=$lt_finish_cmds
16045 # Same as above, but a single script fragment to be evaled but not shown.
16046 finish_eval=$lt_finish_eval
16048 # Take the output of nm and produce a listing of raw symbols and C names.
16049 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16051 # Transform the output of nm in a proper C declaration
16052 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16054 # Transform the output of nm in a C name address pair
16055 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16057 # This is the shared library runtime path variable.
16058 runpath_var=$runpath_var
16060 # This is the shared library path variable.
16061 shlibpath_var=$shlibpath_var
16063 # Is shlibpath searched before the hard-coded library search path?
16064 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16066 # How to hardcode a shared library path into an executable.
16067 hardcode_action=$hardcode_action
16069 # Whether we should hardcode library paths into libraries.
16070 hardcode_into_libs=$hardcode_into_libs
16072 # Flag to hardcode \$libdir into a binary during linking.
16073 # This must work even if \$libdir does not exist.
16074 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16076 # If ld is used when linking, flag to hardcode \$libdir into
16077 # a binary during linking. This must work even if \$libdir does
16079 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16081 # Whether we need a single -rpath flag with a separated argument.
16082 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16084 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16085 # resulting binary.
16086 hardcode_direct=$hardcode_direct
16088 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16089 # resulting binary.
16090 hardcode_minus_L=$hardcode_minus_L
16092 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16093 # the resulting binary.
16094 hardcode_shlibpath_var=$hardcode_shlibpath_var
16096 # Set to yes if building a shared library automatically hardcodes DIR into the library
16097 # and all subsequent libraries and executables linked against it.
16098 hardcode_automatic=$hardcode_automatic
16100 # Variables whose values should be saved in libtool wrapper scripts and
16101 # restored at relink time.
16102 variables_saved_for_relink="$variables_saved_for_relink"
16104 # Whether libtool must link a program against all its dependency libraries.
16105 link_all_deplibs=$link_all_deplibs
16107 # Compile-time system search path for libraries
16108 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16110 # Run-time system search path for libraries
16111 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16113 # Fix the shell variable \$srcfile for the compiler.
16114 fix_srcfile_path="$fix_srcfile_path"
16116 # Set to yes if exported symbols are required.
16117 always_export_symbols=$always_export_symbols
16119 # The commands to list exported symbols.
16120 export_symbols_cmds=$lt_export_symbols_cmds
16122 # The commands to extract the exported symbol list from a shared archive.
16123 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16125 # Symbols that should not be listed in the preloaded symbols.
16126 exclude_expsyms=$lt_exclude_expsyms
16128 # Symbols that must always be exported.
16129 include_expsyms=$lt_include_expsyms
16131 # ### END LIBTOOL CONFIG
16138 cat <<\EOF >> "$cfgfile"
16140 # AIX sometimes has problems with the GCC collect2 program. For some
16141 # reason, if we set the COLLECT_NAMES environment variable, the problems
16142 # vanish in a puff of smoke.
16143 if test "X${COLLECT_NAMES+set}" != Xset; then
16145 export COLLECT_NAMES
16151 # We use sed instead of cat because bash on DJGPP gets confused if
16152 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16153 # text mode, it properly converts lines to CR/LF. This bash problem
16154 # is reportedly fixed, but why not run on old versions too?
16155 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
16157 mv -f "$cfgfile" "$ofile" || \
16158 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16162 # If there is no Makefile yet, we rely on a make rule to execute
16163 # `config.status --recheck' to rerun these tests and create the
16164 # libtool script then.
16165 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16166 if test -f "$ltmain_in"; then
16167 test -f Makefile && make "$ltmain"
16173 ac_cpp='$CPP $CPPFLAGS'
16174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16181 # Check whether --with-tags or --without-tags was given.
16182 if test "${with_tags+set}" = set; then
16183 withval="$with_tags"
16184 tagnames="$withval"
16187 if test -f "$ltmain" && test -n "$tagnames"; then
16188 if test ! -f "${ofile}"; then
16189 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
16190 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
16193 if test -z "$LTCC"; then
16194 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
16195 if test -z "$LTCC"; then
16196 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
16197 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
16199 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
16200 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
16204 # Extract list of available tagged configurations in $ofile.
16205 # Note that this assumes the entire list is on one line.
16206 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
16208 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16209 for tagname in $tagnames; do
16211 # Check whether tagname contains only valid characters
16212 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
16214 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
16215 echo "$as_me: error: invalid tag name: $tagname" >&2;}
16216 { (exit 1); exit 1; }; }
16220 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
16222 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
16223 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
16224 { (exit 1); exit 1; }; }
16227 # Update the list of available tags.
16228 if test -n "$tagname"; then
16229 echo appending configuration tag \"$tagname\" to $ofile
16233 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16234 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16235 (test "X$CXX" != "Xg++"))) ; then
16237 ac_cpp='$CXXCPP $CPPFLAGS'
16238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16245 archive_cmds_need_lc_CXX=no
16246 allow_undefined_flag_CXX=
16247 always_export_symbols_CXX=no
16248 archive_expsym_cmds_CXX=
16249 export_dynamic_flag_spec_CXX=
16250 hardcode_direct_CXX=no
16251 hardcode_libdir_flag_spec_CXX=
16252 hardcode_libdir_flag_spec_ld_CXX=
16253 hardcode_libdir_separator_CXX=
16254 hardcode_minus_L_CXX=no
16255 hardcode_automatic_CXX=no
16257 module_expsym_cmds_CXX=
16258 link_all_deplibs_CXX=unknown
16259 old_archive_cmds_CXX=$old_archive_cmds
16260 no_undefined_flag_CXX=
16261 whole_archive_flag_spec_CXX=
16262 enable_shared_with_static_runtimes_CXX=no
16264 # Dependencies to place before and after the object being linked:
16265 predep_objects_CXX=
16266 postdep_objects_CXX=
16269 compiler_lib_search_path_CXX=
16271 # Source file extension for C++ test sources.
16274 # Object file extension for compiled C++ test sources.
16278 # Code to be used in simple compile tests
16279 lt_simple_compile_test_code="int some_variable = 0;\n"
16281 # Code to be used in simple link tests
16282 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
16284 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16286 # If no C compiler was specified, use CC.
16289 # Allow CC to be a program name with arguments.
16293 # save warnings/boilerplate of simple test code
16294 ac_outfile=conftest.$ac_objext
16295 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16296 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16297 _lt_compiler_boilerplate=`cat conftest.err`
16300 ac_outfile=conftest.$ac_objext
16301 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16302 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16303 _lt_linker_boilerplate=`cat conftest.err`
16307 # Allow CC to be a program name with arguments.
16312 lt_save_with_gnu_ld=$with_gnu_ld
16313 lt_save_path_LD=$lt_cv_path_LD
16314 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16315 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16317 unset lt_cv_prog_gnu_ld
16319 if test -n "${lt_cv_path_LDCXX+set}"; then
16320 lt_cv_path_LD=$lt_cv_path_LDCXX
16322 unset lt_cv_path_LD
16324 test -z "${LDCXX+set}" || LD=$LDCXX
16328 for cc_temp in $compiler""; do
16330 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16331 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16336 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16339 # We don't want -fno-exception wen compiling C++ code, so set the
16340 # no_builtin_flag separately
16341 if test "$GXX" = yes; then
16342 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16344 lt_prog_compiler_no_builtin_flag_CXX=
16347 if test "$GXX" = yes; then
16348 # Set up default GNU C++ configuration
16351 # Check whether --with-gnu-ld or --without-gnu-ld was given.
16352 if test "${with_gnu_ld+set}" = set; then
16353 withval="$with_gnu_ld"
16354 test "$withval" = no || with_gnu_ld=yes
16359 if test "$GCC" = yes; then
16360 # Check if gcc -print-prog-name=ld gives a path.
16361 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
16362 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
16365 # gcc leaves a trailing carriage return which upsets mingw
16366 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16368 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16371 # Accept absolute paths.
16373 re_direlt='/[^/][^/]*/\.\./'
16374 # Canonicalize the pathname of ld
16375 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
16376 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16377 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
16379 test -z "$LD" && LD="$ac_prog"
16382 # If it fails, then pretend we aren't using GCC.
16386 # If it is relative, then search for the first ld in PATH.
16387 with_gnu_ld=unknown
16390 elif test "$with_gnu_ld" = yes; then
16391 echo "$as_me:$LINENO: checking for GNU ld" >&5
16392 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
16394 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16395 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
16397 if test "${lt_cv_path_LD+set}" = set; then
16398 echo $ECHO_N "(cached) $ECHO_C" >&6
16400 if test -z "$LD"; then
16401 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16402 for ac_dir in $PATH; do
16404 test -z "$ac_dir" && ac_dir=.
16405 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16406 lt_cv_path_LD="$ac_dir/$ac_prog"
16407 # Check to see if the program is GNU ld. I'd rather use --version,
16408 # but apparently some GNU ld's only accept -v.
16409 # Break only if it was the GNU/non-GNU ld that we prefer.
16410 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16411 *GNU* | *'with BFD'*)
16412 test "$with_gnu_ld" != no && break
16415 test "$with_gnu_ld" != yes && break
16422 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16426 LD="$lt_cv_path_LD"
16427 if test -n "$LD"; then
16428 echo "$as_me:$LINENO: result: $LD" >&5
16429 echo "${ECHO_T}$LD" >&6
16431 echo "$as_me:$LINENO: result: no" >&5
16432 echo "${ECHO_T}no" >&6
16434 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16435 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16436 { (exit 1); exit 1; }; }
16437 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16438 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16439 if test "${lt_cv_prog_gnu_ld+set}" = set; then
16440 echo $ECHO_N "(cached) $ECHO_C" >&6
16442 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16443 case `$LD -v 2>&1 </dev/null` in
16444 *GNU* | *'with BFD'*)
16445 lt_cv_prog_gnu_ld=yes
16448 lt_cv_prog_gnu_ld=no
16452 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
16453 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
16454 with_gnu_ld=$lt_cv_prog_gnu_ld
16458 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16459 # archiving commands below assume that GNU ld is being used.
16460 if test "$with_gnu_ld" = yes; then
16461 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16462 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'
16464 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16465 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16467 # If archive_cmds runs LD, not CC, wlarc should be empty
16468 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16469 # investigate it a little bit more. (MM)
16472 # ancient GNU ld didn't support --whole-archive et. al.
16473 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
16474 grep 'no-whole-archive' > /dev/null; then
16475 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16477 whole_archive_flag_spec_CXX=
16483 # A generic and very simple default shared library creation
16484 # command for GNU C++ for the case where it uses the native
16485 # linker, instead of GNU ld. If possible, this setting should
16486 # overridden to take advantage of the native linker features on
16487 # the platform it is being used on.
16488 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16491 # Commands to make compiler produce verbose output that lists
16492 # what "hidden" libraries, object files and flags are used when
16493 # linking a shared library.
16494 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16502 # PORTME: fill in a description of your system's C++ link characteristics
16503 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16504 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16508 # FIXME: insert proper C++ library support
16512 if test "$host_cpu" = ia64; then
16513 # On IA64, the linker does run time linking by default, so we don't
16514 # have to do anything special.
16515 aix_use_runtimelinking=no
16516 exp_sym_flag='-Bexport'
16519 aix_use_runtimelinking=no
16521 # Test if we are trying to use run time linking or normal
16522 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16523 # need to do runtime linking.
16524 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16525 for ld_flag in $LDFLAGS; do
16528 aix_use_runtimelinking=yes
16535 exp_sym_flag='-bexport'
16536 no_entry_flag='-bnoentry'
16539 # When large executables or shared objects are built, AIX ld can
16540 # have problems creating the table of contents. If linking a library
16541 # or program results in "error TOC overflow" add -mminimal-toc to
16542 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16543 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16545 archive_cmds_CXX=''
16546 hardcode_direct_CXX=yes
16547 hardcode_libdir_separator_CXX=':'
16548 link_all_deplibs_CXX=yes
16550 if test "$GXX" = yes; then
16551 case $host_os in aix4.[012]|aix4.[012].*)
16552 # We only want to do this on AIX 4.2 and lower, the check
16553 # below for broken collect2 doesn't work under 4.3+
16554 collect2name=`${CC} -print-prog-name=collect2`
16555 if test -f "$collect2name" && \
16556 strings "$collect2name" | grep resolve_lib_name >/dev/null
16558 # We have reworked collect2
16559 hardcode_direct_CXX=yes
16561 # We have old collect2
16562 hardcode_direct_CXX=unsupported
16563 # It fails to find uninstalled libraries when the uninstalled
16564 # path is not listed in the libpath. Setting hardcode_minus_L
16565 # to unsupported forces relinking
16566 hardcode_minus_L_CXX=yes
16567 hardcode_libdir_flag_spec_CXX='-L$libdir'
16568 hardcode_libdir_separator_CXX=
16571 shared_flag='-shared'
16572 if test "$aix_use_runtimelinking" = yes; then
16573 shared_flag="$shared_flag "'${wl}-G'
16577 if test "$host_cpu" = ia64; then
16578 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16579 # chokes on -Wl,-G. The following line is correct:
16582 if test "$aix_use_runtimelinking" = yes; then
16583 shared_flag='${wl}-G'
16585 shared_flag='${wl}-bM:SRE'
16590 # It seems that -bexpall does not export symbols beginning with
16591 # underscore (_), so it is better to generate a list of symbols to export.
16592 always_export_symbols_CXX=yes
16593 if test "$aix_use_runtimelinking" = yes; then
16594 # Warning - without using the other runtime loading flags (-brtl),
16595 # -berok will link without error, but may produce a broken library.
16596 allow_undefined_flag_CXX='-berok'
16597 # Determine the default libpath from the value encoded in an empty executable.
16598 cat >conftest.$ac_ext <<_ACEOF
16601 cat confdefs.h >>conftest.$ac_ext
16602 cat >>conftest.$ac_ext <<_ACEOF
16603 /* end confdefs.h. */
16613 rm -f conftest.$ac_objext conftest$ac_exeext
16614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16615 (eval $ac_link) 2>conftest.er1
16617 grep -v '^ *+' conftest.er1 >conftest.err
16619 cat conftest.err >&5
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); } &&
16622 { ac_try='test -z "$ac_cxx_werror_flag"
16623 || test ! -s conftest.err'
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); }; } &&
16629 { ac_try='test -s conftest$ac_exeext'
16630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16631 (eval $ac_try) 2>&5
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); }; }; then
16636 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16638 # Check for a 64-bit object if we didn't find anything.
16639 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; }
16642 echo "$as_me: failed program was:" >&5
16643 sed 's/^/| /' conftest.$ac_ext >&5
16646 rm -f conftest.err conftest.$ac_objext \
16647 conftest$ac_exeext conftest.$ac_ext
16648 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16650 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16652 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"
16654 if test "$host_cpu" = ia64; then
16655 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16656 allow_undefined_flag_CXX="-z nodefs"
16657 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"
16659 # Determine the default libpath from the value encoded in an empty executable.
16660 cat >conftest.$ac_ext <<_ACEOF
16663 cat confdefs.h >>conftest.$ac_ext
16664 cat >>conftest.$ac_ext <<_ACEOF
16665 /* end confdefs.h. */
16675 rm -f conftest.$ac_objext conftest$ac_exeext
16676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16677 (eval $ac_link) 2>conftest.er1
16679 grep -v '^ *+' conftest.er1 >conftest.err
16681 cat conftest.err >&5
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); } &&
16684 { ac_try='test -z "$ac_cxx_werror_flag"
16685 || test ! -s conftest.err'
16686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16687 (eval $ac_try) 2>&5
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); }; } &&
16691 { ac_try='test -s conftest$ac_exeext'
16692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693 (eval $ac_try) 2>&5
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }; }; then
16698 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16700 # Check for a 64-bit object if we didn't find anything.
16701 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; }
16704 echo "$as_me: failed program was:" >&5
16705 sed 's/^/| /' conftest.$ac_ext >&5
16708 rm -f conftest.err conftest.$ac_objext \
16709 conftest$ac_exeext conftest.$ac_ext
16710 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16712 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16713 # Warning - without using the other run time loading flags,
16714 # -berok will link without error, but may produce a broken library.
16715 no_undefined_flag_CXX=' ${wl}-bernotok'
16716 allow_undefined_flag_CXX=' ${wl}-berok'
16717 # -bexpall does not export symbols beginning with underscore (_)
16718 always_export_symbols_CXX=yes
16719 # Exported symbols can be pulled into shared objects from archives
16720 whole_archive_flag_spec_CXX=' '
16721 archive_cmds_need_lc_CXX=yes
16722 # This is similar to how AIX traditionally builds it's shared libraries.
16723 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'
16728 case $cc_basename in
16730 # FIXME: insert proper C++ library support
16737 cygwin* | mingw* | pw32*)
16738 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16739 # as there is no search path for DLLs.
16740 hardcode_libdir_flag_spec_CXX='-L$libdir'
16741 allow_undefined_flag_CXX=unsupported
16742 always_export_symbols_CXX=no
16743 enable_shared_with_static_runtimes_CXX=yes
16745 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16746 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'
16747 # If the export-symbols file already is a .def file (1st line
16748 # is EXPORTS), use it as is; otherwise, prepend...
16749 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16750 cp $export_symbols $output_objdir/$soname.def;
16752 echo EXPORTS > $output_objdir/$soname.def;
16753 cat $export_symbols >> $output_objdir/$soname.def;
16755 $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'
16760 darwin* | rhapsody*)
16762 rhapsody* | darwin1.[012])
16763 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
16766 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16767 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16769 case ${MACOSX_DEPLOYMENT_TARGET} in
16771 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16774 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
16780 archive_cmds_need_lc_CXX=no
16781 hardcode_direct_CXX=no
16782 hardcode_automatic_CXX=yes
16783 hardcode_shlibpath_var_CXX=unsupported
16784 whole_archive_flag_spec_CXX=''
16785 link_all_deplibs_CXX=yes
16787 if test "$GXX" = yes ; then
16788 lt_int_apple_cc_single_mod=no
16789 output_verbose_link_cmd='echo'
16790 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
16791 lt_int_apple_cc_single_mod=yes
16793 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16794 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16796 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'
16798 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16799 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16800 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16801 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}'
16803 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}'
16805 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}'
16807 case $cc_basename in
16809 output_verbose_link_cmd='echo'
16810 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'
16811 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16812 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16813 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}'
16814 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}'
16824 case $cc_basename in
16826 # FIXME: insert proper C++ library support
16830 # Green Hills C++ Compiler
16831 # FIXME: insert proper C++ library support
16835 # FIXME: insert proper C++ library support
16841 # C++ shared libraries reported to be fairly broken before switch to ELF
16845 archive_cmds_need_lc_CXX=no
16847 freebsd* | kfreebsd*-gnu | dragonfly*)
16848 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16855 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16856 hardcode_libdir_separator_CXX=:
16857 export_dynamic_flag_spec_CXX='${wl}-E'
16858 hardcode_direct_CXX=yes
16859 hardcode_minus_L_CXX=yes # Not in the search PATH,
16860 # but as the default
16861 # location of the library.
16863 case $cc_basename in
16865 # FIXME: insert proper C++ library support
16869 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'
16870 # Commands to make compiler produce verbose output that lists
16871 # what "hidden" libraries, object files and flags are used when
16872 # linking a shared library.
16874 # There doesn't appear to be a way to prevent this compiler from
16875 # explicitly linking system object files so we need to strip them
16876 # from the output so that they don't get included in the library
16878 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'
16881 if test "$GXX" = yes; then
16882 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'
16884 # FIXME: insert proper C++ library support
16891 if test $with_gnu_ld = no; then
16892 case "$host_cpu" in
16894 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16895 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
16896 hardcode_libdir_separator_CXX=:
16899 hardcode_libdir_flag_spec_CXX='-L$libdir'
16902 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16903 hardcode_libdir_separator_CXX=:
16904 export_dynamic_flag_spec_CXX='${wl}-E'
16908 case "$host_cpu" in
16910 hardcode_direct_CXX=no
16911 hardcode_shlibpath_var_CXX=no
16914 hardcode_direct_CXX=no
16915 hardcode_shlibpath_var_CXX=no
16916 hardcode_minus_L_CXX=yes # Not in the search PATH,
16917 # but as the default
16918 # location of the library.
16921 hardcode_direct_CXX=yes
16922 hardcode_minus_L_CXX=yes # Not in the search PATH,
16923 # but as the default
16924 # location of the library.
16928 case $cc_basename in
16930 # FIXME: insert proper C++ library support
16934 case "$host_cpu" in
16936 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16939 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16942 # Commands to make compiler produce verbose output that lists
16943 # what "hidden" libraries, object files and flags are used when
16944 # linking a shared library.
16946 # There doesn't appear to be a way to prevent this compiler from
16947 # explicitly linking system object files so we need to strip them
16948 # from the output so that they don't get included in the library
16950 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'
16953 if test "$GXX" = yes; then
16954 if test $with_gnu_ld = no; then
16955 case "$host_cpu" in
16957 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16960 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'
16965 # FIXME: insert proper C++ library support
16972 case $cc_basename in
16975 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'
16977 # Archives containing C++ object files must be created using
16978 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16979 # necessary to make sure instantiated templates are included
16981 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16984 if test "$GXX" = yes; then
16985 if test "$with_gnu_ld" = no; then
16986 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'
16988 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'
16991 link_all_deplibs_CXX=yes
16994 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16995 hardcode_libdir_separator_CXX=:
16998 case $cc_basename in
17000 # Kuck and Associates, Inc. (KAI) C++ Compiler
17002 # KCC will only create a shared library if the output file
17003 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17004 # to its proper name (with version) after linking.
17005 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'
17006 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'
17007 # Commands to make compiler produce verbose output that lists
17008 # what "hidden" libraries, object files and flags are used when
17009 # linking a shared library.
17011 # There doesn't appear to be a way to prevent this compiler from
17012 # explicitly linking system object files so we need to strip them
17013 # from the output so that they don't get included in the library
17015 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'
17017 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
17018 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17020 # Archives containing C++ object files must be created using
17021 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17022 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17027 # version 8.0 and above of icpc choke on multiply defined symbols
17028 # if we add $predep_objects and $postdep_objects, however 7.1 and
17029 # earlier do not add the objects themselves.
17030 case `$CC -V 2>&1` in
17032 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17033 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'
17035 *) # Version 8.0 or newer
17038 ia64*) tmp_idyn=' -i_dynamic';;
17040 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17041 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'
17044 archive_cmds_need_lc_CXX=no
17045 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17046 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17047 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17050 # Portland Group C++ compiler
17051 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17052 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'
17054 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17055 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17056 whole_archive_flag_spec_CXX=''
17060 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17061 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'
17063 runpath_var=LD_RUN_PATH
17064 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17065 hardcode_libdir_separator_CXX=:
17067 # Commands to make compiler produce verbose output that lists
17068 # what "hidden" libraries, object files and flags are used when
17069 # linking a shared library.
17071 # There doesn't appear to be a way to prevent this compiler from
17072 # explicitly linking system object files so we need to strip them
17073 # from the output so that they don't get included in the library
17075 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'
17080 # FIXME: insert proper C++ library support
17084 # FIXME: insert proper C++ library support
17088 case $cc_basename in
17090 # FIXME: insert proper C++ library support
17094 # FIXME: insert proper C++ library support
17100 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17101 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17103 hardcode_libdir_flag_spec_CXX='-R$libdir'
17104 hardcode_direct_CXX=yes
17105 hardcode_shlibpath_var_CXX=no
17107 # Workaround some broken pre-1.5 toolchains
17108 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17111 # C++ shared libraries are fairly broken
17115 hardcode_direct_CXX=yes
17116 hardcode_shlibpath_var_CXX=no
17117 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17118 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17119 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17120 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17121 export_dynamic_flag_spec_CXX='${wl}-E'
17122 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17124 output_verbose_link_cmd='echo'
17127 case $cc_basename in
17129 # Kuck and Associates, Inc. (KAI) C++ Compiler
17131 # KCC will only create a shared library if the output file
17132 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17133 # to its proper name (with version) after linking.
17134 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'
17136 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17137 hardcode_libdir_separator_CXX=:
17139 # Archives containing C++ object files must be created using
17140 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17141 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17145 # Rational C++ 2.4.1
17146 # FIXME: insert proper C++ library support
17150 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17151 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'
17153 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17154 hardcode_libdir_separator_CXX=:
17156 # Commands to make compiler produce verbose output that lists
17157 # what "hidden" libraries, object files and flags are used when
17158 # linking a shared library.
17160 # There doesn't appear to be a way to prevent this compiler from
17161 # explicitly linking system object files so we need to strip them
17162 # from the output so that they don't get included in the library
17164 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'
17167 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17168 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17169 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'
17171 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17172 hardcode_libdir_separator_CXX=:
17174 # Commands to make compiler produce verbose output that lists
17175 # what "hidden" libraries, object files and flags are used when
17176 # linking a shared library.
17177 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17180 # FIXME: insert proper C++ library support
17187 case $cc_basename in
17189 # Kuck and Associates, Inc. (KAI) C++ Compiler
17191 # KCC will only create a shared library if the output file
17192 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17193 # to its proper name (with version) after linking.
17194 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'
17196 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17197 hardcode_libdir_separator_CXX=:
17199 # Archives containing C++ object files must be created using
17200 # the KAI C++ compiler.
17201 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
17204 # Rational C++ 2.4.1
17205 # FIXME: insert proper C++ library support
17209 allow_undefined_flag_CXX=' -expect_unresolved \*'
17210 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'
17211 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17212 echo "-hidden">> $lib.exp~
17213 $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~
17216 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17217 hardcode_libdir_separator_CXX=:
17219 # Commands to make compiler produce verbose output that lists
17220 # what "hidden" libraries, object files and flags are used when
17221 # linking a shared library.
17223 # There doesn't appear to be a way to prevent this compiler from
17224 # explicitly linking system object files so we need to strip them
17225 # from the output so that they don't get included in the library
17227 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'
17230 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17231 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17232 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'
17234 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17235 hardcode_libdir_separator_CXX=:
17237 # Commands to make compiler produce verbose output that lists
17238 # what "hidden" libraries, object files and flags are used when
17239 # linking a shared library.
17240 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17243 # FIXME: insert proper C++ library support
17250 # FIXME: insert proper C++ library support
17254 archive_cmds_need_lc_CXX=no
17255 case $cc_basename in
17257 # FIXME: insert proper C++ library support
17261 # FIXME: insert proper C++ library support
17267 case $cc_basename in
17270 # FIXME: insert proper C++ library support
17275 # FIXME: insert proper C++ library support
17279 # FIXME: insert proper C++ library support
17285 case $cc_basename in
17287 # Sun C++ 4.2, 5.x and Centerline C++
17288 no_undefined_flag_CXX=' -zdefs'
17289 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17290 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17291 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
17293 hardcode_libdir_flag_spec_CXX='-R$libdir'
17294 hardcode_shlibpath_var_CXX=no
17296 solaris2.[0-5] | solaris2.[0-5].*) ;;
17298 # The C++ compiler is used as linker so we must use $wl
17299 # flag to pass the commands to the underlying system
17300 # linker. We must also pass each convience library through
17301 # to the system linker between allextract/defaultextract.
17302 # The C++ compiler will combine linker options so we
17303 # cannot just pass the convience library names through
17305 # Supported since Solaris 2.6 (maybe 2.5.1?)
17306 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'
17309 link_all_deplibs_CXX=yes
17311 # Commands to make compiler produce verbose output that lists
17312 # what "hidden" libraries, object files and flags are used when
17313 # linking a shared library.
17315 # There doesn't appear to be a way to prevent this compiler from
17316 # explicitly linking system object files so we need to strip them
17317 # from the output so that they don't get included in the library
17319 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
17321 # Archives containing C++ object files must be created using
17322 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17323 # necessary to make sure instantiated templates are included
17325 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17328 # Green Hills C++ Compiler
17329 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17331 # The C++ compiler must be used to create the archive.
17332 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17335 # GNU C++ compiler with Solaris linker
17336 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17337 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17338 if $CC --version | grep -v '^2\.7' > /dev/null; then
17339 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17340 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17341 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
17343 # Commands to make compiler produce verbose output that lists
17344 # what "hidden" libraries, object files and flags are used when
17345 # linking a shared library.
17346 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
17348 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17350 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17351 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17352 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
17354 # Commands to make compiler produce verbose output that lists
17355 # what "hidden" libraries, object files and flags are used when
17356 # linking a shared library.
17357 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
17360 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17365 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17366 archive_cmds_need_lc_CXX=no
17369 case $cc_basename in
17371 # NonStop-UX NCC 3.20
17372 # FIXME: insert proper C++ library support
17376 # FIXME: insert proper C++ library support
17382 # FIXME: insert proper C++ library support
17386 # FIXME: insert proper C++ library support
17390 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17391 echo "${ECHO_T}$ld_shlibs_CXX" >&6
17392 test "$ld_shlibs_CXX" = no && can_build_shared=no
17398 ## There is no encapsulation within the following macros, do not change
17399 ## the running order or otherwise move them around unless you know exactly
17400 ## what you are doing...
17402 cat > conftest.$ac_ext <<EOF
17406 Foo (void) { a = 0; }
17412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17413 (eval $ac_compile) 2>&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); }; then
17417 # Parse the compiler output and extract the necessary
17418 # objects, libraries and library flags.
17420 # Sentinel used to keep track of whether or not we are before
17421 # the conftest object file.
17422 pre_test_object_deps_done=no
17424 # The `*' in the case matches for architectures that use `case' in
17425 # $output_verbose_cmd can trigger glob expansion during the loop
17426 # eval without this substitution.
17427 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
17429 for p in `eval $output_verbose_link_cmd`; do
17433 # Some compilers place space between "-{L,R}" and the path.
17434 # Remove the space.
17435 if test $p = "-L" \
17436 || test $p = "-R"; then
17443 if test "$pre_test_object_deps_done" = no; then
17446 # Internal compiler library paths should come after those
17447 # provided the user. The postdeps already come after the
17448 # user supplied libs so there is no need to process them.
17449 if test -z "$compiler_lib_search_path_CXX"; then
17450 compiler_lib_search_path_CXX="${prev}${p}"
17452 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17455 # The "-l" case would never come before the object being
17456 # linked, so don't bother handling this case.
17459 if test -z "$postdeps_CXX"; then
17460 postdeps_CXX="${prev}${p}"
17462 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17468 # This assumes that the test object file only shows up
17469 # once in the compiler output.
17470 if test "$p" = "conftest.$objext"; then
17471 pre_test_object_deps_done=yes
17475 if test "$pre_test_object_deps_done" = no; then
17476 if test -z "$predep_objects_CXX"; then
17477 predep_objects_CXX="$p"
17479 predep_objects_CXX="$predep_objects_CXX $p"
17482 if test -z "$postdep_objects_CXX"; then
17483 postdep_objects_CXX="$p"
17485 postdep_objects_CXX="$postdep_objects_CXX $p"
17490 *) ;; # Ignore the rest.
17498 echo "libtool.m4: error: problem compiling CXX test program"
17501 $rm -f confest.$objext
17503 case " $postdeps_CXX " in
17504 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17507 lt_prog_compiler_wl_CXX=
17508 lt_prog_compiler_pic_CXX=
17509 lt_prog_compiler_static_CXX=
17511 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17512 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17514 # C++ specific cases for pic, static, wl, etc.
17515 if test "$GXX" = yes; then
17516 lt_prog_compiler_wl_CXX='-Wl,'
17517 lt_prog_compiler_static_CXX='-static'
17521 # All AIX code is PIC.
17522 if test "$host_cpu" = ia64; then
17523 # AIX 5 now supports IA64 processor
17524 lt_prog_compiler_static_CXX='-Bstatic'
17528 # FIXME: we need at least 68020 code to build shared libraries, but
17529 # adding the `-m68020' flag to GCC prevents building anything better,
17531 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17533 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17534 # PIC is the default for these OSes.
17536 mingw* | os2* | pw32*)
17537 # This hack is so that the source file can tell whether it is being
17538 # built for inclusion in a dll (and should export symbols for example).
17539 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17541 darwin* | rhapsody*)
17542 # PIC is the default on this platform
17543 # Common symbols not allowed in MH_DYLIB files
17544 lt_prog_compiler_pic_CXX='-fno-common'
17547 # DJGPP does not support shared libraries at all
17548 lt_prog_compiler_pic_CXX=
17551 if test -d /usr/nec; then
17552 lt_prog_compiler_pic_CXX=-Kconform_pic
17556 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17557 # not for PA HP-UX.
17558 case "$host_cpu" in
17562 lt_prog_compiler_pic_CXX='-fPIC'
17567 lt_prog_compiler_pic_CXX='-fPIC'
17573 # All AIX code is PIC.
17574 if test "$host_cpu" = ia64; then
17575 # AIX 5 now supports IA64 processor
17576 lt_prog_compiler_static_CXX='-Bstatic'
17578 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17582 case $cc_basename in
17584 # Green Hills C++ Compiler
17585 # _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"
17590 # PIC is the default on this platform
17591 # Common symbols not allowed in MH_DYLIB files
17592 case $cc_basename in
17594 lt_prog_compiler_pic_CXX='-qnocommon'
17595 lt_prog_compiler_wl_CXX='-Wl,'
17600 case $cc_basename in
17602 lt_prog_compiler_pic_CXX='-KPIC'
17605 # Green Hills C++ Compiler
17606 lt_prog_compiler_pic_CXX='-pic'
17612 freebsd* | kfreebsd*-gnu | dragonfly*)
17613 # FreeBSD uses GNU C++
17615 hpux9* | hpux10* | hpux11*)
17616 case $cc_basename in
17618 lt_prog_compiler_wl_CXX='-Wl,'
17619 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
17620 if test "$host_cpu" != ia64; then
17621 lt_prog_compiler_pic_CXX='+Z'
17625 lt_prog_compiler_wl_CXX='-Wl,'
17626 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
17627 case "$host_cpu" in
17632 lt_prog_compiler_pic_CXX='+Z'
17640 irix5* | irix6* | nonstopux*)
17641 case $cc_basename in
17643 lt_prog_compiler_wl_CXX='-Wl,'
17644 lt_prog_compiler_static_CXX='-non_shared'
17645 # CC pic flag -KPIC is the default.
17652 case $cc_basename in
17655 lt_prog_compiler_wl_CXX='--backend -Wl,'
17656 lt_prog_compiler_pic_CXX='-fPIC'
17660 lt_prog_compiler_wl_CXX='-Wl,'
17661 lt_prog_compiler_pic_CXX='-KPIC'
17662 lt_prog_compiler_static_CXX='-static'
17665 # Portland Group C++ compiler.
17666 lt_prog_compiler_wl_CXX='-Wl,'
17667 lt_prog_compiler_pic_CXX='-fpic'
17668 lt_prog_compiler_static_CXX='-static'
17672 # Make sure the PIC flag is empty. It appears that all Alpha
17673 # Linux and Compaq Tru64 Unix objects are PIC.
17674 lt_prog_compiler_pic_CXX=
17675 lt_prog_compiler_static_CXX='-non_shared'
17686 case $cc_basename in
17688 lt_prog_compiler_pic_CXX='-W c,exportall'
17696 osf3* | osf4* | osf5*)
17697 case $cc_basename in
17699 lt_prog_compiler_wl_CXX='--backend -Wl,'
17702 # Rational C++ 2.4.1
17703 lt_prog_compiler_pic_CXX='-pic'
17706 # Digital/Compaq C++
17707 lt_prog_compiler_wl_CXX='-Wl,'
17708 # Make sure the PIC flag is empty. It appears that all Alpha
17709 # Linux and Compaq Tru64 Unix objects are PIC.
17710 lt_prog_compiler_pic_CXX=
17711 lt_prog_compiler_static_CXX='-non_shared'
17720 case $cc_basename in
17722 lt_prog_compiler_pic_CXX='-fPIC'
17729 case $cc_basename in
17731 # Sun C++ 4.2, 5.x and Centerline C++
17732 lt_prog_compiler_pic_CXX='-KPIC'
17733 lt_prog_compiler_static_CXX='-Bstatic'
17734 lt_prog_compiler_wl_CXX='-Qoption ld '
17737 # Green Hills C++ Compiler
17738 lt_prog_compiler_pic_CXX='-PIC'
17745 case $cc_basename in
17748 lt_prog_compiler_pic_CXX='-pic'
17749 lt_prog_compiler_static_CXX='-Bstatic'
17753 lt_prog_compiler_pic_CXX='-pic'
17760 case $cc_basename in
17762 # NonStop-UX NCC 3.20
17763 lt_prog_compiler_pic_CXX='-KPIC'
17774 lt_prog_compiler_can_build_shared_CXX=no
17779 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
17780 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
17783 # Check to make sure the PIC flag actually works.
17785 if test -n "$lt_prog_compiler_pic_CXX"; then
17787 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17788 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
17789 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
17790 echo $ECHO_N "(cached) $ECHO_C" >&6
17792 lt_prog_compiler_pic_works_CXX=no
17793 ac_outfile=conftest.$ac_objext
17794 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17795 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17796 # Insert the option either (1) after the last *FLAGS variable, or
17797 # (2) before a word containing "conftest.", or (3) at the end.
17798 # Note that $ac_compile itself does not contain backslashes and begins
17799 # with a dollar sign (not a hyphen), so the echo should work correctly.
17800 # The option is referenced via a variable to avoid confusing sed.
17801 lt_compile=`echo "$ac_compile" | $SED \
17802 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17804 -e 's:$: $lt_compiler_flag:'`
17805 (eval echo "\"\$as_me:17805: $lt_compile\"" >&5)
17806 (eval "$lt_compile" 2>conftest.err)
17808 cat conftest.err >&5
17809 echo "$as_me:17809: \$? = $ac_status" >&5
17810 if (exit $ac_status) && test -s "$ac_outfile"; then
17811 # The compiler can only warn and ignore the option if not recognized
17812 # So say no if there are warnings other than the usual output.
17813 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17814 $SED '/^$/d' conftest.err >conftest.er2
17815 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17816 lt_prog_compiler_pic_works_CXX=yes
17822 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
17823 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
17825 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
17826 case $lt_prog_compiler_pic_CXX in
17828 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17831 lt_prog_compiler_pic_CXX=
17832 lt_prog_compiler_can_build_shared_CXX=no
17837 # For platforms which do not support PIC, -DPIC is meaningless:
17839 lt_prog_compiler_pic_CXX=
17842 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17846 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17847 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17848 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
17849 echo $ECHO_N "(cached) $ECHO_C" >&6
17851 lt_cv_prog_compiler_c_o_CXX=no
17852 $rm -r conftest 2>/dev/null
17856 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17858 lt_compiler_flag="-o out/conftest2.$ac_objext"
17859 # Insert the option either (1) after the last *FLAGS variable, or
17860 # (2) before a word containing "conftest.", or (3) at the end.
17861 # Note that $ac_compile itself does not contain backslashes and begins
17862 # with a dollar sign (not a hyphen), so the echo should work correctly.
17863 lt_compile=`echo "$ac_compile" | $SED \
17864 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17866 -e 's:$: $lt_compiler_flag:'`
17867 (eval echo "\"\$as_me:17867: $lt_compile\"" >&5)
17868 (eval "$lt_compile" 2>out/conftest.err)
17870 cat out/conftest.err >&5
17871 echo "$as_me:17871: \$? = $ac_status" >&5
17872 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17874 # The compiler can only warn and ignore the option if not recognized
17875 # So say no if there are warnings
17876 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
17877 $SED '/^$/d' out/conftest.err >out/conftest.er2
17878 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17879 lt_cv_prog_compiler_c_o_CXX=yes
17884 # SGI C++ compiler will create directory out/ii_files/ for
17885 # template instantiation
17886 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17887 $rm out/* && rmdir out
17893 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17894 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
17897 hard_links="nottested"
17898 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17899 # do not overwrite the value of need_locks provided by the user
17900 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17901 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17904 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17906 ln conftest.a conftest.b 2>&5 || hard_links=no
17907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17908 echo "$as_me:$LINENO: result: $hard_links" >&5
17909 echo "${ECHO_T}$hard_links" >&6
17910 if test "$hard_links" = no; then
17911 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17912 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17919 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17920 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17922 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17925 # If we're using GNU nm, then we don't want the "-C" option.
17926 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17927 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17928 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'
17930 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'
17934 export_symbols_cmds_CXX="$ltdll_cmds"
17937 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'
17940 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17944 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17945 echo "${ECHO_T}$ld_shlibs_CXX" >&6
17946 test "$ld_shlibs_CXX" = no && can_build_shared=no
17948 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17949 if test "$GCC" = yes; then
17950 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17954 # Do we need to explicitly link libc?
17956 case "x$archive_cmds_need_lc_CXX" in
17958 # Assume -lc should be added
17959 archive_cmds_need_lc_CXX=yes
17961 if test "$enable_shared" = yes && test "$GCC" = yes; then
17962 case $archive_cmds_CXX in
17964 # FIXME: we may have to deal with multi-command sequences.
17967 # Test whether the compiler implicitly links with -lc since on some
17968 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17969 # to ld, don't add -lc before -lgcc.
17970 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17971 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17973 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17976 (eval $ac_compile) 2>&5
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); } 2>conftest.err; then
17982 libobjs=conftest.$ac_objext
17984 wl=$lt_prog_compiler_wl_CXX
17990 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17991 allow_undefined_flag_CXX=
17992 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17993 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); }
17998 archive_cmds_need_lc_CXX=no
18000 archive_cmds_need_lc_CXX=yes
18002 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18004 cat conftest.err 1>&5
18007 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
18008 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
18015 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18016 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18017 library_names_spec=
18018 libname_spec='lib$name'
18022 postuninstall_cmds=
18026 shlibpath_overrides_runpath=unknown
18028 dynamic_linker="$host_os ld.so"
18029 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18030 if test "$GCC" = yes; then
18031 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18032 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18033 # if the path contains ";" then we assume it to be the separator
18034 # otherwise default to the standard path separator (i.e. ":") - it is
18035 # assumed that no part of a normal pathname contains ";" but that should
18036 # okay in the real world where ";" in dirpaths is itself problematic.
18037 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18039 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18042 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18044 need_lib_prefix=unknown
18045 hardcode_into_libs=no
18047 # when you set need_version to no, make sure it does not cause -set_version
18048 # flags to be left without arguments
18049 need_version=unknown
18054 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18055 shlibpath_var=LIBPATH
18057 # AIX 3 has no versioning support, so we append a major version to the name.
18058 soname_spec='${libname}${release}${shared_ext}$major'
18065 hardcode_into_libs=yes
18066 if test "$host_cpu" = ia64; then
18067 # AIX 5 supports IA64
18068 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18069 shlibpath_var=LD_LIBRARY_PATH
18071 # With GCC up to 2.95.x, collect2 would create an import file
18072 # for dependence libraries. The import file would start with
18073 # the line `#! .'. This would cause the generated library to
18074 # depend on `.', always an invalid library. This was fixed in
18075 # development snapshots of GCC prior to 3.0.
18077 aix4 | aix4.[01] | aix4.[01].*)
18078 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18080 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18083 can_build_shared=no
18087 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18088 # soname into executable. Probably we can add versioning support to
18089 # collect2, so additional links can be useful in future.
18090 if test "$aix_use_runtimelinking" = yes; then
18091 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18092 # instead of lib<name>.a to let people know that these are not
18093 # typical AIX shared libraries.
18094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18096 # We preserve .a as extension for shared libraries through AIX4.2
18097 # and later when we are not doing run time linking.
18098 library_names_spec='${libname}${release}.a $libname.a'
18099 soname_spec='${libname}${release}${shared_ext}$major'
18101 shlibpath_var=LIBPATH
18106 library_names_spec='$libname.ixlibrary $libname.a'
18107 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18108 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'
18112 library_names_spec='${libname}${shared_ext}'
18113 dynamic_linker="$host_os ld.so"
18114 shlibpath_var=LIBRARY_PATH
18120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18121 soname_spec='${libname}${release}${shared_ext}$major'
18122 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18123 shlibpath_var=LD_LIBRARY_PATH
18124 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18125 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18126 # the default ld.so.conf also contains /usr/contrib/lib and
18127 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18128 # libtool to hard-code these into programs
18131 cygwin* | mingw* | pw32*)
18132 version_type=windows
18137 case $GCC,$host_os in
18138 yes,cygwin* | yes,mingw* | yes,pw32*)
18139 library_names_spec='$libname.dll.a'
18140 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18141 postinstall_cmds='base_file=`basename \${file}`~
18142 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18143 dldir=$destdir/`dirname \$dlpath`~
18144 test -d \$dldir || mkdir -p \$dldir~
18145 $install_prog $dir/$dlname \$dldir/$dlname'
18146 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18147 dlpath=$dir/\$dldll~
18149 shlibpath_overrides_runpath=yes
18153 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18154 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18155 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18158 # MinGW DLLs use traditional 'lib' prefix
18159 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18160 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18161 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18162 # It is most probably a Windows format PATH printed by
18163 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18164 # path with ; separators, and with drive letters. We can handle the
18165 # drive letters (cygwin fileutils understands them), so leave them,
18166 # especially as we might pass files found there to a mingw objdump,
18167 # which wouldn't understand a cygwinified path. Ahh.
18168 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18170 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18174 # pw32 DLLs use 'pw' prefix rather than 'lib'
18175 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18181 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18184 dynamic_linker='Win32 ld.exe'
18185 # FIXME: first we should search . and the directory the executable is in
18189 darwin* | rhapsody*)
18190 dynamic_linker="$host_os dyld"
18191 version_type=darwin
18194 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18195 soname_spec='${libname}${release}${major}$shared_ext'
18196 shlibpath_overrides_runpath=yes
18197 shlibpath_var=DYLD_LIBRARY_PATH
18198 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18199 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18200 if test "$GCC" = yes; then
18201 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"`
18203 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18205 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18213 soname_spec='${libname}${release}${shared_ext}$major'
18214 shlibpath_var=LD_LIBRARY_PATH
18225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18226 soname_spec='${libname}${release}${shared_ext}$major'
18227 shlibpath_var=LD_LIBRARY_PATH
18228 shlibpath_overrides_runpath=no
18229 hardcode_into_libs=yes
18230 dynamic_linker='GNU ld.so'
18233 freebsd* | dragonfly*)
18234 # DragonFly does not have aout. When/if they implement a new
18235 # versioning mechanism, adjust this.
18236 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18237 version_type=freebsd-$objformat
18238 case $version_type in
18240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18245 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18249 shlibpath_var=LD_LIBRARY_PATH
18252 shlibpath_overrides_runpath=yes
18254 freebsd3.[01]* | freebsdelf3.[01]*)
18255 shlibpath_overrides_runpath=yes
18256 hardcode_into_libs=yes
18259 shlibpath_overrides_runpath=no
18260 hardcode_into_libs=yes
18269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18270 soname_spec='${libname}${release}${shared_ext}$major'
18271 shlibpath_var=LD_LIBRARY_PATH
18272 hardcode_into_libs=yes
18275 hpux9* | hpux10* | hpux11*)
18276 # Give a soname corresponding to the major version so that dld.sl refuses to
18277 # link against other versions.
18281 case "$host_cpu" in
18284 hardcode_into_libs=yes
18285 dynamic_linker="$host_os dld.so"
18286 shlibpath_var=LD_LIBRARY_PATH
18287 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18289 soname_spec='${libname}${release}${shared_ext}$major'
18290 if test "X$HPUX_IA64_MODE" = X32; then
18291 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18293 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18295 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18299 hardcode_into_libs=yes
18300 dynamic_linker="$host_os dld.sl"
18301 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18302 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18304 soname_spec='${libname}${release}${shared_ext}$major'
18305 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18306 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18310 dynamic_linker="$host_os dld.sl"
18311 shlibpath_var=SHLIB_PATH
18312 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18314 soname_spec='${libname}${release}${shared_ext}$major'
18317 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18318 postinstall_cmds='chmod 555 $lib'
18321 irix5* | irix6* | nonstopux*)
18323 nonstopux*) version_type=nonstopux ;;
18325 if test "$lt_cv_prog_gnu_ld" = yes; then
18333 soname_spec='${libname}${release}${shared_ext}$major'
18334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18336 irix5* | nonstopux*)
18337 libsuff= shlibsuff=
18340 case $LD in # libtool.m4 will add one of these switches to LD
18341 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18342 libsuff= shlibsuff= libmagic=32-bit;;
18343 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18344 libsuff=32 shlibsuff=N32 libmagic=N32;;
18345 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18346 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18347 *) libsuff= shlibsuff= libmagic=never-match;;
18351 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18352 shlibpath_overrides_runpath=no
18353 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18354 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18355 hardcode_into_libs=yes
18358 # No shared lib support for Linux oldld, aout, or coff.
18359 linux*oldld* | linux*aout* | linux*coff*)
18363 # This must be Linux ELF.
18368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18369 soname_spec='${libname}${release}${shared_ext}$major'
18370 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18371 shlibpath_var=LD_LIBRARY_PATH
18372 shlibpath_overrides_runpath=no
18373 # This implies no fast_install, which is unacceptable.
18374 # Some rework will be needed to allow for fast_install
18375 # before this can be enabled.
18376 hardcode_into_libs=yes
18378 # find out which ABI we are using
18380 case "$host_cpu" in
18381 x86_64*|s390x*|powerpc64*)
18382 echo '#line 18382 "configure"' > conftest.$ac_ext
18383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18384 (eval $ac_compile) 2>&5
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); }; then
18388 case `/usr/bin/file conftest.$ac_objext` in
18391 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18399 # Append ld.so.conf contents to the search path
18400 if test -f /etc/ld.so.conf; then
18401 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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18402 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18405 # We used to test for /lib/ld.so.1 and disable shared libraries on
18406 # powerpc, because MkLinux only supported shared libraries with the
18407 # GNU dynamic linker. Since this was broken with cross compilers,
18408 # most powerpc-linux boxes support dynamic linking these days and
18409 # people can always --disable-shared, the test was removed, and we
18410 # assume the GNU/Linux dynamic linker is in use.
18411 dynamic_linker='GNU/Linux ld.so'
18418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18419 soname_spec='${libname}${release}${shared_ext}$major'
18420 shlibpath_var=LD_LIBRARY_PATH
18421 shlibpath_overrides_runpath=no
18422 hardcode_into_libs=yes
18423 dynamic_linker='GNU ld.so'
18430 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18433 dynamic_linker='NetBSD (a.out) ld.so'
18435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18436 soname_spec='${libname}${release}${shared_ext}$major'
18437 dynamic_linker='NetBSD ld.elf_so'
18439 shlibpath_var=LD_LIBRARY_PATH
18440 shlibpath_overrides_runpath=yes
18441 hardcode_into_libs=yes
18446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18447 shlibpath_var=LD_LIBRARY_PATH
18448 shlibpath_overrides_runpath=yes
18455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18456 soname_spec='${libname}${release}${shared_ext}$major'
18457 shlibpath_var=LD_LIBRARY_PATH
18458 shlibpath_overrides_runpath=yes
18465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18467 shlibpath_var=LD_LIBRARY_PATH
18468 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18470 openbsd2.[89] | openbsd2.[89].*)
18471 shlibpath_overrides_runpath=no
18474 shlibpath_overrides_runpath=yes
18478 shlibpath_overrides_runpath=yes
18483 libname_spec='$name'
18486 library_names_spec='$libname${shared_ext} $libname.a'
18487 dynamic_linker='OS/2 ld.exe'
18488 shlibpath_var=LIBPATH
18491 osf3* | osf4* | osf5*)
18495 soname_spec='${libname}${release}${shared_ext}$major'
18496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18497 shlibpath_var=LD_LIBRARY_PATH
18498 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18499 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18504 soname_spec='${libname}${release}${shared_ext}$major'
18505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18506 shlibpath_var=LD_LIBRARY_PATH
18513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18514 soname_spec='${libname}${release}${shared_ext}$major'
18515 shlibpath_var=LD_LIBRARY_PATH
18516 shlibpath_overrides_runpath=yes
18517 hardcode_into_libs=yes
18518 # ldd complains unless libraries are executable
18519 postinstall_cmds='chmod +x $lib'
18524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18525 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18526 shlibpath_var=LD_LIBRARY_PATH
18527 shlibpath_overrides_runpath=yes
18528 if test "$with_gnu_ld" = yes; then
18534 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18537 soname_spec='${libname}${release}${shared_ext}$major'
18538 shlibpath_var=LD_LIBRARY_PATH
18539 case $host_vendor in
18541 shlibpath_overrides_runpath=no
18543 export_dynamic_flag_spec='${wl}-Blargedynsym'
18544 runpath_var=LD_RUN_PATH
18552 shlibpath_overrides_runpath=no
18553 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18559 if test -d /usr/nec ;then
18561 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18562 soname_spec='$libname${shared_ext}.$major'
18563 shlibpath_var=LD_LIBRARY_PATH
18569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18570 soname_spec='${libname}${release}${shared_ext}$major'
18571 shlibpath_var=LD_LIBRARY_PATH
18578 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18579 echo "${ECHO_T}$dynamic_linker" >&6
18580 test "$dynamic_linker" = no && can_build_shared=no
18582 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18583 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18584 hardcode_action_CXX=
18585 if test -n "$hardcode_libdir_flag_spec_CXX" || \
18586 test -n "$runpath_var_CXX" || \
18587 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18589 # We can hardcode non-existant directories.
18590 if test "$hardcode_direct_CXX" != no &&
18591 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18592 # have to relink, otherwise we might link with an installed library
18593 # when we should be linking with a yet-to-be-installed one
18594 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18595 test "$hardcode_minus_L_CXX" != no; then
18596 # Linking always hardcodes the temporary library directory.
18597 hardcode_action_CXX=relink
18599 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18600 hardcode_action_CXX=immediate
18603 # We cannot hardcode anything, or else we can only hardcode existing
18605 hardcode_action_CXX=unsupported
18607 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
18608 echo "${ECHO_T}$hardcode_action_CXX" >&6
18610 if test "$hardcode_action_CXX" = relink; then
18611 # Fast installation is not supported
18612 enable_fast_install=no
18613 elif test "$shlibpath_overrides_runpath" = yes ||
18614 test "$enable_shared" = no; then
18615 # Fast installation is not necessary
18616 enable_fast_install=needless
18621 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18622 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18623 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18624 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18625 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18626 echo "$as_me:$LINENO: result: yes" >&5
18627 echo "${ECHO_T}yes" >&6
18629 # FIXME - insert some real tests, host_os isn't really good enough
18632 if test -n "$STRIP" ; then
18633 striplib="$STRIP -x"
18634 echo "$as_me:$LINENO: result: yes" >&5
18635 echo "${ECHO_T}yes" >&6
18637 echo "$as_me:$LINENO: result: no" >&5
18638 echo "${ECHO_T}no" >&6
18642 echo "$as_me:$LINENO: result: no" >&5
18643 echo "${ECHO_T}no" >&6
18648 if test "x$enable_dlopen" != xyes; then
18649 enable_dlopen=unknown
18650 enable_dlopen_self=unknown
18651 enable_dlopen_self_static=unknown
18658 lt_cv_dlopen="load_add_on"
18660 lt_cv_dlopen_self=yes
18664 lt_cv_dlopen="LoadLibrary"
18669 lt_cv_dlopen="dlopen"
18674 # if libdl is installed we need to link against it
18675 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18676 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18677 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18678 echo $ECHO_N "(cached) $ECHO_C" >&6
18680 ac_check_lib_save_LIBS=$LIBS
18682 cat >conftest.$ac_ext <<_ACEOF
18685 cat confdefs.h >>conftest.$ac_ext
18686 cat >>conftest.$ac_ext <<_ACEOF
18687 /* end confdefs.h. */
18689 /* Override any gcc2 internal prototype to avoid an error. */
18693 /* We use char because int might match the return type of a gcc2
18694 builtin and then its argument prototype would still apply. */
18704 rm -f conftest.$ac_objext conftest$ac_exeext
18705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18706 (eval $ac_link) 2>conftest.er1
18708 grep -v '^ *+' conftest.er1 >conftest.err
18710 cat conftest.err >&5
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); } &&
18713 { ac_try='test -z "$ac_cxx_werror_flag"
18714 || test ! -s conftest.err'
18715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18716 (eval $ac_try) 2>&5
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); }; } &&
18720 { ac_try='test -s conftest$ac_exeext'
18721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18722 (eval $ac_try) 2>&5
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); }; }; then
18726 ac_cv_lib_dl_dlopen=yes
18728 echo "$as_me: failed program was:" >&5
18729 sed 's/^/| /' conftest.$ac_ext >&5
18731 ac_cv_lib_dl_dlopen=no
18733 rm -f conftest.err conftest.$ac_objext \
18734 conftest$ac_exeext conftest.$ac_ext
18735 LIBS=$ac_check_lib_save_LIBS
18737 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18738 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18739 if test $ac_cv_lib_dl_dlopen = yes; then
18740 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18743 lt_cv_dlopen="dyld"
18745 lt_cv_dlopen_self=yes
18752 echo "$as_me:$LINENO: checking for shl_load" >&5
18753 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18754 if test "${ac_cv_func_shl_load+set}" = set; then
18755 echo $ECHO_N "(cached) $ECHO_C" >&6
18757 cat >conftest.$ac_ext <<_ACEOF
18760 cat confdefs.h >>conftest.$ac_ext
18761 cat >>conftest.$ac_ext <<_ACEOF
18762 /* end confdefs.h. */
18763 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18765 #define shl_load innocuous_shl_load
18767 /* System header to define __stub macros and hopefully few prototypes,
18768 which can conflict with char shl_load (); below.
18769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18770 <limits.h> exists even on freestanding compilers. */
18773 # include <limits.h>
18775 # include <assert.h>
18780 /* Override any gcc2 internal prototype to avoid an error. */
18785 /* We use char because int might match the return type of a gcc2
18786 builtin and then its argument prototype would still apply. */
18788 /* The GNU C library defines this for functions which it implements
18789 to always fail with ENOSYS. Some functions are actually named
18790 something starting with __ and the normal name is an alias. */
18791 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18794 char (*f) () = shl_load;
18803 return f != shl_load;
18808 rm -f conftest.$ac_objext conftest$ac_exeext
18809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18810 (eval $ac_link) 2>conftest.er1
18812 grep -v '^ *+' conftest.er1 >conftest.err
18814 cat conftest.err >&5
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); } &&
18817 { ac_try='test -z "$ac_cxx_werror_flag"
18818 || test ! -s conftest.err'
18819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820 (eval $ac_try) 2>&5
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); }; } &&
18824 { ac_try='test -s conftest$ac_exeext'
18825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18826 (eval $ac_try) 2>&5
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); }; }; then
18830 ac_cv_func_shl_load=yes
18832 echo "$as_me: failed program was:" >&5
18833 sed 's/^/| /' conftest.$ac_ext >&5
18835 ac_cv_func_shl_load=no
18837 rm -f conftest.err conftest.$ac_objext \
18838 conftest$ac_exeext conftest.$ac_ext
18840 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18841 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18842 if test $ac_cv_func_shl_load = yes; then
18843 lt_cv_dlopen="shl_load"
18845 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18846 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18847 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18848 echo $ECHO_N "(cached) $ECHO_C" >&6
18850 ac_check_lib_save_LIBS=$LIBS
18852 cat >conftest.$ac_ext <<_ACEOF
18855 cat confdefs.h >>conftest.$ac_ext
18856 cat >>conftest.$ac_ext <<_ACEOF
18857 /* end confdefs.h. */
18859 /* Override any gcc2 internal prototype to avoid an error. */
18863 /* We use char because int might match the return type of a gcc2
18864 builtin and then its argument prototype would still apply. */
18874 rm -f conftest.$ac_objext conftest$ac_exeext
18875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18876 (eval $ac_link) 2>conftest.er1
18878 grep -v '^ *+' conftest.er1 >conftest.err
18880 cat conftest.err >&5
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); } &&
18883 { ac_try='test -z "$ac_cxx_werror_flag"
18884 || test ! -s conftest.err'
18885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18886 (eval $ac_try) 2>&5
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); }; } &&
18890 { ac_try='test -s conftest$ac_exeext'
18891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18892 (eval $ac_try) 2>&5
18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895 (exit $ac_status); }; }; then
18896 ac_cv_lib_dld_shl_load=yes
18898 echo "$as_me: failed program was:" >&5
18899 sed 's/^/| /' conftest.$ac_ext >&5
18901 ac_cv_lib_dld_shl_load=no
18903 rm -f conftest.err conftest.$ac_objext \
18904 conftest$ac_exeext conftest.$ac_ext
18905 LIBS=$ac_check_lib_save_LIBS
18907 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18908 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18909 if test $ac_cv_lib_dld_shl_load = yes; then
18910 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18912 echo "$as_me:$LINENO: checking for dlopen" >&5
18913 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18914 if test "${ac_cv_func_dlopen+set}" = set; then
18915 echo $ECHO_N "(cached) $ECHO_C" >&6
18917 cat >conftest.$ac_ext <<_ACEOF
18920 cat confdefs.h >>conftest.$ac_ext
18921 cat >>conftest.$ac_ext <<_ACEOF
18922 /* end confdefs.h. */
18923 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18925 #define dlopen innocuous_dlopen
18927 /* System header to define __stub macros and hopefully few prototypes,
18928 which can conflict with char dlopen (); below.
18929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18930 <limits.h> exists even on freestanding compilers. */
18933 # include <limits.h>
18935 # include <assert.h>
18940 /* Override any gcc2 internal prototype to avoid an error. */
18945 /* We use char because int might match the return type of a gcc2
18946 builtin and then its argument prototype would still apply. */
18948 /* The GNU C library defines this for functions which it implements
18949 to always fail with ENOSYS. Some functions are actually named
18950 something starting with __ and the normal name is an alias. */
18951 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18954 char (*f) () = dlopen;
18963 return f != dlopen;
18968 rm -f conftest.$ac_objext conftest$ac_exeext
18969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18970 (eval $ac_link) 2>conftest.er1
18972 grep -v '^ *+' conftest.er1 >conftest.err
18974 cat conftest.err >&5
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); } &&
18977 { ac_try='test -z "$ac_cxx_werror_flag"
18978 || test ! -s conftest.err'
18979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18980 (eval $ac_try) 2>&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); }; } &&
18984 { ac_try='test -s conftest$ac_exeext'
18985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18986 (eval $ac_try) 2>&5
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); }; }; then
18990 ac_cv_func_dlopen=yes
18992 echo "$as_me: failed program was:" >&5
18993 sed 's/^/| /' conftest.$ac_ext >&5
18995 ac_cv_func_dlopen=no
18997 rm -f conftest.err conftest.$ac_objext \
18998 conftest$ac_exeext conftest.$ac_ext
19000 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19001 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19002 if test $ac_cv_func_dlopen = yes; then
19003 lt_cv_dlopen="dlopen"
19005 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19006 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19007 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19008 echo $ECHO_N "(cached) $ECHO_C" >&6
19010 ac_check_lib_save_LIBS=$LIBS
19012 cat >conftest.$ac_ext <<_ACEOF
19015 cat confdefs.h >>conftest.$ac_ext
19016 cat >>conftest.$ac_ext <<_ACEOF
19017 /* end confdefs.h. */
19019 /* Override any gcc2 internal prototype to avoid an error. */
19023 /* We use char because int might match the return type of a gcc2
19024 builtin and then its argument prototype would still apply. */
19034 rm -f conftest.$ac_objext conftest$ac_exeext
19035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19036 (eval $ac_link) 2>conftest.er1
19038 grep -v '^ *+' conftest.er1 >conftest.err
19040 cat conftest.err >&5
19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042 (exit $ac_status); } &&
19043 { ac_try='test -z "$ac_cxx_werror_flag"
19044 || test ! -s conftest.err'
19045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19046 (eval $ac_try) 2>&5
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); }; } &&
19050 { ac_try='test -s conftest$ac_exeext'
19051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19052 (eval $ac_try) 2>&5
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); }; }; then
19056 ac_cv_lib_dl_dlopen=yes
19058 echo "$as_me: failed program was:" >&5
19059 sed 's/^/| /' conftest.$ac_ext >&5
19061 ac_cv_lib_dl_dlopen=no
19063 rm -f conftest.err conftest.$ac_objext \
19064 conftest$ac_exeext conftest.$ac_ext
19065 LIBS=$ac_check_lib_save_LIBS
19067 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19068 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19069 if test $ac_cv_lib_dl_dlopen = yes; then
19070 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19072 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19073 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19074 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19075 echo $ECHO_N "(cached) $ECHO_C" >&6
19077 ac_check_lib_save_LIBS=$LIBS
19078 LIBS="-lsvld $LIBS"
19079 cat >conftest.$ac_ext <<_ACEOF
19082 cat confdefs.h >>conftest.$ac_ext
19083 cat >>conftest.$ac_ext <<_ACEOF
19084 /* end confdefs.h. */
19086 /* Override any gcc2 internal prototype to avoid an error. */
19090 /* We use char because int might match the return type of a gcc2
19091 builtin and then its argument prototype would still apply. */
19101 rm -f conftest.$ac_objext conftest$ac_exeext
19102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19103 (eval $ac_link) 2>conftest.er1
19105 grep -v '^ *+' conftest.er1 >conftest.err
19107 cat conftest.err >&5
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); } &&
19110 { ac_try='test -z "$ac_cxx_werror_flag"
19111 || test ! -s conftest.err'
19112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19113 (eval $ac_try) 2>&5
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); }; } &&
19117 { ac_try='test -s conftest$ac_exeext'
19118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19119 (eval $ac_try) 2>&5
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); }; }; then
19123 ac_cv_lib_svld_dlopen=yes
19125 echo "$as_me: failed program was:" >&5
19126 sed 's/^/| /' conftest.$ac_ext >&5
19128 ac_cv_lib_svld_dlopen=no
19130 rm -f conftest.err conftest.$ac_objext \
19131 conftest$ac_exeext conftest.$ac_ext
19132 LIBS=$ac_check_lib_save_LIBS
19134 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19135 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19136 if test $ac_cv_lib_svld_dlopen = yes; then
19137 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19139 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19140 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19141 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19142 echo $ECHO_N "(cached) $ECHO_C" >&6
19144 ac_check_lib_save_LIBS=$LIBS
19146 cat >conftest.$ac_ext <<_ACEOF
19149 cat confdefs.h >>conftest.$ac_ext
19150 cat >>conftest.$ac_ext <<_ACEOF
19151 /* end confdefs.h. */
19153 /* Override any gcc2 internal prototype to avoid an error. */
19157 /* We use char because int might match the return type of a gcc2
19158 builtin and then its argument prototype would still apply. */
19168 rm -f conftest.$ac_objext conftest$ac_exeext
19169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19170 (eval $ac_link) 2>conftest.er1
19172 grep -v '^ *+' conftest.er1 >conftest.err
19174 cat conftest.err >&5
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); } &&
19177 { ac_try='test -z "$ac_cxx_werror_flag"
19178 || test ! -s conftest.err'
19179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19180 (eval $ac_try) 2>&5
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); }; } &&
19184 { ac_try='test -s conftest$ac_exeext'
19185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19186 (eval $ac_try) 2>&5
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); }; }; then
19190 ac_cv_lib_dld_dld_link=yes
19192 echo "$as_me: failed program was:" >&5
19193 sed 's/^/| /' conftest.$ac_ext >&5
19195 ac_cv_lib_dld_dld_link=no
19197 rm -f conftest.err conftest.$ac_objext \
19198 conftest$ac_exeext conftest.$ac_ext
19199 LIBS=$ac_check_lib_save_LIBS
19201 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19202 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19203 if test $ac_cv_lib_dld_dld_link = yes; then
19204 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19225 if test "x$lt_cv_dlopen" != xno; then
19231 case $lt_cv_dlopen in
19233 save_CPPFLAGS="$CPPFLAGS"
19234 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19236 save_LDFLAGS="$LDFLAGS"
19237 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19240 LIBS="$lt_cv_dlopen_libs $LIBS"
19242 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19243 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19244 if test "${lt_cv_dlopen_self+set}" = set; then
19245 echo $ECHO_N "(cached) $ECHO_C" >&6
19247 if test "$cross_compiling" = yes; then :
19248 lt_cv_dlopen_self=cross
19250 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19251 lt_status=$lt_dlunknown
19252 cat > conftest.$ac_ext <<EOF
19253 #line 19253 "configure"
19254 #include "confdefs.h"
19263 # define LT_DLGLOBAL RTLD_GLOBAL
19266 # define LT_DLGLOBAL DL_GLOBAL
19268 # define LT_DLGLOBAL 0
19272 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19273 find out it does not work in some platform. */
19274 #ifndef LT_DLLAZY_OR_NOW
19276 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19279 # define LT_DLLAZY_OR_NOW DL_LAZY
19282 # define LT_DLLAZY_OR_NOW RTLD_NOW
19285 # define LT_DLLAZY_OR_NOW DL_NOW
19287 # define LT_DLLAZY_OR_NOW 0
19295 extern "C" void exit (int);
19298 void fnord() { int i=42;}
19301 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19302 int status = $lt_dlunknown;
19306 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19307 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19308 /* dlclose (self); */
19314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19315 (eval $ac_link) 2>&5
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19319 (./conftest; exit; ) 2>/dev/null
19321 case x$lt_status in
19322 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19323 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19324 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19327 # compilation failed
19328 lt_cv_dlopen_self=no
19335 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19336 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19338 if test "x$lt_cv_dlopen_self" = xyes; then
19339 LDFLAGS="$LDFLAGS $link_static_flag"
19340 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19341 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19342 if test "${lt_cv_dlopen_self_static+set}" = set; then
19343 echo $ECHO_N "(cached) $ECHO_C" >&6
19345 if test "$cross_compiling" = yes; then :
19346 lt_cv_dlopen_self_static=cross
19348 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19349 lt_status=$lt_dlunknown
19350 cat > conftest.$ac_ext <<EOF
19351 #line 19351 "configure"
19352 #include "confdefs.h"
19361 # define LT_DLGLOBAL RTLD_GLOBAL
19364 # define LT_DLGLOBAL DL_GLOBAL
19366 # define LT_DLGLOBAL 0
19370 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19371 find out it does not work in some platform. */
19372 #ifndef LT_DLLAZY_OR_NOW
19374 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19377 # define LT_DLLAZY_OR_NOW DL_LAZY
19380 # define LT_DLLAZY_OR_NOW RTLD_NOW
19383 # define LT_DLLAZY_OR_NOW DL_NOW
19385 # define LT_DLLAZY_OR_NOW 0
19393 extern "C" void exit (int);
19396 void fnord() { int i=42;}
19399 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19400 int status = $lt_dlunknown;
19404 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19405 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19406 /* dlclose (self); */
19412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19413 (eval $ac_link) 2>&5
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19417 (./conftest; exit; ) 2>/dev/null
19419 case x$lt_status in
19420 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19421 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19422 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19425 # compilation failed
19426 lt_cv_dlopen_self_static=no
19433 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19434 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19437 CPPFLAGS="$save_CPPFLAGS"
19438 LDFLAGS="$save_LDFLAGS"
19443 case $lt_cv_dlopen_self in
19444 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19445 *) enable_dlopen_self=unknown ;;
19448 case $lt_cv_dlopen_self_static in
19449 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19450 *) enable_dlopen_self_static=unknown ;;
19455 # The else clause should only fire when bootstrapping the
19456 # libtool distribution, otherwise you forgot to ship ltmain.sh
19457 # with your package, and you will get complaints that there are
19458 # no rules to generate ltmain.sh.
19459 if test -f "$ltmain"; then
19460 # See if we are running on zsh, and set the options which allow our commands through
19461 # without removal of \ escapes.
19462 if test -n "${ZSH_VERSION+set}" ; then
19463 setopt NO_GLOB_SUBST
19465 # Now quote all the things that may contain metacharacters while being
19466 # careful not to overquote the AC_SUBSTed values. We take copies of the
19467 # variables and quote the copies for generation of the libtool script.
19468 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19470 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19471 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19472 deplibs_check_method reload_flag reload_cmds need_locks \
19473 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19474 lt_cv_sys_global_symbol_to_c_name_address \
19475 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19476 old_postinstall_cmds old_postuninstall_cmds \
19480 lt_prog_compiler_wl_CXX \
19481 lt_prog_compiler_pic_CXX \
19482 lt_prog_compiler_static_CXX \
19483 lt_prog_compiler_no_builtin_flag_CXX \
19484 export_dynamic_flag_spec_CXX \
19485 thread_safe_flag_spec_CXX \
19486 whole_archive_flag_spec_CXX \
19487 enable_shared_with_static_runtimes_CXX \
19488 old_archive_cmds_CXX \
19489 old_archive_from_new_cmds_CXX \
19490 predep_objects_CXX \
19491 postdep_objects_CXX \
19494 compiler_lib_search_path_CXX \
19496 archive_expsym_cmds_CXX \
19497 postinstall_cmds_CXX \
19498 postuninstall_cmds_CXX \
19499 old_archive_from_expsyms_cmds_CXX \
19500 allow_undefined_flag_CXX \
19501 no_undefined_flag_CXX \
19502 export_symbols_cmds_CXX \
19503 hardcode_libdir_flag_spec_CXX \
19504 hardcode_libdir_flag_spec_ld_CXX \
19505 hardcode_libdir_separator_CXX \
19506 hardcode_automatic_CXX \
19508 module_expsym_cmds_CXX \
19509 lt_cv_prog_compiler_c_o_CXX \
19510 exclude_expsyms_CXX \
19511 include_expsyms_CXX; do
19514 old_archive_cmds_CXX | \
19515 old_archive_from_new_cmds_CXX | \
19516 archive_cmds_CXX | \
19517 archive_expsym_cmds_CXX | \
19518 module_cmds_CXX | \
19519 module_expsym_cmds_CXX | \
19520 old_archive_from_expsyms_cmds_CXX | \
19521 export_symbols_cmds_CXX | \
19522 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19523 postinstall_cmds | postuninstall_cmds | \
19524 old_postinstall_cmds | old_postuninstall_cmds | \
19525 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19526 # Double-quote double-evaled strings.
19527 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19530 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19536 *'\$0 --fallback-echo"')
19537 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19543 cat <<__EOF__ >> "$cfgfile"
19544 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19546 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19548 # Shell to use when invoking shell scripts.
19551 # Whether or not to build shared libraries.
19552 build_libtool_libs=$enable_shared
19554 # Whether or not to build static libraries.
19555 build_old_libs=$enable_static
19557 # Whether or not to add -lc for building shared libraries.
19558 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19560 # Whether or not to disallow shared libs when runtime libs are static
19561 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19563 # Whether or not to optimize for fast installation.
19564 fast_install=$enable_fast_install
19567 host_alias=$host_alias
19571 # The build system.
19572 build_alias=$build_alias
19576 # An echo program that does not interpret backslashes.
19581 AR_FLAGS=$lt_AR_FLAGS
19586 # A language-specific compiler.
19587 CC=$lt_compiler_CXX
19589 # Is the compiler the GNU C compiler?
19595 # The linker used to build libraries.
19598 # Whether we need hard or soft links.
19601 # A BSD-compatible nm program.
19604 # A symbol stripping program
19607 # Used to examine libraries when file_magic_cmd begins "file"
19608 MAGIC_CMD=$MAGIC_CMD
19610 # Used on cygwin: DLL creation program.
19613 # Used on cygwin: object dumper.
19616 # Used on cygwin: assembler.
19619 # The name of the directory that contains temporary libtool files.
19622 # How to create reloadable object files.
19623 reload_flag=$lt_reload_flag
19624 reload_cmds=$lt_reload_cmds
19626 # How to pass a linker flag through the compiler.
19627 wl=$lt_lt_prog_compiler_wl_CXX
19629 # Object file suffix (normally "o").
19630 objext="$ac_objext"
19632 # Old archive suffix (normally "a").
19635 # Shared library suffix (normally ".so").
19636 shrext_cmds='$shrext_cmds'
19638 # Executable file suffix (normally "").
19641 # Additional compiler flags for building library objects.
19642 pic_flag=$lt_lt_prog_compiler_pic_CXX
19645 # What is the maximum length of a command?
19646 max_cmd_len=$lt_cv_sys_max_cmd_len
19648 # Does compiler simultaneously support -c and -o options?
19649 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19651 # Must we lock files when doing compilation?
19652 need_locks=$lt_need_locks
19654 # Do we need the lib prefix for modules?
19655 need_lib_prefix=$need_lib_prefix
19657 # Do we need a version for libraries?
19658 need_version=$need_version
19660 # Whether dlopen is supported.
19661 dlopen_support=$enable_dlopen
19663 # Whether dlopen of programs is supported.
19664 dlopen_self=$enable_dlopen_self
19666 # Whether dlopen of statically linked programs is supported.
19667 dlopen_self_static=$enable_dlopen_self_static
19669 # Compiler flag to prevent dynamic linking.
19670 link_static_flag=$lt_lt_prog_compiler_static_CXX
19672 # Compiler flag to turn off builtin functions.
19673 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19675 # Compiler flag to allow reflexive dlopens.
19676 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19678 # Compiler flag to generate shared objects directly from archives.
19679 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19681 # Compiler flag to generate thread-safe objects.
19682 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19684 # Library versioning type.
19685 version_type=$version_type
19687 # Format of library name prefix.
19688 libname_spec=$lt_libname_spec
19690 # List of archive names. First name is the real one, the rest are links.
19691 # The last name is the one that the linker finds with -lNAME.
19692 library_names_spec=$lt_library_names_spec
19694 # The coded name of the library, if different from the real name.
19695 soname_spec=$lt_soname_spec
19697 # Commands used to build and install an old-style archive.
19699 old_archive_cmds=$lt_old_archive_cmds_CXX
19700 old_postinstall_cmds=$lt_old_postinstall_cmds
19701 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19703 # Create an old-style archive from a shared archive.
19704 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19706 # Create a temporary old-style archive to link instead of a shared archive.
19707 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19709 # Commands used to build and install a shared archive.
19710 archive_cmds=$lt_archive_cmds_CXX
19711 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19712 postinstall_cmds=$lt_postinstall_cmds
19713 postuninstall_cmds=$lt_postuninstall_cmds
19715 # Commands used to build a loadable module (assumed same as above if empty)
19716 module_cmds=$lt_module_cmds_CXX
19717 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19719 # Commands to strip libraries.
19720 old_striplib=$lt_old_striplib
19721 striplib=$lt_striplib
19723 # Dependencies to place before the objects being linked to create a
19725 predep_objects=$lt_predep_objects_CXX
19727 # Dependencies to place after the objects being linked to create a
19729 postdep_objects=$lt_postdep_objects_CXX
19731 # Dependencies to place before the objects being linked to create a
19733 predeps=$lt_predeps_CXX
19735 # Dependencies to place after the objects being linked to create a
19737 postdeps=$lt_postdeps_CXX
19739 # The library search path used internally by the compiler when linking
19740 # a shared library.
19741 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19743 # Method to check whether dependent libraries are shared objects.
19744 deplibs_check_method=$lt_deplibs_check_method
19746 # Command to use when deplibs_check_method == file_magic.
19747 file_magic_cmd=$lt_file_magic_cmd
19749 # Flag that allows shared libraries with undefined symbols to be built.
19750 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19752 # Flag that forces no undefined symbols.
19753 no_undefined_flag=$lt_no_undefined_flag_CXX
19755 # Commands used to finish a libtool library installation in a directory.
19756 finish_cmds=$lt_finish_cmds
19758 # Same as above, but a single script fragment to be evaled but not shown.
19759 finish_eval=$lt_finish_eval
19761 # Take the output of nm and produce a listing of raw symbols and C names.
19762 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19764 # Transform the output of nm in a proper C declaration
19765 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19767 # Transform the output of nm in a C name address pair
19768 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19770 # This is the shared library runtime path variable.
19771 runpath_var=$runpath_var
19773 # This is the shared library path variable.
19774 shlibpath_var=$shlibpath_var
19776 # Is shlibpath searched before the hard-coded library search path?
19777 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19779 # How to hardcode a shared library path into an executable.
19780 hardcode_action=$hardcode_action_CXX
19782 # Whether we should hardcode library paths into libraries.
19783 hardcode_into_libs=$hardcode_into_libs
19785 # Flag to hardcode \$libdir into a binary during linking.
19786 # This must work even if \$libdir does not exist.
19787 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19789 # If ld is used when linking, flag to hardcode \$libdir into
19790 # a binary during linking. This must work even if \$libdir does
19792 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19794 # Whether we need a single -rpath flag with a separated argument.
19795 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19797 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19798 # resulting binary.
19799 hardcode_direct=$hardcode_direct_CXX
19801 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19802 # resulting binary.
19803 hardcode_minus_L=$hardcode_minus_L_CXX
19805 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19806 # the resulting binary.
19807 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19809 # Set to yes if building a shared library automatically hardcodes DIR into the library
19810 # and all subsequent libraries and executables linked against it.
19811 hardcode_automatic=$hardcode_automatic_CXX
19813 # Variables whose values should be saved in libtool wrapper scripts and
19814 # restored at relink time.
19815 variables_saved_for_relink="$variables_saved_for_relink"
19817 # Whether libtool must link a program against all its dependency libraries.
19818 link_all_deplibs=$link_all_deplibs_CXX
19820 # Compile-time system search path for libraries
19821 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19823 # Run-time system search path for libraries
19824 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19826 # Fix the shell variable \$srcfile for the compiler.
19827 fix_srcfile_path="$fix_srcfile_path_CXX"
19829 # Set to yes if exported symbols are required.
19830 always_export_symbols=$always_export_symbols_CXX
19832 # The commands to list exported symbols.
19833 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19835 # The commands to extract the exported symbol list from a shared archive.
19836 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19838 # Symbols that should not be listed in the preloaded symbols.
19839 exclude_expsyms=$lt_exclude_expsyms_CXX
19841 # Symbols that must always be exported.
19842 include_expsyms=$lt_include_expsyms_CXX
19844 # ### END LIBTOOL TAG CONFIG: $tagname
19850 # If there is no Makefile yet, we rely on a make rule to execute
19851 # `config.status --recheck' to rerun these tests and create the
19852 # libtool script then.
19853 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19854 if test -f "$ltmain_in"; then
19855 test -f Makefile && make "$ltmain"
19861 ac_cpp='$CPP $CPPFLAGS'
19862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19870 with_gnu_ldcxx=$with_gnu_ld
19871 with_gnu_ld=$lt_save_with_gnu_ld
19872 lt_cv_path_LDCXX=$lt_cv_path_LD
19873 lt_cv_path_LD=$lt_save_path_LD
19874 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19875 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19883 if test -n "$F77" && test "X$F77" != "Xno"; then
19886 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19887 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19888 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19891 archive_cmds_need_lc_F77=no
19892 allow_undefined_flag_F77=
19893 always_export_symbols_F77=no
19894 archive_expsym_cmds_F77=
19895 export_dynamic_flag_spec_F77=
19896 hardcode_direct_F77=no
19897 hardcode_libdir_flag_spec_F77=
19898 hardcode_libdir_flag_spec_ld_F77=
19899 hardcode_libdir_separator_F77=
19900 hardcode_minus_L_F77=no
19901 hardcode_automatic_F77=no
19903 module_expsym_cmds_F77=
19904 link_all_deplibs_F77=unknown
19905 old_archive_cmds_F77=$old_archive_cmds
19906 no_undefined_flag_F77=
19907 whole_archive_flag_spec_F77=
19908 enable_shared_with_static_runtimes_F77=no
19910 # Source file extension for f77 test sources.
19913 # Object file extension for compiled f77 test sources.
19917 # Code to be used in simple compile tests
19918 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
19920 # Code to be used in simple link tests
19921 lt_simple_link_test_code=" program t\n end\n"
19923 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19925 # If no C compiler was specified, use CC.
19928 # Allow CC to be a program name with arguments.
19932 # save warnings/boilerplate of simple test code
19933 ac_outfile=conftest.$ac_objext
19934 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19935 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19936 _lt_compiler_boilerplate=`cat conftest.err`
19939 ac_outfile=conftest.$ac_objext
19940 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19941 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19942 _lt_linker_boilerplate=`cat conftest.err`
19946 # Allow CC to be a program name with arguments.
19951 for cc_temp in $compiler""; do
19953 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19954 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19959 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19962 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19963 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19964 echo "$as_me:$LINENO: result: $can_build_shared" >&5
19965 echo "${ECHO_T}$can_build_shared" >&6
19967 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19968 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19969 test "$can_build_shared" = "no" && enable_shared=no
19971 # On AIX, shared libraries and static libraries use the same namespace, and
19972 # are all built from PIC.
19975 test "$enable_shared" = yes && enable_static=no
19976 if test -n "$RANLIB"; then
19977 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19978 postinstall_cmds='$RANLIB $lib'
19982 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19983 test "$enable_shared" = yes && enable_static=no
19987 echo "$as_me:$LINENO: result: $enable_shared" >&5
19988 echo "${ECHO_T}$enable_shared" >&6
19990 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19991 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19992 # Make sure either enable_shared or enable_static is yes.
19993 test "$enable_shared" = yes || enable_static=yes
19994 echo "$as_me:$LINENO: result: $enable_static" >&5
19995 echo "${ECHO_T}$enable_static" >&6
19997 test "$ld_shlibs_F77" = no && can_build_shared=no
20002 lt_prog_compiler_wl_F77=
20003 lt_prog_compiler_pic_F77=
20004 lt_prog_compiler_static_F77=
20006 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20007 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20009 if test "$GCC" = yes; then
20010 lt_prog_compiler_wl_F77='-Wl,'
20011 lt_prog_compiler_static_F77='-static'
20015 # All AIX code is PIC.
20016 if test "$host_cpu" = ia64; then
20017 # AIX 5 now supports IA64 processor
20018 lt_prog_compiler_static_F77='-Bstatic'
20023 # FIXME: we need at least 68020 code to build shared libraries, but
20024 # adding the `-m68020' flag to GCC prevents building anything better,
20026 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20029 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20030 # PIC is the default for these OSes.
20033 mingw* | pw32* | os2*)
20034 # This hack is so that the source file can tell whether it is being
20035 # built for inclusion in a dll (and should export symbols for example).
20036 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20039 darwin* | rhapsody*)
20040 # PIC is the default on this platform
20041 # Common symbols not allowed in MH_DYLIB files
20042 lt_prog_compiler_pic_F77='-fno-common'
20046 # Just because we use GCC doesn't mean we suddenly get shared libraries
20047 # on systems that don't support them.
20048 lt_prog_compiler_can_build_shared_F77=no
20053 if test -d /usr/nec; then
20054 lt_prog_compiler_pic_F77=-Kconform_pic
20059 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20060 # not for PA HP-UX.
20061 case "$host_cpu" in
20066 lt_prog_compiler_pic_F77='-fPIC'
20072 lt_prog_compiler_pic_F77='-fPIC'
20076 # PORTME Check for flag to pass linker flags through the system compiler.
20079 lt_prog_compiler_wl_F77='-Wl,'
20080 if test "$host_cpu" = ia64; then
20081 # AIX 5 now supports IA64 processor
20082 lt_prog_compiler_static_F77='-Bstatic'
20084 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20088 # PIC is the default on this platform
20089 # Common symbols not allowed in MH_DYLIB files
20090 case $cc_basename in
20092 lt_prog_compiler_pic_F77='-qnocommon'
20093 lt_prog_compiler_wl_F77='-Wl,'
20098 mingw* | pw32* | os2*)
20099 # This hack is so that the source file can tell whether it is being
20100 # built for inclusion in a dll (and should export symbols for example).
20101 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20104 hpux9* | hpux10* | hpux11*)
20105 lt_prog_compiler_wl_F77='-Wl,'
20106 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20107 # not for PA HP-UX.
20108 case "$host_cpu" in
20113 lt_prog_compiler_pic_F77='+Z'
20116 # Is there a better lt_prog_compiler_static that works with the bundled CC?
20117 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20120 irix5* | irix6* | nonstopux*)
20121 lt_prog_compiler_wl_F77='-Wl,'
20122 # PIC (with -KPIC) is the default.
20123 lt_prog_compiler_static_F77='-non_shared'
20127 lt_prog_compiler_pic_F77='-KPIC'
20128 lt_prog_compiler_static_F77='-Bstatic'
20132 case $cc_basename in
20134 lt_prog_compiler_wl_F77='-Wl,'
20135 lt_prog_compiler_pic_F77='-KPIC'
20136 lt_prog_compiler_static_F77='-static'
20138 pgcc* | pgf77* | pgf90*)
20139 # Portland Group compilers (*not* the Pentium gcc compiler,
20140 # which looks to be a dead project)
20141 lt_prog_compiler_wl_F77='-Wl,'
20142 lt_prog_compiler_pic_F77='-fpic'
20143 lt_prog_compiler_static_F77='-static'
20146 lt_prog_compiler_wl_F77='-Wl,'
20147 # All Alpha code is PIC.
20148 lt_prog_compiler_static_F77='-non_shared'
20153 osf3* | osf4* | osf5*)
20154 lt_prog_compiler_wl_F77='-Wl,'
20155 # All OSF/1 code is PIC.
20156 lt_prog_compiler_static_F77='-non_shared'
20160 lt_prog_compiler_pic_F77='-Kpic'
20161 lt_prog_compiler_static_F77='-dn'
20165 lt_prog_compiler_pic_F77='-KPIC'
20166 lt_prog_compiler_static_F77='-Bstatic'
20167 case $cc_basename in
20168 f77* | f90* | f95*)
20169 lt_prog_compiler_wl_F77='-Qoption ld ';;
20171 lt_prog_compiler_wl_F77='-Wl,';;
20176 lt_prog_compiler_wl_F77='-Qoption ld '
20177 lt_prog_compiler_pic_F77='-PIC'
20178 lt_prog_compiler_static_F77='-Bstatic'
20181 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20182 lt_prog_compiler_wl_F77='-Wl,'
20183 lt_prog_compiler_pic_F77='-KPIC'
20184 lt_prog_compiler_static_F77='-Bstatic'
20188 if test -d /usr/nec ;then
20189 lt_prog_compiler_pic_F77='-Kconform_pic'
20190 lt_prog_compiler_static_F77='-Bstatic'
20195 lt_prog_compiler_wl_F77='-Wl,'
20196 lt_prog_compiler_can_build_shared_F77=no
20200 lt_prog_compiler_pic_F77='-pic'
20201 lt_prog_compiler_static_F77='-Bstatic'
20205 lt_prog_compiler_can_build_shared_F77=no
20210 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20211 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
20214 # Check to make sure the PIC flag actually works.
20216 if test -n "$lt_prog_compiler_pic_F77"; then
20218 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20219 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
20220 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
20221 echo $ECHO_N "(cached) $ECHO_C" >&6
20223 lt_prog_compiler_pic_works_F77=no
20224 ac_outfile=conftest.$ac_objext
20225 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20226 lt_compiler_flag="$lt_prog_compiler_pic_F77"
20227 # Insert the option either (1) after the last *FLAGS variable, or
20228 # (2) before a word containing "conftest.", or (3) at the end.
20229 # Note that $ac_compile itself does not contain backslashes and begins
20230 # with a dollar sign (not a hyphen), so the echo should work correctly.
20231 # The option is referenced via a variable to avoid confusing sed.
20232 lt_compile=`echo "$ac_compile" | $SED \
20233 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20234 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20235 -e 's:$: $lt_compiler_flag:'`
20236 (eval echo "\"\$as_me:20236: $lt_compile\"" >&5)
20237 (eval "$lt_compile" 2>conftest.err)
20239 cat conftest.err >&5
20240 echo "$as_me:20240: \$? = $ac_status" >&5
20241 if (exit $ac_status) && test -s "$ac_outfile"; then
20242 # The compiler can only warn and ignore the option if not recognized
20243 # So say no if there are warnings other than the usual output.
20244 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
20245 $SED '/^$/d' conftest.err >conftest.er2
20246 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
20247 lt_prog_compiler_pic_works_F77=yes
20253 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
20254 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
20256 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
20257 case $lt_prog_compiler_pic_F77 in
20259 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
20262 lt_prog_compiler_pic_F77=
20263 lt_prog_compiler_can_build_shared_F77=no
20268 # For platforms which do not support PIC, -DPIC is meaningless:
20270 lt_prog_compiler_pic_F77=
20273 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
20277 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20278 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
20279 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20280 echo $ECHO_N "(cached) $ECHO_C" >&6
20282 lt_cv_prog_compiler_c_o_F77=no
20283 $rm -r conftest 2>/dev/null
20287 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20289 lt_compiler_flag="-o out/conftest2.$ac_objext"
20290 # Insert the option either (1) after the last *FLAGS variable, or
20291 # (2) before a word containing "conftest.", or (3) at the end.
20292 # Note that $ac_compile itself does not contain backslashes and begins
20293 # with a dollar sign (not a hyphen), so the echo should work correctly.
20294 lt_compile=`echo "$ac_compile" | $SED \
20295 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20296 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20297 -e 's:$: $lt_compiler_flag:'`
20298 (eval echo "\"\$as_me:20298: $lt_compile\"" >&5)
20299 (eval "$lt_compile" 2>out/conftest.err)
20301 cat out/conftest.err >&5
20302 echo "$as_me:20302: \$? = $ac_status" >&5
20303 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20305 # The compiler can only warn and ignore the option if not recognized
20306 # So say no if there are warnings
20307 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
20308 $SED '/^$/d' out/conftest.err >out/conftest.er2
20309 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20310 lt_cv_prog_compiler_c_o_F77=yes
20315 # SGI C++ compiler will create directory out/ii_files/ for
20316 # template instantiation
20317 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20318 $rm out/* && rmdir out
20324 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20325 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
20328 hard_links="nottested"
20329 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20330 # do not overwrite the value of need_locks provided by the user
20331 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20332 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
20335 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20337 ln conftest.a conftest.b 2>&5 || hard_links=no
20338 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20339 echo "$as_me:$LINENO: result: $hard_links" >&5
20340 echo "${ECHO_T}$hard_links" >&6
20341 if test "$hard_links" = no; then
20342 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20343 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20350 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20351 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
20354 allow_undefined_flag_F77=
20355 enable_shared_with_static_runtimes_F77=no
20357 archive_expsym_cmds_F77=
20358 old_archive_From_new_cmds_F77=
20359 old_archive_from_expsyms_cmds_F77=
20360 export_dynamic_flag_spec_F77=
20361 whole_archive_flag_spec_F77=
20362 thread_safe_flag_spec_F77=
20363 hardcode_libdir_flag_spec_F77=
20364 hardcode_libdir_flag_spec_ld_F77=
20365 hardcode_libdir_separator_F77=
20366 hardcode_direct_F77=no
20367 hardcode_minus_L_F77=no
20368 hardcode_shlibpath_var_F77=unsupported
20369 link_all_deplibs_F77=unknown
20370 hardcode_automatic_F77=no
20372 module_expsym_cmds_F77=
20373 always_export_symbols_F77=no
20374 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20375 # include_expsyms should be a list of space-separated symbols to be *always*
20376 # included in the symbol list
20377 include_expsyms_F77=
20378 # exclude_expsyms can be an extended regexp of symbols to exclude
20379 # it will be wrapped by ` (' and `)$', so one must not match beginning or
20380 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20381 # as well as any symbol that contains `d'.
20382 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20383 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20384 # platforms (ab)use it in PIC code, but their linkers get confused if
20385 # the symbol is explicitly referenced. Since portable code cannot
20386 # rely on this symbol name, it's probably fine to never include it in
20387 # preloaded symbol tables.
20388 extract_expsyms_cmds=
20389 # Just being paranoid about ensuring that cc_basename is set.
20390 for cc_temp in $compiler""; do
20392 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20393 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20398 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20401 cygwin* | mingw* | pw32*)
20402 # FIXME: the MSVC++ port hasn't been tested in a loooong time
20403 # When not using gcc, we currently assume that we are using
20404 # Microsoft Visual C++.
20405 if test "$GCC" != yes; then
20415 if test "$with_gnu_ld" = yes; then
20416 # If archive_cmds runs LD, not CC, wlarc should be empty
20419 # Set some defaults for GNU ld with shared library support. These
20420 # are reset later if shared libraries are not supported. Putting them
20421 # here allows them to be overridden if necessary.
20422 runpath_var=LD_RUN_PATH
20423 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20424 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20425 # ancient GNU ld didn't support --whole-archive et. al.
20426 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20427 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20429 whole_archive_flag_spec_F77=
20431 supports_anon_versioning=no
20432 case `$LD -v 2>/dev/null` in
20433 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20434 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20435 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20436 *\ 2.11.*) ;; # other 2.11 versions
20437 *) supports_anon_versioning=yes ;;
20440 # See if GNU ld supports shared libraries.
20442 aix3* | aix4* | aix5*)
20443 # On AIX/PPC, the GNU linker is very broken
20444 if test "$host_cpu" != ia64; then
20448 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20449 *** to be unable to reliably create shared libraries on AIX.
20450 *** Therefore, libtool is disabling shared libraries support. If you
20451 *** really care for shared libraries, you may want to modify your PATH
20452 *** so that a non-GNU linker is found, and then restart.
20459 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)'
20460 hardcode_libdir_flag_spec_F77='-L$libdir'
20461 hardcode_minus_L_F77=yes
20463 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20464 # that the semantics of dynamic libraries on AmigaOS, at least up
20465 # to version 4, is to share data among multiple programs linked
20466 # with the same dynamic library. Since this doesn't match the
20467 # behavior of shared libraries on other platforms, we can't use
20473 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20474 allow_undefined_flag_F77=unsupported
20475 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20476 # support --undefined. This deserves some investigation. FIXME
20477 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20483 cygwin* | mingw* | pw32*)
20484 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20485 # as there is no search path for DLLs.
20486 hardcode_libdir_flag_spec_F77='-L$libdir'
20487 allow_undefined_flag_F77=unsupported
20488 always_export_symbols_F77=no
20489 enable_shared_with_static_runtimes_F77=yes
20490 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20492 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20493 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
20494 # If the export-symbols file already is a .def file (1st line
20495 # is EXPORTS), use it as is; otherwise, prepend...
20496 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20497 cp $export_symbols $output_objdir/$soname.def;
20499 echo EXPORTS > $output_objdir/$soname.def;
20500 cat $export_symbols >> $output_objdir/$soname.def;
20502 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
20509 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20511 case $cc_basename,$host_cpu in
20512 pgcc*) # Portland Group C compiler
20513 whole_archive_flag_spec_F77=
20515 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
20516 whole_archive_flag_spec_F77=
20517 tmp_addflag=' -fpic -Mnomain' ;;
20518 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
20519 tmp_addflag=' -i_dynamic' ;;
20520 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
20521 tmp_addflag=' -i_dynamic -nofor_main' ;;
20522 ifc* | ifort*) # Intel Fortran compiler
20523 tmp_addflag=' -nofor_main' ;;
20525 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20527 if test $supports_anon_versioning = yes; then
20528 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20529 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20530 $echo "local: *; };" >> $output_objdir/$libname.ver~
20531 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20539 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20540 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20543 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20544 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20549 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20553 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20554 *** create shared libraries on Solaris systems. Therefore, libtool
20555 *** is disabling shared libraries support. We urge you to upgrade GNU
20556 *** binutils to release 2.9.1 or newer. Another option is to modify
20557 *** your PATH or compiler configuration so that the native linker is
20558 *** used, and then restart.
20561 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20562 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20563 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20570 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20572 hardcode_direct_F77=yes
20573 hardcode_shlibpath_var_F77=no
20577 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20578 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20579 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20586 if test "$ld_shlibs_F77" = no; then
20588 hardcode_libdir_flag_spec_F77=
20589 export_dynamic_flag_spec_F77=
20590 whole_archive_flag_spec_F77=
20593 # PORTME fill in a description of your system's linker (not GNU ld)
20596 allow_undefined_flag_F77=unsupported
20597 always_export_symbols_F77=yes
20598 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'
20599 # Note: this linker hardcodes the directories in LIBPATH if there
20600 # are no directories specified by -L.
20601 hardcode_minus_L_F77=yes
20602 if test "$GCC" = yes && test -z "$link_static_flag"; then
20603 # Neither direct hardcoding nor static linking is supported with a
20605 hardcode_direct_F77=unsupported
20610 if test "$host_cpu" = ia64; then
20611 # On IA64, the linker does run time linking by default, so we don't
20612 # have to do anything special.
20613 aix_use_runtimelinking=no
20614 exp_sym_flag='-Bexport'
20617 # If we're using GNU nm, then we don't want the "-C" option.
20618 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20619 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20620 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'
20622 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'
20624 aix_use_runtimelinking=no
20626 # Test if we are trying to use run time linking or normal
20627 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20628 # need to do runtime linking.
20629 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20630 for ld_flag in $LDFLAGS; do
20631 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20632 aix_use_runtimelinking=yes
20638 exp_sym_flag='-bexport'
20639 no_entry_flag='-bnoentry'
20642 # When large executables or shared objects are built, AIX ld can
20643 # have problems creating the table of contents. If linking a library
20644 # or program results in "error TOC overflow" add -mminimal-toc to
20645 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20646 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20648 archive_cmds_F77=''
20649 hardcode_direct_F77=yes
20650 hardcode_libdir_separator_F77=':'
20651 link_all_deplibs_F77=yes
20653 if test "$GCC" = yes; then
20654 case $host_os in aix4.[012]|aix4.[012].*)
20655 # We only want to do this on AIX 4.2 and lower, the check
20656 # below for broken collect2 doesn't work under 4.3+
20657 collect2name=`${CC} -print-prog-name=collect2`
20658 if test -f "$collect2name" && \
20659 strings "$collect2name" | grep resolve_lib_name >/dev/null
20661 # We have reworked collect2
20662 hardcode_direct_F77=yes
20664 # We have old collect2
20665 hardcode_direct_F77=unsupported
20666 # It fails to find uninstalled libraries when the uninstalled
20667 # path is not listed in the libpath. Setting hardcode_minus_L
20668 # to unsupported forces relinking
20669 hardcode_minus_L_F77=yes
20670 hardcode_libdir_flag_spec_F77='-L$libdir'
20671 hardcode_libdir_separator_F77=
20674 shared_flag='-shared'
20675 if test "$aix_use_runtimelinking" = yes; then
20676 shared_flag="$shared_flag "'${wl}-G'
20680 if test "$host_cpu" = ia64; then
20681 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20682 # chokes on -Wl,-G. The following line is correct:
20685 if test "$aix_use_runtimelinking" = yes; then
20686 shared_flag='${wl}-G'
20688 shared_flag='${wl}-bM:SRE'
20693 # It seems that -bexpall does not export symbols beginning with
20694 # underscore (_), so it is better to generate a list of symbols to export.
20695 always_export_symbols_F77=yes
20696 if test "$aix_use_runtimelinking" = yes; then
20697 # Warning - without using the other runtime loading flags (-brtl),
20698 # -berok will link without error, but may produce a broken library.
20699 allow_undefined_flag_F77='-berok'
20700 # Determine the default libpath from the value encoded in an empty executable.
20701 cat >conftest.$ac_ext <<_ACEOF
20706 rm -f conftest.$ac_objext conftest$ac_exeext
20707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20708 (eval $ac_link) 2>conftest.er1
20710 grep -v '^ *+' conftest.er1 >conftest.err
20712 cat conftest.err >&5
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); } &&
20715 { ac_try='test -z "$ac_f77_werror_flag"
20716 || test ! -s conftest.err'
20717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20718 (eval $ac_try) 2>&5
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); }; } &&
20722 { ac_try='test -s conftest$ac_exeext'
20723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20724 (eval $ac_try) 2>&5
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); }; }; then
20729 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20731 # Check for a 64-bit object if we didn't find anything.
20732 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; }
20735 echo "$as_me: failed program was:" >&5
20736 sed 's/^/| /' conftest.$ac_ext >&5
20739 rm -f conftest.err conftest.$ac_objext \
20740 conftest$ac_exeext conftest.$ac_ext
20741 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20743 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20744 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"
20746 if test "$host_cpu" = ia64; then
20747 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
20748 allow_undefined_flag_F77="-z nodefs"
20749 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"
20751 # Determine the default libpath from the value encoded in an empty executable.
20752 cat >conftest.$ac_ext <<_ACEOF
20757 rm -f conftest.$ac_objext conftest$ac_exeext
20758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20759 (eval $ac_link) 2>conftest.er1
20761 grep -v '^ *+' conftest.er1 >conftest.err
20763 cat conftest.err >&5
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); } &&
20766 { ac_try='test -z "$ac_f77_werror_flag"
20767 || test ! -s conftest.err'
20768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20769 (eval $ac_try) 2>&5
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); }; } &&
20773 { ac_try='test -s conftest$ac_exeext'
20774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20775 (eval $ac_try) 2>&5
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); }; }; then
20780 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20782 # Check for a 64-bit object if we didn't find anything.
20783 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; }
20786 echo "$as_me: failed program was:" >&5
20787 sed 's/^/| /' conftest.$ac_ext >&5
20790 rm -f conftest.err conftest.$ac_objext \
20791 conftest$ac_exeext conftest.$ac_ext
20792 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20794 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20795 # Warning - without using the other run time loading flags,
20796 # -berok will link without error, but may produce a broken library.
20797 no_undefined_flag_F77=' ${wl}-bernotok'
20798 allow_undefined_flag_F77=' ${wl}-berok'
20799 # -bexpall does not export symbols beginning with underscore (_)
20800 always_export_symbols_F77=yes
20801 # Exported symbols can be pulled into shared objects from archives
20802 whole_archive_flag_spec_F77=' '
20803 archive_cmds_need_lc_F77=yes
20804 # This is similar to how AIX traditionally builds it's shared libraries.
20805 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'
20811 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)'
20812 hardcode_libdir_flag_spec_F77='-L$libdir'
20813 hardcode_minus_L_F77=yes
20814 # see comment about different semantics on the GNU ld section
20819 export_dynamic_flag_spec_F77=-rdynamic
20822 cygwin* | mingw* | pw32*)
20823 # When not using gcc, we currently assume that we are using
20824 # Microsoft Visual C++.
20825 # hardcode_libdir_flag_spec is actually meaningless, as there is
20826 # no search path for DLLs.
20827 hardcode_libdir_flag_spec_F77=' '
20828 allow_undefined_flag_F77=unsupported
20829 # Tell ltmain to make .lib files, not .a files.
20831 # Tell ltmain to make .dll files, not .so files.
20833 # FIXME: Setting linknames here is a bad hack.
20834 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20835 # The linker will automatically build a .lib file if we build a DLL.
20836 old_archive_From_new_cmds_F77='true'
20837 # FIXME: Should let the user specify the lib program.
20838 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
20839 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
20840 enable_shared_with_static_runtimes_F77=yes
20843 darwin* | rhapsody*)
20845 rhapsody* | darwin1.[012])
20846 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
20849 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20850 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20852 case ${MACOSX_DEPLOYMENT_TARGET} in
20854 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20857 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
20863 archive_cmds_need_lc_F77=no
20864 hardcode_direct_F77=no
20865 hardcode_automatic_F77=yes
20866 hardcode_shlibpath_var_F77=unsupported
20867 whole_archive_flag_spec_F77=''
20868 link_all_deplibs_F77=yes
20869 if test "$GCC" = yes ; then
20870 output_verbose_link_cmd='echo'
20871 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20872 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20873 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20874 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}'
20875 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}'
20877 case $cc_basename in
20879 output_verbose_link_cmd='echo'
20880 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
20881 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20882 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20883 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}'
20884 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}'
20894 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20895 hardcode_libdir_flag_spec_F77='-L$libdir'
20896 hardcode_shlibpath_var_F77=no
20903 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20904 # support. Future versions do this automatically, but an explicit c++rt0.o
20905 # does not break anything, and helps significantly (at the cost of a little
20908 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20909 hardcode_libdir_flag_spec_F77='-R$libdir'
20910 hardcode_direct_F77=yes
20911 hardcode_shlibpath_var_F77=no
20914 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20916 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20917 hardcode_direct_F77=yes
20918 hardcode_minus_L_F77=yes
20919 hardcode_shlibpath_var_F77=no
20922 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20923 freebsd* | kfreebsd*-gnu | dragonfly*)
20924 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20925 hardcode_libdir_flag_spec_F77='-R$libdir'
20926 hardcode_direct_F77=yes
20927 hardcode_shlibpath_var_F77=no
20931 if test "$GCC" = yes; then
20932 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'
20934 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'
20936 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20937 hardcode_libdir_separator_F77=:
20938 hardcode_direct_F77=yes
20940 # hardcode_minus_L: Not really in the search PATH,
20941 # but as the default location of the library.
20942 hardcode_minus_L_F77=yes
20943 export_dynamic_flag_spec_F77='${wl}-E'
20947 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20948 case "$host_cpu" in
20950 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20953 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20957 case "$host_cpu" in
20959 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
20962 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20966 if test "$with_gnu_ld" = no; then
20967 case "$host_cpu" in
20969 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20970 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
20971 hardcode_libdir_separator_F77=:
20972 hardcode_direct_F77=no
20973 hardcode_shlibpath_var_F77=no
20976 hardcode_libdir_flag_spec_F77='-L$libdir'
20977 hardcode_direct_F77=no
20978 hardcode_shlibpath_var_F77=no
20980 # hardcode_minus_L: Not really in the search PATH,
20981 # but as the default location of the library.
20982 hardcode_minus_L_F77=yes
20985 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20986 hardcode_libdir_separator_F77=:
20987 hardcode_direct_F77=yes
20988 export_dynamic_flag_spec_F77='${wl}-E'
20990 # hardcode_minus_L: Not really in the search PATH,
20991 # but as the default location of the library.
20992 hardcode_minus_L_F77=yes
20998 irix5* | irix6* | nonstopux*)
20999 if test "$GCC" = yes; then
21000 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'
21002 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'
21003 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21005 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21006 hardcode_libdir_separator_F77=:
21007 link_all_deplibs_F77=yes
21011 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21012 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21014 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21016 hardcode_libdir_flag_spec_F77='-R$libdir'
21017 hardcode_direct_F77=yes
21018 hardcode_shlibpath_var_F77=no
21022 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21023 hardcode_direct_F77=yes
21024 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21025 hardcode_libdir_separator_F77=:
21026 hardcode_shlibpath_var_F77=no
21030 hardcode_direct_F77=yes
21031 hardcode_shlibpath_var_F77=no
21032 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21033 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21034 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21035 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21036 export_dynamic_flag_spec_F77='${wl}-E'
21039 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21040 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21041 hardcode_libdir_flag_spec_F77='-R$libdir'
21044 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21045 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21052 hardcode_libdir_flag_spec_F77='-L$libdir'
21053 hardcode_minus_L_F77=yes
21054 allow_undefined_flag_F77=unsupported
21055 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'
21056 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21060 if test "$GCC" = yes; then
21061 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21062 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'
21064 allow_undefined_flag_F77=' -expect_unresolved \*'
21065 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'
21067 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21068 hardcode_libdir_separator_F77=:
21071 osf4* | osf5*) # as osf3* with the addition of -msym flag
21072 if test "$GCC" = yes; then
21073 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21074 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'
21075 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21077 allow_undefined_flag_F77=' -expect_unresolved \*'
21078 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'
21079 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~
21080 $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'
21082 # Both c and cxx compiler support -rpath directly
21083 hardcode_libdir_flag_spec_F77='-rpath $libdir'
21085 hardcode_libdir_separator_F77=:
21089 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21090 hardcode_shlibpath_var_F77=no
21091 export_dynamic_flag_spec_F77='${wl}-Bexport'
21092 runpath_var=LD_RUN_PATH
21093 hardcode_runpath_var=yes
21097 no_undefined_flag_F77=' -z text'
21098 if test "$GCC" = yes; then
21100 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21101 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21102 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21105 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21106 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21107 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21109 hardcode_libdir_flag_spec_F77='-R$libdir'
21110 hardcode_shlibpath_var_F77=no
21112 solaris2.[0-5] | solaris2.[0-5].*) ;;
21114 # The compiler driver will combine linker options so we
21115 # cannot just pass the convience library names through
21116 # without $wl, iff we do not link with $LD.
21117 # Luckily, gcc supports the same syntax we need for Sun Studio.
21118 # Supported since Solaris 2.6 (maybe 2.5.1?)
21121 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
21123 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' ;;
21126 link_all_deplibs_F77=yes
21130 if test "x$host_vendor" = xsequent; then
21131 # Use $CC to link under sequent, because it throws in some extra .o
21132 # files that make .init and .fini sections work.
21133 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21135 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21137 hardcode_libdir_flag_spec_F77='-L$libdir'
21138 hardcode_direct_F77=yes
21139 hardcode_minus_L_F77=yes
21140 hardcode_shlibpath_var_F77=no
21144 case $host_vendor in
21146 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21147 hardcode_direct_F77=yes # is this really true???
21150 ## LD is ld it makes a PLAMLIB
21151 ## CC just makes a GrossModule.
21152 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21153 reload_cmds_F77='$CC -r -o $output$reload_objs'
21154 hardcode_direct_F77=no
21157 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21158 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
21161 runpath_var='LD_RUN_PATH'
21162 hardcode_shlibpath_var_F77=no
21166 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21167 hardcode_shlibpath_var_F77=no
21168 export_dynamic_flag_spec_F77='-Bexport'
21172 if test -d /usr/nec; then
21173 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21174 hardcode_shlibpath_var_F77=no
21175 runpath_var=LD_RUN_PATH
21176 hardcode_runpath_var=yes
21182 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21183 hardcode_direct_F77=yes
21184 hardcode_minus_L_F77=no
21185 hardcode_shlibpath_var_F77=no
21186 hardcode_runpath_var=yes
21187 runpath_var=LD_RUN_PATH
21190 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
21191 no_undefined_flag_F77='${wl}-z ${wl}text'
21192 if test "$GCC" = yes; then
21193 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21195 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21197 runpath_var='LD_RUN_PATH'
21198 hardcode_shlibpath_var_F77=no
21202 no_undefined_flag_F77=' -z text'
21203 # $CC -shared without GNU ld will not create a library from C++
21204 # object files and a static libstdc++, better avoid it by now
21205 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21206 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21207 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21208 hardcode_libdir_flag_spec_F77=
21209 hardcode_shlibpath_var_F77=no
21210 runpath_var='LD_RUN_PATH'
21214 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21215 hardcode_libdir_flag_spec_F77='-L$libdir'
21216 hardcode_shlibpath_var_F77=no
21225 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21226 echo "${ECHO_T}$ld_shlibs_F77" >&6
21227 test "$ld_shlibs_F77" = no && can_build_shared=no
21229 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21230 if test "$GCC" = yes; then
21231 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21235 # Do we need to explicitly link libc?
21237 case "x$archive_cmds_need_lc_F77" in
21239 # Assume -lc should be added
21240 archive_cmds_need_lc_F77=yes
21242 if test "$enable_shared" = yes && test "$GCC" = yes; then
21243 case $archive_cmds_F77 in
21245 # FIXME: we may have to deal with multi-command sequences.
21248 # Test whether the compiler implicitly links with -lc since on some
21249 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21250 # to ld, don't add -lc before -lgcc.
21251 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21252 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
21254 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21257 (eval $ac_compile) 2>&5
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); } 2>conftest.err; then
21263 libobjs=conftest.$ac_objext
21265 wl=$lt_prog_compiler_wl_F77
21271 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
21272 allow_undefined_flag_F77=
21273 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21274 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277 (exit $ac_status); }
21279 archive_cmds_need_lc_F77=no
21281 archive_cmds_need_lc_F77=yes
21283 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
21285 cat conftest.err 1>&5
21288 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21289 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
21296 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21297 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
21298 library_names_spec=
21299 libname_spec='lib$name'
21303 postuninstall_cmds=
21307 shlibpath_overrides_runpath=unknown
21309 dynamic_linker="$host_os ld.so"
21310 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21311 if test "$GCC" = yes; then
21312 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21313 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21314 # if the path contains ";" then we assume it to be the separator
21315 # otherwise default to the standard path separator (i.e. ":") - it is
21316 # assumed that no part of a normal pathname contains ";" but that should
21317 # okay in the real world where ";" in dirpaths is itself problematic.
21318 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21320 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21323 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21325 need_lib_prefix=unknown
21326 hardcode_into_libs=no
21328 # when you set need_version to no, make sure it does not cause -set_version
21329 # flags to be left without arguments
21330 need_version=unknown
21335 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21336 shlibpath_var=LIBPATH
21338 # AIX 3 has no versioning support, so we append a major version to the name.
21339 soname_spec='${libname}${release}${shared_ext}$major'
21346 hardcode_into_libs=yes
21347 if test "$host_cpu" = ia64; then
21348 # AIX 5 supports IA64
21349 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21350 shlibpath_var=LD_LIBRARY_PATH
21352 # With GCC up to 2.95.x, collect2 would create an import file
21353 # for dependence libraries. The import file would start with
21354 # the line `#! .'. This would cause the generated library to
21355 # depend on `.', always an invalid library. This was fixed in
21356 # development snapshots of GCC prior to 3.0.
21358 aix4 | aix4.[01] | aix4.[01].*)
21359 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21361 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21364 can_build_shared=no
21368 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21369 # soname into executable. Probably we can add versioning support to
21370 # collect2, so additional links can be useful in future.
21371 if test "$aix_use_runtimelinking" = yes; then
21372 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21373 # instead of lib<name>.a to let people know that these are not
21374 # typical AIX shared libraries.
21375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21377 # We preserve .a as extension for shared libraries through AIX4.2
21378 # and later when we are not doing run time linking.
21379 library_names_spec='${libname}${release}.a $libname.a'
21380 soname_spec='${libname}${release}${shared_ext}$major'
21382 shlibpath_var=LIBPATH
21387 library_names_spec='$libname.ixlibrary $libname.a'
21388 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21389 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'
21393 library_names_spec='${libname}${shared_ext}'
21394 dynamic_linker="$host_os ld.so"
21395 shlibpath_var=LIBRARY_PATH
21401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21402 soname_spec='${libname}${release}${shared_ext}$major'
21403 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21404 shlibpath_var=LD_LIBRARY_PATH
21405 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21406 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21407 # the default ld.so.conf also contains /usr/contrib/lib and
21408 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21409 # libtool to hard-code these into programs
21412 cygwin* | mingw* | pw32*)
21413 version_type=windows
21418 case $GCC,$host_os in
21419 yes,cygwin* | yes,mingw* | yes,pw32*)
21420 library_names_spec='$libname.dll.a'
21421 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21422 postinstall_cmds='base_file=`basename \${file}`~
21423 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21424 dldir=$destdir/`dirname \$dlpath`~
21425 test -d \$dldir || mkdir -p \$dldir~
21426 $install_prog $dir/$dlname \$dldir/$dlname'
21427 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21428 dlpath=$dir/\$dldll~
21430 shlibpath_overrides_runpath=yes
21434 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21435 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21436 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21439 # MinGW DLLs use traditional 'lib' prefix
21440 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21441 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21442 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21443 # It is most probably a Windows format PATH printed by
21444 # mingw gcc, but we are running on Cygwin. Gcc prints its search
21445 # path with ; separators, and with drive letters. We can handle the
21446 # drive letters (cygwin fileutils understands them), so leave them,
21447 # especially as we might pass files found there to a mingw objdump,
21448 # which wouldn't understand a cygwinified path. Ahh.
21449 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21451 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21455 # pw32 DLLs use 'pw' prefix rather than 'lib'
21456 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21462 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21465 dynamic_linker='Win32 ld.exe'
21466 # FIXME: first we should search . and the directory the executable is in
21470 darwin* | rhapsody*)
21471 dynamic_linker="$host_os dyld"
21472 version_type=darwin
21475 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21476 soname_spec='${libname}${release}${major}$shared_ext'
21477 shlibpath_overrides_runpath=yes
21478 shlibpath_var=DYLD_LIBRARY_PATH
21479 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
21480 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21481 if test "$GCC" = yes; then
21482 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"`
21484 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
21486 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21494 soname_spec='${libname}${release}${shared_ext}$major'
21495 shlibpath_var=LD_LIBRARY_PATH
21506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21507 soname_spec='${libname}${release}${shared_ext}$major'
21508 shlibpath_var=LD_LIBRARY_PATH
21509 shlibpath_overrides_runpath=no
21510 hardcode_into_libs=yes
21511 dynamic_linker='GNU ld.so'
21514 freebsd* | dragonfly*)
21515 # DragonFly does not have aout. When/if they implement a new
21516 # versioning mechanism, adjust this.
21517 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
21518 version_type=freebsd-$objformat
21519 case $version_type in
21521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21526 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21530 shlibpath_var=LD_LIBRARY_PATH
21533 shlibpath_overrides_runpath=yes
21535 freebsd3.[01]* | freebsdelf3.[01]*)
21536 shlibpath_overrides_runpath=yes
21537 hardcode_into_libs=yes
21540 shlibpath_overrides_runpath=no
21541 hardcode_into_libs=yes
21550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21551 soname_spec='${libname}${release}${shared_ext}$major'
21552 shlibpath_var=LD_LIBRARY_PATH
21553 hardcode_into_libs=yes
21556 hpux9* | hpux10* | hpux11*)
21557 # Give a soname corresponding to the major version so that dld.sl refuses to
21558 # link against other versions.
21562 case "$host_cpu" in
21565 hardcode_into_libs=yes
21566 dynamic_linker="$host_os dld.so"
21567 shlibpath_var=LD_LIBRARY_PATH
21568 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21570 soname_spec='${libname}${release}${shared_ext}$major'
21571 if test "X$HPUX_IA64_MODE" = X32; then
21572 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21574 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21576 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21580 hardcode_into_libs=yes
21581 dynamic_linker="$host_os dld.sl"
21582 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21583 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21585 soname_spec='${libname}${release}${shared_ext}$major'
21586 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21587 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21591 dynamic_linker="$host_os dld.sl"
21592 shlibpath_var=SHLIB_PATH
21593 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21595 soname_spec='${libname}${release}${shared_ext}$major'
21598 # HP-UX runs *really* slowly unless shared libraries are mode 555.
21599 postinstall_cmds='chmod 555 $lib'
21602 irix5* | irix6* | nonstopux*)
21604 nonstopux*) version_type=nonstopux ;;
21606 if test "$lt_cv_prog_gnu_ld" = yes; then
21614 soname_spec='${libname}${release}${shared_ext}$major'
21615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21617 irix5* | nonstopux*)
21618 libsuff= shlibsuff=
21621 case $LD in # libtool.m4 will add one of these switches to LD
21622 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21623 libsuff= shlibsuff= libmagic=32-bit;;
21624 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21625 libsuff=32 shlibsuff=N32 libmagic=N32;;
21626 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21627 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21628 *) libsuff= shlibsuff= libmagic=never-match;;
21632 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21633 shlibpath_overrides_runpath=no
21634 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21635 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21636 hardcode_into_libs=yes
21639 # No shared lib support for Linux oldld, aout, or coff.
21640 linux*oldld* | linux*aout* | linux*coff*)
21644 # This must be Linux ELF.
21649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21650 soname_spec='${libname}${release}${shared_ext}$major'
21651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21652 shlibpath_var=LD_LIBRARY_PATH
21653 shlibpath_overrides_runpath=no
21654 # This implies no fast_install, which is unacceptable.
21655 # Some rework will be needed to allow for fast_install
21656 # before this can be enabled.
21657 hardcode_into_libs=yes
21659 # find out which ABI we are using
21661 case "$host_cpu" in
21662 x86_64*|s390x*|powerpc64*)
21663 echo '#line 21663 "configure"' > conftest.$ac_ext
21664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21665 (eval $ac_compile) 2>&5
21667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); }; then
21669 case `/usr/bin/file conftest.$ac_objext` in
21672 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
21680 # Append ld.so.conf contents to the search path
21681 if test -f /etc/ld.so.conf; then
21682 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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
21683 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
21686 # We used to test for /lib/ld.so.1 and disable shared libraries on
21687 # powerpc, because MkLinux only supported shared libraries with the
21688 # GNU dynamic linker. Since this was broken with cross compilers,
21689 # most powerpc-linux boxes support dynamic linking these days and
21690 # people can always --disable-shared, the test was removed, and we
21691 # assume the GNU/Linux dynamic linker is in use.
21692 dynamic_linker='GNU/Linux ld.so'
21699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21700 soname_spec='${libname}${release}${shared_ext}$major'
21701 shlibpath_var=LD_LIBRARY_PATH
21702 shlibpath_overrides_runpath=no
21703 hardcode_into_libs=yes
21704 dynamic_linker='GNU ld.so'
21711 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21713 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21714 dynamic_linker='NetBSD (a.out) ld.so'
21716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21717 soname_spec='${libname}${release}${shared_ext}$major'
21718 dynamic_linker='NetBSD ld.elf_so'
21720 shlibpath_var=LD_LIBRARY_PATH
21721 shlibpath_overrides_runpath=yes
21722 hardcode_into_libs=yes
21727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21728 shlibpath_var=LD_LIBRARY_PATH
21729 shlibpath_overrides_runpath=yes
21736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21737 soname_spec='${libname}${release}${shared_ext}$major'
21738 shlibpath_var=LD_LIBRARY_PATH
21739 shlibpath_overrides_runpath=yes
21746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21747 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21748 shlibpath_var=LD_LIBRARY_PATH
21749 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21751 openbsd2.[89] | openbsd2.[89].*)
21752 shlibpath_overrides_runpath=no
21755 shlibpath_overrides_runpath=yes
21759 shlibpath_overrides_runpath=yes
21764 libname_spec='$name'
21767 library_names_spec='$libname${shared_ext} $libname.a'
21768 dynamic_linker='OS/2 ld.exe'
21769 shlibpath_var=LIBPATH
21772 osf3* | osf4* | osf5*)
21776 soname_spec='${libname}${release}${shared_ext}$major'
21777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21778 shlibpath_var=LD_LIBRARY_PATH
21779 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21780 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21785 soname_spec='${libname}${release}${shared_ext}$major'
21786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21787 shlibpath_var=LD_LIBRARY_PATH
21794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21795 soname_spec='${libname}${release}${shared_ext}$major'
21796 shlibpath_var=LD_LIBRARY_PATH
21797 shlibpath_overrides_runpath=yes
21798 hardcode_into_libs=yes
21799 # ldd complains unless libraries are executable
21800 postinstall_cmds='chmod +x $lib'
21805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21806 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21807 shlibpath_var=LD_LIBRARY_PATH
21808 shlibpath_overrides_runpath=yes
21809 if test "$with_gnu_ld" = yes; then
21815 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21818 soname_spec='${libname}${release}${shared_ext}$major'
21819 shlibpath_var=LD_LIBRARY_PATH
21820 case $host_vendor in
21822 shlibpath_overrides_runpath=no
21824 export_dynamic_flag_spec='${wl}-Blargedynsym'
21825 runpath_var=LD_RUN_PATH
21833 shlibpath_overrides_runpath=no
21834 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21840 if test -d /usr/nec ;then
21842 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21843 soname_spec='$libname${shared_ext}.$major'
21844 shlibpath_var=LD_LIBRARY_PATH
21850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21851 soname_spec='${libname}${release}${shared_ext}$major'
21852 shlibpath_var=LD_LIBRARY_PATH
21859 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21860 echo "${ECHO_T}$dynamic_linker" >&6
21861 test "$dynamic_linker" = no && can_build_shared=no
21863 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21864 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
21865 hardcode_action_F77=
21866 if test -n "$hardcode_libdir_flag_spec_F77" || \
21867 test -n "$runpath_var_F77" || \
21868 test "X$hardcode_automatic_F77" = "Xyes" ; then
21870 # We can hardcode non-existant directories.
21871 if test "$hardcode_direct_F77" != no &&
21872 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21873 # have to relink, otherwise we might link with an installed library
21874 # when we should be linking with a yet-to-be-installed one
21875 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
21876 test "$hardcode_minus_L_F77" != no; then
21877 # Linking always hardcodes the temporary library directory.
21878 hardcode_action_F77=relink
21880 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21881 hardcode_action_F77=immediate
21884 # We cannot hardcode anything, or else we can only hardcode existing
21886 hardcode_action_F77=unsupported
21888 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
21889 echo "${ECHO_T}$hardcode_action_F77" >&6
21891 if test "$hardcode_action_F77" = relink; then
21892 # Fast installation is not supported
21893 enable_fast_install=no
21894 elif test "$shlibpath_overrides_runpath" = yes ||
21895 test "$enable_shared" = no; then
21896 # Fast installation is not necessary
21897 enable_fast_install=needless
21902 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
21903 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
21904 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
21905 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21906 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21907 echo "$as_me:$LINENO: result: yes" >&5
21908 echo "${ECHO_T}yes" >&6
21910 # FIXME - insert some real tests, host_os isn't really good enough
21913 if test -n "$STRIP" ; then
21914 striplib="$STRIP -x"
21915 echo "$as_me:$LINENO: result: yes" >&5
21916 echo "${ECHO_T}yes" >&6
21918 echo "$as_me:$LINENO: result: no" >&5
21919 echo "${ECHO_T}no" >&6
21923 echo "$as_me:$LINENO: result: no" >&5
21924 echo "${ECHO_T}no" >&6
21931 # The else clause should only fire when bootstrapping the
21932 # libtool distribution, otherwise you forgot to ship ltmain.sh
21933 # with your package, and you will get complaints that there are
21934 # no rules to generate ltmain.sh.
21935 if test -f "$ltmain"; then
21936 # See if we are running on zsh, and set the options which allow our commands through
21937 # without removal of \ escapes.
21938 if test -n "${ZSH_VERSION+set}" ; then
21939 setopt NO_GLOB_SUBST
21941 # Now quote all the things that may contain metacharacters while being
21942 # careful not to overquote the AC_SUBSTed values. We take copies of the
21943 # variables and quote the copies for generation of the libtool script.
21944 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21946 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21947 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21948 deplibs_check_method reload_flag reload_cmds need_locks \
21949 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21950 lt_cv_sys_global_symbol_to_c_name_address \
21951 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21952 old_postinstall_cmds old_postuninstall_cmds \
21956 lt_prog_compiler_wl_F77 \
21957 lt_prog_compiler_pic_F77 \
21958 lt_prog_compiler_static_F77 \
21959 lt_prog_compiler_no_builtin_flag_F77 \
21960 export_dynamic_flag_spec_F77 \
21961 thread_safe_flag_spec_F77 \
21962 whole_archive_flag_spec_F77 \
21963 enable_shared_with_static_runtimes_F77 \
21964 old_archive_cmds_F77 \
21965 old_archive_from_new_cmds_F77 \
21966 predep_objects_F77 \
21967 postdep_objects_F77 \
21970 compiler_lib_search_path_F77 \
21972 archive_expsym_cmds_F77 \
21973 postinstall_cmds_F77 \
21974 postuninstall_cmds_F77 \
21975 old_archive_from_expsyms_cmds_F77 \
21976 allow_undefined_flag_F77 \
21977 no_undefined_flag_F77 \
21978 export_symbols_cmds_F77 \
21979 hardcode_libdir_flag_spec_F77 \
21980 hardcode_libdir_flag_spec_ld_F77 \
21981 hardcode_libdir_separator_F77 \
21982 hardcode_automatic_F77 \
21984 module_expsym_cmds_F77 \
21985 lt_cv_prog_compiler_c_o_F77 \
21986 exclude_expsyms_F77 \
21987 include_expsyms_F77; do
21990 old_archive_cmds_F77 | \
21991 old_archive_from_new_cmds_F77 | \
21992 archive_cmds_F77 | \
21993 archive_expsym_cmds_F77 | \
21994 module_cmds_F77 | \
21995 module_expsym_cmds_F77 | \
21996 old_archive_from_expsyms_cmds_F77 | \
21997 export_symbols_cmds_F77 | \
21998 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21999 postinstall_cmds | postuninstall_cmds | \
22000 old_postinstall_cmds | old_postuninstall_cmds | \
22001 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22002 # Double-quote double-evaled strings.
22003 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22006 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22012 *'\$0 --fallback-echo"')
22013 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22019 cat <<__EOF__ >> "$cfgfile"
22020 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22022 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22024 # Shell to use when invoking shell scripts.
22027 # Whether or not to build shared libraries.
22028 build_libtool_libs=$enable_shared
22030 # Whether or not to build static libraries.
22031 build_old_libs=$enable_static
22033 # Whether or not to add -lc for building shared libraries.
22034 build_libtool_need_lc=$archive_cmds_need_lc_F77
22036 # Whether or not to disallow shared libs when runtime libs are static
22037 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22039 # Whether or not to optimize for fast installation.
22040 fast_install=$enable_fast_install
22043 host_alias=$host_alias
22047 # The build system.
22048 build_alias=$build_alias
22052 # An echo program that does not interpret backslashes.
22057 AR_FLAGS=$lt_AR_FLAGS
22062 # A language-specific compiler.
22063 CC=$lt_compiler_F77
22065 # Is the compiler the GNU C compiler?
22071 # The linker used to build libraries.
22074 # Whether we need hard or soft links.
22077 # A BSD-compatible nm program.
22080 # A symbol stripping program
22083 # Used to examine libraries when file_magic_cmd begins "file"
22084 MAGIC_CMD=$MAGIC_CMD
22086 # Used on cygwin: DLL creation program.
22089 # Used on cygwin: object dumper.
22092 # Used on cygwin: assembler.
22095 # The name of the directory that contains temporary libtool files.
22098 # How to create reloadable object files.
22099 reload_flag=$lt_reload_flag
22100 reload_cmds=$lt_reload_cmds
22102 # How to pass a linker flag through the compiler.
22103 wl=$lt_lt_prog_compiler_wl_F77
22105 # Object file suffix (normally "o").
22106 objext="$ac_objext"
22108 # Old archive suffix (normally "a").
22111 # Shared library suffix (normally ".so").
22112 shrext_cmds='$shrext_cmds'
22114 # Executable file suffix (normally "").
22117 # Additional compiler flags for building library objects.
22118 pic_flag=$lt_lt_prog_compiler_pic_F77
22121 # What is the maximum length of a command?
22122 max_cmd_len=$lt_cv_sys_max_cmd_len
22124 # Does compiler simultaneously support -c and -o options?
22125 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22127 # Must we lock files when doing compilation?
22128 need_locks=$lt_need_locks
22130 # Do we need the lib prefix for modules?
22131 need_lib_prefix=$need_lib_prefix
22133 # Do we need a version for libraries?
22134 need_version=$need_version
22136 # Whether dlopen is supported.
22137 dlopen_support=$enable_dlopen
22139 # Whether dlopen of programs is supported.
22140 dlopen_self=$enable_dlopen_self
22142 # Whether dlopen of statically linked programs is supported.
22143 dlopen_self_static=$enable_dlopen_self_static
22145 # Compiler flag to prevent dynamic linking.
22146 link_static_flag=$lt_lt_prog_compiler_static_F77
22148 # Compiler flag to turn off builtin functions.
22149 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22151 # Compiler flag to allow reflexive dlopens.
22152 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22154 # Compiler flag to generate shared objects directly from archives.
22155 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22157 # Compiler flag to generate thread-safe objects.
22158 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
22160 # Library versioning type.
22161 version_type=$version_type
22163 # Format of library name prefix.
22164 libname_spec=$lt_libname_spec
22166 # List of archive names. First name is the real one, the rest are links.
22167 # The last name is the one that the linker finds with -lNAME.
22168 library_names_spec=$lt_library_names_spec
22170 # The coded name of the library, if different from the real name.
22171 soname_spec=$lt_soname_spec
22173 # Commands used to build and install an old-style archive.
22175 old_archive_cmds=$lt_old_archive_cmds_F77
22176 old_postinstall_cmds=$lt_old_postinstall_cmds
22177 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22179 # Create an old-style archive from a shared archive.
22180 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22182 # Create a temporary old-style archive to link instead of a shared archive.
22183 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22185 # Commands used to build and install a shared archive.
22186 archive_cmds=$lt_archive_cmds_F77
22187 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22188 postinstall_cmds=$lt_postinstall_cmds
22189 postuninstall_cmds=$lt_postuninstall_cmds
22191 # Commands used to build a loadable module (assumed same as above if empty)
22192 module_cmds=$lt_module_cmds_F77
22193 module_expsym_cmds=$lt_module_expsym_cmds_F77
22195 # Commands to strip libraries.
22196 old_striplib=$lt_old_striplib
22197 striplib=$lt_striplib
22199 # Dependencies to place before the objects being linked to create a
22201 predep_objects=$lt_predep_objects_F77
22203 # Dependencies to place after the objects being linked to create a
22205 postdep_objects=$lt_postdep_objects_F77
22207 # Dependencies to place before the objects being linked to create a
22209 predeps=$lt_predeps_F77
22211 # Dependencies to place after the objects being linked to create a
22213 postdeps=$lt_postdeps_F77
22215 # The library search path used internally by the compiler when linking
22216 # a shared library.
22217 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22219 # Method to check whether dependent libraries are shared objects.
22220 deplibs_check_method=$lt_deplibs_check_method
22222 # Command to use when deplibs_check_method == file_magic.
22223 file_magic_cmd=$lt_file_magic_cmd
22225 # Flag that allows shared libraries with undefined symbols to be built.
22226 allow_undefined_flag=$lt_allow_undefined_flag_F77
22228 # Flag that forces no undefined symbols.
22229 no_undefined_flag=$lt_no_undefined_flag_F77
22231 # Commands used to finish a libtool library installation in a directory.
22232 finish_cmds=$lt_finish_cmds
22234 # Same as above, but a single script fragment to be evaled but not shown.
22235 finish_eval=$lt_finish_eval
22237 # Take the output of nm and produce a listing of raw symbols and C names.
22238 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22240 # Transform the output of nm in a proper C declaration
22241 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22243 # Transform the output of nm in a C name address pair
22244 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22246 # This is the shared library runtime path variable.
22247 runpath_var=$runpath_var
22249 # This is the shared library path variable.
22250 shlibpath_var=$shlibpath_var
22252 # Is shlibpath searched before the hard-coded library search path?
22253 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22255 # How to hardcode a shared library path into an executable.
22256 hardcode_action=$hardcode_action_F77
22258 # Whether we should hardcode library paths into libraries.
22259 hardcode_into_libs=$hardcode_into_libs
22261 # Flag to hardcode \$libdir into a binary during linking.
22262 # This must work even if \$libdir does not exist.
22263 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22265 # If ld is used when linking, flag to hardcode \$libdir into
22266 # a binary during linking. This must work even if \$libdir does
22268 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22270 # Whether we need a single -rpath flag with a separated argument.
22271 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22273 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22274 # resulting binary.
22275 hardcode_direct=$hardcode_direct_F77
22277 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22278 # resulting binary.
22279 hardcode_minus_L=$hardcode_minus_L_F77
22281 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22282 # the resulting binary.
22283 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22285 # Set to yes if building a shared library automatically hardcodes DIR into the library
22286 # and all subsequent libraries and executables linked against it.
22287 hardcode_automatic=$hardcode_automatic_F77
22289 # Variables whose values should be saved in libtool wrapper scripts and
22290 # restored at relink time.
22291 variables_saved_for_relink="$variables_saved_for_relink"
22293 # Whether libtool must link a program against all its dependency libraries.
22294 link_all_deplibs=$link_all_deplibs_F77
22296 # Compile-time system search path for libraries
22297 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22299 # Run-time system search path for libraries
22300 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22302 # Fix the shell variable \$srcfile for the compiler.
22303 fix_srcfile_path="$fix_srcfile_path_F77"
22305 # Set to yes if exported symbols are required.
22306 always_export_symbols=$always_export_symbols_F77
22308 # The commands to list exported symbols.
22309 export_symbols_cmds=$lt_export_symbols_cmds_F77
22311 # The commands to extract the exported symbol list from a shared archive.
22312 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22314 # Symbols that should not be listed in the preloaded symbols.
22315 exclude_expsyms=$lt_exclude_expsyms_F77
22317 # Symbols that must always be exported.
22318 include_expsyms=$lt_include_expsyms_F77
22320 # ### END LIBTOOL TAG CONFIG: $tagname
22326 # If there is no Makefile yet, we rely on a make rule to execute
22327 # `config.status --recheck' to rerun these tests and create the
22328 # libtool script then.
22329 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22330 if test -f "$ltmain_in"; then
22331 test -f Makefile && make "$ltmain"
22337 ac_cpp='$CPP $CPPFLAGS'
22338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22350 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
22354 # Source file extension for Java test sources.
22357 # Object file extension for compiled Java test sources.
22361 # Code to be used in simple compile tests
22362 lt_simple_compile_test_code="class foo {}\n"
22364 # Code to be used in simple link tests
22365 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
22367 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22369 # If no C compiler was specified, use CC.
22372 # Allow CC to be a program name with arguments.
22376 # save warnings/boilerplate of simple test code
22377 ac_outfile=conftest.$ac_objext
22378 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22379 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
22380 _lt_compiler_boilerplate=`cat conftest.err`
22383 ac_outfile=conftest.$ac_objext
22384 printf "$lt_simple_link_test_code" >conftest.$ac_ext
22385 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
22386 _lt_linker_boilerplate=`cat conftest.err`
22390 # Allow CC to be a program name with arguments.
22395 for cc_temp in $compiler""; do
22397 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22398 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22403 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22406 # GCJ did not exist at the time GCC didn't implicitly link libc in.
22407 archive_cmds_need_lc_GCJ=no
22409 old_archive_cmds_GCJ=$old_archive_cmds
22412 ## There is no encapsulation within the following macros, do not change
22413 ## the running order or otherwise move them around unless you know exactly
22414 ## what you are doing...
22416 lt_prog_compiler_no_builtin_flag_GCJ=
22418 if test "$GCC" = yes; then
22419 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
22422 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22423 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
22424 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22425 echo $ECHO_N "(cached) $ECHO_C" >&6
22427 lt_cv_prog_compiler_rtti_exceptions=no
22428 ac_outfile=conftest.$ac_objext
22429 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22430 lt_compiler_flag="-fno-rtti -fno-exceptions"
22431 # Insert the option either (1) after the last *FLAGS variable, or
22432 # (2) before a word containing "conftest.", or (3) at the end.
22433 # Note that $ac_compile itself does not contain backslashes and begins
22434 # with a dollar sign (not a hyphen), so the echo should work correctly.
22435 # The option is referenced via a variable to avoid confusing sed.
22436 lt_compile=`echo "$ac_compile" | $SED \
22437 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
22438 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22439 -e 's:$: $lt_compiler_flag:'`
22440 (eval echo "\"\$as_me:22440: $lt_compile\"" >&5)
22441 (eval "$lt_compile" 2>conftest.err)
22443 cat conftest.err >&5
22444 echo "$as_me:22444: \$? = $ac_status" >&5
22445 if (exit $ac_status) && test -s "$ac_outfile"; then
22446 # The compiler can only warn and ignore the option if not recognized
22447 # So say no if there are warnings other than the usual output.
22448 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
22449 $SED '/^$/d' conftest.err >conftest.er2
22450 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
22451 lt_cv_prog_compiler_rtti_exceptions=yes
22457 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22458 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
22460 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
22461 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22468 lt_prog_compiler_wl_GCJ=
22469 lt_prog_compiler_pic_GCJ=
22470 lt_prog_compiler_static_GCJ=
22472 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22473 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
22475 if test "$GCC" = yes; then
22476 lt_prog_compiler_wl_GCJ='-Wl,'
22477 lt_prog_compiler_static_GCJ='-static'
22481 # All AIX code is PIC.
22482 if test "$host_cpu" = ia64; then
22483 # AIX 5 now supports IA64 processor
22484 lt_prog_compiler_static_GCJ='-Bstatic'
22489 # FIXME: we need at least 68020 code to build shared libraries, but
22490 # adding the `-m68020' flag to GCC prevents building anything better,
22492 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22495 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22496 # PIC is the default for these OSes.
22499 mingw* | pw32* | os2*)
22500 # This hack is so that the source file can tell whether it is being
22501 # built for inclusion in a dll (and should export symbols for example).
22502 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22505 darwin* | rhapsody*)
22506 # PIC is the default on this platform
22507 # Common symbols not allowed in MH_DYLIB files
22508 lt_prog_compiler_pic_GCJ='-fno-common'
22512 # Just because we use GCC doesn't mean we suddenly get shared libraries
22513 # on systems that don't support them.
22514 lt_prog_compiler_can_build_shared_GCJ=no
22519 if test -d /usr/nec; then
22520 lt_prog_compiler_pic_GCJ=-Kconform_pic
22525 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22526 # not for PA HP-UX.
22527 case "$host_cpu" in
22532 lt_prog_compiler_pic_GCJ='-fPIC'
22538 lt_prog_compiler_pic_GCJ='-fPIC'
22542 # PORTME Check for flag to pass linker flags through the system compiler.
22545 lt_prog_compiler_wl_GCJ='-Wl,'
22546 if test "$host_cpu" = ia64; then
22547 # AIX 5 now supports IA64 processor
22548 lt_prog_compiler_static_GCJ='-Bstatic'
22550 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22554 # PIC is the default on this platform
22555 # Common symbols not allowed in MH_DYLIB files
22556 case $cc_basename in
22558 lt_prog_compiler_pic_GCJ='-qnocommon'
22559 lt_prog_compiler_wl_GCJ='-Wl,'
22564 mingw* | pw32* | os2*)
22565 # This hack is so that the source file can tell whether it is being
22566 # built for inclusion in a dll (and should export symbols for example).
22567 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22570 hpux9* | hpux10* | hpux11*)
22571 lt_prog_compiler_wl_GCJ='-Wl,'
22572 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22573 # not for PA HP-UX.
22574 case "$host_cpu" in
22579 lt_prog_compiler_pic_GCJ='+Z'
22582 # Is there a better lt_prog_compiler_static that works with the bundled CC?
22583 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22586 irix5* | irix6* | nonstopux*)
22587 lt_prog_compiler_wl_GCJ='-Wl,'
22588 # PIC (with -KPIC) is the default.
22589 lt_prog_compiler_static_GCJ='-non_shared'
22593 lt_prog_compiler_pic_GCJ='-KPIC'
22594 lt_prog_compiler_static_GCJ='-Bstatic'
22598 case $cc_basename in
22600 lt_prog_compiler_wl_GCJ='-Wl,'
22601 lt_prog_compiler_pic_GCJ='-KPIC'
22602 lt_prog_compiler_static_GCJ='-static'
22604 pgcc* | pgf77* | pgf90*)
22605 # Portland Group compilers (*not* the Pentium gcc compiler,
22606 # which looks to be a dead project)
22607 lt_prog_compiler_wl_GCJ='-Wl,'
22608 lt_prog_compiler_pic_GCJ='-fpic'
22609 lt_prog_compiler_static_GCJ='-static'
22612 lt_prog_compiler_wl_GCJ='-Wl,'
22613 # All Alpha code is PIC.
22614 lt_prog_compiler_static_GCJ='-non_shared'
22619 osf3* | osf4* | osf5*)
22620 lt_prog_compiler_wl_GCJ='-Wl,'
22621 # All OSF/1 code is PIC.
22622 lt_prog_compiler_static_GCJ='-non_shared'
22626 lt_prog_compiler_pic_GCJ='-Kpic'
22627 lt_prog_compiler_static_GCJ='-dn'
22631 lt_prog_compiler_pic_GCJ='-KPIC'
22632 lt_prog_compiler_static_GCJ='-Bstatic'
22633 case $cc_basename in
22634 f77* | f90* | f95*)
22635 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
22637 lt_prog_compiler_wl_GCJ='-Wl,';;
22642 lt_prog_compiler_wl_GCJ='-Qoption ld '
22643 lt_prog_compiler_pic_GCJ='-PIC'
22644 lt_prog_compiler_static_GCJ='-Bstatic'
22647 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22648 lt_prog_compiler_wl_GCJ='-Wl,'
22649 lt_prog_compiler_pic_GCJ='-KPIC'
22650 lt_prog_compiler_static_GCJ='-Bstatic'
22654 if test -d /usr/nec ;then
22655 lt_prog_compiler_pic_GCJ='-Kconform_pic'
22656 lt_prog_compiler_static_GCJ='-Bstatic'
22661 lt_prog_compiler_wl_GCJ='-Wl,'
22662 lt_prog_compiler_can_build_shared_GCJ=no
22666 lt_prog_compiler_pic_GCJ='-pic'
22667 lt_prog_compiler_static_GCJ='-Bstatic'
22671 lt_prog_compiler_can_build_shared_GCJ=no
22676 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
22677 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
22680 # Check to make sure the PIC flag actually works.
22682 if test -n "$lt_prog_compiler_pic_GCJ"; then
22684 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
22685 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
22686 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
22687 echo $ECHO_N "(cached) $ECHO_C" >&6
22689 lt_prog_compiler_pic_works_GCJ=no
22690 ac_outfile=conftest.$ac_objext
22691 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22692 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
22693 # Insert the option either (1) after the last *FLAGS variable, or
22694 # (2) before a word containing "conftest.", or (3) at the end.
22695 # Note that $ac_compile itself does not contain backslashes and begins
22696 # with a dollar sign (not a hyphen), so the echo should work correctly.
22697 # The option is referenced via a variable to avoid confusing sed.
22698 lt_compile=`echo "$ac_compile" | $SED \
22699 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
22700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22701 -e 's:$: $lt_compiler_flag:'`
22702 (eval echo "\"\$as_me:22702: $lt_compile\"" >&5)
22703 (eval "$lt_compile" 2>conftest.err)
22705 cat conftest.err >&5
22706 echo "$as_me:22706: \$? = $ac_status" >&5
22707 if (exit $ac_status) && test -s "$ac_outfile"; then
22708 # The compiler can only warn and ignore the option if not recognized
22709 # So say no if there are warnings other than the usual output.
22710 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
22711 $SED '/^$/d' conftest.err >conftest.er2
22712 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
22713 lt_prog_compiler_pic_works_GCJ=yes
22719 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
22720 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
22722 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
22723 case $lt_prog_compiler_pic_GCJ in
22725 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
22728 lt_prog_compiler_pic_GCJ=
22729 lt_prog_compiler_can_build_shared_GCJ=no
22734 # For platforms which do not support PIC, -DPIC is meaningless:
22736 lt_prog_compiler_pic_GCJ=
22739 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
22743 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22744 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
22745 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
22746 echo $ECHO_N "(cached) $ECHO_C" >&6
22748 lt_cv_prog_compiler_c_o_GCJ=no
22749 $rm -r conftest 2>/dev/null
22753 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22755 lt_compiler_flag="-o out/conftest2.$ac_objext"
22756 # Insert the option either (1) after the last *FLAGS variable, or
22757 # (2) before a word containing "conftest.", or (3) at the end.
22758 # Note that $ac_compile itself does not contain backslashes and begins
22759 # with a dollar sign (not a hyphen), so the echo should work correctly.
22760 lt_compile=`echo "$ac_compile" | $SED \
22761 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
22762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22763 -e 's:$: $lt_compiler_flag:'`
22764 (eval echo "\"\$as_me:22764: $lt_compile\"" >&5)
22765 (eval "$lt_compile" 2>out/conftest.err)
22767 cat out/conftest.err >&5
22768 echo "$as_me:22768: \$? = $ac_status" >&5
22769 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22771 # The compiler can only warn and ignore the option if not recognized
22772 # So say no if there are warnings
22773 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
22774 $SED '/^$/d' out/conftest.err >out/conftest.er2
22775 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22776 lt_cv_prog_compiler_c_o_GCJ=yes
22781 # SGI C++ compiler will create directory out/ii_files/ for
22782 # template instantiation
22783 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22784 $rm out/* && rmdir out
22790 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
22791 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
22794 hard_links="nottested"
22795 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
22796 # do not overwrite the value of need_locks provided by the user
22797 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22798 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
22801 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22803 ln conftest.a conftest.b 2>&5 || hard_links=no
22804 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22805 echo "$as_me:$LINENO: result: $hard_links" >&5
22806 echo "${ECHO_T}$hard_links" >&6
22807 if test "$hard_links" = no; then
22808 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22809 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22816 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22817 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
22820 allow_undefined_flag_GCJ=
22821 enable_shared_with_static_runtimes_GCJ=no
22823 archive_expsym_cmds_GCJ=
22824 old_archive_From_new_cmds_GCJ=
22825 old_archive_from_expsyms_cmds_GCJ=
22826 export_dynamic_flag_spec_GCJ=
22827 whole_archive_flag_spec_GCJ=
22828 thread_safe_flag_spec_GCJ=
22829 hardcode_libdir_flag_spec_GCJ=
22830 hardcode_libdir_flag_spec_ld_GCJ=
22831 hardcode_libdir_separator_GCJ=
22832 hardcode_direct_GCJ=no
22833 hardcode_minus_L_GCJ=no
22834 hardcode_shlibpath_var_GCJ=unsupported
22835 link_all_deplibs_GCJ=unknown
22836 hardcode_automatic_GCJ=no
22838 module_expsym_cmds_GCJ=
22839 always_export_symbols_GCJ=no
22840 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22841 # include_expsyms should be a list of space-separated symbols to be *always*
22842 # included in the symbol list
22843 include_expsyms_GCJ=
22844 # exclude_expsyms can be an extended regexp of symbols to exclude
22845 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22846 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22847 # as well as any symbol that contains `d'.
22848 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
22849 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22850 # platforms (ab)use it in PIC code, but their linkers get confused if
22851 # the symbol is explicitly referenced. Since portable code cannot
22852 # rely on this symbol name, it's probably fine to never include it in
22853 # preloaded symbol tables.
22854 extract_expsyms_cmds=
22855 # Just being paranoid about ensuring that cc_basename is set.
22856 for cc_temp in $compiler""; do
22858 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22859 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22864 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22867 cygwin* | mingw* | pw32*)
22868 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22869 # When not using gcc, we currently assume that we are using
22870 # Microsoft Visual C++.
22871 if test "$GCC" != yes; then
22881 if test "$with_gnu_ld" = yes; then
22882 # If archive_cmds runs LD, not CC, wlarc should be empty
22885 # Set some defaults for GNU ld with shared library support. These
22886 # are reset later if shared libraries are not supported. Putting them
22887 # here allows them to be overridden if necessary.
22888 runpath_var=LD_RUN_PATH
22889 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
22890 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
22891 # ancient GNU ld didn't support --whole-archive et. al.
22892 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22893 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22895 whole_archive_flag_spec_GCJ=
22897 supports_anon_versioning=no
22898 case `$LD -v 2>/dev/null` in
22899 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22900 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22901 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22902 *\ 2.11.*) ;; # other 2.11 versions
22903 *) supports_anon_versioning=yes ;;
22906 # See if GNU ld supports shared libraries.
22908 aix3* | aix4* | aix5*)
22909 # On AIX/PPC, the GNU linker is very broken
22910 if test "$host_cpu" != ia64; then
22914 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22915 *** to be unable to reliably create shared libraries on AIX.
22916 *** Therefore, libtool is disabling shared libraries support. If you
22917 *** really care for shared libraries, you may want to modify your PATH
22918 *** so that a non-GNU linker is found, and then restart.
22925 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)'
22926 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22927 hardcode_minus_L_GCJ=yes
22929 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22930 # that the semantics of dynamic libraries on AmigaOS, at least up
22931 # to version 4, is to share data among multiple programs linked
22932 # with the same dynamic library. Since this doesn't match the
22933 # behavior of shared libraries on other platforms, we can't use
22939 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22940 allow_undefined_flag_GCJ=unsupported
22941 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22942 # support --undefined. This deserves some investigation. FIXME
22943 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22949 cygwin* | mingw* | pw32*)
22950 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
22951 # as there is no search path for DLLs.
22952 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22953 allow_undefined_flag_GCJ=unsupported
22954 always_export_symbols_GCJ=no
22955 enable_shared_with_static_runtimes_GCJ=yes
22956 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22958 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22959 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
22960 # If the export-symbols file already is a .def file (1st line
22961 # is EXPORTS), use it as is; otherwise, prepend...
22962 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22963 cp $export_symbols $output_objdir/$soname.def;
22965 echo EXPORTS > $output_objdir/$soname.def;
22966 cat $export_symbols >> $output_objdir/$soname.def;
22968 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
22975 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22977 case $cc_basename,$host_cpu in
22978 pgcc*) # Portland Group C compiler
22979 whole_archive_flag_spec_GCJ=
22981 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
22982 whole_archive_flag_spec_GCJ=
22983 tmp_addflag=' -fpic -Mnomain' ;;
22984 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22985 tmp_addflag=' -i_dynamic' ;;
22986 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22987 tmp_addflag=' -i_dynamic -nofor_main' ;;
22988 ifc* | ifort*) # Intel Fortran compiler
22989 tmp_addflag=' -nofor_main' ;;
22991 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22993 if test $supports_anon_versioning = yes; then
22994 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
22995 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22996 $echo "local: *; };" >> $output_objdir/$libname.ver~
22997 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23005 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23006 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23009 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23010 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23015 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23019 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
23020 *** create shared libraries on Solaris systems. Therefore, libtool
23021 *** is disabling shared libraries support. We urge you to upgrade GNU
23022 *** binutils to release 2.9.1 or newer. Another option is to modify
23023 *** your PATH or compiler configuration so that the native linker is
23024 *** used, and then restart.
23027 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23028 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23029 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23036 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23038 hardcode_direct_GCJ=yes
23039 hardcode_shlibpath_var_GCJ=no
23043 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23044 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23045 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23052 if test "$ld_shlibs_GCJ" = no; then
23054 hardcode_libdir_flag_spec_GCJ=
23055 export_dynamic_flag_spec_GCJ=
23056 whole_archive_flag_spec_GCJ=
23059 # PORTME fill in a description of your system's linker (not GNU ld)
23062 allow_undefined_flag_GCJ=unsupported
23063 always_export_symbols_GCJ=yes
23064 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'
23065 # Note: this linker hardcodes the directories in LIBPATH if there
23066 # are no directories specified by -L.
23067 hardcode_minus_L_GCJ=yes
23068 if test "$GCC" = yes && test -z "$link_static_flag"; then
23069 # Neither direct hardcoding nor static linking is supported with a
23071 hardcode_direct_GCJ=unsupported
23076 if test "$host_cpu" = ia64; then
23077 # On IA64, the linker does run time linking by default, so we don't
23078 # have to do anything special.
23079 aix_use_runtimelinking=no
23080 exp_sym_flag='-Bexport'
23083 # If we're using GNU nm, then we don't want the "-C" option.
23084 # -C means demangle to AIX nm, but means don't demangle with GNU nm
23085 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23086 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'
23088 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'
23090 aix_use_runtimelinking=no
23092 # Test if we are trying to use run time linking or normal
23093 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23094 # need to do runtime linking.
23095 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23096 for ld_flag in $LDFLAGS; do
23097 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23098 aix_use_runtimelinking=yes
23104 exp_sym_flag='-bexport'
23105 no_entry_flag='-bnoentry'
23108 # When large executables or shared objects are built, AIX ld can
23109 # have problems creating the table of contents. If linking a library
23110 # or program results in "error TOC overflow" add -mminimal-toc to
23111 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
23112 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23114 archive_cmds_GCJ=''
23115 hardcode_direct_GCJ=yes
23116 hardcode_libdir_separator_GCJ=':'
23117 link_all_deplibs_GCJ=yes
23119 if test "$GCC" = yes; then
23120 case $host_os in aix4.[012]|aix4.[012].*)
23121 # We only want to do this on AIX 4.2 and lower, the check
23122 # below for broken collect2 doesn't work under 4.3+
23123 collect2name=`${CC} -print-prog-name=collect2`
23124 if test -f "$collect2name" && \
23125 strings "$collect2name" | grep resolve_lib_name >/dev/null
23127 # We have reworked collect2
23128 hardcode_direct_GCJ=yes
23130 # We have old collect2
23131 hardcode_direct_GCJ=unsupported
23132 # It fails to find uninstalled libraries when the uninstalled
23133 # path is not listed in the libpath. Setting hardcode_minus_L
23134 # to unsupported forces relinking
23135 hardcode_minus_L_GCJ=yes
23136 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23137 hardcode_libdir_separator_GCJ=
23140 shared_flag='-shared'
23141 if test "$aix_use_runtimelinking" = yes; then
23142 shared_flag="$shared_flag "'${wl}-G'
23146 if test "$host_cpu" = ia64; then
23147 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23148 # chokes on -Wl,-G. The following line is correct:
23151 if test "$aix_use_runtimelinking" = yes; then
23152 shared_flag='${wl}-G'
23154 shared_flag='${wl}-bM:SRE'
23159 # It seems that -bexpall does not export symbols beginning with
23160 # underscore (_), so it is better to generate a list of symbols to export.
23161 always_export_symbols_GCJ=yes
23162 if test "$aix_use_runtimelinking" = yes; then
23163 # Warning - without using the other runtime loading flags (-brtl),
23164 # -berok will link without error, but may produce a broken library.
23165 allow_undefined_flag_GCJ='-berok'
23166 # Determine the default libpath from the value encoded in an empty executable.
23167 cat >conftest.$ac_ext <<_ACEOF
23170 cat confdefs.h >>conftest.$ac_ext
23171 cat >>conftest.$ac_ext <<_ACEOF
23172 /* end confdefs.h. */
23182 rm -f conftest.$ac_objext conftest$ac_exeext
23183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23184 (eval $ac_link) 2>conftest.er1
23186 grep -v '^ *+' conftest.er1 >conftest.err
23188 cat conftest.err >&5
23189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190 (exit $ac_status); } &&
23191 { ac_try='test -z "$ac_c_werror_flag"
23192 || test ! -s conftest.err'
23193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23194 (eval $ac_try) 2>&5
23196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197 (exit $ac_status); }; } &&
23198 { ac_try='test -s conftest$ac_exeext'
23199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23200 (eval $ac_try) 2>&5
23202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203 (exit $ac_status); }; }; then
23205 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23207 # Check for a 64-bit object if we didn't find anything.
23208 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; }
23211 echo "$as_me: failed program was:" >&5
23212 sed 's/^/| /' conftest.$ac_ext >&5
23215 rm -f conftest.err conftest.$ac_objext \
23216 conftest$ac_exeext conftest.$ac_ext
23217 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23219 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23220 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"
23222 if test "$host_cpu" = ia64; then
23223 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23224 allow_undefined_flag_GCJ="-z nodefs"
23225 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"
23227 # Determine the default libpath from the value encoded in an empty executable.
23228 cat >conftest.$ac_ext <<_ACEOF
23231 cat confdefs.h >>conftest.$ac_ext
23232 cat >>conftest.$ac_ext <<_ACEOF
23233 /* end confdefs.h. */
23243 rm -f conftest.$ac_objext conftest$ac_exeext
23244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23245 (eval $ac_link) 2>conftest.er1
23247 grep -v '^ *+' conftest.er1 >conftest.err
23249 cat conftest.err >&5
23250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251 (exit $ac_status); } &&
23252 { ac_try='test -z "$ac_c_werror_flag"
23253 || test ! -s conftest.err'
23254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23255 (eval $ac_try) 2>&5
23257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258 (exit $ac_status); }; } &&
23259 { ac_try='test -s conftest$ac_exeext'
23260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23261 (eval $ac_try) 2>&5
23263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264 (exit $ac_status); }; }; then
23266 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23268 # Check for a 64-bit object if we didn't find anything.
23269 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; }
23272 echo "$as_me: failed program was:" >&5
23273 sed 's/^/| /' conftest.$ac_ext >&5
23276 rm -f conftest.err conftest.$ac_objext \
23277 conftest$ac_exeext conftest.$ac_ext
23278 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23280 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23281 # Warning - without using the other run time loading flags,
23282 # -berok will link without error, but may produce a broken library.
23283 no_undefined_flag_GCJ=' ${wl}-bernotok'
23284 allow_undefined_flag_GCJ=' ${wl}-berok'
23285 # -bexpall does not export symbols beginning with underscore (_)
23286 always_export_symbols_GCJ=yes
23287 # Exported symbols can be pulled into shared objects from archives
23288 whole_archive_flag_spec_GCJ=' '
23289 archive_cmds_need_lc_GCJ=yes
23290 # This is similar to how AIX traditionally builds it's shared libraries.
23291 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'
23297 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)'
23298 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23299 hardcode_minus_L_GCJ=yes
23300 # see comment about different semantics on the GNU ld section
23305 export_dynamic_flag_spec_GCJ=-rdynamic
23308 cygwin* | mingw* | pw32*)
23309 # When not using gcc, we currently assume that we are using
23310 # Microsoft Visual C++.
23311 # hardcode_libdir_flag_spec is actually meaningless, as there is
23312 # no search path for DLLs.
23313 hardcode_libdir_flag_spec_GCJ=' '
23314 allow_undefined_flag_GCJ=unsupported
23315 # Tell ltmain to make .lib files, not .a files.
23317 # Tell ltmain to make .dll files, not .so files.
23319 # FIXME: Setting linknames here is a bad hack.
23320 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23321 # The linker will automatically build a .lib file if we build a DLL.
23322 old_archive_From_new_cmds_GCJ='true'
23323 # FIXME: Should let the user specify the lib program.
23324 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
23325 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
23326 enable_shared_with_static_runtimes_GCJ=yes
23329 darwin* | rhapsody*)
23331 rhapsody* | darwin1.[012])
23332 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
23335 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23336 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23338 case ${MACOSX_DEPLOYMENT_TARGET} in
23340 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23343 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
23349 archive_cmds_need_lc_GCJ=no
23350 hardcode_direct_GCJ=no
23351 hardcode_automatic_GCJ=yes
23352 hardcode_shlibpath_var_GCJ=unsupported
23353 whole_archive_flag_spec_GCJ=''
23354 link_all_deplibs_GCJ=yes
23355 if test "$GCC" = yes ; then
23356 output_verbose_link_cmd='echo'
23357 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23358 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23359 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
23360 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}'
23361 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}'
23363 case $cc_basename in
23365 output_verbose_link_cmd='echo'
23366 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
23367 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23368 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
23369 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}'
23370 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}'
23380 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23381 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23382 hardcode_shlibpath_var_GCJ=no
23389 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23390 # support. Future versions do this automatically, but an explicit c++rt0.o
23391 # does not break anything, and helps significantly (at the cost of a little
23394 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23395 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23396 hardcode_direct_GCJ=yes
23397 hardcode_shlibpath_var_GCJ=no
23400 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23402 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23403 hardcode_direct_GCJ=yes
23404 hardcode_minus_L_GCJ=yes
23405 hardcode_shlibpath_var_GCJ=no
23408 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23409 freebsd* | kfreebsd*-gnu | dragonfly*)
23410 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23411 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23412 hardcode_direct_GCJ=yes
23413 hardcode_shlibpath_var_GCJ=no
23417 if test "$GCC" = yes; then
23418 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'
23420 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'
23422 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23423 hardcode_libdir_separator_GCJ=:
23424 hardcode_direct_GCJ=yes
23426 # hardcode_minus_L: Not really in the search PATH,
23427 # but as the default location of the library.
23428 hardcode_minus_L_GCJ=yes
23429 export_dynamic_flag_spec_GCJ='${wl}-E'
23433 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23434 case "$host_cpu" in
23436 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23439 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23443 case "$host_cpu" in
23445 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
23448 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23452 if test "$with_gnu_ld" = no; then
23453 case "$host_cpu" in
23455 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23456 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
23457 hardcode_libdir_separator_GCJ=:
23458 hardcode_direct_GCJ=no
23459 hardcode_shlibpath_var_GCJ=no
23462 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23463 hardcode_direct_GCJ=no
23464 hardcode_shlibpath_var_GCJ=no
23466 # hardcode_minus_L: Not really in the search PATH,
23467 # but as the default location of the library.
23468 hardcode_minus_L_GCJ=yes
23471 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23472 hardcode_libdir_separator_GCJ=:
23473 hardcode_direct_GCJ=yes
23474 export_dynamic_flag_spec_GCJ='${wl}-E'
23476 # hardcode_minus_L: Not really in the search PATH,
23477 # but as the default location of the library.
23478 hardcode_minus_L_GCJ=yes
23484 irix5* | irix6* | nonstopux*)
23485 if test "$GCC" = yes; then
23486 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'
23488 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'
23489 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
23491 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23492 hardcode_libdir_separator_GCJ=:
23493 link_all_deplibs_GCJ=yes
23497 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23498 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
23500 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
23502 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23503 hardcode_direct_GCJ=yes
23504 hardcode_shlibpath_var_GCJ=no
23508 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23509 hardcode_direct_GCJ=yes
23510 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23511 hardcode_libdir_separator_GCJ=:
23512 hardcode_shlibpath_var_GCJ=no
23516 hardcode_direct_GCJ=yes
23517 hardcode_shlibpath_var_GCJ=no
23518 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23519 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23520 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23521 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23522 export_dynamic_flag_spec_GCJ='${wl}-E'
23525 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23526 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23527 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23530 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23531 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23538 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23539 hardcode_minus_L_GCJ=yes
23540 allow_undefined_flag_GCJ=unsupported
23541 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'
23542 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23546 if test "$GCC" = yes; then
23547 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23548 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'
23550 allow_undefined_flag_GCJ=' -expect_unresolved \*'
23551 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'
23553 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23554 hardcode_libdir_separator_GCJ=:
23557 osf4* | osf5*) # as osf3* with the addition of -msym flag
23558 if test "$GCC" = yes; then
23559 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23560 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'
23561 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23563 allow_undefined_flag_GCJ=' -expect_unresolved \*'
23564 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'
23565 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~
23566 $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'
23568 # Both c and cxx compiler support -rpath directly
23569 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
23571 hardcode_libdir_separator_GCJ=:
23575 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23576 hardcode_shlibpath_var_GCJ=no
23577 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
23578 runpath_var=LD_RUN_PATH
23579 hardcode_runpath_var=yes
23583 no_undefined_flag_GCJ=' -z text'
23584 if test "$GCC" = yes; then
23586 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23587 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23588 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
23591 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23592 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23593 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23595 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23596 hardcode_shlibpath_var_GCJ=no
23598 solaris2.[0-5] | solaris2.[0-5].*) ;;
23600 # The compiler driver will combine linker options so we
23601 # cannot just pass the convience library names through
23602 # without $wl, iff we do not link with $LD.
23603 # Luckily, gcc supports the same syntax we need for Sun Studio.
23604 # Supported since Solaris 2.6 (maybe 2.5.1?)
23607 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
23609 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' ;;
23612 link_all_deplibs_GCJ=yes
23616 if test "x$host_vendor" = xsequent; then
23617 # Use $CC to link under sequent, because it throws in some extra .o
23618 # files that make .init and .fini sections work.
23619 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23621 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23623 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23624 hardcode_direct_GCJ=yes
23625 hardcode_minus_L_GCJ=yes
23626 hardcode_shlibpath_var_GCJ=no
23630 case $host_vendor in
23632 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23633 hardcode_direct_GCJ=yes # is this really true???
23636 ## LD is ld it makes a PLAMLIB
23637 ## CC just makes a GrossModule.
23638 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23639 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
23640 hardcode_direct_GCJ=no
23643 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23644 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
23647 runpath_var='LD_RUN_PATH'
23648 hardcode_shlibpath_var_GCJ=no
23652 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23653 hardcode_shlibpath_var_GCJ=no
23654 export_dynamic_flag_spec_GCJ='-Bexport'
23658 if test -d /usr/nec; then
23659 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23660 hardcode_shlibpath_var_GCJ=no
23661 runpath_var=LD_RUN_PATH
23662 hardcode_runpath_var=yes
23668 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23669 hardcode_direct_GCJ=yes
23670 hardcode_minus_L_GCJ=no
23671 hardcode_shlibpath_var_GCJ=no
23672 hardcode_runpath_var=yes
23673 runpath_var=LD_RUN_PATH
23676 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
23677 no_undefined_flag_GCJ='${wl}-z ${wl}text'
23678 if test "$GCC" = yes; then
23679 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23681 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23683 runpath_var='LD_RUN_PATH'
23684 hardcode_shlibpath_var_GCJ=no
23688 no_undefined_flag_GCJ=' -z text'
23689 # $CC -shared without GNU ld will not create a library from C++
23690 # object files and a static libstdc++, better avoid it by now
23691 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23692 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23693 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23694 hardcode_libdir_flag_spec_GCJ=
23695 hardcode_shlibpath_var_GCJ=no
23696 runpath_var='LD_RUN_PATH'
23700 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23701 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23702 hardcode_shlibpath_var_GCJ=no
23711 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
23712 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
23713 test "$ld_shlibs_GCJ" = no && can_build_shared=no
23715 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23716 if test "$GCC" = yes; then
23717 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23721 # Do we need to explicitly link libc?
23723 case "x$archive_cmds_need_lc_GCJ" in
23725 # Assume -lc should be added
23726 archive_cmds_need_lc_GCJ=yes
23728 if test "$enable_shared" = yes && test "$GCC" = yes; then
23729 case $archive_cmds_GCJ in
23731 # FIXME: we may have to deal with multi-command sequences.
23734 # Test whether the compiler implicitly links with -lc since on some
23735 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23736 # to ld, don't add -lc before -lgcc.
23737 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23738 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
23740 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23743 (eval $ac_compile) 2>&5
23745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23746 (exit $ac_status); } 2>conftest.err; then
23749 libobjs=conftest.$ac_objext
23751 wl=$lt_prog_compiler_wl_GCJ
23757 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
23758 allow_undefined_flag_GCJ=
23759 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23760 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23763 (exit $ac_status); }
23765 archive_cmds_need_lc_GCJ=no
23767 archive_cmds_need_lc_GCJ=yes
23769 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
23771 cat conftest.err 1>&5
23774 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
23775 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
23782 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23783 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
23784 library_names_spec=
23785 libname_spec='lib$name'
23789 postuninstall_cmds=
23793 shlibpath_overrides_runpath=unknown
23795 dynamic_linker="$host_os ld.so"
23796 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23797 if test "$GCC" = yes; then
23798 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23799 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23800 # if the path contains ";" then we assume it to be the separator
23801 # otherwise default to the standard path separator (i.e. ":") - it is
23802 # assumed that no part of a normal pathname contains ";" but that should
23803 # okay in the real world where ";" in dirpaths is itself problematic.
23804 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23806 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23809 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23811 need_lib_prefix=unknown
23812 hardcode_into_libs=no
23814 # when you set need_version to no, make sure it does not cause -set_version
23815 # flags to be left without arguments
23816 need_version=unknown
23821 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23822 shlibpath_var=LIBPATH
23824 # AIX 3 has no versioning support, so we append a major version to the name.
23825 soname_spec='${libname}${release}${shared_ext}$major'
23832 hardcode_into_libs=yes
23833 if test "$host_cpu" = ia64; then
23834 # AIX 5 supports IA64
23835 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23836 shlibpath_var=LD_LIBRARY_PATH
23838 # With GCC up to 2.95.x, collect2 would create an import file
23839 # for dependence libraries. The import file would start with
23840 # the line `#! .'. This would cause the generated library to
23841 # depend on `.', always an invalid library. This was fixed in
23842 # development snapshots of GCC prior to 3.0.
23844 aix4 | aix4.[01] | aix4.[01].*)
23845 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23847 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23850 can_build_shared=no
23854 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23855 # soname into executable. Probably we can add versioning support to
23856 # collect2, so additional links can be useful in future.
23857 if test "$aix_use_runtimelinking" = yes; then
23858 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23859 # instead of lib<name>.a to let people know that these are not
23860 # typical AIX shared libraries.
23861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23863 # We preserve .a as extension for shared libraries through AIX4.2
23864 # and later when we are not doing run time linking.
23865 library_names_spec='${libname}${release}.a $libname.a'
23866 soname_spec='${libname}${release}${shared_ext}$major'
23868 shlibpath_var=LIBPATH
23873 library_names_spec='$libname.ixlibrary $libname.a'
23874 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23875 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'
23879 library_names_spec='${libname}${shared_ext}'
23880 dynamic_linker="$host_os ld.so"
23881 shlibpath_var=LIBRARY_PATH
23887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23888 soname_spec='${libname}${release}${shared_ext}$major'
23889 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23890 shlibpath_var=LD_LIBRARY_PATH
23891 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23892 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23893 # the default ld.so.conf also contains /usr/contrib/lib and
23894 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23895 # libtool to hard-code these into programs
23898 cygwin* | mingw* | pw32*)
23899 version_type=windows
23904 case $GCC,$host_os in
23905 yes,cygwin* | yes,mingw* | yes,pw32*)
23906 library_names_spec='$libname.dll.a'
23907 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23908 postinstall_cmds='base_file=`basename \${file}`~
23909 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23910 dldir=$destdir/`dirname \$dlpath`~
23911 test -d \$dldir || mkdir -p \$dldir~
23912 $install_prog $dir/$dlname \$dldir/$dlname'
23913 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23914 dlpath=$dir/\$dldll~
23916 shlibpath_overrides_runpath=yes
23920 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23921 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23922 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23925 # MinGW DLLs use traditional 'lib' prefix
23926 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23927 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23928 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23929 # It is most probably a Windows format PATH printed by
23930 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23931 # path with ; separators, and with drive letters. We can handle the
23932 # drive letters (cygwin fileutils understands them), so leave them,
23933 # especially as we might pass files found there to a mingw objdump,
23934 # which wouldn't understand a cygwinified path. Ahh.
23935 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23937 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23941 # pw32 DLLs use 'pw' prefix rather than 'lib'
23942 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23948 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23951 dynamic_linker='Win32 ld.exe'
23952 # FIXME: first we should search . and the directory the executable is in
23956 darwin* | rhapsody*)
23957 dynamic_linker="$host_os dyld"
23958 version_type=darwin
23961 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23962 soname_spec='${libname}${release}${major}$shared_ext'
23963 shlibpath_overrides_runpath=yes
23964 shlibpath_var=DYLD_LIBRARY_PATH
23965 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
23966 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23967 if test "$GCC" = yes; then
23968 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"`
23970 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23972 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23980 soname_spec='${libname}${release}${shared_ext}$major'
23981 shlibpath_var=LD_LIBRARY_PATH
23992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23993 soname_spec='${libname}${release}${shared_ext}$major'
23994 shlibpath_var=LD_LIBRARY_PATH
23995 shlibpath_overrides_runpath=no
23996 hardcode_into_libs=yes
23997 dynamic_linker='GNU ld.so'
24000 freebsd* | dragonfly*)
24001 # DragonFly does not have aout. When/if they implement a new
24002 # versioning mechanism, adjust this.
24003 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
24004 version_type=freebsd-$objformat
24005 case $version_type in
24007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24012 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24016 shlibpath_var=LD_LIBRARY_PATH
24019 shlibpath_overrides_runpath=yes
24021 freebsd3.[01]* | freebsdelf3.[01]*)
24022 shlibpath_overrides_runpath=yes
24023 hardcode_into_libs=yes
24026 shlibpath_overrides_runpath=no
24027 hardcode_into_libs=yes
24036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24037 soname_spec='${libname}${release}${shared_ext}$major'
24038 shlibpath_var=LD_LIBRARY_PATH
24039 hardcode_into_libs=yes
24042 hpux9* | hpux10* | hpux11*)
24043 # Give a soname corresponding to the major version so that dld.sl refuses to
24044 # link against other versions.
24048 case "$host_cpu" in
24051 hardcode_into_libs=yes
24052 dynamic_linker="$host_os dld.so"
24053 shlibpath_var=LD_LIBRARY_PATH
24054 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24056 soname_spec='${libname}${release}${shared_ext}$major'
24057 if test "X$HPUX_IA64_MODE" = X32; then
24058 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24060 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24062 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24066 hardcode_into_libs=yes
24067 dynamic_linker="$host_os dld.sl"
24068 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24069 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24071 soname_spec='${libname}${release}${shared_ext}$major'
24072 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24073 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24077 dynamic_linker="$host_os dld.sl"
24078 shlibpath_var=SHLIB_PATH
24079 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24081 soname_spec='${libname}${release}${shared_ext}$major'
24084 # HP-UX runs *really* slowly unless shared libraries are mode 555.
24085 postinstall_cmds='chmod 555 $lib'
24088 irix5* | irix6* | nonstopux*)
24090 nonstopux*) version_type=nonstopux ;;
24092 if test "$lt_cv_prog_gnu_ld" = yes; then
24100 soname_spec='${libname}${release}${shared_ext}$major'
24101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24103 irix5* | nonstopux*)
24104 libsuff= shlibsuff=
24107 case $LD in # libtool.m4 will add one of these switches to LD
24108 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24109 libsuff= shlibsuff= libmagic=32-bit;;
24110 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24111 libsuff=32 shlibsuff=N32 libmagic=N32;;
24112 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24113 libsuff=64 shlibsuff=64 libmagic=64-bit;;
24114 *) libsuff= shlibsuff= libmagic=never-match;;
24118 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24119 shlibpath_overrides_runpath=no
24120 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24121 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24122 hardcode_into_libs=yes
24125 # No shared lib support for Linux oldld, aout, or coff.
24126 linux*oldld* | linux*aout* | linux*coff*)
24130 # This must be Linux ELF.
24135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24136 soname_spec='${libname}${release}${shared_ext}$major'
24137 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24138 shlibpath_var=LD_LIBRARY_PATH
24139 shlibpath_overrides_runpath=no
24140 # This implies no fast_install, which is unacceptable.
24141 # Some rework will be needed to allow for fast_install
24142 # before this can be enabled.
24143 hardcode_into_libs=yes
24145 # find out which ABI we are using
24147 case "$host_cpu" in
24148 x86_64*|s390x*|powerpc64*)
24149 echo '#line 24149 "configure"' > conftest.$ac_ext
24150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24151 (eval $ac_compile) 2>&5
24153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24154 (exit $ac_status); }; then
24155 case `/usr/bin/file conftest.$ac_objext` in
24158 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
24166 # Append ld.so.conf contents to the search path
24167 if test -f /etc/ld.so.conf; then
24168 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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
24169 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
24172 # We used to test for /lib/ld.so.1 and disable shared libraries on
24173 # powerpc, because MkLinux only supported shared libraries with the
24174 # GNU dynamic linker. Since this was broken with cross compilers,
24175 # most powerpc-linux boxes support dynamic linking these days and
24176 # people can always --disable-shared, the test was removed, and we
24177 # assume the GNU/Linux dynamic linker is in use.
24178 dynamic_linker='GNU/Linux ld.so'
24185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24186 soname_spec='${libname}${release}${shared_ext}$major'
24187 shlibpath_var=LD_LIBRARY_PATH
24188 shlibpath_overrides_runpath=no
24189 hardcode_into_libs=yes
24190 dynamic_linker='GNU ld.so'
24197 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24200 dynamic_linker='NetBSD (a.out) ld.so'
24202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24203 soname_spec='${libname}${release}${shared_ext}$major'
24204 dynamic_linker='NetBSD ld.elf_so'
24206 shlibpath_var=LD_LIBRARY_PATH
24207 shlibpath_overrides_runpath=yes
24208 hardcode_into_libs=yes
24213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24214 shlibpath_var=LD_LIBRARY_PATH
24215 shlibpath_overrides_runpath=yes
24222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24223 soname_spec='${libname}${release}${shared_ext}$major'
24224 shlibpath_var=LD_LIBRARY_PATH
24225 shlibpath_overrides_runpath=yes
24232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24233 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24234 shlibpath_var=LD_LIBRARY_PATH
24235 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24237 openbsd2.[89] | openbsd2.[89].*)
24238 shlibpath_overrides_runpath=no
24241 shlibpath_overrides_runpath=yes
24245 shlibpath_overrides_runpath=yes
24250 libname_spec='$name'
24253 library_names_spec='$libname${shared_ext} $libname.a'
24254 dynamic_linker='OS/2 ld.exe'
24255 shlibpath_var=LIBPATH
24258 osf3* | osf4* | osf5*)
24262 soname_spec='${libname}${release}${shared_ext}$major'
24263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24264 shlibpath_var=LD_LIBRARY_PATH
24265 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24266 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24271 soname_spec='${libname}${release}${shared_ext}$major'
24272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24273 shlibpath_var=LD_LIBRARY_PATH
24280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24281 soname_spec='${libname}${release}${shared_ext}$major'
24282 shlibpath_var=LD_LIBRARY_PATH
24283 shlibpath_overrides_runpath=yes
24284 hardcode_into_libs=yes
24285 # ldd complains unless libraries are executable
24286 postinstall_cmds='chmod +x $lib'
24291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24292 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24293 shlibpath_var=LD_LIBRARY_PATH
24294 shlibpath_overrides_runpath=yes
24295 if test "$with_gnu_ld" = yes; then
24301 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
24303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24304 soname_spec='${libname}${release}${shared_ext}$major'
24305 shlibpath_var=LD_LIBRARY_PATH
24306 case $host_vendor in
24308 shlibpath_overrides_runpath=no
24310 export_dynamic_flag_spec='${wl}-Blargedynsym'
24311 runpath_var=LD_RUN_PATH
24319 shlibpath_overrides_runpath=no
24320 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24326 if test -d /usr/nec ;then
24328 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24329 soname_spec='$libname${shared_ext}.$major'
24330 shlibpath_var=LD_LIBRARY_PATH
24336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24337 soname_spec='${libname}${release}${shared_ext}$major'
24338 shlibpath_var=LD_LIBRARY_PATH
24345 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24346 echo "${ECHO_T}$dynamic_linker" >&6
24347 test "$dynamic_linker" = no && can_build_shared=no
24349 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24350 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
24351 hardcode_action_GCJ=
24352 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
24353 test -n "$runpath_var_GCJ" || \
24354 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
24356 # We can hardcode non-existant directories.
24357 if test "$hardcode_direct_GCJ" != no &&
24358 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24359 # have to relink, otherwise we might link with an installed library
24360 # when we should be linking with a yet-to-be-installed one
24361 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
24362 test "$hardcode_minus_L_GCJ" != no; then
24363 # Linking always hardcodes the temporary library directory.
24364 hardcode_action_GCJ=relink
24366 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24367 hardcode_action_GCJ=immediate
24370 # We cannot hardcode anything, or else we can only hardcode existing
24372 hardcode_action_GCJ=unsupported
24374 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
24375 echo "${ECHO_T}$hardcode_action_GCJ" >&6
24377 if test "$hardcode_action_GCJ" = relink; then
24378 # Fast installation is not supported
24379 enable_fast_install=no
24380 elif test "$shlibpath_overrides_runpath" = yes ||
24381 test "$enable_shared" = no; then
24382 # Fast installation is not necessary
24383 enable_fast_install=needless
24388 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
24389 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
24390 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
24391 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
24392 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
24393 echo "$as_me:$LINENO: result: yes" >&5
24394 echo "${ECHO_T}yes" >&6
24396 # FIXME - insert some real tests, host_os isn't really good enough
24399 if test -n "$STRIP" ; then
24400 striplib="$STRIP -x"
24401 echo "$as_me:$LINENO: result: yes" >&5
24402 echo "${ECHO_T}yes" >&6
24404 echo "$as_me:$LINENO: result: no" >&5
24405 echo "${ECHO_T}no" >&6
24409 echo "$as_me:$LINENO: result: no" >&5
24410 echo "${ECHO_T}no" >&6
24415 if test "x$enable_dlopen" != xyes; then
24416 enable_dlopen=unknown
24417 enable_dlopen_self=unknown
24418 enable_dlopen_self_static=unknown
24425 lt_cv_dlopen="load_add_on"
24427 lt_cv_dlopen_self=yes
24431 lt_cv_dlopen="LoadLibrary"
24436 lt_cv_dlopen="dlopen"
24441 # if libdl is installed we need to link against it
24442 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24443 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24444 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24445 echo $ECHO_N "(cached) $ECHO_C" >&6
24447 ac_check_lib_save_LIBS=$LIBS
24449 cat >conftest.$ac_ext <<_ACEOF
24452 cat confdefs.h >>conftest.$ac_ext
24453 cat >>conftest.$ac_ext <<_ACEOF
24454 /* end confdefs.h. */
24456 /* Override any gcc2 internal prototype to avoid an error. */
24460 /* We use char because int might match the return type of a gcc2
24461 builtin and then its argument prototype would still apply. */
24471 rm -f conftest.$ac_objext conftest$ac_exeext
24472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24473 (eval $ac_link) 2>conftest.er1
24475 grep -v '^ *+' conftest.er1 >conftest.err
24477 cat conftest.err >&5
24478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479 (exit $ac_status); } &&
24480 { ac_try='test -z "$ac_c_werror_flag"
24481 || test ! -s conftest.err'
24482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24483 (eval $ac_try) 2>&5
24485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24486 (exit $ac_status); }; } &&
24487 { ac_try='test -s conftest$ac_exeext'
24488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24489 (eval $ac_try) 2>&5
24491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492 (exit $ac_status); }; }; then
24493 ac_cv_lib_dl_dlopen=yes
24495 echo "$as_me: failed program was:" >&5
24496 sed 's/^/| /' conftest.$ac_ext >&5
24498 ac_cv_lib_dl_dlopen=no
24500 rm -f conftest.err conftest.$ac_objext \
24501 conftest$ac_exeext conftest.$ac_ext
24502 LIBS=$ac_check_lib_save_LIBS
24504 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24505 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24506 if test $ac_cv_lib_dl_dlopen = yes; then
24507 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
24510 lt_cv_dlopen="dyld"
24512 lt_cv_dlopen_self=yes
24519 echo "$as_me:$LINENO: checking for shl_load" >&5
24520 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
24521 if test "${ac_cv_func_shl_load+set}" = set; then
24522 echo $ECHO_N "(cached) $ECHO_C" >&6
24524 cat >conftest.$ac_ext <<_ACEOF
24527 cat confdefs.h >>conftest.$ac_ext
24528 cat >>conftest.$ac_ext <<_ACEOF
24529 /* end confdefs.h. */
24530 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
24531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24532 #define shl_load innocuous_shl_load
24534 /* System header to define __stub macros and hopefully few prototypes,
24535 which can conflict with char shl_load (); below.
24536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24537 <limits.h> exists even on freestanding compilers. */
24540 # include <limits.h>
24542 # include <assert.h>
24547 /* Override any gcc2 internal prototype to avoid an error. */
24552 /* We use char because int might match the return type of a gcc2
24553 builtin and then its argument prototype would still apply. */
24555 /* The GNU C library defines this for functions which it implements
24556 to always fail with ENOSYS. Some functions are actually named
24557 something starting with __ and the normal name is an alias. */
24558 #if defined (__stub_shl_load) || defined (__stub___shl_load)
24561 char (*f) () = shl_load;
24570 return f != shl_load;
24575 rm -f conftest.$ac_objext conftest$ac_exeext
24576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24577 (eval $ac_link) 2>conftest.er1
24579 grep -v '^ *+' conftest.er1 >conftest.err
24581 cat conftest.err >&5
24582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24583 (exit $ac_status); } &&
24584 { ac_try='test -z "$ac_c_werror_flag"
24585 || test ! -s conftest.err'
24586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24587 (eval $ac_try) 2>&5
24589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24590 (exit $ac_status); }; } &&
24591 { ac_try='test -s conftest$ac_exeext'
24592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24593 (eval $ac_try) 2>&5
24595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596 (exit $ac_status); }; }; then
24597 ac_cv_func_shl_load=yes
24599 echo "$as_me: failed program was:" >&5
24600 sed 's/^/| /' conftest.$ac_ext >&5
24602 ac_cv_func_shl_load=no
24604 rm -f conftest.err conftest.$ac_objext \
24605 conftest$ac_exeext conftest.$ac_ext
24607 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
24608 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
24609 if test $ac_cv_func_shl_load = yes; then
24610 lt_cv_dlopen="shl_load"
24612 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
24613 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
24614 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
24615 echo $ECHO_N "(cached) $ECHO_C" >&6
24617 ac_check_lib_save_LIBS=$LIBS
24619 cat >conftest.$ac_ext <<_ACEOF
24622 cat confdefs.h >>conftest.$ac_ext
24623 cat >>conftest.$ac_ext <<_ACEOF
24624 /* end confdefs.h. */
24626 /* Override any gcc2 internal prototype to avoid an error. */
24630 /* We use char because int might match the return type of a gcc2
24631 builtin and then its argument prototype would still apply. */
24641 rm -f conftest.$ac_objext conftest$ac_exeext
24642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24643 (eval $ac_link) 2>conftest.er1
24645 grep -v '^ *+' conftest.er1 >conftest.err
24647 cat conftest.err >&5
24648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24649 (exit $ac_status); } &&
24650 { ac_try='test -z "$ac_c_werror_flag"
24651 || test ! -s conftest.err'
24652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24653 (eval $ac_try) 2>&5
24655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24656 (exit $ac_status); }; } &&
24657 { ac_try='test -s conftest$ac_exeext'
24658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24659 (eval $ac_try) 2>&5
24661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662 (exit $ac_status); }; }; then
24663 ac_cv_lib_dld_shl_load=yes
24665 echo "$as_me: failed program was:" >&5
24666 sed 's/^/| /' conftest.$ac_ext >&5
24668 ac_cv_lib_dld_shl_load=no
24670 rm -f conftest.err conftest.$ac_objext \
24671 conftest$ac_exeext conftest.$ac_ext
24672 LIBS=$ac_check_lib_save_LIBS
24674 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
24675 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
24676 if test $ac_cv_lib_dld_shl_load = yes; then
24677 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
24679 echo "$as_me:$LINENO: checking for dlopen" >&5
24680 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
24681 if test "${ac_cv_func_dlopen+set}" = set; then
24682 echo $ECHO_N "(cached) $ECHO_C" >&6
24684 cat >conftest.$ac_ext <<_ACEOF
24687 cat confdefs.h >>conftest.$ac_ext
24688 cat >>conftest.$ac_ext <<_ACEOF
24689 /* end confdefs.h. */
24690 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
24691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24692 #define dlopen innocuous_dlopen
24694 /* System header to define __stub macros and hopefully few prototypes,
24695 which can conflict with char dlopen (); below.
24696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24697 <limits.h> exists even on freestanding compilers. */
24700 # include <limits.h>
24702 # include <assert.h>
24707 /* Override any gcc2 internal prototype to avoid an error. */
24712 /* We use char because int might match the return type of a gcc2
24713 builtin and then its argument prototype would still apply. */
24715 /* The GNU C library defines this for functions which it implements
24716 to always fail with ENOSYS. Some functions are actually named
24717 something starting with __ and the normal name is an alias. */
24718 #if defined (__stub_dlopen) || defined (__stub___dlopen)
24721 char (*f) () = dlopen;
24730 return f != dlopen;
24735 rm -f conftest.$ac_objext conftest$ac_exeext
24736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24737 (eval $ac_link) 2>conftest.er1
24739 grep -v '^ *+' conftest.er1 >conftest.err
24741 cat conftest.err >&5
24742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743 (exit $ac_status); } &&
24744 { ac_try='test -z "$ac_c_werror_flag"
24745 || test ! -s conftest.err'
24746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24747 (eval $ac_try) 2>&5
24749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24750 (exit $ac_status); }; } &&
24751 { ac_try='test -s conftest$ac_exeext'
24752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24753 (eval $ac_try) 2>&5
24755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24756 (exit $ac_status); }; }; then
24757 ac_cv_func_dlopen=yes
24759 echo "$as_me: failed program was:" >&5
24760 sed 's/^/| /' conftest.$ac_ext >&5
24762 ac_cv_func_dlopen=no
24764 rm -f conftest.err conftest.$ac_objext \
24765 conftest$ac_exeext conftest.$ac_ext
24767 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
24768 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
24769 if test $ac_cv_func_dlopen = yes; then
24770 lt_cv_dlopen="dlopen"
24772 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24773 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24774 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24775 echo $ECHO_N "(cached) $ECHO_C" >&6
24777 ac_check_lib_save_LIBS=$LIBS
24779 cat >conftest.$ac_ext <<_ACEOF
24782 cat confdefs.h >>conftest.$ac_ext
24783 cat >>conftest.$ac_ext <<_ACEOF
24784 /* end confdefs.h. */
24786 /* Override any gcc2 internal prototype to avoid an error. */
24790 /* We use char because int might match the return type of a gcc2
24791 builtin and then its argument prototype would still apply. */
24801 rm -f conftest.$ac_objext conftest$ac_exeext
24802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24803 (eval $ac_link) 2>conftest.er1
24805 grep -v '^ *+' conftest.er1 >conftest.err
24807 cat conftest.err >&5
24808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809 (exit $ac_status); } &&
24810 { ac_try='test -z "$ac_c_werror_flag"
24811 || test ! -s conftest.err'
24812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24813 (eval $ac_try) 2>&5
24815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24816 (exit $ac_status); }; } &&
24817 { ac_try='test -s conftest$ac_exeext'
24818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24819 (eval $ac_try) 2>&5
24821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24822 (exit $ac_status); }; }; then
24823 ac_cv_lib_dl_dlopen=yes
24825 echo "$as_me: failed program was:" >&5
24826 sed 's/^/| /' conftest.$ac_ext >&5
24828 ac_cv_lib_dl_dlopen=no
24830 rm -f conftest.err conftest.$ac_objext \
24831 conftest$ac_exeext conftest.$ac_ext
24832 LIBS=$ac_check_lib_save_LIBS
24834 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24835 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24836 if test $ac_cv_lib_dl_dlopen = yes; then
24837 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
24839 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
24840 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
24841 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
24842 echo $ECHO_N "(cached) $ECHO_C" >&6
24844 ac_check_lib_save_LIBS=$LIBS
24845 LIBS="-lsvld $LIBS"
24846 cat >conftest.$ac_ext <<_ACEOF
24849 cat confdefs.h >>conftest.$ac_ext
24850 cat >>conftest.$ac_ext <<_ACEOF
24851 /* end confdefs.h. */
24853 /* Override any gcc2 internal prototype to avoid an error. */
24857 /* We use char because int might match the return type of a gcc2
24858 builtin and then its argument prototype would still apply. */
24868 rm -f conftest.$ac_objext conftest$ac_exeext
24869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24870 (eval $ac_link) 2>conftest.er1
24872 grep -v '^ *+' conftest.er1 >conftest.err
24874 cat conftest.err >&5
24875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24876 (exit $ac_status); } &&
24877 { ac_try='test -z "$ac_c_werror_flag"
24878 || test ! -s conftest.err'
24879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24880 (eval $ac_try) 2>&5
24882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883 (exit $ac_status); }; } &&
24884 { ac_try='test -s conftest$ac_exeext'
24885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24886 (eval $ac_try) 2>&5
24888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889 (exit $ac_status); }; }; then
24890 ac_cv_lib_svld_dlopen=yes
24892 echo "$as_me: failed program was:" >&5
24893 sed 's/^/| /' conftest.$ac_ext >&5
24895 ac_cv_lib_svld_dlopen=no
24897 rm -f conftest.err conftest.$ac_objext \
24898 conftest$ac_exeext conftest.$ac_ext
24899 LIBS=$ac_check_lib_save_LIBS
24901 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
24902 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
24903 if test $ac_cv_lib_svld_dlopen = yes; then
24904 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
24906 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
24907 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
24908 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
24909 echo $ECHO_N "(cached) $ECHO_C" >&6
24911 ac_check_lib_save_LIBS=$LIBS
24913 cat >conftest.$ac_ext <<_ACEOF
24916 cat confdefs.h >>conftest.$ac_ext
24917 cat >>conftest.$ac_ext <<_ACEOF
24918 /* end confdefs.h. */
24920 /* Override any gcc2 internal prototype to avoid an error. */
24924 /* We use char because int might match the return type of a gcc2
24925 builtin and then its argument prototype would still apply. */
24935 rm -f conftest.$ac_objext conftest$ac_exeext
24936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24937 (eval $ac_link) 2>conftest.er1
24939 grep -v '^ *+' conftest.er1 >conftest.err
24941 cat conftest.err >&5
24942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24943 (exit $ac_status); } &&
24944 { ac_try='test -z "$ac_c_werror_flag"
24945 || test ! -s conftest.err'
24946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24947 (eval $ac_try) 2>&5
24949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950 (exit $ac_status); }; } &&
24951 { ac_try='test -s conftest$ac_exeext'
24952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24953 (eval $ac_try) 2>&5
24955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24956 (exit $ac_status); }; }; then
24957 ac_cv_lib_dld_dld_link=yes
24959 echo "$as_me: failed program was:" >&5
24960 sed 's/^/| /' conftest.$ac_ext >&5
24962 ac_cv_lib_dld_dld_link=no
24964 rm -f conftest.err conftest.$ac_objext \
24965 conftest$ac_exeext conftest.$ac_ext
24966 LIBS=$ac_check_lib_save_LIBS
24968 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
24969 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
24970 if test $ac_cv_lib_dld_dld_link = yes; then
24971 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
24992 if test "x$lt_cv_dlopen" != xno; then
24998 case $lt_cv_dlopen in
25000 save_CPPFLAGS="$CPPFLAGS"
25001 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
25003 save_LDFLAGS="$LDFLAGS"
25004 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
25007 LIBS="$lt_cv_dlopen_libs $LIBS"
25009 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
25010 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
25011 if test "${lt_cv_dlopen_self+set}" = set; then
25012 echo $ECHO_N "(cached) $ECHO_C" >&6
25014 if test "$cross_compiling" = yes; then :
25015 lt_cv_dlopen_self=cross
25017 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
25018 lt_status=$lt_dlunknown
25019 cat > conftest.$ac_ext <<EOF
25020 #line 25020 "configure"
25021 #include "confdefs.h"
25030 # define LT_DLGLOBAL RTLD_GLOBAL
25033 # define LT_DLGLOBAL DL_GLOBAL
25035 # define LT_DLGLOBAL 0
25039 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
25040 find out it does not work in some platform. */
25041 #ifndef LT_DLLAZY_OR_NOW
25043 # define LT_DLLAZY_OR_NOW RTLD_LAZY
25046 # define LT_DLLAZY_OR_NOW DL_LAZY
25049 # define LT_DLLAZY_OR_NOW RTLD_NOW
25052 # define LT_DLLAZY_OR_NOW DL_NOW
25054 # define LT_DLLAZY_OR_NOW 0
25062 extern "C" void exit (int);
25065 void fnord() { int i=42;}
25068 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
25069 int status = $lt_dlunknown;
25073 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
25074 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
25075 /* dlclose (self); */
25081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25082 (eval $ac_link) 2>&5
25084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
25086 (./conftest; exit; ) 2>/dev/null
25088 case x$lt_status in
25089 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
25090 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
25091 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
25094 # compilation failed
25095 lt_cv_dlopen_self=no
25102 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
25103 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
25105 if test "x$lt_cv_dlopen_self" = xyes; then
25106 LDFLAGS="$LDFLAGS $link_static_flag"
25107 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
25108 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
25109 if test "${lt_cv_dlopen_self_static+set}" = set; then
25110 echo $ECHO_N "(cached) $ECHO_C" >&6
25112 if test "$cross_compiling" = yes; then :
25113 lt_cv_dlopen_self_static=cross
25115 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
25116 lt_status=$lt_dlunknown
25117 cat > conftest.$ac_ext <<EOF
25118 #line 25118 "configure"
25119 #include "confdefs.h"
25128 # define LT_DLGLOBAL RTLD_GLOBAL
25131 # define LT_DLGLOBAL DL_GLOBAL
25133 # define LT_DLGLOBAL 0
25137 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
25138 find out it does not work in some platform. */
25139 #ifndef LT_DLLAZY_OR_NOW
25141 # define LT_DLLAZY_OR_NOW RTLD_LAZY
25144 # define LT_DLLAZY_OR_NOW DL_LAZY
25147 # define LT_DLLAZY_OR_NOW RTLD_NOW
25150 # define LT_DLLAZY_OR_NOW DL_NOW
25152 # define LT_DLLAZY_OR_NOW 0
25160 extern "C" void exit (int);
25163 void fnord() { int i=42;}
25166 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
25167 int status = $lt_dlunknown;
25171 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
25172 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
25173 /* dlclose (self); */
25179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25180 (eval $ac_link) 2>&5
25182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
25184 (./conftest; exit; ) 2>/dev/null
25186 case x$lt_status in
25187 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
25188 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
25189 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
25192 # compilation failed
25193 lt_cv_dlopen_self_static=no
25200 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
25201 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
25204 CPPFLAGS="$save_CPPFLAGS"
25205 LDFLAGS="$save_LDFLAGS"
25210 case $lt_cv_dlopen_self in
25211 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
25212 *) enable_dlopen_self=unknown ;;
25215 case $lt_cv_dlopen_self_static in
25216 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
25217 *) enable_dlopen_self_static=unknown ;;
25222 # The else clause should only fire when bootstrapping the
25223 # libtool distribution, otherwise you forgot to ship ltmain.sh
25224 # with your package, and you will get complaints that there are
25225 # no rules to generate ltmain.sh.
25226 if test -f "$ltmain"; then
25227 # See if we are running on zsh, and set the options which allow our commands through
25228 # without removal of \ escapes.
25229 if test -n "${ZSH_VERSION+set}" ; then
25230 setopt NO_GLOB_SUBST
25232 # Now quote all the things that may contain metacharacters while being
25233 # careful not to overquote the AC_SUBSTed values. We take copies of the
25234 # variables and quote the copies for generation of the libtool script.
25235 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
25237 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25238 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25239 deplibs_check_method reload_flag reload_cmds need_locks \
25240 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25241 lt_cv_sys_global_symbol_to_c_name_address \
25242 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25243 old_postinstall_cmds old_postuninstall_cmds \
25247 lt_prog_compiler_wl_GCJ \
25248 lt_prog_compiler_pic_GCJ \
25249 lt_prog_compiler_static_GCJ \
25250 lt_prog_compiler_no_builtin_flag_GCJ \
25251 export_dynamic_flag_spec_GCJ \
25252 thread_safe_flag_spec_GCJ \
25253 whole_archive_flag_spec_GCJ \
25254 enable_shared_with_static_runtimes_GCJ \
25255 old_archive_cmds_GCJ \
25256 old_archive_from_new_cmds_GCJ \
25257 predep_objects_GCJ \
25258 postdep_objects_GCJ \
25261 compiler_lib_search_path_GCJ \
25263 archive_expsym_cmds_GCJ \
25264 postinstall_cmds_GCJ \
25265 postuninstall_cmds_GCJ \
25266 old_archive_from_expsyms_cmds_GCJ \
25267 allow_undefined_flag_GCJ \
25268 no_undefined_flag_GCJ \
25269 export_symbols_cmds_GCJ \
25270 hardcode_libdir_flag_spec_GCJ \
25271 hardcode_libdir_flag_spec_ld_GCJ \
25272 hardcode_libdir_separator_GCJ \
25273 hardcode_automatic_GCJ \
25275 module_expsym_cmds_GCJ \
25276 lt_cv_prog_compiler_c_o_GCJ \
25277 exclude_expsyms_GCJ \
25278 include_expsyms_GCJ; do
25281 old_archive_cmds_GCJ | \
25282 old_archive_from_new_cmds_GCJ | \
25283 archive_cmds_GCJ | \
25284 archive_expsym_cmds_GCJ | \
25285 module_cmds_GCJ | \
25286 module_expsym_cmds_GCJ | \
25287 old_archive_from_expsyms_cmds_GCJ | \
25288 export_symbols_cmds_GCJ | \
25289 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25290 postinstall_cmds | postuninstall_cmds | \
25291 old_postinstall_cmds | old_postuninstall_cmds | \
25292 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25293 # Double-quote double-evaled strings.
25294 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25297 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25303 *'\$0 --fallback-echo"')
25304 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25310 cat <<__EOF__ >> "$cfgfile"
25311 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25313 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25315 # Shell to use when invoking shell scripts.
25318 # Whether or not to build shared libraries.
25319 build_libtool_libs=$enable_shared
25321 # Whether or not to build static libraries.
25322 build_old_libs=$enable_static
25324 # Whether or not to add -lc for building shared libraries.
25325 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25327 # Whether or not to disallow shared libs when runtime libs are static
25328 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25330 # Whether or not to optimize for fast installation.
25331 fast_install=$enable_fast_install
25334 host_alias=$host_alias
25338 # The build system.
25339 build_alias=$build_alias
25343 # An echo program that does not interpret backslashes.
25348 AR_FLAGS=$lt_AR_FLAGS
25353 # A language-specific compiler.
25354 CC=$lt_compiler_GCJ
25356 # Is the compiler the GNU C compiler?
25362 # The linker used to build libraries.
25365 # Whether we need hard or soft links.
25368 # A BSD-compatible nm program.
25371 # A symbol stripping program
25374 # Used to examine libraries when file_magic_cmd begins "file"
25375 MAGIC_CMD=$MAGIC_CMD
25377 # Used on cygwin: DLL creation program.
25380 # Used on cygwin: object dumper.
25383 # Used on cygwin: assembler.
25386 # The name of the directory that contains temporary libtool files.
25389 # How to create reloadable object files.
25390 reload_flag=$lt_reload_flag
25391 reload_cmds=$lt_reload_cmds
25393 # How to pass a linker flag through the compiler.
25394 wl=$lt_lt_prog_compiler_wl_GCJ
25396 # Object file suffix (normally "o").
25397 objext="$ac_objext"
25399 # Old archive suffix (normally "a").
25402 # Shared library suffix (normally ".so").
25403 shrext_cmds='$shrext_cmds'
25405 # Executable file suffix (normally "").
25408 # Additional compiler flags for building library objects.
25409 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25412 # What is the maximum length of a command?
25413 max_cmd_len=$lt_cv_sys_max_cmd_len
25415 # Does compiler simultaneously support -c and -o options?
25416 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25418 # Must we lock files when doing compilation?
25419 need_locks=$lt_need_locks
25421 # Do we need the lib prefix for modules?
25422 need_lib_prefix=$need_lib_prefix
25424 # Do we need a version for libraries?
25425 need_version=$need_version
25427 # Whether dlopen is supported.
25428 dlopen_support=$enable_dlopen
25430 # Whether dlopen of programs is supported.
25431 dlopen_self=$enable_dlopen_self
25433 # Whether dlopen of statically linked programs is supported.
25434 dlopen_self_static=$enable_dlopen_self_static
25436 # Compiler flag to prevent dynamic linking.
25437 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25439 # Compiler flag to turn off builtin functions.
25440 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25442 # Compiler flag to allow reflexive dlopens.
25443 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25445 # Compiler flag to generate shared objects directly from archives.
25446 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25448 # Compiler flag to generate thread-safe objects.
25449 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25451 # Library versioning type.
25452 version_type=$version_type
25454 # Format of library name prefix.
25455 libname_spec=$lt_libname_spec
25457 # List of archive names. First name is the real one, the rest are links.
25458 # The last name is the one that the linker finds with -lNAME.
25459 library_names_spec=$lt_library_names_spec
25461 # The coded name of the library, if different from the real name.
25462 soname_spec=$lt_soname_spec
25464 # Commands used to build and install an old-style archive.
25466 old_archive_cmds=$lt_old_archive_cmds_GCJ
25467 old_postinstall_cmds=$lt_old_postinstall_cmds
25468 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25470 # Create an old-style archive from a shared archive.
25471 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25473 # Create a temporary old-style archive to link instead of a shared archive.
25474 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25476 # Commands used to build and install a shared archive.
25477 archive_cmds=$lt_archive_cmds_GCJ
25478 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25479 postinstall_cmds=$lt_postinstall_cmds
25480 postuninstall_cmds=$lt_postuninstall_cmds
25482 # Commands used to build a loadable module (assumed same as above if empty)
25483 module_cmds=$lt_module_cmds_GCJ
25484 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25486 # Commands to strip libraries.
25487 old_striplib=$lt_old_striplib
25488 striplib=$lt_striplib
25490 # Dependencies to place before the objects being linked to create a
25492 predep_objects=$lt_predep_objects_GCJ
25494 # Dependencies to place after the objects being linked to create a
25496 postdep_objects=$lt_postdep_objects_GCJ
25498 # Dependencies to place before the objects being linked to create a
25500 predeps=$lt_predeps_GCJ
25502 # Dependencies to place after the objects being linked to create a
25504 postdeps=$lt_postdeps_GCJ
25506 # The library search path used internally by the compiler when linking
25507 # a shared library.
25508 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25510 # Method to check whether dependent libraries are shared objects.
25511 deplibs_check_method=$lt_deplibs_check_method
25513 # Command to use when deplibs_check_method == file_magic.
25514 file_magic_cmd=$lt_file_magic_cmd
25516 # Flag that allows shared libraries with undefined symbols to be built.
25517 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25519 # Flag that forces no undefined symbols.
25520 no_undefined_flag=$lt_no_undefined_flag_GCJ
25522 # Commands used to finish a libtool library installation in a directory.
25523 finish_cmds=$lt_finish_cmds
25525 # Same as above, but a single script fragment to be evaled but not shown.
25526 finish_eval=$lt_finish_eval
25528 # Take the output of nm and produce a listing of raw symbols and C names.
25529 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25531 # Transform the output of nm in a proper C declaration
25532 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25534 # Transform the output of nm in a C name address pair
25535 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25537 # This is the shared library runtime path variable.
25538 runpath_var=$runpath_var
25540 # This is the shared library path variable.
25541 shlibpath_var=$shlibpath_var
25543 # Is shlibpath searched before the hard-coded library search path?
25544 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25546 # How to hardcode a shared library path into an executable.
25547 hardcode_action=$hardcode_action_GCJ
25549 # Whether we should hardcode library paths into libraries.
25550 hardcode_into_libs=$hardcode_into_libs
25552 # Flag to hardcode \$libdir into a binary during linking.
25553 # This must work even if \$libdir does not exist.
25554 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25556 # If ld is used when linking, flag to hardcode \$libdir into
25557 # a binary during linking. This must work even if \$libdir does
25559 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25561 # Whether we need a single -rpath flag with a separated argument.
25562 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25564 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25565 # resulting binary.
25566 hardcode_direct=$hardcode_direct_GCJ
25568 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25569 # resulting binary.
25570 hardcode_minus_L=$hardcode_minus_L_GCJ
25572 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25573 # the resulting binary.
25574 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25576 # Set to yes if building a shared library automatically hardcodes DIR into the library
25577 # and all subsequent libraries and executables linked against it.
25578 hardcode_automatic=$hardcode_automatic_GCJ
25580 # Variables whose values should be saved in libtool wrapper scripts and
25581 # restored at relink time.
25582 variables_saved_for_relink="$variables_saved_for_relink"
25584 # Whether libtool must link a program against all its dependency libraries.
25585 link_all_deplibs=$link_all_deplibs_GCJ
25587 # Compile-time system search path for libraries
25588 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25590 # Run-time system search path for libraries
25591 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25593 # Fix the shell variable \$srcfile for the compiler.
25594 fix_srcfile_path="$fix_srcfile_path_GCJ"
25596 # Set to yes if exported symbols are required.
25597 always_export_symbols=$always_export_symbols_GCJ
25599 # The commands to list exported symbols.
25600 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25602 # The commands to extract the exported symbol list from a shared archive.
25603 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25605 # Symbols that should not be listed in the preloaded symbols.
25606 exclude_expsyms=$lt_exclude_expsyms_GCJ
25608 # Symbols that must always be exported.
25609 include_expsyms=$lt_include_expsyms_GCJ
25611 # ### END LIBTOOL TAG CONFIG: $tagname
25617 # If there is no Makefile yet, we rely on a make rule to execute
25618 # `config.status --recheck' to rerun these tests and create the
25619 # libtool script then.
25620 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25621 if test -f "$ltmain_in"; then
25622 test -f Makefile && make "$ltmain"
25628 ac_cpp='$CPP $CPPFLAGS'
25629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25644 # Source file extension for RC test sources.
25647 # Object file extension for compiled RC test sources.
25651 # Code to be used in simple compile tests
25652 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25654 # Code to be used in simple link tests
25655 lt_simple_link_test_code="$lt_simple_compile_test_code"
25657 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25659 # If no C compiler was specified, use CC.
25662 # Allow CC to be a program name with arguments.
25666 # save warnings/boilerplate of simple test code
25667 ac_outfile=conftest.$ac_objext
25668 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
25669 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
25670 _lt_compiler_boilerplate=`cat conftest.err`
25673 ac_outfile=conftest.$ac_objext
25674 printf "$lt_simple_link_test_code" >conftest.$ac_ext
25675 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
25676 _lt_linker_boilerplate=`cat conftest.err`
25680 # Allow CC to be a program name with arguments.
25685 for cc_temp in $compiler""; do
25687 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25688 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25693 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25695 lt_cv_prog_compiler_c_o_RC=yes
25697 # The else clause should only fire when bootstrapping the
25698 # libtool distribution, otherwise you forgot to ship ltmain.sh
25699 # with your package, and you will get complaints that there are
25700 # no rules to generate ltmain.sh.
25701 if test -f "$ltmain"; then
25702 # See if we are running on zsh, and set the options which allow our commands through
25703 # without removal of \ escapes.
25704 if test -n "${ZSH_VERSION+set}" ; then
25705 setopt NO_GLOB_SUBST
25707 # Now quote all the things that may contain metacharacters while being
25708 # careful not to overquote the AC_SUBSTed values. We take copies of the
25709 # variables and quote the copies for generation of the libtool script.
25710 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
25712 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25713 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25714 deplibs_check_method reload_flag reload_cmds need_locks \
25715 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25716 lt_cv_sys_global_symbol_to_c_name_address \
25717 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25718 old_postinstall_cmds old_postuninstall_cmds \
25722 lt_prog_compiler_wl_RC \
25723 lt_prog_compiler_pic_RC \
25724 lt_prog_compiler_static_RC \
25725 lt_prog_compiler_no_builtin_flag_RC \
25726 export_dynamic_flag_spec_RC \
25727 thread_safe_flag_spec_RC \
25728 whole_archive_flag_spec_RC \
25729 enable_shared_with_static_runtimes_RC \
25730 old_archive_cmds_RC \
25731 old_archive_from_new_cmds_RC \
25732 predep_objects_RC \
25733 postdep_objects_RC \
25736 compiler_lib_search_path_RC \
25738 archive_expsym_cmds_RC \
25739 postinstall_cmds_RC \
25740 postuninstall_cmds_RC \
25741 old_archive_from_expsyms_cmds_RC \
25742 allow_undefined_flag_RC \
25743 no_undefined_flag_RC \
25744 export_symbols_cmds_RC \
25745 hardcode_libdir_flag_spec_RC \
25746 hardcode_libdir_flag_spec_ld_RC \
25747 hardcode_libdir_separator_RC \
25748 hardcode_automatic_RC \
25750 module_expsym_cmds_RC \
25751 lt_cv_prog_compiler_c_o_RC \
25752 exclude_expsyms_RC \
25753 include_expsyms_RC; do
25756 old_archive_cmds_RC | \
25757 old_archive_from_new_cmds_RC | \
25758 archive_cmds_RC | \
25759 archive_expsym_cmds_RC | \
25761 module_expsym_cmds_RC | \
25762 old_archive_from_expsyms_cmds_RC | \
25763 export_symbols_cmds_RC | \
25764 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25765 postinstall_cmds | postuninstall_cmds | \
25766 old_postinstall_cmds | old_postuninstall_cmds | \
25767 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25768 # Double-quote double-evaled strings.
25769 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25772 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25778 *'\$0 --fallback-echo"')
25779 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25785 cat <<__EOF__ >> "$cfgfile"
25786 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25788 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25790 # Shell to use when invoking shell scripts.
25793 # Whether or not to build shared libraries.
25794 build_libtool_libs=$enable_shared
25796 # Whether or not to build static libraries.
25797 build_old_libs=$enable_static
25799 # Whether or not to add -lc for building shared libraries.
25800 build_libtool_need_lc=$archive_cmds_need_lc_RC
25802 # Whether or not to disallow shared libs when runtime libs are static
25803 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25805 # Whether or not to optimize for fast installation.
25806 fast_install=$enable_fast_install
25809 host_alias=$host_alias
25813 # The build system.
25814 build_alias=$build_alias
25818 # An echo program that does not interpret backslashes.
25823 AR_FLAGS=$lt_AR_FLAGS
25828 # A language-specific compiler.
25831 # Is the compiler the GNU C compiler?
25837 # The linker used to build libraries.
25840 # Whether we need hard or soft links.
25843 # A BSD-compatible nm program.
25846 # A symbol stripping program
25849 # Used to examine libraries when file_magic_cmd begins "file"
25850 MAGIC_CMD=$MAGIC_CMD
25852 # Used on cygwin: DLL creation program.
25855 # Used on cygwin: object dumper.
25858 # Used on cygwin: assembler.
25861 # The name of the directory that contains temporary libtool files.
25864 # How to create reloadable object files.
25865 reload_flag=$lt_reload_flag
25866 reload_cmds=$lt_reload_cmds
25868 # How to pass a linker flag through the compiler.
25869 wl=$lt_lt_prog_compiler_wl_RC
25871 # Object file suffix (normally "o").
25872 objext="$ac_objext"
25874 # Old archive suffix (normally "a").
25877 # Shared library suffix (normally ".so").
25878 shrext_cmds='$shrext_cmds'
25880 # Executable file suffix (normally "").
25883 # Additional compiler flags for building library objects.
25884 pic_flag=$lt_lt_prog_compiler_pic_RC
25887 # What is the maximum length of a command?
25888 max_cmd_len=$lt_cv_sys_max_cmd_len
25890 # Does compiler simultaneously support -c and -o options?
25891 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25893 # Must we lock files when doing compilation?
25894 need_locks=$lt_need_locks
25896 # Do we need the lib prefix for modules?
25897 need_lib_prefix=$need_lib_prefix
25899 # Do we need a version for libraries?
25900 need_version=$need_version
25902 # Whether dlopen is supported.
25903 dlopen_support=$enable_dlopen
25905 # Whether dlopen of programs is supported.
25906 dlopen_self=$enable_dlopen_self
25908 # Whether dlopen of statically linked programs is supported.
25909 dlopen_self_static=$enable_dlopen_self_static
25911 # Compiler flag to prevent dynamic linking.
25912 link_static_flag=$lt_lt_prog_compiler_static_RC
25914 # Compiler flag to turn off builtin functions.
25915 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25917 # Compiler flag to allow reflexive dlopens.
25918 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25920 # Compiler flag to generate shared objects directly from archives.
25921 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25923 # Compiler flag to generate thread-safe objects.
25924 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25926 # Library versioning type.
25927 version_type=$version_type
25929 # Format of library name prefix.
25930 libname_spec=$lt_libname_spec
25932 # List of archive names. First name is the real one, the rest are links.
25933 # The last name is the one that the linker finds with -lNAME.
25934 library_names_spec=$lt_library_names_spec
25936 # The coded name of the library, if different from the real name.
25937 soname_spec=$lt_soname_spec
25939 # Commands used to build and install an old-style archive.
25941 old_archive_cmds=$lt_old_archive_cmds_RC
25942 old_postinstall_cmds=$lt_old_postinstall_cmds
25943 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25945 # Create an old-style archive from a shared archive.
25946 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25948 # Create a temporary old-style archive to link instead of a shared archive.
25949 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25951 # Commands used to build and install a shared archive.
25952 archive_cmds=$lt_archive_cmds_RC
25953 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25954 postinstall_cmds=$lt_postinstall_cmds
25955 postuninstall_cmds=$lt_postuninstall_cmds
25957 # Commands used to build a loadable module (assumed same as above if empty)
25958 module_cmds=$lt_module_cmds_RC
25959 module_expsym_cmds=$lt_module_expsym_cmds_RC
25961 # Commands to strip libraries.
25962 old_striplib=$lt_old_striplib
25963 striplib=$lt_striplib
25965 # Dependencies to place before the objects being linked to create a
25967 predep_objects=$lt_predep_objects_RC
25969 # Dependencies to place after the objects being linked to create a
25971 postdep_objects=$lt_postdep_objects_RC
25973 # Dependencies to place before the objects being linked to create a
25975 predeps=$lt_predeps_RC
25977 # Dependencies to place after the objects being linked to create a
25979 postdeps=$lt_postdeps_RC
25981 # The library search path used internally by the compiler when linking
25982 # a shared library.
25983 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25985 # Method to check whether dependent libraries are shared objects.
25986 deplibs_check_method=$lt_deplibs_check_method
25988 # Command to use when deplibs_check_method == file_magic.
25989 file_magic_cmd=$lt_file_magic_cmd
25991 # Flag that allows shared libraries with undefined symbols to be built.
25992 allow_undefined_flag=$lt_allow_undefined_flag_RC
25994 # Flag that forces no undefined symbols.
25995 no_undefined_flag=$lt_no_undefined_flag_RC
25997 # Commands used to finish a libtool library installation in a directory.
25998 finish_cmds=$lt_finish_cmds
26000 # Same as above, but a single script fragment to be evaled but not shown.
26001 finish_eval=$lt_finish_eval
26003 # Take the output of nm and produce a listing of raw symbols and C names.
26004 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26006 # Transform the output of nm in a proper C declaration
26007 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26009 # Transform the output of nm in a C name address pair
26010 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26012 # This is the shared library runtime path variable.
26013 runpath_var=$runpath_var
26015 # This is the shared library path variable.
26016 shlibpath_var=$shlibpath_var
26018 # Is shlibpath searched before the hard-coded library search path?
26019 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26021 # How to hardcode a shared library path into an executable.
26022 hardcode_action=$hardcode_action_RC
26024 # Whether we should hardcode library paths into libraries.
26025 hardcode_into_libs=$hardcode_into_libs
26027 # Flag to hardcode \$libdir into a binary during linking.
26028 # This must work even if \$libdir does not exist.
26029 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26031 # If ld is used when linking, flag to hardcode \$libdir into
26032 # a binary during linking. This must work even if \$libdir does
26034 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26036 # Whether we need a single -rpath flag with a separated argument.
26037 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26039 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26040 # resulting binary.
26041 hardcode_direct=$hardcode_direct_RC
26043 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26044 # resulting binary.
26045 hardcode_minus_L=$hardcode_minus_L_RC
26047 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26048 # the resulting binary.
26049 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26051 # Set to yes if building a shared library automatically hardcodes DIR into the library
26052 # and all subsequent libraries and executables linked against it.
26053 hardcode_automatic=$hardcode_automatic_RC
26055 # Variables whose values should be saved in libtool wrapper scripts and
26056 # restored at relink time.
26057 variables_saved_for_relink="$variables_saved_for_relink"
26059 # Whether libtool must link a program against all its dependency libraries.
26060 link_all_deplibs=$link_all_deplibs_RC
26062 # Compile-time system search path for libraries
26063 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26065 # Run-time system search path for libraries
26066 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26068 # Fix the shell variable \$srcfile for the compiler.
26069 fix_srcfile_path="$fix_srcfile_path_RC"
26071 # Set to yes if exported symbols are required.
26072 always_export_symbols=$always_export_symbols_RC
26074 # The commands to list exported symbols.
26075 export_symbols_cmds=$lt_export_symbols_cmds_RC
26077 # The commands to extract the exported symbol list from a shared archive.
26078 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26080 # Symbols that should not be listed in the preloaded symbols.
26081 exclude_expsyms=$lt_exclude_expsyms_RC
26083 # Symbols that must always be exported.
26084 include_expsyms=$lt_include_expsyms_RC
26086 # ### END LIBTOOL TAG CONFIG: $tagname
26092 # If there is no Makefile yet, we rely on a make rule to execute
26093 # `config.status --recheck' to rerun these tests and create the
26094 # libtool script then.
26095 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26096 if test -f "$ltmain_in"; then
26097 test -f Makefile && make "$ltmain"
26103 ac_cpp='$CPP $CPPFLAGS'
26104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26113 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26114 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26115 { (exit 1); exit 1; }; }
26119 # Append the new tag name to the list of available tags.
26120 if test -n "$tagname" ; then
26121 available_tags="$available_tags $tagname"
26127 # Now substitute the updated list of available tags.
26128 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26129 mv "${ofile}T" "$ofile"
26133 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26134 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26135 { (exit 1); exit 1; }; }
26141 # This can be used to rebuild libtool when needed
26142 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26144 # Always use our own libtool.
26145 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
26147 # Prevent multiple expansion
26170 if test $ac_cv_c_compiler_gnu = yes; then
26171 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
26172 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
26173 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
26174 echo $ECHO_N "(cached) $ECHO_C" >&6
26176 ac_pattern="Autoconf.*'x'"
26177 cat >conftest.$ac_ext <<_ACEOF
26180 cat confdefs.h >>conftest.$ac_ext
26181 cat >>conftest.$ac_ext <<_ACEOF
26182 /* end confdefs.h. */
26186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26187 $EGREP "$ac_pattern" >/dev/null 2>&1; then
26188 ac_cv_prog_gcc_traditional=yes
26190 ac_cv_prog_gcc_traditional=no
26195 if test $ac_cv_prog_gcc_traditional = no; then
26196 cat >conftest.$ac_ext <<_ACEOF
26199 cat confdefs.h >>conftest.$ac_ext
26200 cat >>conftest.$ac_ext <<_ACEOF
26201 /* end confdefs.h. */
26202 #include <termio.h>
26205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26206 $EGREP "$ac_pattern" >/dev/null 2>&1; then
26207 ac_cv_prog_gcc_traditional=yes
26213 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
26214 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
26215 if test $ac_cv_prog_gcc_traditional = yes; then
26216 CC="$CC -traditional"
26220 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
26221 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
26222 if test "${ac_cv_c_const+set}" = set; then
26223 echo $ECHO_N "(cached) $ECHO_C" >&6
26225 cat >conftest.$ac_ext <<_ACEOF
26228 cat confdefs.h >>conftest.$ac_ext
26229 cat >>conftest.$ac_ext <<_ACEOF
26230 /* end confdefs.h. */
26235 /* FIXME: Include the comments suggested by Paul. */
26236 #ifndef __cplusplus
26237 /* Ultrix mips cc rejects this. */
26238 typedef int charset[2];
26240 /* SunOS 4.1.1 cc rejects this. */
26241 char const *const *ccp;
26243 /* NEC SVR4.0.2 mips cc rejects this. */
26244 struct point {int x, y;};
26245 static struct point const zero = {0,0};
26246 /* AIX XL C 1.02.0.0 rejects this.
26247 It does not let you subtract one const X* pointer from another in
26248 an arm of an if-expression whose if-part is not a constant
26250 const char *g = "string";
26251 ccp = &g + (g ? g-g : 0);
26252 /* HPUX 7.0 cc rejects these. */
26255 ccp = (char const *const *) p;
26256 { /* SCO 3.2v4 cc rejects this. */
26258 char const *s = 0 ? (char *) 0 : (char const *) 0;
26262 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26263 int x[] = {25, 17};
26264 const int *foo = &x[0];
26267 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26268 typedef const int *iptr;
26272 { /* AIX XL C 1.02.0.0 rejects this saying
26273 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26274 struct s { int j; const int *ap[3]; };
26275 struct s *b; b->j = 5;
26277 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26278 const int foo = 10;
26286 rm -f conftest.$ac_objext
26287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26288 (eval $ac_compile) 2>conftest.er1
26290 grep -v '^ *+' conftest.er1 >conftest.err
26292 cat conftest.err >&5
26293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294 (exit $ac_status); } &&
26295 { ac_try='test -z "$ac_c_werror_flag"
26296 || test ! -s conftest.err'
26297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26298 (eval $ac_try) 2>&5
26300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26301 (exit $ac_status); }; } &&
26302 { ac_try='test -s conftest.$ac_objext'
26303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26304 (eval $ac_try) 2>&5
26306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26307 (exit $ac_status); }; }; then
26310 echo "$as_me: failed program was:" >&5
26311 sed 's/^/| /' conftest.$ac_ext >&5
26315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26317 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
26318 echo "${ECHO_T}$ac_cv_c_const" >&6
26319 if test $ac_cv_c_const = no; then
26321 cat >>confdefs.h <<\_ACEOF
26328 echo "$as_me:$LINENO: checking for working volatile" >&5
26329 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
26330 if test "${amanda_cv_c_volatile+set}" = set; then
26331 echo $ECHO_N "(cached) $ECHO_C" >&6
26334 cat >conftest.$ac_ext <<_ACEOF
26337 cat confdefs.h >>conftest.$ac_ext
26338 cat >>conftest.$ac_ext <<_ACEOF
26339 /* end confdefs.h. */
26345 volatile int aaa = 0;
26351 rm -f conftest.$ac_objext
26352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26353 (eval $ac_compile) 2>conftest.er1
26355 grep -v '^ *+' conftest.er1 >conftest.err
26357 cat conftest.err >&5
26358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26359 (exit $ac_status); } &&
26360 { ac_try='test -z "$ac_c_werror_flag"
26361 || test ! -s conftest.err'
26362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26363 (eval $ac_try) 2>&5
26365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26366 (exit $ac_status); }; } &&
26367 { ac_try='test -s conftest.$ac_objext'
26368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26369 (eval $ac_try) 2>&5
26371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26372 (exit $ac_status); }; }; then
26373 amanda_cv_c_volatile=yes
26375 echo "$as_me: failed program was:" >&5
26376 sed 's/^/| /' conftest.$ac_ext >&5
26378 amanda_cv_c_volatile=no
26381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26385 echo "$as_me:$LINENO: result: $amanda_cv_c_volatile" >&5
26386 echo "${ECHO_T}$amanda_cv_c_volatile" >&6
26387 if test $amanda_cv_c_volatile = no; then
26389 cat >>confdefs.h <<\_ACEOF
26397 echo "$as_me:$LINENO: checking for working unsigned long constants" >&5
26398 echo $ECHO_N "checking for working unsigned long constants... $ECHO_C" >&6
26399 if test "${amanda_cv_c_unsigned_long_constants+set}" = set; then
26400 echo $ECHO_N "(cached) $ECHO_C" >&6
26403 cat >conftest.$ac_ext <<_ACEOF
26406 cat confdefs.h >>conftest.$ac_ext
26407 cat >>conftest.$ac_ext <<_ACEOF
26408 /* end confdefs.h. */
26421 rm -f conftest.$ac_objext
26422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26423 (eval $ac_compile) 2>conftest.er1
26425 grep -v '^ *+' conftest.er1 >conftest.err
26427 cat conftest.err >&5
26428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26429 (exit $ac_status); } &&
26430 { ac_try='test -z "$ac_c_werror_flag"
26431 || test ! -s conftest.err'
26432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26433 (eval $ac_try) 2>&5
26435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26436 (exit $ac_status); }; } &&
26437 { ac_try='test -s conftest.$ac_objext'
26438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26439 (eval $ac_try) 2>&5
26441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26442 (exit $ac_status); }; }; then
26443 amanda_cv_c_unsigned_long_constants=yes
26445 echo "$as_me: failed program was:" >&5
26446 sed 's/^/| /' conftest.$ac_ext >&5
26448 amanda_cv_c_unsigned_long_constants=no
26451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26455 echo "$as_me:$LINENO: result: $amanda_cv_c_unsigned_long_constants" >&5
26456 echo "${ECHO_T}$amanda_cv_c_unsigned_long_constants" >&6
26457 if test "$amanda_cv_c_unsigned_long_constants" = yes; then
26459 cat >>confdefs.h <<\_ACEOF
26460 #define HAVE_UNSIGNED_LONG_CONSTANTS 1
26466 echo "$as_me:$LINENO: checking for off_t" >&5
26467 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
26468 if test "${ac_cv_type_off_t+set}" = set; then
26469 echo $ECHO_N "(cached) $ECHO_C" >&6
26471 cat >conftest.$ac_ext <<_ACEOF
26474 cat confdefs.h >>conftest.$ac_ext
26475 cat >>conftest.$ac_ext <<_ACEOF
26476 /* end confdefs.h. */
26477 $ac_includes_default
26483 if (sizeof (off_t))
26489 rm -f conftest.$ac_objext
26490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26491 (eval $ac_compile) 2>conftest.er1
26493 grep -v '^ *+' conftest.er1 >conftest.err
26495 cat conftest.err >&5
26496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497 (exit $ac_status); } &&
26498 { ac_try='test -z "$ac_c_werror_flag"
26499 || test ! -s conftest.err'
26500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26501 (eval $ac_try) 2>&5
26503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26504 (exit $ac_status); }; } &&
26505 { ac_try='test -s conftest.$ac_objext'
26506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26507 (eval $ac_try) 2>&5
26509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26510 (exit $ac_status); }; }; then
26511 ac_cv_type_off_t=yes
26513 echo "$as_me: failed program was:" >&5
26514 sed 's/^/| /' conftest.$ac_ext >&5
26516 ac_cv_type_off_t=no
26518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26520 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
26521 echo "${ECHO_T}$ac_cv_type_off_t" >&6
26522 if test $ac_cv_type_off_t = yes; then
26526 cat >>confdefs.h <<_ACEOF
26532 echo "$as_me:$LINENO: checking for pid_t" >&5
26533 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26534 if test "${ac_cv_type_pid_t+set}" = set; then
26535 echo $ECHO_N "(cached) $ECHO_C" >&6
26537 cat >conftest.$ac_ext <<_ACEOF
26540 cat confdefs.h >>conftest.$ac_ext
26541 cat >>conftest.$ac_ext <<_ACEOF
26542 /* end confdefs.h. */
26543 $ac_includes_default
26549 if (sizeof (pid_t))
26555 rm -f conftest.$ac_objext
26556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26557 (eval $ac_compile) 2>conftest.er1
26559 grep -v '^ *+' conftest.er1 >conftest.err
26561 cat conftest.err >&5
26562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563 (exit $ac_status); } &&
26564 { ac_try='test -z "$ac_c_werror_flag"
26565 || test ! -s conftest.err'
26566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26567 (eval $ac_try) 2>&5
26569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26570 (exit $ac_status); }; } &&
26571 { ac_try='test -s conftest.$ac_objext'
26572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26573 (eval $ac_try) 2>&5
26575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26576 (exit $ac_status); }; }; then
26577 ac_cv_type_pid_t=yes
26579 echo "$as_me: failed program was:" >&5
26580 sed 's/^/| /' conftest.$ac_ext >&5
26582 ac_cv_type_pid_t=no
26584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26586 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26587 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26588 if test $ac_cv_type_pid_t = yes; then
26592 cat >>confdefs.h <<_ACEOF
26598 echo "$as_me:$LINENO: checking for size_t" >&5
26599 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26600 if test "${ac_cv_type_size_t+set}" = set; then
26601 echo $ECHO_N "(cached) $ECHO_C" >&6
26603 cat >conftest.$ac_ext <<_ACEOF
26606 cat confdefs.h >>conftest.$ac_ext
26607 cat >>conftest.$ac_ext <<_ACEOF
26608 /* end confdefs.h. */
26609 $ac_includes_default
26615 if (sizeof (size_t))
26621 rm -f conftest.$ac_objext
26622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26623 (eval $ac_compile) 2>conftest.er1
26625 grep -v '^ *+' conftest.er1 >conftest.err
26627 cat conftest.err >&5
26628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26629 (exit $ac_status); } &&
26630 { ac_try='test -z "$ac_c_werror_flag"
26631 || test ! -s conftest.err'
26632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26633 (eval $ac_try) 2>&5
26635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26636 (exit $ac_status); }; } &&
26637 { ac_try='test -s conftest.$ac_objext'
26638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26639 (eval $ac_try) 2>&5
26641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26642 (exit $ac_status); }; }; then
26643 ac_cv_type_size_t=yes
26645 echo "$as_me: failed program was:" >&5
26646 sed 's/^/| /' conftest.$ac_ext >&5
26648 ac_cv_type_size_t=no
26650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26652 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26653 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26654 if test $ac_cv_type_size_t = yes; then
26658 cat >>confdefs.h <<_ACEOF
26659 #define size_t unsigned
26669 echo "$as_me:$LINENO: checking for ssize_t" >&5
26670 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
26671 if test "${ac_cv_type_ssize_t+set}" = set; then
26672 echo $ECHO_N "(cached) $ECHO_C" >&6
26674 cat >conftest.$ac_ext <<_ACEOF
26677 cat confdefs.h >>conftest.$ac_ext
26678 cat >>conftest.$ac_ext <<_ACEOF
26679 /* end confdefs.h. */
26680 $ac_includes_default
26686 if (sizeof (ssize_t))
26692 rm -f conftest.$ac_objext
26693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26694 (eval $ac_compile) 2>conftest.er1
26696 grep -v '^ *+' conftest.er1 >conftest.err
26698 cat conftest.err >&5
26699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700 (exit $ac_status); } &&
26701 { ac_try='test -z "$ac_c_werror_flag"
26702 || test ! -s conftest.err'
26703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26704 (eval $ac_try) 2>&5
26706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26707 (exit $ac_status); }; } &&
26708 { ac_try='test -s conftest.$ac_objext'
26709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26710 (eval $ac_try) 2>&5
26712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26713 (exit $ac_status); }; }; then
26714 ac_cv_type_ssize_t=yes
26716 echo "$as_me: failed program was:" >&5
26717 sed 's/^/| /' conftest.$ac_ext >&5
26719 ac_cv_type_ssize_t=no
26721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26723 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
26724 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
26725 if test $ac_cv_type_ssize_t = yes; then
26729 cat >>confdefs.h <<_ACEOF
26730 #define ssize_t int
26736 echo "$as_me:$LINENO: checking for unsigned long long" >&5
26737 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
26738 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
26739 echo $ECHO_N "(cached) $ECHO_C" >&6
26741 cat >conftest.$ac_ext <<_ACEOF
26744 cat confdefs.h >>conftest.$ac_ext
26745 cat >>conftest.$ac_ext <<_ACEOF
26746 /* end confdefs.h. */
26747 $ac_includes_default
26751 if ((unsigned long long *) 0)
26753 if (sizeof (unsigned long long))
26759 rm -f conftest.$ac_objext
26760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26761 (eval $ac_compile) 2>conftest.er1
26763 grep -v '^ *+' conftest.er1 >conftest.err
26765 cat conftest.err >&5
26766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767 (exit $ac_status); } &&
26768 { ac_try='test -z "$ac_c_werror_flag"
26769 || test ! -s conftest.err'
26770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26771 (eval $ac_try) 2>&5
26773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26774 (exit $ac_status); }; } &&
26775 { ac_try='test -s conftest.$ac_objext'
26776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26777 (eval $ac_try) 2>&5
26779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780 (exit $ac_status); }; }; then
26781 ac_cv_type_unsigned_long_long=yes
26783 echo "$as_me: failed program was:" >&5
26784 sed 's/^/| /' conftest.$ac_ext >&5
26786 ac_cv_type_unsigned_long_long=no
26788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26790 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
26791 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
26792 if test $ac_cv_type_unsigned_long_long = yes; then
26794 cat >>confdefs.h <<_ACEOF
26795 #define HAVE_UNSIGNED_LONG_LONG 1
26806 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
26807 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
26808 if test "${ac_cv_type_uid_t+set}" = set; then
26809 echo $ECHO_N "(cached) $ECHO_C" >&6
26811 cat >conftest.$ac_ext <<_ACEOF
26814 cat confdefs.h >>conftest.$ac_ext
26815 cat >>conftest.$ac_ext <<_ACEOF
26816 /* end confdefs.h. */
26817 #include <sys/types.h>
26820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26821 $EGREP "uid_t" >/dev/null 2>&1; then
26822 ac_cv_type_uid_t=yes
26824 ac_cv_type_uid_t=no
26829 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
26830 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
26831 if test $ac_cv_type_uid_t = no; then
26833 cat >>confdefs.h <<\_ACEOF
26838 cat >>confdefs.h <<\_ACEOF
26844 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26845 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26846 if test "${ac_cv_type_signal+set}" = set; then
26847 echo $ECHO_N "(cached) $ECHO_C" >&6
26849 cat >conftest.$ac_ext <<_ACEOF
26852 cat confdefs.h >>conftest.$ac_ext
26853 cat >>conftest.$ac_ext <<_ACEOF
26854 /* end confdefs.h. */
26855 #include <sys/types.h>
26856 #include <signal.h>
26861 extern "C" void (*signal (int, void (*)(int)))(int);
26863 void (*signal ()) ();
26874 rm -f conftest.$ac_objext
26875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26876 (eval $ac_compile) 2>conftest.er1
26878 grep -v '^ *+' conftest.er1 >conftest.err
26880 cat conftest.err >&5
26881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26882 (exit $ac_status); } &&
26883 { ac_try='test -z "$ac_c_werror_flag"
26884 || test ! -s conftest.err'
26885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26886 (eval $ac_try) 2>&5
26888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26889 (exit $ac_status); }; } &&
26890 { ac_try='test -s conftest.$ac_objext'
26891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26892 (eval $ac_try) 2>&5
26894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26895 (exit $ac_status); }; }; then
26896 ac_cv_type_signal=void
26898 echo "$as_me: failed program was:" >&5
26899 sed 's/^/| /' conftest.$ac_ext >&5
26901 ac_cv_type_signal=int
26903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26905 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26906 echo "${ECHO_T}$ac_cv_type_signal" >&6
26908 cat >>confdefs.h <<_ACEOF
26909 #define RETSIGTYPE $ac_cv_type_signal
26913 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26914 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26915 if test "${ac_cv_struct_tm+set}" = set; then
26916 echo $ECHO_N "(cached) $ECHO_C" >&6
26918 cat >conftest.$ac_ext <<_ACEOF
26921 cat confdefs.h >>conftest.$ac_ext
26922 cat >>conftest.$ac_ext <<_ACEOF
26923 /* end confdefs.h. */
26924 #include <sys/types.h>
26930 struct tm *tp; tp->tm_sec;
26935 rm -f conftest.$ac_objext
26936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26937 (eval $ac_compile) 2>conftest.er1
26939 grep -v '^ *+' conftest.er1 >conftest.err
26941 cat conftest.err >&5
26942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943 (exit $ac_status); } &&
26944 { ac_try='test -z "$ac_c_werror_flag"
26945 || test ! -s conftest.err'
26946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26947 (eval $ac_try) 2>&5
26949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26950 (exit $ac_status); }; } &&
26951 { ac_try='test -s conftest.$ac_objext'
26952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26953 (eval $ac_try) 2>&5
26955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26956 (exit $ac_status); }; }; then
26957 ac_cv_struct_tm=time.h
26959 echo "$as_me: failed program was:" >&5
26960 sed 's/^/| /' conftest.$ac_ext >&5
26962 ac_cv_struct_tm=sys/time.h
26964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26966 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26967 echo "${ECHO_T}$ac_cv_struct_tm" >&6
26968 if test $ac_cv_struct_tm = sys/time.h; then
26970 cat >>confdefs.h <<\_ACEOF
26971 #define TM_IN_SYS_TIME 1
26976 for ac_prog in flex lex
26978 # Extract the first word of "$ac_prog", so it can be a program name with args.
26979 set dummy $ac_prog; ac_word=$2
26980 echo "$as_me:$LINENO: checking for $ac_word" >&5
26981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26982 if test "${ac_cv_prog_LEX+set}" = set; then
26983 echo $ECHO_N "(cached) $ECHO_C" >&6
26985 if test -n "$LEX"; then
26986 ac_cv_prog_LEX="$LEX" # Let the user override the test.
26988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26989 for as_dir in $PATH
26992 test -z "$as_dir" && as_dir=.
26993 for ac_exec_ext in '' $ac_executable_extensions; do
26994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26995 ac_cv_prog_LEX="$ac_prog"
26996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27004 LEX=$ac_cv_prog_LEX
27005 if test -n "$LEX"; then
27006 echo "$as_me:$LINENO: result: $LEX" >&5
27007 echo "${ECHO_T}$LEX" >&6
27009 echo "$as_me:$LINENO: result: no" >&5
27010 echo "${ECHO_T}no" >&6
27013 test -n "$LEX" && break
27015 test -n "$LEX" || LEX=":"
27017 if test -z "$LEXLIB"
27019 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
27020 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
27021 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
27022 echo $ECHO_N "(cached) $ECHO_C" >&6
27024 ac_check_lib_save_LIBS=$LIBS
27026 cat >conftest.$ac_ext <<_ACEOF
27029 cat confdefs.h >>conftest.$ac_ext
27030 cat >>conftest.$ac_ext <<_ACEOF
27031 /* end confdefs.h. */
27033 /* Override any gcc2 internal prototype to avoid an error. */
27037 /* We use char because int might match the return type of a gcc2
27038 builtin and then its argument prototype would still apply. */
27048 rm -f conftest.$ac_objext conftest$ac_exeext
27049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27050 (eval $ac_link) 2>conftest.er1
27052 grep -v '^ *+' conftest.er1 >conftest.err
27054 cat conftest.err >&5
27055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056 (exit $ac_status); } &&
27057 { ac_try='test -z "$ac_c_werror_flag"
27058 || test ! -s conftest.err'
27059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27060 (eval $ac_try) 2>&5
27062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063 (exit $ac_status); }; } &&
27064 { ac_try='test -s conftest$ac_exeext'
27065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27066 (eval $ac_try) 2>&5
27068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069 (exit $ac_status); }; }; then
27070 ac_cv_lib_fl_yywrap=yes
27072 echo "$as_me: failed program was:" >&5
27073 sed 's/^/| /' conftest.$ac_ext >&5
27075 ac_cv_lib_fl_yywrap=no
27077 rm -f conftest.err conftest.$ac_objext \
27078 conftest$ac_exeext conftest.$ac_ext
27079 LIBS=$ac_check_lib_save_LIBS
27081 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
27082 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
27083 if test $ac_cv_lib_fl_yywrap = yes; then
27086 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
27087 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
27088 if test "${ac_cv_lib_l_yywrap+set}" = set; then
27089 echo $ECHO_N "(cached) $ECHO_C" >&6
27091 ac_check_lib_save_LIBS=$LIBS
27093 cat >conftest.$ac_ext <<_ACEOF
27096 cat confdefs.h >>conftest.$ac_ext
27097 cat >>conftest.$ac_ext <<_ACEOF
27098 /* end confdefs.h. */
27100 /* Override any gcc2 internal prototype to avoid an error. */
27104 /* We use char because int might match the return type of a gcc2
27105 builtin and then its argument prototype would still apply. */
27115 rm -f conftest.$ac_objext conftest$ac_exeext
27116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27117 (eval $ac_link) 2>conftest.er1
27119 grep -v '^ *+' conftest.er1 >conftest.err
27121 cat conftest.err >&5
27122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); } &&
27124 { ac_try='test -z "$ac_c_werror_flag"
27125 || test ! -s conftest.err'
27126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27127 (eval $ac_try) 2>&5
27129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130 (exit $ac_status); }; } &&
27131 { ac_try='test -s conftest$ac_exeext'
27132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27133 (eval $ac_try) 2>&5
27135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136 (exit $ac_status); }; }; then
27137 ac_cv_lib_l_yywrap=yes
27139 echo "$as_me: failed program was:" >&5
27140 sed 's/^/| /' conftest.$ac_ext >&5
27142 ac_cv_lib_l_yywrap=no
27144 rm -f conftest.err conftest.$ac_objext \
27145 conftest$ac_exeext conftest.$ac_ext
27146 LIBS=$ac_check_lib_save_LIBS
27148 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
27149 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
27150 if test $ac_cv_lib_l_yywrap = yes; then
27158 if test "x$LEX" != "x:"; then
27159 echo "$as_me:$LINENO: checking lex output file root" >&5
27160 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
27161 if test "${ac_cv_prog_lex_root+set}" = set; then
27162 echo $ECHO_N "(cached) $ECHO_C" >&6
27164 # The minimal lex program is just a single line: %%. But some broken lexes
27165 # (Solaris, I think it was) want two %% lines, so accommodate them.
27166 cat >conftest.l <<_ACEOF
27170 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
27171 (eval $LEX conftest.l) 2>&5
27173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27174 (exit $ac_status); }
27175 if test -f lex.yy.c; then
27176 ac_cv_prog_lex_root=lex.yy
27177 elif test -f lexyy.c; then
27178 ac_cv_prog_lex_root=lexyy
27180 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
27181 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
27182 { (exit 1); exit 1; }; }
27185 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
27186 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
27188 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
27190 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
27191 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
27192 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
27193 echo $ECHO_N "(cached) $ECHO_C" >&6
27195 # POSIX says lex can declare yytext either as a pointer or an array; the
27196 # default is implementation-dependent. Figure out which it is, since
27197 # not all implementations provide the %pointer and %array declarations.
27198 ac_cv_prog_lex_yytext_pointer=no
27199 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
27201 LIBS="$LIBS $LEXLIB"
27202 cat >conftest.$ac_ext <<_ACEOF
27203 `cat $LEX_OUTPUT_ROOT.c`
27205 rm -f conftest.$ac_objext conftest$ac_exeext
27206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27207 (eval $ac_link) 2>conftest.er1
27209 grep -v '^ *+' conftest.er1 >conftest.err
27211 cat conftest.err >&5
27212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213 (exit $ac_status); } &&
27214 { ac_try='test -z "$ac_c_werror_flag"
27215 || test ! -s conftest.err'
27216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27217 (eval $ac_try) 2>&5
27219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220 (exit $ac_status); }; } &&
27221 { ac_try='test -s conftest$ac_exeext'
27222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27223 (eval $ac_try) 2>&5
27225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226 (exit $ac_status); }; }; then
27227 ac_cv_prog_lex_yytext_pointer=yes
27229 echo "$as_me: failed program was:" >&5
27230 sed 's/^/| /' conftest.$ac_ext >&5
27233 rm -f conftest.err conftest.$ac_objext \
27234 conftest$ac_exeext conftest.$ac_ext
27236 rm -f "${LEX_OUTPUT_ROOT}.c"
27239 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
27240 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
27241 if test $ac_cv_prog_lex_yytext_pointer = yes; then
27243 cat >>confdefs.h <<\_ACEOF
27244 #define YYTEXT_POINTER 1
27250 if test "$LEX" = :; then
27251 LEX=${am_missing_run}flex
27255 echo "$as_me:$LINENO: checking for socklen_t" >&5
27256 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
27257 if test "${ac_cv_type_socklen_t+set}" = set; then
27258 echo $ECHO_N "(cached) $ECHO_C" >&6
27260 cat >conftest.$ac_ext <<_ACEOF
27263 cat confdefs.h >>conftest.$ac_ext
27264 cat >>conftest.$ac_ext <<_ACEOF
27265 /* end confdefs.h. */
27266 #include <sys/types.h>
27268 #include <stdlib.h>
27269 #include <stddef.h>
27271 #include <sys/socket.h>
27273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27274 $EGREP "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
27275 ac_cv_type_socklen_t=yes
27277 ac_cv_type_socklen_t=no
27282 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
27283 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
27284 if test $ac_cv_type_socklen_t = no; then
27286 cat >>confdefs.h <<\_ACEOF
27287 #define socklen_t int
27293 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27294 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
27295 if test "${ac_cv_header_stdc+set}" = set; then
27296 echo $ECHO_N "(cached) $ECHO_C" >&6
27298 cat >conftest.$ac_ext <<_ACEOF
27301 cat confdefs.h >>conftest.$ac_ext
27302 cat >>conftest.$ac_ext <<_ACEOF
27303 /* end confdefs.h. */
27304 #include <stdlib.h>
27305 #include <stdarg.h>
27306 #include <string.h>
27317 rm -f conftest.$ac_objext
27318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27319 (eval $ac_compile) 2>conftest.er1
27321 grep -v '^ *+' conftest.er1 >conftest.err
27323 cat conftest.err >&5
27324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325 (exit $ac_status); } &&
27326 { ac_try='test -z "$ac_c_werror_flag"
27327 || test ! -s conftest.err'
27328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27329 (eval $ac_try) 2>&5
27331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332 (exit $ac_status); }; } &&
27333 { ac_try='test -s conftest.$ac_objext'
27334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27335 (eval $ac_try) 2>&5
27337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338 (exit $ac_status); }; }; then
27339 ac_cv_header_stdc=yes
27341 echo "$as_me: failed program was:" >&5
27342 sed 's/^/| /' conftest.$ac_ext >&5
27344 ac_cv_header_stdc=no
27346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27348 if test $ac_cv_header_stdc = yes; then
27349 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27350 cat >conftest.$ac_ext <<_ACEOF
27353 cat confdefs.h >>conftest.$ac_ext
27354 cat >>conftest.$ac_ext <<_ACEOF
27355 /* end confdefs.h. */
27356 #include <string.h>
27359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27360 $EGREP "memchr" >/dev/null 2>&1; then
27363 ac_cv_header_stdc=no
27369 if test $ac_cv_header_stdc = yes; then
27370 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27371 cat >conftest.$ac_ext <<_ACEOF
27374 cat confdefs.h >>conftest.$ac_ext
27375 cat >>conftest.$ac_ext <<_ACEOF
27376 /* end confdefs.h. */
27377 #include <stdlib.h>
27380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27381 $EGREP "free" >/dev/null 2>&1; then
27384 ac_cv_header_stdc=no
27390 if test $ac_cv_header_stdc = yes; then
27391 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27392 if test "$cross_compiling" = yes; then
27395 cat >conftest.$ac_ext <<_ACEOF
27398 cat confdefs.h >>conftest.$ac_ext
27399 cat >>conftest.$ac_ext <<_ACEOF
27400 /* end confdefs.h. */
27402 #if ((' ' & 0x0FF) == 0x020)
27403 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27404 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27406 # define ISLOWER(c) \
27407 (('a' <= (c) && (c) <= 'i') \
27408 || ('j' <= (c) && (c) <= 'r') \
27409 || ('s' <= (c) && (c) <= 'z'))
27410 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27413 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27418 for (i = 0; i < 256; i++)
27419 if (XOR (islower (i), ISLOWER (i))
27420 || toupper (i) != TOUPPER (i))
27425 rm -f conftest$ac_exeext
27426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27427 (eval $ac_link) 2>&5
27429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27432 (eval $ac_try) 2>&5
27434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27435 (exit $ac_status); }; }; then
27438 echo "$as_me: program exited with status $ac_status" >&5
27439 echo "$as_me: failed program was:" >&5
27440 sed 's/^/| /' conftest.$ac_ext >&5
27442 ( exit $ac_status )
27443 ac_cv_header_stdc=no
27445 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27449 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
27450 echo "${ECHO_T}$ac_cv_header_stdc" >&6
27451 if test $ac_cv_header_stdc = yes; then
27453 cat >>confdefs.h <<\_ACEOF
27454 #define STDC_HEADERS 1
27464 ac_header_dirent=no
27465 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27466 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27467 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27468 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
27469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27470 echo $ECHO_N "(cached) $ECHO_C" >&6
27472 cat >conftest.$ac_ext <<_ACEOF
27475 cat confdefs.h >>conftest.$ac_ext
27476 cat >>conftest.$ac_ext <<_ACEOF
27477 /* end confdefs.h. */
27478 #include <sys/types.h>
27490 rm -f conftest.$ac_objext
27491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27492 (eval $ac_compile) 2>conftest.er1
27494 grep -v '^ *+' conftest.er1 >conftest.err
27496 cat conftest.err >&5
27497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498 (exit $ac_status); } &&
27499 { ac_try='test -z "$ac_c_werror_flag"
27500 || test ! -s conftest.err'
27501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27502 (eval $ac_try) 2>&5
27504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27505 (exit $ac_status); }; } &&
27506 { ac_try='test -s conftest.$ac_objext'
27507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27508 (eval $ac_try) 2>&5
27510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511 (exit $ac_status); }; }; then
27512 eval "$as_ac_Header=yes"
27514 echo "$as_me: failed program was:" >&5
27515 sed 's/^/| /' conftest.$ac_ext >&5
27517 eval "$as_ac_Header=no"
27519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27524 cat >>confdefs.h <<_ACEOF
27525 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27528 ac_header_dirent=$ac_hdr; break
27532 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27533 if test $ac_header_dirent = dirent.h; then
27534 echo "$as_me:$LINENO: checking for library containing opendir" >&5
27535 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
27536 if test "${ac_cv_search_opendir+set}" = set; then
27537 echo $ECHO_N "(cached) $ECHO_C" >&6
27539 ac_func_search_save_LIBS=$LIBS
27540 ac_cv_search_opendir=no
27541 cat >conftest.$ac_ext <<_ACEOF
27544 cat confdefs.h >>conftest.$ac_ext
27545 cat >>conftest.$ac_ext <<_ACEOF
27546 /* end confdefs.h. */
27548 /* Override any gcc2 internal prototype to avoid an error. */
27552 /* We use char because int might match the return type of a gcc2
27553 builtin and then its argument prototype would still apply. */
27563 rm -f conftest.$ac_objext conftest$ac_exeext
27564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27565 (eval $ac_link) 2>conftest.er1
27567 grep -v '^ *+' conftest.er1 >conftest.err
27569 cat conftest.err >&5
27570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571 (exit $ac_status); } &&
27572 { ac_try='test -z "$ac_c_werror_flag"
27573 || test ! -s conftest.err'
27574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27575 (eval $ac_try) 2>&5
27577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27578 (exit $ac_status); }; } &&
27579 { ac_try='test -s conftest$ac_exeext'
27580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27581 (eval $ac_try) 2>&5
27583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584 (exit $ac_status); }; }; then
27585 ac_cv_search_opendir="none required"
27587 echo "$as_me: failed program was:" >&5
27588 sed 's/^/| /' conftest.$ac_ext >&5
27591 rm -f conftest.err conftest.$ac_objext \
27592 conftest$ac_exeext conftest.$ac_ext
27593 if test "$ac_cv_search_opendir" = no; then
27594 for ac_lib in dir; do
27595 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27596 cat >conftest.$ac_ext <<_ACEOF
27599 cat confdefs.h >>conftest.$ac_ext
27600 cat >>conftest.$ac_ext <<_ACEOF
27601 /* end confdefs.h. */
27603 /* Override any gcc2 internal prototype to avoid an error. */
27607 /* We use char because int might match the return type of a gcc2
27608 builtin and then its argument prototype would still apply. */
27618 rm -f conftest.$ac_objext conftest$ac_exeext
27619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27620 (eval $ac_link) 2>conftest.er1
27622 grep -v '^ *+' conftest.er1 >conftest.err
27624 cat conftest.err >&5
27625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626 (exit $ac_status); } &&
27627 { ac_try='test -z "$ac_c_werror_flag"
27628 || test ! -s conftest.err'
27629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27630 (eval $ac_try) 2>&5
27632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27633 (exit $ac_status); }; } &&
27634 { ac_try='test -s conftest$ac_exeext'
27635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27636 (eval $ac_try) 2>&5
27638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27639 (exit $ac_status); }; }; then
27640 ac_cv_search_opendir="-l$ac_lib"
27643 echo "$as_me: failed program was:" >&5
27644 sed 's/^/| /' conftest.$ac_ext >&5
27647 rm -f conftest.err conftest.$ac_objext \
27648 conftest$ac_exeext conftest.$ac_ext
27651 LIBS=$ac_func_search_save_LIBS
27653 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27654 echo "${ECHO_T}$ac_cv_search_opendir" >&6
27655 if test "$ac_cv_search_opendir" != no; then
27656 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
27661 echo "$as_me:$LINENO: checking for library containing opendir" >&5
27662 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
27663 if test "${ac_cv_search_opendir+set}" = set; then
27664 echo $ECHO_N "(cached) $ECHO_C" >&6
27666 ac_func_search_save_LIBS=$LIBS
27667 ac_cv_search_opendir=no
27668 cat >conftest.$ac_ext <<_ACEOF
27671 cat confdefs.h >>conftest.$ac_ext
27672 cat >>conftest.$ac_ext <<_ACEOF
27673 /* end confdefs.h. */
27675 /* Override any gcc2 internal prototype to avoid an error. */
27679 /* We use char because int might match the return type of a gcc2
27680 builtin and then its argument prototype would still apply. */
27690 rm -f conftest.$ac_objext conftest$ac_exeext
27691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27692 (eval $ac_link) 2>conftest.er1
27694 grep -v '^ *+' conftest.er1 >conftest.err
27696 cat conftest.err >&5
27697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27698 (exit $ac_status); } &&
27699 { ac_try='test -z "$ac_c_werror_flag"
27700 || test ! -s conftest.err'
27701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27702 (eval $ac_try) 2>&5
27704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27705 (exit $ac_status); }; } &&
27706 { ac_try='test -s conftest$ac_exeext'
27707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27708 (eval $ac_try) 2>&5
27710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27711 (exit $ac_status); }; }; then
27712 ac_cv_search_opendir="none required"
27714 echo "$as_me: failed program was:" >&5
27715 sed 's/^/| /' conftest.$ac_ext >&5
27718 rm -f conftest.err conftest.$ac_objext \
27719 conftest$ac_exeext conftest.$ac_ext
27720 if test "$ac_cv_search_opendir" = no; then
27721 for ac_lib in x; do
27722 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27723 cat >conftest.$ac_ext <<_ACEOF
27726 cat confdefs.h >>conftest.$ac_ext
27727 cat >>conftest.$ac_ext <<_ACEOF
27728 /* end confdefs.h. */
27730 /* Override any gcc2 internal prototype to avoid an error. */
27734 /* We use char because int might match the return type of a gcc2
27735 builtin and then its argument prototype would still apply. */
27745 rm -f conftest.$ac_objext conftest$ac_exeext
27746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27747 (eval $ac_link) 2>conftest.er1
27749 grep -v '^ *+' conftest.er1 >conftest.err
27751 cat conftest.err >&5
27752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753 (exit $ac_status); } &&
27754 { ac_try='test -z "$ac_c_werror_flag"
27755 || test ! -s conftest.err'
27756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27757 (eval $ac_try) 2>&5
27759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27760 (exit $ac_status); }; } &&
27761 { ac_try='test -s conftest$ac_exeext'
27762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27763 (eval $ac_try) 2>&5
27765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27766 (exit $ac_status); }; }; then
27767 ac_cv_search_opendir="-l$ac_lib"
27770 echo "$as_me: failed program was:" >&5
27771 sed 's/^/| /' conftest.$ac_ext >&5
27774 rm -f conftest.err conftest.$ac_objext \
27775 conftest$ac_exeext conftest.$ac_ext
27778 LIBS=$ac_func_search_save_LIBS
27780 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27781 echo "${ECHO_T}$ac_cv_search_opendir" >&6
27782 if test "$ac_cv_search_opendir" != no; then
27783 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
27793 for ac_header in sys/wait.h wait.h
27795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27797 echo "$as_me:$LINENO: checking for $ac_header" >&5
27798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27800 echo $ECHO_N "(cached) $ECHO_C" >&6
27802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27805 # Is the header compilable?
27806 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27807 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27808 cat >conftest.$ac_ext <<_ACEOF
27811 cat confdefs.h >>conftest.$ac_ext
27812 cat >>conftest.$ac_ext <<_ACEOF
27813 /* end confdefs.h. */
27814 $ac_includes_default
27815 #include <$ac_header>
27817 rm -f conftest.$ac_objext
27818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27819 (eval $ac_compile) 2>conftest.er1
27821 grep -v '^ *+' conftest.er1 >conftest.err
27823 cat conftest.err >&5
27824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825 (exit $ac_status); } &&
27826 { ac_try='test -z "$ac_c_werror_flag"
27827 || test ! -s conftest.err'
27828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27829 (eval $ac_try) 2>&5
27831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27832 (exit $ac_status); }; } &&
27833 { ac_try='test -s conftest.$ac_objext'
27834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27835 (eval $ac_try) 2>&5
27837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838 (exit $ac_status); }; }; then
27839 ac_header_compiler=yes
27841 echo "$as_me: failed program was:" >&5
27842 sed 's/^/| /' conftest.$ac_ext >&5
27844 ac_header_compiler=no
27846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27847 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27848 echo "${ECHO_T}$ac_header_compiler" >&6
27850 # Is the header present?
27851 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27853 cat >conftest.$ac_ext <<_ACEOF
27856 cat confdefs.h >>conftest.$ac_ext
27857 cat >>conftest.$ac_ext <<_ACEOF
27858 /* end confdefs.h. */
27859 #include <$ac_header>
27861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27864 grep -v '^ *+' conftest.er1 >conftest.err
27866 cat conftest.err >&5
27867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27868 (exit $ac_status); } >/dev/null; then
27869 if test -s conftest.err; then
27870 ac_cpp_err=$ac_c_preproc_warn_flag
27871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27878 if test -z "$ac_cpp_err"; then
27879 ac_header_preproc=yes
27881 echo "$as_me: failed program was:" >&5
27882 sed 's/^/| /' conftest.$ac_ext >&5
27884 ac_header_preproc=no
27886 rm -f conftest.err conftest.$ac_ext
27887 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27888 echo "${ECHO_T}$ac_header_preproc" >&6
27890 # So? What about this header?
27891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27897 ac_header_preproc=yes
27900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27903 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27907 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27914 ## ------------------------------------------ ##
27915 ## Report this to the AC_PACKAGE_NAME lists. ##
27916 ## ------------------------------------------ ##
27919 sed "s/^/$as_me: WARNING: /" >&2
27922 echo "$as_me:$LINENO: checking for $ac_header" >&5
27923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27925 echo $ECHO_N "(cached) $ECHO_C" >&6
27927 eval "$as_ac_Header=\$ac_header_preproc"
27929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27934 cat >>confdefs.h <<_ACEOF
27935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27942 echo "$as_me:$LINENO: checking whether wait uses union wait" >&5
27943 echo $ECHO_N "checking whether wait uses union wait... $ECHO_C" >&6
27944 if test "${cf_cv_arg_union_wait+set}" = set; then
27945 echo $ECHO_N "(cached) $ECHO_C" >&6
27947 cat >conftest.$ac_ext <<_ACEOF
27950 cat confdefs.h >>conftest.$ac_ext
27951 cat >>conftest.$ac_ext <<_ACEOF
27952 /* end confdefs.h. */
27954 #include <sys/types.h>
27956 #if HAVE_SYS_WAIT_H
27957 # include <sys/wait.h>
27965 pid_t wait(union wait *);
27972 union wait x; int i;
27973 wait(&x); i = WIFEXITED(x)
27979 rm -f conftest.$ac_objext
27980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27981 (eval $ac_compile) 2>conftest.er1
27983 grep -v '^ *+' conftest.er1 >conftest.err
27985 cat conftest.err >&5
27986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27987 (exit $ac_status); } &&
27988 { ac_try='test -z "$ac_c_werror_flag"
27989 || test ! -s conftest.err'
27990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27991 (eval $ac_try) 2>&5
27993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27994 (exit $ac_status); }; } &&
27995 { ac_try='test -s conftest.$ac_objext'
27996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27997 (eval $ac_try) 2>&5
27999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28000 (exit $ac_status); }; }; then
28001 cf_cv_arg_union_wait=yes
28003 echo "$as_me: failed program was:" >&5
28004 sed 's/^/| /' conftest.$ac_ext >&5
28006 cf_cv_arg_union_wait=no
28008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28010 echo "$as_me:$LINENO: result: $cf_cv_arg_union_wait" >&5
28011 echo "${ECHO_T}$cf_cv_arg_union_wait" >&6
28012 if test $cf_cv_arg_union_wait = yes; then
28014 cat >>confdefs.h <<\_ACEOF
28015 #define WAIT_USES_UNION 1
28024 for ac_header in sys/wait.h wait.h
28026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28028 echo "$as_me:$LINENO: checking for $ac_header" >&5
28029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28031 echo $ECHO_N "(cached) $ECHO_C" >&6
28033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28036 # Is the header compilable?
28037 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28039 cat >conftest.$ac_ext <<_ACEOF
28042 cat confdefs.h >>conftest.$ac_ext
28043 cat >>conftest.$ac_ext <<_ACEOF
28044 /* end confdefs.h. */
28045 $ac_includes_default
28046 #include <$ac_header>
28048 rm -f conftest.$ac_objext
28049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28050 (eval $ac_compile) 2>conftest.er1
28052 grep -v '^ *+' conftest.er1 >conftest.err
28054 cat conftest.err >&5
28055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28056 (exit $ac_status); } &&
28057 { ac_try='test -z "$ac_c_werror_flag"
28058 || test ! -s conftest.err'
28059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28060 (eval $ac_try) 2>&5
28062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063 (exit $ac_status); }; } &&
28064 { ac_try='test -s conftest.$ac_objext'
28065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28066 (eval $ac_try) 2>&5
28068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28069 (exit $ac_status); }; }; then
28070 ac_header_compiler=yes
28072 echo "$as_me: failed program was:" >&5
28073 sed 's/^/| /' conftest.$ac_ext >&5
28075 ac_header_compiler=no
28077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28078 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28079 echo "${ECHO_T}$ac_header_compiler" >&6
28081 # Is the header present?
28082 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28084 cat >conftest.$ac_ext <<_ACEOF
28087 cat confdefs.h >>conftest.$ac_ext
28088 cat >>conftest.$ac_ext <<_ACEOF
28089 /* end confdefs.h. */
28090 #include <$ac_header>
28092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28095 grep -v '^ *+' conftest.er1 >conftest.err
28097 cat conftest.err >&5
28098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28099 (exit $ac_status); } >/dev/null; then
28100 if test -s conftest.err; then
28101 ac_cpp_err=$ac_c_preproc_warn_flag
28102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28109 if test -z "$ac_cpp_err"; then
28110 ac_header_preproc=yes
28112 echo "$as_me: failed program was:" >&5
28113 sed 's/^/| /' conftest.$ac_ext >&5
28115 ac_header_preproc=no
28117 rm -f conftest.err conftest.$ac_ext
28118 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28119 echo "${ECHO_T}$ac_header_preproc" >&6
28121 # So? What about this header?
28122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28124 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28127 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28128 ac_header_preproc=yes
28131 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28133 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28134 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28135 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28136 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28137 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28138 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28141 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28142 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28145 ## ------------------------------------------ ##
28146 ## Report this to the AC_PACKAGE_NAME lists. ##
28147 ## ------------------------------------------ ##
28150 sed "s/^/$as_me: WARNING: /" >&2
28153 echo "$as_me:$LINENO: checking for $ac_header" >&5
28154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28156 echo $ECHO_N "(cached) $ECHO_C" >&6
28158 eval "$as_ac_Header=\$ac_header_preproc"
28160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28165 cat >>confdefs.h <<_ACEOF
28166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28173 echo "$as_me:$LINENO: checking whether wait uses int" >&5
28174 echo $ECHO_N "checking whether wait uses int... $ECHO_C" >&6
28175 if test "${cf_cv_arg_int+set}" = set; then
28176 echo $ECHO_N "(cached) $ECHO_C" >&6
28178 cat >conftest.$ac_ext <<_ACEOF
28181 cat confdefs.h >>conftest.$ac_ext
28182 cat >>conftest.$ac_ext <<_ACEOF
28183 /* end confdefs.h. */
28185 #include <sys/types.h>
28187 #if HAVE_SYS_WAIT_H
28188 # include <sys/wait.h>
28204 wait(&x); i = WIFEXITED(x)
28210 rm -f conftest.$ac_objext
28211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28212 (eval $ac_compile) 2>conftest.er1
28214 grep -v '^ *+' conftest.er1 >conftest.err
28216 cat conftest.err >&5
28217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218 (exit $ac_status); } &&
28219 { ac_try='test -z "$ac_c_werror_flag"
28220 || test ! -s conftest.err'
28221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28222 (eval $ac_try) 2>&5
28224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28225 (exit $ac_status); }; } &&
28226 { ac_try='test -s conftest.$ac_objext'
28227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28228 (eval $ac_try) 2>&5
28230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28231 (exit $ac_status); }; }; then
28234 echo "$as_me: failed program was:" >&5
28235 sed 's/^/| /' conftest.$ac_ext >&5
28239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28241 echo "$as_me:$LINENO: result: $cf_cv_arg_int" >&5
28242 echo "${ECHO_T}$cf_cv_arg_int" >&6
28243 if test $cf_cv_arg_int = yes; then
28245 cat >>confdefs.h <<\_ACEOF
28246 #define WAIT_USES_INT 1
28251 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28252 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
28253 if test "${ac_cv_header_time+set}" = set; then
28254 echo $ECHO_N "(cached) $ECHO_C" >&6
28256 cat >conftest.$ac_ext <<_ACEOF
28259 cat confdefs.h >>conftest.$ac_ext
28260 cat >>conftest.$ac_ext <<_ACEOF
28261 /* end confdefs.h. */
28262 #include <sys/types.h>
28263 #include <sys/time.h>
28269 if ((struct tm *) 0)
28275 rm -f conftest.$ac_objext
28276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28277 (eval $ac_compile) 2>conftest.er1
28279 grep -v '^ *+' conftest.er1 >conftest.err
28281 cat conftest.err >&5
28282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28283 (exit $ac_status); } &&
28284 { ac_try='test -z "$ac_c_werror_flag"
28285 || test ! -s conftest.err'
28286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28287 (eval $ac_try) 2>&5
28289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290 (exit $ac_status); }; } &&
28291 { ac_try='test -s conftest.$ac_objext'
28292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28293 (eval $ac_try) 2>&5
28295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296 (exit $ac_status); }; }; then
28297 ac_cv_header_time=yes
28299 echo "$as_me: failed program was:" >&5
28300 sed 's/^/| /' conftest.$ac_ext >&5
28302 ac_cv_header_time=no
28304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28306 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28307 echo "${ECHO_T}$ac_cv_header_time" >&6
28308 if test $ac_cv_header_time = yes; then
28310 cat >>confdefs.h <<\_ACEOF
28311 #define TIME_WITH_SYS_TIME 1
28377 cam/scsi/scsi_message.h \
28393 netinet/in_systm.h \
28395 readline/history.h \
28396 readline/readline.h \
28398 scsi/scsi_ioctl.h \
28416 sys/scsi/impl/uscsi.h \
28417 sys/scsi/scsi/ioctl.h \
28433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28435 echo "$as_me:$LINENO: checking for $ac_header" >&5
28436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28438 echo $ECHO_N "(cached) $ECHO_C" >&6
28440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28443 # Is the header compilable?
28444 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28445 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28446 cat >conftest.$ac_ext <<_ACEOF
28449 cat confdefs.h >>conftest.$ac_ext
28450 cat >>conftest.$ac_ext <<_ACEOF
28451 /* end confdefs.h. */
28452 $ac_includes_default
28453 #include <$ac_header>
28455 rm -f conftest.$ac_objext
28456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28457 (eval $ac_compile) 2>conftest.er1
28459 grep -v '^ *+' conftest.er1 >conftest.err
28461 cat conftest.err >&5
28462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28463 (exit $ac_status); } &&
28464 { ac_try='test -z "$ac_c_werror_flag"
28465 || test ! -s conftest.err'
28466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28467 (eval $ac_try) 2>&5
28469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28470 (exit $ac_status); }; } &&
28471 { ac_try='test -s conftest.$ac_objext'
28472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28473 (eval $ac_try) 2>&5
28475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28476 (exit $ac_status); }; }; then
28477 ac_header_compiler=yes
28479 echo "$as_me: failed program was:" >&5
28480 sed 's/^/| /' conftest.$ac_ext >&5
28482 ac_header_compiler=no
28484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28485 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28486 echo "${ECHO_T}$ac_header_compiler" >&6
28488 # Is the header present?
28489 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28490 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28491 cat >conftest.$ac_ext <<_ACEOF
28494 cat confdefs.h >>conftest.$ac_ext
28495 cat >>conftest.$ac_ext <<_ACEOF
28496 /* end confdefs.h. */
28497 #include <$ac_header>
28499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28502 grep -v '^ *+' conftest.er1 >conftest.err
28504 cat conftest.err >&5
28505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506 (exit $ac_status); } >/dev/null; then
28507 if test -s conftest.err; then
28508 ac_cpp_err=$ac_c_preproc_warn_flag
28509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28516 if test -z "$ac_cpp_err"; then
28517 ac_header_preproc=yes
28519 echo "$as_me: failed program was:" >&5
28520 sed 's/^/| /' conftest.$ac_ext >&5
28522 ac_header_preproc=no
28524 rm -f conftest.err conftest.$ac_ext
28525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28526 echo "${ECHO_T}$ac_header_preproc" >&6
28528 # So? What about this header?
28529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28531 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28532 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28534 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28535 ac_header_preproc=yes
28538 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28539 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28540 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28541 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28542 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28543 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28544 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28545 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28547 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28548 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28549 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28552 ## ------------------------------------------ ##
28553 ## Report this to the AC_PACKAGE_NAME lists. ##
28554 ## ------------------------------------------ ##
28557 sed "s/^/$as_me: WARNING: /" >&2
28560 echo "$as_me:$LINENO: checking for $ac_header" >&5
28561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28563 echo $ECHO_N "(cached) $ECHO_C" >&6
28565 eval "$as_ac_Header=\$ac_header_preproc"
28567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28572 cat >>confdefs.h <<_ACEOF
28573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28582 for ac_header in netinet/ip.h
28584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28585 echo "$as_me:$LINENO: checking for $ac_header" >&5
28586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28588 echo $ECHO_N "(cached) $ECHO_C" >&6
28590 cat >conftest.$ac_ext <<_ACEOF
28593 cat confdefs.h >>conftest.$ac_ext
28594 cat >>conftest.$ac_ext <<_ACEOF
28595 /* end confdefs.h. */
28596 #include <sys/socket.h>
28597 #if HAVE_SYS_TYPES_H
28598 #include <sys/types.h>
28600 #ifdef HAVE_NETINET_IN_SYSTM_H
28601 #include <netinet/in_systm.h>
28603 #include <netinet/in.h>
28606 #include <$ac_header>
28608 rm -f conftest.$ac_objext
28609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28610 (eval $ac_compile) 2>conftest.er1
28612 grep -v '^ *+' conftest.er1 >conftest.err
28614 cat conftest.err >&5
28615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28616 (exit $ac_status); } &&
28617 { ac_try='test -z "$ac_c_werror_flag"
28618 || test ! -s conftest.err'
28619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28620 (eval $ac_try) 2>&5
28622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623 (exit $ac_status); }; } &&
28624 { ac_try='test -s conftest.$ac_objext'
28625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28626 (eval $ac_try) 2>&5
28628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629 (exit $ac_status); }; }; then
28630 eval "$as_ac_Header=yes"
28632 echo "$as_me: failed program was:" >&5
28633 sed 's/^/| /' conftest.$ac_ext >&5
28635 eval "$as_ac_Header=no"
28637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28642 cat >>confdefs.h <<_ACEOF
28643 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28652 for ac_header in sys/mount.h
28654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28655 echo "$as_me:$LINENO: checking for $ac_header" >&5
28656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28658 echo $ECHO_N "(cached) $ECHO_C" >&6
28660 cat >conftest.$ac_ext <<_ACEOF
28663 cat confdefs.h >>conftest.$ac_ext
28664 cat >>conftest.$ac_ext <<_ACEOF
28665 /* end confdefs.h. */
28666 #ifdef HAVE_SYS_PARAM_H
28667 #include <sys/param.h>
28671 #include <$ac_header>
28673 rm -f conftest.$ac_objext
28674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28675 (eval $ac_compile) 2>conftest.er1
28677 grep -v '^ *+' conftest.er1 >conftest.err
28679 cat conftest.err >&5
28680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681 (exit $ac_status); } &&
28682 { ac_try='test -z "$ac_c_werror_flag"
28683 || test ! -s conftest.err'
28684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28685 (eval $ac_try) 2>&5
28687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688 (exit $ac_status); }; } &&
28689 { ac_try='test -s conftest.$ac_objext'
28690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28691 (eval $ac_try) 2>&5
28693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694 (exit $ac_status); }; }; then
28695 eval "$as_ac_Header=yes"
28697 echo "$as_me: failed program was:" >&5
28698 sed 's/^/| /' conftest.$ac_ext >&5
28700 eval "$as_ac_Header=no"
28702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28707 cat >>confdefs.h <<_ACEOF
28708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28716 NO_SCSI_CHANGER_MODE=true
28717 NO_CHIO_CHANGER_MODE=true
28719 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
28720 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
28721 if test "${ac_cv_c_bigendian+set}" = set; then
28722 echo $ECHO_N "(cached) $ECHO_C" >&6
28724 # See if sys/param.h defines the BYTE_ORDER macro.
28725 cat >conftest.$ac_ext <<_ACEOF
28728 cat confdefs.h >>conftest.$ac_ext
28729 cat >>conftest.$ac_ext <<_ACEOF
28730 /* end confdefs.h. */
28731 #include <sys/types.h>
28732 #include <sys/param.h>
28737 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
28738 bogus endian macros
28745 rm -f conftest.$ac_objext
28746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28747 (eval $ac_compile) 2>conftest.er1
28749 grep -v '^ *+' conftest.er1 >conftest.err
28751 cat conftest.err >&5
28752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753 (exit $ac_status); } &&
28754 { ac_try='test -z "$ac_c_werror_flag"
28755 || test ! -s conftest.err'
28756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28757 (eval $ac_try) 2>&5
28759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28760 (exit $ac_status); }; } &&
28761 { ac_try='test -s conftest.$ac_objext'
28762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28763 (eval $ac_try) 2>&5
28765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28766 (exit $ac_status); }; }; then
28767 # It does; now see whether it defined to BIG_ENDIAN or not.
28768 cat >conftest.$ac_ext <<_ACEOF
28771 cat confdefs.h >>conftest.$ac_ext
28772 cat >>conftest.$ac_ext <<_ACEOF
28773 /* end confdefs.h. */
28774 #include <sys/types.h>
28775 #include <sys/param.h>
28780 #if BYTE_ORDER != BIG_ENDIAN
28788 rm -f conftest.$ac_objext
28789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28790 (eval $ac_compile) 2>conftest.er1
28792 grep -v '^ *+' conftest.er1 >conftest.err
28794 cat conftest.err >&5
28795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796 (exit $ac_status); } &&
28797 { ac_try='test -z "$ac_c_werror_flag"
28798 || test ! -s conftest.err'
28799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28800 (eval $ac_try) 2>&5
28802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803 (exit $ac_status); }; } &&
28804 { ac_try='test -s conftest.$ac_objext'
28805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28806 (eval $ac_try) 2>&5
28808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28809 (exit $ac_status); }; }; then
28810 ac_cv_c_bigendian=yes
28812 echo "$as_me: failed program was:" >&5
28813 sed 's/^/| /' conftest.$ac_ext >&5
28815 ac_cv_c_bigendian=no
28817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28819 echo "$as_me: failed program was:" >&5
28820 sed 's/^/| /' conftest.$ac_ext >&5
28822 # It does not; compile a test program.
28823 if test "$cross_compiling" = yes; then
28824 # try to guess the endianness by grepping values into an object file
28825 ac_cv_c_bigendian=unknown
28826 cat >conftest.$ac_ext <<_ACEOF
28829 cat confdefs.h >>conftest.$ac_ext
28830 cat >>conftest.$ac_ext <<_ACEOF
28831 /* end confdefs.h. */
28832 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
28833 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
28834 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
28835 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
28836 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
28837 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
28841 _ascii (); _ebcdic ();
28846 rm -f conftest.$ac_objext
28847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28848 (eval $ac_compile) 2>conftest.er1
28850 grep -v '^ *+' conftest.er1 >conftest.err
28852 cat conftest.err >&5
28853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28854 (exit $ac_status); } &&
28855 { ac_try='test -z "$ac_c_werror_flag"
28856 || test ! -s conftest.err'
28857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28858 (eval $ac_try) 2>&5
28860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861 (exit $ac_status); }; } &&
28862 { ac_try='test -s conftest.$ac_objext'
28863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28864 (eval $ac_try) 2>&5
28866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867 (exit $ac_status); }; }; then
28868 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
28869 ac_cv_c_bigendian=yes
28871 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
28872 if test "$ac_cv_c_bigendian" = unknown; then
28873 ac_cv_c_bigendian=no
28875 # finding both strings is unlikely to happen, but who knows?
28876 ac_cv_c_bigendian=unknown
28880 echo "$as_me: failed program was:" >&5
28881 sed 's/^/| /' conftest.$ac_ext >&5
28884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28886 cat >conftest.$ac_ext <<_ACEOF
28889 cat confdefs.h >>conftest.$ac_ext
28890 cat >>conftest.$ac_ext <<_ACEOF
28891 /* end confdefs.h. */
28895 /* Are we little or big endian? From Harbison&Steele. */
28899 char c[sizeof (long)];
28902 exit (u.c[sizeof (long) - 1] == 1);
28905 rm -f conftest$ac_exeext
28906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28907 (eval $ac_link) 2>&5
28909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28912 (eval $ac_try) 2>&5
28914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915 (exit $ac_status); }; }; then
28916 ac_cv_c_bigendian=no
28918 echo "$as_me: program exited with status $ac_status" >&5
28919 echo "$as_me: failed program was:" >&5
28920 sed 's/^/| /' conftest.$ac_ext >&5
28922 ( exit $ac_status )
28923 ac_cv_c_bigendian=yes
28925 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28930 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
28931 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
28932 case $ac_cv_c_bigendian in
28935 cat >>confdefs.h <<\_ACEOF
28936 #define WORDS_BIGENDIAN 1
28942 { { echo "$as_me:$LINENO: error: unknown endianness
28943 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
28944 echo "$as_me: error: unknown endianness
28945 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
28946 { (exit 1); exit 1; }; } ;;
28950 if test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
28951 echo "$as_me:$LINENO: checking for HP/UX-like scsi changer support" >&5
28952 echo $ECHO_N "checking for HP/UX-like scsi changer support... $ECHO_C" >&6
28953 if test "${amanda_cv_hpux_scsi_chio+set}" = set; then
28954 echo $ECHO_N "(cached) $ECHO_C" >&6
28956 cat >conftest.$ac_ext <<_ACEOF
28959 cat confdefs.h >>conftest.$ac_ext
28960 cat >>conftest.$ac_ext <<_ACEOF
28961 /* end confdefs.h. */
28963 #include <sys/scsi.h>
28969 static struct element_addresses changer_info;
28970 int i = SIOC_ELEMENT_ADDRESSES;
28971 int j = SIOC_ELEMENT_STATUS;
28972 int k = SIOC_MOVE_MEDIUM;
28978 rm -f conftest.$ac_objext
28979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28980 (eval $ac_compile) 2>conftest.er1
28982 grep -v '^ *+' conftest.er1 >conftest.err
28984 cat conftest.err >&5
28985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28986 (exit $ac_status); } &&
28987 { ac_try='test -z "$ac_c_werror_flag"
28988 || test ! -s conftest.err'
28989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28990 (eval $ac_try) 2>&5
28992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28993 (exit $ac_status); }; } &&
28994 { ac_try='test -s conftest.$ac_objext'
28995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28996 (eval $ac_try) 2>&5
28998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28999 (exit $ac_status); }; }; then
29000 amanda_cv_hpux_scsi_chio=yes
29002 echo "$as_me: failed program was:" >&5
29003 sed 's/^/| /' conftest.$ac_ext >&5
29005 amanda_cv_hpux_scsi_chio=no
29007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29009 echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi_chio" >&5
29010 echo "${ECHO_T}$amanda_cv_hpux_scsi_chio" >&6
29011 if test x"$amanda_cv_hpux_scsi_chio" = x"yes"; then
29013 cat >>confdefs.h <<\_ACEOF
29014 #define HAVE_HPUX_SCSI_CHIO 1
29017 NO_SCSI_CHANGER_MODE=false
29021 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
29022 test x"$ac_cv_header_scsi_scsi_ioctl_h" = x"yes"; then
29023 echo "$as_me:$LINENO: checking for Linux like scsi support (ioctl)" >&5
29024 echo $ECHO_N "checking for Linux like scsi support (ioctl)... $ECHO_C" >&6
29025 if test "${amanda_cv_linux_scsi+set}" = set; then
29026 echo $ECHO_N "(cached) $ECHO_C" >&6
29028 cat >conftest.$ac_ext <<_ACEOF
29031 cat confdefs.h >>conftest.$ac_ext
29032 cat >>conftest.$ac_ext <<_ACEOF
29033 /* end confdefs.h. */
29035 #include <scsi/scsi_ioctl.h>
29036 #include <sys/mtio.h>
29044 ioctl(device, SCSI_IOCTL_SEND_COMMAND, Command);
29050 rm -f conftest.$ac_objext
29051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29052 (eval $ac_compile) 2>conftest.er1
29054 grep -v '^ *+' conftest.er1 >conftest.err
29056 cat conftest.err >&5
29057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058 (exit $ac_status); } &&
29059 { ac_try='test -z "$ac_c_werror_flag"
29060 || test ! -s conftest.err'
29061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29062 (eval $ac_try) 2>&5
29064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29065 (exit $ac_status); }; } &&
29066 { ac_try='test -s conftest.$ac_objext'
29067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29068 (eval $ac_try) 2>&5
29070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29071 (exit $ac_status); }; }; then
29072 amanda_cv_linux_scsi=yes
29074 echo "$as_me: failed program was:" >&5
29075 sed 's/^/| /' conftest.$ac_ext >&5
29077 amanda_cv_linux_scsi=no
29079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29081 echo "$as_me:$LINENO: result: $amanda_cv_linux_scsi" >&5
29082 echo "${ECHO_T}$amanda_cv_linux_scsi" >&6
29085 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
29086 test x"$ac_cv_header_scsi_sg_h" = x"yes"; then
29087 echo "$as_me:$LINENO: checking for Linux like scsi support (sg)" >&5
29088 echo $ECHO_N "checking for Linux like scsi support (sg)... $ECHO_C" >&6
29089 if test "${amanda_cv_linux_sg_scsi+set}" = set; then
29090 echo $ECHO_N "(cached) $ECHO_C" >&6
29092 cat >conftest.$ac_ext <<_ACEOF
29095 cat confdefs.h >>conftest.$ac_ext
29096 cat >>conftest.$ac_ext <<_ACEOF
29097 /* end confdefs.h. */
29099 #include <sys/types.h>
29100 #include <scsi/sg.h>
29101 #include <sys/mtio.h>
29108 struct sg_header *psg_header;
29110 write(device, buffer, 1);
29116 rm -f conftest.$ac_objext
29117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29118 (eval $ac_compile) 2>conftest.er1
29120 grep -v '^ *+' conftest.er1 >conftest.err
29122 cat conftest.err >&5
29123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29124 (exit $ac_status); } &&
29125 { ac_try='test -z "$ac_c_werror_flag"
29126 || test ! -s conftest.err'
29127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29128 (eval $ac_try) 2>&5
29130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29131 (exit $ac_status); }; } &&
29132 { ac_try='test -s conftest.$ac_objext'
29133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29134 (eval $ac_try) 2>&5
29136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29137 (exit $ac_status); }; }; then
29138 amanda_cv_linux_sg_scsi=yes
29140 echo "$as_me: failed program was:" >&5
29141 sed 's/^/| /' conftest.$ac_ext >&5
29143 amanda_cv_linux_sg_scsi=no
29145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29147 echo "$as_me:$LINENO: result: $amanda_cv_linux_sg_scsi" >&5
29148 echo "${ECHO_T}$amanda_cv_linux_sg_scsi" >&6
29151 if test x"$amanda_cv_linux_scsi" = x"yes" ||
29152 test x"$amanda_cv_linux_sg_scsi" = x"yes";then
29154 cat >>confdefs.h <<\_ACEOF
29155 #define HAVE_LINUX_LIKE_SCSI 1
29158 NO_SCSI_CHANGER_MODE=false
29161 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
29162 test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
29163 echo "$as_me:$LINENO: checking for HP-UX like scsi support" >&5
29164 echo $ECHO_N "checking for HP-UX like scsi support... $ECHO_C" >&6
29165 if test "${amanda_cv_hpux_scsi+set}" = set; then
29166 echo $ECHO_N "(cached) $ECHO_C" >&6
29168 cat >conftest.$ac_ext <<_ACEOF
29171 cat confdefs.h >>conftest.$ac_ext
29172 cat >>conftest.$ac_ext <<_ACEOF
29173 /* end confdefs.h. */
29176 #include <sys/ioctl.h>
29177 #include <sys/scsi.h>
29178 #include <sys/mtio.h>
29186 ioctl(device, SIOC_IO, Command);
29192 rm -f conftest.$ac_objext
29193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29194 (eval $ac_compile) 2>conftest.er1
29196 grep -v '^ *+' conftest.er1 >conftest.err
29198 cat conftest.err >&5
29199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29200 (exit $ac_status); } &&
29201 { ac_try='test -z "$ac_c_werror_flag"
29202 || test ! -s conftest.err'
29203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29204 (eval $ac_try) 2>&5
29206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29207 (exit $ac_status); }; } &&
29208 { ac_try='test -s conftest.$ac_objext'
29209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29210 (eval $ac_try) 2>&5
29212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213 (exit $ac_status); }; }; then
29214 amanda_cv_hpux_scsi=yes
29216 echo "$as_me: failed program was:" >&5
29217 sed 's/^/| /' conftest.$ac_ext >&5
29219 amanda_cv_hpux_scsi=no
29221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29223 echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi" >&5
29224 echo "${ECHO_T}$amanda_cv_hpux_scsi" >&6
29225 if test x"$amanda_cv_hpux_scsi" = x"yes";then
29227 cat >>confdefs.h <<\_ACEOF
29228 #define HAVE_HPUX_LIKE_SCSI 1
29231 NO_SCSI_CHANGER_MODE=false
29232 NO_CHIO_CHANGER_MODE=false
29236 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
29237 test x"$ac_cv_header_sys_dsreq_h" = x"yes"; then
29238 echo "$as_me:$LINENO: checking for Irix like scsi support" >&5
29239 echo $ECHO_N "checking for Irix like scsi support... $ECHO_C" >&6
29240 if test "${amanda_cv_irix_scsi+set}" = set; then
29241 echo $ECHO_N "(cached) $ECHO_C" >&6
29243 cat >conftest.$ac_ext <<_ACEOF
29246 cat confdefs.h >>conftest.$ac_ext
29247 cat >>conftest.$ac_ext <<_ACEOF
29248 /* end confdefs.h. */
29250 #include <sys/types.h>
29251 #include <sys/dsreq.h>
29252 #include <sys/mtio.h>
29260 ioctl(device, DS_ENTER, &Command);
29266 rm -f conftest.$ac_objext
29267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29268 (eval $ac_compile) 2>conftest.er1
29270 grep -v '^ *+' conftest.er1 >conftest.err
29272 cat conftest.err >&5
29273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274 (exit $ac_status); } &&
29275 { ac_try='test -z "$ac_c_werror_flag"
29276 || test ! -s conftest.err'
29277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29278 (eval $ac_try) 2>&5
29280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29281 (exit $ac_status); }; } &&
29282 { ac_try='test -s conftest.$ac_objext'
29283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29284 (eval $ac_try) 2>&5
29286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287 (exit $ac_status); }; }; then
29288 amanda_cv_irix_scsi=yes
29290 echo "$as_me: failed program was:" >&5
29291 sed 's/^/| /' conftest.$ac_ext >&5
29293 amanda_cv_irix_scsi=no
29295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29297 echo "$as_me:$LINENO: result: $amanda_cv_irix_scsi" >&5
29298 echo "${ECHO_T}$amanda_cv_irix_scsi" >&6
29299 if test x"$amanda_cv_irix_scsi" = x"yes";then
29301 cat >>confdefs.h <<\_ACEOF
29302 #define HAVE_IRIX_LIKE_SCSI 1
29305 NO_SCSI_CHANGER_MODE=false
29309 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
29310 test x"$ac_cv_header_sys_scsi_impl_uscsi_h" = x"yes"; then
29311 echo "$as_me:$LINENO: checking for Solaris like scsi support" >&5
29312 echo $ECHO_N "checking for Solaris like scsi support... $ECHO_C" >&6
29313 if test "${amanda_cv_solaris_scsi+set}" = set; then
29314 echo $ECHO_N "(cached) $ECHO_C" >&6
29316 cat >conftest.$ac_ext <<_ACEOF
29319 cat confdefs.h >>conftest.$ac_ext
29320 cat >>conftest.$ac_ext <<_ACEOF
29321 /* end confdefs.h. */
29323 #include <sys/types.h>
29324 #include <sys/scsi/impl/uscsi.h>
29325 #include <sys/mtio.h>
29333 ioctl(device, USCSICMD, Command);
29339 rm -f conftest.$ac_objext
29340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29341 (eval $ac_compile) 2>conftest.er1
29343 grep -v '^ *+' conftest.er1 >conftest.err
29345 cat conftest.err >&5
29346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347 (exit $ac_status); } &&
29348 { ac_try='test -z "$ac_c_werror_flag"
29349 || test ! -s conftest.err'
29350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29351 (eval $ac_try) 2>&5
29353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29354 (exit $ac_status); }; } &&
29355 { ac_try='test -s conftest.$ac_objext'
29356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29357 (eval $ac_try) 2>&5
29359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29360 (exit $ac_status); }; }; then
29361 amanda_cv_solaris_scsi=yes
29363 echo "$as_me: failed program was:" >&5
29364 sed 's/^/| /' conftest.$ac_ext >&5
29366 amanda_cv_solaris_scsi=no
29368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29370 echo "$as_me:$LINENO: result: $amanda_cv_solaris_scsi" >&5
29371 echo "${ECHO_T}$amanda_cv_solaris_scsi" >&6
29372 if test x"$amanda_cv_solaris_scsi" = x"yes";then
29374 cat >>confdefs.h <<\_ACEOF
29375 #define HAVE_SOLARIS_LIKE_SCSI 1
29378 NO_SCSI_CHANGER_MODE=false
29382 if test x"$ac_cv_header_sys_tape_h" = x"yes" &&
29383 test x"$ac_cv_header_sys_scarray_h" = x"yes" &&
29384 test x"$ac_cv_header_sys_gscdds_h" = x"yes"; then
29385 echo "$as_me:$LINENO: checking for AIX like scsi support" >&5
29386 echo $ECHO_N "checking for AIX like scsi support... $ECHO_C" >&6
29387 if test "${amanda_cv_aix_scsi+set}" = set; then
29388 echo $ECHO_N "(cached) $ECHO_C" >&6
29390 cat >conftest.$ac_ext <<_ACEOF
29393 cat confdefs.h >>conftest.$ac_ext
29394 cat >>conftest.$ac_ext <<_ACEOF
29395 /* end confdefs.h. */
29397 #include <sys/types.h>
29398 #include <sys/scarray.h>
29399 #include <sys/tape.h>
29407 ioctl(device, STIOCMD, Command);
29413 rm -f conftest.$ac_objext
29414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29415 (eval $ac_compile) 2>conftest.er1
29417 grep -v '^ *+' conftest.er1 >conftest.err
29419 cat conftest.err >&5
29420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29421 (exit $ac_status); } &&
29422 { ac_try='test -z "$ac_c_werror_flag"
29423 || test ! -s conftest.err'
29424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29425 (eval $ac_try) 2>&5
29427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29428 (exit $ac_status); }; } &&
29429 { ac_try='test -s conftest.$ac_objext'
29430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29431 (eval $ac_try) 2>&5
29433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29434 (exit $ac_status); }; }; then
29435 amanda_cv_aix_scsi=yes
29437 echo "$as_me: failed program was:" >&5
29438 sed 's/^/| /' conftest.$ac_ext >&5
29440 amanda_cv_aix_scsi=no
29442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29444 echo "$as_me:$LINENO: result: $amanda_cv_aix_scsi" >&5
29445 echo "${ECHO_T}$amanda_cv_aix_scsi" >&6
29446 if test x"$amanda_cv_aix_scsi" = x"yes";then
29448 cat >>confdefs.h <<\_ACEOF
29449 #define HAVE_AIX_LIKE_SCSI 1
29452 NO_SCSI_CHANGER_MODE=false
29455 if test x"$ac_cv_header_cam_cam_h" = x"yes";then
29456 echo "$as_me:$LINENO: checking for CAM like scsi support" >&5
29457 echo $ECHO_N "checking for CAM like scsi support... $ECHO_C" >&6
29458 if test "${amanda_cv_cam_scsi+set}" = set; then
29459 echo $ECHO_N "(cached) $ECHO_C" >&6
29461 cat >conftest.$ac_ext <<_ACEOF
29464 cat confdefs.h >>conftest.$ac_ext
29465 cat >>conftest.$ac_ext <<_ACEOF
29466 /* end confdefs.h. */
29469 # include <fcntl.h>
29470 # include <cam/cam.h>
29471 # include <cam/cam_ccb.h>
29472 # include <cam/scsi/scsi_message.h>
29473 # include <cam/scsi/scsi_pass.h>
29474 # include <camlib.h>
29480 struct cam_device *curdev;
29482 curdev = cam_open_pass("", O_RDWR, NULL);
29488 rm -f conftest.$ac_objext
29489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29490 (eval $ac_compile) 2>conftest.er1
29492 grep -v '^ *+' conftest.er1 >conftest.err
29494 cat conftest.err >&5
29495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29496 (exit $ac_status); } &&
29497 { ac_try='test -z "$ac_c_werror_flag"
29498 || test ! -s conftest.err'
29499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29500 (eval $ac_try) 2>&5
29502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503 (exit $ac_status); }; } &&
29504 { ac_try='test -s conftest.$ac_objext'
29505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29506 (eval $ac_try) 2>&5
29508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29509 (exit $ac_status); }; }; then
29510 amanda_cv_cam_scsi=yes
29512 echo "$as_me: failed program was:" >&5
29513 sed 's/^/| /' conftest.$ac_ext >&5
29515 amanda_cv_cam_scsi=no
29517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29519 echo "$as_me:$LINENO: result: $amanda_cv_cam_scsi" >&5
29520 echo "${ECHO_T}$amanda_cv_cam_scsi" >&6
29521 if test x"$amanda_cv_cam_scsi" = x"yes";then
29523 cat >>confdefs.h <<\_ACEOF
29524 #define HAVE_CAM_LIKE_SCSI 1
29527 NO_SCSI_CHANGER_MODE=false
29529 echo "$as_me:$LINENO: checking for main in -lcam" >&5
29530 echo $ECHO_N "checking for main in -lcam... $ECHO_C" >&6
29531 if test "${ac_cv_lib_cam_main+set}" = set; then
29532 echo $ECHO_N "(cached) $ECHO_C" >&6
29534 ac_check_lib_save_LIBS=$LIBS
29536 cat >conftest.$ac_ext <<_ACEOF
29539 cat confdefs.h >>conftest.$ac_ext
29540 cat >>conftest.$ac_ext <<_ACEOF
29541 /* end confdefs.h. */
29552 rm -f conftest.$ac_objext conftest$ac_exeext
29553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29554 (eval $ac_link) 2>conftest.er1
29556 grep -v '^ *+' conftest.er1 >conftest.err
29558 cat conftest.err >&5
29559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29560 (exit $ac_status); } &&
29561 { ac_try='test -z "$ac_c_werror_flag"
29562 || test ! -s conftest.err'
29563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29564 (eval $ac_try) 2>&5
29566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29567 (exit $ac_status); }; } &&
29568 { ac_try='test -s conftest$ac_exeext'
29569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29570 (eval $ac_try) 2>&5
29572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29573 (exit $ac_status); }; }; then
29574 ac_cv_lib_cam_main=yes
29576 echo "$as_me: failed program was:" >&5
29577 sed 's/^/| /' conftest.$ac_ext >&5
29579 ac_cv_lib_cam_main=no
29581 rm -f conftest.err conftest.$ac_objext \
29582 conftest$ac_exeext conftest.$ac_ext
29583 LIBS=$ac_check_lib_save_LIBS
29585 echo "$as_me:$LINENO: result: $ac_cv_lib_cam_main" >&5
29586 echo "${ECHO_T}$ac_cv_lib_cam_main" >&6
29587 if test $ac_cv_lib_cam_main = yes; then
29588 cat >>confdefs.h <<_ACEOF
29589 #define HAVE_LIBCAM 1
29599 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
29600 test x"$ac_cv_header_sys_scsiio_h" = x"yes"; then
29601 echo "$as_me:$LINENO: checking for BSD like scsi support" >&5
29602 echo $ECHO_N "checking for BSD like scsi support... $ECHO_C" >&6
29603 if test "${amanda_cv_bsd_scsi+set}" = set; then
29604 echo $ECHO_N "(cached) $ECHO_C" >&6
29606 cat >conftest.$ac_ext <<_ACEOF
29609 cat confdefs.h >>conftest.$ac_ext
29610 cat >>conftest.$ac_ext <<_ACEOF
29611 /* end confdefs.h. */
29613 #include <sys/types.h>
29614 #include <sys/scsiio.h>
29615 #include <sys/mtio.h>
29623 ioctl(device, SCIOCCOMMAND, &Command);
29629 rm -f conftest.$ac_objext
29630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29631 (eval $ac_compile) 2>conftest.er1
29633 grep -v '^ *+' conftest.er1 >conftest.err
29635 cat conftest.err >&5
29636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29637 (exit $ac_status); } &&
29638 { ac_try='test -z "$ac_c_werror_flag"
29639 || test ! -s conftest.err'
29640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29641 (eval $ac_try) 2>&5
29643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644 (exit $ac_status); }; } &&
29645 { ac_try='test -s conftest.$ac_objext'
29646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29647 (eval $ac_try) 2>&5
29649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29650 (exit $ac_status); }; }; then
29651 amanda_cv_bsd_scsi=yes
29653 echo "$as_me: failed program was:" >&5
29654 sed 's/^/| /' conftest.$ac_ext >&5
29656 amanda_cv_bsd_scsi=no
29658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29660 echo "$as_me:$LINENO: result: $amanda_cv_bsd_scsi" >&5
29661 echo "${ECHO_T}$amanda_cv_bsd_scsi" >&6
29662 if test x"$amanda_cv_bsd_scsi" = x"yes";then
29664 cat >>confdefs.h <<\_ACEOF
29665 #define HAVE_BSD_LIKE_SCSI 1
29668 NO_SCSI_CHANGER_MODE=false
29672 if test x"$ac_cv_header_chio_h" = x"yes" ||
29673 test x"$ac_cv_header_sys_chio_h" = x"yes"; then
29674 if test x"$ac_cv_header_camlib_h" != x"yes"; then
29675 if $NO_SCSI_CHANGER_MODE; then
29676 NO_SCSI_CHANGER_MODE=false
29678 NO_CHIO_CHANGER_MODE=false
29684 echo "$as_me:$LINENO: checking for main in -lcur_colr" >&5
29685 echo $ECHO_N "checking for main in -lcur_colr... $ECHO_C" >&6
29686 if test "${ac_cv_lib_cur_colr_main+set}" = set; then
29687 echo $ECHO_N "(cached) $ECHO_C" >&6
29689 ac_check_lib_save_LIBS=$LIBS
29690 LIBS="-lcur_colr $LIBS"
29691 cat >conftest.$ac_ext <<_ACEOF
29694 cat confdefs.h >>conftest.$ac_ext
29695 cat >>conftest.$ac_ext <<_ACEOF
29696 /* end confdefs.h. */
29707 rm -f conftest.$ac_objext conftest$ac_exeext
29708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29709 (eval $ac_link) 2>conftest.er1
29711 grep -v '^ *+' conftest.er1 >conftest.err
29713 cat conftest.err >&5
29714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29715 (exit $ac_status); } &&
29716 { ac_try='test -z "$ac_c_werror_flag"
29717 || test ! -s conftest.err'
29718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29719 (eval $ac_try) 2>&5
29721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29722 (exit $ac_status); }; } &&
29723 { ac_try='test -s conftest$ac_exeext'
29724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29725 (eval $ac_try) 2>&5
29727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29728 (exit $ac_status); }; }; then
29729 ac_cv_lib_cur_colr_main=yes
29731 echo "$as_me: failed program was:" >&5
29732 sed 's/^/| /' conftest.$ac_ext >&5
29734 ac_cv_lib_cur_colr_main=no
29736 rm -f conftest.err conftest.$ac_objext \
29737 conftest$ac_exeext conftest.$ac_ext
29738 LIBS=$ac_check_lib_save_LIBS
29740 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_main" >&5
29741 echo "${ECHO_T}$ac_cv_lib_cur_colr_main" >&6
29742 if test $ac_cv_lib_cur_colr_main = yes; then
29743 cat >>confdefs.h <<_ACEOF
29744 #define HAVE_LIBCUR_COLR 1
29747 LIBS="-lcur_colr $LIBS"
29753 echo "$as_me:$LINENO: checking for main in -lintl" >&5
29754 echo $ECHO_N "checking for main in -lintl... $ECHO_C" >&6
29755 if test "${ac_cv_lib_intl_main+set}" = set; then
29756 echo $ECHO_N "(cached) $ECHO_C" >&6
29758 ac_check_lib_save_LIBS=$LIBS
29759 LIBS="-lintl $LIBS"
29760 cat >conftest.$ac_ext <<_ACEOF
29763 cat confdefs.h >>conftest.$ac_ext
29764 cat >>conftest.$ac_ext <<_ACEOF
29765 /* end confdefs.h. */
29776 rm -f conftest.$ac_objext conftest$ac_exeext
29777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29778 (eval $ac_link) 2>conftest.er1
29780 grep -v '^ *+' conftest.er1 >conftest.err
29782 cat conftest.err >&5
29783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29784 (exit $ac_status); } &&
29785 { ac_try='test -z "$ac_c_werror_flag"
29786 || test ! -s conftest.err'
29787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29788 (eval $ac_try) 2>&5
29790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29791 (exit $ac_status); }; } &&
29792 { ac_try='test -s conftest$ac_exeext'
29793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29794 (eval $ac_try) 2>&5
29796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29797 (exit $ac_status); }; }; then
29798 ac_cv_lib_intl_main=yes
29800 echo "$as_me: failed program was:" >&5
29801 sed 's/^/| /' conftest.$ac_ext >&5
29803 ac_cv_lib_intl_main=no
29805 rm -f conftest.err conftest.$ac_objext \
29806 conftest$ac_exeext conftest.$ac_ext
29807 LIBS=$ac_check_lib_save_LIBS
29809 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5
29810 echo "${ECHO_T}$ac_cv_lib_intl_main" >&6
29811 if test $ac_cv_lib_intl_main = yes; then
29812 cat >>confdefs.h <<_ACEOF
29813 #define HAVE_LIBINTL 1
29816 LIBS="-lintl $LIBS"
29824 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
29825 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
29826 if test "${ac_cv_lib_socket_main+set}" = set; then
29827 echo $ECHO_N "(cached) $ECHO_C" >&6
29829 ac_check_lib_save_LIBS=$LIBS
29830 LIBS="-lsocket $LIBS"
29831 cat >conftest.$ac_ext <<_ACEOF
29834 cat confdefs.h >>conftest.$ac_ext
29835 cat >>conftest.$ac_ext <<_ACEOF
29836 /* end confdefs.h. */
29847 rm -f conftest.$ac_objext conftest$ac_exeext
29848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29849 (eval $ac_link) 2>conftest.er1
29851 grep -v '^ *+' conftest.er1 >conftest.err
29853 cat conftest.err >&5
29854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855 (exit $ac_status); } &&
29856 { ac_try='test -z "$ac_c_werror_flag"
29857 || test ! -s conftest.err'
29858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29859 (eval $ac_try) 2>&5
29861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29862 (exit $ac_status); }; } &&
29863 { ac_try='test -s conftest$ac_exeext'
29864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29865 (eval $ac_try) 2>&5
29867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868 (exit $ac_status); }; }; then
29869 ac_cv_lib_socket_main=yes
29871 echo "$as_me: failed program was:" >&5
29872 sed 's/^/| /' conftest.$ac_ext >&5
29874 ac_cv_lib_socket_main=no
29876 rm -f conftest.err conftest.$ac_objext \
29877 conftest$ac_exeext conftest.$ac_ext
29878 LIBS=$ac_check_lib_save_LIBS
29880 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
29881 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
29882 if test $ac_cv_lib_socket_main = yes; then
29883 cat >>confdefs.h <<_ACEOF
29884 #define HAVE_LIBSOCKET 1
29887 LIBS="-lsocket $LIBS"
29894 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
29895 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
29896 if test "${ac_cv_lib_nsl_main+set}" = set; then
29897 echo $ECHO_N "(cached) $ECHO_C" >&6
29899 ac_check_lib_save_LIBS=$LIBS
29901 cat >conftest.$ac_ext <<_ACEOF
29904 cat confdefs.h >>conftest.$ac_ext
29905 cat >>conftest.$ac_ext <<_ACEOF
29906 /* end confdefs.h. */
29917 rm -f conftest.$ac_objext conftest$ac_exeext
29918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29919 (eval $ac_link) 2>conftest.er1
29921 grep -v '^ *+' conftest.er1 >conftest.err
29923 cat conftest.err >&5
29924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29925 (exit $ac_status); } &&
29926 { ac_try='test -z "$ac_c_werror_flag"
29927 || test ! -s conftest.err'
29928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29929 (eval $ac_try) 2>&5
29931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29932 (exit $ac_status); }; } &&
29933 { ac_try='test -s conftest$ac_exeext'
29934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29935 (eval $ac_try) 2>&5
29937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29938 (exit $ac_status); }; }; then
29939 ac_cv_lib_nsl_main=yes
29941 echo "$as_me: failed program was:" >&5
29942 sed 's/^/| /' conftest.$ac_ext >&5
29944 ac_cv_lib_nsl_main=no
29946 rm -f conftest.err conftest.$ac_objext \
29947 conftest$ac_exeext conftest.$ac_ext
29948 LIBS=$ac_check_lib_save_LIBS
29950 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
29951 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
29952 if test $ac_cv_lib_nsl_main = yes; then
29953 cat >>confdefs.h <<_ACEOF
29954 #define HAVE_LIBNSL 1
29962 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
29963 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
29964 if test "${ac_cv_lib_socket_main+set}" = set; then
29965 echo $ECHO_N "(cached) $ECHO_C" >&6
29967 ac_check_lib_save_LIBS=$LIBS
29968 LIBS="-lsocket $LIBS"
29969 cat >conftest.$ac_ext <<_ACEOF
29972 cat confdefs.h >>conftest.$ac_ext
29973 cat >>conftest.$ac_ext <<_ACEOF
29974 /* end confdefs.h. */
29985 rm -f conftest.$ac_objext conftest$ac_exeext
29986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29987 (eval $ac_link) 2>conftest.er1
29989 grep -v '^ *+' conftest.er1 >conftest.err
29991 cat conftest.err >&5
29992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29993 (exit $ac_status); } &&
29994 { ac_try='test -z "$ac_c_werror_flag"
29995 || test ! -s conftest.err'
29996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29997 (eval $ac_try) 2>&5
29999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30000 (exit $ac_status); }; } &&
30001 { ac_try='test -s conftest$ac_exeext'
30002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30003 (eval $ac_try) 2>&5
30005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30006 (exit $ac_status); }; }; then
30007 ac_cv_lib_socket_main=yes
30009 echo "$as_me: failed program was:" >&5
30010 sed 's/^/| /' conftest.$ac_ext >&5
30012 ac_cv_lib_socket_main=no
30014 rm -f conftest.err conftest.$ac_objext \
30015 conftest$ac_exeext conftest.$ac_ext
30016 LIBS=$ac_check_lib_save_LIBS
30018 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
30019 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
30020 if test $ac_cv_lib_socket_main = yes; then
30021 cat >>confdefs.h <<_ACEOF
30022 #define HAVE_LIBSOCKET 1
30025 LIBS="-lsocket $LIBS"
30030 echo "$as_me:$LINENO: checking for main in -lsun" >&5
30031 echo $ECHO_N "checking for main in -lsun... $ECHO_C" >&6
30032 if test "${ac_cv_lib_sun_main+set}" = set; then
30033 echo $ECHO_N "(cached) $ECHO_C" >&6
30035 ac_check_lib_save_LIBS=$LIBS
30037 cat >conftest.$ac_ext <<_ACEOF
30040 cat confdefs.h >>conftest.$ac_ext
30041 cat >>conftest.$ac_ext <<_ACEOF
30042 /* end confdefs.h. */
30053 rm -f conftest.$ac_objext conftest$ac_exeext
30054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30055 (eval $ac_link) 2>conftest.er1
30057 grep -v '^ *+' conftest.er1 >conftest.err
30059 cat conftest.err >&5
30060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30061 (exit $ac_status); } &&
30062 { ac_try='test -z "$ac_c_werror_flag"
30063 || test ! -s conftest.err'
30064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30065 (eval $ac_try) 2>&5
30067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30068 (exit $ac_status); }; } &&
30069 { ac_try='test -s conftest$ac_exeext'
30070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30071 (eval $ac_try) 2>&5
30073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30074 (exit $ac_status); }; }; then
30075 ac_cv_lib_sun_main=yes
30077 echo "$as_me: failed program was:" >&5
30078 sed 's/^/| /' conftest.$ac_ext >&5
30080 ac_cv_lib_sun_main=no
30082 rm -f conftest.err conftest.$ac_objext \
30083 conftest$ac_exeext conftest.$ac_ext
30084 LIBS=$ac_check_lib_save_LIBS
30086 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_main" >&5
30087 echo "${ECHO_T}$ac_cv_lib_sun_main" >&6
30088 if test $ac_cv_lib_sun_main = yes; then
30089 cat >>confdefs.h <<_ACEOF
30090 #define HAVE_LIBSUN 1
30101 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
30102 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
30103 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
30104 echo $ECHO_N "(cached) $ECHO_C" >&6
30106 ac_check_lib_save_LIBS=$LIBS
30107 LIBS="-ltermcap $LIBS"
30108 cat >conftest.$ac_ext <<_ACEOF
30111 cat confdefs.h >>conftest.$ac_ext
30112 cat >>conftest.$ac_ext <<_ACEOF
30113 /* end confdefs.h. */
30115 /* Override any gcc2 internal prototype to avoid an error. */
30119 /* We use char because int might match the return type of a gcc2
30120 builtin and then its argument prototype would still apply. */
30130 rm -f conftest.$ac_objext conftest$ac_exeext
30131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30132 (eval $ac_link) 2>conftest.er1
30134 grep -v '^ *+' conftest.er1 >conftest.err
30136 cat conftest.err >&5
30137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30138 (exit $ac_status); } &&
30139 { ac_try='test -z "$ac_c_werror_flag"
30140 || test ! -s conftest.err'
30141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30142 (eval $ac_try) 2>&5
30144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30145 (exit $ac_status); }; } &&
30146 { ac_try='test -s conftest$ac_exeext'
30147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30148 (eval $ac_try) 2>&5
30150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151 (exit $ac_status); }; }; then
30152 ac_cv_lib_termcap_tgetent=yes
30154 echo "$as_me: failed program was:" >&5
30155 sed 's/^/| /' conftest.$ac_ext >&5
30157 ac_cv_lib_termcap_tgetent=no
30159 rm -f conftest.err conftest.$ac_objext \
30160 conftest$ac_exeext conftest.$ac_ext
30161 LIBS=$ac_check_lib_save_LIBS
30163 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
30164 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
30165 if test $ac_cv_lib_termcap_tgetent = yes; then
30166 cat >>confdefs.h <<_ACEOF
30167 #define HAVE_LIBTERMCAP 1
30170 LIBS="-ltermcap $LIBS"
30174 if test "$ac_cv_lib_termcap_tgetent" != yes; then
30176 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
30177 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
30178 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
30179 echo $ECHO_N "(cached) $ECHO_C" >&6
30181 ac_check_lib_save_LIBS=$LIBS
30182 LIBS="-lcurses $LIBS"
30183 cat >conftest.$ac_ext <<_ACEOF
30186 cat confdefs.h >>conftest.$ac_ext
30187 cat >>conftest.$ac_ext <<_ACEOF
30188 /* end confdefs.h. */
30190 /* Override any gcc2 internal prototype to avoid an error. */
30194 /* We use char because int might match the return type of a gcc2
30195 builtin and then its argument prototype would still apply. */
30205 rm -f conftest.$ac_objext conftest$ac_exeext
30206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30207 (eval $ac_link) 2>conftest.er1
30209 grep -v '^ *+' conftest.er1 >conftest.err
30211 cat conftest.err >&5
30212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30213 (exit $ac_status); } &&
30214 { ac_try='test -z "$ac_c_werror_flag"
30215 || test ! -s conftest.err'
30216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30217 (eval $ac_try) 2>&5
30219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30220 (exit $ac_status); }; } &&
30221 { ac_try='test -s conftest$ac_exeext'
30222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30223 (eval $ac_try) 2>&5
30225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30226 (exit $ac_status); }; }; then
30227 ac_cv_lib_curses_tgetent=yes
30229 echo "$as_me: failed program was:" >&5
30230 sed 's/^/| /' conftest.$ac_ext >&5
30232 ac_cv_lib_curses_tgetent=no
30234 rm -f conftest.err conftest.$ac_objext \
30235 conftest$ac_exeext conftest.$ac_ext
30236 LIBS=$ac_check_lib_save_LIBS
30238 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
30239 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
30240 if test $ac_cv_lib_curses_tgetent = yes; then
30241 cat >>confdefs.h <<_ACEOF
30242 #define HAVE_LIBCURSES 1
30245 LIBS="-lcurses $LIBS"
30249 if test "$ac_cv_lib_curses_tgetent" != yes; then
30251 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
30252 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
30253 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
30254 echo $ECHO_N "(cached) $ECHO_C" >&6
30256 ac_check_lib_save_LIBS=$LIBS
30257 LIBS="-lncurses $LIBS"
30258 cat >conftest.$ac_ext <<_ACEOF
30261 cat confdefs.h >>conftest.$ac_ext
30262 cat >>conftest.$ac_ext <<_ACEOF
30263 /* end confdefs.h. */
30265 /* Override any gcc2 internal prototype to avoid an error. */
30269 /* We use char because int might match the return type of a gcc2
30270 builtin and then its argument prototype would still apply. */
30280 rm -f conftest.$ac_objext conftest$ac_exeext
30281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30282 (eval $ac_link) 2>conftest.er1
30284 grep -v '^ *+' conftest.er1 >conftest.err
30286 cat conftest.err >&5
30287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30288 (exit $ac_status); } &&
30289 { ac_try='test -z "$ac_c_werror_flag"
30290 || test ! -s conftest.err'
30291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30292 (eval $ac_try) 2>&5
30294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30295 (exit $ac_status); }; } &&
30296 { ac_try='test -s conftest$ac_exeext'
30297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30298 (eval $ac_try) 2>&5
30300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30301 (exit $ac_status); }; }; then
30302 ac_cv_lib_ncurses_tgetent=yes
30304 echo "$as_me: failed program was:" >&5
30305 sed 's/^/| /' conftest.$ac_ext >&5
30307 ac_cv_lib_ncurses_tgetent=no
30309 rm -f conftest.err conftest.$ac_objext \
30310 conftest$ac_exeext conftest.$ac_ext
30311 LIBS=$ac_check_lib_save_LIBS
30313 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
30314 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
30315 if test $ac_cv_lib_ncurses_tgetent = yes; then
30316 cat >>confdefs.h <<_ACEOF
30317 #define HAVE_LIBNCURSES 1
30320 LIBS="-lncurses $LIBS"
30326 if test "$ac_cv_lib_termcap_tgetent" = yes ||
30327 test "$ac_cv_lib_curses_tgetent" = yes ||
30328 test "$ac_cv_lib_ncurses_tgetent" = yes; then
30330 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
30331 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
30332 if test "${ac_cv_lib_readline_readline+set}" = set; then
30333 echo $ECHO_N "(cached) $ECHO_C" >&6
30335 ac_check_lib_save_LIBS=$LIBS
30336 LIBS="-lreadline $LIBS"
30337 cat >conftest.$ac_ext <<_ACEOF
30340 cat confdefs.h >>conftest.$ac_ext
30341 cat >>conftest.$ac_ext <<_ACEOF
30342 /* end confdefs.h. */
30344 /* Override any gcc2 internal prototype to avoid an error. */
30348 /* We use char because int might match the return type of a gcc2
30349 builtin and then its argument prototype would still apply. */
30359 rm -f conftest.$ac_objext conftest$ac_exeext
30360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30361 (eval $ac_link) 2>conftest.er1
30363 grep -v '^ *+' conftest.er1 >conftest.err
30365 cat conftest.err >&5
30366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30367 (exit $ac_status); } &&
30368 { ac_try='test -z "$ac_c_werror_flag"
30369 || test ! -s conftest.err'
30370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30371 (eval $ac_try) 2>&5
30373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30374 (exit $ac_status); }; } &&
30375 { ac_try='test -s conftest$ac_exeext'
30376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30377 (eval $ac_try) 2>&5
30379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30380 (exit $ac_status); }; }; then
30381 ac_cv_lib_readline_readline=yes
30383 echo "$as_me: failed program was:" >&5
30384 sed 's/^/| /' conftest.$ac_ext >&5
30386 ac_cv_lib_readline_readline=no
30388 rm -f conftest.err conftest.$ac_objext \
30389 conftest$ac_exeext conftest.$ac_ext
30390 LIBS=$ac_check_lib_save_LIBS
30392 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
30393 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
30394 if test $ac_cv_lib_readline_readline = yes; then
30395 cat >>confdefs.h <<_ACEOF
30396 #define HAVE_LIBREADLINE 1
30399 LIBS="-lreadline $LIBS"
30403 if test "$ac_cv_lib_readline_readline" != yes; then
30404 { echo "$as_me:$LINENO: WARNING: *** No readline library, no history and command line editing in amrecover!" >&5
30405 echo "$as_me: WARNING: *** No readline library, no history and command line editing in amrecover!" >&2;}
30408 { echo "$as_me:$LINENO: WARNING: *** No terminal library, no history and command line editing in amrecover!" >&5
30409 echo "$as_me: WARNING: *** No terminal library, no history and command line editing in amrecover!" >&2;}
30412 if test "$ac_cv_lib_readline_readline" = yes; then
30413 READLINE_LIBS=-lreadline
30414 LIBS=`echo $LIBS | sed s/-lreadline//`
30418 if test "$ac_cv_header_linux_zftape_h" = yes; then
30419 if test "$ac_cv_header_vtblc_h" = yes; then
30421 echo "$as_me:$LINENO: checking for main in -lvtblc" >&5
30422 echo $ECHO_N "checking for main in -lvtblc... $ECHO_C" >&6
30423 if test "${ac_cv_lib_vtblc_main+set}" = set; then
30424 echo $ECHO_N "(cached) $ECHO_C" >&6
30426 ac_check_lib_save_LIBS=$LIBS
30427 LIBS="-lvtblc $LIBS"
30428 cat >conftest.$ac_ext <<_ACEOF
30431 cat confdefs.h >>conftest.$ac_ext
30432 cat >>conftest.$ac_ext <<_ACEOF
30433 /* end confdefs.h. */
30444 rm -f conftest.$ac_objext conftest$ac_exeext
30445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30446 (eval $ac_link) 2>conftest.er1
30448 grep -v '^ *+' conftest.er1 >conftest.err
30450 cat conftest.err >&5
30451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30452 (exit $ac_status); } &&
30453 { ac_try='test -z "$ac_c_werror_flag"
30454 || test ! -s conftest.err'
30455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30456 (eval $ac_try) 2>&5
30458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30459 (exit $ac_status); }; } &&
30460 { ac_try='test -s conftest$ac_exeext'
30461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30462 (eval $ac_try) 2>&5
30464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30465 (exit $ac_status); }; }; then
30466 ac_cv_lib_vtblc_main=yes
30468 echo "$as_me: failed program was:" >&5
30469 sed 's/^/| /' conftest.$ac_ext >&5
30471 ac_cv_lib_vtblc_main=no
30473 rm -f conftest.err conftest.$ac_objext \
30474 conftest$ac_exeext conftest.$ac_ext
30475 LIBS=$ac_check_lib_save_LIBS
30477 echo "$as_me:$LINENO: result: $ac_cv_lib_vtblc_main" >&5
30478 echo "${ECHO_T}$ac_cv_lib_vtblc_main" >&6
30479 if test $ac_cv_lib_vtblc_main = yes; then
30480 cat >>confdefs.h <<_ACEOF
30481 #define HAVE_LIBVTBLC 1
30484 LIBS="-lvtblc $LIBS"
30488 if test "$ac_cv_lib_vtblc_main" != yes; then
30489 { echo "$as_me:$LINENO: WARNING: *** vtblc library not found - no QIC volume table support!" >&5
30490 echo "$as_me: WARNING: *** vtblc library not found - no QIC volume table support!" >&2;}
30493 { echo "$as_me:$LINENO: WARNING: *** vtblc headers not found - no QIC volume table support!" >&5
30494 echo "$as_me: WARNING: *** vtblc headers not found - no QIC volume table support!" >&2;}
30499 echo "$as_me:$LINENO: checking for modf in -lm" >&5
30500 echo $ECHO_N "checking for modf in -lm... $ECHO_C" >&6
30501 if test "${ac_cv_lib_m_modf+set}" = set; then
30502 echo $ECHO_N "(cached) $ECHO_C" >&6
30504 ac_check_lib_save_LIBS=$LIBS
30506 cat >conftest.$ac_ext <<_ACEOF
30509 cat confdefs.h >>conftest.$ac_ext
30510 cat >>conftest.$ac_ext <<_ACEOF
30511 /* end confdefs.h. */
30513 /* Override any gcc2 internal prototype to avoid an error. */
30517 /* We use char because int might match the return type of a gcc2
30518 builtin and then its argument prototype would still apply. */
30528 rm -f conftest.$ac_objext conftest$ac_exeext
30529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30530 (eval $ac_link) 2>conftest.er1
30532 grep -v '^ *+' conftest.er1 >conftest.err
30534 cat conftest.err >&5
30535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30536 (exit $ac_status); } &&
30537 { ac_try='test -z "$ac_c_werror_flag"
30538 || test ! -s conftest.err'
30539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30540 (eval $ac_try) 2>&5
30542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30543 (exit $ac_status); }; } &&
30544 { ac_try='test -s conftest$ac_exeext'
30545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30546 (eval $ac_try) 2>&5
30548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30549 (exit $ac_status); }; }; then
30550 ac_cv_lib_m_modf=yes
30552 echo "$as_me: failed program was:" >&5
30553 sed 's/^/| /' conftest.$ac_ext >&5
30555 ac_cv_lib_m_modf=no
30557 rm -f conftest.err conftest.$ac_objext \
30558 conftest$ac_exeext conftest.$ac_ext
30559 LIBS=$ac_check_lib_save_LIBS
30561 echo "$as_me:$LINENO: result: $ac_cv_lib_m_modf" >&5
30562 echo "${ECHO_T}$ac_cv_lib_m_modf" >&6
30563 if test $ac_cv_lib_m_modf = yes; then
30564 cat >>confdefs.h <<_ACEOF
30565 #define HAVE_LIBM 1
30574 echo "$as_me:$LINENO: checking for mt_flags mtget structure element" >&5
30575 echo $ECHO_N "checking for mt_flags mtget structure element... $ECHO_C" >&6
30576 mt_flags_result="found"
30577 cat >conftest.$ac_ext <<_ACEOF
30580 cat confdefs.h >>conftest.$ac_ext
30581 cat >>conftest.$ac_ext <<_ACEOF
30582 /* end confdefs.h. */
30585 #include <sys/types.h>
30586 #include <sys/mtio.h>
30601 rm -f conftest.$ac_objext
30602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30603 (eval $ac_compile) 2>conftest.er1
30605 grep -v '^ *+' conftest.er1 >conftest.err
30607 cat conftest.err >&5
30608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30609 (exit $ac_status); } &&
30610 { ac_try='test -z "$ac_c_werror_flag"
30611 || test ! -s conftest.err'
30612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30613 (eval $ac_try) 2>&5
30615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30616 (exit $ac_status); }; } &&
30617 { ac_try='test -s conftest.$ac_objext'
30618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30619 (eval $ac_try) 2>&5
30621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30622 (exit $ac_status); }; }; then
30624 cat >>confdefs.h <<\_ACEOF
30625 #define HAVE_MT_FLAGS 1
30629 echo "$as_me: failed program was:" >&5
30630 sed 's/^/| /' conftest.$ac_ext >&5
30632 mt_flags_result="not found"
30634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30635 echo "$as_me:$LINENO: result: $mt_flags_result" >&5
30636 echo "${ECHO_T}$mt_flags_result" >&6
30638 echo "$as_me:$LINENO: checking for mt_fileno mtget structure element" >&5
30639 echo $ECHO_N "checking for mt_fileno mtget structure element... $ECHO_C" >&6
30640 mt_fileno_result="found"
30641 cat >conftest.$ac_ext <<_ACEOF
30644 cat confdefs.h >>conftest.$ac_ext
30645 cat >>conftest.$ac_ext <<_ACEOF
30646 /* end confdefs.h. */
30649 #include <sys/types.h>
30650 #include <sys/mtio.h>
30659 ds = buf.mt_fileno;
30665 rm -f conftest.$ac_objext
30666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30667 (eval $ac_compile) 2>conftest.er1
30669 grep -v '^ *+' conftest.er1 >conftest.err
30671 cat conftest.err >&5
30672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30673 (exit $ac_status); } &&
30674 { ac_try='test -z "$ac_c_werror_flag"
30675 || test ! -s conftest.err'
30676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30677 (eval $ac_try) 2>&5
30679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30680 (exit $ac_status); }; } &&
30681 { ac_try='test -s conftest.$ac_objext'
30682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30683 (eval $ac_try) 2>&5
30685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30686 (exit $ac_status); }; }; then
30688 cat >>confdefs.h <<\_ACEOF
30689 #define HAVE_MT_FILENO 1
30693 echo "$as_me: failed program was:" >&5
30694 sed 's/^/| /' conftest.$ac_ext >&5
30696 mt_fileno_result="not found"
30698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30699 echo "$as_me:$LINENO: result: $mt_fileno_result" >&5
30700 echo "${ECHO_T}$mt_fileno_result" >&6
30702 echo "$as_me:$LINENO: checking for mt_blkno mtget structure element" >&5
30703 echo $ECHO_N "checking for mt_blkno mtget structure element... $ECHO_C" >&6
30704 mt_blkno_result="found"
30705 cat >conftest.$ac_ext <<_ACEOF
30708 cat confdefs.h >>conftest.$ac_ext
30709 cat >>conftest.$ac_ext <<_ACEOF
30710 /* end confdefs.h. */
30713 #include <sys/types.h>
30714 #include <sys/mtio.h>
30729 rm -f conftest.$ac_objext
30730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30731 (eval $ac_compile) 2>conftest.er1
30733 grep -v '^ *+' conftest.er1 >conftest.err
30735 cat conftest.err >&5
30736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30737 (exit $ac_status); } &&
30738 { ac_try='test -z "$ac_c_werror_flag"
30739 || test ! -s conftest.err'
30740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30741 (eval $ac_try) 2>&5
30743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30744 (exit $ac_status); }; } &&
30745 { ac_try='test -s conftest.$ac_objext'
30746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30747 (eval $ac_try) 2>&5
30749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30750 (exit $ac_status); }; }; then
30752 cat >>confdefs.h <<\_ACEOF
30753 #define HAVE_MT_BLKNO 1
30757 echo "$as_me: failed program was:" >&5
30758 sed 's/^/| /' conftest.$ac_ext >&5
30760 mt_blkno_result="not found"
30762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30763 echo "$as_me:$LINENO: result: $mt_blkno_result" >&5
30764 echo "${ECHO_T}$mt_blkno_result" >&6
30766 echo "$as_me:$LINENO: checking for mt_dsreg mtget structure element" >&5
30767 echo $ECHO_N "checking for mt_dsreg mtget structure element... $ECHO_C" >&6
30768 mt_dsreg_result="found"
30769 cat >conftest.$ac_ext <<_ACEOF
30772 cat confdefs.h >>conftest.$ac_ext
30773 cat >>conftest.$ac_ext <<_ACEOF
30774 /* end confdefs.h. */
30777 #include <sys/types.h>
30778 #include <sys/mtio.h>
30793 rm -f conftest.$ac_objext
30794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30795 (eval $ac_compile) 2>conftest.er1
30797 grep -v '^ *+' conftest.er1 >conftest.err
30799 cat conftest.err >&5
30800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30801 (exit $ac_status); } &&
30802 { ac_try='test -z "$ac_c_werror_flag"
30803 || test ! -s conftest.err'
30804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30805 (eval $ac_try) 2>&5
30807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30808 (exit $ac_status); }; } &&
30809 { ac_try='test -s conftest.$ac_objext'
30810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30811 (eval $ac_try) 2>&5
30813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30814 (exit $ac_status); }; }; then
30816 cat >>confdefs.h <<\_ACEOF
30817 #define HAVE_MT_DSREG 1
30821 echo "$as_me: failed program was:" >&5
30822 sed 's/^/| /' conftest.$ac_ext >&5
30824 mt_dsreg_result="not found"
30826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30827 echo "$as_me:$LINENO: result: $mt_dsreg_result" >&5
30828 echo "${ECHO_T}$mt_dsreg_result" >&6
30830 echo "$as_me:$LINENO: checking for mt_erreg mtget structure element" >&5
30831 echo $ECHO_N "checking for mt_erreg mtget structure element... $ECHO_C" >&6
30832 mt_erreg_result="found"
30833 cat >conftest.$ac_ext <<_ACEOF
30836 cat confdefs.h >>conftest.$ac_ext
30837 cat >>conftest.$ac_ext <<_ACEOF
30838 /* end confdefs.h. */
30841 #include <sys/types.h>
30842 #include <sys/mtio.h>
30857 rm -f conftest.$ac_objext
30858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30859 (eval $ac_compile) 2>conftest.er1
30861 grep -v '^ *+' conftest.er1 >conftest.err
30863 cat conftest.err >&5
30864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30865 (exit $ac_status); } &&
30866 { ac_try='test -z "$ac_c_werror_flag"
30867 || test ! -s conftest.err'
30868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30869 (eval $ac_try) 2>&5
30871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30872 (exit $ac_status); }; } &&
30873 { ac_try='test -s conftest.$ac_objext'
30874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30875 (eval $ac_try) 2>&5
30877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30878 (exit $ac_status); }; }; then
30880 cat >>confdefs.h <<\_ACEOF
30881 #define HAVE_MT_ERREG 1
30885 echo "$as_me: failed program was:" >&5
30886 sed 's/^/| /' conftest.$ac_ext >&5
30888 mt_erreg_result="not found"
30890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30891 echo "$as_me:$LINENO: result: $mt_erreg_result" >&5
30892 echo "${ECHO_T}$mt_erreg_result" >&6
30900 echo "$as_me:$LINENO: checking for dbm_open in -lc" >&5
30901 echo $ECHO_N "checking for dbm_open in -lc... $ECHO_C" >&6
30902 if test "${ac_cv_lib_c_dbm_open+set}" = set; then
30903 echo $ECHO_N "(cached) $ECHO_C" >&6
30905 ac_check_lib_save_LIBS=$LIBS
30907 cat >conftest.$ac_ext <<_ACEOF
30910 cat confdefs.h >>conftest.$ac_ext
30911 cat >>conftest.$ac_ext <<_ACEOF
30912 /* end confdefs.h. */
30914 /* Override any gcc2 internal prototype to avoid an error. */
30918 /* We use char because int might match the return type of a gcc2
30919 builtin and then its argument prototype would still apply. */
30929 rm -f conftest.$ac_objext conftest$ac_exeext
30930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30931 (eval $ac_link) 2>conftest.er1
30933 grep -v '^ *+' conftest.er1 >conftest.err
30935 cat conftest.err >&5
30936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30937 (exit $ac_status); } &&
30938 { ac_try='test -z "$ac_c_werror_flag"
30939 || test ! -s conftest.err'
30940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30941 (eval $ac_try) 2>&5
30943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30944 (exit $ac_status); }; } &&
30945 { ac_try='test -s conftest$ac_exeext'
30946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30947 (eval $ac_try) 2>&5
30949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30950 (exit $ac_status); }; }; then
30951 ac_cv_lib_c_dbm_open=yes
30953 echo "$as_me: failed program was:" >&5
30954 sed 's/^/| /' conftest.$ac_ext >&5
30956 ac_cv_lib_c_dbm_open=no
30958 rm -f conftest.err conftest.$ac_objext \
30959 conftest$ac_exeext conftest.$ac_ext
30960 LIBS=$ac_check_lib_save_LIBS
30962 echo "$as_me:$LINENO: result: $ac_cv_lib_c_dbm_open" >&5
30963 echo "${ECHO_T}$ac_cv_lib_c_dbm_open" >&6
30964 if test $ac_cv_lib_c_dbm_open = yes; then
30965 cat >>confdefs.h <<_ACEOF
30966 #define HAVE_LIBC 1
30975 case "$DB_STYLE" in
30977 if test "$ac_cv_header_db_h" = yes; then
30979 echo "$as_me:$LINENO: checking for main in -ldb" >&5
30980 echo $ECHO_N "checking for main in -ldb... $ECHO_C" >&6
30981 if test "${ac_cv_lib_db_main+set}" = set; then
30982 echo $ECHO_N "(cached) $ECHO_C" >&6
30984 ac_check_lib_save_LIBS=$LIBS
30986 cat >conftest.$ac_ext <<_ACEOF
30989 cat confdefs.h >>conftest.$ac_ext
30990 cat >>conftest.$ac_ext <<_ACEOF
30991 /* end confdefs.h. */
31002 rm -f conftest.$ac_objext conftest$ac_exeext
31003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31004 (eval $ac_link) 2>conftest.er1
31006 grep -v '^ *+' conftest.er1 >conftest.err
31008 cat conftest.err >&5
31009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31010 (exit $ac_status); } &&
31011 { ac_try='test -z "$ac_c_werror_flag"
31012 || test ! -s conftest.err'
31013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31014 (eval $ac_try) 2>&5
31016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31017 (exit $ac_status); }; } &&
31018 { ac_try='test -s conftest$ac_exeext'
31019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31020 (eval $ac_try) 2>&5
31022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31023 (exit $ac_status); }; }; then
31024 ac_cv_lib_db_main=yes
31026 echo "$as_me: failed program was:" >&5
31027 sed 's/^/| /' conftest.$ac_ext >&5
31029 ac_cv_lib_db_main=no
31031 rm -f conftest.err conftest.$ac_objext \
31032 conftest$ac_exeext conftest.$ac_ext
31033 LIBS=$ac_check_lib_save_LIBS
31035 echo "$as_me:$LINENO: result: $ac_cv_lib_db_main" >&5
31036 echo "${ECHO_T}$ac_cv_lib_db_main" >&6
31037 if test $ac_cv_lib_db_main = yes; then
31038 cat >>confdefs.h <<_ACEOF
31039 #define HAVE_LIBDB 1
31046 if test "$ac_cv_lib_db_main" = yes; then
31048 echo "$as_me:$LINENO: checking for dbm_open in -ldb" >&5
31049 echo $ECHO_N "checking for dbm_open in -ldb... $ECHO_C" >&6
31050 if test "${ac_cv_lib_db_dbm_open+set}" = set; then
31051 echo $ECHO_N "(cached) $ECHO_C" >&6
31053 ac_check_lib_save_LIBS=$LIBS
31055 cat >conftest.$ac_ext <<_ACEOF
31058 cat confdefs.h >>conftest.$ac_ext
31059 cat >>conftest.$ac_ext <<_ACEOF
31060 /* end confdefs.h. */
31062 /* Override any gcc2 internal prototype to avoid an error. */
31066 /* We use char because int might match the return type of a gcc2
31067 builtin and then its argument prototype would still apply. */
31077 rm -f conftest.$ac_objext conftest$ac_exeext
31078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31079 (eval $ac_link) 2>conftest.er1
31081 grep -v '^ *+' conftest.er1 >conftest.err
31083 cat conftest.err >&5
31084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31085 (exit $ac_status); } &&
31086 { ac_try='test -z "$ac_c_werror_flag"
31087 || test ! -s conftest.err'
31088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31089 (eval $ac_try) 2>&5
31091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31092 (exit $ac_status); }; } &&
31093 { ac_try='test -s conftest$ac_exeext'
31094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31095 (eval $ac_try) 2>&5
31097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31098 (exit $ac_status); }; }; then
31099 ac_cv_lib_db_dbm_open=yes
31101 echo "$as_me: failed program was:" >&5
31102 sed 's/^/| /' conftest.$ac_ext >&5
31104 ac_cv_lib_db_dbm_open=no
31106 rm -f conftest.err conftest.$ac_objext \
31107 conftest$ac_exeext conftest.$ac_ext
31108 LIBS=$ac_check_lib_save_LIBS
31110 echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbm_open" >&5
31111 echo "${ECHO_T}$ac_cv_lib_db_dbm_open" >&6
31112 if test $ac_cv_lib_db_dbm_open = yes; then
31113 cat >>confdefs.h <<_ACEOF
31114 #define HAVE_LIBDB 1
31121 if test "$ac_cv_lib_db_dbm_open" = yes; then
31126 { echo "$as_me:$LINENO: WARNING: *** db database library requested but dbm_open not found in -ldb." >&5
31127 echo "$as_me: WARNING: *** db database library requested but dbm_open not found in -ldb." >&2;}
31130 if test "$ac_cv_lib_c_dbm_open" = yes; then
31135 { echo "$as_me:$LINENO: WARNING: *** db library requested but -ldb doesn't exist and dbm_open cannot be found." >&5
31136 echo "$as_me: WARNING: *** db library requested but -ldb doesn't exist and dbm_open cannot be found." >&2;}
31141 { echo "$as_me:$LINENO: WARNING: *** db database library requested but db.h not found." >&5
31142 echo "$as_me: WARNING: *** db database library requested but db.h not found." >&2;}
31147 if test "$ac_cv_header_dbm_h" = yes; then
31149 echo "$as_me:$LINENO: checking for main in -ldbm" >&5
31150 echo $ECHO_N "checking for main in -ldbm... $ECHO_C" >&6
31151 if test "${ac_cv_lib_dbm_main+set}" = set; then
31152 echo $ECHO_N "(cached) $ECHO_C" >&6
31154 ac_check_lib_save_LIBS=$LIBS
31156 cat >conftest.$ac_ext <<_ACEOF
31159 cat confdefs.h >>conftest.$ac_ext
31160 cat >>conftest.$ac_ext <<_ACEOF
31161 /* end confdefs.h. */
31172 rm -f conftest.$ac_objext conftest$ac_exeext
31173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31174 (eval $ac_link) 2>conftest.er1
31176 grep -v '^ *+' conftest.er1 >conftest.err
31178 cat conftest.err >&5
31179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31180 (exit $ac_status); } &&
31181 { ac_try='test -z "$ac_c_werror_flag"
31182 || test ! -s conftest.err'
31183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31184 (eval $ac_try) 2>&5
31186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31187 (exit $ac_status); }; } &&
31188 { ac_try='test -s conftest$ac_exeext'
31189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31190 (eval $ac_try) 2>&5
31192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31193 (exit $ac_status); }; }; then
31194 ac_cv_lib_dbm_main=yes
31196 echo "$as_me: failed program was:" >&5
31197 sed 's/^/| /' conftest.$ac_ext >&5
31199 ac_cv_lib_dbm_main=no
31201 rm -f conftest.err conftest.$ac_objext \
31202 conftest$ac_exeext conftest.$ac_ext
31203 LIBS=$ac_check_lib_save_LIBS
31205 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_main" >&5
31206 echo "${ECHO_T}$ac_cv_lib_dbm_main" >&6
31207 if test $ac_cv_lib_dbm_main = yes; then
31208 cat >>confdefs.h <<_ACEOF
31209 #define HAVE_LIBDBM 1
31216 if test "$ac_cv_lib_dbm_main" = yes; then
31218 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
31219 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
31220 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
31221 echo $ECHO_N "(cached) $ECHO_C" >&6
31223 ac_check_lib_save_LIBS=$LIBS
31225 cat >conftest.$ac_ext <<_ACEOF
31228 cat confdefs.h >>conftest.$ac_ext
31229 cat >>conftest.$ac_ext <<_ACEOF
31230 /* end confdefs.h. */
31232 /* Override any gcc2 internal prototype to avoid an error. */
31236 /* We use char because int might match the return type of a gcc2
31237 builtin and then its argument prototype would still apply. */
31247 rm -f conftest.$ac_objext conftest$ac_exeext
31248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31249 (eval $ac_link) 2>conftest.er1
31251 grep -v '^ *+' conftest.er1 >conftest.err
31253 cat conftest.err >&5
31254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31255 (exit $ac_status); } &&
31256 { ac_try='test -z "$ac_c_werror_flag"
31257 || test ! -s conftest.err'
31258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31259 (eval $ac_try) 2>&5
31261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31262 (exit $ac_status); }; } &&
31263 { ac_try='test -s conftest$ac_exeext'
31264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31265 (eval $ac_try) 2>&5
31267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31268 (exit $ac_status); }; }; then
31269 ac_cv_lib_dbm_dbm_open=yes
31271 echo "$as_me: failed program was:" >&5
31272 sed 's/^/| /' conftest.$ac_ext >&5
31274 ac_cv_lib_dbm_dbm_open=no
31276 rm -f conftest.err conftest.$ac_objext \
31277 conftest$ac_exeext conftest.$ac_ext
31278 LIBS=$ac_check_lib_save_LIBS
31280 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
31281 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
31282 if test $ac_cv_lib_dbm_dbm_open = yes; then
31283 cat >>confdefs.h <<_ACEOF
31284 #define HAVE_LIBDBM 1
31291 if test "$ac_cv_lib_dbm_dbm_open" = yes; then
31296 { echo "$as_me:$LINENO: WARNING: *** dbm database library requested but dbm_open not found in -ldbm." >&5
31297 echo "$as_me: WARNING: *** dbm database library requested but dbm_open not found in -ldbm." >&2;}
31300 if test "$ac_cv_lib_c_dbm_open" = yes; then
31305 { echo "$as_me:$LINENO: WARNING: *** dbm library requested but -ldbm doesn't exist and dbm_open cannot be found." >&5
31306 echo "$as_me: WARNING: *** dbm library requested but -ldbm doesn't exist and dbm_open cannot be found." >&2;}
31311 { echo "$as_me:$LINENO: WARNING: *** dbm database library requested but dbm.h not found." >&5
31312 echo "$as_me: WARNING: *** dbm database library requested but dbm.h not found." >&2;}
31317 if test "$ac_cv_header_ndbm_h" = yes; then
31319 echo "$as_me:$LINENO: checking for main in -lgdbm" >&5
31320 echo $ECHO_N "checking for main in -lgdbm... $ECHO_C" >&6
31321 if test "${ac_cv_lib_gdbm_main+set}" = set; then
31322 echo $ECHO_N "(cached) $ECHO_C" >&6
31324 ac_check_lib_save_LIBS=$LIBS
31325 LIBS="-lgdbm $LIBS"
31326 cat >conftest.$ac_ext <<_ACEOF
31329 cat confdefs.h >>conftest.$ac_ext
31330 cat >>conftest.$ac_ext <<_ACEOF
31331 /* end confdefs.h. */
31342 rm -f conftest.$ac_objext conftest$ac_exeext
31343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31344 (eval $ac_link) 2>conftest.er1
31346 grep -v '^ *+' conftest.er1 >conftest.err
31348 cat conftest.err >&5
31349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31350 (exit $ac_status); } &&
31351 { ac_try='test -z "$ac_c_werror_flag"
31352 || test ! -s conftest.err'
31353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31354 (eval $ac_try) 2>&5
31356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31357 (exit $ac_status); }; } &&
31358 { ac_try='test -s conftest$ac_exeext'
31359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31360 (eval $ac_try) 2>&5
31362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31363 (exit $ac_status); }; }; then
31364 ac_cv_lib_gdbm_main=yes
31366 echo "$as_me: failed program was:" >&5
31367 sed 's/^/| /' conftest.$ac_ext >&5
31369 ac_cv_lib_gdbm_main=no
31371 rm -f conftest.err conftest.$ac_objext \
31372 conftest$ac_exeext conftest.$ac_ext
31373 LIBS=$ac_check_lib_save_LIBS
31375 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_main" >&5
31376 echo "${ECHO_T}$ac_cv_lib_gdbm_main" >&6
31377 if test $ac_cv_lib_gdbm_main = yes; then
31378 cat >>confdefs.h <<_ACEOF
31379 #define HAVE_LIBGDBM 1
31382 LIBS="-lgdbm $LIBS"
31386 if test "$ac_cv_lib_gdbm_main" = yes; then
31388 echo "$as_me:$LINENO: checking for dbm_open in -lgdbm" >&5
31389 echo $ECHO_N "checking for dbm_open in -lgdbm... $ECHO_C" >&6
31390 if test "${ac_cv_lib_gdbm_dbm_open+set}" = set; then
31391 echo $ECHO_N "(cached) $ECHO_C" >&6
31393 ac_check_lib_save_LIBS=$LIBS
31394 LIBS="-lgdbm $LIBS"
31395 cat >conftest.$ac_ext <<_ACEOF
31398 cat confdefs.h >>conftest.$ac_ext
31399 cat >>conftest.$ac_ext <<_ACEOF
31400 /* end confdefs.h. */
31402 /* Override any gcc2 internal prototype to avoid an error. */
31406 /* We use char because int might match the return type of a gcc2
31407 builtin and then its argument prototype would still apply. */
31417 rm -f conftest.$ac_objext conftest$ac_exeext
31418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31419 (eval $ac_link) 2>conftest.er1
31421 grep -v '^ *+' conftest.er1 >conftest.err
31423 cat conftest.err >&5
31424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31425 (exit $ac_status); } &&
31426 { ac_try='test -z "$ac_c_werror_flag"
31427 || test ! -s conftest.err'
31428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31429 (eval $ac_try) 2>&5
31431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31432 (exit $ac_status); }; } &&
31433 { ac_try='test -s conftest$ac_exeext'
31434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31435 (eval $ac_try) 2>&5
31437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31438 (exit $ac_status); }; }; then
31439 ac_cv_lib_gdbm_dbm_open=yes
31441 echo "$as_me: failed program was:" >&5
31442 sed 's/^/| /' conftest.$ac_ext >&5
31444 ac_cv_lib_gdbm_dbm_open=no
31446 rm -f conftest.err conftest.$ac_objext \
31447 conftest$ac_exeext conftest.$ac_ext
31448 LIBS=$ac_check_lib_save_LIBS
31450 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_dbm_open" >&5
31451 echo "${ECHO_T}$ac_cv_lib_gdbm_dbm_open" >&6
31452 if test $ac_cv_lib_gdbm_dbm_open = yes; then
31453 cat >>confdefs.h <<_ACEOF
31454 #define HAVE_LIBGDBM 1
31457 LIBS="-lgdbm $LIBS"
31461 if test "$ac_cv_lib_gdbm_dbm_open" = yes; then
31466 { echo "$as_me:$LINENO: WARNING: *** gdbm database library requested but -lgdbm not found." >&5
31467 echo "$as_me: WARNING: *** gdbm database library requested but -lgdbm not found." >&2;}
31470 if test "$ac_cv_lib_c_dbm_open" = yes; then
31475 { echo "$as_me:$LINENO: WARNING: *** gdbm library requested but -lgdbm doesn't exist and dbm_open cannot be found." >&5
31476 echo "$as_me: WARNING: *** gdbm library requested but -lgdbm doesn't exist and dbm_open cannot be found." >&2;}
31481 { echo "$as_me:$LINENO: WARNING: *** gdbm database library requested but ndbm.h not found." >&5
31482 echo "$as_me: WARNING: *** gdbm database library requested but ndbm.h not found." >&2;}
31487 if test "$ac_cv_header_ndbm_h" = yes; then
31489 echo "$as_me:$LINENO: checking for main in -lndbm" >&5
31490 echo $ECHO_N "checking for main in -lndbm... $ECHO_C" >&6
31491 if test "${ac_cv_lib_ndbm_main+set}" = set; then
31492 echo $ECHO_N "(cached) $ECHO_C" >&6
31494 ac_check_lib_save_LIBS=$LIBS
31495 LIBS="-lndbm $LIBS"
31496 cat >conftest.$ac_ext <<_ACEOF
31499 cat confdefs.h >>conftest.$ac_ext
31500 cat >>conftest.$ac_ext <<_ACEOF
31501 /* end confdefs.h. */
31512 rm -f conftest.$ac_objext conftest$ac_exeext
31513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31514 (eval $ac_link) 2>conftest.er1
31516 grep -v '^ *+' conftest.er1 >conftest.err
31518 cat conftest.err >&5
31519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31520 (exit $ac_status); } &&
31521 { ac_try='test -z "$ac_c_werror_flag"
31522 || test ! -s conftest.err'
31523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31524 (eval $ac_try) 2>&5
31526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31527 (exit $ac_status); }; } &&
31528 { ac_try='test -s conftest$ac_exeext'
31529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31530 (eval $ac_try) 2>&5
31532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31533 (exit $ac_status); }; }; then
31534 ac_cv_lib_ndbm_main=yes
31536 echo "$as_me: failed program was:" >&5
31537 sed 's/^/| /' conftest.$ac_ext >&5
31539 ac_cv_lib_ndbm_main=no
31541 rm -f conftest.err conftest.$ac_objext \
31542 conftest$ac_exeext conftest.$ac_ext
31543 LIBS=$ac_check_lib_save_LIBS
31545 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_main" >&5
31546 echo "${ECHO_T}$ac_cv_lib_ndbm_main" >&6
31547 if test $ac_cv_lib_ndbm_main = yes; then
31548 cat >>confdefs.h <<_ACEOF
31549 #define HAVE_LIBNDBM 1
31552 LIBS="-lndbm $LIBS"
31556 if test "$ac_cv_lib_ndbm_main" = yes; then
31558 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
31559 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
31560 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
31561 echo $ECHO_N "(cached) $ECHO_C" >&6
31563 ac_check_lib_save_LIBS=$LIBS
31564 LIBS="-lndbm $LIBS"
31565 cat >conftest.$ac_ext <<_ACEOF
31568 cat confdefs.h >>conftest.$ac_ext
31569 cat >>conftest.$ac_ext <<_ACEOF
31570 /* end confdefs.h. */
31572 /* Override any gcc2 internal prototype to avoid an error. */
31576 /* We use char because int might match the return type of a gcc2
31577 builtin and then its argument prototype would still apply. */
31587 rm -f conftest.$ac_objext conftest$ac_exeext
31588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31589 (eval $ac_link) 2>conftest.er1
31591 grep -v '^ *+' conftest.er1 >conftest.err
31593 cat conftest.err >&5
31594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31595 (exit $ac_status); } &&
31596 { ac_try='test -z "$ac_c_werror_flag"
31597 || test ! -s conftest.err'
31598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31599 (eval $ac_try) 2>&5
31601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31602 (exit $ac_status); }; } &&
31603 { ac_try='test -s conftest$ac_exeext'
31604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31605 (eval $ac_try) 2>&5
31607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31608 (exit $ac_status); }; }; then
31609 ac_cv_lib_ndbm_dbm_open=yes
31611 echo "$as_me: failed program was:" >&5
31612 sed 's/^/| /' conftest.$ac_ext >&5
31614 ac_cv_lib_ndbm_dbm_open=no
31616 rm -f conftest.err conftest.$ac_objext \
31617 conftest$ac_exeext conftest.$ac_ext
31618 LIBS=$ac_check_lib_save_LIBS
31620 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
31621 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
31622 if test $ac_cv_lib_ndbm_dbm_open = yes; then
31623 cat >>confdefs.h <<_ACEOF
31624 #define HAVE_LIBNDBM 1
31627 LIBS="-lndbm $LIBS"
31631 if test "$ac_cv_lib_ndbm_dbm_open" = yes; then
31636 { echo "$as_me:$LINENO: WARNING: *** ndbm database library requested but -lndbm not found." >&5
31637 echo "$as_me: WARNING: *** ndbm database library requested but -lndbm not found." >&2;}
31640 if test "$ac_cv_lib_c_dbm_open" = yes; then
31645 { echo "$as_me:$LINENO: WARNING: *** ndbm library requested but -lndbm doesn't exist and dbm_open cannot be found." >&5
31646 echo "$as_me: WARNING: *** ndbm library requested but -lndbm doesn't exist and dbm_open cannot be found." >&2;}
31651 { echo "$as_me:$LINENO: WARNING: *** ndbm database library requested but ndbm.h not found." >&5
31652 echo "$as_me: WARNING: *** ndbm database library requested but ndbm.h not found." >&2;}
31662 if test -z "$DB_STYLE"; then
31669 if test "$DB_STYLE" = text; then
31671 cat >>confdefs.h <<\_ACEOF
31676 echo "$as_me:$LINENO: checking for database" >&5
31677 echo $ECHO_N "checking for database... $ECHO_C" >&6
31678 echo "$as_me:$LINENO: result: header is $DB_HEADER, linking against -l$DB_LIB" >&5
31679 echo "${ECHO_T}header is $DB_HEADER, linking against -l$DB_LIB" >&6
31680 case "$DB_STYLE" in
31682 cat >>confdefs.h <<\_ACEOF
31687 cat >>confdefs.h <<\_ACEOF
31688 #define USE_DBM_H 1
31692 cat >>confdefs.h <<\_ACEOF
31693 #define USE_GDBM_H 1
31697 cat >>confdefs.h <<\_ACEOF
31698 #define USE_NDBM_H 1
31703 echo "$as_me:$LINENO: checking for struct datum declared in header files" >&5
31704 echo $ECHO_N "checking for struct datum declared in header files... $ECHO_C" >&6
31705 if test "${amanda_cv_struct_datum+set}" = set; then
31706 echo $ECHO_N "(cached) $ECHO_C" >&6
31709 cat >conftest.$ac_ext <<_ACEOF
31712 cat confdefs.h >>conftest.$ac_ext
31713 cat >>conftest.$ac_ext <<_ACEOF
31714 /* end confdefs.h. */
31716 #if defined(USE_DB_H)
31719 # if defined(USE_DBM_H)
31722 # if defined(USE_NDBM_H)
31738 rm -f conftest.$ac_objext
31739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31740 (eval $ac_compile) 2>conftest.er1
31742 grep -v '^ *+' conftest.er1 >conftest.err
31744 cat conftest.err >&5
31745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31746 (exit $ac_status); } &&
31747 { ac_try='test -z "$ac_c_werror_flag"
31748 || test ! -s conftest.err'
31749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31750 (eval $ac_try) 2>&5
31752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31753 (exit $ac_status); }; } &&
31754 { ac_try='test -s conftest.$ac_objext'
31755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31756 (eval $ac_try) 2>&5
31758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31759 (exit $ac_status); }; }; then
31760 amanda_cv_struct_datum=yes
31762 echo "$as_me: failed program was:" >&5
31763 sed 's/^/| /' conftest.$ac_ext >&5
31765 amanda_cv_struct_datum=no
31768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31771 echo "$as_me:$LINENO: result: $amanda_cv_struct_datum" >&5
31772 echo "${ECHO_T}$amanda_cv_struct_datum" >&6
31773 if test "$amanda_cv_struct_datum" = yes; then
31775 cat >>confdefs.h <<\_ACEOF
31776 #define HAVE_STRUCT_DATUM 1
31782 case "$DB_STYLE" in
31784 gdbm) DB_EXT='""';;
31785 dbm | ndbm) DB_EXT=".dir .pag";;
31786 text) DB_EXT='""';;
31791 echo "$as_me:$LINENO: checking whether _POSIX2_RE_DUP_MAX is defined" >&5
31792 echo $ECHO_N "checking whether _POSIX2_RE_DUP_MAX is defined... $ECHO_C" >&6
31793 if test "${amanda_cv_have__posix2_re_dup_max+set}" = set; then
31794 echo $ECHO_N "(cached) $ECHO_C" >&6
31796 cat >conftest.$ac_ext <<_ACEOF
31799 cat confdefs.h >>conftest.$ac_ext
31800 cat >>conftest.$ac_ext <<_ACEOF
31801 /* end confdefs.h. */
31803 #include <limits.h>
31804 #ifdef _POSIX2_RE_DUP_MAX
31809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31810 $EGREP "yes" >/dev/null 2>&1; then
31811 amanda_cv_have__posix2_re_dup_max=yes
31813 amanda_cv_have__posix2_re_dup_max=no
31818 echo "$as_me:$LINENO: result: $amanda_cv_have__posix2_re_dup_max" >&5
31819 echo "${ECHO_T}$amanda_cv_have__posix2_re_dup_max" >&6
31820 if test "$amanda_cv_have__posix2_re_dup_max" = yes; then
31822 cat >>confdefs.h <<\_ACEOF
31823 #define HAVE__POSIX2_RE_DUP_MAX 1
31828 echo "$as_me:$LINENO: checking whether CHAR_MIN is defined" >&5
31829 echo $ECHO_N "checking whether CHAR_MIN is defined... $ECHO_C" >&6
31830 if test "${amanda_cv_have_char_min+set}" = set; then
31831 echo $ECHO_N "(cached) $ECHO_C" >&6
31833 cat >conftest.$ac_ext <<_ACEOF
31836 cat confdefs.h >>conftest.$ac_ext
31837 cat >>conftest.$ac_ext <<_ACEOF
31838 /* end confdefs.h. */
31840 #include <limits.h>
31846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31847 $EGREP "yes" >/dev/null 2>&1; then
31848 amanda_cv_have_char_min=yes
31850 amanda_cv_have_char_min=no
31855 echo "$as_me:$LINENO: result: $amanda_cv_have_char_min" >&5
31856 echo "${ECHO_T}$amanda_cv_have_char_min" >&6
31857 if test "$amanda_cv_have_char_min" = yes; then
31859 cat >>confdefs.h <<\_ACEOF
31860 #define HAVE_CHAR_MIN 1
31865 echo "$as_me:$LINENO: checking whether CHAR_MAX is defined" >&5
31866 echo $ECHO_N "checking whether CHAR_MAX is defined... $ECHO_C" >&6
31867 if test "${amanda_cv_have_char_max+set}" = set; then
31868 echo $ECHO_N "(cached) $ECHO_C" >&6
31870 cat >conftest.$ac_ext <<_ACEOF
31873 cat confdefs.h >>conftest.$ac_ext
31874 cat >>conftest.$ac_ext <<_ACEOF
31875 /* end confdefs.h. */
31877 #include <limits.h>
31883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31884 $EGREP "yes" >/dev/null 2>&1; then
31885 amanda_cv_have_char_max=yes
31887 amanda_cv_have_char_max=no
31892 echo "$as_me:$LINENO: result: $amanda_cv_have_char_max" >&5
31893 echo "${ECHO_T}$amanda_cv_have_char_max" >&6
31894 if test "$amanda_cv_have_char_max" = yes; then
31896 cat >>confdefs.h <<\_ACEOF
31897 #define HAVE_CHAR_MAX 1
31902 echo "$as_me:$LINENO: checking whether CHAR_BIT is defined" >&5
31903 echo $ECHO_N "checking whether CHAR_BIT is defined... $ECHO_C" >&6
31904 if test "${amanda_cv_have_char_bit+set}" = set; then
31905 echo $ECHO_N "(cached) $ECHO_C" >&6
31907 cat >conftest.$ac_ext <<_ACEOF
31910 cat confdefs.h >>conftest.$ac_ext
31911 cat >>conftest.$ac_ext <<_ACEOF
31912 /* end confdefs.h. */
31914 #include <limits.h>
31920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31921 $EGREP "yes" >/dev/null 2>&1; then
31922 amanda_cv_have_char_bit=yes
31924 amanda_cv_have_char_bit=no
31929 echo "$as_me:$LINENO: result: $amanda_cv_have_char_bit" >&5
31930 echo "${ECHO_T}$amanda_cv_have_char_bit" >&6
31931 if test "$amanda_cv_have_char_bit" = yes; then
31933 cat >>confdefs.h <<\_ACEOF
31934 #define HAVE_CHAR_BIT 1
31942 for ac_func in accept
31944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31945 echo "$as_me:$LINENO: checking for $ac_func" >&5
31946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31947 if eval "test \"\${$as_ac_var+set}\" = set"; then
31948 echo $ECHO_N "(cached) $ECHO_C" >&6
31950 cat >conftest.$ac_ext <<_ACEOF
31953 cat confdefs.h >>conftest.$ac_ext
31954 cat >>conftest.$ac_ext <<_ACEOF
31955 /* end confdefs.h. */
31956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31958 #define $ac_func innocuous_$ac_func
31960 /* System header to define __stub macros and hopefully few prototypes,
31961 which can conflict with char $ac_func (); below.
31962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31963 <limits.h> exists even on freestanding compilers. */
31966 # include <limits.h>
31968 # include <assert.h>
31973 /* Override any gcc2 internal prototype to avoid an error. */
31978 /* We use char because int might match the return type of a gcc2
31979 builtin and then its argument prototype would still apply. */
31981 /* The GNU C library defines this for functions which it implements
31982 to always fail with ENOSYS. Some functions are actually named
31983 something starting with __ and the normal name is an alias. */
31984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31987 char (*f) () = $ac_func;
31996 return f != $ac_func;
32001 rm -f conftest.$ac_objext conftest$ac_exeext
32002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32003 (eval $ac_link) 2>conftest.er1
32005 grep -v '^ *+' conftest.er1 >conftest.err
32007 cat conftest.err >&5
32008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32009 (exit $ac_status); } &&
32010 { ac_try='test -z "$ac_c_werror_flag"
32011 || test ! -s conftest.err'
32012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32013 (eval $ac_try) 2>&5
32015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32016 (exit $ac_status); }; } &&
32017 { ac_try='test -s conftest$ac_exeext'
32018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32019 (eval $ac_try) 2>&5
32021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32022 (exit $ac_status); }; }; then
32023 eval "$as_ac_var=yes"
32025 echo "$as_me: failed program was:" >&5
32026 sed 's/^/| /' conftest.$ac_ext >&5
32028 eval "$as_ac_var=no"
32030 rm -f conftest.err conftest.$ac_objext \
32031 conftest$ac_exeext conftest.$ac_ext
32033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32034 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32035 if test `eval echo '${'$as_ac_var'}'` = yes; then
32036 cat >>confdefs.h <<_ACEOF
32037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32039 ice_have_accept=yes
32043 if test "${ice_have_accept}" = yes; then
32044 echo "$as_me:$LINENO: checking for accept declaration in sys/types.h sys/socket.h" >&5
32045 echo $ECHO_N "checking for accept declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
32046 if test "${ice_cv_have_accept_decl+set}" = set; then
32047 echo $ECHO_N "(cached) $ECHO_C" >&6
32050 ice_cv_have_accept_decl=no
32051 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
32052 ice_re_word='(^|[^a-zA-Z0-9_])'
32053 for header in sys/types.h sys/socket.h; do
32054 # Check for ordinary declaration
32055 cat >conftest.$ac_ext <<_ACEOF
32058 cat confdefs.h >>conftest.$ac_ext
32059 cat >>conftest.$ac_ext <<_ACEOF
32060 /* end confdefs.h. */
32064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32065 $EGREP "${ice_re_word}accept[ ]*\(" >/dev/null 2>&1; then
32066 ice_cv_have_accept_decl=yes
32070 if test "$ice_cv_have_accept_decl" = yes; then
32073 # Check for "fixed" declaration like "getpid _PARAMS((int))"
32074 cat >conftest.$ac_ext <<_ACEOF
32077 cat confdefs.h >>conftest.$ac_ext
32078 cat >>conftest.$ac_ext <<_ACEOF
32079 /* end confdefs.h. */
32083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32084 $EGREP "${ice_re_word}accept[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
32085 ice_cv_have_accept_decl=yes
32089 if test "$ice_cv_have_accept_decl" = yes; then
32096 echo "$as_me:$LINENO: result: $ice_cv_have_accept_decl" >&5
32097 echo "${ECHO_T}$ice_cv_have_accept_decl" >&6
32098 if test "$ice_cv_have_accept_decl" = yes; then
32100 cat >>confdefs.h <<_ACEOF
32101 #define HAVE_ACCEPT_DECL 1
32107 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32108 # for constant arguments. Useless!
32109 echo "$as_me:$LINENO: checking for working alloca.h" >&5
32110 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
32111 if test "${ac_cv_working_alloca_h+set}" = set; then
32112 echo $ECHO_N "(cached) $ECHO_C" >&6
32114 cat >conftest.$ac_ext <<_ACEOF
32117 cat confdefs.h >>conftest.$ac_ext
32118 cat >>conftest.$ac_ext <<_ACEOF
32119 /* end confdefs.h. */
32120 #include <alloca.h>
32124 char *p = (char *) alloca (2 * sizeof (int));
32129 rm -f conftest.$ac_objext conftest$ac_exeext
32130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32131 (eval $ac_link) 2>conftest.er1
32133 grep -v '^ *+' conftest.er1 >conftest.err
32135 cat conftest.err >&5
32136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32137 (exit $ac_status); } &&
32138 { ac_try='test -z "$ac_c_werror_flag"
32139 || test ! -s conftest.err'
32140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32141 (eval $ac_try) 2>&5
32143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32144 (exit $ac_status); }; } &&
32145 { ac_try='test -s conftest$ac_exeext'
32146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32147 (eval $ac_try) 2>&5
32149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32150 (exit $ac_status); }; }; then
32151 ac_cv_working_alloca_h=yes
32153 echo "$as_me: failed program was:" >&5
32154 sed 's/^/| /' conftest.$ac_ext >&5
32156 ac_cv_working_alloca_h=no
32158 rm -f conftest.err conftest.$ac_objext \
32159 conftest$ac_exeext conftest.$ac_ext
32161 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32162 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
32163 if test $ac_cv_working_alloca_h = yes; then
32165 cat >>confdefs.h <<\_ACEOF
32166 #define HAVE_ALLOCA_H 1
32171 echo "$as_me:$LINENO: checking for alloca" >&5
32172 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
32173 if test "${ac_cv_func_alloca_works+set}" = set; then
32174 echo $ECHO_N "(cached) $ECHO_C" >&6
32176 cat >conftest.$ac_ext <<_ACEOF
32179 cat confdefs.h >>conftest.$ac_ext
32180 cat >>conftest.$ac_ext <<_ACEOF
32181 /* end confdefs.h. */
32183 # define alloca __builtin_alloca
32186 # include <malloc.h>
32187 # define alloca _alloca
32190 # include <alloca.h>
32195 # ifndef alloca /* predefined by HP cc +Olibcalls */
32206 char *p = (char *) alloca (1);
32211 rm -f conftest.$ac_objext conftest$ac_exeext
32212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32213 (eval $ac_link) 2>conftest.er1
32215 grep -v '^ *+' conftest.er1 >conftest.err
32217 cat conftest.err >&5
32218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32219 (exit $ac_status); } &&
32220 { ac_try='test -z "$ac_c_werror_flag"
32221 || test ! -s conftest.err'
32222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32223 (eval $ac_try) 2>&5
32225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32226 (exit $ac_status); }; } &&
32227 { ac_try='test -s conftest$ac_exeext'
32228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32229 (eval $ac_try) 2>&5
32231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32232 (exit $ac_status); }; }; then
32233 ac_cv_func_alloca_works=yes
32235 echo "$as_me: failed program was:" >&5
32236 sed 's/^/| /' conftest.$ac_ext >&5
32238 ac_cv_func_alloca_works=no
32240 rm -f conftest.err conftest.$ac_objext \
32241 conftest$ac_exeext conftest.$ac_ext
32243 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32244 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
32246 if test $ac_cv_func_alloca_works = yes; then
32248 cat >>confdefs.h <<\_ACEOF
32249 #define HAVE_ALLOCA 1
32253 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32254 # that cause trouble. Some versions do not even contain alloca or
32255 # contain a buggy version. If you still want to use their alloca,
32256 # use ar to extract alloca.o from them instead of compiling alloca.c.
32258 ALLOCA=alloca.$ac_objext
32260 cat >>confdefs.h <<\_ACEOF
32265 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32266 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
32267 if test "${ac_cv_os_cray+set}" = set; then
32268 echo $ECHO_N "(cached) $ECHO_C" >&6
32270 cat >conftest.$ac_ext <<_ACEOF
32273 cat confdefs.h >>conftest.$ac_ext
32274 cat >>conftest.$ac_ext <<_ACEOF
32275 /* end confdefs.h. */
32276 #if defined(CRAY) && ! defined(CRAY2)
32283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32284 $EGREP "webecray" >/dev/null 2>&1; then
32292 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32293 echo "${ECHO_T}$ac_cv_os_cray" >&6
32294 if test $ac_cv_os_cray = yes; then
32295 for ac_func in _getb67 GETB67 getb67; do
32296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32297 echo "$as_me:$LINENO: checking for $ac_func" >&5
32298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32299 if eval "test \"\${$as_ac_var+set}\" = set"; then
32300 echo $ECHO_N "(cached) $ECHO_C" >&6
32302 cat >conftest.$ac_ext <<_ACEOF
32305 cat confdefs.h >>conftest.$ac_ext
32306 cat >>conftest.$ac_ext <<_ACEOF
32307 /* end confdefs.h. */
32308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32310 #define $ac_func innocuous_$ac_func
32312 /* System header to define __stub macros and hopefully few prototypes,
32313 which can conflict with char $ac_func (); below.
32314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32315 <limits.h> exists even on freestanding compilers. */
32318 # include <limits.h>
32320 # include <assert.h>
32325 /* Override any gcc2 internal prototype to avoid an error. */
32330 /* We use char because int might match the return type of a gcc2
32331 builtin and then its argument prototype would still apply. */
32333 /* The GNU C library defines this for functions which it implements
32334 to always fail with ENOSYS. Some functions are actually named
32335 something starting with __ and the normal name is an alias. */
32336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32339 char (*f) () = $ac_func;
32348 return f != $ac_func;
32353 rm -f conftest.$ac_objext conftest$ac_exeext
32354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32355 (eval $ac_link) 2>conftest.er1
32357 grep -v '^ *+' conftest.er1 >conftest.err
32359 cat conftest.err >&5
32360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32361 (exit $ac_status); } &&
32362 { ac_try='test -z "$ac_c_werror_flag"
32363 || test ! -s conftest.err'
32364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32365 (eval $ac_try) 2>&5
32367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32368 (exit $ac_status); }; } &&
32369 { ac_try='test -s conftest$ac_exeext'
32370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32371 (eval $ac_try) 2>&5
32373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32374 (exit $ac_status); }; }; then
32375 eval "$as_ac_var=yes"
32377 echo "$as_me: failed program was:" >&5
32378 sed 's/^/| /' conftest.$ac_ext >&5
32380 eval "$as_ac_var=no"
32382 rm -f conftest.err conftest.$ac_objext \
32383 conftest$ac_exeext conftest.$ac_ext
32385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32386 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32387 if test `eval echo '${'$as_ac_var'}'` = yes; then
32389 cat >>confdefs.h <<_ACEOF
32390 #define CRAY_STACKSEG_END $ac_func
32399 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32400 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
32401 if test "${ac_cv_c_stack_direction+set}" = set; then
32402 echo $ECHO_N "(cached) $ECHO_C" >&6
32404 if test "$cross_compiling" = yes; then
32405 ac_cv_c_stack_direction=0
32407 cat >conftest.$ac_ext <<_ACEOF
32410 cat confdefs.h >>conftest.$ac_ext
32411 cat >>conftest.$ac_ext <<_ACEOF
32412 /* end confdefs.h. */
32414 find_stack_direction ()
32416 static char *addr = 0;
32421 return find_stack_direction ();
32424 return (&dummy > addr) ? 1 : -1;
32430 exit (find_stack_direction () < 0);
32433 rm -f conftest$ac_exeext
32434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32435 (eval $ac_link) 2>&5
32437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32440 (eval $ac_try) 2>&5
32442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32443 (exit $ac_status); }; }; then
32444 ac_cv_c_stack_direction=1
32446 echo "$as_me: program exited with status $ac_status" >&5
32447 echo "$as_me: failed program was:" >&5
32448 sed 's/^/| /' conftest.$ac_ext >&5
32450 ( exit $ac_status )
32451 ac_cv_c_stack_direction=-1
32453 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32456 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32457 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
32459 cat >>confdefs.h <<_ACEOF
32460 #define STACK_DIRECTION $ac_cv_c_stack_direction
32467 for ac_func in atexit
32469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32470 echo "$as_me:$LINENO: checking for $ac_func" >&5
32471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32472 if eval "test \"\${$as_ac_var+set}\" = set"; then
32473 echo $ECHO_N "(cached) $ECHO_C" >&6
32475 cat >conftest.$ac_ext <<_ACEOF
32478 cat confdefs.h >>conftest.$ac_ext
32479 cat >>conftest.$ac_ext <<_ACEOF
32480 /* end confdefs.h. */
32481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32483 #define $ac_func innocuous_$ac_func
32485 /* System header to define __stub macros and hopefully few prototypes,
32486 which can conflict with char $ac_func (); below.
32487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32488 <limits.h> exists even on freestanding compilers. */
32491 # include <limits.h>
32493 # include <assert.h>
32498 /* Override any gcc2 internal prototype to avoid an error. */
32503 /* We use char because int might match the return type of a gcc2
32504 builtin and then its argument prototype would still apply. */
32506 /* The GNU C library defines this for functions which it implements
32507 to always fail with ENOSYS. Some functions are actually named
32508 something starting with __ and the normal name is an alias. */
32509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32512 char (*f) () = $ac_func;
32521 return f != $ac_func;
32526 rm -f conftest.$ac_objext conftest$ac_exeext
32527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32528 (eval $ac_link) 2>conftest.er1
32530 grep -v '^ *+' conftest.er1 >conftest.err
32532 cat conftest.err >&5
32533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32534 (exit $ac_status); } &&
32535 { ac_try='test -z "$ac_c_werror_flag"
32536 || test ! -s conftest.err'
32537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32538 (eval $ac_try) 2>&5
32540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32541 (exit $ac_status); }; } &&
32542 { ac_try='test -s conftest$ac_exeext'
32543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32544 (eval $ac_try) 2>&5
32546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32547 (exit $ac_status); }; }; then
32548 eval "$as_ac_var=yes"
32550 echo "$as_me: failed program was:" >&5
32551 sed 's/^/| /' conftest.$ac_ext >&5
32553 eval "$as_ac_var=no"
32555 rm -f conftest.err conftest.$ac_objext \
32556 conftest$ac_exeext conftest.$ac_ext
32558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32560 if test `eval echo '${'$as_ac_var'}'` = yes; then
32561 cat >>confdefs.h <<_ACEOF
32562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32571 for ac_func in atof
32573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32574 echo "$as_me:$LINENO: checking for $ac_func" >&5
32575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32576 if eval "test \"\${$as_ac_var+set}\" = set"; then
32577 echo $ECHO_N "(cached) $ECHO_C" >&6
32579 cat >conftest.$ac_ext <<_ACEOF
32582 cat confdefs.h >>conftest.$ac_ext
32583 cat >>conftest.$ac_ext <<_ACEOF
32584 /* end confdefs.h. */
32585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32587 #define $ac_func innocuous_$ac_func
32589 /* System header to define __stub macros and hopefully few prototypes,
32590 which can conflict with char $ac_func (); below.
32591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32592 <limits.h> exists even on freestanding compilers. */
32595 # include <limits.h>
32597 # include <assert.h>
32602 /* Override any gcc2 internal prototype to avoid an error. */
32607 /* We use char because int might match the return type of a gcc2
32608 builtin and then its argument prototype would still apply. */
32610 /* The GNU C library defines this for functions which it implements
32611 to always fail with ENOSYS. Some functions are actually named
32612 something starting with __ and the normal name is an alias. */
32613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32616 char (*f) () = $ac_func;
32625 return f != $ac_func;
32630 rm -f conftest.$ac_objext conftest$ac_exeext
32631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32632 (eval $ac_link) 2>conftest.er1
32634 grep -v '^ *+' conftest.er1 >conftest.err
32636 cat conftest.err >&5
32637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32638 (exit $ac_status); } &&
32639 { ac_try='test -z "$ac_c_werror_flag"
32640 || test ! -s conftest.err'
32641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32642 (eval $ac_try) 2>&5
32644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32645 (exit $ac_status); }; } &&
32646 { ac_try='test -s conftest$ac_exeext'
32647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32648 (eval $ac_try) 2>&5
32650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32651 (exit $ac_status); }; }; then
32652 eval "$as_ac_var=yes"
32654 echo "$as_me: failed program was:" >&5
32655 sed 's/^/| /' conftest.$ac_ext >&5
32657 eval "$as_ac_var=no"
32659 rm -f conftest.err conftest.$ac_objext \
32660 conftest$ac_exeext conftest.$ac_ext
32662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32664 if test `eval echo '${'$as_ac_var'}'` = yes; then
32665 cat >>confdefs.h <<_ACEOF
32666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32672 if test "${ice_have_atof}" = yes; then
32673 echo "$as_me:$LINENO: checking for atof declaration in stdlib.h" >&5
32674 echo $ECHO_N "checking for atof declaration in stdlib.h... $ECHO_C" >&6
32675 if test "${ice_cv_have_atof_decl+set}" = set; then
32676 echo $ECHO_N "(cached) $ECHO_C" >&6
32679 ice_cv_have_atof_decl=no
32680 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
32681 ice_re_word='(^|[^a-zA-Z0-9_])'
32682 for header in stdlib.h; do
32683 # Check for ordinary declaration
32684 cat >conftest.$ac_ext <<_ACEOF
32687 cat confdefs.h >>conftest.$ac_ext
32688 cat >>conftest.$ac_ext <<_ACEOF
32689 /* end confdefs.h. */
32693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32694 $EGREP "${ice_re_word}atof[ ]*\(" >/dev/null 2>&1; then
32695 ice_cv_have_atof_decl=yes
32699 if test "$ice_cv_have_atof_decl" = yes; then
32702 # Check for "fixed" declaration like "getpid _PARAMS((int))"
32703 cat >conftest.$ac_ext <<_ACEOF
32706 cat confdefs.h >>conftest.$ac_ext
32707 cat >>conftest.$ac_ext <<_ACEOF
32708 /* end confdefs.h. */
32712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32713 $EGREP "${ice_re_word}atof[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
32714 ice_cv_have_atof_decl=yes
32718 if test "$ice_cv_have_atof_decl" = yes; then
32725 echo "$as_me:$LINENO: result: $ice_cv_have_atof_decl" >&5
32726 echo "${ECHO_T}$ice_cv_have_atof_decl" >&6
32727 if test "$ice_cv_have_atof_decl" = yes; then
32729 cat >>confdefs.h <<_ACEOF
32730 #define HAVE_ATOF_DECL 1
32737 for ac_func in basename
32739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32740 echo "$as_me:$LINENO: checking for $ac_func" >&5
32741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32742 if eval "test \"\${$as_ac_var+set}\" = set"; then
32743 echo $ECHO_N "(cached) $ECHO_C" >&6
32745 cat >conftest.$ac_ext <<_ACEOF
32748 cat confdefs.h >>conftest.$ac_ext
32749 cat >>conftest.$ac_ext <<_ACEOF
32750 /* end confdefs.h. */
32751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32753 #define $ac_func innocuous_$ac_func
32755 /* System header to define __stub macros and hopefully few prototypes,
32756 which can conflict with char $ac_func (); below.
32757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32758 <limits.h> exists even on freestanding compilers. */
32761 # include <limits.h>
32763 # include <assert.h>
32768 /* Override any gcc2 internal prototype to avoid an error. */
32773 /* We use char because int might match the return type of a gcc2
32774 builtin and then its argument prototype would still apply. */
32776 /* The GNU C library defines this for functions which it implements
32777 to always fail with ENOSYS. Some functions are actually named
32778 something starting with __ and the normal name is an alias. */
32779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32782 char (*f) () = $ac_func;
32791 return f != $ac_func;
32796 rm -f conftest.$ac_objext conftest$ac_exeext
32797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32798 (eval $ac_link) 2>conftest.er1
32800 grep -v '^ *+' conftest.er1 >conftest.err
32802 cat conftest.err >&5
32803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32804 (exit $ac_status); } &&
32805 { ac_try='test -z "$ac_c_werror_flag"
32806 || test ! -s conftest.err'
32807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32808 (eval $ac_try) 2>&5
32810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32811 (exit $ac_status); }; } &&
32812 { ac_try='test -s conftest$ac_exeext'
32813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32814 (eval $ac_try) 2>&5
32816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32817 (exit $ac_status); }; }; then
32818 eval "$as_ac_var=yes"
32820 echo "$as_me: failed program was:" >&5
32821 sed 's/^/| /' conftest.$ac_ext >&5
32823 eval "$as_ac_var=no"
32825 rm -f conftest.err conftest.$ac_objext \
32826 conftest$ac_exeext conftest.$ac_ext
32828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32829 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32830 if test `eval echo '${'$as_ac_var'}'` = yes; then
32831 cat >>confdefs.h <<_ACEOF
32832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32841 for ac_func in bind
32843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32844 echo "$as_me:$LINENO: checking for $ac_func" >&5
32845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32846 if eval "test \"\${$as_ac_var+set}\" = set"; then
32847 echo $ECHO_N "(cached) $ECHO_C" >&6
32849 cat >conftest.$ac_ext <<_ACEOF
32852 cat confdefs.h >>conftest.$ac_ext
32853 cat >>conftest.$ac_ext <<_ACEOF
32854 /* end confdefs.h. */
32855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32857 #define $ac_func innocuous_$ac_func
32859 /* System header to define __stub macros and hopefully few prototypes,
32860 which can conflict with char $ac_func (); below.
32861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32862 <limits.h> exists even on freestanding compilers. */
32865 # include <limits.h>
32867 # include <assert.h>
32872 /* Override any gcc2 internal prototype to avoid an error. */
32877 /* We use char because int might match the return type of a gcc2
32878 builtin and then its argument prototype would still apply. */
32880 /* The GNU C library defines this for functions which it implements
32881 to always fail with ENOSYS. Some functions are actually named
32882 something starting with __ and the normal name is an alias. */
32883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32886 char (*f) () = $ac_func;
32895 return f != $ac_func;
32900 rm -f conftest.$ac_objext conftest$ac_exeext
32901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32902 (eval $ac_link) 2>conftest.er1
32904 grep -v '^ *+' conftest.er1 >conftest.err
32906 cat conftest.err >&5
32907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32908 (exit $ac_status); } &&
32909 { ac_try='test -z "$ac_c_werror_flag"
32910 || test ! -s conftest.err'
32911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32912 (eval $ac_try) 2>&5
32914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32915 (exit $ac_status); }; } &&
32916 { ac_try='test -s conftest$ac_exeext'
32917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32918 (eval $ac_try) 2>&5
32920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32921 (exit $ac_status); }; }; then
32922 eval "$as_ac_var=yes"
32924 echo "$as_me: failed program was:" >&5
32925 sed 's/^/| /' conftest.$ac_ext >&5
32927 eval "$as_ac_var=no"
32929 rm -f conftest.err conftest.$ac_objext \
32930 conftest$ac_exeext conftest.$ac_ext
32932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32934 if test `eval echo '${'$as_ac_var'}'` = yes; then
32935 cat >>confdefs.h <<_ACEOF
32936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32942 if test "${ice_have_bind}" = yes; then
32943 echo "$as_me:$LINENO: checking for bind declaration in sys/types.h sys/socket.h" >&5
32944 echo $ECHO_N "checking for bind declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
32945 if test "${ice_cv_have_bind_decl+set}" = set; then
32946 echo $ECHO_N "(cached) $ECHO_C" >&6
32949 ice_cv_have_bind_decl=no
32950 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
32951 ice_re_word='(^|[^a-zA-Z0-9_])'
32952 for header in sys/types.h sys/socket.h; do
32953 # Check for ordinary declaration
32954 cat >conftest.$ac_ext <<_ACEOF
32957 cat confdefs.h >>conftest.$ac_ext
32958 cat >>conftest.$ac_ext <<_ACEOF
32959 /* end confdefs.h. */
32963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32964 $EGREP "${ice_re_word}bind[ ]*\(" >/dev/null 2>&1; then
32965 ice_cv_have_bind_decl=yes
32969 if test "$ice_cv_have_bind_decl" = yes; then
32972 # Check for "fixed" declaration like "getpid _PARAMS((int))"
32973 cat >conftest.$ac_ext <<_ACEOF
32976 cat confdefs.h >>conftest.$ac_ext
32977 cat >>conftest.$ac_ext <<_ACEOF
32978 /* end confdefs.h. */
32982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32983 $EGREP "${ice_re_word}bind[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
32984 ice_cv_have_bind_decl=yes
32988 if test "$ice_cv_have_bind_decl" = yes; then
32995 echo "$as_me:$LINENO: result: $ice_cv_have_bind_decl" >&5
32996 echo "${ECHO_T}$ice_cv_have_bind_decl" >&6
32997 if test "$ice_cv_have_bind_decl" = yes; then
32999 cat >>confdefs.h <<_ACEOF
33000 #define HAVE_BIND_DECL 1
33009 for ac_func in bcopy
33011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33012 echo "$as_me:$LINENO: checking for $ac_func" >&5
33013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33014 if eval "test \"\${$as_ac_var+set}\" = set"; then
33015 echo $ECHO_N "(cached) $ECHO_C" >&6
33017 cat >conftest.$ac_ext <<_ACEOF
33020 cat confdefs.h >>conftest.$ac_ext
33021 cat >>conftest.$ac_ext <<_ACEOF
33022 /* end confdefs.h. */
33023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33025 #define $ac_func innocuous_$ac_func
33027 /* System header to define __stub macros and hopefully few prototypes,
33028 which can conflict with char $ac_func (); below.
33029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33030 <limits.h> exists even on freestanding compilers. */
33033 # include <limits.h>
33035 # include <assert.h>
33040 /* Override any gcc2 internal prototype to avoid an error. */
33045 /* We use char because int might match the return type of a gcc2
33046 builtin and then its argument prototype would still apply. */
33048 /* The GNU C library defines this for functions which it implements
33049 to always fail with ENOSYS. Some functions are actually named
33050 something starting with __ and the normal name is an alias. */
33051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33054 char (*f) () = $ac_func;
33063 return f != $ac_func;
33068 rm -f conftest.$ac_objext conftest$ac_exeext
33069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33070 (eval $ac_link) 2>conftest.er1
33072 grep -v '^ *+' conftest.er1 >conftest.err
33074 cat conftest.err >&5
33075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33076 (exit $ac_status); } &&
33077 { ac_try='test -z "$ac_c_werror_flag"
33078 || test ! -s conftest.err'
33079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33080 (eval $ac_try) 2>&5
33082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33083 (exit $ac_status); }; } &&
33084 { ac_try='test -s conftest$ac_exeext'
33085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33086 (eval $ac_try) 2>&5
33088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33089 (exit $ac_status); }; }; then
33090 eval "$as_ac_var=yes"
33092 echo "$as_me: failed program was:" >&5
33093 sed 's/^/| /' conftest.$ac_ext >&5
33095 eval "$as_ac_var=no"
33097 rm -f conftest.err conftest.$ac_objext \
33098 conftest$ac_exeext conftest.$ac_ext
33100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33101 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33102 if test `eval echo '${'$as_ac_var'}'` = yes; then
33103 cat >>confdefs.h <<_ACEOF
33104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33110 if test "${ice_have_bcopy}" = yes; then
33111 echo "$as_me:$LINENO: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
33112 echo $ECHO_N "checking for bcopy declaration in string.h strings.h stdlib.h... $ECHO_C" >&6
33113 if test "${ice_cv_have_bcopy_decl+set}" = set; then
33114 echo $ECHO_N "(cached) $ECHO_C" >&6
33117 ice_cv_have_bcopy_decl=no
33118 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33119 ice_re_word='(^|[^a-zA-Z0-9_])'
33120 for header in string.h strings.h stdlib.h; do
33121 # Check for ordinary declaration
33122 cat >conftest.$ac_ext <<_ACEOF
33125 cat confdefs.h >>conftest.$ac_ext
33126 cat >>conftest.$ac_ext <<_ACEOF
33127 /* end confdefs.h. */
33131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33132 $EGREP "${ice_re_word}bcopy[ ]*\(" >/dev/null 2>&1; then
33133 ice_cv_have_bcopy_decl=yes
33137 if test "$ice_cv_have_bcopy_decl" = yes; then
33140 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33141 cat >conftest.$ac_ext <<_ACEOF
33144 cat confdefs.h >>conftest.$ac_ext
33145 cat >>conftest.$ac_ext <<_ACEOF
33146 /* end confdefs.h. */
33150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33151 $EGREP "${ice_re_word}bcopy[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33152 ice_cv_have_bcopy_decl=yes
33156 if test "$ice_cv_have_bcopy_decl" = yes; then
33163 echo "$as_me:$LINENO: result: $ice_cv_have_bcopy_decl" >&5
33164 echo "${ECHO_T}$ice_cv_have_bcopy_decl" >&6
33165 if test "$ice_cv_have_bcopy_decl" = yes; then
33167 cat >>confdefs.h <<_ACEOF
33168 #define HAVE_BCOPY_DECL 1
33177 for ac_func in bzero
33179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33180 echo "$as_me:$LINENO: checking for $ac_func" >&5
33181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33182 if eval "test \"\${$as_ac_var+set}\" = set"; then
33183 echo $ECHO_N "(cached) $ECHO_C" >&6
33185 cat >conftest.$ac_ext <<_ACEOF
33188 cat confdefs.h >>conftest.$ac_ext
33189 cat >>conftest.$ac_ext <<_ACEOF
33190 /* end confdefs.h. */
33191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33193 #define $ac_func innocuous_$ac_func
33195 /* System header to define __stub macros and hopefully few prototypes,
33196 which can conflict with char $ac_func (); below.
33197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33198 <limits.h> exists even on freestanding compilers. */
33201 # include <limits.h>
33203 # include <assert.h>
33208 /* Override any gcc2 internal prototype to avoid an error. */
33213 /* We use char because int might match the return type of a gcc2
33214 builtin and then its argument prototype would still apply. */
33216 /* The GNU C library defines this for functions which it implements
33217 to always fail with ENOSYS. Some functions are actually named
33218 something starting with __ and the normal name is an alias. */
33219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33222 char (*f) () = $ac_func;
33231 return f != $ac_func;
33236 rm -f conftest.$ac_objext conftest$ac_exeext
33237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33238 (eval $ac_link) 2>conftest.er1
33240 grep -v '^ *+' conftest.er1 >conftest.err
33242 cat conftest.err >&5
33243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33244 (exit $ac_status); } &&
33245 { ac_try='test -z "$ac_c_werror_flag"
33246 || test ! -s conftest.err'
33247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33248 (eval $ac_try) 2>&5
33250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33251 (exit $ac_status); }; } &&
33252 { ac_try='test -s conftest$ac_exeext'
33253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33254 (eval $ac_try) 2>&5
33256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33257 (exit $ac_status); }; }; then
33258 eval "$as_ac_var=yes"
33260 echo "$as_me: failed program was:" >&5
33261 sed 's/^/| /' conftest.$ac_ext >&5
33263 eval "$as_ac_var=no"
33265 rm -f conftest.err conftest.$ac_objext \
33266 conftest$ac_exeext conftest.$ac_ext
33268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33270 if test `eval echo '${'$as_ac_var'}'` = yes; then
33271 cat >>confdefs.h <<_ACEOF
33272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33278 if test "${ice_have_bzero}" = yes; then
33279 echo "$as_me:$LINENO: checking for bzero declaration in string.h strings.h stdlib.h" >&5
33280 echo $ECHO_N "checking for bzero declaration in string.h strings.h stdlib.h... $ECHO_C" >&6
33281 if test "${ice_cv_have_bzero_decl+set}" = set; then
33282 echo $ECHO_N "(cached) $ECHO_C" >&6
33285 ice_cv_have_bzero_decl=no
33286 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33287 ice_re_word='(^|[^a-zA-Z0-9_])'
33288 for header in string.h strings.h stdlib.h; do
33289 # Check for ordinary declaration
33290 cat >conftest.$ac_ext <<_ACEOF
33293 cat confdefs.h >>conftest.$ac_ext
33294 cat >>conftest.$ac_ext <<_ACEOF
33295 /* end confdefs.h. */
33299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33300 $EGREP "${ice_re_word}bzero[ ]*\(" >/dev/null 2>&1; then
33301 ice_cv_have_bzero_decl=yes
33305 if test "$ice_cv_have_bzero_decl" = yes; then
33308 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33309 cat >conftest.$ac_ext <<_ACEOF
33312 cat confdefs.h >>conftest.$ac_ext
33313 cat >>conftest.$ac_ext <<_ACEOF
33314 /* end confdefs.h. */
33318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33319 $EGREP "${ice_re_word}bzero[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33320 ice_cv_have_bzero_decl=yes
33324 if test "$ice_cv_have_bzero_decl" = yes; then
33331 echo "$as_me:$LINENO: result: $ice_cv_have_bzero_decl" >&5
33332 echo "${ECHO_T}$ice_cv_have_bzero_decl" >&6
33333 if test "$ice_cv_have_bzero_decl" = yes; then
33335 cat >>confdefs.h <<_ACEOF
33336 #define HAVE_BZERO_DECL 1
33342 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
33343 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
33344 if test "${ac_cv_func_closedir_void+set}" = set; then
33345 echo $ECHO_N "(cached) $ECHO_C" >&6
33347 if test "$cross_compiling" = yes; then
33348 ac_cv_func_closedir_void=yes
33350 cat >conftest.$ac_ext <<_ACEOF
33353 cat confdefs.h >>conftest.$ac_ext
33354 cat >>conftest.$ac_ext <<_ACEOF
33355 /* end confdefs.h. */
33356 $ac_includes_default
33357 #include <$ac_header_dirent>
33358 #ifndef __cplusplus
33365 exit (closedir (opendir (".")) != 0);
33370 rm -f conftest$ac_exeext
33371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33372 (eval $ac_link) 2>&5
33374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33377 (eval $ac_try) 2>&5
33379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33380 (exit $ac_status); }; }; then
33381 ac_cv_func_closedir_void=no
33383 echo "$as_me: program exited with status $ac_status" >&5
33384 echo "$as_me: failed program was:" >&5
33385 sed 's/^/| /' conftest.$ac_ext >&5
33387 ( exit $ac_status )
33388 ac_cv_func_closedir_void=yes
33390 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33393 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
33394 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
33395 if test $ac_cv_func_closedir_void = yes; then
33397 cat >>confdefs.h <<\_ACEOF
33398 #define CLOSEDIR_VOID 1
33404 ice_have_closelog=no
33406 for ac_func in closelog
33408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33409 echo "$as_me:$LINENO: checking for $ac_func" >&5
33410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33411 if eval "test \"\${$as_ac_var+set}\" = set"; then
33412 echo $ECHO_N "(cached) $ECHO_C" >&6
33414 cat >conftest.$ac_ext <<_ACEOF
33417 cat confdefs.h >>conftest.$ac_ext
33418 cat >>conftest.$ac_ext <<_ACEOF
33419 /* end confdefs.h. */
33420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33422 #define $ac_func innocuous_$ac_func
33424 /* System header to define __stub macros and hopefully few prototypes,
33425 which can conflict with char $ac_func (); below.
33426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33427 <limits.h> exists even on freestanding compilers. */
33430 # include <limits.h>
33432 # include <assert.h>
33437 /* Override any gcc2 internal prototype to avoid an error. */
33442 /* We use char because int might match the return type of a gcc2
33443 builtin and then its argument prototype would still apply. */
33445 /* The GNU C library defines this for functions which it implements
33446 to always fail with ENOSYS. Some functions are actually named
33447 something starting with __ and the normal name is an alias. */
33448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33451 char (*f) () = $ac_func;
33460 return f != $ac_func;
33465 rm -f conftest.$ac_objext conftest$ac_exeext
33466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33467 (eval $ac_link) 2>conftest.er1
33469 grep -v '^ *+' conftest.er1 >conftest.err
33471 cat conftest.err >&5
33472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33473 (exit $ac_status); } &&
33474 { ac_try='test -z "$ac_c_werror_flag"
33475 || test ! -s conftest.err'
33476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33477 (eval $ac_try) 2>&5
33479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33480 (exit $ac_status); }; } &&
33481 { ac_try='test -s conftest$ac_exeext'
33482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33483 (eval $ac_try) 2>&5
33485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33486 (exit $ac_status); }; }; then
33487 eval "$as_ac_var=yes"
33489 echo "$as_me: failed program was:" >&5
33490 sed 's/^/| /' conftest.$ac_ext >&5
33492 eval "$as_ac_var=no"
33494 rm -f conftest.err conftest.$ac_objext \
33495 conftest$ac_exeext conftest.$ac_ext
33497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33498 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33499 if test `eval echo '${'$as_ac_var'}'` = yes; then
33500 cat >>confdefs.h <<_ACEOF
33501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33503 ice_have_closelog=yes
33507 if test "${ice_have_closelog}" = yes; then
33508 echo "$as_me:$LINENO: checking for closelog declaration in syslog.h" >&5
33509 echo $ECHO_N "checking for closelog declaration in syslog.h... $ECHO_C" >&6
33510 if test "${ice_cv_have_closelog_decl+set}" = set; then
33511 echo $ECHO_N "(cached) $ECHO_C" >&6
33514 ice_cv_have_closelog_decl=no
33515 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33516 ice_re_word='(^|[^a-zA-Z0-9_])'
33517 for header in syslog.h; do
33518 # Check for ordinary declaration
33519 cat >conftest.$ac_ext <<_ACEOF
33522 cat confdefs.h >>conftest.$ac_ext
33523 cat >>conftest.$ac_ext <<_ACEOF
33524 /* end confdefs.h. */
33528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33529 $EGREP "${ice_re_word}closelog[ ]*\(" >/dev/null 2>&1; then
33530 ice_cv_have_closelog_decl=yes
33534 if test "$ice_cv_have_closelog_decl" = yes; then
33537 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33538 cat >conftest.$ac_ext <<_ACEOF
33541 cat confdefs.h >>conftest.$ac_ext
33542 cat >>conftest.$ac_ext <<_ACEOF
33543 /* end confdefs.h. */
33547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33548 $EGREP "${ice_re_word}closelog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33549 ice_cv_have_closelog_decl=yes
33553 if test "$ice_cv_have_closelog_decl" = yes; then
33560 echo "$as_me:$LINENO: result: $ice_cv_have_closelog_decl" >&5
33561 echo "${ECHO_T}$ice_cv_have_closelog_decl" >&6
33562 if test "$ice_cv_have_closelog_decl" = yes; then
33564 cat >>confdefs.h <<_ACEOF
33565 #define HAVE_CLOSELOG_DECL 1
33572 ice_have_connect=no
33574 for ac_func in connect
33576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33577 echo "$as_me:$LINENO: checking for $ac_func" >&5
33578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33579 if eval "test \"\${$as_ac_var+set}\" = set"; then
33580 echo $ECHO_N "(cached) $ECHO_C" >&6
33582 cat >conftest.$ac_ext <<_ACEOF
33585 cat confdefs.h >>conftest.$ac_ext
33586 cat >>conftest.$ac_ext <<_ACEOF
33587 /* end confdefs.h. */
33588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33590 #define $ac_func innocuous_$ac_func
33592 /* System header to define __stub macros and hopefully few prototypes,
33593 which can conflict with char $ac_func (); below.
33594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33595 <limits.h> exists even on freestanding compilers. */
33598 # include <limits.h>
33600 # include <assert.h>
33605 /* Override any gcc2 internal prototype to avoid an error. */
33610 /* We use char because int might match the return type of a gcc2
33611 builtin and then its argument prototype would still apply. */
33613 /* The GNU C library defines this for functions which it implements
33614 to always fail with ENOSYS. Some functions are actually named
33615 something starting with __ and the normal name is an alias. */
33616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33619 char (*f) () = $ac_func;
33628 return f != $ac_func;
33633 rm -f conftest.$ac_objext conftest$ac_exeext
33634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33635 (eval $ac_link) 2>conftest.er1
33637 grep -v '^ *+' conftest.er1 >conftest.err
33639 cat conftest.err >&5
33640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33641 (exit $ac_status); } &&
33642 { ac_try='test -z "$ac_c_werror_flag"
33643 || test ! -s conftest.err'
33644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33645 (eval $ac_try) 2>&5
33647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33648 (exit $ac_status); }; } &&
33649 { ac_try='test -s conftest$ac_exeext'
33650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33651 (eval $ac_try) 2>&5
33653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33654 (exit $ac_status); }; }; then
33655 eval "$as_ac_var=yes"
33657 echo "$as_me: failed program was:" >&5
33658 sed 's/^/| /' conftest.$ac_ext >&5
33660 eval "$as_ac_var=no"
33662 rm -f conftest.err conftest.$ac_objext \
33663 conftest$ac_exeext conftest.$ac_ext
33665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33667 if test `eval echo '${'$as_ac_var'}'` = yes; then
33668 cat >>confdefs.h <<_ACEOF
33669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33671 ice_have_connect=yes
33675 if test "${ice_have_connect}" = yes; then
33676 echo "$as_me:$LINENO: checking for connect declaration in sys/types.h sys/socket.h" >&5
33677 echo $ECHO_N "checking for connect declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
33678 if test "${ice_cv_have_connect_decl+set}" = set; then
33679 echo $ECHO_N "(cached) $ECHO_C" >&6
33682 ice_cv_have_connect_decl=no
33683 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33684 ice_re_word='(^|[^a-zA-Z0-9_])'
33685 for header in sys/types.h sys/socket.h; do
33686 # Check for ordinary declaration
33687 cat >conftest.$ac_ext <<_ACEOF
33690 cat confdefs.h >>conftest.$ac_ext
33691 cat >>conftest.$ac_ext <<_ACEOF
33692 /* end confdefs.h. */
33696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33697 $EGREP "${ice_re_word}connect[ ]*\(" >/dev/null 2>&1; then
33698 ice_cv_have_connect_decl=yes
33702 if test "$ice_cv_have_connect_decl" = yes; then
33705 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33706 cat >conftest.$ac_ext <<_ACEOF
33709 cat confdefs.h >>conftest.$ac_ext
33710 cat >>conftest.$ac_ext <<_ACEOF
33711 /* end confdefs.h. */
33715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33716 $EGREP "${ice_re_word}connect[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33717 ice_cv_have_connect_decl=yes
33721 if test "$ice_cv_have_connect_decl" = yes; then
33728 echo "$as_me:$LINENO: result: $ice_cv_have_connect_decl" >&5
33729 echo "${ECHO_T}$ice_cv_have_connect_decl" >&6
33730 if test "$ice_cv_have_connect_decl" = yes; then
33732 cat >>confdefs.h <<_ACEOF
33733 #define HAVE_CONNECT_DECL 1
33740 ice_have_dbm_open=no
33742 for ac_func in dbm_open
33744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33745 echo "$as_me:$LINENO: checking for $ac_func" >&5
33746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33747 if eval "test \"\${$as_ac_var+set}\" = set"; then
33748 echo $ECHO_N "(cached) $ECHO_C" >&6
33750 cat >conftest.$ac_ext <<_ACEOF
33753 cat confdefs.h >>conftest.$ac_ext
33754 cat >>conftest.$ac_ext <<_ACEOF
33755 /* end confdefs.h. */
33756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33758 #define $ac_func innocuous_$ac_func
33760 /* System header to define __stub macros and hopefully few prototypes,
33761 which can conflict with char $ac_func (); below.
33762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33763 <limits.h> exists even on freestanding compilers. */
33766 # include <limits.h>
33768 # include <assert.h>
33773 /* Override any gcc2 internal prototype to avoid an error. */
33778 /* We use char because int might match the return type of a gcc2
33779 builtin and then its argument prototype would still apply. */
33781 /* The GNU C library defines this for functions which it implements
33782 to always fail with ENOSYS. Some functions are actually named
33783 something starting with __ and the normal name is an alias. */
33784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33787 char (*f) () = $ac_func;
33796 return f != $ac_func;
33801 rm -f conftest.$ac_objext conftest$ac_exeext
33802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33803 (eval $ac_link) 2>conftest.er1
33805 grep -v '^ *+' conftest.er1 >conftest.err
33807 cat conftest.err >&5
33808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33809 (exit $ac_status); } &&
33810 { ac_try='test -z "$ac_c_werror_flag"
33811 || test ! -s conftest.err'
33812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33813 (eval $ac_try) 2>&5
33815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33816 (exit $ac_status); }; } &&
33817 { ac_try='test -s conftest$ac_exeext'
33818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33819 (eval $ac_try) 2>&5
33821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33822 (exit $ac_status); }; }; then
33823 eval "$as_ac_var=yes"
33825 echo "$as_me: failed program was:" >&5
33826 sed 's/^/| /' conftest.$ac_ext >&5
33828 eval "$as_ac_var=no"
33830 rm -f conftest.err conftest.$ac_objext \
33831 conftest$ac_exeext conftest.$ac_ext
33833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33834 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33835 if test `eval echo '${'$as_ac_var'}'` = yes; then
33836 cat >>confdefs.h <<_ACEOF
33837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33839 ice_have_dbm_open=yes
33843 if test "${ice_have_dbm_open}" = yes; then
33844 echo "$as_me:$LINENO: checking for dbm_open declaration in ${DB_HEADER-no/db/header/file}" >&5
33845 echo $ECHO_N "checking for dbm_open declaration in ${DB_HEADER-no/db/header/file}... $ECHO_C" >&6
33846 if test "${ice_cv_have_dbm_open_decl+set}" = set; then
33847 echo $ECHO_N "(cached) $ECHO_C" >&6
33850 ice_cv_have_dbm_open_decl=no
33851 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33852 ice_re_word='(^|[^a-zA-Z0-9_])'
33853 for header in ${DB_HEADER-no/db/header/file}; do
33854 # Check for ordinary declaration
33855 cat >conftest.$ac_ext <<_ACEOF
33858 cat confdefs.h >>conftest.$ac_ext
33859 cat >>conftest.$ac_ext <<_ACEOF
33860 /* end confdefs.h. */
33864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33865 $EGREP "${ice_re_word}dbm_open[ ]*\(" >/dev/null 2>&1; then
33866 ice_cv_have_dbm_open_decl=yes
33870 if test "$ice_cv_have_dbm_open_decl" = yes; then
33873 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33874 cat >conftest.$ac_ext <<_ACEOF
33877 cat confdefs.h >>conftest.$ac_ext
33878 cat >>conftest.$ac_ext <<_ACEOF
33879 /* end confdefs.h. */
33883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33884 $EGREP "${ice_re_word}dbm_open[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33885 ice_cv_have_dbm_open_decl=yes
33889 if test "$ice_cv_have_dbm_open_decl" = yes; then
33896 echo "$as_me:$LINENO: result: $ice_cv_have_dbm_open_decl" >&5
33897 echo "${ECHO_T}$ice_cv_have_dbm_open_decl" >&6
33898 if test "$ice_cv_have_dbm_open_decl" = yes; then
33900 cat >>confdefs.h <<_ACEOF
33901 #define HAVE_DBM_OPEN_DECL 1
33908 for ac_func in endmntent
33910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33911 echo "$as_me:$LINENO: checking for $ac_func" >&5
33912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33913 if eval "test \"\${$as_ac_var+set}\" = set"; then
33914 echo $ECHO_N "(cached) $ECHO_C" >&6
33916 cat >conftest.$ac_ext <<_ACEOF
33919 cat confdefs.h >>conftest.$ac_ext
33920 cat >>conftest.$ac_ext <<_ACEOF
33921 /* end confdefs.h. */
33922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33924 #define $ac_func innocuous_$ac_func
33926 /* System header to define __stub macros and hopefully few prototypes,
33927 which can conflict with char $ac_func (); below.
33928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33929 <limits.h> exists even on freestanding compilers. */
33932 # include <limits.h>
33934 # include <assert.h>
33939 /* Override any gcc2 internal prototype to avoid an error. */
33944 /* We use char because int might match the return type of a gcc2
33945 builtin and then its argument prototype would still apply. */
33947 /* The GNU C library defines this for functions which it implements
33948 to always fail with ENOSYS. Some functions are actually named
33949 something starting with __ and the normal name is an alias. */
33950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33953 char (*f) () = $ac_func;
33962 return f != $ac_func;
33967 rm -f conftest.$ac_objext conftest$ac_exeext
33968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33969 (eval $ac_link) 2>conftest.er1
33971 grep -v '^ *+' conftest.er1 >conftest.err
33973 cat conftest.err >&5
33974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33975 (exit $ac_status); } &&
33976 { ac_try='test -z "$ac_c_werror_flag"
33977 || test ! -s conftest.err'
33978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33979 (eval $ac_try) 2>&5
33981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33982 (exit $ac_status); }; } &&
33983 { ac_try='test -s conftest$ac_exeext'
33984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33985 (eval $ac_try) 2>&5
33987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33988 (exit $ac_status); }; }; then
33989 eval "$as_ac_var=yes"
33991 echo "$as_me: failed program was:" >&5
33992 sed 's/^/| /' conftest.$ac_ext >&5
33994 eval "$as_ac_var=no"
33996 rm -f conftest.err conftest.$ac_objext \
33997 conftest$ac_exeext conftest.$ac_ext
33999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34001 if test `eval echo '${'$as_ac_var'}'` = yes; then
34002 cat >>confdefs.h <<_ACEOF
34003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34012 for ac_func in fclose
34014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34015 echo "$as_me:$LINENO: checking for $ac_func" >&5
34016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34017 if eval "test \"\${$as_ac_var+set}\" = set"; then
34018 echo $ECHO_N "(cached) $ECHO_C" >&6
34020 cat >conftest.$ac_ext <<_ACEOF
34023 cat confdefs.h >>conftest.$ac_ext
34024 cat >>conftest.$ac_ext <<_ACEOF
34025 /* end confdefs.h. */
34026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34028 #define $ac_func innocuous_$ac_func
34030 /* System header to define __stub macros and hopefully few prototypes,
34031 which can conflict with char $ac_func (); below.
34032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34033 <limits.h> exists even on freestanding compilers. */
34036 # include <limits.h>
34038 # include <assert.h>
34043 /* Override any gcc2 internal prototype to avoid an error. */
34048 /* We use char because int might match the return type of a gcc2
34049 builtin and then its argument prototype would still apply. */
34051 /* The GNU C library defines this for functions which it implements
34052 to always fail with ENOSYS. Some functions are actually named
34053 something starting with __ and the normal name is an alias. */
34054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34057 char (*f) () = $ac_func;
34066 return f != $ac_func;
34071 rm -f conftest.$ac_objext conftest$ac_exeext
34072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34073 (eval $ac_link) 2>conftest.er1
34075 grep -v '^ *+' conftest.er1 >conftest.err
34077 cat conftest.err >&5
34078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34079 (exit $ac_status); } &&
34080 { ac_try='test -z "$ac_c_werror_flag"
34081 || test ! -s conftest.err'
34082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34083 (eval $ac_try) 2>&5
34085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34086 (exit $ac_status); }; } &&
34087 { ac_try='test -s conftest$ac_exeext'
34088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34089 (eval $ac_try) 2>&5
34091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34092 (exit $ac_status); }; }; then
34093 eval "$as_ac_var=yes"
34095 echo "$as_me: failed program was:" >&5
34096 sed 's/^/| /' conftest.$ac_ext >&5
34098 eval "$as_ac_var=no"
34100 rm -f conftest.err conftest.$ac_objext \
34101 conftest$ac_exeext conftest.$ac_ext
34103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34104 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34105 if test `eval echo '${'$as_ac_var'}'` = yes; then
34106 cat >>confdefs.h <<_ACEOF
34107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34109 ice_have_fclose=yes
34113 if test "${ice_have_fclose}" = yes; then
34114 echo "$as_me:$LINENO: checking for fclose declaration in stdio.h" >&5
34115 echo $ECHO_N "checking for fclose declaration in stdio.h... $ECHO_C" >&6
34116 if test "${ice_cv_have_fclose_decl+set}" = set; then
34117 echo $ECHO_N "(cached) $ECHO_C" >&6
34120 ice_cv_have_fclose_decl=no
34121 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34122 ice_re_word='(^|[^a-zA-Z0-9_])'
34123 for header in stdio.h; do
34124 # Check for ordinary declaration
34125 cat >conftest.$ac_ext <<_ACEOF
34128 cat confdefs.h >>conftest.$ac_ext
34129 cat >>conftest.$ac_ext <<_ACEOF
34130 /* end confdefs.h. */
34134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34135 $EGREP "${ice_re_word}fclose[ ]*\(" >/dev/null 2>&1; then
34136 ice_cv_have_fclose_decl=yes
34140 if test "$ice_cv_have_fclose_decl" = yes; then
34143 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34144 cat >conftest.$ac_ext <<_ACEOF
34147 cat confdefs.h >>conftest.$ac_ext
34148 cat >>conftest.$ac_ext <<_ACEOF
34149 /* end confdefs.h. */
34153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34154 $EGREP "${ice_re_word}fclose[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34155 ice_cv_have_fclose_decl=yes
34159 if test "$ice_cv_have_fclose_decl" = yes; then
34166 echo "$as_me:$LINENO: result: $ice_cv_have_fclose_decl" >&5
34167 echo "${ECHO_T}$ice_cv_have_fclose_decl" >&6
34168 if test "$ice_cv_have_fclose_decl" = yes; then
34170 cat >>confdefs.h <<_ACEOF
34171 #define HAVE_FCLOSE_DECL 1
34180 for ac_func in fflush
34182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34183 echo "$as_me:$LINENO: checking for $ac_func" >&5
34184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34185 if eval "test \"\${$as_ac_var+set}\" = set"; then
34186 echo $ECHO_N "(cached) $ECHO_C" >&6
34188 cat >conftest.$ac_ext <<_ACEOF
34191 cat confdefs.h >>conftest.$ac_ext
34192 cat >>conftest.$ac_ext <<_ACEOF
34193 /* end confdefs.h. */
34194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34196 #define $ac_func innocuous_$ac_func
34198 /* System header to define __stub macros and hopefully few prototypes,
34199 which can conflict with char $ac_func (); below.
34200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34201 <limits.h> exists even on freestanding compilers. */
34204 # include <limits.h>
34206 # include <assert.h>
34211 /* Override any gcc2 internal prototype to avoid an error. */
34216 /* We use char because int might match the return type of a gcc2
34217 builtin and then its argument prototype would still apply. */
34219 /* The GNU C library defines this for functions which it implements
34220 to always fail with ENOSYS. Some functions are actually named
34221 something starting with __ and the normal name is an alias. */
34222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34225 char (*f) () = $ac_func;
34234 return f != $ac_func;
34239 rm -f conftest.$ac_objext conftest$ac_exeext
34240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34241 (eval $ac_link) 2>conftest.er1
34243 grep -v '^ *+' conftest.er1 >conftest.err
34245 cat conftest.err >&5
34246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34247 (exit $ac_status); } &&
34248 { ac_try='test -z "$ac_c_werror_flag"
34249 || test ! -s conftest.err'
34250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34251 (eval $ac_try) 2>&5
34253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34254 (exit $ac_status); }; } &&
34255 { ac_try='test -s conftest$ac_exeext'
34256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34257 (eval $ac_try) 2>&5
34259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34260 (exit $ac_status); }; }; then
34261 eval "$as_ac_var=yes"
34263 echo "$as_me: failed program was:" >&5
34264 sed 's/^/| /' conftest.$ac_ext >&5
34266 eval "$as_ac_var=no"
34268 rm -f conftest.err conftest.$ac_objext \
34269 conftest$ac_exeext conftest.$ac_ext
34271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34273 if test `eval echo '${'$as_ac_var'}'` = yes; then
34274 cat >>confdefs.h <<_ACEOF
34275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34277 ice_have_fflush=yes
34281 if test "${ice_have_fflush}" = yes; then
34282 echo "$as_me:$LINENO: checking for fflush declaration in stdio.h" >&5
34283 echo $ECHO_N "checking for fflush declaration in stdio.h... $ECHO_C" >&6
34284 if test "${ice_cv_have_fflush_decl+set}" = set; then
34285 echo $ECHO_N "(cached) $ECHO_C" >&6
34288 ice_cv_have_fflush_decl=no
34289 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34290 ice_re_word='(^|[^a-zA-Z0-9_])'
34291 for header in stdio.h; do
34292 # Check for ordinary declaration
34293 cat >conftest.$ac_ext <<_ACEOF
34296 cat confdefs.h >>conftest.$ac_ext
34297 cat >>conftest.$ac_ext <<_ACEOF
34298 /* end confdefs.h. */
34302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34303 $EGREP "${ice_re_word}fflush[ ]*\(" >/dev/null 2>&1; then
34304 ice_cv_have_fflush_decl=yes
34308 if test "$ice_cv_have_fflush_decl" = yes; then
34311 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34312 cat >conftest.$ac_ext <<_ACEOF
34315 cat confdefs.h >>conftest.$ac_ext
34316 cat >>conftest.$ac_ext <<_ACEOF
34317 /* end confdefs.h. */
34321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34322 $EGREP "${ice_re_word}fflush[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34323 ice_cv_have_fflush_decl=yes
34327 if test "$ice_cv_have_fflush_decl" = yes; then
34334 echo "$as_me:$LINENO: result: $ice_cv_have_fflush_decl" >&5
34335 echo "${ECHO_T}$ice_cv_have_fflush_decl" >&6
34336 if test "$ice_cv_have_fflush_decl" = yes; then
34338 cat >>confdefs.h <<_ACEOF
34339 #define HAVE_FFLUSH_DECL 1
34348 for ac_func in flock
34350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34351 echo "$as_me:$LINENO: checking for $ac_func" >&5
34352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34353 if eval "test \"\${$as_ac_var+set}\" = set"; then
34354 echo $ECHO_N "(cached) $ECHO_C" >&6
34356 cat >conftest.$ac_ext <<_ACEOF
34359 cat confdefs.h >>conftest.$ac_ext
34360 cat >>conftest.$ac_ext <<_ACEOF
34361 /* end confdefs.h. */
34362 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34364 #define $ac_func innocuous_$ac_func
34366 /* System header to define __stub macros and hopefully few prototypes,
34367 which can conflict with char $ac_func (); below.
34368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34369 <limits.h> exists even on freestanding compilers. */
34372 # include <limits.h>
34374 # include <assert.h>
34379 /* Override any gcc2 internal prototype to avoid an error. */
34384 /* We use char because int might match the return type of a gcc2
34385 builtin and then its argument prototype would still apply. */
34387 /* The GNU C library defines this for functions which it implements
34388 to always fail with ENOSYS. Some functions are actually named
34389 something starting with __ and the normal name is an alias. */
34390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34393 char (*f) () = $ac_func;
34402 return f != $ac_func;
34407 rm -f conftest.$ac_objext conftest$ac_exeext
34408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34409 (eval $ac_link) 2>conftest.er1
34411 grep -v '^ *+' conftest.er1 >conftest.err
34413 cat conftest.err >&5
34414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34415 (exit $ac_status); } &&
34416 { ac_try='test -z "$ac_c_werror_flag"
34417 || test ! -s conftest.err'
34418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34419 (eval $ac_try) 2>&5
34421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34422 (exit $ac_status); }; } &&
34423 { ac_try='test -s conftest$ac_exeext'
34424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34425 (eval $ac_try) 2>&5
34427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34428 (exit $ac_status); }; }; then
34429 eval "$as_ac_var=yes"
34431 echo "$as_me: failed program was:" >&5
34432 sed 's/^/| /' conftest.$ac_ext >&5
34434 eval "$as_ac_var=no"
34436 rm -f conftest.err conftest.$ac_objext \
34437 conftest$ac_exeext conftest.$ac_ext
34439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34440 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34441 if test `eval echo '${'$as_ac_var'}'` = yes; then
34442 cat >>confdefs.h <<_ACEOF
34443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34449 if test "${ice_have_flock}" = yes; then
34450 echo "$as_me:$LINENO: checking for flock declaration in sys/file.h" >&5
34451 echo $ECHO_N "checking for flock declaration in sys/file.h... $ECHO_C" >&6
34452 if test "${ice_cv_have_flock_decl+set}" = set; then
34453 echo $ECHO_N "(cached) $ECHO_C" >&6
34456 ice_cv_have_flock_decl=no
34457 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34458 ice_re_word='(^|[^a-zA-Z0-9_])'
34459 for header in sys/file.h; do
34460 # Check for ordinary declaration
34461 cat >conftest.$ac_ext <<_ACEOF
34464 cat confdefs.h >>conftest.$ac_ext
34465 cat >>conftest.$ac_ext <<_ACEOF
34466 /* end confdefs.h. */
34470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34471 $EGREP "${ice_re_word}flock[ ]*\(" >/dev/null 2>&1; then
34472 ice_cv_have_flock_decl=yes
34476 if test "$ice_cv_have_flock_decl" = yes; then
34479 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34480 cat >conftest.$ac_ext <<_ACEOF
34483 cat confdefs.h >>conftest.$ac_ext
34484 cat >>conftest.$ac_ext <<_ACEOF
34485 /* end confdefs.h. */
34489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34490 $EGREP "${ice_re_word}flock[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34491 ice_cv_have_flock_decl=yes
34495 if test "$ice_cv_have_flock_decl" = yes; then
34502 echo "$as_me:$LINENO: result: $ice_cv_have_flock_decl" >&5
34503 echo "${ECHO_T}$ice_cv_have_flock_decl" >&6
34504 if test "$ice_cv_have_flock_decl" = yes; then
34506 cat >>confdefs.h <<_ACEOF
34507 #define HAVE_FLOCK_DECL 1
34514 ice_have_fprintf=no
34516 for ac_func in fprintf
34518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34519 echo "$as_me:$LINENO: checking for $ac_func" >&5
34520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34521 if eval "test \"\${$as_ac_var+set}\" = set"; then
34522 echo $ECHO_N "(cached) $ECHO_C" >&6
34524 cat >conftest.$ac_ext <<_ACEOF
34527 cat confdefs.h >>conftest.$ac_ext
34528 cat >>conftest.$ac_ext <<_ACEOF
34529 /* end confdefs.h. */
34530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34532 #define $ac_func innocuous_$ac_func
34534 /* System header to define __stub macros and hopefully few prototypes,
34535 which can conflict with char $ac_func (); below.
34536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34537 <limits.h> exists even on freestanding compilers. */
34540 # include <limits.h>
34542 # include <assert.h>
34547 /* Override any gcc2 internal prototype to avoid an error. */
34552 /* We use char because int might match the return type of a gcc2
34553 builtin and then its argument prototype would still apply. */
34555 /* The GNU C library defines this for functions which it implements
34556 to always fail with ENOSYS. Some functions are actually named
34557 something starting with __ and the normal name is an alias. */
34558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34561 char (*f) () = $ac_func;
34570 return f != $ac_func;
34575 rm -f conftest.$ac_objext conftest$ac_exeext
34576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34577 (eval $ac_link) 2>conftest.er1
34579 grep -v '^ *+' conftest.er1 >conftest.err
34581 cat conftest.err >&5
34582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34583 (exit $ac_status); } &&
34584 { ac_try='test -z "$ac_c_werror_flag"
34585 || test ! -s conftest.err'
34586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34587 (eval $ac_try) 2>&5
34589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34590 (exit $ac_status); }; } &&
34591 { ac_try='test -s conftest$ac_exeext'
34592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34593 (eval $ac_try) 2>&5
34595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34596 (exit $ac_status); }; }; then
34597 eval "$as_ac_var=yes"
34599 echo "$as_me: failed program was:" >&5
34600 sed 's/^/| /' conftest.$ac_ext >&5
34602 eval "$as_ac_var=no"
34604 rm -f conftest.err conftest.$ac_objext \
34605 conftest$ac_exeext conftest.$ac_ext
34607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34609 if test `eval echo '${'$as_ac_var'}'` = yes; then
34610 cat >>confdefs.h <<_ACEOF
34611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34613 ice_have_fprintf=yes
34617 if test "${ice_have_fprintf}" = yes; then
34618 echo "$as_me:$LINENO: checking for fprintf declaration in stdio.h" >&5
34619 echo $ECHO_N "checking for fprintf declaration in stdio.h... $ECHO_C" >&6
34620 if test "${ice_cv_have_fprintf_decl+set}" = set; then
34621 echo $ECHO_N "(cached) $ECHO_C" >&6
34624 ice_cv_have_fprintf_decl=no
34625 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34626 ice_re_word='(^|[^a-zA-Z0-9_])'
34627 for header in stdio.h; do
34628 # Check for ordinary declaration
34629 cat >conftest.$ac_ext <<_ACEOF
34632 cat confdefs.h >>conftest.$ac_ext
34633 cat >>conftest.$ac_ext <<_ACEOF
34634 /* end confdefs.h. */
34638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34639 $EGREP "${ice_re_word}fprintf[ ]*\(" >/dev/null 2>&1; then
34640 ice_cv_have_fprintf_decl=yes
34644 if test "$ice_cv_have_fprintf_decl" = yes; then
34647 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34648 cat >conftest.$ac_ext <<_ACEOF
34651 cat confdefs.h >>conftest.$ac_ext
34652 cat >>conftest.$ac_ext <<_ACEOF
34653 /* end confdefs.h. */
34657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34658 $EGREP "${ice_re_word}fprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34659 ice_cv_have_fprintf_decl=yes
34663 if test "$ice_cv_have_fprintf_decl" = yes; then
34670 echo "$as_me:$LINENO: result: $ice_cv_have_fprintf_decl" >&5
34671 echo "${ECHO_T}$ice_cv_have_fprintf_decl" >&6
34672 if test "$ice_cv_have_fprintf_decl" = yes; then
34674 cat >>confdefs.h <<_ACEOF
34675 #define HAVE_FPRINTF_DECL 1
34684 for ac_func in fputc
34686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34687 echo "$as_me:$LINENO: checking for $ac_func" >&5
34688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34689 if eval "test \"\${$as_ac_var+set}\" = set"; then
34690 echo $ECHO_N "(cached) $ECHO_C" >&6
34692 cat >conftest.$ac_ext <<_ACEOF
34695 cat confdefs.h >>conftest.$ac_ext
34696 cat >>conftest.$ac_ext <<_ACEOF
34697 /* end confdefs.h. */
34698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34700 #define $ac_func innocuous_$ac_func
34702 /* System header to define __stub macros and hopefully few prototypes,
34703 which can conflict with char $ac_func (); below.
34704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34705 <limits.h> exists even on freestanding compilers. */
34708 # include <limits.h>
34710 # include <assert.h>
34715 /* Override any gcc2 internal prototype to avoid an error. */
34720 /* We use char because int might match the return type of a gcc2
34721 builtin and then its argument prototype would still apply. */
34723 /* The GNU C library defines this for functions which it implements
34724 to always fail with ENOSYS. Some functions are actually named
34725 something starting with __ and the normal name is an alias. */
34726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34729 char (*f) () = $ac_func;
34738 return f != $ac_func;
34743 rm -f conftest.$ac_objext conftest$ac_exeext
34744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34745 (eval $ac_link) 2>conftest.er1
34747 grep -v '^ *+' conftest.er1 >conftest.err
34749 cat conftest.err >&5
34750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34751 (exit $ac_status); } &&
34752 { ac_try='test -z "$ac_c_werror_flag"
34753 || test ! -s conftest.err'
34754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34755 (eval $ac_try) 2>&5
34757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34758 (exit $ac_status); }; } &&
34759 { ac_try='test -s conftest$ac_exeext'
34760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34761 (eval $ac_try) 2>&5
34763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34764 (exit $ac_status); }; }; then
34765 eval "$as_ac_var=yes"
34767 echo "$as_me: failed program was:" >&5
34768 sed 's/^/| /' conftest.$ac_ext >&5
34770 eval "$as_ac_var=no"
34772 rm -f conftest.err conftest.$ac_objext \
34773 conftest$ac_exeext conftest.$ac_ext
34775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34777 if test `eval echo '${'$as_ac_var'}'` = yes; then
34778 cat >>confdefs.h <<_ACEOF
34779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34785 if test "${ice_have_fputc}" = yes; then
34786 echo "$as_me:$LINENO: checking for fputc declaration in stdio.h" >&5
34787 echo $ECHO_N "checking for fputc declaration in stdio.h... $ECHO_C" >&6
34788 if test "${ice_cv_have_fputc_decl+set}" = set; then
34789 echo $ECHO_N "(cached) $ECHO_C" >&6
34792 ice_cv_have_fputc_decl=no
34793 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34794 ice_re_word='(^|[^a-zA-Z0-9_])'
34795 for header in stdio.h; do
34796 # Check for ordinary declaration
34797 cat >conftest.$ac_ext <<_ACEOF
34800 cat confdefs.h >>conftest.$ac_ext
34801 cat >>conftest.$ac_ext <<_ACEOF
34802 /* end confdefs.h. */
34806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34807 $EGREP "${ice_re_word}fputc[ ]*\(" >/dev/null 2>&1; then
34808 ice_cv_have_fputc_decl=yes
34812 if test "$ice_cv_have_fputc_decl" = yes; then
34815 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34816 cat >conftest.$ac_ext <<_ACEOF
34819 cat confdefs.h >>conftest.$ac_ext
34820 cat >>conftest.$ac_ext <<_ACEOF
34821 /* end confdefs.h. */
34825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34826 $EGREP "${ice_re_word}fputc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34827 ice_cv_have_fputc_decl=yes
34831 if test "$ice_cv_have_fputc_decl" = yes; then
34838 echo "$as_me:$LINENO: result: $ice_cv_have_fputc_decl" >&5
34839 echo "${ECHO_T}$ice_cv_have_fputc_decl" >&6
34840 if test "$ice_cv_have_fputc_decl" = yes; then
34842 cat >>confdefs.h <<_ACEOF
34843 #define HAVE_FPUTC_DECL 1
34852 for ac_func in fputs
34854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34855 echo "$as_me:$LINENO: checking for $ac_func" >&5
34856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34857 if eval "test \"\${$as_ac_var+set}\" = set"; then
34858 echo $ECHO_N "(cached) $ECHO_C" >&6
34860 cat >conftest.$ac_ext <<_ACEOF
34863 cat confdefs.h >>conftest.$ac_ext
34864 cat >>conftest.$ac_ext <<_ACEOF
34865 /* end confdefs.h. */
34866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34868 #define $ac_func innocuous_$ac_func
34870 /* System header to define __stub macros and hopefully few prototypes,
34871 which can conflict with char $ac_func (); below.
34872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34873 <limits.h> exists even on freestanding compilers. */
34876 # include <limits.h>
34878 # include <assert.h>
34883 /* Override any gcc2 internal prototype to avoid an error. */
34888 /* We use char because int might match the return type of a gcc2
34889 builtin and then its argument prototype would still apply. */
34891 /* The GNU C library defines this for functions which it implements
34892 to always fail with ENOSYS. Some functions are actually named
34893 something starting with __ and the normal name is an alias. */
34894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34897 char (*f) () = $ac_func;
34906 return f != $ac_func;
34911 rm -f conftest.$ac_objext conftest$ac_exeext
34912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34913 (eval $ac_link) 2>conftest.er1
34915 grep -v '^ *+' conftest.er1 >conftest.err
34917 cat conftest.err >&5
34918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34919 (exit $ac_status); } &&
34920 { ac_try='test -z "$ac_c_werror_flag"
34921 || test ! -s conftest.err'
34922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34923 (eval $ac_try) 2>&5
34925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34926 (exit $ac_status); }; } &&
34927 { ac_try='test -s conftest$ac_exeext'
34928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34929 (eval $ac_try) 2>&5
34931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34932 (exit $ac_status); }; }; then
34933 eval "$as_ac_var=yes"
34935 echo "$as_me: failed program was:" >&5
34936 sed 's/^/| /' conftest.$ac_ext >&5
34938 eval "$as_ac_var=no"
34940 rm -f conftest.err conftest.$ac_objext \
34941 conftest$ac_exeext conftest.$ac_ext
34943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34945 if test `eval echo '${'$as_ac_var'}'` = yes; then
34946 cat >>confdefs.h <<_ACEOF
34947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34953 if test "${ice_have_fputs}" = yes; then
34954 echo "$as_me:$LINENO: checking for fputs declaration in stdio.h" >&5
34955 echo $ECHO_N "checking for fputs declaration in stdio.h... $ECHO_C" >&6
34956 if test "${ice_cv_have_fputs_decl+set}" = set; then
34957 echo $ECHO_N "(cached) $ECHO_C" >&6
34960 ice_cv_have_fputs_decl=no
34961 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34962 ice_re_word='(^|[^a-zA-Z0-9_])'
34963 for header in stdio.h; do
34964 # Check for ordinary declaration
34965 cat >conftest.$ac_ext <<_ACEOF
34968 cat confdefs.h >>conftest.$ac_ext
34969 cat >>conftest.$ac_ext <<_ACEOF
34970 /* end confdefs.h. */
34974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34975 $EGREP "${ice_re_word}fputs[ ]*\(" >/dev/null 2>&1; then
34976 ice_cv_have_fputs_decl=yes
34980 if test "$ice_cv_have_fputs_decl" = yes; then
34983 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34984 cat >conftest.$ac_ext <<_ACEOF
34987 cat confdefs.h >>conftest.$ac_ext
34988 cat >>conftest.$ac_ext <<_ACEOF
34989 /* end confdefs.h. */
34993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34994 $EGREP "${ice_re_word}fputs[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34995 ice_cv_have_fputs_decl=yes
34999 if test "$ice_cv_have_fputs_decl" = yes; then
35006 echo "$as_me:$LINENO: result: $ice_cv_have_fputs_decl" >&5
35007 echo "${ECHO_T}$ice_cv_have_fputs_decl" >&6
35008 if test "$ice_cv_have_fputs_decl" = yes; then
35010 cat >>confdefs.h <<_ACEOF
35011 #define HAVE_FPUTS_DECL 1
35020 for ac_func in fread
35022 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35023 echo "$as_me:$LINENO: checking for $ac_func" >&5
35024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35025 if eval "test \"\${$as_ac_var+set}\" = set"; then
35026 echo $ECHO_N "(cached) $ECHO_C" >&6
35028 cat >conftest.$ac_ext <<_ACEOF
35031 cat confdefs.h >>conftest.$ac_ext
35032 cat >>conftest.$ac_ext <<_ACEOF
35033 /* end confdefs.h. */
35034 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35036 #define $ac_func innocuous_$ac_func
35038 /* System header to define __stub macros and hopefully few prototypes,
35039 which can conflict with char $ac_func (); below.
35040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35041 <limits.h> exists even on freestanding compilers. */
35044 # include <limits.h>
35046 # include <assert.h>
35051 /* Override any gcc2 internal prototype to avoid an error. */
35056 /* We use char because int might match the return type of a gcc2
35057 builtin and then its argument prototype would still apply. */
35059 /* The GNU C library defines this for functions which it implements
35060 to always fail with ENOSYS. Some functions are actually named
35061 something starting with __ and the normal name is an alias. */
35062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35065 char (*f) () = $ac_func;
35074 return f != $ac_func;
35079 rm -f conftest.$ac_objext conftest$ac_exeext
35080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35081 (eval $ac_link) 2>conftest.er1
35083 grep -v '^ *+' conftest.er1 >conftest.err
35085 cat conftest.err >&5
35086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35087 (exit $ac_status); } &&
35088 { ac_try='test -z "$ac_c_werror_flag"
35089 || test ! -s conftest.err'
35090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35091 (eval $ac_try) 2>&5
35093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35094 (exit $ac_status); }; } &&
35095 { ac_try='test -s conftest$ac_exeext'
35096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35097 (eval $ac_try) 2>&5
35099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35100 (exit $ac_status); }; }; then
35101 eval "$as_ac_var=yes"
35103 echo "$as_me: failed program was:" >&5
35104 sed 's/^/| /' conftest.$ac_ext >&5
35106 eval "$as_ac_var=no"
35108 rm -f conftest.err conftest.$ac_objext \
35109 conftest$ac_exeext conftest.$ac_ext
35111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35112 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35113 if test `eval echo '${'$as_ac_var'}'` = yes; then
35114 cat >>confdefs.h <<_ACEOF
35115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35121 if test "${ice_have_fread}" = yes; then
35122 echo "$as_me:$LINENO: checking for fread declaration in stdio.h stdlib.h" >&5
35123 echo $ECHO_N "checking for fread declaration in stdio.h stdlib.h... $ECHO_C" >&6
35124 if test "${ice_cv_have_fread_decl+set}" = set; then
35125 echo $ECHO_N "(cached) $ECHO_C" >&6
35128 ice_cv_have_fread_decl=no
35129 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
35130 ice_re_word='(^|[^a-zA-Z0-9_])'
35131 for header in stdio.h stdlib.h; do
35132 # Check for ordinary declaration
35133 cat >conftest.$ac_ext <<_ACEOF
35136 cat confdefs.h >>conftest.$ac_ext
35137 cat >>conftest.$ac_ext <<_ACEOF
35138 /* end confdefs.h. */
35142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35143 $EGREP "${ice_re_word}fread[ ]*\(" >/dev/null 2>&1; then
35144 ice_cv_have_fread_decl=yes
35148 if test "$ice_cv_have_fread_decl" = yes; then
35151 # Check for "fixed" declaration like "getpid _PARAMS((int))"
35152 cat >conftest.$ac_ext <<_ACEOF
35155 cat confdefs.h >>conftest.$ac_ext
35156 cat >>conftest.$ac_ext <<_ACEOF
35157 /* end confdefs.h. */
35161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35162 $EGREP "${ice_re_word}fread[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
35163 ice_cv_have_fread_decl=yes
35167 if test "$ice_cv_have_fread_decl" = yes; then
35174 echo "$as_me:$LINENO: result: $ice_cv_have_fread_decl" >&5
35175 echo "${ECHO_T}$ice_cv_have_fread_decl" >&6
35176 if test "$ice_cv_have_fread_decl" = yes; then
35178 cat >>confdefs.h <<_ACEOF
35179 #define HAVE_FREAD_DECL 1
35188 for ac_func in fseek
35190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35191 echo "$as_me:$LINENO: checking for $ac_func" >&5
35192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35193 if eval "test \"\${$as_ac_var+set}\" = set"; then
35194 echo $ECHO_N "(cached) $ECHO_C" >&6
35196 cat >conftest.$ac_ext <<_ACEOF
35199 cat confdefs.h >>conftest.$ac_ext
35200 cat >>conftest.$ac_ext <<_ACEOF
35201 /* end confdefs.h. */
35202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35204 #define $ac_func innocuous_$ac_func
35206 /* System header to define __stub macros and hopefully few prototypes,
35207 which can conflict with char $ac_func (); below.
35208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35209 <limits.h> exists even on freestanding compilers. */
35212 # include <limits.h>
35214 # include <assert.h>
35219 /* Override any gcc2 internal prototype to avoid an error. */
35224 /* We use char because int might match the return type of a gcc2
35225 builtin and then its argument prototype would still apply. */
35227 /* The GNU C library defines this for functions which it implements
35228 to always fail with ENOSYS. Some functions are actually named
35229 something starting with __ and the normal name is an alias. */
35230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35233 char (*f) () = $ac_func;
35242 return f != $ac_func;
35247 rm -f conftest.$ac_objext conftest$ac_exeext
35248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35249 (eval $ac_link) 2>conftest.er1
35251 grep -v '^ *+' conftest.er1 >conftest.err
35253 cat conftest.err >&5
35254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35255 (exit $ac_status); } &&
35256 { ac_try='test -z "$ac_c_werror_flag"
35257 || test ! -s conftest.err'
35258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35259 (eval $ac_try) 2>&5
35261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35262 (exit $ac_status); }; } &&
35263 { ac_try='test -s conftest$ac_exeext'
35264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35265 (eval $ac_try) 2>&5
35267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35268 (exit $ac_status); }; }; then
35269 eval "$as_ac_var=yes"
35271 echo "$as_me: failed program was:" >&5
35272 sed 's/^/| /' conftest.$ac_ext >&5
35274 eval "$as_ac_var=no"
35276 rm -f conftest.err conftest.$ac_objext \
35277 conftest$ac_exeext conftest.$ac_ext
35279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35280 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35281 if test `eval echo '${'$as_ac_var'}'` = yes; then
35282 cat >>confdefs.h <<_ACEOF
35283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35289 if test "${ice_have_fseek}" = yes; then
35290 echo "$as_me:$LINENO: checking for fseek declaration in stdio.h" >&5
35291 echo $ECHO_N "checking for fseek declaration in stdio.h... $ECHO_C" >&6
35292 if test "${ice_cv_have_fseek_decl+set}" = set; then
35293 echo $ECHO_N "(cached) $ECHO_C" >&6
35296 ice_cv_have_fseek_decl=no
35297 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
35298 ice_re_word='(^|[^a-zA-Z0-9_])'
35299 for header in stdio.h; do
35300 # Check for ordinary declaration
35301 cat >conftest.$ac_ext <<_ACEOF
35304 cat confdefs.h >>conftest.$ac_ext
35305 cat >>conftest.$ac_ext <<_ACEOF
35306 /* end confdefs.h. */
35310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35311 $EGREP "${ice_re_word}fseek[ ]*\(" >/dev/null 2>&1; then
35312 ice_cv_have_fseek_decl=yes
35316 if test "$ice_cv_have_fseek_decl" = yes; then
35319 # Check for "fixed" declaration like "getpid _PARAMS((int))"
35320 cat >conftest.$ac_ext <<_ACEOF
35323 cat confdefs.h >>conftest.$ac_ext
35324 cat >>conftest.$ac_ext <<_ACEOF
35325 /* end confdefs.h. */
35329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35330 $EGREP "${ice_re_word}fseek[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
35331 ice_cv_have_fseek_decl=yes
35335 if test "$ice_cv_have_fseek_decl" = yes; then
35342 echo "$as_me:$LINENO: result: $ice_cv_have_fseek_decl" >&5
35343 echo "${ECHO_T}$ice_cv_have_fseek_decl" >&6
35344 if test "$ice_cv_have_fseek_decl" = yes; then
35346 cat >>confdefs.h <<_ACEOF
35347 #define HAVE_FSEEK_DECL 1
35356 for ac_func in fwrite
35358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35359 echo "$as_me:$LINENO: checking for $ac_func" >&5
35360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35361 if eval "test \"\${$as_ac_var+set}\" = set"; then
35362 echo $ECHO_N "(cached) $ECHO_C" >&6
35364 cat >conftest.$ac_ext <<_ACEOF
35367 cat confdefs.h >>conftest.$ac_ext
35368 cat >>conftest.$ac_ext <<_ACEOF
35369 /* end confdefs.h. */
35370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35372 #define $ac_func innocuous_$ac_func
35374 /* System header to define __stub macros and hopefully few prototypes,
35375 which can conflict with char $ac_func (); below.
35376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35377 <limits.h> exists even on freestanding compilers. */
35380 # include <limits.h>
35382 # include <assert.h>
35387 /* Override any gcc2 internal prototype to avoid an error. */
35392 /* We use char because int might match the return type of a gcc2
35393 builtin and then its argument prototype would still apply. */
35395 /* The GNU C library defines this for functions which it implements
35396 to always fail with ENOSYS. Some functions are actually named
35397 something starting with __ and the normal name is an alias. */
35398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35401 char (*f) () = $ac_func;
35410 return f != $ac_func;
35415 rm -f conftest.$ac_objext conftest$ac_exeext
35416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35417 (eval $ac_link) 2>conftest.er1
35419 grep -v '^ *+' conftest.er1 >conftest.err
35421 cat conftest.err >&5
35422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35423 (exit $ac_status); } &&
35424 { ac_try='test -z "$ac_c_werror_flag"
35425 || test ! -s conftest.err'
35426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35427 (eval $ac_try) 2>&5
35429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35430 (exit $ac_status); }; } &&
35431 { ac_try='test -s conftest$ac_exeext'
35432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35433 (eval $ac_try) 2>&5
35435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35436 (exit $ac_status); }; }; then
35437 eval "$as_ac_var=yes"
35439 echo "$as_me: failed program was:" >&5
35440 sed 's/^/| /' conftest.$ac_ext >&5
35442 eval "$as_ac_var=no"
35444 rm -f conftest.err conftest.$ac_objext \
35445 conftest$ac_exeext conftest.$ac_ext
35447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35449 if test `eval echo '${'$as_ac_var'}'` = yes; then
35450 cat >>confdefs.h <<_ACEOF
35451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35453 ice_have_fwrite=yes
35457 if test "${ice_have_fwrite}" = yes; then
35458 echo "$as_me:$LINENO: checking for fwrite declaration in stdio.h stdlib.h" >&5
35459 echo $ECHO_N "checking for fwrite declaration in stdio.h stdlib.h... $ECHO_C" >&6
35460 if test "${ice_cv_have_fwrite_decl+set}" = set; then
35461 echo $ECHO_N "(cached) $ECHO_C" >&6
35464 ice_cv_have_fwrite_decl=no
35465 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
35466 ice_re_word='(^|[^a-zA-Z0-9_])'
35467 for header in stdio.h stdlib.h; do
35468 # Check for ordinary declaration
35469 cat >conftest.$ac_ext <<_ACEOF
35472 cat confdefs.h >>conftest.$ac_ext
35473 cat >>conftest.$ac_ext <<_ACEOF
35474 /* end confdefs.h. */
35478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35479 $EGREP "${ice_re_word}fwrite[ ]*\(" >/dev/null 2>&1; then
35480 ice_cv_have_fwrite_decl=yes
35484 if test "$ice_cv_have_fwrite_decl" = yes; then
35487 # Check for "fixed" declaration like "getpid _PARAMS((int))"
35488 cat >conftest.$ac_ext <<_ACEOF
35491 cat confdefs.h >>conftest.$ac_ext
35492 cat >>conftest.$ac_ext <<_ACEOF
35493 /* end confdefs.h. */
35497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35498 $EGREP "${ice_re_word}fwrite[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
35499 ice_cv_have_fwrite_decl=yes
35503 if test "$ice_cv_have_fwrite_decl" = yes; then
35510 echo "$as_me:$LINENO: result: $ice_cv_have_fwrite_decl" >&5
35511 echo "${ECHO_T}$ice_cv_have_fwrite_decl" >&6
35512 if test "$ice_cv_have_fwrite_decl" = yes; then
35514 cat >>confdefs.h <<_ACEOF
35515 #define HAVE_FWRITE_DECL 1
35522 for ac_func in getcwd
35524 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35525 echo "$as_me:$LINENO: checking for $ac_func" >&5
35526 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35527 if eval "test \"\${$as_ac_var+set}\" = set"; then
35528 echo $ECHO_N "(cached) $ECHO_C" >&6
35530 cat >conftest.$ac_ext <<_ACEOF
35533 cat confdefs.h >>conftest.$ac_ext
35534 cat >>conftest.$ac_ext <<_ACEOF
35535 /* end confdefs.h. */
35536 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35538 #define $ac_func innocuous_$ac_func
35540 /* System header to define __stub macros and hopefully few prototypes,
35541 which can conflict with char $ac_func (); below.
35542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35543 <limits.h> exists even on freestanding compilers. */
35546 # include <limits.h>
35548 # include <assert.h>
35553 /* Override any gcc2 internal prototype to avoid an error. */
35558 /* We use char because int might match the return type of a gcc2
35559 builtin and then its argument prototype would still apply. */
35561 /* The GNU C library defines this for functions which it implements
35562 to always fail with ENOSYS. Some functions are actually named
35563 something starting with __ and the normal name is an alias. */
35564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35567 char (*f) () = $ac_func;
35576 return f != $ac_func;
35581 rm -f conftest.$ac_objext conftest$ac_exeext
35582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35583 (eval $ac_link) 2>conftest.er1
35585 grep -v '^ *+' conftest.er1 >conftest.err
35587 cat conftest.err >&5
35588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35589 (exit $ac_status); } &&
35590 { ac_try='test -z "$ac_c_werror_flag"
35591 || test ! -s conftest.err'
35592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35593 (eval $ac_try) 2>&5
35595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35596 (exit $ac_status); }; } &&
35597 { ac_try='test -s conftest$ac_exeext'
35598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35599 (eval $ac_try) 2>&5
35601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35602 (exit $ac_status); }; }; then
35603 eval "$as_ac_var=yes"
35605 echo "$as_me: failed program was:" >&5
35606 sed 's/^/| /' conftest.$ac_ext >&5
35608 eval "$as_ac_var=no"
35610 rm -f conftest.err conftest.$ac_objext \
35611 conftest$ac_exeext conftest.$ac_ext
35613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35614 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35615 if test `eval echo '${'$as_ac_var'}'` = yes; then
35616 cat >>confdefs.h <<_ACEOF
35617 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35622 "$ac_func.$ac_objext" | \
35623 *" $ac_func.$ac_objext" | \
35624 "$ac_func.$ac_objext "* | \
35625 *" $ac_func.$ac_objext "* ) ;;
35626 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
35634 for ac_func in getfsent
35636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35637 echo "$as_me:$LINENO: checking for $ac_func" >&5
35638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35639 if eval "test \"\${$as_ac_var+set}\" = set"; then
35640 echo $ECHO_N "(cached) $ECHO_C" >&6
35642 cat >conftest.$ac_ext <<_ACEOF
35645 cat confdefs.h >>conftest.$ac_ext
35646 cat >>conftest.$ac_ext <<_ACEOF
35647 /* end confdefs.h. */
35648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35650 #define $ac_func innocuous_$ac_func
35652 /* System header to define __stub macros and hopefully few prototypes,
35653 which can conflict with char $ac_func (); below.
35654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35655 <limits.h> exists even on freestanding compilers. */
35658 # include <limits.h>
35660 # include <assert.h>
35665 /* Override any gcc2 internal prototype to avoid an error. */
35670 /* We use char because int might match the return type of a gcc2
35671 builtin and then its argument prototype would still apply. */
35673 /* The GNU C library defines this for functions which it implements
35674 to always fail with ENOSYS. Some functions are actually named
35675 something starting with __ and the normal name is an alias. */
35676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35679 char (*f) () = $ac_func;
35688 return f != $ac_func;
35693 rm -f conftest.$ac_objext conftest$ac_exeext
35694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35695 (eval $ac_link) 2>conftest.er1
35697 grep -v '^ *+' conftest.er1 >conftest.err
35699 cat conftest.err >&5
35700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35701 (exit $ac_status); } &&
35702 { ac_try='test -z "$ac_c_werror_flag"
35703 || test ! -s conftest.err'
35704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35705 (eval $ac_try) 2>&5
35707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35708 (exit $ac_status); }; } &&
35709 { ac_try='test -s conftest$ac_exeext'
35710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35711 (eval $ac_try) 2>&5
35713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35714 (exit $ac_status); }; }; then
35715 eval "$as_ac_var=yes"
35717 echo "$as_me: failed program was:" >&5
35718 sed 's/^/| /' conftest.$ac_ext >&5
35720 eval "$as_ac_var=no"
35722 rm -f conftest.err conftest.$ac_objext \
35723 conftest$ac_exeext conftest.$ac_ext
35725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35727 if test `eval echo '${'$as_ac_var'}'` = yes; then
35728 cat >>confdefs.h <<_ACEOF
35729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35736 ice_have_gethostname=no
35738 for ac_func in gethostname
35740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35741 echo "$as_me:$LINENO: checking for $ac_func" >&5
35742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35743 if eval "test \"\${$as_ac_var+set}\" = set"; then
35744 echo $ECHO_N "(cached) $ECHO_C" >&6
35746 cat >conftest.$ac_ext <<_ACEOF
35749 cat confdefs.h >>conftest.$ac_ext
35750 cat >>conftest.$ac_ext <<_ACEOF
35751 /* end confdefs.h. */
35752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35754 #define $ac_func innocuous_$ac_func
35756 /* System header to define __stub macros and hopefully few prototypes,
35757 which can conflict with char $ac_func (); below.
35758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35759 <limits.h> exists even on freestanding compilers. */
35762 # include <limits.h>
35764 # include <assert.h>
35769 /* Override any gcc2 internal prototype to avoid an error. */
35774 /* We use char because int might match the return type of a gcc2
35775 builtin and then its argument prototype would still apply. */
35777 /* The GNU C library defines this for functions which it implements
35778 to always fail with ENOSYS. Some functions are actually named
35779 something starting with __ and the normal name is an alias. */
35780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35783 char (*f) () = $ac_func;
35792 return f != $ac_func;
35797 rm -f conftest.$ac_objext conftest$ac_exeext
35798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35799 (eval $ac_link) 2>conftest.er1
35801 grep -v '^ *+' conftest.er1 >conftest.err
35803 cat conftest.err >&5
35804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35805 (exit $ac_status); } &&
35806 { ac_try='test -z "$ac_c_werror_flag"
35807 || test ! -s conftest.err'
35808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35809 (eval $ac_try) 2>&5
35811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35812 (exit $ac_status); }; } &&
35813 { ac_try='test -s conftest$ac_exeext'
35814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35815 (eval $ac_try) 2>&5
35817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35818 (exit $ac_status); }; }; then
35819 eval "$as_ac_var=yes"
35821 echo "$as_me: failed program was:" >&5
35822 sed 's/^/| /' conftest.$ac_ext >&5
35824 eval "$as_ac_var=no"
35826 rm -f conftest.err conftest.$ac_objext \
35827 conftest$ac_exeext conftest.$ac_ext
35829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35831 if test `eval echo '${'$as_ac_var'}'` = yes; then
35832 cat >>confdefs.h <<_ACEOF
35833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35835 ice_have_gethostname=yes
35839 if test "${ice_have_gethostname}" = yes; then
35840 echo "$as_me:$LINENO: checking for gethostname declaration in unistd.h" >&5
35841 echo $ECHO_N "checking for gethostname declaration in unistd.h... $ECHO_C" >&6
35842 if test "${ice_cv_have_gethostname_decl+set}" = set; then
35843 echo $ECHO_N "(cached) $ECHO_C" >&6
35846 ice_cv_have_gethostname_decl=no
35847 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
35848 ice_re_word='(^|[^a-zA-Z0-9_])'
35849 for header in unistd.h; do
35850 # Check for ordinary declaration
35851 cat >conftest.$ac_ext <<_ACEOF
35854 cat confdefs.h >>conftest.$ac_ext
35855 cat >>conftest.$ac_ext <<_ACEOF
35856 /* end confdefs.h. */
35860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35861 $EGREP "${ice_re_word}gethostname[ ]*\(" >/dev/null 2>&1; then
35862 ice_cv_have_gethostname_decl=yes
35866 if test "$ice_cv_have_gethostname_decl" = yes; then
35869 # Check for "fixed" declaration like "getpid _PARAMS((int))"
35870 cat >conftest.$ac_ext <<_ACEOF
35873 cat confdefs.h >>conftest.$ac_ext
35874 cat >>conftest.$ac_ext <<_ACEOF
35875 /* end confdefs.h. */
35879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35880 $EGREP "${ice_re_word}gethostname[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
35881 ice_cv_have_gethostname_decl=yes
35885 if test "$ice_cv_have_gethostname_decl" = yes; then
35892 echo "$as_me:$LINENO: result: $ice_cv_have_gethostname_decl" >&5
35893 echo "${ECHO_T}$ice_cv_have_gethostname_decl" >&6
35894 if test "$ice_cv_have_gethostname_decl" = yes; then
35896 cat >>confdefs.h <<_ACEOF
35897 #define HAVE_GETHOSTNAME_DECL 1
35903 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
35904 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
35905 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
35906 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
35907 echo $ECHO_N "(cached) $ECHO_C" >&6
35909 ac_check_lib_save_LIBS=$LIBS
35911 cat >conftest.$ac_ext <<_ACEOF
35914 cat confdefs.h >>conftest.$ac_ext
35915 cat >>conftest.$ac_ext <<_ACEOF
35916 /* end confdefs.h. */
35918 /* Override any gcc2 internal prototype to avoid an error. */
35922 /* We use char because int might match the return type of a gcc2
35923 builtin and then its argument prototype would still apply. */
35933 rm -f conftest.$ac_objext conftest$ac_exeext
35934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35935 (eval $ac_link) 2>conftest.er1
35937 grep -v '^ *+' conftest.er1 >conftest.err
35939 cat conftest.err >&5
35940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35941 (exit $ac_status); } &&
35942 { ac_try='test -z "$ac_c_werror_flag"
35943 || test ! -s conftest.err'
35944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35945 (eval $ac_try) 2>&5
35947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35948 (exit $ac_status); }; } &&
35949 { ac_try='test -s conftest$ac_exeext'
35950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35951 (eval $ac_try) 2>&5
35953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35954 (exit $ac_status); }; }; then
35955 ac_cv_lib_sun_getmntent=yes
35957 echo "$as_me: failed program was:" >&5
35958 sed 's/^/| /' conftest.$ac_ext >&5
35960 ac_cv_lib_sun_getmntent=no
35962 rm -f conftest.err conftest.$ac_objext \
35963 conftest$ac_exeext conftest.$ac_ext
35964 LIBS=$ac_check_lib_save_LIBS
35966 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
35967 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
35968 if test $ac_cv_lib_sun_getmntent = yes; then
35971 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
35972 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
35973 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
35974 echo $ECHO_N "(cached) $ECHO_C" >&6
35976 ac_check_lib_save_LIBS=$LIBS
35978 cat >conftest.$ac_ext <<_ACEOF
35981 cat confdefs.h >>conftest.$ac_ext
35982 cat >>conftest.$ac_ext <<_ACEOF
35983 /* end confdefs.h. */
35985 /* Override any gcc2 internal prototype to avoid an error. */
35989 /* We use char because int might match the return type of a gcc2
35990 builtin and then its argument prototype would still apply. */
36000 rm -f conftest.$ac_objext conftest$ac_exeext
36001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36002 (eval $ac_link) 2>conftest.er1
36004 grep -v '^ *+' conftest.er1 >conftest.err
36006 cat conftest.err >&5
36007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36008 (exit $ac_status); } &&
36009 { ac_try='test -z "$ac_c_werror_flag"
36010 || test ! -s conftest.err'
36011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36012 (eval $ac_try) 2>&5
36014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36015 (exit $ac_status); }; } &&
36016 { ac_try='test -s conftest$ac_exeext'
36017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36018 (eval $ac_try) 2>&5
36020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36021 (exit $ac_status); }; }; then
36022 ac_cv_lib_seq_getmntent=yes
36024 echo "$as_me: failed program was:" >&5
36025 sed 's/^/| /' conftest.$ac_ext >&5
36027 ac_cv_lib_seq_getmntent=no
36029 rm -f conftest.err conftest.$ac_objext \
36030 conftest$ac_exeext conftest.$ac_ext
36031 LIBS=$ac_check_lib_save_LIBS
36033 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
36034 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
36035 if test $ac_cv_lib_seq_getmntent = yes; then
36038 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
36039 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
36040 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
36041 echo $ECHO_N "(cached) $ECHO_C" >&6
36043 ac_check_lib_save_LIBS=$LIBS
36045 cat >conftest.$ac_ext <<_ACEOF
36048 cat confdefs.h >>conftest.$ac_ext
36049 cat >>conftest.$ac_ext <<_ACEOF
36050 /* end confdefs.h. */
36052 /* Override any gcc2 internal prototype to avoid an error. */
36056 /* We use char because int might match the return type of a gcc2
36057 builtin and then its argument prototype would still apply. */
36067 rm -f conftest.$ac_objext conftest$ac_exeext
36068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36069 (eval $ac_link) 2>conftest.er1
36071 grep -v '^ *+' conftest.er1 >conftest.err
36073 cat conftest.err >&5
36074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36075 (exit $ac_status); } &&
36076 { ac_try='test -z "$ac_c_werror_flag"
36077 || test ! -s conftest.err'
36078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36079 (eval $ac_try) 2>&5
36081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36082 (exit $ac_status); }; } &&
36083 { ac_try='test -s conftest$ac_exeext'
36084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36085 (eval $ac_try) 2>&5
36087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36088 (exit $ac_status); }; }; then
36089 ac_cv_lib_gen_getmntent=yes
36091 echo "$as_me: failed program was:" >&5
36092 sed 's/^/| /' conftest.$ac_ext >&5
36094 ac_cv_lib_gen_getmntent=no
36096 rm -f conftest.err conftest.$ac_objext \
36097 conftest$ac_exeext conftest.$ac_ext
36098 LIBS=$ac_check_lib_save_LIBS
36100 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
36101 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
36102 if test $ac_cv_lib_gen_getmntent = yes; then
36111 for ac_func in getmntent
36113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36114 echo "$as_me:$LINENO: checking for $ac_func" >&5
36115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36116 if eval "test \"\${$as_ac_var+set}\" = set"; then
36117 echo $ECHO_N "(cached) $ECHO_C" >&6
36119 cat >conftest.$ac_ext <<_ACEOF
36122 cat confdefs.h >>conftest.$ac_ext
36123 cat >>conftest.$ac_ext <<_ACEOF
36124 /* end confdefs.h. */
36125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36127 #define $ac_func innocuous_$ac_func
36129 /* System header to define __stub macros and hopefully few prototypes,
36130 which can conflict with char $ac_func (); below.
36131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36132 <limits.h> exists even on freestanding compilers. */
36135 # include <limits.h>
36137 # include <assert.h>
36142 /* Override any gcc2 internal prototype to avoid an error. */
36147 /* We use char because int might match the return type of a gcc2
36148 builtin and then its argument prototype would still apply. */
36150 /* The GNU C library defines this for functions which it implements
36151 to always fail with ENOSYS. Some functions are actually named
36152 something starting with __ and the normal name is an alias. */
36153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36156 char (*f) () = $ac_func;
36165 return f != $ac_func;
36170 rm -f conftest.$ac_objext conftest$ac_exeext
36171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36172 (eval $ac_link) 2>conftest.er1
36174 grep -v '^ *+' conftest.er1 >conftest.err
36176 cat conftest.err >&5
36177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36178 (exit $ac_status); } &&
36179 { ac_try='test -z "$ac_c_werror_flag"
36180 || test ! -s conftest.err'
36181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36182 (eval $ac_try) 2>&5
36184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36185 (exit $ac_status); }; } &&
36186 { ac_try='test -s conftest$ac_exeext'
36187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36188 (eval $ac_try) 2>&5
36190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36191 (exit $ac_status); }; }; then
36192 eval "$as_ac_var=yes"
36194 echo "$as_me: failed program was:" >&5
36195 sed 's/^/| /' conftest.$ac_ext >&5
36197 eval "$as_ac_var=no"
36199 rm -f conftest.err conftest.$ac_objext \
36200 conftest$ac_exeext conftest.$ac_ext
36202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36204 if test `eval echo '${'$as_ac_var'}'` = yes; then
36205 cat >>confdefs.h <<_ACEOF
36206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36216 for ac_func in getopt
36218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36219 echo "$as_me:$LINENO: checking for $ac_func" >&5
36220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36221 if eval "test \"\${$as_ac_var+set}\" = set"; then
36222 echo $ECHO_N "(cached) $ECHO_C" >&6
36224 cat >conftest.$ac_ext <<_ACEOF
36227 cat confdefs.h >>conftest.$ac_ext
36228 cat >>conftest.$ac_ext <<_ACEOF
36229 /* end confdefs.h. */
36230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36232 #define $ac_func innocuous_$ac_func
36234 /* System header to define __stub macros and hopefully few prototypes,
36235 which can conflict with char $ac_func (); below.
36236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36237 <limits.h> exists even on freestanding compilers. */
36240 # include <limits.h>
36242 # include <assert.h>
36247 /* Override any gcc2 internal prototype to avoid an error. */
36252 /* We use char because int might match the return type of a gcc2
36253 builtin and then its argument prototype would still apply. */
36255 /* The GNU C library defines this for functions which it implements
36256 to always fail with ENOSYS. Some functions are actually named
36257 something starting with __ and the normal name is an alias. */
36258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36261 char (*f) () = $ac_func;
36270 return f != $ac_func;
36275 rm -f conftest.$ac_objext conftest$ac_exeext
36276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36277 (eval $ac_link) 2>conftest.er1
36279 grep -v '^ *+' conftest.er1 >conftest.err
36281 cat conftest.err >&5
36282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36283 (exit $ac_status); } &&
36284 { ac_try='test -z "$ac_c_werror_flag"
36285 || test ! -s conftest.err'
36286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36287 (eval $ac_try) 2>&5
36289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36290 (exit $ac_status); }; } &&
36291 { ac_try='test -s conftest$ac_exeext'
36292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36293 (eval $ac_try) 2>&5
36295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36296 (exit $ac_status); }; }; then
36297 eval "$as_ac_var=yes"
36299 echo "$as_me: failed program was:" >&5
36300 sed 's/^/| /' conftest.$ac_ext >&5
36302 eval "$as_ac_var=no"
36304 rm -f conftest.err conftest.$ac_objext \
36305 conftest$ac_exeext conftest.$ac_ext
36307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36308 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36309 if test `eval echo '${'$as_ac_var'}'` = yes; then
36310 cat >>confdefs.h <<_ACEOF
36311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36313 ice_have_getopt=yes
36317 if test "${ice_have_getopt}" = yes; then
36318 echo "$as_me:$LINENO: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
36319 echo $ECHO_N "checking for getopt declaration in stdlib.h unistd.h libc.h... $ECHO_C" >&6
36320 if test "${ice_cv_have_getopt_decl+set}" = set; then
36321 echo $ECHO_N "(cached) $ECHO_C" >&6
36324 ice_cv_have_getopt_decl=no
36325 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36326 ice_re_word='(^|[^a-zA-Z0-9_])'
36327 for header in stdlib.h unistd.h libc.h; do
36328 # Check for ordinary declaration
36329 cat >conftest.$ac_ext <<_ACEOF
36332 cat confdefs.h >>conftest.$ac_ext
36333 cat >>conftest.$ac_ext <<_ACEOF
36334 /* end confdefs.h. */
36338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36339 $EGREP "${ice_re_word}getopt[ ]*\(" >/dev/null 2>&1; then
36340 ice_cv_have_getopt_decl=yes
36344 if test "$ice_cv_have_getopt_decl" = yes; then
36347 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36348 cat >conftest.$ac_ext <<_ACEOF
36351 cat confdefs.h >>conftest.$ac_ext
36352 cat >>conftest.$ac_ext <<_ACEOF
36353 /* end confdefs.h. */
36357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36358 $EGREP "${ice_re_word}getopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36359 ice_cv_have_getopt_decl=yes
36363 if test "$ice_cv_have_getopt_decl" = yes; then
36370 echo "$as_me:$LINENO: result: $ice_cv_have_getopt_decl" >&5
36371 echo "${ECHO_T}$ice_cv_have_getopt_decl" >&6
36372 if test "$ice_cv_have_getopt_decl" = yes; then
36374 cat >>confdefs.h <<_ACEOF
36375 #define HAVE_GETOPT_DECL 1
36382 ice_have_getpeername=no
36384 for ac_func in getpeername
36386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36387 echo "$as_me:$LINENO: checking for $ac_func" >&5
36388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36389 if eval "test \"\${$as_ac_var+set}\" = set"; then
36390 echo $ECHO_N "(cached) $ECHO_C" >&6
36392 cat >conftest.$ac_ext <<_ACEOF
36395 cat confdefs.h >>conftest.$ac_ext
36396 cat >>conftest.$ac_ext <<_ACEOF
36397 /* end confdefs.h. */
36398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36400 #define $ac_func innocuous_$ac_func
36402 /* System header to define __stub macros and hopefully few prototypes,
36403 which can conflict with char $ac_func (); below.
36404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36405 <limits.h> exists even on freestanding compilers. */
36408 # include <limits.h>
36410 # include <assert.h>
36415 /* Override any gcc2 internal prototype to avoid an error. */
36420 /* We use char because int might match the return type of a gcc2
36421 builtin and then its argument prototype would still apply. */
36423 /* The GNU C library defines this for functions which it implements
36424 to always fail with ENOSYS. Some functions are actually named
36425 something starting with __ and the normal name is an alias. */
36426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36429 char (*f) () = $ac_func;
36438 return f != $ac_func;
36443 rm -f conftest.$ac_objext conftest$ac_exeext
36444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36445 (eval $ac_link) 2>conftest.er1
36447 grep -v '^ *+' conftest.er1 >conftest.err
36449 cat conftest.err >&5
36450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36451 (exit $ac_status); } &&
36452 { ac_try='test -z "$ac_c_werror_flag"
36453 || test ! -s conftest.err'
36454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36455 (eval $ac_try) 2>&5
36457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36458 (exit $ac_status); }; } &&
36459 { ac_try='test -s conftest$ac_exeext'
36460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36461 (eval $ac_try) 2>&5
36463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36464 (exit $ac_status); }; }; then
36465 eval "$as_ac_var=yes"
36467 echo "$as_me: failed program was:" >&5
36468 sed 's/^/| /' conftest.$ac_ext >&5
36470 eval "$as_ac_var=no"
36472 rm -f conftest.err conftest.$ac_objext \
36473 conftest$ac_exeext conftest.$ac_ext
36475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36476 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36477 if test `eval echo '${'$as_ac_var'}'` = yes; then
36478 cat >>confdefs.h <<_ACEOF
36479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36481 ice_have_getpeername=yes
36485 if test "${ice_have_getpeername}" = yes; then
36486 echo "$as_me:$LINENO: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
36487 echo $ECHO_N "checking for getpeername declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
36488 if test "${ice_cv_have_getpeername_decl+set}" = set; then
36489 echo $ECHO_N "(cached) $ECHO_C" >&6
36492 ice_cv_have_getpeername_decl=no
36493 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36494 ice_re_word='(^|[^a-zA-Z0-9_])'
36495 for header in sys/types.h sys/socket.h; do
36496 # Check for ordinary declaration
36497 cat >conftest.$ac_ext <<_ACEOF
36500 cat confdefs.h >>conftest.$ac_ext
36501 cat >>conftest.$ac_ext <<_ACEOF
36502 /* end confdefs.h. */
36506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36507 $EGREP "${ice_re_word}getpeername[ ]*\(" >/dev/null 2>&1; then
36508 ice_cv_have_getpeername_decl=yes
36512 if test "$ice_cv_have_getpeername_decl" = yes; then
36515 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36516 cat >conftest.$ac_ext <<_ACEOF
36519 cat confdefs.h >>conftest.$ac_ext
36520 cat >>conftest.$ac_ext <<_ACEOF
36521 /* end confdefs.h. */
36525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36526 $EGREP "${ice_re_word}getpeername[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36527 ice_cv_have_getpeername_decl=yes
36531 if test "$ice_cv_have_getpeername_decl" = yes; then
36538 echo "$as_me:$LINENO: result: $ice_cv_have_getpeername_decl" >&5
36539 echo "${ECHO_T}$ice_cv_have_getpeername_decl" >&6
36540 if test "$ice_cv_have_getpeername_decl" = yes; then
36542 cat >>confdefs.h <<_ACEOF
36543 #define HAVE_GETPEERNAME_DECL 1
36550 for ac_func in getpgrp
36552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36553 echo "$as_me:$LINENO: checking for $ac_func" >&5
36554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36555 if eval "test \"\${$as_ac_var+set}\" = set"; then
36556 echo $ECHO_N "(cached) $ECHO_C" >&6
36558 cat >conftest.$ac_ext <<_ACEOF
36561 cat confdefs.h >>conftest.$ac_ext
36562 cat >>conftest.$ac_ext <<_ACEOF
36563 /* end confdefs.h. */
36564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36566 #define $ac_func innocuous_$ac_func
36568 /* System header to define __stub macros and hopefully few prototypes,
36569 which can conflict with char $ac_func (); below.
36570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36571 <limits.h> exists even on freestanding compilers. */
36574 # include <limits.h>
36576 # include <assert.h>
36581 /* Override any gcc2 internal prototype to avoid an error. */
36586 /* We use char because int might match the return type of a gcc2
36587 builtin and then its argument prototype would still apply. */
36589 /* The GNU C library defines this for functions which it implements
36590 to always fail with ENOSYS. Some functions are actually named
36591 something starting with __ and the normal name is an alias. */
36592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36595 char (*f) () = $ac_func;
36604 return f != $ac_func;
36609 rm -f conftest.$ac_objext conftest$ac_exeext
36610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36611 (eval $ac_link) 2>conftest.er1
36613 grep -v '^ *+' conftest.er1 >conftest.err
36615 cat conftest.err >&5
36616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36617 (exit $ac_status); } &&
36618 { ac_try='test -z "$ac_c_werror_flag"
36619 || test ! -s conftest.err'
36620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36621 (eval $ac_try) 2>&5
36623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36624 (exit $ac_status); }; } &&
36625 { ac_try='test -s conftest$ac_exeext'
36626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36627 (eval $ac_try) 2>&5
36629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36630 (exit $ac_status); }; }; then
36631 eval "$as_ac_var=yes"
36633 echo "$as_me: failed program was:" >&5
36634 sed 's/^/| /' conftest.$ac_ext >&5
36636 eval "$as_ac_var=no"
36638 rm -f conftest.err conftest.$ac_objext \
36639 conftest$ac_exeext conftest.$ac_ext
36641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36642 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36643 if test `eval echo '${'$as_ac_var'}'` = yes; then
36644 cat >>confdefs.h <<_ACEOF
36645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36651 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
36652 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
36653 if test "${ac_cv_func_getpgrp_void+set}" = set; then
36654 echo $ECHO_N "(cached) $ECHO_C" >&6
36656 # Use it with a single arg.
36657 cat >conftest.$ac_ext <<_ACEOF
36660 cat confdefs.h >>conftest.$ac_ext
36661 cat >>conftest.$ac_ext <<_ACEOF
36662 /* end confdefs.h. */
36663 $ac_includes_default
36672 rm -f conftest.$ac_objext
36673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36674 (eval $ac_compile) 2>conftest.er1
36676 grep -v '^ *+' conftest.er1 >conftest.err
36678 cat conftest.err >&5
36679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36680 (exit $ac_status); } &&
36681 { ac_try='test -z "$ac_c_werror_flag"
36682 || test ! -s conftest.err'
36683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36684 (eval $ac_try) 2>&5
36686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36687 (exit $ac_status); }; } &&
36688 { ac_try='test -s conftest.$ac_objext'
36689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36690 (eval $ac_try) 2>&5
36692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36693 (exit $ac_status); }; }; then
36694 ac_cv_func_getpgrp_void=no
36696 echo "$as_me: failed program was:" >&5
36697 sed 's/^/| /' conftest.$ac_ext >&5
36699 ac_cv_func_getpgrp_void=yes
36701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36704 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
36705 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
36706 if test $ac_cv_func_getpgrp_void = yes; then
36708 cat >>confdefs.h <<\_ACEOF
36709 #define GETPGRP_VOID 1
36715 ice_have_getsockname=no
36717 for ac_func in getsockname
36719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36720 echo "$as_me:$LINENO: checking for $ac_func" >&5
36721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36722 if eval "test \"\${$as_ac_var+set}\" = set"; then
36723 echo $ECHO_N "(cached) $ECHO_C" >&6
36725 cat >conftest.$ac_ext <<_ACEOF
36728 cat confdefs.h >>conftest.$ac_ext
36729 cat >>conftest.$ac_ext <<_ACEOF
36730 /* end confdefs.h. */
36731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36733 #define $ac_func innocuous_$ac_func
36735 /* System header to define __stub macros and hopefully few prototypes,
36736 which can conflict with char $ac_func (); below.
36737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36738 <limits.h> exists even on freestanding compilers. */
36741 # include <limits.h>
36743 # include <assert.h>
36748 /* Override any gcc2 internal prototype to avoid an error. */
36753 /* We use char because int might match the return type of a gcc2
36754 builtin and then its argument prototype would still apply. */
36756 /* The GNU C library defines this for functions which it implements
36757 to always fail with ENOSYS. Some functions are actually named
36758 something starting with __ and the normal name is an alias. */
36759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36762 char (*f) () = $ac_func;
36771 return f != $ac_func;
36776 rm -f conftest.$ac_objext conftest$ac_exeext
36777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36778 (eval $ac_link) 2>conftest.er1
36780 grep -v '^ *+' conftest.er1 >conftest.err
36782 cat conftest.err >&5
36783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36784 (exit $ac_status); } &&
36785 { ac_try='test -z "$ac_c_werror_flag"
36786 || test ! -s conftest.err'
36787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36788 (eval $ac_try) 2>&5
36790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36791 (exit $ac_status); }; } &&
36792 { ac_try='test -s conftest$ac_exeext'
36793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36794 (eval $ac_try) 2>&5
36796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36797 (exit $ac_status); }; }; then
36798 eval "$as_ac_var=yes"
36800 echo "$as_me: failed program was:" >&5
36801 sed 's/^/| /' conftest.$ac_ext >&5
36803 eval "$as_ac_var=no"
36805 rm -f conftest.err conftest.$ac_objext \
36806 conftest$ac_exeext conftest.$ac_ext
36808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36809 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36810 if test `eval echo '${'$as_ac_var'}'` = yes; then
36811 cat >>confdefs.h <<_ACEOF
36812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36814 ice_have_getsockname=yes
36818 if test "${ice_have_getsockname}" = yes; then
36819 echo "$as_me:$LINENO: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
36820 echo $ECHO_N "checking for getsockname declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
36821 if test "${ice_cv_have_getsockname_decl+set}" = set; then
36822 echo $ECHO_N "(cached) $ECHO_C" >&6
36825 ice_cv_have_getsockname_decl=no
36826 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36827 ice_re_word='(^|[^a-zA-Z0-9_])'
36828 for header in sys/types.h sys/socket.h; do
36829 # Check for ordinary declaration
36830 cat >conftest.$ac_ext <<_ACEOF
36833 cat confdefs.h >>conftest.$ac_ext
36834 cat >>conftest.$ac_ext <<_ACEOF
36835 /* end confdefs.h. */
36839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36840 $EGREP "${ice_re_word}getsockname[ ]*\(" >/dev/null 2>&1; then
36841 ice_cv_have_getsockname_decl=yes
36845 if test "$ice_cv_have_getsockname_decl" = yes; then
36848 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36849 cat >conftest.$ac_ext <<_ACEOF
36852 cat confdefs.h >>conftest.$ac_ext
36853 cat >>conftest.$ac_ext <<_ACEOF
36854 /* end confdefs.h. */
36858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36859 $EGREP "${ice_re_word}getsockname[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36860 ice_cv_have_getsockname_decl=yes
36864 if test "$ice_cv_have_getsockname_decl" = yes; then
36871 echo "$as_me:$LINENO: result: $ice_cv_have_getsockname_decl" >&5
36872 echo "${ECHO_T}$ice_cv_have_getsockname_decl" >&6
36873 if test "$ice_cv_have_getsockname_decl" = yes; then
36875 cat >>confdefs.h <<_ACEOF
36876 #define HAVE_GETSOCKNAME_DECL 1
36883 ice_have_getsockopt=no
36885 for ac_func in getsockopt
36887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36888 echo "$as_me:$LINENO: checking for $ac_func" >&5
36889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36890 if eval "test \"\${$as_ac_var+set}\" = set"; then
36891 echo $ECHO_N "(cached) $ECHO_C" >&6
36893 cat >conftest.$ac_ext <<_ACEOF
36896 cat confdefs.h >>conftest.$ac_ext
36897 cat >>conftest.$ac_ext <<_ACEOF
36898 /* end confdefs.h. */
36899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36901 #define $ac_func innocuous_$ac_func
36903 /* System header to define __stub macros and hopefully few prototypes,
36904 which can conflict with char $ac_func (); below.
36905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36906 <limits.h> exists even on freestanding compilers. */
36909 # include <limits.h>
36911 # include <assert.h>
36916 /* Override any gcc2 internal prototype to avoid an error. */
36921 /* We use char because int might match the return type of a gcc2
36922 builtin and then its argument prototype would still apply. */
36924 /* The GNU C library defines this for functions which it implements
36925 to always fail with ENOSYS. Some functions are actually named
36926 something starting with __ and the normal name is an alias. */
36927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36930 char (*f) () = $ac_func;
36939 return f != $ac_func;
36944 rm -f conftest.$ac_objext conftest$ac_exeext
36945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36946 (eval $ac_link) 2>conftest.er1
36948 grep -v '^ *+' conftest.er1 >conftest.err
36950 cat conftest.err >&5
36951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36952 (exit $ac_status); } &&
36953 { ac_try='test -z "$ac_c_werror_flag"
36954 || test ! -s conftest.err'
36955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36956 (eval $ac_try) 2>&5
36958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36959 (exit $ac_status); }; } &&
36960 { ac_try='test -s conftest$ac_exeext'
36961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36962 (eval $ac_try) 2>&5
36964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36965 (exit $ac_status); }; }; then
36966 eval "$as_ac_var=yes"
36968 echo "$as_me: failed program was:" >&5
36969 sed 's/^/| /' conftest.$ac_ext >&5
36971 eval "$as_ac_var=no"
36973 rm -f conftest.err conftest.$ac_objext \
36974 conftest$ac_exeext conftest.$ac_ext
36976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36977 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36978 if test `eval echo '${'$as_ac_var'}'` = yes; then
36979 cat >>confdefs.h <<_ACEOF
36980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36982 ice_have_getsockopt=yes
36986 if test "${ice_have_getsockopt}" = yes; then
36987 echo "$as_me:$LINENO: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
36988 echo $ECHO_N "checking for getsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
36989 if test "${ice_cv_have_getsockopt_decl+set}" = set; then
36990 echo $ECHO_N "(cached) $ECHO_C" >&6
36993 ice_cv_have_getsockopt_decl=no
36994 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36995 ice_re_word='(^|[^a-zA-Z0-9_])'
36996 for header in sys/types.h sys/socket.h; do
36997 # Check for ordinary declaration
36998 cat >conftest.$ac_ext <<_ACEOF
37001 cat confdefs.h >>conftest.$ac_ext
37002 cat >>conftest.$ac_ext <<_ACEOF
37003 /* end confdefs.h. */
37007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37008 $EGREP "${ice_re_word}getsockopt[ ]*\(" >/dev/null 2>&1; then
37009 ice_cv_have_getsockopt_decl=yes
37013 if test "$ice_cv_have_getsockopt_decl" = yes; then
37016 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37017 cat >conftest.$ac_ext <<_ACEOF
37020 cat confdefs.h >>conftest.$ac_ext
37021 cat >>conftest.$ac_ext <<_ACEOF
37022 /* end confdefs.h. */
37026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37027 $EGREP "${ice_re_word}getsockopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37028 ice_cv_have_getsockopt_decl=yes
37032 if test "$ice_cv_have_getsockopt_decl" = yes; then
37039 echo "$as_me:$LINENO: result: $ice_cv_have_getsockopt_decl" >&5
37040 echo "${ECHO_T}$ice_cv_have_getsockopt_decl" >&6
37041 if test "$ice_cv_have_getsockopt_decl" = yes; then
37043 cat >>confdefs.h <<_ACEOF
37044 #define HAVE_GETSOCKOPT_DECL 1
37051 ice_have_gettimeofday=no
37053 for ac_func in gettimeofday
37055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37056 echo "$as_me:$LINENO: checking for $ac_func" >&5
37057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37058 if eval "test \"\${$as_ac_var+set}\" = set"; then
37059 echo $ECHO_N "(cached) $ECHO_C" >&6
37061 cat >conftest.$ac_ext <<_ACEOF
37064 cat confdefs.h >>conftest.$ac_ext
37065 cat >>conftest.$ac_ext <<_ACEOF
37066 /* end confdefs.h. */
37067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37069 #define $ac_func innocuous_$ac_func
37071 /* System header to define __stub macros and hopefully few prototypes,
37072 which can conflict with char $ac_func (); below.
37073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37074 <limits.h> exists even on freestanding compilers. */
37077 # include <limits.h>
37079 # include <assert.h>
37084 /* Override any gcc2 internal prototype to avoid an error. */
37089 /* We use char because int might match the return type of a gcc2
37090 builtin and then its argument prototype would still apply. */
37092 /* The GNU C library defines this for functions which it implements
37093 to always fail with ENOSYS. Some functions are actually named
37094 something starting with __ and the normal name is an alias. */
37095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37098 char (*f) () = $ac_func;
37107 return f != $ac_func;
37112 rm -f conftest.$ac_objext conftest$ac_exeext
37113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37114 (eval $ac_link) 2>conftest.er1
37116 grep -v '^ *+' conftest.er1 >conftest.err
37118 cat conftest.err >&5
37119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37120 (exit $ac_status); } &&
37121 { ac_try='test -z "$ac_c_werror_flag"
37122 || test ! -s conftest.err'
37123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37124 (eval $ac_try) 2>&5
37126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37127 (exit $ac_status); }; } &&
37128 { ac_try='test -s conftest$ac_exeext'
37129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37130 (eval $ac_try) 2>&5
37132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37133 (exit $ac_status); }; }; then
37134 eval "$as_ac_var=yes"
37136 echo "$as_me: failed program was:" >&5
37137 sed 's/^/| /' conftest.$ac_ext >&5
37139 eval "$as_ac_var=no"
37141 rm -f conftest.err conftest.$ac_objext \
37142 conftest$ac_exeext conftest.$ac_ext
37144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37146 if test `eval echo '${'$as_ac_var'}'` = yes; then
37147 cat >>confdefs.h <<_ACEOF
37148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37150 ice_have_gettimeofday=yes
37154 if test "${ice_have_gettimeofday}" = yes; then
37155 echo "$as_me:$LINENO: checking for gettimeofday declaration in time.h sys/time.h" >&5
37156 echo $ECHO_N "checking for gettimeofday declaration in time.h sys/time.h... $ECHO_C" >&6
37157 if test "${ice_cv_have_gettimeofday_decl+set}" = set; then
37158 echo $ECHO_N "(cached) $ECHO_C" >&6
37161 ice_cv_have_gettimeofday_decl=no
37162 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37163 ice_re_word='(^|[^a-zA-Z0-9_])'
37164 for header in time.h sys/time.h; do
37165 # Check for ordinary declaration
37166 cat >conftest.$ac_ext <<_ACEOF
37169 cat confdefs.h >>conftest.$ac_ext
37170 cat >>conftest.$ac_ext <<_ACEOF
37171 /* end confdefs.h. */
37175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37176 $EGREP "${ice_re_word}gettimeofday[ ]*\(" >/dev/null 2>&1; then
37177 ice_cv_have_gettimeofday_decl=yes
37181 if test "$ice_cv_have_gettimeofday_decl" = yes; then
37184 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37185 cat >conftest.$ac_ext <<_ACEOF
37188 cat confdefs.h >>conftest.$ac_ext
37189 cat >>conftest.$ac_ext <<_ACEOF
37190 /* end confdefs.h. */
37194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37195 $EGREP "${ice_re_word}gettimeofday[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37196 ice_cv_have_gettimeofday_decl=yes
37200 if test "$ice_cv_have_gettimeofday_decl" = yes; then
37207 echo "$as_me:$LINENO: result: $ice_cv_have_gettimeofday_decl" >&5
37208 echo "${ECHO_T}$ice_cv_have_gettimeofday_decl" >&6
37209 if test "$ice_cv_have_gettimeofday_decl" = yes; then
37211 cat >>confdefs.h <<_ACEOF
37212 #define HAVE_GETTIMEOFDAY_DECL 1
37220 echo "$as_me:$LINENO: checking for gettimeofday number of arguments" >&5
37221 echo $ECHO_N "checking for gettimeofday number of arguments... $ECHO_C" >&6
37222 if test "${amanda_cv_gettimeofday_args+set}" = set; then
37223 echo $ECHO_N "(cached) $ECHO_C" >&6
37226 cat >conftest.$ac_ext <<_ACEOF
37229 cat confdefs.h >>conftest.$ac_ext
37230 cat >>conftest.$ac_ext <<_ACEOF
37231 /* end confdefs.h. */
37233 #ifdef TIME_WITH_SYS_TIME
37234 # include <sys/time.h>
37237 # ifdef HAVE_SYS_TIME_H
37238 # include <sys/time.h>
37248 struct timeval val;
37249 struct timezone zone;
37250 gettimeofday(&val, &zone);
37256 rm -f conftest.$ac_objext
37257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37258 (eval $ac_compile) 2>conftest.er1
37260 grep -v '^ *+' conftest.er1 >conftest.err
37262 cat conftest.err >&5
37263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37264 (exit $ac_status); } &&
37265 { ac_try='test -z "$ac_c_werror_flag"
37266 || test ! -s conftest.err'
37267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37268 (eval $ac_try) 2>&5
37270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37271 (exit $ac_status); }; } &&
37272 { ac_try='test -s conftest.$ac_objext'
37273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37274 (eval $ac_try) 2>&5
37276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37277 (exit $ac_status); }; }; then
37278 amanda_cv_gettimeofday_args=2
37280 echo "$as_me: failed program was:" >&5
37281 sed 's/^/| /' conftest.$ac_ext >&5
37283 amanda_cv_gettimeofday_args=1
37286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37290 echo "$as_me:$LINENO: result: $amanda_cv_gettimeofday_args" >&5
37291 echo "${ECHO_T}$amanda_cv_gettimeofday_args" >&6
37292 if test "$amanda_cv_gettimeofday_args" = 2; then
37294 cat >>confdefs.h <<\_ACEOF
37295 #define HAVE_TWO_ARG_GETTIMEOFDAY 1
37304 for ac_func in getvfsent initgroups isascii
37306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37307 echo "$as_me:$LINENO: checking for $ac_func" >&5
37308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37309 if eval "test \"\${$as_ac_var+set}\" = set"; then
37310 echo $ECHO_N "(cached) $ECHO_C" >&6
37312 cat >conftest.$ac_ext <<_ACEOF
37315 cat confdefs.h >>conftest.$ac_ext
37316 cat >>conftest.$ac_ext <<_ACEOF
37317 /* end confdefs.h. */
37318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37320 #define $ac_func innocuous_$ac_func
37322 /* System header to define __stub macros and hopefully few prototypes,
37323 which can conflict with char $ac_func (); below.
37324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37325 <limits.h> exists even on freestanding compilers. */
37328 # include <limits.h>
37330 # include <assert.h>
37335 /* Override any gcc2 internal prototype to avoid an error. */
37340 /* We use char because int might match the return type of a gcc2
37341 builtin and then its argument prototype would still apply. */
37343 /* The GNU C library defines this for functions which it implements
37344 to always fail with ENOSYS. Some functions are actually named
37345 something starting with __ and the normal name is an alias. */
37346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37349 char (*f) () = $ac_func;
37358 return f != $ac_func;
37363 rm -f conftest.$ac_objext conftest$ac_exeext
37364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37365 (eval $ac_link) 2>conftest.er1
37367 grep -v '^ *+' conftest.er1 >conftest.err
37369 cat conftest.err >&5
37370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37371 (exit $ac_status); } &&
37372 { ac_try='test -z "$ac_c_werror_flag"
37373 || test ! -s conftest.err'
37374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37375 (eval $ac_try) 2>&5
37377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37378 (exit $ac_status); }; } &&
37379 { ac_try='test -s conftest$ac_exeext'
37380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37381 (eval $ac_try) 2>&5
37383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37384 (exit $ac_status); }; }; then
37385 eval "$as_ac_var=yes"
37387 echo "$as_me: failed program was:" >&5
37388 sed 's/^/| /' conftest.$ac_ext >&5
37390 eval "$as_ac_var=no"
37392 rm -f conftest.err conftest.$ac_objext \
37393 conftest$ac_exeext conftest.$ac_ext
37395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37396 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37397 if test `eval echo '${'$as_ac_var'}'` = yes; then
37398 cat >>confdefs.h <<_ACEOF
37399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37406 ice_have_initgroups=no
37408 for ac_func in initgroups
37410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37411 echo "$as_me:$LINENO: checking for $ac_func" >&5
37412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37413 if eval "test \"\${$as_ac_var+set}\" = set"; then
37414 echo $ECHO_N "(cached) $ECHO_C" >&6
37416 cat >conftest.$ac_ext <<_ACEOF
37419 cat confdefs.h >>conftest.$ac_ext
37420 cat >>conftest.$ac_ext <<_ACEOF
37421 /* end confdefs.h. */
37422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37424 #define $ac_func innocuous_$ac_func
37426 /* System header to define __stub macros and hopefully few prototypes,
37427 which can conflict with char $ac_func (); below.
37428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37429 <limits.h> exists even on freestanding compilers. */
37432 # include <limits.h>
37434 # include <assert.h>
37439 /* Override any gcc2 internal prototype to avoid an error. */
37444 /* We use char because int might match the return type of a gcc2
37445 builtin and then its argument prototype would still apply. */
37447 /* The GNU C library defines this for functions which it implements
37448 to always fail with ENOSYS. Some functions are actually named
37449 something starting with __ and the normal name is an alias. */
37450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37453 char (*f) () = $ac_func;
37462 return f != $ac_func;
37467 rm -f conftest.$ac_objext conftest$ac_exeext
37468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37469 (eval $ac_link) 2>conftest.er1
37471 grep -v '^ *+' conftest.er1 >conftest.err
37473 cat conftest.err >&5
37474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37475 (exit $ac_status); } &&
37476 { ac_try='test -z "$ac_c_werror_flag"
37477 || test ! -s conftest.err'
37478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37479 (eval $ac_try) 2>&5
37481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37482 (exit $ac_status); }; } &&
37483 { ac_try='test -s conftest$ac_exeext'
37484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37485 (eval $ac_try) 2>&5
37487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37488 (exit $ac_status); }; }; then
37489 eval "$as_ac_var=yes"
37491 echo "$as_me: failed program was:" >&5
37492 sed 's/^/| /' conftest.$ac_ext >&5
37494 eval "$as_ac_var=no"
37496 rm -f conftest.err conftest.$ac_objext \
37497 conftest$ac_exeext conftest.$ac_ext
37499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37501 if test `eval echo '${'$as_ac_var'}'` = yes; then
37502 cat >>confdefs.h <<_ACEOF
37503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37505 ice_have_initgroups=yes
37509 if test "${ice_have_initgroups}" = yes; then
37510 echo "$as_me:$LINENO: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
37511 echo $ECHO_N "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... $ECHO_C" >&6
37512 if test "${ice_cv_have_initgroups_decl+set}" = set; then
37513 echo $ECHO_N "(cached) $ECHO_C" >&6
37516 ice_cv_have_initgroups_decl=no
37517 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37518 ice_re_word='(^|[^a-zA-Z0-9_])'
37519 for header in grp.h sys/types.h unistd.h libc.h; do
37520 # Check for ordinary declaration
37521 cat >conftest.$ac_ext <<_ACEOF
37524 cat confdefs.h >>conftest.$ac_ext
37525 cat >>conftest.$ac_ext <<_ACEOF
37526 /* end confdefs.h. */
37530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37531 $EGREP "${ice_re_word}initgroups[ ]*\(" >/dev/null 2>&1; then
37532 ice_cv_have_initgroups_decl=yes
37536 if test "$ice_cv_have_initgroups_decl" = yes; then
37539 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37540 cat >conftest.$ac_ext <<_ACEOF
37543 cat confdefs.h >>conftest.$ac_ext
37544 cat >>conftest.$ac_ext <<_ACEOF
37545 /* end confdefs.h. */
37549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37550 $EGREP "${ice_re_word}initgroups[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37551 ice_cv_have_initgroups_decl=yes
37555 if test "$ice_cv_have_initgroups_decl" = yes; then
37562 echo "$as_me:$LINENO: result: $ice_cv_have_initgroups_decl" >&5
37563 echo "${ECHO_T}$ice_cv_have_initgroups_decl" >&6
37564 if test "$ice_cv_have_initgroups_decl" = yes; then
37566 cat >>confdefs.h <<_ACEOF
37567 #define HAVE_INITGROUPS_DECL 1
37576 for ac_func in ioctl
37578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37579 echo "$as_me:$LINENO: checking for $ac_func" >&5
37580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37581 if eval "test \"\${$as_ac_var+set}\" = set"; then
37582 echo $ECHO_N "(cached) $ECHO_C" >&6
37584 cat >conftest.$ac_ext <<_ACEOF
37587 cat confdefs.h >>conftest.$ac_ext
37588 cat >>conftest.$ac_ext <<_ACEOF
37589 /* end confdefs.h. */
37590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37592 #define $ac_func innocuous_$ac_func
37594 /* System header to define __stub macros and hopefully few prototypes,
37595 which can conflict with char $ac_func (); below.
37596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37597 <limits.h> exists even on freestanding compilers. */
37600 # include <limits.h>
37602 # include <assert.h>
37607 /* Override any gcc2 internal prototype to avoid an error. */
37612 /* We use char because int might match the return type of a gcc2
37613 builtin and then its argument prototype would still apply. */
37615 /* The GNU C library defines this for functions which it implements
37616 to always fail with ENOSYS. Some functions are actually named
37617 something starting with __ and the normal name is an alias. */
37618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37621 char (*f) () = $ac_func;
37630 return f != $ac_func;
37635 rm -f conftest.$ac_objext conftest$ac_exeext
37636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37637 (eval $ac_link) 2>conftest.er1
37639 grep -v '^ *+' conftest.er1 >conftest.err
37641 cat conftest.err >&5
37642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37643 (exit $ac_status); } &&
37644 { ac_try='test -z "$ac_c_werror_flag"
37645 || test ! -s conftest.err'
37646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37647 (eval $ac_try) 2>&5
37649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37650 (exit $ac_status); }; } &&
37651 { ac_try='test -s conftest$ac_exeext'
37652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37653 (eval $ac_try) 2>&5
37655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37656 (exit $ac_status); }; }; then
37657 eval "$as_ac_var=yes"
37659 echo "$as_me: failed program was:" >&5
37660 sed 's/^/| /' conftest.$ac_ext >&5
37662 eval "$as_ac_var=no"
37664 rm -f conftest.err conftest.$ac_objext \
37665 conftest$ac_exeext conftest.$ac_ext
37667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37668 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37669 if test `eval echo '${'$as_ac_var'}'` = yes; then
37670 cat >>confdefs.h <<_ACEOF
37671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37677 if test "${ice_have_ioctl}" = yes; then
37678 echo "$as_me:$LINENO: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
37679 echo $ECHO_N "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... $ECHO_C" >&6
37680 if test "${ice_cv_have_ioctl_decl+set}" = set; then
37681 echo $ECHO_N "(cached) $ECHO_C" >&6
37684 ice_cv_have_ioctl_decl=no
37685 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37686 ice_re_word='(^|[^a-zA-Z0-9_])'
37687 for header in sys/ioctl.h unistd.h libc.h; do
37688 # Check for ordinary declaration
37689 cat >conftest.$ac_ext <<_ACEOF
37692 cat confdefs.h >>conftest.$ac_ext
37693 cat >>conftest.$ac_ext <<_ACEOF
37694 /* end confdefs.h. */
37698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37699 $EGREP "${ice_re_word}ioctl[ ]*\(" >/dev/null 2>&1; then
37700 ice_cv_have_ioctl_decl=yes
37704 if test "$ice_cv_have_ioctl_decl" = yes; then
37707 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37708 cat >conftest.$ac_ext <<_ACEOF
37711 cat confdefs.h >>conftest.$ac_ext
37712 cat >>conftest.$ac_ext <<_ACEOF
37713 /* end confdefs.h. */
37717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37718 $EGREP "${ice_re_word}ioctl[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37719 ice_cv_have_ioctl_decl=yes
37723 if test "$ice_cv_have_ioctl_decl" = yes; then
37730 echo "$as_me:$LINENO: result: $ice_cv_have_ioctl_decl" >&5
37731 echo "${ECHO_T}$ice_cv_have_ioctl_decl" >&6
37732 if test "$ice_cv_have_ioctl_decl" = yes; then
37734 cat >>confdefs.h <<_ACEOF
37735 #define HAVE_IOCTL_DECL 1
37744 for ac_func in listen
37746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37747 echo "$as_me:$LINENO: checking for $ac_func" >&5
37748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37749 if eval "test \"\${$as_ac_var+set}\" = set"; then
37750 echo $ECHO_N "(cached) $ECHO_C" >&6
37752 cat >conftest.$ac_ext <<_ACEOF
37755 cat confdefs.h >>conftest.$ac_ext
37756 cat >>conftest.$ac_ext <<_ACEOF
37757 /* end confdefs.h. */
37758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37760 #define $ac_func innocuous_$ac_func
37762 /* System header to define __stub macros and hopefully few prototypes,
37763 which can conflict with char $ac_func (); below.
37764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37765 <limits.h> exists even on freestanding compilers. */
37768 # include <limits.h>
37770 # include <assert.h>
37775 /* Override any gcc2 internal prototype to avoid an error. */
37780 /* We use char because int might match the return type of a gcc2
37781 builtin and then its argument prototype would still apply. */
37783 /* The GNU C library defines this for functions which it implements
37784 to always fail with ENOSYS. Some functions are actually named
37785 something starting with __ and the normal name is an alias. */
37786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37789 char (*f) () = $ac_func;
37798 return f != $ac_func;
37803 rm -f conftest.$ac_objext conftest$ac_exeext
37804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37805 (eval $ac_link) 2>conftest.er1
37807 grep -v '^ *+' conftest.er1 >conftest.err
37809 cat conftest.err >&5
37810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37811 (exit $ac_status); } &&
37812 { ac_try='test -z "$ac_c_werror_flag"
37813 || test ! -s conftest.err'
37814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37815 (eval $ac_try) 2>&5
37817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37818 (exit $ac_status); }; } &&
37819 { ac_try='test -s conftest$ac_exeext'
37820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37821 (eval $ac_try) 2>&5
37823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37824 (exit $ac_status); }; }; then
37825 eval "$as_ac_var=yes"
37827 echo "$as_me: failed program was:" >&5
37828 sed 's/^/| /' conftest.$ac_ext >&5
37830 eval "$as_ac_var=no"
37832 rm -f conftest.err conftest.$ac_objext \
37833 conftest$ac_exeext conftest.$ac_ext
37835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37837 if test `eval echo '${'$as_ac_var'}'` = yes; then
37838 cat >>confdefs.h <<_ACEOF
37839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37841 ice_have_listen=yes
37845 if test "${ice_have_listen}" = yes; then
37846 echo "$as_me:$LINENO: checking for listen declaration in sys/types.h sys/socket.h" >&5
37847 echo $ECHO_N "checking for listen declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
37848 if test "${ice_cv_have_listen_decl+set}" = set; then
37849 echo $ECHO_N "(cached) $ECHO_C" >&6
37852 ice_cv_have_listen_decl=no
37853 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37854 ice_re_word='(^|[^a-zA-Z0-9_])'
37855 for header in sys/types.h sys/socket.h; do
37856 # Check for ordinary declaration
37857 cat >conftest.$ac_ext <<_ACEOF
37860 cat confdefs.h >>conftest.$ac_ext
37861 cat >>conftest.$ac_ext <<_ACEOF
37862 /* end confdefs.h. */
37866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37867 $EGREP "${ice_re_word}listen[ ]*\(" >/dev/null 2>&1; then
37868 ice_cv_have_listen_decl=yes
37872 if test "$ice_cv_have_listen_decl" = yes; then
37875 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37876 cat >conftest.$ac_ext <<_ACEOF
37879 cat confdefs.h >>conftest.$ac_ext
37880 cat >>conftest.$ac_ext <<_ACEOF
37881 /* end confdefs.h. */
37885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37886 $EGREP "${ice_re_word}listen[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37887 ice_cv_have_listen_decl=yes
37891 if test "$ice_cv_have_listen_decl" = yes; then
37898 echo "$as_me:$LINENO: result: $ice_cv_have_listen_decl" >&5
37899 echo "${ECHO_T}$ice_cv_have_listen_decl" >&6
37900 if test "$ice_cv_have_listen_decl" = yes; then
37902 cat >>confdefs.h <<_ACEOF
37903 #define HAVE_LISTEN_DECL 1
37912 for ac_func in lstat
37914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37915 echo "$as_me:$LINENO: checking for $ac_func" >&5
37916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37917 if eval "test \"\${$as_ac_var+set}\" = set"; then
37918 echo $ECHO_N "(cached) $ECHO_C" >&6
37920 cat >conftest.$ac_ext <<_ACEOF
37923 cat confdefs.h >>conftest.$ac_ext
37924 cat >>conftest.$ac_ext <<_ACEOF
37925 /* end confdefs.h. */
37926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37928 #define $ac_func innocuous_$ac_func
37930 /* System header to define __stub macros and hopefully few prototypes,
37931 which can conflict with char $ac_func (); below.
37932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37933 <limits.h> exists even on freestanding compilers. */
37936 # include <limits.h>
37938 # include <assert.h>
37943 /* Override any gcc2 internal prototype to avoid an error. */
37948 /* We use char because int might match the return type of a gcc2
37949 builtin and then its argument prototype would still apply. */
37951 /* The GNU C library defines this for functions which it implements
37952 to always fail with ENOSYS. Some functions are actually named
37953 something starting with __ and the normal name is an alias. */
37954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37957 char (*f) () = $ac_func;
37966 return f != $ac_func;
37971 rm -f conftest.$ac_objext conftest$ac_exeext
37972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37973 (eval $ac_link) 2>conftest.er1
37975 grep -v '^ *+' conftest.er1 >conftest.err
37977 cat conftest.err >&5
37978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37979 (exit $ac_status); } &&
37980 { ac_try='test -z "$ac_c_werror_flag"
37981 || test ! -s conftest.err'
37982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37983 (eval $ac_try) 2>&5
37985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37986 (exit $ac_status); }; } &&
37987 { ac_try='test -s conftest$ac_exeext'
37988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37989 (eval $ac_try) 2>&5
37991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37992 (exit $ac_status); }; }; then
37993 eval "$as_ac_var=yes"
37995 echo "$as_me: failed program was:" >&5
37996 sed 's/^/| /' conftest.$ac_ext >&5
37998 eval "$as_ac_var=no"
38000 rm -f conftest.err conftest.$ac_objext \
38001 conftest$ac_exeext conftest.$ac_ext
38003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38004 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38005 if test `eval echo '${'$as_ac_var'}'` = yes; then
38006 cat >>confdefs.h <<_ACEOF
38007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38013 if test "${ice_have_lstat}" = yes; then
38014 echo "$as_me:$LINENO: checking for lstat declaration in sys/types.h sys/stat.h" >&5
38015 echo $ECHO_N "checking for lstat declaration in sys/types.h sys/stat.h... $ECHO_C" >&6
38016 if test "${ice_cv_have_lstat_decl+set}" = set; then
38017 echo $ECHO_N "(cached) $ECHO_C" >&6
38020 ice_cv_have_lstat_decl=no
38021 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38022 ice_re_word='(^|[^a-zA-Z0-9_])'
38023 for header in sys/types.h sys/stat.h; do
38024 # Check for ordinary declaration
38025 cat >conftest.$ac_ext <<_ACEOF
38028 cat confdefs.h >>conftest.$ac_ext
38029 cat >>conftest.$ac_ext <<_ACEOF
38030 /* end confdefs.h. */
38034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38035 $EGREP "${ice_re_word}lstat[ ]*\(" >/dev/null 2>&1; then
38036 ice_cv_have_lstat_decl=yes
38040 if test "$ice_cv_have_lstat_decl" = yes; then
38043 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38044 cat >conftest.$ac_ext <<_ACEOF
38047 cat confdefs.h >>conftest.$ac_ext
38048 cat >>conftest.$ac_ext <<_ACEOF
38049 /* end confdefs.h. */
38053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38054 $EGREP "${ice_re_word}lstat[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38055 ice_cv_have_lstat_decl=yes
38059 if test "$ice_cv_have_lstat_decl" = yes; then
38066 echo "$as_me:$LINENO: result: $ice_cv_have_lstat_decl" >&5
38067 echo "${ECHO_T}$ice_cv_have_lstat_decl" >&6
38068 if test "$ice_cv_have_lstat_decl" = yes; then
38070 cat >>confdefs.h <<_ACEOF
38071 #define HAVE_LSTAT_DECL 1
38080 for ac_func in malloc
38082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38083 echo "$as_me:$LINENO: checking for $ac_func" >&5
38084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38085 if eval "test \"\${$as_ac_var+set}\" = set"; then
38086 echo $ECHO_N "(cached) $ECHO_C" >&6
38088 cat >conftest.$ac_ext <<_ACEOF
38091 cat confdefs.h >>conftest.$ac_ext
38092 cat >>conftest.$ac_ext <<_ACEOF
38093 /* end confdefs.h. */
38094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38096 #define $ac_func innocuous_$ac_func
38098 /* System header to define __stub macros and hopefully few prototypes,
38099 which can conflict with char $ac_func (); below.
38100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38101 <limits.h> exists even on freestanding compilers. */
38104 # include <limits.h>
38106 # include <assert.h>
38111 /* Override any gcc2 internal prototype to avoid an error. */
38116 /* We use char because int might match the return type of a gcc2
38117 builtin and then its argument prototype would still apply. */
38119 /* The GNU C library defines this for functions which it implements
38120 to always fail with ENOSYS. Some functions are actually named
38121 something starting with __ and the normal name is an alias. */
38122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38125 char (*f) () = $ac_func;
38134 return f != $ac_func;
38139 rm -f conftest.$ac_objext conftest$ac_exeext
38140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38141 (eval $ac_link) 2>conftest.er1
38143 grep -v '^ *+' conftest.er1 >conftest.err
38145 cat conftest.err >&5
38146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38147 (exit $ac_status); } &&
38148 { ac_try='test -z "$ac_c_werror_flag"
38149 || test ! -s conftest.err'
38150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38151 (eval $ac_try) 2>&5
38153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38154 (exit $ac_status); }; } &&
38155 { ac_try='test -s conftest$ac_exeext'
38156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38157 (eval $ac_try) 2>&5
38159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38160 (exit $ac_status); }; }; then
38161 eval "$as_ac_var=yes"
38163 echo "$as_me: failed program was:" >&5
38164 sed 's/^/| /' conftest.$ac_ext >&5
38166 eval "$as_ac_var=no"
38168 rm -f conftest.err conftest.$ac_objext \
38169 conftest$ac_exeext conftest.$ac_ext
38171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38173 if test `eval echo '${'$as_ac_var'}'` = yes; then
38174 cat >>confdefs.h <<_ACEOF
38175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38177 ice_have_malloc=yes
38181 if test "${ice_have_malloc}" = yes; then
38182 echo "$as_me:$LINENO: checking for malloc declaration in stdlib.h" >&5
38183 echo $ECHO_N "checking for malloc declaration in stdlib.h... $ECHO_C" >&6
38184 if test "${ice_cv_have_malloc_decl+set}" = set; then
38185 echo $ECHO_N "(cached) $ECHO_C" >&6
38188 ice_cv_have_malloc_decl=no
38189 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38190 ice_re_word='(^|[^a-zA-Z0-9_])'
38191 for header in stdlib.h; do
38192 # Check for ordinary declaration
38193 cat >conftest.$ac_ext <<_ACEOF
38196 cat confdefs.h >>conftest.$ac_ext
38197 cat >>conftest.$ac_ext <<_ACEOF
38198 /* end confdefs.h. */
38202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38203 $EGREP "${ice_re_word}malloc[ ]*\(" >/dev/null 2>&1; then
38204 ice_cv_have_malloc_decl=yes
38208 if test "$ice_cv_have_malloc_decl" = yes; then
38211 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38212 cat >conftest.$ac_ext <<_ACEOF
38215 cat confdefs.h >>conftest.$ac_ext
38216 cat >>conftest.$ac_ext <<_ACEOF
38217 /* end confdefs.h. */
38221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38222 $EGREP "${ice_re_word}malloc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38223 ice_cv_have_malloc_decl=yes
38227 if test "$ice_cv_have_malloc_decl" = yes; then
38234 echo "$as_me:$LINENO: result: $ice_cv_have_malloc_decl" >&5
38235 echo "${ECHO_T}$ice_cv_have_malloc_decl" >&6
38236 if test "$ice_cv_have_malloc_decl" = yes; then
38238 cat >>confdefs.h <<_ACEOF
38239 #define HAVE_MALLOC_DECL 1
38246 for ac_func in memmove
38248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38249 echo "$as_me:$LINENO: checking for $ac_func" >&5
38250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38251 if eval "test \"\${$as_ac_var+set}\" = set"; then
38252 echo $ECHO_N "(cached) $ECHO_C" >&6
38254 cat >conftest.$ac_ext <<_ACEOF
38257 cat confdefs.h >>conftest.$ac_ext
38258 cat >>conftest.$ac_ext <<_ACEOF
38259 /* end confdefs.h. */
38260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38262 #define $ac_func innocuous_$ac_func
38264 /* System header to define __stub macros and hopefully few prototypes,
38265 which can conflict with char $ac_func (); below.
38266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38267 <limits.h> exists even on freestanding compilers. */
38270 # include <limits.h>
38272 # include <assert.h>
38277 /* Override any gcc2 internal prototype to avoid an error. */
38282 /* We use char because int might match the return type of a gcc2
38283 builtin and then its argument prototype would still apply. */
38285 /* The GNU C library defines this for functions which it implements
38286 to always fail with ENOSYS. Some functions are actually named
38287 something starting with __ and the normal name is an alias. */
38288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38291 char (*f) () = $ac_func;
38300 return f != $ac_func;
38305 rm -f conftest.$ac_objext conftest$ac_exeext
38306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38307 (eval $ac_link) 2>conftest.er1
38309 grep -v '^ *+' conftest.er1 >conftest.err
38311 cat conftest.err >&5
38312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38313 (exit $ac_status); } &&
38314 { ac_try='test -z "$ac_c_werror_flag"
38315 || test ! -s conftest.err'
38316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38317 (eval $ac_try) 2>&5
38319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38320 (exit $ac_status); }; } &&
38321 { ac_try='test -s conftest$ac_exeext'
38322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38323 (eval $ac_try) 2>&5
38325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38326 (exit $ac_status); }; }; then
38327 eval "$as_ac_var=yes"
38329 echo "$as_me: failed program was:" >&5
38330 sed 's/^/| /' conftest.$ac_ext >&5
38332 eval "$as_ac_var=no"
38334 rm -f conftest.err conftest.$ac_objext \
38335 conftest$ac_exeext conftest.$ac_ext
38337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38338 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38339 if test `eval echo '${'$as_ac_var'}'` = yes; then
38340 cat >>confdefs.h <<_ACEOF
38341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38346 "$ac_func.$ac_objext" | \
38347 *" $ac_func.$ac_objext" | \
38348 "$ac_func.$ac_objext "* | \
38349 *" $ac_func.$ac_objext "* ) ;;
38350 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
38358 ice_have_memmove=no
38360 for ac_func in memmove
38362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38363 echo "$as_me:$LINENO: checking for $ac_func" >&5
38364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38365 if eval "test \"\${$as_ac_var+set}\" = set"; then
38366 echo $ECHO_N "(cached) $ECHO_C" >&6
38368 cat >conftest.$ac_ext <<_ACEOF
38371 cat confdefs.h >>conftest.$ac_ext
38372 cat >>conftest.$ac_ext <<_ACEOF
38373 /* end confdefs.h. */
38374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38376 #define $ac_func innocuous_$ac_func
38378 /* System header to define __stub macros and hopefully few prototypes,
38379 which can conflict with char $ac_func (); below.
38380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38381 <limits.h> exists even on freestanding compilers. */
38384 # include <limits.h>
38386 # include <assert.h>
38391 /* Override any gcc2 internal prototype to avoid an error. */
38396 /* We use char because int might match the return type of a gcc2
38397 builtin and then its argument prototype would still apply. */
38399 /* The GNU C library defines this for functions which it implements
38400 to always fail with ENOSYS. Some functions are actually named
38401 something starting with __ and the normal name is an alias. */
38402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38405 char (*f) () = $ac_func;
38414 return f != $ac_func;
38419 rm -f conftest.$ac_objext conftest$ac_exeext
38420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38421 (eval $ac_link) 2>conftest.er1
38423 grep -v '^ *+' conftest.er1 >conftest.err
38425 cat conftest.err >&5
38426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38427 (exit $ac_status); } &&
38428 { ac_try='test -z "$ac_c_werror_flag"
38429 || test ! -s conftest.err'
38430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38431 (eval $ac_try) 2>&5
38433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38434 (exit $ac_status); }; } &&
38435 { ac_try='test -s conftest$ac_exeext'
38436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38437 (eval $ac_try) 2>&5
38439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38440 (exit $ac_status); }; }; then
38441 eval "$as_ac_var=yes"
38443 echo "$as_me: failed program was:" >&5
38444 sed 's/^/| /' conftest.$ac_ext >&5
38446 eval "$as_ac_var=no"
38448 rm -f conftest.err conftest.$ac_objext \
38449 conftest$ac_exeext conftest.$ac_ext
38451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38452 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38453 if test `eval echo '${'$as_ac_var'}'` = yes; then
38454 cat >>confdefs.h <<_ACEOF
38455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38457 ice_have_memmove=yes
38461 if test "${ice_have_memmove}" = yes; then
38462 echo "$as_me:$LINENO: checking for memmove declaration in string.h strings.h" >&5
38463 echo $ECHO_N "checking for memmove declaration in string.h strings.h... $ECHO_C" >&6
38464 if test "${ice_cv_have_memmove_decl+set}" = set; then
38465 echo $ECHO_N "(cached) $ECHO_C" >&6
38468 ice_cv_have_memmove_decl=no
38469 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38470 ice_re_word='(^|[^a-zA-Z0-9_])'
38471 for header in string.h strings.h; do
38472 # Check for ordinary declaration
38473 cat >conftest.$ac_ext <<_ACEOF
38476 cat confdefs.h >>conftest.$ac_ext
38477 cat >>conftest.$ac_ext <<_ACEOF
38478 /* end confdefs.h. */
38482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38483 $EGREP "${ice_re_word}memmove[ ]*\(" >/dev/null 2>&1; then
38484 ice_cv_have_memmove_decl=yes
38488 if test "$ice_cv_have_memmove_decl" = yes; then
38491 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38492 cat >conftest.$ac_ext <<_ACEOF
38495 cat confdefs.h >>conftest.$ac_ext
38496 cat >>conftest.$ac_ext <<_ACEOF
38497 /* end confdefs.h. */
38501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38502 $EGREP "${ice_re_word}memmove[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38503 ice_cv_have_memmove_decl=yes
38507 if test "$ice_cv_have_memmove_decl" = yes; then
38514 echo "$as_me:$LINENO: result: $ice_cv_have_memmove_decl" >&5
38515 echo "${ECHO_T}$ice_cv_have_memmove_decl" >&6
38516 if test "$ice_cv_have_memmove_decl" = yes; then
38518 cat >>confdefs.h <<_ACEOF
38519 #define HAVE_MEMMOVE_DECL 1
38528 for ac_func in memset
38530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38531 echo "$as_me:$LINENO: checking for $ac_func" >&5
38532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38533 if eval "test \"\${$as_ac_var+set}\" = set"; then
38534 echo $ECHO_N "(cached) $ECHO_C" >&6
38536 cat >conftest.$ac_ext <<_ACEOF
38539 cat confdefs.h >>conftest.$ac_ext
38540 cat >>conftest.$ac_ext <<_ACEOF
38541 /* end confdefs.h. */
38542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38544 #define $ac_func innocuous_$ac_func
38546 /* System header to define __stub macros and hopefully few prototypes,
38547 which can conflict with char $ac_func (); below.
38548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38549 <limits.h> exists even on freestanding compilers. */
38552 # include <limits.h>
38554 # include <assert.h>
38559 /* Override any gcc2 internal prototype to avoid an error. */
38564 /* We use char because int might match the return type of a gcc2
38565 builtin and then its argument prototype would still apply. */
38567 /* The GNU C library defines this for functions which it implements
38568 to always fail with ENOSYS. Some functions are actually named
38569 something starting with __ and the normal name is an alias. */
38570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38573 char (*f) () = $ac_func;
38582 return f != $ac_func;
38587 rm -f conftest.$ac_objext conftest$ac_exeext
38588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38589 (eval $ac_link) 2>conftest.er1
38591 grep -v '^ *+' conftest.er1 >conftest.err
38593 cat conftest.err >&5
38594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38595 (exit $ac_status); } &&
38596 { ac_try='test -z "$ac_c_werror_flag"
38597 || test ! -s conftest.err'
38598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38599 (eval $ac_try) 2>&5
38601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38602 (exit $ac_status); }; } &&
38603 { ac_try='test -s conftest$ac_exeext'
38604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38605 (eval $ac_try) 2>&5
38607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38608 (exit $ac_status); }; }; then
38609 eval "$as_ac_var=yes"
38611 echo "$as_me: failed program was:" >&5
38612 sed 's/^/| /' conftest.$ac_ext >&5
38614 eval "$as_ac_var=no"
38616 rm -f conftest.err conftest.$ac_objext \
38617 conftest$ac_exeext conftest.$ac_ext
38619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38620 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38621 if test `eval echo '${'$as_ac_var'}'` = yes; then
38622 cat >>confdefs.h <<_ACEOF
38623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38625 ice_have_memset=yes
38629 if test "${ice_have_memset}" = yes; then
38630 echo "$as_me:$LINENO: checking for memset declaration in string.h strings.h" >&5
38631 echo $ECHO_N "checking for memset declaration in string.h strings.h... $ECHO_C" >&6
38632 if test "${ice_cv_have_memset_decl+set}" = set; then
38633 echo $ECHO_N "(cached) $ECHO_C" >&6
38636 ice_cv_have_memset_decl=no
38637 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38638 ice_re_word='(^|[^a-zA-Z0-9_])'
38639 for header in string.h strings.h; do
38640 # Check for ordinary declaration
38641 cat >conftest.$ac_ext <<_ACEOF
38644 cat confdefs.h >>conftest.$ac_ext
38645 cat >>conftest.$ac_ext <<_ACEOF
38646 /* end confdefs.h. */
38650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38651 $EGREP "${ice_re_word}memset[ ]*\(" >/dev/null 2>&1; then
38652 ice_cv_have_memset_decl=yes
38656 if test "$ice_cv_have_memset_decl" = yes; then
38659 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38660 cat >conftest.$ac_ext <<_ACEOF
38663 cat confdefs.h >>conftest.$ac_ext
38664 cat >>conftest.$ac_ext <<_ACEOF
38665 /* end confdefs.h. */
38669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38670 $EGREP "${ice_re_word}memset[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38671 ice_cv_have_memset_decl=yes
38675 if test "$ice_cv_have_memset_decl" = yes; then
38682 echo "$as_me:$LINENO: result: $ice_cv_have_memset_decl" >&5
38683 echo "${ECHO_T}$ice_cv_have_memset_decl" >&6
38684 if test "$ice_cv_have_memset_decl" = yes; then
38686 cat >>confdefs.h <<_ACEOF
38687 #define HAVE_MEMSET_DECL 1
38694 for ac_func in mkdir
38696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38697 echo "$as_me:$LINENO: checking for $ac_func" >&5
38698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38699 if eval "test \"\${$as_ac_var+set}\" = set"; then
38700 echo $ECHO_N "(cached) $ECHO_C" >&6
38702 cat >conftest.$ac_ext <<_ACEOF
38705 cat confdefs.h >>conftest.$ac_ext
38706 cat >>conftest.$ac_ext <<_ACEOF
38707 /* end confdefs.h. */
38708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38710 #define $ac_func innocuous_$ac_func
38712 /* System header to define __stub macros and hopefully few prototypes,
38713 which can conflict with char $ac_func (); below.
38714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38715 <limits.h> exists even on freestanding compilers. */
38718 # include <limits.h>
38720 # include <assert.h>
38725 /* Override any gcc2 internal prototype to avoid an error. */
38730 /* We use char because int might match the return type of a gcc2
38731 builtin and then its argument prototype would still apply. */
38733 /* The GNU C library defines this for functions which it implements
38734 to always fail with ENOSYS. Some functions are actually named
38735 something starting with __ and the normal name is an alias. */
38736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38739 char (*f) () = $ac_func;
38748 return f != $ac_func;
38753 rm -f conftest.$ac_objext conftest$ac_exeext
38754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38755 (eval $ac_link) 2>conftest.er1
38757 grep -v '^ *+' conftest.er1 >conftest.err
38759 cat conftest.err >&5
38760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38761 (exit $ac_status); } &&
38762 { ac_try='test -z "$ac_c_werror_flag"
38763 || test ! -s conftest.err'
38764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38765 (eval $ac_try) 2>&5
38767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38768 (exit $ac_status); }; } &&
38769 { ac_try='test -s conftest$ac_exeext'
38770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38771 (eval $ac_try) 2>&5
38773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38774 (exit $ac_status); }; }; then
38775 eval "$as_ac_var=yes"
38777 echo "$as_me: failed program was:" >&5
38778 sed 's/^/| /' conftest.$ac_ext >&5
38780 eval "$as_ac_var=no"
38782 rm -f conftest.err conftest.$ac_objext \
38783 conftest$ac_exeext conftest.$ac_ext
38785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38786 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38787 if test `eval echo '${'$as_ac_var'}'` = yes; then
38788 cat >>confdefs.h <<_ACEOF
38789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38798 for ac_func in mktemp
38800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38801 echo "$as_me:$LINENO: checking for $ac_func" >&5
38802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38803 if eval "test \"\${$as_ac_var+set}\" = set"; then
38804 echo $ECHO_N "(cached) $ECHO_C" >&6
38806 cat >conftest.$ac_ext <<_ACEOF
38809 cat confdefs.h >>conftest.$ac_ext
38810 cat >>conftest.$ac_ext <<_ACEOF
38811 /* end confdefs.h. */
38812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38814 #define $ac_func innocuous_$ac_func
38816 /* System header to define __stub macros and hopefully few prototypes,
38817 which can conflict with char $ac_func (); below.
38818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38819 <limits.h> exists even on freestanding compilers. */
38822 # include <limits.h>
38824 # include <assert.h>
38829 /* Override any gcc2 internal prototype to avoid an error. */
38834 /* We use char because int might match the return type of a gcc2
38835 builtin and then its argument prototype would still apply. */
38837 /* The GNU C library defines this for functions which it implements
38838 to always fail with ENOSYS. Some functions are actually named
38839 something starting with __ and the normal name is an alias. */
38840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38843 char (*f) () = $ac_func;
38852 return f != $ac_func;
38857 rm -f conftest.$ac_objext conftest$ac_exeext
38858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38859 (eval $ac_link) 2>conftest.er1
38861 grep -v '^ *+' conftest.er1 >conftest.err
38863 cat conftest.err >&5
38864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38865 (exit $ac_status); } &&
38866 { ac_try='test -z "$ac_c_werror_flag"
38867 || test ! -s conftest.err'
38868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38869 (eval $ac_try) 2>&5
38871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38872 (exit $ac_status); }; } &&
38873 { ac_try='test -s conftest$ac_exeext'
38874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38875 (eval $ac_try) 2>&5
38877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38878 (exit $ac_status); }; }; then
38879 eval "$as_ac_var=yes"
38881 echo "$as_me: failed program was:" >&5
38882 sed 's/^/| /' conftest.$ac_ext >&5
38884 eval "$as_ac_var=no"
38886 rm -f conftest.err conftest.$ac_objext \
38887 conftest$ac_exeext conftest.$ac_ext
38889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38891 if test `eval echo '${'$as_ac_var'}'` = yes; then
38892 cat >>confdefs.h <<_ACEOF
38893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38895 ice_have_mktemp=yes
38899 if test "${ice_have_mktemp}" = yes; then
38900 echo "$as_me:$LINENO: checking for mktemp declaration in stdlib.h" >&5
38901 echo $ECHO_N "checking for mktemp declaration in stdlib.h... $ECHO_C" >&6
38902 if test "${ice_cv_have_mktemp_decl+set}" = set; then
38903 echo $ECHO_N "(cached) $ECHO_C" >&6
38906 ice_cv_have_mktemp_decl=no
38907 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38908 ice_re_word='(^|[^a-zA-Z0-9_])'
38909 for header in stdlib.h; do
38910 # Check for ordinary declaration
38911 cat >conftest.$ac_ext <<_ACEOF
38914 cat confdefs.h >>conftest.$ac_ext
38915 cat >>conftest.$ac_ext <<_ACEOF
38916 /* end confdefs.h. */
38920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38921 $EGREP "${ice_re_word}mktemp[ ]*\(" >/dev/null 2>&1; then
38922 ice_cv_have_mktemp_decl=yes
38926 if test "$ice_cv_have_mktemp_decl" = yes; then
38929 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38930 cat >conftest.$ac_ext <<_ACEOF
38933 cat confdefs.h >>conftest.$ac_ext
38934 cat >>conftest.$ac_ext <<_ACEOF
38935 /* end confdefs.h. */
38939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38940 $EGREP "${ice_re_word}mktemp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38941 ice_cv_have_mktemp_decl=yes
38945 if test "$ice_cv_have_mktemp_decl" = yes; then
38952 echo "$as_me:$LINENO: result: $ice_cv_have_mktemp_decl" >&5
38953 echo "${ECHO_T}$ice_cv_have_mktemp_decl" >&6
38954 if test "$ice_cv_have_mktemp_decl" = yes; then
38956 cat >>confdefs.h <<_ACEOF
38957 #define HAVE_MKTEMP_DECL 1
38964 for ac_func in mktime
38966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38967 echo "$as_me:$LINENO: checking for $ac_func" >&5
38968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38969 if eval "test \"\${$as_ac_var+set}\" = set"; then
38970 echo $ECHO_N "(cached) $ECHO_C" >&6
38972 cat >conftest.$ac_ext <<_ACEOF
38975 cat confdefs.h >>conftest.$ac_ext
38976 cat >>conftest.$ac_ext <<_ACEOF
38977 /* end confdefs.h. */
38978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38980 #define $ac_func innocuous_$ac_func
38982 /* System header to define __stub macros and hopefully few prototypes,
38983 which can conflict with char $ac_func (); below.
38984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38985 <limits.h> exists even on freestanding compilers. */
38988 # include <limits.h>
38990 # include <assert.h>
38995 /* Override any gcc2 internal prototype to avoid an error. */
39000 /* We use char because int might match the return type of a gcc2
39001 builtin and then its argument prototype would still apply. */
39003 /* The GNU C library defines this for functions which it implements
39004 to always fail with ENOSYS. Some functions are actually named
39005 something starting with __ and the normal name is an alias. */
39006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39009 char (*f) () = $ac_func;
39018 return f != $ac_func;
39023 rm -f conftest.$ac_objext conftest$ac_exeext
39024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39025 (eval $ac_link) 2>conftest.er1
39027 grep -v '^ *+' conftest.er1 >conftest.err
39029 cat conftest.err >&5
39030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39031 (exit $ac_status); } &&
39032 { ac_try='test -z "$ac_c_werror_flag"
39033 || test ! -s conftest.err'
39034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39035 (eval $ac_try) 2>&5
39037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39038 (exit $ac_status); }; } &&
39039 { ac_try='test -s conftest$ac_exeext'
39040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39041 (eval $ac_try) 2>&5
39043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39044 (exit $ac_status); }; }; then
39045 eval "$as_ac_var=yes"
39047 echo "$as_me: failed program was:" >&5
39048 sed 's/^/| /' conftest.$ac_ext >&5
39050 eval "$as_ac_var=no"
39052 rm -f conftest.err conftest.$ac_objext \
39053 conftest$ac_exeext conftest.$ac_ext
39055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39056 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39057 if test `eval echo '${'$as_ac_var'}'` = yes; then
39058 cat >>confdefs.h <<_ACEOF
39059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39064 "$ac_func.$ac_objext" | \
39065 *" $ac_func.$ac_objext" | \
39066 "$ac_func.$ac_objext "* | \
39067 *" $ac_func.$ac_objext "* ) ;;
39068 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
39078 for ac_func in mktime
39080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39081 echo "$as_me:$LINENO: checking for $ac_func" >&5
39082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39083 if eval "test \"\${$as_ac_var+set}\" = set"; then
39084 echo $ECHO_N "(cached) $ECHO_C" >&6
39086 cat >conftest.$ac_ext <<_ACEOF
39089 cat confdefs.h >>conftest.$ac_ext
39090 cat >>conftest.$ac_ext <<_ACEOF
39091 /* end confdefs.h. */
39092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39094 #define $ac_func innocuous_$ac_func
39096 /* System header to define __stub macros and hopefully few prototypes,
39097 which can conflict with char $ac_func (); below.
39098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39099 <limits.h> exists even on freestanding compilers. */
39102 # include <limits.h>
39104 # include <assert.h>
39109 /* Override any gcc2 internal prototype to avoid an error. */
39114 /* We use char because int might match the return type of a gcc2
39115 builtin and then its argument prototype would still apply. */
39117 /* The GNU C library defines this for functions which it implements
39118 to always fail with ENOSYS. Some functions are actually named
39119 something starting with __ and the normal name is an alias. */
39120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39123 char (*f) () = $ac_func;
39132 return f != $ac_func;
39137 rm -f conftest.$ac_objext conftest$ac_exeext
39138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39139 (eval $ac_link) 2>conftest.er1
39141 grep -v '^ *+' conftest.er1 >conftest.err
39143 cat conftest.err >&5
39144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39145 (exit $ac_status); } &&
39146 { ac_try='test -z "$ac_c_werror_flag"
39147 || test ! -s conftest.err'
39148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39149 (eval $ac_try) 2>&5
39151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39152 (exit $ac_status); }; } &&
39153 { ac_try='test -s conftest$ac_exeext'
39154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39155 (eval $ac_try) 2>&5
39157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39158 (exit $ac_status); }; }; then
39159 eval "$as_ac_var=yes"
39161 echo "$as_me: failed program was:" >&5
39162 sed 's/^/| /' conftest.$ac_ext >&5
39164 eval "$as_ac_var=no"
39166 rm -f conftest.err conftest.$ac_objext \
39167 conftest$ac_exeext conftest.$ac_ext
39169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39170 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39171 if test `eval echo '${'$as_ac_var'}'` = yes; then
39172 cat >>confdefs.h <<_ACEOF
39173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39175 ice_have_mktime=yes
39179 if test "${ice_have_mktime}" = yes; then
39180 echo "$as_me:$LINENO: checking for mktime declaration in time.h sys/time.h" >&5
39181 echo $ECHO_N "checking for mktime declaration in time.h sys/time.h... $ECHO_C" >&6
39182 if test "${ice_cv_have_mktime_decl+set}" = set; then
39183 echo $ECHO_N "(cached) $ECHO_C" >&6
39186 ice_cv_have_mktime_decl=no
39187 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39188 ice_re_word='(^|[^a-zA-Z0-9_])'
39189 for header in time.h sys/time.h; do
39190 # Check for ordinary declaration
39191 cat >conftest.$ac_ext <<_ACEOF
39194 cat confdefs.h >>conftest.$ac_ext
39195 cat >>conftest.$ac_ext <<_ACEOF
39196 /* end confdefs.h. */
39200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39201 $EGREP "${ice_re_word}mktime[ ]*\(" >/dev/null 2>&1; then
39202 ice_cv_have_mktime_decl=yes
39206 if test "$ice_cv_have_mktime_decl" = yes; then
39209 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39210 cat >conftest.$ac_ext <<_ACEOF
39213 cat confdefs.h >>conftest.$ac_ext
39214 cat >>conftest.$ac_ext <<_ACEOF
39215 /* end confdefs.h. */
39219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39220 $EGREP "${ice_re_word}mktime[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39221 ice_cv_have_mktime_decl=yes
39225 if test "$ice_cv_have_mktime_decl" = yes; then
39232 echo "$as_me:$LINENO: result: $ice_cv_have_mktime_decl" >&5
39233 echo "${ECHO_T}$ice_cv_have_mktime_decl" >&6
39234 if test "$ice_cv_have_mktime_decl" = yes; then
39236 cat >>confdefs.h <<_ACEOF
39237 #define HAVE_MKTIME_DECL 1
39245 for ac_header in stdlib.h unistd.h
39247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39249 echo "$as_me:$LINENO: checking for $ac_header" >&5
39250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39252 echo $ECHO_N "(cached) $ECHO_C" >&6
39254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39257 # Is the header compilable?
39258 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39260 cat >conftest.$ac_ext <<_ACEOF
39263 cat confdefs.h >>conftest.$ac_ext
39264 cat >>conftest.$ac_ext <<_ACEOF
39265 /* end confdefs.h. */
39266 $ac_includes_default
39267 #include <$ac_header>
39269 rm -f conftest.$ac_objext
39270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39271 (eval $ac_compile) 2>conftest.er1
39273 grep -v '^ *+' conftest.er1 >conftest.err
39275 cat conftest.err >&5
39276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39277 (exit $ac_status); } &&
39278 { ac_try='test -z "$ac_c_werror_flag"
39279 || test ! -s conftest.err'
39280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39281 (eval $ac_try) 2>&5
39283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39284 (exit $ac_status); }; } &&
39285 { ac_try='test -s conftest.$ac_objext'
39286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39287 (eval $ac_try) 2>&5
39289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39290 (exit $ac_status); }; }; then
39291 ac_header_compiler=yes
39293 echo "$as_me: failed program was:" >&5
39294 sed 's/^/| /' conftest.$ac_ext >&5
39296 ac_header_compiler=no
39298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39299 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39300 echo "${ECHO_T}$ac_header_compiler" >&6
39302 # Is the header present?
39303 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39304 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39305 cat >conftest.$ac_ext <<_ACEOF
39308 cat confdefs.h >>conftest.$ac_ext
39309 cat >>conftest.$ac_ext <<_ACEOF
39310 /* end confdefs.h. */
39311 #include <$ac_header>
39313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39316 grep -v '^ *+' conftest.er1 >conftest.err
39318 cat conftest.err >&5
39319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39320 (exit $ac_status); } >/dev/null; then
39321 if test -s conftest.err; then
39322 ac_cpp_err=$ac_c_preproc_warn_flag
39323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39330 if test -z "$ac_cpp_err"; then
39331 ac_header_preproc=yes
39333 echo "$as_me: failed program was:" >&5
39334 sed 's/^/| /' conftest.$ac_ext >&5
39336 ac_header_preproc=no
39338 rm -f conftest.err conftest.$ac_ext
39339 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39340 echo "${ECHO_T}$ac_header_preproc" >&6
39342 # So? What about this header?
39343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39349 ac_header_preproc=yes
39352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39355 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39359 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
39360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39366 ## ------------------------------------------ ##
39367 ## Report this to the AC_PACKAGE_NAME lists. ##
39368 ## ------------------------------------------ ##
39371 sed "s/^/$as_me: WARNING: /" >&2
39374 echo "$as_me:$LINENO: checking for $ac_header" >&5
39375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39377 echo $ECHO_N "(cached) $ECHO_C" >&6
39379 eval "$as_ac_Header=\$ac_header_preproc"
39381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39386 cat >>confdefs.h <<_ACEOF
39387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39395 for ac_func in getpagesize
39397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39398 echo "$as_me:$LINENO: checking for $ac_func" >&5
39399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39400 if eval "test \"\${$as_ac_var+set}\" = set"; then
39401 echo $ECHO_N "(cached) $ECHO_C" >&6
39403 cat >conftest.$ac_ext <<_ACEOF
39406 cat confdefs.h >>conftest.$ac_ext
39407 cat >>conftest.$ac_ext <<_ACEOF
39408 /* end confdefs.h. */
39409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39411 #define $ac_func innocuous_$ac_func
39413 /* System header to define __stub macros and hopefully few prototypes,
39414 which can conflict with char $ac_func (); below.
39415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39416 <limits.h> exists even on freestanding compilers. */
39419 # include <limits.h>
39421 # include <assert.h>
39426 /* Override any gcc2 internal prototype to avoid an error. */
39431 /* We use char because int might match the return type of a gcc2
39432 builtin and then its argument prototype would still apply. */
39434 /* The GNU C library defines this for functions which it implements
39435 to always fail with ENOSYS. Some functions are actually named
39436 something starting with __ and the normal name is an alias. */
39437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39440 char (*f) () = $ac_func;
39449 return f != $ac_func;
39454 rm -f conftest.$ac_objext conftest$ac_exeext
39455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39456 (eval $ac_link) 2>conftest.er1
39458 grep -v '^ *+' conftest.er1 >conftest.err
39460 cat conftest.err >&5
39461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39462 (exit $ac_status); } &&
39463 { ac_try='test -z "$ac_c_werror_flag"
39464 || test ! -s conftest.err'
39465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39466 (eval $ac_try) 2>&5
39468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39469 (exit $ac_status); }; } &&
39470 { ac_try='test -s conftest$ac_exeext'
39471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39472 (eval $ac_try) 2>&5
39474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39475 (exit $ac_status); }; }; then
39476 eval "$as_ac_var=yes"
39478 echo "$as_me: failed program was:" >&5
39479 sed 's/^/| /' conftest.$ac_ext >&5
39481 eval "$as_ac_var=no"
39483 rm -f conftest.err conftest.$ac_objext \
39484 conftest$ac_exeext conftest.$ac_ext
39486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39487 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39488 if test `eval echo '${'$as_ac_var'}'` = yes; then
39489 cat >>confdefs.h <<_ACEOF
39490 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39496 echo "$as_me:$LINENO: checking for working mmap" >&5
39497 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
39498 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
39499 echo $ECHO_N "(cached) $ECHO_C" >&6
39501 if test "$cross_compiling" = yes; then
39502 ac_cv_func_mmap_fixed_mapped=no
39504 cat >conftest.$ac_ext <<_ACEOF
39507 cat confdefs.h >>conftest.$ac_ext
39508 cat >>conftest.$ac_ext <<_ACEOF
39509 /* end confdefs.h. */
39510 $ac_includes_default
39511 /* malloc might have been renamed as rpl_malloc. */
39514 /* Thanks to Mike Haertel and Jim Avera for this test.
39515 Here is a matrix of mmap possibilities:
39516 mmap private not fixed
39517 mmap private fixed at somewhere currently unmapped
39518 mmap private fixed at somewhere already mapped
39519 mmap shared not fixed
39520 mmap shared fixed at somewhere currently unmapped
39521 mmap shared fixed at somewhere already mapped
39522 For private mappings, we should verify that changes cannot be read()
39523 back from the file, nor mmap's back from the file at a different
39524 address. (There have been systems where private was not correctly
39525 implemented like the infamous i386 svr4.0, and systems where the
39526 VM page cache was not coherent with the file system buffer cache
39527 like early versions of FreeBSD and possibly contemporary NetBSD.)
39528 For shared mappings, we should conversely verify that changes get
39529 propagated back to all the places they're supposed to be.
39531 Grep wants private fixed already mapped.
39532 The main things grep needs to know about mmap are:
39533 * does it exist and is it safe to write into the mmap'd area
39534 * how to use it (BSD variants) */
39537 #include <sys/mman.h>
39539 #if !STDC_HEADERS && !HAVE_STDLIB_H
39543 /* This mess was copied from the GNU getpagesize.h. */
39544 #if !HAVE_GETPAGESIZE
39545 /* Assume that all systems that can run configure have sys/param.h. */
39546 # if !HAVE_SYS_PARAM_H
39547 # define HAVE_SYS_PARAM_H 1
39550 # ifdef _SC_PAGESIZE
39551 # define getpagesize() sysconf(_SC_PAGESIZE)
39552 # else /* no _SC_PAGESIZE */
39553 # if HAVE_SYS_PARAM_H
39554 # include <sys/param.h>
39555 # ifdef EXEC_PAGESIZE
39556 # define getpagesize() EXEC_PAGESIZE
39557 # else /* no EXEC_PAGESIZE */
39559 # define getpagesize() NBPG * CLSIZE
39562 # endif /* no CLSIZE */
39563 # else /* no NBPG */
39565 # define getpagesize() NBPC
39566 # else /* no NBPC */
39568 # define getpagesize() PAGESIZE
39569 # endif /* PAGESIZE */
39570 # endif /* no NBPC */
39571 # endif /* no NBPG */
39572 # endif /* no EXEC_PAGESIZE */
39573 # else /* no HAVE_SYS_PARAM_H */
39574 # define getpagesize() 8192 /* punt totally */
39575 # endif /* no HAVE_SYS_PARAM_H */
39576 # endif /* no _SC_PAGESIZE */
39578 #endif /* no HAVE_GETPAGESIZE */
39583 char *data, *data2, *data3;
39587 pagesize = getpagesize ();
39589 /* First, make a file with some known garbage in it. */
39590 data = (char *) malloc (pagesize);
39593 for (i = 0; i < pagesize; ++i)
39594 *(data + i) = rand ();
39596 fd = creat ("conftest.mmap", 0600);
39599 if (write (fd, data, pagesize) != pagesize)
39603 /* Next, try to mmap the file at a fixed address which already has
39604 something else allocated at it. If we can, also make sure that
39605 we see the same garbage. */
39606 fd = open ("conftest.mmap", O_RDWR);
39609 data2 = (char *) malloc (2 * pagesize);
39612 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
39613 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
39614 MAP_PRIVATE | MAP_FIXED, fd, 0L))
39616 for (i = 0; i < pagesize; ++i)
39617 if (*(data + i) != *(data2 + i))
39620 /* Finally, make sure that changes to the mapped area do not
39621 percolate back to the file as seen by read(). (This is a bug on
39622 some variants of i386 svr4.0.) */
39623 for (i = 0; i < pagesize; ++i)
39624 *(data2 + i) = *(data2 + i) + 1;
39625 data3 = (char *) malloc (pagesize);
39628 if (read (fd, data3, pagesize) != pagesize)
39630 for (i = 0; i < pagesize; ++i)
39631 if (*(data + i) != *(data3 + i))
39637 rm -f conftest$ac_exeext
39638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39639 (eval $ac_link) 2>&5
39641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39644 (eval $ac_try) 2>&5
39646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39647 (exit $ac_status); }; }; then
39648 ac_cv_func_mmap_fixed_mapped=yes
39650 echo "$as_me: program exited with status $ac_status" >&5
39651 echo "$as_me: failed program was:" >&5
39652 sed 's/^/| /' conftest.$ac_ext >&5
39654 ( exit $ac_status )
39655 ac_cv_func_mmap_fixed_mapped=no
39657 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39660 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
39661 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
39662 if test $ac_cv_func_mmap_fixed_mapped = yes; then
39664 cat >>confdefs.h <<\_ACEOF
39665 #define HAVE_MMAP 1
39669 rm -f conftest.mmap
39672 for ac_func in on_exit
39674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39675 echo "$as_me:$LINENO: checking for $ac_func" >&5
39676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39677 if eval "test \"\${$as_ac_var+set}\" = set"; then
39678 echo $ECHO_N "(cached) $ECHO_C" >&6
39680 cat >conftest.$ac_ext <<_ACEOF
39683 cat confdefs.h >>conftest.$ac_ext
39684 cat >>conftest.$ac_ext <<_ACEOF
39685 /* end confdefs.h. */
39686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39688 #define $ac_func innocuous_$ac_func
39690 /* System header to define __stub macros and hopefully few prototypes,
39691 which can conflict with char $ac_func (); below.
39692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39693 <limits.h> exists even on freestanding compilers. */
39696 # include <limits.h>
39698 # include <assert.h>
39703 /* Override any gcc2 internal prototype to avoid an error. */
39708 /* We use char because int might match the return type of a gcc2
39709 builtin and then its argument prototype would still apply. */
39711 /* The GNU C library defines this for functions which it implements
39712 to always fail with ENOSYS. Some functions are actually named
39713 something starting with __ and the normal name is an alias. */
39714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39717 char (*f) () = $ac_func;
39726 return f != $ac_func;
39731 rm -f conftest.$ac_objext conftest$ac_exeext
39732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39733 (eval $ac_link) 2>conftest.er1
39735 grep -v '^ *+' conftest.er1 >conftest.err
39737 cat conftest.err >&5
39738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39739 (exit $ac_status); } &&
39740 { ac_try='test -z "$ac_c_werror_flag"
39741 || test ! -s conftest.err'
39742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39743 (eval $ac_try) 2>&5
39745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39746 (exit $ac_status); }; } &&
39747 { ac_try='test -s conftest$ac_exeext'
39748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39749 (eval $ac_try) 2>&5
39751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39752 (exit $ac_status); }; }; then
39753 eval "$as_ac_var=yes"
39755 echo "$as_me: failed program was:" >&5
39756 sed 's/^/| /' conftest.$ac_ext >&5
39758 eval "$as_ac_var=no"
39760 rm -f conftest.err conftest.$ac_objext \
39761 conftest$ac_exeext conftest.$ac_ext
39763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39765 if test `eval echo '${'$as_ac_var'}'` = yes; then
39766 cat >>confdefs.h <<_ACEOF
39767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39774 ice_have_openlog=no
39776 for ac_func in openlog
39778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39779 echo "$as_me:$LINENO: checking for $ac_func" >&5
39780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39781 if eval "test \"\${$as_ac_var+set}\" = set"; then
39782 echo $ECHO_N "(cached) $ECHO_C" >&6
39784 cat >conftest.$ac_ext <<_ACEOF
39787 cat confdefs.h >>conftest.$ac_ext
39788 cat >>conftest.$ac_ext <<_ACEOF
39789 /* end confdefs.h. */
39790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39792 #define $ac_func innocuous_$ac_func
39794 /* System header to define __stub macros and hopefully few prototypes,
39795 which can conflict with char $ac_func (); below.
39796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39797 <limits.h> exists even on freestanding compilers. */
39800 # include <limits.h>
39802 # include <assert.h>
39807 /* Override any gcc2 internal prototype to avoid an error. */
39812 /* We use char because int might match the return type of a gcc2
39813 builtin and then its argument prototype would still apply. */
39815 /* The GNU C library defines this for functions which it implements
39816 to always fail with ENOSYS. Some functions are actually named
39817 something starting with __ and the normal name is an alias. */
39818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39821 char (*f) () = $ac_func;
39830 return f != $ac_func;
39835 rm -f conftest.$ac_objext conftest$ac_exeext
39836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39837 (eval $ac_link) 2>conftest.er1
39839 grep -v '^ *+' conftest.er1 >conftest.err
39841 cat conftest.err >&5
39842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39843 (exit $ac_status); } &&
39844 { ac_try='test -z "$ac_c_werror_flag"
39845 || test ! -s conftest.err'
39846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39847 (eval $ac_try) 2>&5
39849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39850 (exit $ac_status); }; } &&
39851 { ac_try='test -s conftest$ac_exeext'
39852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39853 (eval $ac_try) 2>&5
39855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39856 (exit $ac_status); }; }; then
39857 eval "$as_ac_var=yes"
39859 echo "$as_me: failed program was:" >&5
39860 sed 's/^/| /' conftest.$ac_ext >&5
39862 eval "$as_ac_var=no"
39864 rm -f conftest.err conftest.$ac_objext \
39865 conftest$ac_exeext conftest.$ac_ext
39867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39869 if test `eval echo '${'$as_ac_var'}'` = yes; then
39870 cat >>confdefs.h <<_ACEOF
39871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39873 ice_have_openlog=yes
39877 if test "${ice_have_openlog}" = yes; then
39878 echo "$as_me:$LINENO: checking for openlog declaration in syslog.h" >&5
39879 echo $ECHO_N "checking for openlog declaration in syslog.h... $ECHO_C" >&6
39880 if test "${ice_cv_have_openlog_decl+set}" = set; then
39881 echo $ECHO_N "(cached) $ECHO_C" >&6
39884 ice_cv_have_openlog_decl=no
39885 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39886 ice_re_word='(^|[^a-zA-Z0-9_])'
39887 for header in syslog.h; do
39888 # Check for ordinary declaration
39889 cat >conftest.$ac_ext <<_ACEOF
39892 cat confdefs.h >>conftest.$ac_ext
39893 cat >>conftest.$ac_ext <<_ACEOF
39894 /* end confdefs.h. */
39898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39899 $EGREP "${ice_re_word}openlog[ ]*\(" >/dev/null 2>&1; then
39900 ice_cv_have_openlog_decl=yes
39904 if test "$ice_cv_have_openlog_decl" = yes; then
39907 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39908 cat >conftest.$ac_ext <<_ACEOF
39911 cat confdefs.h >>conftest.$ac_ext
39912 cat >>conftest.$ac_ext <<_ACEOF
39913 /* end confdefs.h. */
39917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39918 $EGREP "${ice_re_word}openlog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39919 ice_cv_have_openlog_decl=yes
39923 if test "$ice_cv_have_openlog_decl" = yes; then
39930 echo "$as_me:$LINENO: result: $ice_cv_have_openlog_decl" >&5
39931 echo "${ECHO_T}$ice_cv_have_openlog_decl" >&6
39932 if test "$ice_cv_have_openlog_decl" = yes; then
39934 cat >>confdefs.h <<_ACEOF
39935 #define HAVE_OPENLOG_DECL 1
39944 for ac_func in pclose
39946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39947 echo "$as_me:$LINENO: checking for $ac_func" >&5
39948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39949 if eval "test \"\${$as_ac_var+set}\" = set"; then
39950 echo $ECHO_N "(cached) $ECHO_C" >&6
39952 cat >conftest.$ac_ext <<_ACEOF
39955 cat confdefs.h >>conftest.$ac_ext
39956 cat >>conftest.$ac_ext <<_ACEOF
39957 /* end confdefs.h. */
39958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39960 #define $ac_func innocuous_$ac_func
39962 /* System header to define __stub macros and hopefully few prototypes,
39963 which can conflict with char $ac_func (); below.
39964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39965 <limits.h> exists even on freestanding compilers. */
39968 # include <limits.h>
39970 # include <assert.h>
39975 /* Override any gcc2 internal prototype to avoid an error. */
39980 /* We use char because int might match the return type of a gcc2
39981 builtin and then its argument prototype would still apply. */
39983 /* The GNU C library defines this for functions which it implements
39984 to always fail with ENOSYS. Some functions are actually named
39985 something starting with __ and the normal name is an alias. */
39986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39989 char (*f) () = $ac_func;
39998 return f != $ac_func;
40003 rm -f conftest.$ac_objext conftest$ac_exeext
40004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40005 (eval $ac_link) 2>conftest.er1
40007 grep -v '^ *+' conftest.er1 >conftest.err
40009 cat conftest.err >&5
40010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40011 (exit $ac_status); } &&
40012 { ac_try='test -z "$ac_c_werror_flag"
40013 || test ! -s conftest.err'
40014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40015 (eval $ac_try) 2>&5
40017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40018 (exit $ac_status); }; } &&
40019 { ac_try='test -s conftest$ac_exeext'
40020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40021 (eval $ac_try) 2>&5
40023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40024 (exit $ac_status); }; }; then
40025 eval "$as_ac_var=yes"
40027 echo "$as_me: failed program was:" >&5
40028 sed 's/^/| /' conftest.$ac_ext >&5
40030 eval "$as_ac_var=no"
40032 rm -f conftest.err conftest.$ac_objext \
40033 conftest$ac_exeext conftest.$ac_ext
40035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40037 if test `eval echo '${'$as_ac_var'}'` = yes; then
40038 cat >>confdefs.h <<_ACEOF
40039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40041 ice_have_pclose=yes
40045 if test "${ice_have_pclose}" = yes; then
40046 echo "$as_me:$LINENO: checking for pclose declaration in stdio.h" >&5
40047 echo $ECHO_N "checking for pclose declaration in stdio.h... $ECHO_C" >&6
40048 if test "${ice_cv_have_pclose_decl+set}" = set; then
40049 echo $ECHO_N "(cached) $ECHO_C" >&6
40052 ice_cv_have_pclose_decl=no
40053 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40054 ice_re_word='(^|[^a-zA-Z0-9_])'
40055 for header in stdio.h; do
40056 # Check for ordinary declaration
40057 cat >conftest.$ac_ext <<_ACEOF
40060 cat confdefs.h >>conftest.$ac_ext
40061 cat >>conftest.$ac_ext <<_ACEOF
40062 /* end confdefs.h. */
40066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40067 $EGREP "${ice_re_word}pclose[ ]*\(" >/dev/null 2>&1; then
40068 ice_cv_have_pclose_decl=yes
40072 if test "$ice_cv_have_pclose_decl" = yes; then
40075 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40076 cat >conftest.$ac_ext <<_ACEOF
40079 cat confdefs.h >>conftest.$ac_ext
40080 cat >>conftest.$ac_ext <<_ACEOF
40081 /* end confdefs.h. */
40085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40086 $EGREP "${ice_re_word}pclose[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40087 ice_cv_have_pclose_decl=yes
40091 if test "$ice_cv_have_pclose_decl" = yes; then
40098 echo "$as_me:$LINENO: result: $ice_cv_have_pclose_decl" >&5
40099 echo "${ECHO_T}$ice_cv_have_pclose_decl" >&6
40100 if test "$ice_cv_have_pclose_decl" = yes; then
40102 cat >>confdefs.h <<_ACEOF
40103 #define HAVE_PCLOSE_DECL 1
40112 for ac_func in perror
40114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40115 echo "$as_me:$LINENO: checking for $ac_func" >&5
40116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40117 if eval "test \"\${$as_ac_var+set}\" = set"; then
40118 echo $ECHO_N "(cached) $ECHO_C" >&6
40120 cat >conftest.$ac_ext <<_ACEOF
40123 cat confdefs.h >>conftest.$ac_ext
40124 cat >>conftest.$ac_ext <<_ACEOF
40125 /* end confdefs.h. */
40126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40128 #define $ac_func innocuous_$ac_func
40130 /* System header to define __stub macros and hopefully few prototypes,
40131 which can conflict with char $ac_func (); below.
40132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40133 <limits.h> exists even on freestanding compilers. */
40136 # include <limits.h>
40138 # include <assert.h>
40143 /* Override any gcc2 internal prototype to avoid an error. */
40148 /* We use char because int might match the return type of a gcc2
40149 builtin and then its argument prototype would still apply. */
40151 /* The GNU C library defines this for functions which it implements
40152 to always fail with ENOSYS. Some functions are actually named
40153 something starting with __ and the normal name is an alias. */
40154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40157 char (*f) () = $ac_func;
40166 return f != $ac_func;
40171 rm -f conftest.$ac_objext conftest$ac_exeext
40172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40173 (eval $ac_link) 2>conftest.er1
40175 grep -v '^ *+' conftest.er1 >conftest.err
40177 cat conftest.err >&5
40178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40179 (exit $ac_status); } &&
40180 { ac_try='test -z "$ac_c_werror_flag"
40181 || test ! -s conftest.err'
40182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40183 (eval $ac_try) 2>&5
40185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40186 (exit $ac_status); }; } &&
40187 { ac_try='test -s conftest$ac_exeext'
40188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40189 (eval $ac_try) 2>&5
40191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40192 (exit $ac_status); }; }; then
40193 eval "$as_ac_var=yes"
40195 echo "$as_me: failed program was:" >&5
40196 sed 's/^/| /' conftest.$ac_ext >&5
40198 eval "$as_ac_var=no"
40200 rm -f conftest.err conftest.$ac_objext \
40201 conftest$ac_exeext conftest.$ac_ext
40203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40205 if test `eval echo '${'$as_ac_var'}'` = yes; then
40206 cat >>confdefs.h <<_ACEOF
40207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40209 ice_have_perror=yes
40213 if test "${ice_have_perror}" = yes; then
40214 echo "$as_me:$LINENO: checking for perror declaration in stdio.h" >&5
40215 echo $ECHO_N "checking for perror declaration in stdio.h... $ECHO_C" >&6
40216 if test "${ice_cv_have_perror_decl+set}" = set; then
40217 echo $ECHO_N "(cached) $ECHO_C" >&6
40220 ice_cv_have_perror_decl=no
40221 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40222 ice_re_word='(^|[^a-zA-Z0-9_])'
40223 for header in stdio.h; do
40224 # Check for ordinary declaration
40225 cat >conftest.$ac_ext <<_ACEOF
40228 cat confdefs.h >>conftest.$ac_ext
40229 cat >>conftest.$ac_ext <<_ACEOF
40230 /* end confdefs.h. */
40234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40235 $EGREP "${ice_re_word}perror[ ]*\(" >/dev/null 2>&1; then
40236 ice_cv_have_perror_decl=yes
40240 if test "$ice_cv_have_perror_decl" = yes; then
40243 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40244 cat >conftest.$ac_ext <<_ACEOF
40247 cat confdefs.h >>conftest.$ac_ext
40248 cat >>conftest.$ac_ext <<_ACEOF
40249 /* end confdefs.h. */
40253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40254 $EGREP "${ice_re_word}perror[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40255 ice_cv_have_perror_decl=yes
40259 if test "$ice_cv_have_perror_decl" = yes; then
40266 echo "$as_me:$LINENO: result: $ice_cv_have_perror_decl" >&5
40267 echo "${ECHO_T}$ice_cv_have_perror_decl" >&6
40268 if test "$ice_cv_have_perror_decl" = yes; then
40270 cat >>confdefs.h <<_ACEOF
40271 #define HAVE_PERROR_DECL 1
40280 for ac_func in printf
40282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40283 echo "$as_me:$LINENO: checking for $ac_func" >&5
40284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40285 if eval "test \"\${$as_ac_var+set}\" = set"; then
40286 echo $ECHO_N "(cached) $ECHO_C" >&6
40288 cat >conftest.$ac_ext <<_ACEOF
40291 cat confdefs.h >>conftest.$ac_ext
40292 cat >>conftest.$ac_ext <<_ACEOF
40293 /* end confdefs.h. */
40294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40296 #define $ac_func innocuous_$ac_func
40298 /* System header to define __stub macros and hopefully few prototypes,
40299 which can conflict with char $ac_func (); below.
40300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40301 <limits.h> exists even on freestanding compilers. */
40304 # include <limits.h>
40306 # include <assert.h>
40311 /* Override any gcc2 internal prototype to avoid an error. */
40316 /* We use char because int might match the return type of a gcc2
40317 builtin and then its argument prototype would still apply. */
40319 /* The GNU C library defines this for functions which it implements
40320 to always fail with ENOSYS. Some functions are actually named
40321 something starting with __ and the normal name is an alias. */
40322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40325 char (*f) () = $ac_func;
40334 return f != $ac_func;
40339 rm -f conftest.$ac_objext conftest$ac_exeext
40340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40341 (eval $ac_link) 2>conftest.er1
40343 grep -v '^ *+' conftest.er1 >conftest.err
40345 cat conftest.err >&5
40346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40347 (exit $ac_status); } &&
40348 { ac_try='test -z "$ac_c_werror_flag"
40349 || test ! -s conftest.err'
40350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40351 (eval $ac_try) 2>&5
40353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40354 (exit $ac_status); }; } &&
40355 { ac_try='test -s conftest$ac_exeext'
40356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40357 (eval $ac_try) 2>&5
40359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40360 (exit $ac_status); }; }; then
40361 eval "$as_ac_var=yes"
40363 echo "$as_me: failed program was:" >&5
40364 sed 's/^/| /' conftest.$ac_ext >&5
40366 eval "$as_ac_var=no"
40368 rm -f conftest.err conftest.$ac_objext \
40369 conftest$ac_exeext conftest.$ac_ext
40371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40372 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40373 if test `eval echo '${'$as_ac_var'}'` = yes; then
40374 cat >>confdefs.h <<_ACEOF
40375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40377 ice_have_printf=yes
40381 if test "${ice_have_printf}" = yes; then
40382 echo "$as_me:$LINENO: checking for printf declaration in stdio.h" >&5
40383 echo $ECHO_N "checking for printf declaration in stdio.h... $ECHO_C" >&6
40384 if test "${ice_cv_have_printf_decl+set}" = set; then
40385 echo $ECHO_N "(cached) $ECHO_C" >&6
40388 ice_cv_have_printf_decl=no
40389 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40390 ice_re_word='(^|[^a-zA-Z0-9_])'
40391 for header in stdio.h; do
40392 # Check for ordinary declaration
40393 cat >conftest.$ac_ext <<_ACEOF
40396 cat confdefs.h >>conftest.$ac_ext
40397 cat >>conftest.$ac_ext <<_ACEOF
40398 /* end confdefs.h. */
40402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40403 $EGREP "${ice_re_word}printf[ ]*\(" >/dev/null 2>&1; then
40404 ice_cv_have_printf_decl=yes
40408 if test "$ice_cv_have_printf_decl" = yes; then
40411 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40412 cat >conftest.$ac_ext <<_ACEOF
40415 cat confdefs.h >>conftest.$ac_ext
40416 cat >>conftest.$ac_ext <<_ACEOF
40417 /* end confdefs.h. */
40421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40422 $EGREP "${ice_re_word}printf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40423 ice_cv_have_printf_decl=yes
40427 if test "$ice_cv_have_printf_decl" = yes; then
40434 echo "$as_me:$LINENO: result: $ice_cv_have_printf_decl" >&5
40435 echo "${ECHO_T}$ice_cv_have_printf_decl" >&6
40436 if test "$ice_cv_have_printf_decl" = yes; then
40438 cat >>confdefs.h <<_ACEOF
40439 #define HAVE_PRINTF_DECL 1
40446 for ac_func in putenv
40448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40449 echo "$as_me:$LINENO: checking for $ac_func" >&5
40450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40451 if eval "test \"\${$as_ac_var+set}\" = set"; then
40452 echo $ECHO_N "(cached) $ECHO_C" >&6
40454 cat >conftest.$ac_ext <<_ACEOF
40457 cat confdefs.h >>conftest.$ac_ext
40458 cat >>conftest.$ac_ext <<_ACEOF
40459 /* end confdefs.h. */
40460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40462 #define $ac_func innocuous_$ac_func
40464 /* System header to define __stub macros and hopefully few prototypes,
40465 which can conflict with char $ac_func (); below.
40466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40467 <limits.h> exists even on freestanding compilers. */
40470 # include <limits.h>
40472 # include <assert.h>
40477 /* Override any gcc2 internal prototype to avoid an error. */
40482 /* We use char because int might match the return type of a gcc2
40483 builtin and then its argument prototype would still apply. */
40485 /* The GNU C library defines this for functions which it implements
40486 to always fail with ENOSYS. Some functions are actually named
40487 something starting with __ and the normal name is an alias. */
40488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40491 char (*f) () = $ac_func;
40500 return f != $ac_func;
40505 rm -f conftest.$ac_objext conftest$ac_exeext
40506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40507 (eval $ac_link) 2>conftest.er1
40509 grep -v '^ *+' conftest.er1 >conftest.err
40511 cat conftest.err >&5
40512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40513 (exit $ac_status); } &&
40514 { ac_try='test -z "$ac_c_werror_flag"
40515 || test ! -s conftest.err'
40516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40517 (eval $ac_try) 2>&5
40519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40520 (exit $ac_status); }; } &&
40521 { ac_try='test -s conftest$ac_exeext'
40522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40523 (eval $ac_try) 2>&5
40525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40526 (exit $ac_status); }; }; then
40527 eval "$as_ac_var=yes"
40529 echo "$as_me: failed program was:" >&5
40530 sed 's/^/| /' conftest.$ac_ext >&5
40532 eval "$as_ac_var=no"
40534 rm -f conftest.err conftest.$ac_objext \
40535 conftest$ac_exeext conftest.$ac_ext
40537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40538 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40539 if test `eval echo '${'$as_ac_var'}'` = yes; then
40540 cat >>confdefs.h <<_ACEOF
40541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40550 for ac_func in puts
40552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40553 echo "$as_me:$LINENO: checking for $ac_func" >&5
40554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40555 if eval "test \"\${$as_ac_var+set}\" = set"; then
40556 echo $ECHO_N "(cached) $ECHO_C" >&6
40558 cat >conftest.$ac_ext <<_ACEOF
40561 cat confdefs.h >>conftest.$ac_ext
40562 cat >>conftest.$ac_ext <<_ACEOF
40563 /* end confdefs.h. */
40564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40566 #define $ac_func innocuous_$ac_func
40568 /* System header to define __stub macros and hopefully few prototypes,
40569 which can conflict with char $ac_func (); below.
40570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40571 <limits.h> exists even on freestanding compilers. */
40574 # include <limits.h>
40576 # include <assert.h>
40581 /* Override any gcc2 internal prototype to avoid an error. */
40586 /* We use char because int might match the return type of a gcc2
40587 builtin and then its argument prototype would still apply. */
40589 /* The GNU C library defines this for functions which it implements
40590 to always fail with ENOSYS. Some functions are actually named
40591 something starting with __ and the normal name is an alias. */
40592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40595 char (*f) () = $ac_func;
40604 return f != $ac_func;
40609 rm -f conftest.$ac_objext conftest$ac_exeext
40610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40611 (eval $ac_link) 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_exeext'
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 eval "$as_ac_var=yes"
40633 echo "$as_me: failed program was:" >&5
40634 sed 's/^/| /' conftest.$ac_ext >&5
40636 eval "$as_ac_var=no"
40638 rm -f conftest.err conftest.$ac_objext \
40639 conftest$ac_exeext conftest.$ac_ext
40641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40642 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40643 if test `eval echo '${'$as_ac_var'}'` = yes; then
40644 cat >>confdefs.h <<_ACEOF
40645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40651 if test "${ice_have_puts}" = yes; then
40652 echo "$as_me:$LINENO: checking for puts declaration in stdio.h" >&5
40653 echo $ECHO_N "checking for puts declaration in stdio.h... $ECHO_C" >&6
40654 if test "${ice_cv_have_puts_decl+set}" = set; then
40655 echo $ECHO_N "(cached) $ECHO_C" >&6
40658 ice_cv_have_puts_decl=no
40659 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40660 ice_re_word='(^|[^a-zA-Z0-9_])'
40661 for header in stdio.h; do
40662 # Check for ordinary declaration
40663 cat >conftest.$ac_ext <<_ACEOF
40666 cat confdefs.h >>conftest.$ac_ext
40667 cat >>conftest.$ac_ext <<_ACEOF
40668 /* end confdefs.h. */
40672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40673 $EGREP "${ice_re_word}puts[ ]*\(" >/dev/null 2>&1; then
40674 ice_cv_have_puts_decl=yes
40678 if test "$ice_cv_have_puts_decl" = yes; then
40681 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40682 cat >conftest.$ac_ext <<_ACEOF
40685 cat confdefs.h >>conftest.$ac_ext
40686 cat >>conftest.$ac_ext <<_ACEOF
40687 /* end confdefs.h. */
40691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40692 $EGREP "${ice_re_word}puts[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40693 ice_cv_have_puts_decl=yes
40697 if test "$ice_cv_have_puts_decl" = yes; then
40704 echo "$as_me:$LINENO: result: $ice_cv_have_puts_decl" >&5
40705 echo "${ECHO_T}$ice_cv_have_puts_decl" >&6
40706 if test "$ice_cv_have_puts_decl" = yes; then
40708 cat >>confdefs.h <<_ACEOF
40709 #define HAVE_PUTS_DECL 1
40716 ice_have_realloc=no
40718 for ac_func in realloc
40720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40721 echo "$as_me:$LINENO: checking for $ac_func" >&5
40722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40723 if eval "test \"\${$as_ac_var+set}\" = set"; then
40724 echo $ECHO_N "(cached) $ECHO_C" >&6
40726 cat >conftest.$ac_ext <<_ACEOF
40729 cat confdefs.h >>conftest.$ac_ext
40730 cat >>conftest.$ac_ext <<_ACEOF
40731 /* end confdefs.h. */
40732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40734 #define $ac_func innocuous_$ac_func
40736 /* System header to define __stub macros and hopefully few prototypes,
40737 which can conflict with char $ac_func (); below.
40738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40739 <limits.h> exists even on freestanding compilers. */
40742 # include <limits.h>
40744 # include <assert.h>
40749 /* Override any gcc2 internal prototype to avoid an error. */
40754 /* We use char because int might match the return type of a gcc2
40755 builtin and then its argument prototype would still apply. */
40757 /* The GNU C library defines this for functions which it implements
40758 to always fail with ENOSYS. Some functions are actually named
40759 something starting with __ and the normal name is an alias. */
40760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40763 char (*f) () = $ac_func;
40772 return f != $ac_func;
40777 rm -f conftest.$ac_objext conftest$ac_exeext
40778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40779 (eval $ac_link) 2>conftest.er1
40781 grep -v '^ *+' conftest.er1 >conftest.err
40783 cat conftest.err >&5
40784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40785 (exit $ac_status); } &&
40786 { ac_try='test -z "$ac_c_werror_flag"
40787 || test ! -s conftest.err'
40788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40789 (eval $ac_try) 2>&5
40791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40792 (exit $ac_status); }; } &&
40793 { ac_try='test -s conftest$ac_exeext'
40794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40795 (eval $ac_try) 2>&5
40797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40798 (exit $ac_status); }; }; then
40799 eval "$as_ac_var=yes"
40801 echo "$as_me: failed program was:" >&5
40802 sed 's/^/| /' conftest.$ac_ext >&5
40804 eval "$as_ac_var=no"
40806 rm -f conftest.err conftest.$ac_objext \
40807 conftest$ac_exeext conftest.$ac_ext
40809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40810 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40811 if test `eval echo '${'$as_ac_var'}'` = yes; then
40812 cat >>confdefs.h <<_ACEOF
40813 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40815 ice_have_realloc=yes
40819 if test "${ice_have_realloc}" = yes; then
40820 echo "$as_me:$LINENO: checking for realloc declaration in stdlib.h" >&5
40821 echo $ECHO_N "checking for realloc declaration in stdlib.h... $ECHO_C" >&6
40822 if test "${ice_cv_have_realloc_decl+set}" = set; then
40823 echo $ECHO_N "(cached) $ECHO_C" >&6
40826 ice_cv_have_realloc_decl=no
40827 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40828 ice_re_word='(^|[^a-zA-Z0-9_])'
40829 for header in stdlib.h; do
40830 # Check for ordinary declaration
40831 cat >conftest.$ac_ext <<_ACEOF
40834 cat confdefs.h >>conftest.$ac_ext
40835 cat >>conftest.$ac_ext <<_ACEOF
40836 /* end confdefs.h. */
40840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40841 $EGREP "${ice_re_word}realloc[ ]*\(" >/dev/null 2>&1; then
40842 ice_cv_have_realloc_decl=yes
40846 if test "$ice_cv_have_realloc_decl" = yes; then
40849 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40850 cat >conftest.$ac_ext <<_ACEOF
40853 cat confdefs.h >>conftest.$ac_ext
40854 cat >>conftest.$ac_ext <<_ACEOF
40855 /* end confdefs.h. */
40859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40860 $EGREP "${ice_re_word}realloc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40861 ice_cv_have_realloc_decl=yes
40865 if test "$ice_cv_have_realloc_decl" = yes; then
40872 echo "$as_me:$LINENO: result: $ice_cv_have_realloc_decl" >&5
40873 echo "${ECHO_T}$ice_cv_have_realloc_decl" >&6
40874 if test "$ice_cv_have_realloc_decl" = yes; then
40876 cat >>confdefs.h <<_ACEOF
40877 #define HAVE_REALLOC_DECL 1
40884 ice_have_recvfrom=no
40886 for ac_func in recvfrom
40888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40889 echo "$as_me:$LINENO: checking for $ac_func" >&5
40890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40891 if eval "test \"\${$as_ac_var+set}\" = set"; then
40892 echo $ECHO_N "(cached) $ECHO_C" >&6
40894 cat >conftest.$ac_ext <<_ACEOF
40897 cat confdefs.h >>conftest.$ac_ext
40898 cat >>conftest.$ac_ext <<_ACEOF
40899 /* end confdefs.h. */
40900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40902 #define $ac_func innocuous_$ac_func
40904 /* System header to define __stub macros and hopefully few prototypes,
40905 which can conflict with char $ac_func (); below.
40906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40907 <limits.h> exists even on freestanding compilers. */
40910 # include <limits.h>
40912 # include <assert.h>
40917 /* Override any gcc2 internal prototype to avoid an error. */
40922 /* We use char because int might match the return type of a gcc2
40923 builtin and then its argument prototype would still apply. */
40925 /* The GNU C library defines this for functions which it implements
40926 to always fail with ENOSYS. Some functions are actually named
40927 something starting with __ and the normal name is an alias. */
40928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40931 char (*f) () = $ac_func;
40940 return f != $ac_func;
40945 rm -f conftest.$ac_objext conftest$ac_exeext
40946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40947 (eval $ac_link) 2>conftest.er1
40949 grep -v '^ *+' conftest.er1 >conftest.err
40951 cat conftest.err >&5
40952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40953 (exit $ac_status); } &&
40954 { ac_try='test -z "$ac_c_werror_flag"
40955 || test ! -s conftest.err'
40956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40957 (eval $ac_try) 2>&5
40959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40960 (exit $ac_status); }; } &&
40961 { ac_try='test -s conftest$ac_exeext'
40962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40963 (eval $ac_try) 2>&5
40965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40966 (exit $ac_status); }; }; then
40967 eval "$as_ac_var=yes"
40969 echo "$as_me: failed program was:" >&5
40970 sed 's/^/| /' conftest.$ac_ext >&5
40972 eval "$as_ac_var=no"
40974 rm -f conftest.err conftest.$ac_objext \
40975 conftest$ac_exeext conftest.$ac_ext
40977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40979 if test `eval echo '${'$as_ac_var'}'` = yes; then
40980 cat >>confdefs.h <<_ACEOF
40981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40983 ice_have_recvfrom=yes
40987 if test "${ice_have_recvfrom}" = yes; then
40988 echo "$as_me:$LINENO: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
40989 echo $ECHO_N "checking for recvfrom declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
40990 if test "${ice_cv_have_recvfrom_decl+set}" = set; then
40991 echo $ECHO_N "(cached) $ECHO_C" >&6
40994 ice_cv_have_recvfrom_decl=no
40995 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40996 ice_re_word='(^|[^a-zA-Z0-9_])'
40997 for header in sys/types.h sys/socket.h; do
40998 # Check for ordinary declaration
40999 cat >conftest.$ac_ext <<_ACEOF
41002 cat confdefs.h >>conftest.$ac_ext
41003 cat >>conftest.$ac_ext <<_ACEOF
41004 /* end confdefs.h. */
41008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41009 $EGREP "${ice_re_word}recvfrom[ ]*\(" >/dev/null 2>&1; then
41010 ice_cv_have_recvfrom_decl=yes
41014 if test "$ice_cv_have_recvfrom_decl" = yes; then
41017 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41018 cat >conftest.$ac_ext <<_ACEOF
41021 cat confdefs.h >>conftest.$ac_ext
41022 cat >>conftest.$ac_ext <<_ACEOF
41023 /* end confdefs.h. */
41027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41028 $EGREP "${ice_re_word}recvfrom[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41029 ice_cv_have_recvfrom_decl=yes
41033 if test "$ice_cv_have_recvfrom_decl" = yes; then
41040 echo "$as_me:$LINENO: result: $ice_cv_have_recvfrom_decl" >&5
41041 echo "${ECHO_T}$ice_cv_have_recvfrom_decl" >&6
41042 if test "$ice_cv_have_recvfrom_decl" = yes; then
41044 cat >>confdefs.h <<_ACEOF
41045 #define HAVE_RECVFROM_DECL 1
41054 for ac_func in remove
41056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41057 echo "$as_me:$LINENO: checking for $ac_func" >&5
41058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41059 if eval "test \"\${$as_ac_var+set}\" = set"; then
41060 echo $ECHO_N "(cached) $ECHO_C" >&6
41062 cat >conftest.$ac_ext <<_ACEOF
41065 cat confdefs.h >>conftest.$ac_ext
41066 cat >>conftest.$ac_ext <<_ACEOF
41067 /* end confdefs.h. */
41068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41070 #define $ac_func innocuous_$ac_func
41072 /* System header to define __stub macros and hopefully few prototypes,
41073 which can conflict with char $ac_func (); below.
41074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41075 <limits.h> exists even on freestanding compilers. */
41078 # include <limits.h>
41080 # include <assert.h>
41085 /* Override any gcc2 internal prototype to avoid an error. */
41090 /* We use char because int might match the return type of a gcc2
41091 builtin and then its argument prototype would still apply. */
41093 /* The GNU C library defines this for functions which it implements
41094 to always fail with ENOSYS. Some functions are actually named
41095 something starting with __ and the normal name is an alias. */
41096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41099 char (*f) () = $ac_func;
41108 return f != $ac_func;
41113 rm -f conftest.$ac_objext conftest$ac_exeext
41114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41115 (eval $ac_link) 2>conftest.er1
41117 grep -v '^ *+' conftest.er1 >conftest.err
41119 cat conftest.err >&5
41120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41121 (exit $ac_status); } &&
41122 { ac_try='test -z "$ac_c_werror_flag"
41123 || test ! -s conftest.err'
41124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41125 (eval $ac_try) 2>&5
41127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41128 (exit $ac_status); }; } &&
41129 { ac_try='test -s conftest$ac_exeext'
41130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41131 (eval $ac_try) 2>&5
41133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41134 (exit $ac_status); }; }; then
41135 eval "$as_ac_var=yes"
41137 echo "$as_me: failed program was:" >&5
41138 sed 's/^/| /' conftest.$ac_ext >&5
41140 eval "$as_ac_var=no"
41142 rm -f conftest.err conftest.$ac_objext \
41143 conftest$ac_exeext conftest.$ac_ext
41145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41146 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41147 if test `eval echo '${'$as_ac_var'}'` = yes; then
41148 cat >>confdefs.h <<_ACEOF
41149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41151 ice_have_remove=yes
41155 if test "${ice_have_remove}" = yes; then
41156 echo "$as_me:$LINENO: checking for remove declaration in stdio.h" >&5
41157 echo $ECHO_N "checking for remove declaration in stdio.h... $ECHO_C" >&6
41158 if test "${ice_cv_have_remove_decl+set}" = set; then
41159 echo $ECHO_N "(cached) $ECHO_C" >&6
41162 ice_cv_have_remove_decl=no
41163 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41164 ice_re_word='(^|[^a-zA-Z0-9_])'
41165 for header in stdio.h; do
41166 # Check for ordinary declaration
41167 cat >conftest.$ac_ext <<_ACEOF
41170 cat confdefs.h >>conftest.$ac_ext
41171 cat >>conftest.$ac_ext <<_ACEOF
41172 /* end confdefs.h. */
41176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41177 $EGREP "${ice_re_word}remove[ ]*\(" >/dev/null 2>&1; then
41178 ice_cv_have_remove_decl=yes
41182 if test "$ice_cv_have_remove_decl" = yes; then
41185 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41186 cat >conftest.$ac_ext <<_ACEOF
41189 cat confdefs.h >>conftest.$ac_ext
41190 cat >>conftest.$ac_ext <<_ACEOF
41191 /* end confdefs.h. */
41195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41196 $EGREP "${ice_re_word}remove[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41197 ice_cv_have_remove_decl=yes
41201 if test "$ice_cv_have_remove_decl" = yes; then
41208 echo "$as_me:$LINENO: result: $ice_cv_have_remove_decl" >&5
41209 echo "${ECHO_T}$ice_cv_have_remove_decl" >&6
41210 if test "$ice_cv_have_remove_decl" = yes; then
41212 cat >>confdefs.h <<_ACEOF
41213 #define HAVE_REMOVE_DECL 1
41222 for ac_func in rename
41224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41225 echo "$as_me:$LINENO: checking for $ac_func" >&5
41226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41227 if eval "test \"\${$as_ac_var+set}\" = set"; then
41228 echo $ECHO_N "(cached) $ECHO_C" >&6
41230 cat >conftest.$ac_ext <<_ACEOF
41233 cat confdefs.h >>conftest.$ac_ext
41234 cat >>conftest.$ac_ext <<_ACEOF
41235 /* end confdefs.h. */
41236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41238 #define $ac_func innocuous_$ac_func
41240 /* System header to define __stub macros and hopefully few prototypes,
41241 which can conflict with char $ac_func (); below.
41242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41243 <limits.h> exists even on freestanding compilers. */
41246 # include <limits.h>
41248 # include <assert.h>
41253 /* Override any gcc2 internal prototype to avoid an error. */
41258 /* We use char because int might match the return type of a gcc2
41259 builtin and then its argument prototype would still apply. */
41261 /* The GNU C library defines this for functions which it implements
41262 to always fail with ENOSYS. Some functions are actually named
41263 something starting with __ and the normal name is an alias. */
41264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41267 char (*f) () = $ac_func;
41276 return f != $ac_func;
41281 rm -f conftest.$ac_objext conftest$ac_exeext
41282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41283 (eval $ac_link) 2>conftest.er1
41285 grep -v '^ *+' conftest.er1 >conftest.err
41287 cat conftest.err >&5
41288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41289 (exit $ac_status); } &&
41290 { ac_try='test -z "$ac_c_werror_flag"
41291 || test ! -s conftest.err'
41292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41293 (eval $ac_try) 2>&5
41295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41296 (exit $ac_status); }; } &&
41297 { ac_try='test -s conftest$ac_exeext'
41298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41299 (eval $ac_try) 2>&5
41301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41302 (exit $ac_status); }; }; then
41303 eval "$as_ac_var=yes"
41305 echo "$as_me: failed program was:" >&5
41306 sed 's/^/| /' conftest.$ac_ext >&5
41308 eval "$as_ac_var=no"
41310 rm -f conftest.err conftest.$ac_objext \
41311 conftest$ac_exeext conftest.$ac_ext
41313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41314 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41315 if test `eval echo '${'$as_ac_var'}'` = yes; then
41316 cat >>confdefs.h <<_ACEOF
41317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41319 ice_have_rename=yes
41323 if test "${ice_have_rename}" = yes; then
41324 echo "$as_me:$LINENO: checking for rename declaration in stdio.h" >&5
41325 echo $ECHO_N "checking for rename declaration in stdio.h... $ECHO_C" >&6
41326 if test "${ice_cv_have_rename_decl+set}" = set; then
41327 echo $ECHO_N "(cached) $ECHO_C" >&6
41330 ice_cv_have_rename_decl=no
41331 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41332 ice_re_word='(^|[^a-zA-Z0-9_])'
41333 for header in stdio.h; do
41334 # Check for ordinary declaration
41335 cat >conftest.$ac_ext <<_ACEOF
41338 cat confdefs.h >>conftest.$ac_ext
41339 cat >>conftest.$ac_ext <<_ACEOF
41340 /* end confdefs.h. */
41344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41345 $EGREP "${ice_re_word}rename[ ]*\(" >/dev/null 2>&1; then
41346 ice_cv_have_rename_decl=yes
41350 if test "$ice_cv_have_rename_decl" = yes; then
41353 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41354 cat >conftest.$ac_ext <<_ACEOF
41357 cat confdefs.h >>conftest.$ac_ext
41358 cat >>conftest.$ac_ext <<_ACEOF
41359 /* end confdefs.h. */
41363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41364 $EGREP "${ice_re_word}rename[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41365 ice_cv_have_rename_decl=yes
41369 if test "$ice_cv_have_rename_decl" = yes; then
41376 echo "$as_me:$LINENO: result: $ice_cv_have_rename_decl" >&5
41377 echo "${ECHO_T}$ice_cv_have_rename_decl" >&6
41378 if test "$ice_cv_have_rename_decl" = yes; then
41380 cat >>confdefs.h <<_ACEOF
41381 #define HAVE_RENAME_DECL 1
41390 for ac_func in rewind
41392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41393 echo "$as_me:$LINENO: checking for $ac_func" >&5
41394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41395 if eval "test \"\${$as_ac_var+set}\" = set"; then
41396 echo $ECHO_N "(cached) $ECHO_C" >&6
41398 cat >conftest.$ac_ext <<_ACEOF
41401 cat confdefs.h >>conftest.$ac_ext
41402 cat >>conftest.$ac_ext <<_ACEOF
41403 /* end confdefs.h. */
41404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41406 #define $ac_func innocuous_$ac_func
41408 /* System header to define __stub macros and hopefully few prototypes,
41409 which can conflict with char $ac_func (); below.
41410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41411 <limits.h> exists even on freestanding compilers. */
41414 # include <limits.h>
41416 # include <assert.h>
41421 /* Override any gcc2 internal prototype to avoid an error. */
41426 /* We use char because int might match the return type of a gcc2
41427 builtin and then its argument prototype would still apply. */
41429 /* The GNU C library defines this for functions which it implements
41430 to always fail with ENOSYS. Some functions are actually named
41431 something starting with __ and the normal name is an alias. */
41432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41435 char (*f) () = $ac_func;
41444 return f != $ac_func;
41449 rm -f conftest.$ac_objext conftest$ac_exeext
41450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41451 (eval $ac_link) 2>conftest.er1
41453 grep -v '^ *+' conftest.er1 >conftest.err
41455 cat conftest.err >&5
41456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41457 (exit $ac_status); } &&
41458 { ac_try='test -z "$ac_c_werror_flag"
41459 || test ! -s conftest.err'
41460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41461 (eval $ac_try) 2>&5
41463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41464 (exit $ac_status); }; } &&
41465 { ac_try='test -s conftest$ac_exeext'
41466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41467 (eval $ac_try) 2>&5
41469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41470 (exit $ac_status); }; }; then
41471 eval "$as_ac_var=yes"
41473 echo "$as_me: failed program was:" >&5
41474 sed 's/^/| /' conftest.$ac_ext >&5
41476 eval "$as_ac_var=no"
41478 rm -f conftest.err conftest.$ac_objext \
41479 conftest$ac_exeext conftest.$ac_ext
41481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41483 if test `eval echo '${'$as_ac_var'}'` = yes; then
41484 cat >>confdefs.h <<_ACEOF
41485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41487 ice_have_rewind=yes
41491 if test "${ice_have_rewind}" = yes; then
41492 echo "$as_me:$LINENO: checking for rewind declaration in stdio.h" >&5
41493 echo $ECHO_N "checking for rewind declaration in stdio.h... $ECHO_C" >&6
41494 if test "${ice_cv_have_rewind_decl+set}" = set; then
41495 echo $ECHO_N "(cached) $ECHO_C" >&6
41498 ice_cv_have_rewind_decl=no
41499 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41500 ice_re_word='(^|[^a-zA-Z0-9_])'
41501 for header in stdio.h; do
41502 # Check for ordinary declaration
41503 cat >conftest.$ac_ext <<_ACEOF
41506 cat confdefs.h >>conftest.$ac_ext
41507 cat >>conftest.$ac_ext <<_ACEOF
41508 /* end confdefs.h. */
41512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41513 $EGREP "${ice_re_word}rewind[ ]*\(" >/dev/null 2>&1; then
41514 ice_cv_have_rewind_decl=yes
41518 if test "$ice_cv_have_rewind_decl" = yes; then
41521 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41522 cat >conftest.$ac_ext <<_ACEOF
41525 cat confdefs.h >>conftest.$ac_ext
41526 cat >>conftest.$ac_ext <<_ACEOF
41527 /* end confdefs.h. */
41531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41532 $EGREP "${ice_re_word}rewind[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41533 ice_cv_have_rewind_decl=yes
41537 if test "$ice_cv_have_rewind_decl" = yes; then
41544 echo "$as_me:$LINENO: result: $ice_cv_have_rewind_decl" >&5
41545 echo "${ECHO_T}$ice_cv_have_rewind_decl" >&6
41546 if test "$ice_cv_have_rewind_decl" = yes; then
41548 cat >>confdefs.h <<_ACEOF
41549 #define HAVE_REWIND_DECL 1
41556 for ac_func in rmdir
41558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41559 echo "$as_me:$LINENO: checking for $ac_func" >&5
41560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41561 if eval "test \"\${$as_ac_var+set}\" = set"; then
41562 echo $ECHO_N "(cached) $ECHO_C" >&6
41564 cat >conftest.$ac_ext <<_ACEOF
41567 cat confdefs.h >>conftest.$ac_ext
41568 cat >>conftest.$ac_ext <<_ACEOF
41569 /* end confdefs.h. */
41570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41572 #define $ac_func innocuous_$ac_func
41574 /* System header to define __stub macros and hopefully few prototypes,
41575 which can conflict with char $ac_func (); below.
41576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41577 <limits.h> exists even on freestanding compilers. */
41580 # include <limits.h>
41582 # include <assert.h>
41587 /* Override any gcc2 internal prototype to avoid an error. */
41592 /* We use char because int might match the return type of a gcc2
41593 builtin and then its argument prototype would still apply. */
41595 /* The GNU C library defines this for functions which it implements
41596 to always fail with ENOSYS. Some functions are actually named
41597 something starting with __ and the normal name is an alias. */
41598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41601 char (*f) () = $ac_func;
41610 return f != $ac_func;
41615 rm -f conftest.$ac_objext conftest$ac_exeext
41616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41617 (eval $ac_link) 2>conftest.er1
41619 grep -v '^ *+' conftest.er1 >conftest.err
41621 cat conftest.err >&5
41622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41623 (exit $ac_status); } &&
41624 { ac_try='test -z "$ac_c_werror_flag"
41625 || test ! -s conftest.err'
41626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41627 (eval $ac_try) 2>&5
41629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41630 (exit $ac_status); }; } &&
41631 { ac_try='test -s conftest$ac_exeext'
41632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41633 (eval $ac_try) 2>&5
41635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41636 (exit $ac_status); }; }; then
41637 eval "$as_ac_var=yes"
41639 echo "$as_me: failed program was:" >&5
41640 sed 's/^/| /' conftest.$ac_ext >&5
41642 eval "$as_ac_var=no"
41644 rm -f conftest.err conftest.$ac_objext \
41645 conftest$ac_exeext conftest.$ac_ext
41647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41649 if test `eval echo '${'$as_ac_var'}'` = yes; then
41650 cat >>confdefs.h <<_ACEOF
41651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41658 ice_have_ruserok=no
41660 for ac_func in ruserok
41662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41663 echo "$as_me:$LINENO: checking for $ac_func" >&5
41664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41665 if eval "test \"\${$as_ac_var+set}\" = set"; then
41666 echo $ECHO_N "(cached) $ECHO_C" >&6
41668 cat >conftest.$ac_ext <<_ACEOF
41671 cat confdefs.h >>conftest.$ac_ext
41672 cat >>conftest.$ac_ext <<_ACEOF
41673 /* end confdefs.h. */
41674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41676 #define $ac_func innocuous_$ac_func
41678 /* System header to define __stub macros and hopefully few prototypes,
41679 which can conflict with char $ac_func (); below.
41680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41681 <limits.h> exists even on freestanding compilers. */
41684 # include <limits.h>
41686 # include <assert.h>
41691 /* Override any gcc2 internal prototype to avoid an error. */
41696 /* We use char because int might match the return type of a gcc2
41697 builtin and then its argument prototype would still apply. */
41699 /* The GNU C library defines this for functions which it implements
41700 to always fail with ENOSYS. Some functions are actually named
41701 something starting with __ and the normal name is an alias. */
41702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41705 char (*f) () = $ac_func;
41714 return f != $ac_func;
41719 rm -f conftest.$ac_objext conftest$ac_exeext
41720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41721 (eval $ac_link) 2>conftest.er1
41723 grep -v '^ *+' conftest.er1 >conftest.err
41725 cat conftest.err >&5
41726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41727 (exit $ac_status); } &&
41728 { ac_try='test -z "$ac_c_werror_flag"
41729 || test ! -s conftest.err'
41730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41731 (eval $ac_try) 2>&5
41733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41734 (exit $ac_status); }; } &&
41735 { ac_try='test -s conftest$ac_exeext'
41736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41737 (eval $ac_try) 2>&5
41739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41740 (exit $ac_status); }; }; then
41741 eval "$as_ac_var=yes"
41743 echo "$as_me: failed program was:" >&5
41744 sed 's/^/| /' conftest.$ac_ext >&5
41746 eval "$as_ac_var=no"
41748 rm -f conftest.err conftest.$ac_objext \
41749 conftest$ac_exeext conftest.$ac_ext
41751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41752 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41753 if test `eval echo '${'$as_ac_var'}'` = yes; then
41754 cat >>confdefs.h <<_ACEOF
41755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41757 ice_have_ruserok=yes
41761 if test "${ice_have_ruserok}" = yes; then
41762 echo "$as_me:$LINENO: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
41763 echo $ECHO_N "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... $ECHO_C" >&6
41764 if test "${ice_cv_have_ruserok_decl+set}" = set; then
41765 echo $ECHO_N "(cached) $ECHO_C" >&6
41768 ice_cv_have_ruserok_decl=no
41769 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41770 ice_re_word='(^|[^a-zA-Z0-9_])'
41771 for header in netdb.h sys/socket.h libc.h unistd.h; do
41772 # Check for ordinary declaration
41773 cat >conftest.$ac_ext <<_ACEOF
41776 cat confdefs.h >>conftest.$ac_ext
41777 cat >>conftest.$ac_ext <<_ACEOF
41778 /* end confdefs.h. */
41782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41783 $EGREP "${ice_re_word}ruserok[ ]*\(" >/dev/null 2>&1; then
41784 ice_cv_have_ruserok_decl=yes
41788 if test "$ice_cv_have_ruserok_decl" = yes; then
41791 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41792 cat >conftest.$ac_ext <<_ACEOF
41795 cat confdefs.h >>conftest.$ac_ext
41796 cat >>conftest.$ac_ext <<_ACEOF
41797 /* end confdefs.h. */
41801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41802 $EGREP "${ice_re_word}ruserok[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41803 ice_cv_have_ruserok_decl=yes
41807 if test "$ice_cv_have_ruserok_decl" = yes; then
41814 echo "$as_me:$LINENO: result: $ice_cv_have_ruserok_decl" >&5
41815 echo "${ECHO_T}$ice_cv_have_ruserok_decl" >&6
41816 if test "$ice_cv_have_ruserok_decl" = yes; then
41818 cat >>confdefs.h <<_ACEOF
41819 #define HAVE_RUSEROK_DECL 1
41828 for ac_func in select
41830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41831 echo "$as_me:$LINENO: checking for $ac_func" >&5
41832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41833 if eval "test \"\${$as_ac_var+set}\" = set"; then
41834 echo $ECHO_N "(cached) $ECHO_C" >&6
41836 cat >conftest.$ac_ext <<_ACEOF
41839 cat confdefs.h >>conftest.$ac_ext
41840 cat >>conftest.$ac_ext <<_ACEOF
41841 /* end confdefs.h. */
41842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41844 #define $ac_func innocuous_$ac_func
41846 /* System header to define __stub macros and hopefully few prototypes,
41847 which can conflict with char $ac_func (); below.
41848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41849 <limits.h> exists even on freestanding compilers. */
41852 # include <limits.h>
41854 # include <assert.h>
41859 /* Override any gcc2 internal prototype to avoid an error. */
41864 /* We use char because int might match the return type of a gcc2
41865 builtin and then its argument prototype would still apply. */
41867 /* The GNU C library defines this for functions which it implements
41868 to always fail with ENOSYS. Some functions are actually named
41869 something starting with __ and the normal name is an alias. */
41870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41873 char (*f) () = $ac_func;
41882 return f != $ac_func;
41887 rm -f conftest.$ac_objext conftest$ac_exeext
41888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41889 (eval $ac_link) 2>conftest.er1
41891 grep -v '^ *+' conftest.er1 >conftest.err
41893 cat conftest.err >&5
41894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41895 (exit $ac_status); } &&
41896 { ac_try='test -z "$ac_c_werror_flag"
41897 || test ! -s conftest.err'
41898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41899 (eval $ac_try) 2>&5
41901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41902 (exit $ac_status); }; } &&
41903 { ac_try='test -s conftest$ac_exeext'
41904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41905 (eval $ac_try) 2>&5
41907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41908 (exit $ac_status); }; }; then
41909 eval "$as_ac_var=yes"
41911 echo "$as_me: failed program was:" >&5
41912 sed 's/^/| /' conftest.$ac_ext >&5
41914 eval "$as_ac_var=no"
41916 rm -f conftest.err conftest.$ac_objext \
41917 conftest$ac_exeext conftest.$ac_ext
41919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41920 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41921 if test `eval echo '${'$as_ac_var'}'` = yes; then
41922 cat >>confdefs.h <<_ACEOF
41923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41925 ice_have_select=yes
41929 if test "${ice_have_select}" = yes; then
41930 echo "$as_me:$LINENO: checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h" >&5
41931 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
41932 if test "${ice_cv_have_select_decl+set}" = set; then
41933 echo $ECHO_N "(cached) $ECHO_C" >&6
41936 ice_cv_have_select_decl=no
41937 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41938 ice_re_word='(^|[^a-zA-Z0-9_])'
41939 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
41940 # Check for ordinary declaration
41941 cat >conftest.$ac_ext <<_ACEOF
41944 cat confdefs.h >>conftest.$ac_ext
41945 cat >>conftest.$ac_ext <<_ACEOF
41946 /* end confdefs.h. */
41950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41951 $EGREP "${ice_re_word}select[ ]*\(" >/dev/null 2>&1; then
41952 ice_cv_have_select_decl=yes
41956 if test "$ice_cv_have_select_decl" = yes; then
41959 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41960 cat >conftest.$ac_ext <<_ACEOF
41963 cat confdefs.h >>conftest.$ac_ext
41964 cat >>conftest.$ac_ext <<_ACEOF
41965 /* end confdefs.h. */
41969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41970 $EGREP "${ice_re_word}select[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41971 ice_cv_have_select_decl=yes
41975 if test "$ice_cv_have_select_decl" = yes; then
41982 echo "$as_me:$LINENO: result: $ice_cv_have_select_decl" >&5
41983 echo "${ECHO_T}$ice_cv_have_select_decl" >&6
41984 if test "$ice_cv_have_select_decl" = yes; then
41986 cat >>confdefs.h <<_ACEOF
41987 #define HAVE_SELECT_DECL 1
41994 echo "$as_me:$LINENO: checking for select() argument type" >&5
41995 echo $ECHO_N "checking for select() argument type... $ECHO_C" >&6
41996 if test "${amanda_cv_select_arg_type+set}" = set; then
41997 echo $ECHO_N "(cached) $ECHO_C" >&6
42001 cat <<EOF >conftest.$ac_ext
42002 #include "confdefs.h"
42003 #ifdef HAVE_SYS_TIME_H
42004 # include <sys/time.h>
42006 #ifdef HAVE_SYS_TYPES_H
42007 # include <sys/types.h>
42009 #ifdef HAVE_SYS_SELECT_H
42010 # include <sys/select.h>
42012 #ifdef HAVE_SYS_SOCKET_H
42013 # include <sys/socket.h>
42015 #ifdef HAVE_UNISTD_H
42016 # include <unistd.h>
42021 #ifdef FD_SET_POINTER
42022 (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
42024 (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
42030 amanda_cv_select_arg_type=no
42031 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
42032 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
42033 if test $? -ne 0; then
42034 amanda_cv_select_arg_type=int
42036 if test "$amanda_cv_select_arg_type" = no; then
42037 $select_compile conftest.$ac_ext 1>conftest.int 2>&1
42038 if test $? -ne 0; then
42039 amanda_cv_select_arg_type=fd_set
42042 if test "$amanda_cv_select_arg_type" = no; then
42043 wc_fdset=`wc -l <conftest.fd_set`
42044 wc_int=`wc -l <conftest.int`
42045 if test "$wc_fdset" -le "$wc_int"; then
42046 amanda_cv_select_arg_type=fd_set
42048 amanda_cv_select_arg_type=int
42055 echo "$as_me:$LINENO: result: $amanda_cv_select_arg_type" >&5
42056 echo "${ECHO_T}$amanda_cv_select_arg_type" >&6
42058 cat >>confdefs.h <<_ACEOF
42059 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
42067 for ac_func in sendto
42069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42070 echo "$as_me:$LINENO: checking for $ac_func" >&5
42071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42072 if eval "test \"\${$as_ac_var+set}\" = set"; then
42073 echo $ECHO_N "(cached) $ECHO_C" >&6
42075 cat >conftest.$ac_ext <<_ACEOF
42078 cat confdefs.h >>conftest.$ac_ext
42079 cat >>conftest.$ac_ext <<_ACEOF
42080 /* end confdefs.h. */
42081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42083 #define $ac_func innocuous_$ac_func
42085 /* System header to define __stub macros and hopefully few prototypes,
42086 which can conflict with char $ac_func (); below.
42087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42088 <limits.h> exists even on freestanding compilers. */
42091 # include <limits.h>
42093 # include <assert.h>
42098 /* Override any gcc2 internal prototype to avoid an error. */
42103 /* We use char because int might match the return type of a gcc2
42104 builtin and then its argument prototype would still apply. */
42106 /* The GNU C library defines this for functions which it implements
42107 to always fail with ENOSYS. Some functions are actually named
42108 something starting with __ and the normal name is an alias. */
42109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42112 char (*f) () = $ac_func;
42121 return f != $ac_func;
42126 rm -f conftest.$ac_objext conftest$ac_exeext
42127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42128 (eval $ac_link) 2>conftest.er1
42130 grep -v '^ *+' conftest.er1 >conftest.err
42132 cat conftest.err >&5
42133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42134 (exit $ac_status); } &&
42135 { ac_try='test -z "$ac_c_werror_flag"
42136 || test ! -s conftest.err'
42137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42138 (eval $ac_try) 2>&5
42140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42141 (exit $ac_status); }; } &&
42142 { ac_try='test -s conftest$ac_exeext'
42143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42144 (eval $ac_try) 2>&5
42146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42147 (exit $ac_status); }; }; then
42148 eval "$as_ac_var=yes"
42150 echo "$as_me: failed program was:" >&5
42151 sed 's/^/| /' conftest.$ac_ext >&5
42153 eval "$as_ac_var=no"
42155 rm -f conftest.err conftest.$ac_objext \
42156 conftest$ac_exeext conftest.$ac_ext
42158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42159 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42160 if test `eval echo '${'$as_ac_var'}'` = yes; then
42161 cat >>confdefs.h <<_ACEOF
42162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42164 ice_have_sendto=yes
42168 if test "${ice_have_sendto}" = yes; then
42169 echo "$as_me:$LINENO: checking for sendto declaration in sys/types.h sys/socket.h" >&5
42170 echo $ECHO_N "checking for sendto declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
42171 if test "${ice_cv_have_sendto_decl+set}" = set; then
42172 echo $ECHO_N "(cached) $ECHO_C" >&6
42175 ice_cv_have_sendto_decl=no
42176 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42177 ice_re_word='(^|[^a-zA-Z0-9_])'
42178 for header in sys/types.h sys/socket.h; do
42179 # Check for ordinary declaration
42180 cat >conftest.$ac_ext <<_ACEOF
42183 cat confdefs.h >>conftest.$ac_ext
42184 cat >>conftest.$ac_ext <<_ACEOF
42185 /* end confdefs.h. */
42189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42190 $EGREP "${ice_re_word}sendto[ ]*\(" >/dev/null 2>&1; then
42191 ice_cv_have_sendto_decl=yes
42195 if test "$ice_cv_have_sendto_decl" = yes; then
42198 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42199 cat >conftest.$ac_ext <<_ACEOF
42202 cat confdefs.h >>conftest.$ac_ext
42203 cat >>conftest.$ac_ext <<_ACEOF
42204 /* end confdefs.h. */
42208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42209 $EGREP "${ice_re_word}sendto[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42210 ice_cv_have_sendto_decl=yes
42214 if test "$ice_cv_have_sendto_decl" = yes; then
42221 echo "$as_me:$LINENO: result: $ice_cv_have_sendto_decl" >&5
42222 echo "${ECHO_T}$ice_cv_have_sendto_decl" >&6
42223 if test "$ice_cv_have_sendto_decl" = yes; then
42225 cat >>confdefs.h <<_ACEOF
42226 #define HAVE_SENDTO_DECL 1
42233 ice_have_setegid=no
42235 for ac_func in setegid
42237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42238 echo "$as_me:$LINENO: checking for $ac_func" >&5
42239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42240 if eval "test \"\${$as_ac_var+set}\" = set"; then
42241 echo $ECHO_N "(cached) $ECHO_C" >&6
42243 cat >conftest.$ac_ext <<_ACEOF
42246 cat confdefs.h >>conftest.$ac_ext
42247 cat >>conftest.$ac_ext <<_ACEOF
42248 /* end confdefs.h. */
42249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42251 #define $ac_func innocuous_$ac_func
42253 /* System header to define __stub macros and hopefully few prototypes,
42254 which can conflict with char $ac_func (); below.
42255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42256 <limits.h> exists even on freestanding compilers. */
42259 # include <limits.h>
42261 # include <assert.h>
42266 /* Override any gcc2 internal prototype to avoid an error. */
42271 /* We use char because int might match the return type of a gcc2
42272 builtin and then its argument prototype would still apply. */
42274 /* The GNU C library defines this for functions which it implements
42275 to always fail with ENOSYS. Some functions are actually named
42276 something starting with __ and the normal name is an alias. */
42277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42280 char (*f) () = $ac_func;
42289 return f != $ac_func;
42294 rm -f conftest.$ac_objext conftest$ac_exeext
42295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42296 (eval $ac_link) 2>conftest.er1
42298 grep -v '^ *+' conftest.er1 >conftest.err
42300 cat conftest.err >&5
42301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42302 (exit $ac_status); } &&
42303 { ac_try='test -z "$ac_c_werror_flag"
42304 || test ! -s conftest.err'
42305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42306 (eval $ac_try) 2>&5
42308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42309 (exit $ac_status); }; } &&
42310 { ac_try='test -s conftest$ac_exeext'
42311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42312 (eval $ac_try) 2>&5
42314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42315 (exit $ac_status); }; }; then
42316 eval "$as_ac_var=yes"
42318 echo "$as_me: failed program was:" >&5
42319 sed 's/^/| /' conftest.$ac_ext >&5
42321 eval "$as_ac_var=no"
42323 rm -f conftest.err conftest.$ac_objext \
42324 conftest$ac_exeext conftest.$ac_ext
42326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42328 if test `eval echo '${'$as_ac_var'}'` = yes; then
42329 cat >>confdefs.h <<_ACEOF
42330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42332 ice_have_setegid=yes
42336 if test "${ice_have_setegid}" = yes; then
42337 echo "$as_me:$LINENO: checking for setegid declaration in unistd.h" >&5
42338 echo $ECHO_N "checking for setegid declaration in unistd.h... $ECHO_C" >&6
42339 if test "${ice_cv_have_setegid_decl+set}" = set; then
42340 echo $ECHO_N "(cached) $ECHO_C" >&6
42343 ice_cv_have_setegid_decl=no
42344 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42345 ice_re_word='(^|[^a-zA-Z0-9_])'
42346 for header in unistd.h; do
42347 # Check for ordinary declaration
42348 cat >conftest.$ac_ext <<_ACEOF
42351 cat confdefs.h >>conftest.$ac_ext
42352 cat >>conftest.$ac_ext <<_ACEOF
42353 /* end confdefs.h. */
42357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42358 $EGREP "${ice_re_word}setegid[ ]*\(" >/dev/null 2>&1; then
42359 ice_cv_have_setegid_decl=yes
42363 if test "$ice_cv_have_setegid_decl" = yes; then
42366 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42367 cat >conftest.$ac_ext <<_ACEOF
42370 cat confdefs.h >>conftest.$ac_ext
42371 cat >>conftest.$ac_ext <<_ACEOF
42372 /* end confdefs.h. */
42376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42377 $EGREP "${ice_re_word}setegid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42378 ice_cv_have_setegid_decl=yes
42382 if test "$ice_cv_have_setegid_decl" = yes; then
42389 echo "$as_me:$LINENO: result: $ice_cv_have_setegid_decl" >&5
42390 echo "${ECHO_T}$ice_cv_have_setegid_decl" >&6
42391 if test "$ice_cv_have_setegid_decl" = yes; then
42393 cat >>confdefs.h <<_ACEOF
42394 #define HAVE_SETEGID_DECL 1
42401 ice_have_seteuid=no
42403 for ac_func in seteuid
42405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42406 echo "$as_me:$LINENO: checking for $ac_func" >&5
42407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42408 if eval "test \"\${$as_ac_var+set}\" = set"; then
42409 echo $ECHO_N "(cached) $ECHO_C" >&6
42411 cat >conftest.$ac_ext <<_ACEOF
42414 cat confdefs.h >>conftest.$ac_ext
42415 cat >>conftest.$ac_ext <<_ACEOF
42416 /* end confdefs.h. */
42417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42419 #define $ac_func innocuous_$ac_func
42421 /* System header to define __stub macros and hopefully few prototypes,
42422 which can conflict with char $ac_func (); below.
42423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42424 <limits.h> exists even on freestanding compilers. */
42427 # include <limits.h>
42429 # include <assert.h>
42434 /* Override any gcc2 internal prototype to avoid an error. */
42439 /* We use char because int might match the return type of a gcc2
42440 builtin and then its argument prototype would still apply. */
42442 /* The GNU C library defines this for functions which it implements
42443 to always fail with ENOSYS. Some functions are actually named
42444 something starting with __ and the normal name is an alias. */
42445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42448 char (*f) () = $ac_func;
42457 return f != $ac_func;
42462 rm -f conftest.$ac_objext conftest$ac_exeext
42463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42464 (eval $ac_link) 2>conftest.er1
42466 grep -v '^ *+' conftest.er1 >conftest.err
42468 cat conftest.err >&5
42469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42470 (exit $ac_status); } &&
42471 { ac_try='test -z "$ac_c_werror_flag"
42472 || test ! -s conftest.err'
42473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42474 (eval $ac_try) 2>&5
42476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42477 (exit $ac_status); }; } &&
42478 { ac_try='test -s conftest$ac_exeext'
42479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42480 (eval $ac_try) 2>&5
42482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42483 (exit $ac_status); }; }; then
42484 eval "$as_ac_var=yes"
42486 echo "$as_me: failed program was:" >&5
42487 sed 's/^/| /' conftest.$ac_ext >&5
42489 eval "$as_ac_var=no"
42491 rm -f conftest.err conftest.$ac_objext \
42492 conftest$ac_exeext conftest.$ac_ext
42494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42495 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42496 if test `eval echo '${'$as_ac_var'}'` = yes; then
42497 cat >>confdefs.h <<_ACEOF
42498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42500 ice_have_seteuid=yes
42504 if test "${ice_have_seteuid}" = yes; then
42505 echo "$as_me:$LINENO: checking for seteuid declaration in unistd.h" >&5
42506 echo $ECHO_N "checking for seteuid declaration in unistd.h... $ECHO_C" >&6
42507 if test "${ice_cv_have_seteuid_decl+set}" = set; then
42508 echo $ECHO_N "(cached) $ECHO_C" >&6
42511 ice_cv_have_seteuid_decl=no
42512 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42513 ice_re_word='(^|[^a-zA-Z0-9_])'
42514 for header in unistd.h; do
42515 # Check for ordinary declaration
42516 cat >conftest.$ac_ext <<_ACEOF
42519 cat confdefs.h >>conftest.$ac_ext
42520 cat >>conftest.$ac_ext <<_ACEOF
42521 /* end confdefs.h. */
42525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42526 $EGREP "${ice_re_word}seteuid[ ]*\(" >/dev/null 2>&1; then
42527 ice_cv_have_seteuid_decl=yes
42531 if test "$ice_cv_have_seteuid_decl" = yes; then
42534 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42535 cat >conftest.$ac_ext <<_ACEOF
42538 cat confdefs.h >>conftest.$ac_ext
42539 cat >>conftest.$ac_ext <<_ACEOF
42540 /* end confdefs.h. */
42544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42545 $EGREP "${ice_re_word}seteuid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42546 ice_cv_have_seteuid_decl=yes
42550 if test "$ice_cv_have_seteuid_decl" = yes; then
42557 echo "$as_me:$LINENO: result: $ice_cv_have_seteuid_decl" >&5
42558 echo "${ECHO_T}$ice_cv_have_seteuid_decl" >&6
42559 if test "$ice_cv_have_seteuid_decl" = yes; then
42561 cat >>confdefs.h <<_ACEOF
42562 #define HAVE_SETEUID_DECL 1
42569 for ac_func in setmntent
42571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42572 echo "$as_me:$LINENO: checking for $ac_func" >&5
42573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42574 if eval "test \"\${$as_ac_var+set}\" = set"; then
42575 echo $ECHO_N "(cached) $ECHO_C" >&6
42577 cat >conftest.$ac_ext <<_ACEOF
42580 cat confdefs.h >>conftest.$ac_ext
42581 cat >>conftest.$ac_ext <<_ACEOF
42582 /* end confdefs.h. */
42583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42585 #define $ac_func innocuous_$ac_func
42587 /* System header to define __stub macros and hopefully few prototypes,
42588 which can conflict with char $ac_func (); below.
42589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42590 <limits.h> exists even on freestanding compilers. */
42593 # include <limits.h>
42595 # include <assert.h>
42600 /* 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. */
42608 /* The GNU C library defines this for functions which it implements
42609 to always fail with ENOSYS. Some functions are actually named
42610 something starting with __ and the normal name is an alias. */
42611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42614 char (*f) () = $ac_func;
42623 return f != $ac_func;
42628 rm -f conftest.$ac_objext conftest$ac_exeext
42629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42630 (eval $ac_link) 2>conftest.er1
42632 grep -v '^ *+' conftest.er1 >conftest.err
42634 cat conftest.err >&5
42635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42636 (exit $ac_status); } &&
42637 { ac_try='test -z "$ac_c_werror_flag"
42638 || test ! -s conftest.err'
42639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42640 (eval $ac_try) 2>&5
42642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42643 (exit $ac_status); }; } &&
42644 { ac_try='test -s conftest$ac_exeext'
42645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42646 (eval $ac_try) 2>&5
42648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42649 (exit $ac_status); }; }; then
42650 eval "$as_ac_var=yes"
42652 echo "$as_me: failed program was:" >&5
42653 sed 's/^/| /' conftest.$ac_ext >&5
42655 eval "$as_ac_var=no"
42657 rm -f conftest.err conftest.$ac_objext \
42658 conftest$ac_exeext conftest.$ac_ext
42660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42661 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42662 if test `eval echo '${'$as_ac_var'}'` = yes; then
42663 cat >>confdefs.h <<_ACEOF
42664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42671 ice_have_setresgid=no
42673 for ac_func in setresgid
42675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42676 echo "$as_me:$LINENO: checking for $ac_func" >&5
42677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42678 if eval "test \"\${$as_ac_var+set}\" = set"; then
42679 echo $ECHO_N "(cached) $ECHO_C" >&6
42681 cat >conftest.$ac_ext <<_ACEOF
42684 cat confdefs.h >>conftest.$ac_ext
42685 cat >>conftest.$ac_ext <<_ACEOF
42686 /* end confdefs.h. */
42687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42689 #define $ac_func innocuous_$ac_func
42691 /* System header to define __stub macros and hopefully few prototypes,
42692 which can conflict with char $ac_func (); below.
42693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42694 <limits.h> exists even on freestanding compilers. */
42697 # include <limits.h>
42699 # include <assert.h>
42704 /* Override any gcc2 internal prototype to avoid an error. */
42709 /* We use char because int might match the return type of a gcc2
42710 builtin and then its argument prototype would still apply. */
42712 /* The GNU C library defines this for functions which it implements
42713 to always fail with ENOSYS. Some functions are actually named
42714 something starting with __ and the normal name is an alias. */
42715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42718 char (*f) () = $ac_func;
42727 return f != $ac_func;
42732 rm -f conftest.$ac_objext conftest$ac_exeext
42733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42734 (eval $ac_link) 2>conftest.er1
42736 grep -v '^ *+' conftest.er1 >conftest.err
42738 cat conftest.err >&5
42739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42740 (exit $ac_status); } &&
42741 { ac_try='test -z "$ac_c_werror_flag"
42742 || test ! -s conftest.err'
42743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42744 (eval $ac_try) 2>&5
42746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42747 (exit $ac_status); }; } &&
42748 { ac_try='test -s conftest$ac_exeext'
42749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42750 (eval $ac_try) 2>&5
42752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42753 (exit $ac_status); }; }; then
42754 eval "$as_ac_var=yes"
42756 echo "$as_me: failed program was:" >&5
42757 sed 's/^/| /' conftest.$ac_ext >&5
42759 eval "$as_ac_var=no"
42761 rm -f conftest.err conftest.$ac_objext \
42762 conftest$ac_exeext conftest.$ac_ext
42764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42765 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42766 if test `eval echo '${'$as_ac_var'}'` = yes; then
42767 cat >>confdefs.h <<_ACEOF
42768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42770 ice_have_setresgid=yes
42774 if test "${ice_have_setresgid}" = yes; then
42775 echo "$as_me:$LINENO: checking for setresgid declaration in unistd.h" >&5
42776 echo $ECHO_N "checking for setresgid declaration in unistd.h... $ECHO_C" >&6
42777 if test "${ice_cv_have_setresgid_decl+set}" = set; then
42778 echo $ECHO_N "(cached) $ECHO_C" >&6
42781 ice_cv_have_setresgid_decl=no
42782 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42783 ice_re_word='(^|[^a-zA-Z0-9_])'
42784 for header in unistd.h; do
42785 # Check for ordinary declaration
42786 cat >conftest.$ac_ext <<_ACEOF
42789 cat confdefs.h >>conftest.$ac_ext
42790 cat >>conftest.$ac_ext <<_ACEOF
42791 /* end confdefs.h. */
42795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42796 $EGREP "${ice_re_word}setresgid[ ]*\(" >/dev/null 2>&1; then
42797 ice_cv_have_setresgid_decl=yes
42801 if test "$ice_cv_have_setresgid_decl" = yes; then
42804 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42805 cat >conftest.$ac_ext <<_ACEOF
42808 cat confdefs.h >>conftest.$ac_ext
42809 cat >>conftest.$ac_ext <<_ACEOF
42810 /* end confdefs.h. */
42814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42815 $EGREP "${ice_re_word}setresgid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42816 ice_cv_have_setresgid_decl=yes
42820 if test "$ice_cv_have_setresgid_decl" = yes; then
42827 echo "$as_me:$LINENO: result: $ice_cv_have_setresgid_decl" >&5
42828 echo "${ECHO_T}$ice_cv_have_setresgid_decl" >&6
42829 if test "$ice_cv_have_setresgid_decl" = yes; then
42831 cat >>confdefs.h <<_ACEOF
42832 #define HAVE_SETRESGID_DECL 1
42839 ice_have_setresuid=no
42841 for ac_func in setresuid
42843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42844 echo "$as_me:$LINENO: checking for $ac_func" >&5
42845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42846 if eval "test \"\${$as_ac_var+set}\" = set"; then
42847 echo $ECHO_N "(cached) $ECHO_C" >&6
42849 cat >conftest.$ac_ext <<_ACEOF
42852 cat confdefs.h >>conftest.$ac_ext
42853 cat >>conftest.$ac_ext <<_ACEOF
42854 /* end confdefs.h. */
42855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42857 #define $ac_func innocuous_$ac_func
42859 /* System header to define __stub macros and hopefully few prototypes,
42860 which can conflict with char $ac_func (); below.
42861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42862 <limits.h> exists even on freestanding compilers. */
42865 # include <limits.h>
42867 # include <assert.h>
42872 /* Override any gcc2 internal prototype to avoid an error. */
42877 /* We use char because int might match the return type of a gcc2
42878 builtin and then its argument prototype would still apply. */
42880 /* The GNU C library defines this for functions which it implements
42881 to always fail with ENOSYS. Some functions are actually named
42882 something starting with __ and the normal name is an alias. */
42883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42886 char (*f) () = $ac_func;
42895 return f != $ac_func;
42900 rm -f conftest.$ac_objext conftest$ac_exeext
42901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42902 (eval $ac_link) 2>conftest.er1
42904 grep -v '^ *+' conftest.er1 >conftest.err
42906 cat conftest.err >&5
42907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42908 (exit $ac_status); } &&
42909 { ac_try='test -z "$ac_c_werror_flag"
42910 || test ! -s conftest.err'
42911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42912 (eval $ac_try) 2>&5
42914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42915 (exit $ac_status); }; } &&
42916 { ac_try='test -s conftest$ac_exeext'
42917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42918 (eval $ac_try) 2>&5
42920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42921 (exit $ac_status); }; }; then
42922 eval "$as_ac_var=yes"
42924 echo "$as_me: failed program was:" >&5
42925 sed 's/^/| /' conftest.$ac_ext >&5
42927 eval "$as_ac_var=no"
42929 rm -f conftest.err conftest.$ac_objext \
42930 conftest$ac_exeext conftest.$ac_ext
42932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42934 if test `eval echo '${'$as_ac_var'}'` = yes; then
42935 cat >>confdefs.h <<_ACEOF
42936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42938 ice_have_setresuid=yes
42942 if test "${ice_have_setresuid}" = yes; then
42943 echo "$as_me:$LINENO: checking for setresuid declaration in unistd.h" >&5
42944 echo $ECHO_N "checking for setresuid declaration in unistd.h... $ECHO_C" >&6
42945 if test "${ice_cv_have_setresuid_decl+set}" = set; then
42946 echo $ECHO_N "(cached) $ECHO_C" >&6
42949 ice_cv_have_setresuid_decl=no
42950 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42951 ice_re_word='(^|[^a-zA-Z0-9_])'
42952 for header in unistd.h; do
42953 # Check for ordinary declaration
42954 cat >conftest.$ac_ext <<_ACEOF
42957 cat confdefs.h >>conftest.$ac_ext
42958 cat >>conftest.$ac_ext <<_ACEOF
42959 /* end confdefs.h. */
42963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42964 $EGREP "${ice_re_word}setresuid[ ]*\(" >/dev/null 2>&1; then
42965 ice_cv_have_setresuid_decl=yes
42969 if test "$ice_cv_have_setresuid_decl" = yes; then
42972 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42973 cat >conftest.$ac_ext <<_ACEOF
42976 cat confdefs.h >>conftest.$ac_ext
42977 cat >>conftest.$ac_ext <<_ACEOF
42978 /* end confdefs.h. */
42982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42983 $EGREP "${ice_re_word}setresuid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42984 ice_cv_have_setresuid_decl=yes
42988 if test "$ice_cv_have_setresuid_decl" = yes; then
42995 echo "$as_me:$LINENO: result: $ice_cv_have_setresuid_decl" >&5
42996 echo "${ECHO_T}$ice_cv_have_setresuid_decl" >&6
42997 if test "$ice_cv_have_setresuid_decl" = yes; then
42999 cat >>confdefs.h <<_ACEOF
43000 #define HAVE_SETRESUID_DECL 1
43007 echo "$as_me:$LINENO: checking for setpgid" >&5
43008 echo $ECHO_N "checking for setpgid... $ECHO_C" >&6
43009 if test "${ac_cv_func_setpgid+set}" = set; then
43010 echo $ECHO_N "(cached) $ECHO_C" >&6
43012 cat >conftest.$ac_ext <<_ACEOF
43015 cat confdefs.h >>conftest.$ac_ext
43016 cat >>conftest.$ac_ext <<_ACEOF
43017 /* end confdefs.h. */
43018 /* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
43019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43020 #define setpgid innocuous_setpgid
43022 /* System header to define __stub macros and hopefully few prototypes,
43023 which can conflict with char setpgid (); below.
43024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43025 <limits.h> exists even on freestanding compilers. */
43028 # include <limits.h>
43030 # include <assert.h>
43035 /* Override any gcc2 internal prototype to avoid an error. */
43040 /* We use char because int might match the return type of a gcc2
43041 builtin and then its argument prototype would still apply. */
43043 /* The GNU C library defines this for functions which it implements
43044 to always fail with ENOSYS. Some functions are actually named
43045 something starting with __ and the normal name is an alias. */
43046 #if defined (__stub_setpgid) || defined (__stub___setpgid)
43049 char (*f) () = setpgid;
43058 return f != setpgid;
43063 rm -f conftest.$ac_objext conftest$ac_exeext
43064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43065 (eval $ac_link) 2>conftest.er1
43067 grep -v '^ *+' conftest.er1 >conftest.err
43069 cat conftest.err >&5
43070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43071 (exit $ac_status); } &&
43072 { ac_try='test -z "$ac_c_werror_flag"
43073 || test ! -s conftest.err'
43074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43075 (eval $ac_try) 2>&5
43077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43078 (exit $ac_status); }; } &&
43079 { ac_try='test -s conftest$ac_exeext'
43080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43081 (eval $ac_try) 2>&5
43083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43084 (exit $ac_status); }; }; then
43085 ac_cv_func_setpgid=yes
43087 echo "$as_me: failed program was:" >&5
43088 sed 's/^/| /' conftest.$ac_ext >&5
43090 ac_cv_func_setpgid=no
43092 rm -f conftest.err conftest.$ac_objext \
43093 conftest$ac_exeext conftest.$ac_ext
43095 echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
43096 echo "${ECHO_T}$ac_cv_func_setpgid" >&6
43097 if test $ac_cv_func_setpgid = yes; then
43100 cat >>confdefs.h <<\_ACEOF
43101 #define HAVE_SETPGID 1
43105 ice_have_setpgid=no
43107 for ac_func in setpgid
43109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43110 echo "$as_me:$LINENO: checking for $ac_func" >&5
43111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43112 if eval "test \"\${$as_ac_var+set}\" = set"; then
43113 echo $ECHO_N "(cached) $ECHO_C" >&6
43115 cat >conftest.$ac_ext <<_ACEOF
43118 cat confdefs.h >>conftest.$ac_ext
43119 cat >>conftest.$ac_ext <<_ACEOF
43120 /* end confdefs.h. */
43121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43123 #define $ac_func innocuous_$ac_func
43125 /* System header to define __stub macros and hopefully few prototypes,
43126 which can conflict with char $ac_func (); below.
43127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43128 <limits.h> exists even on freestanding compilers. */
43131 # include <limits.h>
43133 # include <assert.h>
43138 /* Override any gcc2 internal prototype to avoid an error. */
43143 /* We use char because int might match the return type of a gcc2
43144 builtin and then its argument prototype would still apply. */
43146 /* The GNU C library defines this for functions which it implements
43147 to always fail with ENOSYS. Some functions are actually named
43148 something starting with __ and the normal name is an alias. */
43149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43152 char (*f) () = $ac_func;
43161 return f != $ac_func;
43166 rm -f conftest.$ac_objext conftest$ac_exeext
43167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43168 (eval $ac_link) 2>conftest.er1
43170 grep -v '^ *+' conftest.er1 >conftest.err
43172 cat conftest.err >&5
43173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43174 (exit $ac_status); } &&
43175 { ac_try='test -z "$ac_c_werror_flag"
43176 || test ! -s conftest.err'
43177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43178 (eval $ac_try) 2>&5
43180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43181 (exit $ac_status); }; } &&
43182 { ac_try='test -s conftest$ac_exeext'
43183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43184 (eval $ac_try) 2>&5
43186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43187 (exit $ac_status); }; }; then
43188 eval "$as_ac_var=yes"
43190 echo "$as_me: failed program was:" >&5
43191 sed 's/^/| /' conftest.$ac_ext >&5
43193 eval "$as_ac_var=no"
43195 rm -f conftest.err conftest.$ac_objext \
43196 conftest$ac_exeext conftest.$ac_ext
43198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43199 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43200 if test `eval echo '${'$as_ac_var'}'` = yes; then
43201 cat >>confdefs.h <<_ACEOF
43202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43204 ice_have_setpgid=yes
43208 if test "${ice_have_setpgid}" = yes; then
43209 echo "$as_me:$LINENO: checking for setpgid declaration in sys/types.h unistd.h" >&5
43210 echo $ECHO_N "checking for setpgid declaration in sys/types.h unistd.h... $ECHO_C" >&6
43211 if test "${ice_cv_have_setpgid_decl+set}" = set; then
43212 echo $ECHO_N "(cached) $ECHO_C" >&6
43215 ice_cv_have_setpgid_decl=no
43216 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43217 ice_re_word='(^|[^a-zA-Z0-9_])'
43218 for header in sys/types.h unistd.h; do
43219 # Check for ordinary declaration
43220 cat >conftest.$ac_ext <<_ACEOF
43223 cat confdefs.h >>conftest.$ac_ext
43224 cat >>conftest.$ac_ext <<_ACEOF
43225 /* end confdefs.h. */
43229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43230 $EGREP "${ice_re_word}setpgid[ ]*\(" >/dev/null 2>&1; then
43231 ice_cv_have_setpgid_decl=yes
43235 if test "$ice_cv_have_setpgid_decl" = yes; then
43238 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43239 cat >conftest.$ac_ext <<_ACEOF
43242 cat confdefs.h >>conftest.$ac_ext
43243 cat >>conftest.$ac_ext <<_ACEOF
43244 /* end confdefs.h. */
43248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43249 $EGREP "${ice_re_word}setpgid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43250 ice_cv_have_setpgid_decl=yes
43254 if test "$ice_cv_have_setpgid_decl" = yes; then
43261 echo "$as_me:$LINENO: result: $ice_cv_have_setpgid_decl" >&5
43262 echo "${ECHO_T}$ice_cv_have_setpgid_decl" >&6
43263 if test "$ice_cv_have_setpgid_decl" = yes; then
43265 cat >>confdefs.h <<_ACEOF
43266 #define HAVE_SETPGID_DECL 1
43275 echo "$as_me:$LINENO: checking for setpgrp" >&5
43276 echo $ECHO_N "checking for setpgrp... $ECHO_C" >&6
43277 if test "${ac_cv_func_setpgrp+set}" = set; then
43278 echo $ECHO_N "(cached) $ECHO_C" >&6
43280 cat >conftest.$ac_ext <<_ACEOF
43283 cat confdefs.h >>conftest.$ac_ext
43284 cat >>conftest.$ac_ext <<_ACEOF
43285 /* end confdefs.h. */
43286 /* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
43287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43288 #define setpgrp innocuous_setpgrp
43290 /* System header to define __stub macros and hopefully few prototypes,
43291 which can conflict with char setpgrp (); below.
43292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43293 <limits.h> exists even on freestanding compilers. */
43296 # include <limits.h>
43298 # include <assert.h>
43303 /* Override any gcc2 internal prototype to avoid an error. */
43308 /* We use char because int might match the return type of a gcc2
43309 builtin and then its argument prototype would still apply. */
43311 /* The GNU C library defines this for functions which it implements
43312 to always fail with ENOSYS. Some functions are actually named
43313 something starting with __ and the normal name is an alias. */
43314 #if defined (__stub_setpgrp) || defined (__stub___setpgrp)
43317 char (*f) () = setpgrp;
43326 return f != setpgrp;
43331 rm -f conftest.$ac_objext conftest$ac_exeext
43332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43333 (eval $ac_link) 2>conftest.er1
43335 grep -v '^ *+' conftest.er1 >conftest.err
43337 cat conftest.err >&5
43338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43339 (exit $ac_status); } &&
43340 { ac_try='test -z "$ac_c_werror_flag"
43341 || test ! -s conftest.err'
43342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43343 (eval $ac_try) 2>&5
43345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43346 (exit $ac_status); }; } &&
43347 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
43353 ac_cv_func_setpgrp=yes
43355 echo "$as_me: failed program was:" >&5
43356 sed 's/^/| /' conftest.$ac_ext >&5
43358 ac_cv_func_setpgrp=no
43360 rm -f conftest.err conftest.$ac_objext \
43361 conftest$ac_exeext conftest.$ac_ext
43363 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
43364 echo "${ECHO_T}$ac_cv_func_setpgrp" >&6
43365 if test $ac_cv_func_setpgrp = yes; then
43366 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
43367 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
43368 if test "${ac_cv_func_setpgrp_void+set}" = set; then
43369 echo $ECHO_N "(cached) $ECHO_C" >&6
43371 if test "$cross_compiling" = yes; then
43372 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
43373 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
43374 { (exit 1); exit 1; }; }
43376 cat >conftest.$ac_ext <<_ACEOF
43379 cat confdefs.h >>conftest.$ac_ext
43380 cat >>conftest.$ac_ext <<_ACEOF
43381 /* end confdefs.h. */
43383 # include <unistd.h>
43389 /* If this system has a BSD-style setpgrp which takes arguments,
43390 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
43391 exit successfully. */
43392 exit (setpgrp (1,1) == -1 ? 0 : 1);
43397 rm -f conftest$ac_exeext
43398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43399 (eval $ac_link) 2>&5
43401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43404 (eval $ac_try) 2>&5
43406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43407 (exit $ac_status); }; }; then
43408 ac_cv_func_setpgrp_void=no
43410 echo "$as_me: program exited with status $ac_status" >&5
43411 echo "$as_me: failed program was:" >&5
43412 sed 's/^/| /' conftest.$ac_ext >&5
43414 ( exit $ac_status )
43415 ac_cv_func_setpgrp_void=yes
43417 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43420 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
43421 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
43422 if test $ac_cv_func_setpgrp_void = yes; then
43424 cat >>confdefs.h <<\_ACEOF
43425 #define SETPGRP_VOID 1
43433 ice_have_setpgrp=no
43435 for ac_func in setpgrp
43437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43438 echo "$as_me:$LINENO: checking for $ac_func" >&5
43439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43440 if eval "test \"\${$as_ac_var+set}\" = set"; then
43441 echo $ECHO_N "(cached) $ECHO_C" >&6
43443 cat >conftest.$ac_ext <<_ACEOF
43446 cat confdefs.h >>conftest.$ac_ext
43447 cat >>conftest.$ac_ext <<_ACEOF
43448 /* end confdefs.h. */
43449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43451 #define $ac_func innocuous_$ac_func
43453 /* System header to define __stub macros and hopefully few prototypes,
43454 which can conflict with char $ac_func (); below.
43455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43456 <limits.h> exists even on freestanding compilers. */
43459 # include <limits.h>
43461 # include <assert.h>
43466 /* Override any gcc2 internal prototype to avoid an error. */
43471 /* We use char because int might match the return type of a gcc2
43472 builtin and then its argument prototype would still apply. */
43474 /* The GNU C library defines this for functions which it implements
43475 to always fail with ENOSYS. Some functions are actually named
43476 something starting with __ and the normal name is an alias. */
43477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43480 char (*f) () = $ac_func;
43489 return f != $ac_func;
43494 rm -f conftest.$ac_objext conftest$ac_exeext
43495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43496 (eval $ac_link) 2>conftest.er1
43498 grep -v '^ *+' conftest.er1 >conftest.err
43500 cat conftest.err >&5
43501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43502 (exit $ac_status); } &&
43503 { ac_try='test -z "$ac_c_werror_flag"
43504 || test ! -s conftest.err'
43505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43506 (eval $ac_try) 2>&5
43508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43509 (exit $ac_status); }; } &&
43510 { ac_try='test -s conftest$ac_exeext'
43511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43512 (eval $ac_try) 2>&5
43514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43515 (exit $ac_status); }; }; then
43516 eval "$as_ac_var=yes"
43518 echo "$as_me: failed program was:" >&5
43519 sed 's/^/| /' conftest.$ac_ext >&5
43521 eval "$as_ac_var=no"
43523 rm -f conftest.err conftest.$ac_objext \
43524 conftest$ac_exeext conftest.$ac_ext
43526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43527 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43528 if test `eval echo '${'$as_ac_var'}'` = yes; then
43529 cat >>confdefs.h <<_ACEOF
43530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43532 ice_have_setpgrp=yes
43536 if test "${ice_have_setpgrp}" = yes; then
43537 echo "$as_me:$LINENO: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
43538 echo $ECHO_N "checking for setpgrp declaration in sys/types.h unistd.h libc.h... $ECHO_C" >&6
43539 if test "${ice_cv_have_setpgrp_decl+set}" = set; then
43540 echo $ECHO_N "(cached) $ECHO_C" >&6
43543 ice_cv_have_setpgrp_decl=no
43544 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43545 ice_re_word='(^|[^a-zA-Z0-9_])'
43546 for header in sys/types.h unistd.h libc.h; do
43547 # Check for ordinary declaration
43548 cat >conftest.$ac_ext <<_ACEOF
43551 cat confdefs.h >>conftest.$ac_ext
43552 cat >>conftest.$ac_ext <<_ACEOF
43553 /* end confdefs.h. */
43557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43558 $EGREP "${ice_re_word}setpgrp[ ]*\(" >/dev/null 2>&1; then
43559 ice_cv_have_setpgrp_decl=yes
43563 if test "$ice_cv_have_setpgrp_decl" = yes; then
43566 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43567 cat >conftest.$ac_ext <<_ACEOF
43570 cat confdefs.h >>conftest.$ac_ext
43571 cat >>conftest.$ac_ext <<_ACEOF
43572 /* end confdefs.h. */
43576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43577 $EGREP "${ice_re_word}setpgrp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43578 ice_cv_have_setpgrp_decl=yes
43582 if test "$ice_cv_have_setpgrp_decl" = yes; then
43589 echo "$as_me:$LINENO: result: $ice_cv_have_setpgrp_decl" >&5
43590 echo "${ECHO_T}$ice_cv_have_setpgrp_decl" >&6
43591 if test "$ice_cv_have_setpgrp_decl" = yes; then
43593 cat >>confdefs.h <<_ACEOF
43594 #define HAVE_SETPGRP_DECL 1
43602 ice_have_setsockopt=no
43604 for ac_func in setsockopt
43606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43607 echo "$as_me:$LINENO: checking for $ac_func" >&5
43608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43609 if eval "test \"\${$as_ac_var+set}\" = set"; then
43610 echo $ECHO_N "(cached) $ECHO_C" >&6
43612 cat >conftest.$ac_ext <<_ACEOF
43615 cat confdefs.h >>conftest.$ac_ext
43616 cat >>conftest.$ac_ext <<_ACEOF
43617 /* end confdefs.h. */
43618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43620 #define $ac_func innocuous_$ac_func
43622 /* System header to define __stub macros and hopefully few prototypes,
43623 which can conflict with char $ac_func (); below.
43624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43625 <limits.h> exists even on freestanding compilers. */
43628 # include <limits.h>
43630 # include <assert.h>
43635 /* Override any gcc2 internal prototype to avoid an error. */
43640 /* We use char because int might match the return type of a gcc2
43641 builtin and then its argument prototype would still apply. */
43643 /* The GNU C library defines this for functions which it implements
43644 to always fail with ENOSYS. Some functions are actually named
43645 something starting with __ and the normal name is an alias. */
43646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43649 char (*f) () = $ac_func;
43658 return f != $ac_func;
43663 rm -f conftest.$ac_objext conftest$ac_exeext
43664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43665 (eval $ac_link) 2>conftest.er1
43667 grep -v '^ *+' conftest.er1 >conftest.err
43669 cat conftest.err >&5
43670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43671 (exit $ac_status); } &&
43672 { ac_try='test -z "$ac_c_werror_flag"
43673 || test ! -s conftest.err'
43674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43675 (eval $ac_try) 2>&5
43677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43678 (exit $ac_status); }; } &&
43679 { ac_try='test -s conftest$ac_exeext'
43680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43681 (eval $ac_try) 2>&5
43683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43684 (exit $ac_status); }; }; then
43685 eval "$as_ac_var=yes"
43687 echo "$as_me: failed program was:" >&5
43688 sed 's/^/| /' conftest.$ac_ext >&5
43690 eval "$as_ac_var=no"
43692 rm -f conftest.err conftest.$ac_objext \
43693 conftest$ac_exeext conftest.$ac_ext
43695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43697 if test `eval echo '${'$as_ac_var'}'` = yes; then
43698 cat >>confdefs.h <<_ACEOF
43699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43701 ice_have_setsockopt=yes
43705 if test "${ice_have_setsockopt}" = yes; then
43706 echo "$as_me:$LINENO: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
43707 echo $ECHO_N "checking for setsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
43708 if test "${ice_cv_have_setsockopt_decl+set}" = set; then
43709 echo $ECHO_N "(cached) $ECHO_C" >&6
43712 ice_cv_have_setsockopt_decl=no
43713 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43714 ice_re_word='(^|[^a-zA-Z0-9_])'
43715 for header in sys/types.h sys/socket.h; do
43716 # Check for ordinary declaration
43717 cat >conftest.$ac_ext <<_ACEOF
43720 cat confdefs.h >>conftest.$ac_ext
43721 cat >>conftest.$ac_ext <<_ACEOF
43722 /* end confdefs.h. */
43726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43727 $EGREP "${ice_re_word}setsockopt[ ]*\(" >/dev/null 2>&1; then
43728 ice_cv_have_setsockopt_decl=yes
43732 if test "$ice_cv_have_setsockopt_decl" = yes; then
43735 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43736 cat >conftest.$ac_ext <<_ACEOF
43739 cat confdefs.h >>conftest.$ac_ext
43740 cat >>conftest.$ac_ext <<_ACEOF
43741 /* end confdefs.h. */
43745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43746 $EGREP "${ice_re_word}setsockopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43747 ice_cv_have_setsockopt_decl=yes
43751 if test "$ice_cv_have_setsockopt_decl" = yes; then
43758 echo "$as_me:$LINENO: result: $ice_cv_have_setsockopt_decl" >&5
43759 echo "${ECHO_T}$ice_cv_have_setsockopt_decl" >&6
43760 if test "$ice_cv_have_setsockopt_decl" = yes; then
43762 cat >>confdefs.h <<_ACEOF
43763 #define HAVE_SETSOCKOPT_DECL 1
43771 for ac_func in shmget
43773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43774 echo "$as_me:$LINENO: checking for $ac_func" >&5
43775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43776 if eval "test \"\${$as_ac_var+set}\" = set"; then
43777 echo $ECHO_N "(cached) $ECHO_C" >&6
43779 cat >conftest.$ac_ext <<_ACEOF
43782 cat confdefs.h >>conftest.$ac_ext
43783 cat >>conftest.$ac_ext <<_ACEOF
43784 /* end confdefs.h. */
43785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43787 #define $ac_func innocuous_$ac_func
43789 /* System header to define __stub macros and hopefully few prototypes,
43790 which can conflict with char $ac_func (); below.
43791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43792 <limits.h> exists even on freestanding compilers. */
43795 # include <limits.h>
43797 # include <assert.h>
43802 /* Override any gcc2 internal prototype to avoid an error. */
43807 /* We use char because int might match the return type of a gcc2
43808 builtin and then its argument prototype would still apply. */
43810 /* The GNU C library defines this for functions which it implements
43811 to always fail with ENOSYS. Some functions are actually named
43812 something starting with __ and the normal name is an alias. */
43813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43816 char (*f) () = $ac_func;
43825 return f != $ac_func;
43830 rm -f conftest.$ac_objext conftest$ac_exeext
43831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43832 (eval $ac_link) 2>conftest.er1
43834 grep -v '^ *+' conftest.er1 >conftest.err
43836 cat conftest.err >&5
43837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43838 (exit $ac_status); } &&
43839 { ac_try='test -z "$ac_c_werror_flag"
43840 || test ! -s conftest.err'
43841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43842 (eval $ac_try) 2>&5
43844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43845 (exit $ac_status); }; } &&
43846 { ac_try='test -s conftest$ac_exeext'
43847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43848 (eval $ac_try) 2>&5
43850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43851 (exit $ac_status); }; }; then
43852 eval "$as_ac_var=yes"
43854 echo "$as_me: failed program was:" >&5
43855 sed 's/^/| /' conftest.$ac_ext >&5
43857 eval "$as_ac_var=no"
43859 rm -f conftest.err conftest.$ac_objext \
43860 conftest$ac_exeext conftest.$ac_ext
43862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43863 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43864 if test `eval echo '${'$as_ac_var'}'` = yes; then
43865 cat >>confdefs.h <<_ACEOF
43866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43870 echo "$as_me:$LINENO: checking for shmdt() argument type" >&5
43871 echo $ECHO_N "checking for shmdt() argument type... $ECHO_C" >&6
43872 if test "${amanda_cv_shmdt_arg_type+set}" = set; then
43873 echo $ECHO_N "(cached) $ECHO_C" >&6
43876 if test "$ac_cv_func_shmget" = yes; then
43877 cat <<EOF >conftest.$ac_ext
43878 #include "confdefs.h"
43879 #ifdef HAVE_SYS_TYPES_H
43880 # include <sys/types.h>
43882 #ifdef HAVE_SYS_IPC_H
43883 # include <sys/ipc.h>
43885 #ifdef HAVE_SYS_SHM_H
43886 # include <sys/shm.h>
43890 extern "C" void *shmat(int, void *, int);
43901 ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >/dev/null 2>/dev/null
43902 if test $? = 0; then
43903 amanda_cv_shmdt_arg_type=void
43905 amanda_cv_shmdt_arg_type=char
43909 amanda_cv_shmdt_arg_type=nothing
43914 echo "$as_me:$LINENO: result: $amanda_cv_shmdt_arg_type" >&5
43915 echo "${ECHO_T}$amanda_cv_shmdt_arg_type" >&6
43917 cat >>confdefs.h <<_ACEOF
43918 #define SHM_ARG_TYPE $amanda_cv_shmdt_arg_type
43923 case "$FORCE_MMAP" in
43926 cat >>confdefs.h <<\_ACEOF
43927 #define HAVE_SYSVSHM 1
43940 for ac_func in shmat
43942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43943 echo "$as_me:$LINENO: checking for $ac_func" >&5
43944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43945 if eval "test \"\${$as_ac_var+set}\" = set"; then
43946 echo $ECHO_N "(cached) $ECHO_C" >&6
43948 cat >conftest.$ac_ext <<_ACEOF
43951 cat confdefs.h >>conftest.$ac_ext
43952 cat >>conftest.$ac_ext <<_ACEOF
43953 /* end confdefs.h. */
43954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43956 #define $ac_func innocuous_$ac_func
43958 /* System header to define __stub macros and hopefully few prototypes,
43959 which can conflict with char $ac_func (); below.
43960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43961 <limits.h> exists even on freestanding compilers. */
43964 # include <limits.h>
43966 # include <assert.h>
43971 /* Override any gcc2 internal prototype to avoid an error. */
43976 /* We use char because int might match the return type of a gcc2
43977 builtin and then its argument prototype would still apply. */
43979 /* The GNU C library defines this for functions which it implements
43980 to always fail with ENOSYS. Some functions are actually named
43981 something starting with __ and the normal name is an alias. */
43982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43985 char (*f) () = $ac_func;
43994 return f != $ac_func;
43999 rm -f conftest.$ac_objext conftest$ac_exeext
44000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44001 (eval $ac_link) 2>conftest.er1
44003 grep -v '^ *+' conftest.er1 >conftest.err
44005 cat conftest.err >&5
44006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44007 (exit $ac_status); } &&
44008 { ac_try='test -z "$ac_c_werror_flag"
44009 || test ! -s conftest.err'
44010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44011 (eval $ac_try) 2>&5
44013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44014 (exit $ac_status); }; } &&
44015 { ac_try='test -s conftest$ac_exeext'
44016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44017 (eval $ac_try) 2>&5
44019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44020 (exit $ac_status); }; }; then
44021 eval "$as_ac_var=yes"
44023 echo "$as_me: failed program was:" >&5
44024 sed 's/^/| /' conftest.$ac_ext >&5
44026 eval "$as_ac_var=no"
44028 rm -f conftest.err conftest.$ac_objext \
44029 conftest$ac_exeext conftest.$ac_ext
44031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44032 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44033 if test `eval echo '${'$as_ac_var'}'` = yes; then
44034 cat >>confdefs.h <<_ACEOF
44035 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44041 if test "${ice_have_shmat}" = yes; then
44042 echo "$as_me:$LINENO: checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
44043 echo $ECHO_N "checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
44044 if test "${ice_cv_have_shmat_decl+set}" = set; then
44045 echo $ECHO_N "(cached) $ECHO_C" >&6
44048 ice_cv_have_shmat_decl=no
44049 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44050 ice_re_word='(^|[^a-zA-Z0-9_])'
44051 for header in sys/types.h sys/ipc.h sys/shm.h; do
44052 # Check for ordinary declaration
44053 cat >conftest.$ac_ext <<_ACEOF
44056 cat confdefs.h >>conftest.$ac_ext
44057 cat >>conftest.$ac_ext <<_ACEOF
44058 /* end confdefs.h. */
44062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44063 $EGREP "${ice_re_word}shmat[ ]*\(" >/dev/null 2>&1; then
44064 ice_cv_have_shmat_decl=yes
44068 if test "$ice_cv_have_shmat_decl" = yes; then
44071 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44072 cat >conftest.$ac_ext <<_ACEOF
44075 cat confdefs.h >>conftest.$ac_ext
44076 cat >>conftest.$ac_ext <<_ACEOF
44077 /* end confdefs.h. */
44081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44082 $EGREP "${ice_re_word}shmat[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44083 ice_cv_have_shmat_decl=yes
44087 if test "$ice_cv_have_shmat_decl" = yes; then
44094 echo "$as_me:$LINENO: result: $ice_cv_have_shmat_decl" >&5
44095 echo "${ECHO_T}$ice_cv_have_shmat_decl" >&6
44096 if test "$ice_cv_have_shmat_decl" = yes; then
44098 cat >>confdefs.h <<_ACEOF
44099 #define HAVE_SHMAT_DECL 1
44108 for ac_func in shmctl
44110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44111 echo "$as_me:$LINENO: checking for $ac_func" >&5
44112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44113 if eval "test \"\${$as_ac_var+set}\" = set"; then
44114 echo $ECHO_N "(cached) $ECHO_C" >&6
44116 cat >conftest.$ac_ext <<_ACEOF
44119 cat confdefs.h >>conftest.$ac_ext
44120 cat >>conftest.$ac_ext <<_ACEOF
44121 /* end confdefs.h. */
44122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44124 #define $ac_func innocuous_$ac_func
44126 /* System header to define __stub macros and hopefully few prototypes,
44127 which can conflict with char $ac_func (); below.
44128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44129 <limits.h> exists even on freestanding compilers. */
44132 # include <limits.h>
44134 # include <assert.h>
44139 /* Override any gcc2 internal prototype to avoid an error. */
44144 /* We use char because int might match the return type of a gcc2
44145 builtin and then its argument prototype would still apply. */
44147 /* The GNU C library defines this for functions which it implements
44148 to always fail with ENOSYS. Some functions are actually named
44149 something starting with __ and the normal name is an alias. */
44150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44153 char (*f) () = $ac_func;
44162 return f != $ac_func;
44167 rm -f conftest.$ac_objext conftest$ac_exeext
44168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44169 (eval $ac_link) 2>conftest.er1
44171 grep -v '^ *+' conftest.er1 >conftest.err
44173 cat conftest.err >&5
44174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44175 (exit $ac_status); } &&
44176 { ac_try='test -z "$ac_c_werror_flag"
44177 || test ! -s conftest.err'
44178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44179 (eval $ac_try) 2>&5
44181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44182 (exit $ac_status); }; } &&
44183 { ac_try='test -s conftest$ac_exeext'
44184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44185 (eval $ac_try) 2>&5
44187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44188 (exit $ac_status); }; }; then
44189 eval "$as_ac_var=yes"
44191 echo "$as_me: failed program was:" >&5
44192 sed 's/^/| /' conftest.$ac_ext >&5
44194 eval "$as_ac_var=no"
44196 rm -f conftest.err conftest.$ac_objext \
44197 conftest$ac_exeext conftest.$ac_ext
44199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44200 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44201 if test `eval echo '${'$as_ac_var'}'` = yes; then
44202 cat >>confdefs.h <<_ACEOF
44203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44205 ice_have_shmctl=yes
44209 if test "${ice_have_shmctl}" = yes; then
44210 echo "$as_me:$LINENO: checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
44211 echo $ECHO_N "checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
44212 if test "${ice_cv_have_shmctl_decl+set}" = set; then
44213 echo $ECHO_N "(cached) $ECHO_C" >&6
44216 ice_cv_have_shmctl_decl=no
44217 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44218 ice_re_word='(^|[^a-zA-Z0-9_])'
44219 for header in sys/types.h sys/ipc.h sys/shm.h; do
44220 # Check for ordinary declaration
44221 cat >conftest.$ac_ext <<_ACEOF
44224 cat confdefs.h >>conftest.$ac_ext
44225 cat >>conftest.$ac_ext <<_ACEOF
44226 /* end confdefs.h. */
44230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44231 $EGREP "${ice_re_word}shmctl[ ]*\(" >/dev/null 2>&1; then
44232 ice_cv_have_shmctl_decl=yes
44236 if test "$ice_cv_have_shmctl_decl" = yes; then
44239 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44240 cat >conftest.$ac_ext <<_ACEOF
44243 cat confdefs.h >>conftest.$ac_ext
44244 cat >>conftest.$ac_ext <<_ACEOF
44245 /* end confdefs.h. */
44249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44250 $EGREP "${ice_re_word}shmctl[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44251 ice_cv_have_shmctl_decl=yes
44255 if test "$ice_cv_have_shmctl_decl" = yes; then
44262 echo "$as_me:$LINENO: result: $ice_cv_have_shmctl_decl" >&5
44263 echo "${ECHO_T}$ice_cv_have_shmctl_decl" >&6
44264 if test "$ice_cv_have_shmctl_decl" = yes; then
44266 cat >>confdefs.h <<_ACEOF
44267 #define HAVE_SHMCTL_DECL 1
44276 for ac_func in shmdt
44278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44279 echo "$as_me:$LINENO: checking for $ac_func" >&5
44280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44281 if eval "test \"\${$as_ac_var+set}\" = set"; then
44282 echo $ECHO_N "(cached) $ECHO_C" >&6
44284 cat >conftest.$ac_ext <<_ACEOF
44287 cat confdefs.h >>conftest.$ac_ext
44288 cat >>conftest.$ac_ext <<_ACEOF
44289 /* end confdefs.h. */
44290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44292 #define $ac_func innocuous_$ac_func
44294 /* System header to define __stub macros and hopefully few prototypes,
44295 which can conflict with char $ac_func (); below.
44296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44297 <limits.h> exists even on freestanding compilers. */
44300 # include <limits.h>
44302 # include <assert.h>
44307 /* Override any gcc2 internal prototype to avoid an error. */
44312 /* We use char because int might match the return type of a gcc2
44313 builtin and then its argument prototype would still apply. */
44315 /* The GNU C library defines this for functions which it implements
44316 to always fail with ENOSYS. Some functions are actually named
44317 something starting with __ and the normal name is an alias. */
44318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44321 char (*f) () = $ac_func;
44330 return f != $ac_func;
44335 rm -f conftest.$ac_objext conftest$ac_exeext
44336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44337 (eval $ac_link) 2>conftest.er1
44339 grep -v '^ *+' conftest.er1 >conftest.err
44341 cat conftest.err >&5
44342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44343 (exit $ac_status); } &&
44344 { ac_try='test -z "$ac_c_werror_flag"
44345 || test ! -s conftest.err'
44346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44347 (eval $ac_try) 2>&5
44349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44350 (exit $ac_status); }; } &&
44351 { ac_try='test -s conftest$ac_exeext'
44352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44353 (eval $ac_try) 2>&5
44355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44356 (exit $ac_status); }; }; then
44357 eval "$as_ac_var=yes"
44359 echo "$as_me: failed program was:" >&5
44360 sed 's/^/| /' conftest.$ac_ext >&5
44362 eval "$as_ac_var=no"
44364 rm -f conftest.err conftest.$ac_objext \
44365 conftest$ac_exeext conftest.$ac_ext
44367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44369 if test `eval echo '${'$as_ac_var'}'` = yes; then
44370 cat >>confdefs.h <<_ACEOF
44371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44377 if test "${ice_have_shmdt}" = yes; then
44378 echo "$as_me:$LINENO: checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
44379 echo $ECHO_N "checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
44380 if test "${ice_cv_have_shmdt_decl+set}" = set; then
44381 echo $ECHO_N "(cached) $ECHO_C" >&6
44384 ice_cv_have_shmdt_decl=no
44385 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44386 ice_re_word='(^|[^a-zA-Z0-9_])'
44387 for header in sys/types.h sys/ipc.h sys/shm.h; do
44388 # Check for ordinary declaration
44389 cat >conftest.$ac_ext <<_ACEOF
44392 cat confdefs.h >>conftest.$ac_ext
44393 cat >>conftest.$ac_ext <<_ACEOF
44394 /* end confdefs.h. */
44398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44399 $EGREP "${ice_re_word}shmdt[ ]*\(" >/dev/null 2>&1; then
44400 ice_cv_have_shmdt_decl=yes
44404 if test "$ice_cv_have_shmdt_decl" = yes; then
44407 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44408 cat >conftest.$ac_ext <<_ACEOF
44411 cat confdefs.h >>conftest.$ac_ext
44412 cat >>conftest.$ac_ext <<_ACEOF
44413 /* end confdefs.h. */
44417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44418 $EGREP "${ice_re_word}shmdt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44419 ice_cv_have_shmdt_decl=yes
44423 if test "$ice_cv_have_shmdt_decl" = yes; then
44430 echo "$as_me:$LINENO: result: $ice_cv_have_shmdt_decl" >&5
44431 echo "${ECHO_T}$ice_cv_have_shmdt_decl" >&6
44432 if test "$ice_cv_have_shmdt_decl" = yes; then
44434 cat >>confdefs.h <<_ACEOF
44435 #define HAVE_SHMDT_DECL 1
44444 for ac_func in shmget
44446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44447 echo "$as_me:$LINENO: checking for $ac_func" >&5
44448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44449 if eval "test \"\${$as_ac_var+set}\" = set"; then
44450 echo $ECHO_N "(cached) $ECHO_C" >&6
44452 cat >conftest.$ac_ext <<_ACEOF
44455 cat confdefs.h >>conftest.$ac_ext
44456 cat >>conftest.$ac_ext <<_ACEOF
44457 /* end confdefs.h. */
44458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44460 #define $ac_func innocuous_$ac_func
44462 /* System header to define __stub macros and hopefully few prototypes,
44463 which can conflict with char $ac_func (); below.
44464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44465 <limits.h> exists even on freestanding compilers. */
44468 # include <limits.h>
44470 # include <assert.h>
44475 /* Override any gcc2 internal prototype to avoid an error. */
44480 /* We use char because int might match the return type of a gcc2
44481 builtin and then its argument prototype would still apply. */
44483 /* The GNU C library defines this for functions which it implements
44484 to always fail with ENOSYS. Some functions are actually named
44485 something starting with __ and the normal name is an alias. */
44486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44489 char (*f) () = $ac_func;
44498 return f != $ac_func;
44503 rm -f conftest.$ac_objext conftest$ac_exeext
44504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44505 (eval $ac_link) 2>conftest.er1
44507 grep -v '^ *+' conftest.er1 >conftest.err
44509 cat conftest.err >&5
44510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44511 (exit $ac_status); } &&
44512 { ac_try='test -z "$ac_c_werror_flag"
44513 || test ! -s conftest.err'
44514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44515 (eval $ac_try) 2>&5
44517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44518 (exit $ac_status); }; } &&
44519 { ac_try='test -s conftest$ac_exeext'
44520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44521 (eval $ac_try) 2>&5
44523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44524 (exit $ac_status); }; }; then
44525 eval "$as_ac_var=yes"
44527 echo "$as_me: failed program was:" >&5
44528 sed 's/^/| /' conftest.$ac_ext >&5
44530 eval "$as_ac_var=no"
44532 rm -f conftest.err conftest.$ac_objext \
44533 conftest$ac_exeext conftest.$ac_ext
44535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44536 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44537 if test `eval echo '${'$as_ac_var'}'` = yes; then
44538 cat >>confdefs.h <<_ACEOF
44539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44541 ice_have_shmget=yes
44545 if test "${ice_have_shmget}" = yes; then
44546 echo "$as_me:$LINENO: checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
44547 echo $ECHO_N "checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
44548 if test "${ice_cv_have_shmget_decl+set}" = set; then
44549 echo $ECHO_N "(cached) $ECHO_C" >&6
44552 ice_cv_have_shmget_decl=no
44553 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44554 ice_re_word='(^|[^a-zA-Z0-9_])'
44555 for header in sys/types.h sys/ipc.h sys/shm.h; do
44556 # Check for ordinary declaration
44557 cat >conftest.$ac_ext <<_ACEOF
44560 cat confdefs.h >>conftest.$ac_ext
44561 cat >>conftest.$ac_ext <<_ACEOF
44562 /* end confdefs.h. */
44566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44567 $EGREP "${ice_re_word}shmget[ ]*\(" >/dev/null 2>&1; then
44568 ice_cv_have_shmget_decl=yes
44572 if test "$ice_cv_have_shmget_decl" = yes; then
44575 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44576 cat >conftest.$ac_ext <<_ACEOF
44579 cat confdefs.h >>conftest.$ac_ext
44580 cat >>conftest.$ac_ext <<_ACEOF
44581 /* end confdefs.h. */
44585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44586 $EGREP "${ice_re_word}shmget[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44587 ice_cv_have_shmget_decl=yes
44591 if test "$ice_cv_have_shmget_decl" = yes; then
44598 echo "$as_me:$LINENO: result: $ice_cv_have_shmget_decl" >&5
44599 echo "${ECHO_T}$ice_cv_have_shmget_decl" >&6
44600 if test "$ice_cv_have_shmget_decl" = yes; then
44602 cat >>confdefs.h <<_ACEOF
44603 #define HAVE_SHMGET_DECL 1
44610 if test "$ac_cv_func_mmap_fixed_mapped" != yes; then
44611 case "$FORCE_MMAP" in
44613 if test "$ac_cv_func_shmget" != yes; then
44614 { echo "$as_me:$LINENO: WARNING: *** Neither shmget() nor mmap() found!" >&5
44615 echo "$as_me: WARNING: *** Neither shmget() nor mmap() found!" >&2;}
44616 { echo "$as_me:$LINENO: WARNING: *** This system will not support the Amanda server." >&5
44617 echo "$as_me: WARNING: *** This system will not support the Amanda server." >&2;}
44618 NO_SERVER_MODE=true
44622 { echo "$as_me:$LINENO: WARNING: *** --with-mmap used on a system with no mmap() support!" >&5
44623 echo "$as_me: WARNING: *** --with-mmap used on a system with no mmap() support!" >&2;}
44624 { echo "$as_me:$LINENO: WARNING: *** This system will not support the Amanda server." >&5
44625 echo "$as_me: WARNING: *** This system will not support the Amanda server." >&2;}
44626 NO_SERVER_MODE=true
44632 ice_have_shquote=no
44634 for ac_func in shquote
44636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44637 echo "$as_me:$LINENO: checking for $ac_func" >&5
44638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44639 if eval "test \"\${$as_ac_var+set}\" = set"; then
44640 echo $ECHO_N "(cached) $ECHO_C" >&6
44642 cat >conftest.$ac_ext <<_ACEOF
44645 cat confdefs.h >>conftest.$ac_ext
44646 cat >>conftest.$ac_ext <<_ACEOF
44647 /* end confdefs.h. */
44648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44650 #define $ac_func innocuous_$ac_func
44652 /* System header to define __stub macros and hopefully few prototypes,
44653 which can conflict with char $ac_func (); below.
44654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44655 <limits.h> exists even on freestanding compilers. */
44658 # include <limits.h>
44660 # include <assert.h>
44665 /* Override any gcc2 internal prototype to avoid an error. */
44670 /* We use char because int might match the return type of a gcc2
44671 builtin and then its argument prototype would still apply. */
44673 /* The GNU C library defines this for functions which it implements
44674 to always fail with ENOSYS. Some functions are actually named
44675 something starting with __ and the normal name is an alias. */
44676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44679 char (*f) () = $ac_func;
44688 return f != $ac_func;
44693 rm -f conftest.$ac_objext conftest$ac_exeext
44694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44695 (eval $ac_link) 2>conftest.er1
44697 grep -v '^ *+' conftest.er1 >conftest.err
44699 cat conftest.err >&5
44700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44701 (exit $ac_status); } &&
44702 { ac_try='test -z "$ac_c_werror_flag"
44703 || test ! -s conftest.err'
44704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44705 (eval $ac_try) 2>&5
44707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44708 (exit $ac_status); }; } &&
44709 { ac_try='test -s conftest$ac_exeext'
44710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44711 (eval $ac_try) 2>&5
44713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44714 (exit $ac_status); }; }; then
44715 eval "$as_ac_var=yes"
44717 echo "$as_me: failed program was:" >&5
44718 sed 's/^/| /' conftest.$ac_ext >&5
44720 eval "$as_ac_var=no"
44722 rm -f conftest.err conftest.$ac_objext \
44723 conftest$ac_exeext conftest.$ac_ext
44725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44727 if test `eval echo '${'$as_ac_var'}'` = yes; then
44728 cat >>confdefs.h <<_ACEOF
44729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44731 ice_have_shquote=yes
44735 if test "${ice_have_shquote}" = yes; then
44736 echo "$as_me:$LINENO: checking for shquote declaration in stdlib.h" >&5
44737 echo $ECHO_N "checking for shquote declaration in stdlib.h... $ECHO_C" >&6
44738 if test "${ice_cv_have_shquote_decl+set}" = set; then
44739 echo $ECHO_N "(cached) $ECHO_C" >&6
44742 ice_cv_have_shquote_decl=no
44743 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44744 ice_re_word='(^|[^a-zA-Z0-9_])'
44745 for header in stdlib.h; do
44746 # Check for ordinary declaration
44747 cat >conftest.$ac_ext <<_ACEOF
44750 cat confdefs.h >>conftest.$ac_ext
44751 cat >>conftest.$ac_ext <<_ACEOF
44752 /* end confdefs.h. */
44756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44757 $EGREP "${ice_re_word}shquote[ ]*\(" >/dev/null 2>&1; then
44758 ice_cv_have_shquote_decl=yes
44762 if test "$ice_cv_have_shquote_decl" = yes; then
44765 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44766 cat >conftest.$ac_ext <<_ACEOF
44769 cat confdefs.h >>conftest.$ac_ext
44770 cat >>conftest.$ac_ext <<_ACEOF
44771 /* end confdefs.h. */
44775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44776 $EGREP "${ice_re_word}shquote[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44777 ice_cv_have_shquote_decl=yes
44781 if test "$ice_cv_have_shquote_decl" = yes; then
44788 echo "$as_me:$LINENO: result: $ice_cv_have_shquote_decl" >&5
44789 echo "${ECHO_T}$ice_cv_have_shquote_decl" >&6
44790 if test "$ice_cv_have_shquote_decl" = yes; then
44792 cat >>confdefs.h <<_ACEOF
44793 #define HAVE_SHQUOTE_DECL 1
44801 ice_have_snprintf=no
44803 for ac_func in snprintf
44805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44806 echo "$as_me:$LINENO: checking for $ac_func" >&5
44807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44808 if eval "test \"\${$as_ac_var+set}\" = set"; then
44809 echo $ECHO_N "(cached) $ECHO_C" >&6
44811 cat >conftest.$ac_ext <<_ACEOF
44814 cat confdefs.h >>conftest.$ac_ext
44815 cat >>conftest.$ac_ext <<_ACEOF
44816 /* end confdefs.h. */
44817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44819 #define $ac_func innocuous_$ac_func
44821 /* System header to define __stub macros and hopefully few prototypes,
44822 which can conflict with char $ac_func (); below.
44823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44824 <limits.h> exists even on freestanding compilers. */
44827 # include <limits.h>
44829 # include <assert.h>
44834 /* Override any gcc2 internal prototype to avoid an error. */
44839 /* We use char because int might match the return type of a gcc2
44840 builtin and then its argument prototype would still apply. */
44842 /* The GNU C library defines this for functions which it implements
44843 to always fail with ENOSYS. Some functions are actually named
44844 something starting with __ and the normal name is an alias. */
44845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44848 char (*f) () = $ac_func;
44857 return f != $ac_func;
44862 rm -f conftest.$ac_objext conftest$ac_exeext
44863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44864 (eval $ac_link) 2>conftest.er1
44866 grep -v '^ *+' conftest.er1 >conftest.err
44868 cat conftest.err >&5
44869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44870 (exit $ac_status); } &&
44871 { ac_try='test -z "$ac_c_werror_flag"
44872 || test ! -s conftest.err'
44873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44874 (eval $ac_try) 2>&5
44876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44877 (exit $ac_status); }; } &&
44878 { ac_try='test -s conftest$ac_exeext'
44879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44880 (eval $ac_try) 2>&5
44882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44883 (exit $ac_status); }; }; then
44884 eval "$as_ac_var=yes"
44886 echo "$as_me: failed program was:" >&5
44887 sed 's/^/| /' conftest.$ac_ext >&5
44889 eval "$as_ac_var=no"
44891 rm -f conftest.err conftest.$ac_objext \
44892 conftest$ac_exeext conftest.$ac_ext
44894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44896 if test `eval echo '${'$as_ac_var'}'` = yes; then
44897 cat >>confdefs.h <<_ACEOF
44898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44900 ice_have_snprintf=yes
44904 if test "${ice_have_snprintf}" = yes; then
44905 echo "$as_me:$LINENO: checking for snprintf declaration in stdio.h" >&5
44906 echo $ECHO_N "checking for snprintf declaration in stdio.h... $ECHO_C" >&6
44907 if test "${ice_cv_have_snprintf_decl+set}" = set; then
44908 echo $ECHO_N "(cached) $ECHO_C" >&6
44911 ice_cv_have_snprintf_decl=no
44912 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44913 ice_re_word='(^|[^a-zA-Z0-9_])'
44914 for header in stdio.h; do
44915 # Check for ordinary declaration
44916 cat >conftest.$ac_ext <<_ACEOF
44919 cat confdefs.h >>conftest.$ac_ext
44920 cat >>conftest.$ac_ext <<_ACEOF
44921 /* end confdefs.h. */
44925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44926 $EGREP "${ice_re_word}snprintf[ ]*\(" >/dev/null 2>&1; then
44927 ice_cv_have_snprintf_decl=yes
44931 if test "$ice_cv_have_snprintf_decl" = yes; then
44934 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44935 cat >conftest.$ac_ext <<_ACEOF
44938 cat confdefs.h >>conftest.$ac_ext
44939 cat >>conftest.$ac_ext <<_ACEOF
44940 /* end confdefs.h. */
44944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44945 $EGREP "${ice_re_word}snprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44946 ice_cv_have_snprintf_decl=yes
44950 if test "$ice_cv_have_snprintf_decl" = yes; then
44957 echo "$as_me:$LINENO: result: $ice_cv_have_snprintf_decl" >&5
44958 echo "${ECHO_T}$ice_cv_have_snprintf_decl" >&6
44959 if test "$ice_cv_have_snprintf_decl" = yes; then
44961 cat >>confdefs.h <<_ACEOF
44962 #define HAVE_SNPRINTF_DECL 1
44969 ice_have_vsnprintf=no
44971 for ac_func in vsnprintf
44973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44974 echo "$as_me:$LINENO: checking for $ac_func" >&5
44975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44976 if eval "test \"\${$as_ac_var+set}\" = set"; then
44977 echo $ECHO_N "(cached) $ECHO_C" >&6
44979 cat >conftest.$ac_ext <<_ACEOF
44982 cat confdefs.h >>conftest.$ac_ext
44983 cat >>conftest.$ac_ext <<_ACEOF
44984 /* end confdefs.h. */
44985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44987 #define $ac_func innocuous_$ac_func
44989 /* System header to define __stub macros and hopefully few prototypes,
44990 which can conflict with char $ac_func (); below.
44991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44992 <limits.h> exists even on freestanding compilers. */
44995 # include <limits.h>
44997 # include <assert.h>
45002 /* Override any gcc2 internal prototype to avoid an error. */
45007 /* We use char because int might match the return type of a gcc2
45008 builtin and then its argument prototype would still apply. */
45010 /* The GNU C library defines this for functions which it implements
45011 to always fail with ENOSYS. Some functions are actually named
45012 something starting with __ and the normal name is an alias. */
45013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45016 char (*f) () = $ac_func;
45025 return f != $ac_func;
45030 rm -f conftest.$ac_objext conftest$ac_exeext
45031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45032 (eval $ac_link) 2>conftest.er1
45034 grep -v '^ *+' conftest.er1 >conftest.err
45036 cat conftest.err >&5
45037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45038 (exit $ac_status); } &&
45039 { ac_try='test -z "$ac_c_werror_flag"
45040 || test ! -s conftest.err'
45041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45042 (eval $ac_try) 2>&5
45044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45045 (exit $ac_status); }; } &&
45046 { ac_try='test -s conftest$ac_exeext'
45047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45048 (eval $ac_try) 2>&5
45050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45051 (exit $ac_status); }; }; then
45052 eval "$as_ac_var=yes"
45054 echo "$as_me: failed program was:" >&5
45055 sed 's/^/| /' conftest.$ac_ext >&5
45057 eval "$as_ac_var=no"
45059 rm -f conftest.err conftest.$ac_objext \
45060 conftest$ac_exeext conftest.$ac_ext
45062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45064 if test `eval echo '${'$as_ac_var'}'` = yes; then
45065 cat >>confdefs.h <<_ACEOF
45066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45068 ice_have_vsnprintf=yes
45072 if test "${ice_have_vsnprintf}" = yes; then
45073 echo "$as_me:$LINENO: checking for vsnprintf declaration in stdio.h" >&5
45074 echo $ECHO_N "checking for vsnprintf declaration in stdio.h... $ECHO_C" >&6
45075 if test "${ice_cv_have_vsnprintf_decl+set}" = set; then
45076 echo $ECHO_N "(cached) $ECHO_C" >&6
45079 ice_cv_have_vsnprintf_decl=no
45080 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45081 ice_re_word='(^|[^a-zA-Z0-9_])'
45082 for header in stdio.h; do
45083 # Check for ordinary declaration
45084 cat >conftest.$ac_ext <<_ACEOF
45087 cat confdefs.h >>conftest.$ac_ext
45088 cat >>conftest.$ac_ext <<_ACEOF
45089 /* end confdefs.h. */
45093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45094 $EGREP "${ice_re_word}vsnprintf[ ]*\(" >/dev/null 2>&1; then
45095 ice_cv_have_vsnprintf_decl=yes
45099 if test "$ice_cv_have_vsnprintf_decl" = yes; then
45102 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45103 cat >conftest.$ac_ext <<_ACEOF
45106 cat confdefs.h >>conftest.$ac_ext
45107 cat >>conftest.$ac_ext <<_ACEOF
45108 /* end confdefs.h. */
45112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45113 $EGREP "${ice_re_word}vsnprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45114 ice_cv_have_vsnprintf_decl=yes
45118 if test "$ice_cv_have_vsnprintf_decl" = yes; then
45125 echo "$as_me:$LINENO: result: $ice_cv_have_vsnprintf_decl" >&5
45126 echo "${ECHO_T}$ice_cv_have_vsnprintf_decl" >&6
45127 if test "$ice_cv_have_vsnprintf_decl" = yes; then
45129 cat >>confdefs.h <<_ACEOF
45130 #define HAVE_VSNPRINTF_DECL 1
45136 if test x"$ice_have_snprintf" != x"yes" ||
45137 test x"$ice_have_vsnprintf" != x"yes"; then
45139 "snprintf.$ac_objext" | \
45140 *" snprintf.$ac_objext" | \
45141 "snprintf.$ac_objext "* | \
45142 *" snprintf.$ac_objext "* ) ;;
45143 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
45148 for ac_func in snprintf
45150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45151 echo "$as_me:$LINENO: checking for $ac_func" >&5
45152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45153 if eval "test \"\${$as_ac_var+set}\" = set"; then
45154 echo $ECHO_N "(cached) $ECHO_C" >&6
45156 cat >conftest.$ac_ext <<_ACEOF
45159 cat confdefs.h >>conftest.$ac_ext
45160 cat >>conftest.$ac_ext <<_ACEOF
45161 /* end confdefs.h. */
45162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45164 #define $ac_func innocuous_$ac_func
45166 /* System header to define __stub macros and hopefully few prototypes,
45167 which can conflict with char $ac_func (); below.
45168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45169 <limits.h> exists even on freestanding compilers. */
45172 # include <limits.h>
45174 # include <assert.h>
45179 /* Override any gcc2 internal prototype to avoid an error. */
45184 /* We use char because int might match the return type of a gcc2
45185 builtin and then its argument prototype would still apply. */
45187 /* The GNU C library defines this for functions which it implements
45188 to always fail with ENOSYS. Some functions are actually named
45189 something starting with __ and the normal name is an alias. */
45190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45193 char (*f) () = $ac_func;
45202 return f != $ac_func;
45207 rm -f conftest.$ac_objext conftest$ac_exeext
45208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45209 (eval $ac_link) 2>conftest.er1
45211 grep -v '^ *+' conftest.er1 >conftest.err
45213 cat conftest.err >&5
45214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45215 (exit $ac_status); } &&
45216 { ac_try='test -z "$ac_c_werror_flag"
45217 || test ! -s conftest.err'
45218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45219 (eval $ac_try) 2>&5
45221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45222 (exit $ac_status); }; } &&
45223 { ac_try='test -s conftest$ac_exeext'
45224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45225 (eval $ac_try) 2>&5
45227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45228 (exit $ac_status); }; }; then
45229 eval "$as_ac_var=yes"
45231 echo "$as_me: failed program was:" >&5
45232 sed 's/^/| /' conftest.$ac_ext >&5
45234 eval "$as_ac_var=no"
45236 rm -f conftest.err conftest.$ac_objext \
45237 conftest$ac_exeext conftest.$ac_ext
45239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45240 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45241 if test `eval echo '${'$as_ac_var'}'` = yes; then
45242 cat >>confdefs.h <<_ACEOF
45243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45248 "$ac_func.$ac_objext" | \
45249 *" $ac_func.$ac_objext" | \
45250 "$ac_func.$ac_objext "* | \
45251 *" $ac_func.$ac_objext "* ) ;;
45252 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
45265 for ac_func in sigaction sigemptyset sigvec
45267 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45268 echo "$as_me:$LINENO: checking for $ac_func" >&5
45269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45270 if eval "test \"\${$as_ac_var+set}\" = set"; then
45271 echo $ECHO_N "(cached) $ECHO_C" >&6
45273 cat >conftest.$ac_ext <<_ACEOF
45276 cat confdefs.h >>conftest.$ac_ext
45277 cat >>conftest.$ac_ext <<_ACEOF
45278 /* end confdefs.h. */
45279 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45281 #define $ac_func innocuous_$ac_func
45283 /* System header to define __stub macros and hopefully few prototypes,
45284 which can conflict with char $ac_func (); below.
45285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45286 <limits.h> exists even on freestanding compilers. */
45289 # include <limits.h>
45291 # include <assert.h>
45296 /* Override any gcc2 internal prototype to avoid an error. */
45301 /* We use char because int might match the return type of a gcc2
45302 builtin and then its argument prototype would still apply. */
45304 /* The GNU C library defines this for functions which it implements
45305 to always fail with ENOSYS. Some functions are actually named
45306 something starting with __ and the normal name is an alias. */
45307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45310 char (*f) () = $ac_func;
45319 return f != $ac_func;
45324 rm -f conftest.$ac_objext conftest$ac_exeext
45325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45326 (eval $ac_link) 2>conftest.er1
45328 grep -v '^ *+' conftest.er1 >conftest.err
45330 cat conftest.err >&5
45331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45332 (exit $ac_status); } &&
45333 { ac_try='test -z "$ac_c_werror_flag"
45334 || test ! -s conftest.err'
45335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45336 (eval $ac_try) 2>&5
45338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45339 (exit $ac_status); }; } &&
45340 { ac_try='test -s conftest$ac_exeext'
45341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45342 (eval $ac_try) 2>&5
45344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45345 (exit $ac_status); }; }; then
45346 eval "$as_ac_var=yes"
45348 echo "$as_me: failed program was:" >&5
45349 sed 's/^/| /' conftest.$ac_ext >&5
45351 eval "$as_ac_var=no"
45353 rm -f conftest.err conftest.$ac_objext \
45354 conftest$ac_exeext conftest.$ac_ext
45356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45357 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45358 if test `eval echo '${'$as_ac_var'}'` = yes; then
45359 cat >>confdefs.h <<_ACEOF
45360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45369 for ac_func in socket
45371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45372 echo "$as_me:$LINENO: checking for $ac_func" >&5
45373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45374 if eval "test \"\${$as_ac_var+set}\" = set"; then
45375 echo $ECHO_N "(cached) $ECHO_C" >&6
45377 cat >conftest.$ac_ext <<_ACEOF
45380 cat confdefs.h >>conftest.$ac_ext
45381 cat >>conftest.$ac_ext <<_ACEOF
45382 /* end confdefs.h. */
45383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45385 #define $ac_func innocuous_$ac_func
45387 /* System header to define __stub macros and hopefully few prototypes,
45388 which can conflict with char $ac_func (); below.
45389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45390 <limits.h> exists even on freestanding compilers. */
45393 # include <limits.h>
45395 # include <assert.h>
45400 /* Override any gcc2 internal prototype to avoid an error. */
45405 /* We use char because int might match the return type of a gcc2
45406 builtin and then its argument prototype would still apply. */
45408 /* The GNU C library defines this for functions which it implements
45409 to always fail with ENOSYS. Some functions are actually named
45410 something starting with __ and the normal name is an alias. */
45411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45414 char (*f) () = $ac_func;
45423 return f != $ac_func;
45428 rm -f conftest.$ac_objext conftest$ac_exeext
45429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45430 (eval $ac_link) 2>conftest.er1
45432 grep -v '^ *+' conftest.er1 >conftest.err
45434 cat conftest.err >&5
45435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45436 (exit $ac_status); } &&
45437 { ac_try='test -z "$ac_c_werror_flag"
45438 || test ! -s conftest.err'
45439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45440 (eval $ac_try) 2>&5
45442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45443 (exit $ac_status); }; } &&
45444 { ac_try='test -s conftest$ac_exeext'
45445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45446 (eval $ac_try) 2>&5
45448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45449 (exit $ac_status); }; }; then
45450 eval "$as_ac_var=yes"
45452 echo "$as_me: failed program was:" >&5
45453 sed 's/^/| /' conftest.$ac_ext >&5
45455 eval "$as_ac_var=no"
45457 rm -f conftest.err conftest.$ac_objext \
45458 conftest$ac_exeext conftest.$ac_ext
45460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45461 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45462 if test `eval echo '${'$as_ac_var'}'` = yes; then
45463 cat >>confdefs.h <<_ACEOF
45464 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45466 ice_have_socket=yes
45470 if test "${ice_have_socket}" = yes; then
45471 echo "$as_me:$LINENO: checking for socket declaration in sys/types.h sys/socket.h" >&5
45472 echo $ECHO_N "checking for socket declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
45473 if test "${ice_cv_have_socket_decl+set}" = set; then
45474 echo $ECHO_N "(cached) $ECHO_C" >&6
45477 ice_cv_have_socket_decl=no
45478 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45479 ice_re_word='(^|[^a-zA-Z0-9_])'
45480 for header in sys/types.h sys/socket.h; do
45481 # Check for ordinary declaration
45482 cat >conftest.$ac_ext <<_ACEOF
45485 cat confdefs.h >>conftest.$ac_ext
45486 cat >>conftest.$ac_ext <<_ACEOF
45487 /* end confdefs.h. */
45491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45492 $EGREP "${ice_re_word}socket[ ]*\(" >/dev/null 2>&1; then
45493 ice_cv_have_socket_decl=yes
45497 if test "$ice_cv_have_socket_decl" = yes; then
45500 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45501 cat >conftest.$ac_ext <<_ACEOF
45504 cat confdefs.h >>conftest.$ac_ext
45505 cat >>conftest.$ac_ext <<_ACEOF
45506 /* end confdefs.h. */
45510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45511 $EGREP "${ice_re_word}socket[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45512 ice_cv_have_socket_decl=yes
45516 if test "$ice_cv_have_socket_decl" = yes; then
45523 echo "$as_me:$LINENO: result: $ice_cv_have_socket_decl" >&5
45524 echo "${ECHO_T}$ice_cv_have_socket_decl" >&6
45525 if test "$ice_cv_have_socket_decl" = yes; then
45527 cat >>confdefs.h <<_ACEOF
45528 #define HAVE_SOCKET_DECL 1
45535 ice_have_socketpair=no
45537 for ac_func in socketpair
45539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45540 echo "$as_me:$LINENO: checking for $ac_func" >&5
45541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45542 if eval "test \"\${$as_ac_var+set}\" = set"; then
45543 echo $ECHO_N "(cached) $ECHO_C" >&6
45545 cat >conftest.$ac_ext <<_ACEOF
45548 cat confdefs.h >>conftest.$ac_ext
45549 cat >>conftest.$ac_ext <<_ACEOF
45550 /* end confdefs.h. */
45551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45553 #define $ac_func innocuous_$ac_func
45555 /* System header to define __stub macros and hopefully few prototypes,
45556 which can conflict with char $ac_func (); below.
45557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45558 <limits.h> exists even on freestanding compilers. */
45561 # include <limits.h>
45563 # include <assert.h>
45568 /* Override any gcc2 internal prototype to avoid an error. */
45573 /* We use char because int might match the return type of a gcc2
45574 builtin and then its argument prototype would still apply. */
45576 /* The GNU C library defines this for functions which it implements
45577 to always fail with ENOSYS. Some functions are actually named
45578 something starting with __ and the normal name is an alias. */
45579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45582 char (*f) () = $ac_func;
45591 return f != $ac_func;
45596 rm -f conftest.$ac_objext conftest$ac_exeext
45597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45598 (eval $ac_link) 2>conftest.er1
45600 grep -v '^ *+' conftest.er1 >conftest.err
45602 cat conftest.err >&5
45603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45604 (exit $ac_status); } &&
45605 { ac_try='test -z "$ac_c_werror_flag"
45606 || test ! -s conftest.err'
45607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45608 (eval $ac_try) 2>&5
45610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45611 (exit $ac_status); }; } &&
45612 { ac_try='test -s conftest$ac_exeext'
45613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45614 (eval $ac_try) 2>&5
45616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45617 (exit $ac_status); }; }; then
45618 eval "$as_ac_var=yes"
45620 echo "$as_me: failed program was:" >&5
45621 sed 's/^/| /' conftest.$ac_ext >&5
45623 eval "$as_ac_var=no"
45625 rm -f conftest.err conftest.$ac_objext \
45626 conftest$ac_exeext conftest.$ac_ext
45628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45630 if test `eval echo '${'$as_ac_var'}'` = yes; then
45631 cat >>confdefs.h <<_ACEOF
45632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45634 ice_have_socketpair=yes
45638 if test "${ice_have_socketpair}" = yes; then
45639 echo "$as_me:$LINENO: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
45640 echo $ECHO_N "checking for socketpair declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
45641 if test "${ice_cv_have_socketpair_decl+set}" = set; then
45642 echo $ECHO_N "(cached) $ECHO_C" >&6
45645 ice_cv_have_socketpair_decl=no
45646 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45647 ice_re_word='(^|[^a-zA-Z0-9_])'
45648 for header in sys/types.h sys/socket.h; do
45649 # Check for ordinary declaration
45650 cat >conftest.$ac_ext <<_ACEOF
45653 cat confdefs.h >>conftest.$ac_ext
45654 cat >>conftest.$ac_ext <<_ACEOF
45655 /* end confdefs.h. */
45659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45660 $EGREP "${ice_re_word}socketpair[ ]*\(" >/dev/null 2>&1; then
45661 ice_cv_have_socketpair_decl=yes
45665 if test "$ice_cv_have_socketpair_decl" = yes; then
45668 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45669 cat >conftest.$ac_ext <<_ACEOF
45672 cat confdefs.h >>conftest.$ac_ext
45673 cat >>conftest.$ac_ext <<_ACEOF
45674 /* end confdefs.h. */
45678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45679 $EGREP "${ice_re_word}socketpair[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45680 ice_cv_have_socketpair_decl=yes
45684 if test "$ice_cv_have_socketpair_decl" = yes; then
45691 echo "$as_me:$LINENO: result: $ice_cv_have_socketpair_decl" >&5
45692 echo "${ECHO_T}$ice_cv_have_socketpair_decl" >&6
45693 if test "$ice_cv_have_socketpair_decl" = yes; then
45695 cat >>confdefs.h <<_ACEOF
45696 #define HAVE_SOCKETPAIR_DECL 1
45705 for ac_func in sscanf
45707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45708 echo "$as_me:$LINENO: checking for $ac_func" >&5
45709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45710 if eval "test \"\${$as_ac_var+set}\" = set"; then
45711 echo $ECHO_N "(cached) $ECHO_C" >&6
45713 cat >conftest.$ac_ext <<_ACEOF
45716 cat confdefs.h >>conftest.$ac_ext
45717 cat >>conftest.$ac_ext <<_ACEOF
45718 /* end confdefs.h. */
45719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45721 #define $ac_func innocuous_$ac_func
45723 /* System header to define __stub macros and hopefully few prototypes,
45724 which can conflict with char $ac_func (); below.
45725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45726 <limits.h> exists even on freestanding compilers. */
45729 # include <limits.h>
45731 # include <assert.h>
45736 /* Override any gcc2 internal prototype to avoid an error. */
45741 /* We use char because int might match the return type of a gcc2
45742 builtin and then its argument prototype would still apply. */
45744 /* The GNU C library defines this for functions which it implements
45745 to always fail with ENOSYS. Some functions are actually named
45746 something starting with __ and the normal name is an alias. */
45747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45750 char (*f) () = $ac_func;
45759 return f != $ac_func;
45764 rm -f conftest.$ac_objext conftest$ac_exeext
45765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45766 (eval $ac_link) 2>conftest.er1
45768 grep -v '^ *+' conftest.er1 >conftest.err
45770 cat conftest.err >&5
45771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45772 (exit $ac_status); } &&
45773 { ac_try='test -z "$ac_c_werror_flag"
45774 || test ! -s conftest.err'
45775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45776 (eval $ac_try) 2>&5
45778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45779 (exit $ac_status); }; } &&
45780 { ac_try='test -s conftest$ac_exeext'
45781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45782 (eval $ac_try) 2>&5
45784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45785 (exit $ac_status); }; }; then
45786 eval "$as_ac_var=yes"
45788 echo "$as_me: failed program was:" >&5
45789 sed 's/^/| /' conftest.$ac_ext >&5
45791 eval "$as_ac_var=no"
45793 rm -f conftest.err conftest.$ac_objext \
45794 conftest$ac_exeext conftest.$ac_ext
45796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45797 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45798 if test `eval echo '${'$as_ac_var'}'` = yes; then
45799 cat >>confdefs.h <<_ACEOF
45800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45802 ice_have_sscanf=yes
45806 if test "${ice_have_sscanf}" = yes; then
45807 echo "$as_me:$LINENO: checking for sscanf declaration in stdio.h" >&5
45808 echo $ECHO_N "checking for sscanf declaration in stdio.h... $ECHO_C" >&6
45809 if test "${ice_cv_have_sscanf_decl+set}" = set; then
45810 echo $ECHO_N "(cached) $ECHO_C" >&6
45813 ice_cv_have_sscanf_decl=no
45814 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45815 ice_re_word='(^|[^a-zA-Z0-9_])'
45816 for header in stdio.h; do
45817 # Check for ordinary declaration
45818 cat >conftest.$ac_ext <<_ACEOF
45821 cat confdefs.h >>conftest.$ac_ext
45822 cat >>conftest.$ac_ext <<_ACEOF
45823 /* end confdefs.h. */
45827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45828 $EGREP "${ice_re_word}sscanf[ ]*\(" >/dev/null 2>&1; then
45829 ice_cv_have_sscanf_decl=yes
45833 if test "$ice_cv_have_sscanf_decl" = yes; then
45836 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45837 cat >conftest.$ac_ext <<_ACEOF
45840 cat confdefs.h >>conftest.$ac_ext
45841 cat >>conftest.$ac_ext <<_ACEOF
45842 /* end confdefs.h. */
45846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45847 $EGREP "${ice_re_word}sscanf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45848 ice_cv_have_sscanf_decl=yes
45852 if test "$ice_cv_have_sscanf_decl" = yes; then
45859 echo "$as_me:$LINENO: result: $ice_cv_have_sscanf_decl" >&5
45860 echo "${ECHO_T}$ice_cv_have_sscanf_decl" >&6
45861 if test "$ice_cv_have_sscanf_decl" = yes; then
45863 cat >>confdefs.h <<_ACEOF
45864 #define HAVE_SSCANF_DECL 1
45872 for ac_func in statfs statvfs
45874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45875 echo "$as_me:$LINENO: checking for $ac_func" >&5
45876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45877 if eval "test \"\${$as_ac_var+set}\" = set"; then
45878 echo $ECHO_N "(cached) $ECHO_C" >&6
45880 cat >conftest.$ac_ext <<_ACEOF
45883 cat confdefs.h >>conftest.$ac_ext
45884 cat >>conftest.$ac_ext <<_ACEOF
45885 /* end confdefs.h. */
45886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45888 #define $ac_func innocuous_$ac_func
45890 /* System header to define __stub macros and hopefully few prototypes,
45891 which can conflict with char $ac_func (); below.
45892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45893 <limits.h> exists even on freestanding compilers. */
45896 # include <limits.h>
45898 # include <assert.h>
45903 /* Override any gcc2 internal prototype to avoid an error. */
45908 /* We use char because int might match the return type of a gcc2
45909 builtin and then its argument prototype would still apply. */
45911 /* The GNU C library defines this for functions which it implements
45912 to always fail with ENOSYS. Some functions are actually named
45913 something starting with __ and the normal name is an alias. */
45914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45917 char (*f) () = $ac_func;
45926 return f != $ac_func;
45931 rm -f conftest.$ac_objext conftest$ac_exeext
45932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45933 (eval $ac_link) 2>conftest.er1
45935 grep -v '^ *+' conftest.er1 >conftest.err
45937 cat conftest.err >&5
45938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45939 (exit $ac_status); } &&
45940 { ac_try='test -z "$ac_c_werror_flag"
45941 || test ! -s conftest.err'
45942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45943 (eval $ac_try) 2>&5
45945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45946 (exit $ac_status); }; } &&
45947 { ac_try='test -s conftest$ac_exeext'
45948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45949 (eval $ac_try) 2>&5
45951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45952 (exit $ac_status); }; }; then
45953 eval "$as_ac_var=yes"
45955 echo "$as_me: failed program was:" >&5
45956 sed 's/^/| /' conftest.$ac_ext >&5
45958 eval "$as_ac_var=no"
45960 rm -f conftest.err conftest.$ac_objext \
45961 conftest$ac_exeext conftest.$ac_ext
45963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45964 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45965 if test `eval echo '${'$as_ac_var'}'` = yes; then
45966 cat >>confdefs.h <<_ACEOF
45967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45974 for ac_func in strerror
45976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45977 echo "$as_me:$LINENO: checking for $ac_func" >&5
45978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45979 if eval "test \"\${$as_ac_var+set}\" = set"; then
45980 echo $ECHO_N "(cached) $ECHO_C" >&6
45982 cat >conftest.$ac_ext <<_ACEOF
45985 cat confdefs.h >>conftest.$ac_ext
45986 cat >>conftest.$ac_ext <<_ACEOF
45987 /* end confdefs.h. */
45988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45990 #define $ac_func innocuous_$ac_func
45992 /* System header to define __stub macros and hopefully few prototypes,
45993 which can conflict with char $ac_func (); below.
45994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45995 <limits.h> exists even on freestanding compilers. */
45998 # include <limits.h>
46000 # include <assert.h>
46005 /* Override any gcc2 internal prototype to avoid an error. */
46010 /* We use char because int might match the return type of a gcc2
46011 builtin and then its argument prototype would still apply. */
46013 /* The GNU C library defines this for functions which it implements
46014 to always fail with ENOSYS. Some functions are actually named
46015 something starting with __ and the normal name is an alias. */
46016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46019 char (*f) () = $ac_func;
46028 return f != $ac_func;
46033 rm -f conftest.$ac_objext conftest$ac_exeext
46034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46035 (eval $ac_link) 2>conftest.er1
46037 grep -v '^ *+' conftest.er1 >conftest.err
46039 cat conftest.err >&5
46040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46041 (exit $ac_status); } &&
46042 { ac_try='test -z "$ac_c_werror_flag"
46043 || test ! -s conftest.err'
46044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46045 (eval $ac_try) 2>&5
46047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46048 (exit $ac_status); }; } &&
46049 { ac_try='test -s conftest$ac_exeext'
46050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46051 (eval $ac_try) 2>&5
46053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46054 (exit $ac_status); }; }; then
46055 eval "$as_ac_var=yes"
46057 echo "$as_me: failed program was:" >&5
46058 sed 's/^/| /' conftest.$ac_ext >&5
46060 eval "$as_ac_var=no"
46062 rm -f conftest.err conftest.$ac_objext \
46063 conftest$ac_exeext conftest.$ac_ext
46065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46067 if test `eval echo '${'$as_ac_var'}'` = yes; then
46068 cat >>confdefs.h <<_ACEOF
46069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46074 "$ac_func.$ac_objext" | \
46075 *" $ac_func.$ac_objext" | \
46076 "$ac_func.$ac_objext "* | \
46077 *" $ac_func.$ac_objext "* ) ;;
46078 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
46086 ice_have_strerror=no
46088 for ac_func in strerror
46090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46091 echo "$as_me:$LINENO: checking for $ac_func" >&5
46092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46093 if eval "test \"\${$as_ac_var+set}\" = set"; then
46094 echo $ECHO_N "(cached) $ECHO_C" >&6
46096 cat >conftest.$ac_ext <<_ACEOF
46099 cat confdefs.h >>conftest.$ac_ext
46100 cat >>conftest.$ac_ext <<_ACEOF
46101 /* end confdefs.h. */
46102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46104 #define $ac_func innocuous_$ac_func
46106 /* System header to define __stub macros and hopefully few prototypes,
46107 which can conflict with char $ac_func (); below.
46108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46109 <limits.h> exists even on freestanding compilers. */
46112 # include <limits.h>
46114 # include <assert.h>
46119 /* Override any gcc2 internal prototype to avoid an error. */
46124 /* We use char because int might match the return type of a gcc2
46125 builtin and then its argument prototype would still apply. */
46127 /* The GNU C library defines this for functions which it implements
46128 to always fail with ENOSYS. Some functions are actually named
46129 something starting with __ and the normal name is an alias. */
46130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46133 char (*f) () = $ac_func;
46142 return f != $ac_func;
46147 rm -f conftest.$ac_objext conftest$ac_exeext
46148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46149 (eval $ac_link) 2>conftest.er1
46151 grep -v '^ *+' conftest.er1 >conftest.err
46153 cat conftest.err >&5
46154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46155 (exit $ac_status); } &&
46156 { ac_try='test -z "$ac_c_werror_flag"
46157 || test ! -s conftest.err'
46158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46159 (eval $ac_try) 2>&5
46161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46162 (exit $ac_status); }; } &&
46163 { ac_try='test -s conftest$ac_exeext'
46164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46165 (eval $ac_try) 2>&5
46167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46168 (exit $ac_status); }; }; then
46169 eval "$as_ac_var=yes"
46171 echo "$as_me: failed program was:" >&5
46172 sed 's/^/| /' conftest.$ac_ext >&5
46174 eval "$as_ac_var=no"
46176 rm -f conftest.err conftest.$ac_objext \
46177 conftest$ac_exeext conftest.$ac_ext
46179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46181 if test `eval echo '${'$as_ac_var'}'` = yes; then
46182 cat >>confdefs.h <<_ACEOF
46183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46185 ice_have_strerror=yes
46189 if test "${ice_have_strerror}" = yes; then
46190 echo "$as_me:$LINENO: checking for strerror declaration in string.h strings.h" >&5
46191 echo $ECHO_N "checking for strerror declaration in string.h strings.h... $ECHO_C" >&6
46192 if test "${ice_cv_have_strerror_decl+set}" = set; then
46193 echo $ECHO_N "(cached) $ECHO_C" >&6
46196 ice_cv_have_strerror_decl=no
46197 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46198 ice_re_word='(^|[^a-zA-Z0-9_])'
46199 for header in string.h strings.h; do
46200 # Check for ordinary declaration
46201 cat >conftest.$ac_ext <<_ACEOF
46204 cat confdefs.h >>conftest.$ac_ext
46205 cat >>conftest.$ac_ext <<_ACEOF
46206 /* end confdefs.h. */
46210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46211 $EGREP "${ice_re_word}strerror[ ]*\(" >/dev/null 2>&1; then
46212 ice_cv_have_strerror_decl=yes
46216 if test "$ice_cv_have_strerror_decl" = yes; then
46219 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46220 cat >conftest.$ac_ext <<_ACEOF
46223 cat confdefs.h >>conftest.$ac_ext
46224 cat >>conftest.$ac_ext <<_ACEOF
46225 /* end confdefs.h. */
46229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46230 $EGREP "${ice_re_word}strerror[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46231 ice_cv_have_strerror_decl=yes
46235 if test "$ice_cv_have_strerror_decl" = yes; then
46242 echo "$as_me:$LINENO: result: $ice_cv_have_strerror_decl" >&5
46243 echo "${ECHO_T}$ice_cv_have_strerror_decl" >&6
46244 if test "$ice_cv_have_strerror_decl" = yes; then
46246 cat >>confdefs.h <<_ACEOF
46247 #define HAVE_STRERROR_DECL 1
46254 for ac_func in strftime
46256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46257 echo "$as_me:$LINENO: checking for $ac_func" >&5
46258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46259 if eval "test \"\${$as_ac_var+set}\" = set"; then
46260 echo $ECHO_N "(cached) $ECHO_C" >&6
46262 cat >conftest.$ac_ext <<_ACEOF
46265 cat confdefs.h >>conftest.$ac_ext
46266 cat >>conftest.$ac_ext <<_ACEOF
46267 /* end confdefs.h. */
46268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46270 #define $ac_func innocuous_$ac_func
46272 /* System header to define __stub macros and hopefully few prototypes,
46273 which can conflict with char $ac_func (); below.
46274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46275 <limits.h> exists even on freestanding compilers. */
46278 # include <limits.h>
46280 # include <assert.h>
46285 /* Override any gcc2 internal prototype to avoid an error. */
46290 /* We use char because int might match the return type of a gcc2
46291 builtin and then its argument prototype would still apply. */
46293 /* The GNU C library defines this for functions which it implements
46294 to always fail with ENOSYS. Some functions are actually named
46295 something starting with __ and the normal name is an alias. */
46296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46299 char (*f) () = $ac_func;
46308 return f != $ac_func;
46313 rm -f conftest.$ac_objext conftest$ac_exeext
46314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46315 (eval $ac_link) 2>conftest.er1
46317 grep -v '^ *+' conftest.er1 >conftest.err
46319 cat conftest.err >&5
46320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46321 (exit $ac_status); } &&
46322 { ac_try='test -z "$ac_c_werror_flag"
46323 || test ! -s conftest.err'
46324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46325 (eval $ac_try) 2>&5
46327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46328 (exit $ac_status); }; } &&
46329 { ac_try='test -s conftest$ac_exeext'
46330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46331 (eval $ac_try) 2>&5
46333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46334 (exit $ac_status); }; }; then
46335 eval "$as_ac_var=yes"
46337 echo "$as_me: failed program was:" >&5
46338 sed 's/^/| /' conftest.$ac_ext >&5
46340 eval "$as_ac_var=no"
46342 rm -f conftest.err conftest.$ac_objext \
46343 conftest$ac_exeext conftest.$ac_ext
46345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46346 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46347 if test `eval echo '${'$as_ac_var'}'` = yes; then
46348 cat >>confdefs.h <<_ACEOF
46349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46353 # strftime is in -lintl on SCO UNIX.
46354 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
46355 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
46356 if test "${ac_cv_lib_intl_strftime+set}" = set; then
46357 echo $ECHO_N "(cached) $ECHO_C" >&6
46359 ac_check_lib_save_LIBS=$LIBS
46360 LIBS="-lintl $LIBS"
46361 cat >conftest.$ac_ext <<_ACEOF
46364 cat confdefs.h >>conftest.$ac_ext
46365 cat >>conftest.$ac_ext <<_ACEOF
46366 /* end confdefs.h. */
46368 /* Override any gcc2 internal prototype to avoid an error. */
46372 /* We use char because int might match the return type of a gcc2
46373 builtin and then its argument prototype would still apply. */
46383 rm -f conftest.$ac_objext conftest$ac_exeext
46384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46385 (eval $ac_link) 2>conftest.er1
46387 grep -v '^ *+' conftest.er1 >conftest.err
46389 cat conftest.err >&5
46390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46391 (exit $ac_status); } &&
46392 { ac_try='test -z "$ac_c_werror_flag"
46393 || test ! -s conftest.err'
46394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46395 (eval $ac_try) 2>&5
46397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46398 (exit $ac_status); }; } &&
46399 { ac_try='test -s conftest$ac_exeext'
46400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46401 (eval $ac_try) 2>&5
46403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46404 (exit $ac_status); }; }; then
46405 ac_cv_lib_intl_strftime=yes
46407 echo "$as_me: failed program was:" >&5
46408 sed 's/^/| /' conftest.$ac_ext >&5
46410 ac_cv_lib_intl_strftime=no
46412 rm -f conftest.err conftest.$ac_objext \
46413 conftest$ac_exeext conftest.$ac_ext
46414 LIBS=$ac_check_lib_save_LIBS
46416 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
46417 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
46418 if test $ac_cv_lib_intl_strftime = yes; then
46419 cat >>confdefs.h <<\_ACEOF
46420 #define HAVE_STRFTIME 1
46423 LIBS="-lintl $LIBS"
46430 for ac_func in strftime
46432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46433 echo "$as_me:$LINENO: checking for $ac_func" >&5
46434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46435 if eval "test \"\${$as_ac_var+set}\" = set"; then
46436 echo $ECHO_N "(cached) $ECHO_C" >&6
46438 cat >conftest.$ac_ext <<_ACEOF
46441 cat confdefs.h >>conftest.$ac_ext
46442 cat >>conftest.$ac_ext <<_ACEOF
46443 /* end confdefs.h. */
46444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46446 #define $ac_func innocuous_$ac_func
46448 /* System header to define __stub macros and hopefully few prototypes,
46449 which can conflict with char $ac_func (); below.
46450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46451 <limits.h> exists even on freestanding compilers. */
46454 # include <limits.h>
46456 # include <assert.h>
46461 /* Override any gcc2 internal prototype to avoid an error. */
46466 /* We use char because int might match the return type of a gcc2
46467 builtin and then its argument prototype would still apply. */
46469 /* The GNU C library defines this for functions which it implements
46470 to always fail with ENOSYS. Some functions are actually named
46471 something starting with __ and the normal name is an alias. */
46472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46475 char (*f) () = $ac_func;
46484 return f != $ac_func;
46489 rm -f conftest.$ac_objext conftest$ac_exeext
46490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46491 (eval $ac_link) 2>conftest.er1
46493 grep -v '^ *+' conftest.er1 >conftest.err
46495 cat conftest.err >&5
46496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46497 (exit $ac_status); } &&
46498 { ac_try='test -z "$ac_c_werror_flag"
46499 || test ! -s conftest.err'
46500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46501 (eval $ac_try) 2>&5
46503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46504 (exit $ac_status); }; } &&
46505 { ac_try='test -s conftest$ac_exeext'
46506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46507 (eval $ac_try) 2>&5
46509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46510 (exit $ac_status); }; }; then
46511 eval "$as_ac_var=yes"
46513 echo "$as_me: failed program was:" >&5
46514 sed 's/^/| /' conftest.$ac_ext >&5
46516 eval "$as_ac_var=no"
46518 rm -f conftest.err conftest.$ac_objext \
46519 conftest$ac_exeext conftest.$ac_ext
46521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46522 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46523 if test `eval echo '${'$as_ac_var'}'` = yes; then
46524 cat >>confdefs.h <<_ACEOF
46525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46530 "$ac_func.$ac_objext" | \
46531 *" $ac_func.$ac_objext" | \
46532 "$ac_func.$ac_objext "* | \
46533 *" $ac_func.$ac_objext "* ) ;;
46534 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
46542 ice_have_strftime=no
46544 for ac_func in strftime
46546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46547 echo "$as_me:$LINENO: checking for $ac_func" >&5
46548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46549 if eval "test \"\${$as_ac_var+set}\" = set"; then
46550 echo $ECHO_N "(cached) $ECHO_C" >&6
46552 cat >conftest.$ac_ext <<_ACEOF
46555 cat confdefs.h >>conftest.$ac_ext
46556 cat >>conftest.$ac_ext <<_ACEOF
46557 /* end confdefs.h. */
46558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46560 #define $ac_func innocuous_$ac_func
46562 /* System header to define __stub macros and hopefully few prototypes,
46563 which can conflict with char $ac_func (); below.
46564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46565 <limits.h> exists even on freestanding compilers. */
46568 # include <limits.h>
46570 # include <assert.h>
46575 /* Override any gcc2 internal prototype to avoid an error. */
46580 /* We use char because int might match the return type of a gcc2
46581 builtin and then its argument prototype would still apply. */
46583 /* The GNU C library defines this for functions which it implements
46584 to always fail with ENOSYS. Some functions are actually named
46585 something starting with __ and the normal name is an alias. */
46586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46589 char (*f) () = $ac_func;
46598 return f != $ac_func;
46603 rm -f conftest.$ac_objext conftest$ac_exeext
46604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46605 (eval $ac_link) 2>conftest.er1
46607 grep -v '^ *+' conftest.er1 >conftest.err
46609 cat conftest.err >&5
46610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46611 (exit $ac_status); } &&
46612 { ac_try='test -z "$ac_c_werror_flag"
46613 || test ! -s conftest.err'
46614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46615 (eval $ac_try) 2>&5
46617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46618 (exit $ac_status); }; } &&
46619 { ac_try='test -s conftest$ac_exeext'
46620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46621 (eval $ac_try) 2>&5
46623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46624 (exit $ac_status); }; }; then
46625 eval "$as_ac_var=yes"
46627 echo "$as_me: failed program was:" >&5
46628 sed 's/^/| /' conftest.$ac_ext >&5
46630 eval "$as_ac_var=no"
46632 rm -f conftest.err conftest.$ac_objext \
46633 conftest$ac_exeext conftest.$ac_ext
46635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46637 if test `eval echo '${'$as_ac_var'}'` = yes; then
46638 cat >>confdefs.h <<_ACEOF
46639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46641 ice_have_strftime=yes
46645 if test "${ice_have_strftime}" = yes; then
46646 echo "$as_me:$LINENO: checking for strftime declaration in time.h sys/time.h" >&5
46647 echo $ECHO_N "checking for strftime declaration in time.h sys/time.h... $ECHO_C" >&6
46648 if test "${ice_cv_have_strftime_decl+set}" = set; then
46649 echo $ECHO_N "(cached) $ECHO_C" >&6
46652 ice_cv_have_strftime_decl=no
46653 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46654 ice_re_word='(^|[^a-zA-Z0-9_])'
46655 for header in time.h sys/time.h; do
46656 # Check for ordinary declaration
46657 cat >conftest.$ac_ext <<_ACEOF
46660 cat confdefs.h >>conftest.$ac_ext
46661 cat >>conftest.$ac_ext <<_ACEOF
46662 /* end confdefs.h. */
46666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46667 $EGREP "${ice_re_word}strftime[ ]*\(" >/dev/null 2>&1; then
46668 ice_cv_have_strftime_decl=yes
46672 if test "$ice_cv_have_strftime_decl" = yes; then
46675 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46676 cat >conftest.$ac_ext <<_ACEOF
46679 cat confdefs.h >>conftest.$ac_ext
46680 cat >>conftest.$ac_ext <<_ACEOF
46681 /* end confdefs.h. */
46685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46686 $EGREP "${ice_re_word}strftime[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46687 ice_cv_have_strftime_decl=yes
46691 if test "$ice_cv_have_strftime_decl" = yes; then
46698 echo "$as_me:$LINENO: result: $ice_cv_have_strftime_decl" >&5
46699 echo "${ECHO_T}$ice_cv_have_strftime_decl" >&6
46700 if test "$ice_cv_have_strftime_decl" = yes; then
46702 cat >>confdefs.h <<_ACEOF
46703 #define HAVE_STRFTIME_DECL 1
46710 for ac_func in strncasecmp
46712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46713 echo "$as_me:$LINENO: checking for $ac_func" >&5
46714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46715 if eval "test \"\${$as_ac_var+set}\" = set"; then
46716 echo $ECHO_N "(cached) $ECHO_C" >&6
46718 cat >conftest.$ac_ext <<_ACEOF
46721 cat confdefs.h >>conftest.$ac_ext
46722 cat >>conftest.$ac_ext <<_ACEOF
46723 /* end confdefs.h. */
46724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46726 #define $ac_func innocuous_$ac_func
46728 /* System header to define __stub macros and hopefully few prototypes,
46729 which can conflict with char $ac_func (); below.
46730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46731 <limits.h> exists even on freestanding compilers. */
46734 # include <limits.h>
46736 # include <assert.h>
46741 /* Override any gcc2 internal prototype to avoid an error. */
46746 /* We use char because int might match the return type of a gcc2
46747 builtin and then its argument prototype would still apply. */
46749 /* The GNU C library defines this for functions which it implements
46750 to always fail with ENOSYS. Some functions are actually named
46751 something starting with __ and the normal name is an alias. */
46752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46755 char (*f) () = $ac_func;
46764 return f != $ac_func;
46769 rm -f conftest.$ac_objext conftest$ac_exeext
46770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46771 (eval $ac_link) 2>conftest.er1
46773 grep -v '^ *+' conftest.er1 >conftest.err
46775 cat conftest.err >&5
46776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46777 (exit $ac_status); } &&
46778 { ac_try='test -z "$ac_c_werror_flag"
46779 || test ! -s conftest.err'
46780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46781 (eval $ac_try) 2>&5
46783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46784 (exit $ac_status); }; } &&
46785 { ac_try='test -s conftest$ac_exeext'
46786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46787 (eval $ac_try) 2>&5
46789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46790 (exit $ac_status); }; }; then
46791 eval "$as_ac_var=yes"
46793 echo "$as_me: failed program was:" >&5
46794 sed 's/^/| /' conftest.$ac_ext >&5
46796 eval "$as_ac_var=no"
46798 rm -f conftest.err conftest.$ac_objext \
46799 conftest$ac_exeext conftest.$ac_ext
46801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46803 if test `eval echo '${'$as_ac_var'}'` = yes; then
46804 cat >>confdefs.h <<_ACEOF
46805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46810 "$ac_func.$ac_objext" | \
46811 *" $ac_func.$ac_objext" | \
46812 "$ac_func.$ac_objext "* | \
46813 *" $ac_func.$ac_objext "* ) ;;
46814 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
46822 ice_have_strncasecmp=no
46824 for ac_func in strncasecmp
46826 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46827 echo "$as_me:$LINENO: checking for $ac_func" >&5
46828 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46829 if eval "test \"\${$as_ac_var+set}\" = set"; then
46830 echo $ECHO_N "(cached) $ECHO_C" >&6
46832 cat >conftest.$ac_ext <<_ACEOF
46835 cat confdefs.h >>conftest.$ac_ext
46836 cat >>conftest.$ac_ext <<_ACEOF
46837 /* end confdefs.h. */
46838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46840 #define $ac_func innocuous_$ac_func
46842 /* System header to define __stub macros and hopefully few prototypes,
46843 which can conflict with char $ac_func (); below.
46844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46845 <limits.h> exists even on freestanding compilers. */
46848 # include <limits.h>
46850 # include <assert.h>
46855 /* Override any gcc2 internal prototype to avoid an error. */
46860 /* We use char because int might match the return type of a gcc2
46861 builtin and then its argument prototype would still apply. */
46863 /* The GNU C library defines this for functions which it implements
46864 to always fail with ENOSYS. Some functions are actually named
46865 something starting with __ and the normal name is an alias. */
46866 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46869 char (*f) () = $ac_func;
46878 return f != $ac_func;
46883 rm -f conftest.$ac_objext conftest$ac_exeext
46884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46885 (eval $ac_link) 2>conftest.er1
46887 grep -v '^ *+' conftest.er1 >conftest.err
46889 cat conftest.err >&5
46890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46891 (exit $ac_status); } &&
46892 { ac_try='test -z "$ac_c_werror_flag"
46893 || test ! -s conftest.err'
46894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46895 (eval $ac_try) 2>&5
46897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46898 (exit $ac_status); }; } &&
46899 { ac_try='test -s conftest$ac_exeext'
46900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46901 (eval $ac_try) 2>&5
46903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46904 (exit $ac_status); }; }; then
46905 eval "$as_ac_var=yes"
46907 echo "$as_me: failed program was:" >&5
46908 sed 's/^/| /' conftest.$ac_ext >&5
46910 eval "$as_ac_var=no"
46912 rm -f conftest.err conftest.$ac_objext \
46913 conftest$ac_exeext conftest.$ac_ext
46915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46916 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46917 if test `eval echo '${'$as_ac_var'}'` = yes; then
46918 cat >>confdefs.h <<_ACEOF
46919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46921 ice_have_strncasecmp=yes
46925 if test "${ice_have_strncasecmp}" = yes; then
46926 echo "$as_me:$LINENO: checking for strncasecmp declaration in string.h strings.h" >&5
46927 echo $ECHO_N "checking for strncasecmp declaration in string.h strings.h... $ECHO_C" >&6
46928 if test "${ice_cv_have_strncasecmp_decl+set}" = set; then
46929 echo $ECHO_N "(cached) $ECHO_C" >&6
46932 ice_cv_have_strncasecmp_decl=no
46933 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46934 ice_re_word='(^|[^a-zA-Z0-9_])'
46935 for header in string.h strings.h; do
46936 # Check for ordinary declaration
46937 cat >conftest.$ac_ext <<_ACEOF
46940 cat confdefs.h >>conftest.$ac_ext
46941 cat >>conftest.$ac_ext <<_ACEOF
46942 /* end confdefs.h. */
46946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46947 $EGREP "${ice_re_word}strncasecmp[ ]*\(" >/dev/null 2>&1; then
46948 ice_cv_have_strncasecmp_decl=yes
46952 if test "$ice_cv_have_strncasecmp_decl" = yes; then
46955 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46956 cat >conftest.$ac_ext <<_ACEOF
46959 cat confdefs.h >>conftest.$ac_ext
46960 cat >>conftest.$ac_ext <<_ACEOF
46961 /* end confdefs.h. */
46965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46966 $EGREP "${ice_re_word}strncasecmp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46967 ice_cv_have_strncasecmp_decl=yes
46971 if test "$ice_cv_have_strncasecmp_decl" = yes; then
46978 echo "$as_me:$LINENO: result: $ice_cv_have_strncasecmp_decl" >&5
46979 echo "${ECHO_T}$ice_cv_have_strncasecmp_decl" >&6
46980 if test "$ice_cv_have_strncasecmp_decl" = yes; then
46982 cat >>confdefs.h <<_ACEOF
46983 #define HAVE_STRNCASECMP_DECL 1
46990 for ac_func in strstr
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
47090 "$ac_func.$ac_objext" | \
47091 *" $ac_func.$ac_objext" | \
47092 "$ac_func.$ac_objext "* | \
47093 *" $ac_func.$ac_objext "* ) ;;
47094 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
47104 for ac_func in syslog
47106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47107 echo "$as_me:$LINENO: checking for $ac_func" >&5
47108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47109 if eval "test \"\${$as_ac_var+set}\" = set"; then
47110 echo $ECHO_N "(cached) $ECHO_C" >&6
47112 cat >conftest.$ac_ext <<_ACEOF
47115 cat confdefs.h >>conftest.$ac_ext
47116 cat >>conftest.$ac_ext <<_ACEOF
47117 /* end confdefs.h. */
47118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47120 #define $ac_func innocuous_$ac_func
47122 /* System header to define __stub macros and hopefully few prototypes,
47123 which can conflict with char $ac_func (); below.
47124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47125 <limits.h> exists even on freestanding compilers. */
47128 # include <limits.h>
47130 # include <assert.h>
47135 /* Override any gcc2 internal prototype to avoid an error. */
47140 /* We use char because int might match the return type of a gcc2
47141 builtin and then its argument prototype would still apply. */
47143 /* The GNU C library defines this for functions which it implements
47144 to always fail with ENOSYS. Some functions are actually named
47145 something starting with __ and the normal name is an alias. */
47146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47149 char (*f) () = $ac_func;
47158 return f != $ac_func;
47163 rm -f conftest.$ac_objext conftest$ac_exeext
47164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47165 (eval $ac_link) 2>conftest.er1
47167 grep -v '^ *+' conftest.er1 >conftest.err
47169 cat conftest.err >&5
47170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47171 (exit $ac_status); } &&
47172 { ac_try='test -z "$ac_c_werror_flag"
47173 || test ! -s conftest.err'
47174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47175 (eval $ac_try) 2>&5
47177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47178 (exit $ac_status); }; } &&
47179 { ac_try='test -s conftest$ac_exeext'
47180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47181 (eval $ac_try) 2>&5
47183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47184 (exit $ac_status); }; }; then
47185 eval "$as_ac_var=yes"
47187 echo "$as_me: failed program was:" >&5
47188 sed 's/^/| /' conftest.$ac_ext >&5
47190 eval "$as_ac_var=no"
47192 rm -f conftest.err conftest.$ac_objext \
47193 conftest$ac_exeext conftest.$ac_ext
47195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47196 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47197 if test `eval echo '${'$as_ac_var'}'` = yes; then
47198 cat >>confdefs.h <<_ACEOF
47199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47201 ice_have_syslog=yes
47205 if test "${ice_have_syslog}" = yes; then
47206 echo "$as_me:$LINENO: checking for syslog declaration in syslog.h" >&5
47207 echo $ECHO_N "checking for syslog declaration in syslog.h... $ECHO_C" >&6
47208 if test "${ice_cv_have_syslog_decl+set}" = set; then
47209 echo $ECHO_N "(cached) $ECHO_C" >&6
47212 ice_cv_have_syslog_decl=no
47213 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47214 ice_re_word='(^|[^a-zA-Z0-9_])'
47215 for header in syslog.h; do
47216 # Check for ordinary declaration
47217 cat >conftest.$ac_ext <<_ACEOF
47220 cat confdefs.h >>conftest.$ac_ext
47221 cat >>conftest.$ac_ext <<_ACEOF
47222 /* end confdefs.h. */
47226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47227 $EGREP "${ice_re_word}syslog[ ]*\(" >/dev/null 2>&1; then
47228 ice_cv_have_syslog_decl=yes
47232 if test "$ice_cv_have_syslog_decl" = yes; then
47235 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47236 cat >conftest.$ac_ext <<_ACEOF
47239 cat confdefs.h >>conftest.$ac_ext
47240 cat >>conftest.$ac_ext <<_ACEOF
47241 /* end confdefs.h. */
47245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47246 $EGREP "${ice_re_word}syslog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47247 ice_cv_have_syslog_decl=yes
47251 if test "$ice_cv_have_syslog_decl" = yes; then
47258 echo "$as_me:$LINENO: result: $ice_cv_have_syslog_decl" >&5
47259 echo "${ECHO_T}$ice_cv_have_syslog_decl" >&6
47260 if test "$ice_cv_have_syslog_decl" = yes; then
47262 cat >>confdefs.h <<_ACEOF
47263 #define HAVE_SYSLOG_DECL 1
47272 for ac_func in system
47274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47275 echo "$as_me:$LINENO: checking for $ac_func" >&5
47276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47277 if eval "test \"\${$as_ac_var+set}\" = set"; then
47278 echo $ECHO_N "(cached) $ECHO_C" >&6
47280 cat >conftest.$ac_ext <<_ACEOF
47283 cat confdefs.h >>conftest.$ac_ext
47284 cat >>conftest.$ac_ext <<_ACEOF
47285 /* end confdefs.h. */
47286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47288 #define $ac_func innocuous_$ac_func
47290 /* System header to define __stub macros and hopefully few prototypes,
47291 which can conflict with char $ac_func (); below.
47292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47293 <limits.h> exists even on freestanding compilers. */
47296 # include <limits.h>
47298 # include <assert.h>
47303 /* Override any gcc2 internal prototype to avoid an error. */
47308 /* We use char because int might match the return type of a gcc2
47309 builtin and then its argument prototype would still apply. */
47311 /* The GNU C library defines this for functions which it implements
47312 to always fail with ENOSYS. Some functions are actually named
47313 something starting with __ and the normal name is an alias. */
47314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47317 char (*f) () = $ac_func;
47326 return f != $ac_func;
47331 rm -f conftest.$ac_objext conftest$ac_exeext
47332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47333 (eval $ac_link) 2>conftest.er1
47335 grep -v '^ *+' conftest.er1 >conftest.err
47337 cat conftest.err >&5
47338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47339 (exit $ac_status); } &&
47340 { ac_try='test -z "$ac_c_werror_flag"
47341 || test ! -s conftest.err'
47342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47343 (eval $ac_try) 2>&5
47345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47346 (exit $ac_status); }; } &&
47347 { ac_try='test -s conftest$ac_exeext'
47348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47349 (eval $ac_try) 2>&5
47351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47352 (exit $ac_status); }; }; then
47353 eval "$as_ac_var=yes"
47355 echo "$as_me: failed program was:" >&5
47356 sed 's/^/| /' conftest.$ac_ext >&5
47358 eval "$as_ac_var=no"
47360 rm -f conftest.err conftest.$ac_objext \
47361 conftest$ac_exeext conftest.$ac_ext
47363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47364 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47365 if test `eval echo '${'$as_ac_var'}'` = yes; then
47366 cat >>confdefs.h <<_ACEOF
47367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47369 ice_have_system=yes
47373 if test "${ice_have_system}" = yes; then
47374 echo "$as_me:$LINENO: checking for system declaration in stdlib.h" >&5
47375 echo $ECHO_N "checking for system declaration in stdlib.h... $ECHO_C" >&6
47376 if test "${ice_cv_have_system_decl+set}" = set; then
47377 echo $ECHO_N "(cached) $ECHO_C" >&6
47380 ice_cv_have_system_decl=no
47381 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47382 ice_re_word='(^|[^a-zA-Z0-9_])'
47383 for header in stdlib.h; do
47384 # Check for ordinary declaration
47385 cat >conftest.$ac_ext <<_ACEOF
47388 cat confdefs.h >>conftest.$ac_ext
47389 cat >>conftest.$ac_ext <<_ACEOF
47390 /* end confdefs.h. */
47394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47395 $EGREP "${ice_re_word}system[ ]*\(" >/dev/null 2>&1; then
47396 ice_cv_have_system_decl=yes
47400 if test "$ice_cv_have_system_decl" = yes; then
47403 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47404 cat >conftest.$ac_ext <<_ACEOF
47407 cat confdefs.h >>conftest.$ac_ext
47408 cat >>conftest.$ac_ext <<_ACEOF
47409 /* end confdefs.h. */
47413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47414 $EGREP "${ice_re_word}system[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47415 ice_cv_have_system_decl=yes
47419 if test "$ice_cv_have_system_decl" = yes; then
47426 echo "$as_me:$LINENO: result: $ice_cv_have_system_decl" >&5
47427 echo "${ECHO_T}$ice_cv_have_system_decl" >&6
47428 if test "$ice_cv_have_system_decl" = yes; then
47430 cat >>confdefs.h <<_ACEOF
47431 #define HAVE_SYSTEM_DECL 1
47440 for ac_func in time
47442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47443 echo "$as_me:$LINENO: checking for $ac_func" >&5
47444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47445 if eval "test \"\${$as_ac_var+set}\" = set"; then
47446 echo $ECHO_N "(cached) $ECHO_C" >&6
47448 cat >conftest.$ac_ext <<_ACEOF
47451 cat confdefs.h >>conftest.$ac_ext
47452 cat >>conftest.$ac_ext <<_ACEOF
47453 /* end confdefs.h. */
47454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47456 #define $ac_func innocuous_$ac_func
47458 /* System header to define __stub macros and hopefully few prototypes,
47459 which can conflict with char $ac_func (); below.
47460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47461 <limits.h> exists even on freestanding compilers. */
47464 # include <limits.h>
47466 # include <assert.h>
47471 /* Override any gcc2 internal prototype to avoid an error. */
47476 /* We use char because int might match the return type of a gcc2
47477 builtin and then its argument prototype would still apply. */
47479 /* The GNU C library defines this for functions which it implements
47480 to always fail with ENOSYS. Some functions are actually named
47481 something starting with __ and the normal name is an alias. */
47482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47485 char (*f) () = $ac_func;
47494 return f != $ac_func;
47499 rm -f conftest.$ac_objext conftest$ac_exeext
47500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47501 (eval $ac_link) 2>conftest.er1
47503 grep -v '^ *+' conftest.er1 >conftest.err
47505 cat conftest.err >&5
47506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47507 (exit $ac_status); } &&
47508 { ac_try='test -z "$ac_c_werror_flag"
47509 || test ! -s conftest.err'
47510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47511 (eval $ac_try) 2>&5
47513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47514 (exit $ac_status); }; } &&
47515 { ac_try='test -s conftest$ac_exeext'
47516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47517 (eval $ac_try) 2>&5
47519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47520 (exit $ac_status); }; }; then
47521 eval "$as_ac_var=yes"
47523 echo "$as_me: failed program was:" >&5
47524 sed 's/^/| /' conftest.$ac_ext >&5
47526 eval "$as_ac_var=no"
47528 rm -f conftest.err conftest.$ac_objext \
47529 conftest$ac_exeext conftest.$ac_ext
47531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47532 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47533 if test `eval echo '${'$as_ac_var'}'` = yes; then
47534 cat >>confdefs.h <<_ACEOF
47535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47541 if test "${ice_have_time}" = yes; then
47542 echo "$as_me:$LINENO: checking for time declaration in time.h sys/time.h" >&5
47543 echo $ECHO_N "checking for time declaration in time.h sys/time.h... $ECHO_C" >&6
47544 if test "${ice_cv_have_time_decl+set}" = set; then
47545 echo $ECHO_N "(cached) $ECHO_C" >&6
47548 ice_cv_have_time_decl=no
47549 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47550 ice_re_word='(^|[^a-zA-Z0-9_])'
47551 for header in time.h sys/time.h; do
47552 # Check for ordinary declaration
47553 cat >conftest.$ac_ext <<_ACEOF
47556 cat confdefs.h >>conftest.$ac_ext
47557 cat >>conftest.$ac_ext <<_ACEOF
47558 /* end confdefs.h. */
47562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47563 $EGREP "${ice_re_word}time[ ]*\(" >/dev/null 2>&1; then
47564 ice_cv_have_time_decl=yes
47568 if test "$ice_cv_have_time_decl" = yes; then
47571 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47572 cat >conftest.$ac_ext <<_ACEOF
47575 cat confdefs.h >>conftest.$ac_ext
47576 cat >>conftest.$ac_ext <<_ACEOF
47577 /* end confdefs.h. */
47581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47582 $EGREP "${ice_re_word}time[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47583 ice_cv_have_time_decl=yes
47587 if test "$ice_cv_have_time_decl" = yes; then
47594 echo "$as_me:$LINENO: result: $ice_cv_have_time_decl" >&5
47595 echo "${ECHO_T}$ice_cv_have_time_decl" >&6
47596 if test "$ice_cv_have_time_decl" = yes; then
47598 cat >>confdefs.h <<_ACEOF
47599 #define HAVE_TIME_DECL 1
47606 ice_have_tolower=no
47608 for ac_func in tolower
47610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47611 echo "$as_me:$LINENO: checking for $ac_func" >&5
47612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47613 if eval "test \"\${$as_ac_var+set}\" = set"; then
47614 echo $ECHO_N "(cached) $ECHO_C" >&6
47616 cat >conftest.$ac_ext <<_ACEOF
47619 cat confdefs.h >>conftest.$ac_ext
47620 cat >>conftest.$ac_ext <<_ACEOF
47621 /* end confdefs.h. */
47622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47624 #define $ac_func innocuous_$ac_func
47626 /* System header to define __stub macros and hopefully few prototypes,
47627 which can conflict with char $ac_func (); below.
47628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47629 <limits.h> exists even on freestanding compilers. */
47632 # include <limits.h>
47634 # include <assert.h>
47639 /* Override any gcc2 internal prototype to avoid an error. */
47644 /* We use char because int might match the return type of a gcc2
47645 builtin and then its argument prototype would still apply. */
47647 /* The GNU C library defines this for functions which it implements
47648 to always fail with ENOSYS. Some functions are actually named
47649 something starting with __ and the normal name is an alias. */
47650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47653 char (*f) () = $ac_func;
47662 return f != $ac_func;
47667 rm -f conftest.$ac_objext conftest$ac_exeext
47668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47669 (eval $ac_link) 2>conftest.er1
47671 grep -v '^ *+' conftest.er1 >conftest.err
47673 cat conftest.err >&5
47674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47675 (exit $ac_status); } &&
47676 { ac_try='test -z "$ac_c_werror_flag"
47677 || test ! -s conftest.err'
47678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47679 (eval $ac_try) 2>&5
47681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47682 (exit $ac_status); }; } &&
47683 { ac_try='test -s conftest$ac_exeext'
47684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47685 (eval $ac_try) 2>&5
47687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47688 (exit $ac_status); }; }; then
47689 eval "$as_ac_var=yes"
47691 echo "$as_me: failed program was:" >&5
47692 sed 's/^/| /' conftest.$ac_ext >&5
47694 eval "$as_ac_var=no"
47696 rm -f conftest.err conftest.$ac_objext \
47697 conftest$ac_exeext conftest.$ac_ext
47699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47700 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47701 if test `eval echo '${'$as_ac_var'}'` = yes; then
47702 cat >>confdefs.h <<_ACEOF
47703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47705 ice_have_tolower=yes
47709 if test "${ice_have_tolower}" = yes; then
47710 echo "$as_me:$LINENO: checking for tolower declaration in ctype.h" >&5
47711 echo $ECHO_N "checking for tolower declaration in ctype.h... $ECHO_C" >&6
47712 if test "${ice_cv_have_tolower_decl+set}" = set; then
47713 echo $ECHO_N "(cached) $ECHO_C" >&6
47716 ice_cv_have_tolower_decl=no
47717 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47718 ice_re_word='(^|[^a-zA-Z0-9_])'
47719 for header in ctype.h; do
47720 # Check for ordinary declaration
47721 cat >conftest.$ac_ext <<_ACEOF
47724 cat confdefs.h >>conftest.$ac_ext
47725 cat >>conftest.$ac_ext <<_ACEOF
47726 /* end confdefs.h. */
47730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47731 $EGREP "${ice_re_word}tolower[ ]*\(" >/dev/null 2>&1; then
47732 ice_cv_have_tolower_decl=yes
47736 if test "$ice_cv_have_tolower_decl" = yes; then
47739 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47740 cat >conftest.$ac_ext <<_ACEOF
47743 cat confdefs.h >>conftest.$ac_ext
47744 cat >>conftest.$ac_ext <<_ACEOF
47745 /* end confdefs.h. */
47749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47750 $EGREP "${ice_re_word}tolower[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47751 ice_cv_have_tolower_decl=yes
47755 if test "$ice_cv_have_tolower_decl" = yes; then
47762 echo "$as_me:$LINENO: result: $ice_cv_have_tolower_decl" >&5
47763 echo "${ECHO_T}$ice_cv_have_tolower_decl" >&6
47764 if test "$ice_cv_have_tolower_decl" = yes; then
47766 cat >>confdefs.h <<_ACEOF
47767 #define HAVE_TOLOWER_DECL 1
47774 ice_have_toupper=no
47776 for ac_func in toupper
47778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47779 echo "$as_me:$LINENO: checking for $ac_func" >&5
47780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47781 if eval "test \"\${$as_ac_var+set}\" = set"; then
47782 echo $ECHO_N "(cached) $ECHO_C" >&6
47784 cat >conftest.$ac_ext <<_ACEOF
47787 cat confdefs.h >>conftest.$ac_ext
47788 cat >>conftest.$ac_ext <<_ACEOF
47789 /* end confdefs.h. */
47790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47792 #define $ac_func innocuous_$ac_func
47794 /* System header to define __stub macros and hopefully few prototypes,
47795 which can conflict with char $ac_func (); below.
47796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47797 <limits.h> exists even on freestanding compilers. */
47800 # include <limits.h>
47802 # include <assert.h>
47807 /* Override any gcc2 internal prototype to avoid an error. */
47812 /* We use char because int might match the return type of a gcc2
47813 builtin and then its argument prototype would still apply. */
47815 /* The GNU C library defines this for functions which it implements
47816 to always fail with ENOSYS. Some functions are actually named
47817 something starting with __ and the normal name is an alias. */
47818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47821 char (*f) () = $ac_func;
47830 return f != $ac_func;
47835 rm -f conftest.$ac_objext conftest$ac_exeext
47836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47837 (eval $ac_link) 2>conftest.er1
47839 grep -v '^ *+' conftest.er1 >conftest.err
47841 cat conftest.err >&5
47842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47843 (exit $ac_status); } &&
47844 { ac_try='test -z "$ac_c_werror_flag"
47845 || test ! -s conftest.err'
47846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47847 (eval $ac_try) 2>&5
47849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47850 (exit $ac_status); }; } &&
47851 { ac_try='test -s conftest$ac_exeext'
47852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47853 (eval $ac_try) 2>&5
47855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47856 (exit $ac_status); }; }; then
47857 eval "$as_ac_var=yes"
47859 echo "$as_me: failed program was:" >&5
47860 sed 's/^/| /' conftest.$ac_ext >&5
47862 eval "$as_ac_var=no"
47864 rm -f conftest.err conftest.$ac_objext \
47865 conftest$ac_exeext conftest.$ac_ext
47867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47869 if test `eval echo '${'$as_ac_var'}'` = yes; then
47870 cat >>confdefs.h <<_ACEOF
47871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47873 ice_have_toupper=yes
47877 if test "${ice_have_toupper}" = yes; then
47878 echo "$as_me:$LINENO: checking for toupper declaration in ctype.h" >&5
47879 echo $ECHO_N "checking for toupper declaration in ctype.h... $ECHO_C" >&6
47880 if test "${ice_cv_have_toupper_decl+set}" = set; then
47881 echo $ECHO_N "(cached) $ECHO_C" >&6
47884 ice_cv_have_toupper_decl=no
47885 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47886 ice_re_word='(^|[^a-zA-Z0-9_])'
47887 for header in ctype.h; do
47888 # Check for ordinary declaration
47889 cat >conftest.$ac_ext <<_ACEOF
47892 cat confdefs.h >>conftest.$ac_ext
47893 cat >>conftest.$ac_ext <<_ACEOF
47894 /* end confdefs.h. */
47898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47899 $EGREP "${ice_re_word}toupper[ ]*\(" >/dev/null 2>&1; then
47900 ice_cv_have_toupper_decl=yes
47904 if test "$ice_cv_have_toupper_decl" = yes; then
47907 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47908 cat >conftest.$ac_ext <<_ACEOF
47911 cat confdefs.h >>conftest.$ac_ext
47912 cat >>conftest.$ac_ext <<_ACEOF
47913 /* end confdefs.h. */
47917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47918 $EGREP "${ice_re_word}toupper[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47919 ice_cv_have_toupper_decl=yes
47923 if test "$ice_cv_have_toupper_decl" = yes; then
47930 echo "$as_me:$LINENO: result: $ice_cv_have_toupper_decl" >&5
47931 echo "${ECHO_T}$ice_cv_have_toupper_decl" >&6
47932 if test "$ice_cv_have_toupper_decl" = yes; then
47934 cat >>confdefs.h <<_ACEOF
47935 #define HAVE_TOUPPER_DECL 1
47944 for ac_func in ungetc
47946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47947 echo "$as_me:$LINENO: checking for $ac_func" >&5
47948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47949 if eval "test \"\${$as_ac_var+set}\" = set"; then
47950 echo $ECHO_N "(cached) $ECHO_C" >&6
47952 cat >conftest.$ac_ext <<_ACEOF
47955 cat confdefs.h >>conftest.$ac_ext
47956 cat >>conftest.$ac_ext <<_ACEOF
47957 /* end confdefs.h. */
47958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47960 #define $ac_func innocuous_$ac_func
47962 /* System header to define __stub macros and hopefully few prototypes,
47963 which can conflict with char $ac_func (); below.
47964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47965 <limits.h> exists even on freestanding compilers. */
47968 # include <limits.h>
47970 # include <assert.h>
47975 /* Override any gcc2 internal prototype to avoid an error. */
47980 /* We use char because int might match the return type of a gcc2
47981 builtin and then its argument prototype would still apply. */
47983 /* The GNU C library defines this for functions which it implements
47984 to always fail with ENOSYS. Some functions are actually named
47985 something starting with __ and the normal name is an alias. */
47986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47989 char (*f) () = $ac_func;
47998 return f != $ac_func;
48003 rm -f conftest.$ac_objext conftest$ac_exeext
48004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48005 (eval $ac_link) 2>conftest.er1
48007 grep -v '^ *+' conftest.er1 >conftest.err
48009 cat conftest.err >&5
48010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48011 (exit $ac_status); } &&
48012 { ac_try='test -z "$ac_c_werror_flag"
48013 || test ! -s conftest.err'
48014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48015 (eval $ac_try) 2>&5
48017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48018 (exit $ac_status); }; } &&
48019 { ac_try='test -s conftest$ac_exeext'
48020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48021 (eval $ac_try) 2>&5
48023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48024 (exit $ac_status); }; }; then
48025 eval "$as_ac_var=yes"
48027 echo "$as_me: failed program was:" >&5
48028 sed 's/^/| /' conftest.$ac_ext >&5
48030 eval "$as_ac_var=no"
48032 rm -f conftest.err conftest.$ac_objext \
48033 conftest$ac_exeext conftest.$ac_ext
48035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48037 if test `eval echo '${'$as_ac_var'}'` = yes; then
48038 cat >>confdefs.h <<_ACEOF
48039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48041 ice_have_ungetc=yes
48045 if test "${ice_have_ungetc}" = yes; then
48046 echo "$as_me:$LINENO: checking for ungetc declaration in stdio.h" >&5
48047 echo $ECHO_N "checking for ungetc declaration in stdio.h... $ECHO_C" >&6
48048 if test "${ice_cv_have_ungetc_decl+set}" = set; then
48049 echo $ECHO_N "(cached) $ECHO_C" >&6
48052 ice_cv_have_ungetc_decl=no
48053 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48054 ice_re_word='(^|[^a-zA-Z0-9_])'
48055 for header in stdio.h; do
48056 # Check for ordinary declaration
48057 cat >conftest.$ac_ext <<_ACEOF
48060 cat confdefs.h >>conftest.$ac_ext
48061 cat >>conftest.$ac_ext <<_ACEOF
48062 /* end confdefs.h. */
48066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48067 $EGREP "${ice_re_word}ungetc[ ]*\(" >/dev/null 2>&1; then
48068 ice_cv_have_ungetc_decl=yes
48072 if test "$ice_cv_have_ungetc_decl" = yes; then
48075 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48076 cat >conftest.$ac_ext <<_ACEOF
48079 cat confdefs.h >>conftest.$ac_ext
48080 cat >>conftest.$ac_ext <<_ACEOF
48081 /* end confdefs.h. */
48085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48086 $EGREP "${ice_re_word}ungetc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48087 ice_cv_have_ungetc_decl=yes
48091 if test "$ice_cv_have_ungetc_decl" = yes; then
48098 echo "$as_me:$LINENO: result: $ice_cv_have_ungetc_decl" >&5
48099 echo "${ECHO_T}$ice_cv_have_ungetc_decl" >&6
48100 if test "$ice_cv_have_ungetc_decl" = yes; then
48102 cat >>confdefs.h <<_ACEOF
48103 #define HAVE_UNGETC_DECL 1
48110 for ac_func in vprintf
48112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48113 echo "$as_me:$LINENO: checking for $ac_func" >&5
48114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48115 if eval "test \"\${$as_ac_var+set}\" = set"; then
48116 echo $ECHO_N "(cached) $ECHO_C" >&6
48118 cat >conftest.$ac_ext <<_ACEOF
48121 cat confdefs.h >>conftest.$ac_ext
48122 cat >>conftest.$ac_ext <<_ACEOF
48123 /* end confdefs.h. */
48124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48126 #define $ac_func innocuous_$ac_func
48128 /* System header to define __stub macros and hopefully few prototypes,
48129 which can conflict with char $ac_func (); below.
48130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48131 <limits.h> exists even on freestanding compilers. */
48134 # include <limits.h>
48136 # include <assert.h>
48141 /* Override any gcc2 internal prototype to avoid an error. */
48146 /* We use char because int might match the return type of a gcc2
48147 builtin and then its argument prototype would still apply. */
48149 /* The GNU C library defines this for functions which it implements
48150 to always fail with ENOSYS. Some functions are actually named
48151 something starting with __ and the normal name is an alias. */
48152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48155 char (*f) () = $ac_func;
48164 return f != $ac_func;
48169 rm -f conftest.$ac_objext conftest$ac_exeext
48170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48171 (eval $ac_link) 2>conftest.er1
48173 grep -v '^ *+' conftest.er1 >conftest.err
48175 cat conftest.err >&5
48176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48177 (exit $ac_status); } &&
48178 { ac_try='test -z "$ac_c_werror_flag"
48179 || test ! -s conftest.err'
48180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48181 (eval $ac_try) 2>&5
48183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48184 (exit $ac_status); }; } &&
48185 { ac_try='test -s conftest$ac_exeext'
48186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48187 (eval $ac_try) 2>&5
48189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48190 (exit $ac_status); }; }; then
48191 eval "$as_ac_var=yes"
48193 echo "$as_me: failed program was:" >&5
48194 sed 's/^/| /' conftest.$ac_ext >&5
48196 eval "$as_ac_var=no"
48198 rm -f conftest.err conftest.$ac_objext \
48199 conftest$ac_exeext conftest.$ac_ext
48201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48203 if test `eval echo '${'$as_ac_var'}'` = yes; then
48204 cat >>confdefs.h <<_ACEOF
48205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48208 echo "$as_me:$LINENO: checking for _doprnt" >&5
48209 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
48210 if test "${ac_cv_func__doprnt+set}" = set; then
48211 echo $ECHO_N "(cached) $ECHO_C" >&6
48213 cat >conftest.$ac_ext <<_ACEOF
48216 cat confdefs.h >>conftest.$ac_ext
48217 cat >>conftest.$ac_ext <<_ACEOF
48218 /* end confdefs.h. */
48219 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
48220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48221 #define _doprnt innocuous__doprnt
48223 /* System header to define __stub macros and hopefully few prototypes,
48224 which can conflict with char _doprnt (); below.
48225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48226 <limits.h> exists even on freestanding compilers. */
48229 # include <limits.h>
48231 # include <assert.h>
48236 /* Override any gcc2 internal prototype to avoid an error. */
48241 /* We use char because int might match the return type of a gcc2
48242 builtin and then its argument prototype would still apply. */
48244 /* The GNU C library defines this for functions which it implements
48245 to always fail with ENOSYS. Some functions are actually named
48246 something starting with __ and the normal name is an alias. */
48247 #if defined (__stub__doprnt) || defined (__stub____doprnt)
48250 char (*f) () = _doprnt;
48259 return f != _doprnt;
48264 rm -f conftest.$ac_objext conftest$ac_exeext
48265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48266 (eval $ac_link) 2>conftest.er1
48268 grep -v '^ *+' conftest.er1 >conftest.err
48270 cat conftest.err >&5
48271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48272 (exit $ac_status); } &&
48273 { ac_try='test -z "$ac_c_werror_flag"
48274 || test ! -s conftest.err'
48275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48276 (eval $ac_try) 2>&5
48278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48279 (exit $ac_status); }; } &&
48280 { ac_try='test -s conftest$ac_exeext'
48281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48282 (eval $ac_try) 2>&5
48284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48285 (exit $ac_status); }; }; then
48286 ac_cv_func__doprnt=yes
48288 echo "$as_me: failed program was:" >&5
48289 sed 's/^/| /' conftest.$ac_ext >&5
48291 ac_cv_func__doprnt=no
48293 rm -f conftest.err conftest.$ac_objext \
48294 conftest$ac_exeext conftest.$ac_ext
48296 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
48297 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
48298 if test $ac_cv_func__doprnt = yes; then
48300 cat >>confdefs.h <<\_ACEOF
48301 #define HAVE_DOPRNT 1
48311 ice_have_vfprintf=no
48313 for ac_func in vfprintf
48315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48316 echo "$as_me:$LINENO: checking for $ac_func" >&5
48317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48318 if eval "test \"\${$as_ac_var+set}\" = set"; then
48319 echo $ECHO_N "(cached) $ECHO_C" >&6
48321 cat >conftest.$ac_ext <<_ACEOF
48324 cat confdefs.h >>conftest.$ac_ext
48325 cat >>conftest.$ac_ext <<_ACEOF
48326 /* end confdefs.h. */
48327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48329 #define $ac_func innocuous_$ac_func
48331 /* System header to define __stub macros and hopefully few prototypes,
48332 which can conflict with char $ac_func (); below.
48333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48334 <limits.h> exists even on freestanding compilers. */
48337 # include <limits.h>
48339 # include <assert.h>
48344 /* Override any gcc2 internal prototype to avoid an error. */
48349 /* We use char because int might match the return type of a gcc2
48350 builtin and then its argument prototype would still apply. */
48352 /* The GNU C library defines this for functions which it implements
48353 to always fail with ENOSYS. Some functions are actually named
48354 something starting with __ and the normal name is an alias. */
48355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48358 char (*f) () = $ac_func;
48367 return f != $ac_func;
48372 rm -f conftest.$ac_objext conftest$ac_exeext
48373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48374 (eval $ac_link) 2>conftest.er1
48376 grep -v '^ *+' conftest.er1 >conftest.err
48378 cat conftest.err >&5
48379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48380 (exit $ac_status); } &&
48381 { ac_try='test -z "$ac_c_werror_flag"
48382 || test ! -s conftest.err'
48383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48384 (eval $ac_try) 2>&5
48386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48387 (exit $ac_status); }; } &&
48388 { ac_try='test -s conftest$ac_exeext'
48389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48390 (eval $ac_try) 2>&5
48392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48393 (exit $ac_status); }; }; then
48394 eval "$as_ac_var=yes"
48396 echo "$as_me: failed program was:" >&5
48397 sed 's/^/| /' conftest.$ac_ext >&5
48399 eval "$as_ac_var=no"
48401 rm -f conftest.err conftest.$ac_objext \
48402 conftest$ac_exeext conftest.$ac_ext
48404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48405 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48406 if test `eval echo '${'$as_ac_var'}'` = yes; then
48407 cat >>confdefs.h <<_ACEOF
48408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48410 ice_have_vfprintf=yes
48414 if test "${ice_have_vfprintf}" = yes; then
48415 echo "$as_me:$LINENO: checking for vfprintf declaration in stdio.h stdlib.h" >&5
48416 echo $ECHO_N "checking for vfprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
48417 if test "${ice_cv_have_vfprintf_decl+set}" = set; then
48418 echo $ECHO_N "(cached) $ECHO_C" >&6
48421 ice_cv_have_vfprintf_decl=no
48422 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48423 ice_re_word='(^|[^a-zA-Z0-9_])'
48424 for header in stdio.h stdlib.h; do
48425 # Check for ordinary declaration
48426 cat >conftest.$ac_ext <<_ACEOF
48429 cat confdefs.h >>conftest.$ac_ext
48430 cat >>conftest.$ac_ext <<_ACEOF
48431 /* end confdefs.h. */
48435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48436 $EGREP "${ice_re_word}vfprintf[ ]*\(" >/dev/null 2>&1; then
48437 ice_cv_have_vfprintf_decl=yes
48441 if test "$ice_cv_have_vfprintf_decl" = yes; then
48444 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48445 cat >conftest.$ac_ext <<_ACEOF
48448 cat confdefs.h >>conftest.$ac_ext
48449 cat >>conftest.$ac_ext <<_ACEOF
48450 /* end confdefs.h. */
48454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48455 $EGREP "${ice_re_word}vfprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48456 ice_cv_have_vfprintf_decl=yes
48460 if test "$ice_cv_have_vfprintf_decl" = yes; then
48467 echo "$as_me:$LINENO: result: $ice_cv_have_vfprintf_decl" >&5
48468 echo "${ECHO_T}$ice_cv_have_vfprintf_decl" >&6
48469 if test "$ice_cv_have_vfprintf_decl" = yes; then
48471 cat >>confdefs.h <<_ACEOF
48472 #define HAVE_VFPRINTF_DECL 1
48479 ice_have_vprintf=no
48481 for ac_func in vprintf
48483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48484 echo "$as_me:$LINENO: checking for $ac_func" >&5
48485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48486 if eval "test \"\${$as_ac_var+set}\" = set"; then
48487 echo $ECHO_N "(cached) $ECHO_C" >&6
48489 cat >conftest.$ac_ext <<_ACEOF
48492 cat confdefs.h >>conftest.$ac_ext
48493 cat >>conftest.$ac_ext <<_ACEOF
48494 /* end confdefs.h. */
48495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48497 #define $ac_func innocuous_$ac_func
48499 /* System header to define __stub macros and hopefully few prototypes,
48500 which can conflict with char $ac_func (); below.
48501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48502 <limits.h> exists even on freestanding compilers. */
48505 # include <limits.h>
48507 # include <assert.h>
48512 /* Override any gcc2 internal prototype to avoid an error. */
48517 /* We use char because int might match the return type of a gcc2
48518 builtin and then its argument prototype would still apply. */
48520 /* The GNU C library defines this for functions which it implements
48521 to always fail with ENOSYS. Some functions are actually named
48522 something starting with __ and the normal name is an alias. */
48523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48526 char (*f) () = $ac_func;
48535 return f != $ac_func;
48540 rm -f conftest.$ac_objext conftest$ac_exeext
48541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48542 (eval $ac_link) 2>conftest.er1
48544 grep -v '^ *+' conftest.er1 >conftest.err
48546 cat conftest.err >&5
48547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48548 (exit $ac_status); } &&
48549 { ac_try='test -z "$ac_c_werror_flag"
48550 || test ! -s conftest.err'
48551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48552 (eval $ac_try) 2>&5
48554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48555 (exit $ac_status); }; } &&
48556 { ac_try='test -s conftest$ac_exeext'
48557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48558 (eval $ac_try) 2>&5
48560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48561 (exit $ac_status); }; }; then
48562 eval "$as_ac_var=yes"
48564 echo "$as_me: failed program was:" >&5
48565 sed 's/^/| /' conftest.$ac_ext >&5
48567 eval "$as_ac_var=no"
48569 rm -f conftest.err conftest.$ac_objext \
48570 conftest$ac_exeext conftest.$ac_ext
48572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48574 if test `eval echo '${'$as_ac_var'}'` = yes; then
48575 cat >>confdefs.h <<_ACEOF
48576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48578 ice_have_vprintf=yes
48582 if test "${ice_have_vprintf}" = yes; then
48583 echo "$as_me:$LINENO: checking for vprintf declaration in stdio.h stdlib.h" >&5
48584 echo $ECHO_N "checking for vprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
48585 if test "${ice_cv_have_vprintf_decl+set}" = set; then
48586 echo $ECHO_N "(cached) $ECHO_C" >&6
48589 ice_cv_have_vprintf_decl=no
48590 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48591 ice_re_word='(^|[^a-zA-Z0-9_])'
48592 for header in stdio.h stdlib.h; do
48593 # Check for ordinary declaration
48594 cat >conftest.$ac_ext <<_ACEOF
48597 cat confdefs.h >>conftest.$ac_ext
48598 cat >>conftest.$ac_ext <<_ACEOF
48599 /* end confdefs.h. */
48603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48604 $EGREP "${ice_re_word}vprintf[ ]*\(" >/dev/null 2>&1; then
48605 ice_cv_have_vprintf_decl=yes
48609 if test "$ice_cv_have_vprintf_decl" = yes; then
48612 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48613 cat >conftest.$ac_ext <<_ACEOF
48616 cat confdefs.h >>conftest.$ac_ext
48617 cat >>conftest.$ac_ext <<_ACEOF
48618 /* end confdefs.h. */
48622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48623 $EGREP "${ice_re_word}vprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48624 ice_cv_have_vprintf_decl=yes
48628 if test "$ice_cv_have_vprintf_decl" = yes; then
48635 echo "$as_me:$LINENO: result: $ice_cv_have_vprintf_decl" >&5
48636 echo "${ECHO_T}$ice_cv_have_vprintf_decl" >&6
48637 if test "$ice_cv_have_vprintf_decl" = yes; then
48639 cat >>confdefs.h <<_ACEOF
48640 #define HAVE_VPRINTF_DECL 1
48647 ice_have_vsprintf=no
48649 for ac_func in vsprintf
48651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48652 echo "$as_me:$LINENO: checking for $ac_func" >&5
48653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48654 if eval "test \"\${$as_ac_var+set}\" = set"; then
48655 echo $ECHO_N "(cached) $ECHO_C" >&6
48657 cat >conftest.$ac_ext <<_ACEOF
48660 cat confdefs.h >>conftest.$ac_ext
48661 cat >>conftest.$ac_ext <<_ACEOF
48662 /* end confdefs.h. */
48663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48665 #define $ac_func innocuous_$ac_func
48667 /* System header to define __stub macros and hopefully few prototypes,
48668 which can conflict with char $ac_func (); below.
48669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48670 <limits.h> exists even on freestanding compilers. */
48673 # include <limits.h>
48675 # include <assert.h>
48680 /* Override any gcc2 internal prototype to avoid an error. */
48685 /* We use char because int might match the return type of a gcc2
48686 builtin and then its argument prototype would still apply. */
48688 /* The GNU C library defines this for functions which it implements
48689 to always fail with ENOSYS. Some functions are actually named
48690 something starting with __ and the normal name is an alias. */
48691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48694 char (*f) () = $ac_func;
48703 return f != $ac_func;
48708 rm -f conftest.$ac_objext conftest$ac_exeext
48709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48710 (eval $ac_link) 2>conftest.er1
48712 grep -v '^ *+' conftest.er1 >conftest.err
48714 cat conftest.err >&5
48715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48716 (exit $ac_status); } &&
48717 { ac_try='test -z "$ac_c_werror_flag"
48718 || test ! -s conftest.err'
48719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48720 (eval $ac_try) 2>&5
48722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48723 (exit $ac_status); }; } &&
48724 { ac_try='test -s conftest$ac_exeext'
48725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48726 (eval $ac_try) 2>&5
48728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48729 (exit $ac_status); }; }; then
48730 eval "$as_ac_var=yes"
48732 echo "$as_me: failed program was:" >&5
48733 sed 's/^/| /' conftest.$ac_ext >&5
48735 eval "$as_ac_var=no"
48737 rm -f conftest.err conftest.$ac_objext \
48738 conftest$ac_exeext conftest.$ac_ext
48740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48742 if test `eval echo '${'$as_ac_var'}'` = yes; then
48743 cat >>confdefs.h <<_ACEOF
48744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48746 ice_have_vsprintf=yes
48750 if test "${ice_have_vsprintf}" = yes; then
48751 echo "$as_me:$LINENO: checking for vsprintf declaration in stdio.h stdlib.h" >&5
48752 echo $ECHO_N "checking for vsprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
48753 if test "${ice_cv_have_vsprintf_decl+set}" = set; then
48754 echo $ECHO_N "(cached) $ECHO_C" >&6
48757 ice_cv_have_vsprintf_decl=no
48758 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48759 ice_re_word='(^|[^a-zA-Z0-9_])'
48760 for header in stdio.h stdlib.h; do
48761 # Check for ordinary declaration
48762 cat >conftest.$ac_ext <<_ACEOF
48765 cat confdefs.h >>conftest.$ac_ext
48766 cat >>conftest.$ac_ext <<_ACEOF
48767 /* end confdefs.h. */
48771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48772 $EGREP "${ice_re_word}vsprintf[ ]*\(" >/dev/null 2>&1; then
48773 ice_cv_have_vsprintf_decl=yes
48777 if test "$ice_cv_have_vsprintf_decl" = yes; then
48780 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48781 cat >conftest.$ac_ext <<_ACEOF
48784 cat confdefs.h >>conftest.$ac_ext
48785 cat >>conftest.$ac_ext <<_ACEOF
48786 /* end confdefs.h. */
48790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48791 $EGREP "${ice_re_word}vsprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48792 ice_cv_have_vsprintf_decl=yes
48796 if test "$ice_cv_have_vsprintf_decl" = yes; then
48803 echo "$as_me:$LINENO: result: $ice_cv_have_vsprintf_decl" >&5
48804 echo "${ECHO_T}$ice_cv_have_vsprintf_decl" >&6
48805 if test "$ice_cv_have_vsprintf_decl" = yes; then
48807 cat >>confdefs.h <<_ACEOF
48808 #define HAVE_VSPRINTF_DECL 1
48814 echo "$as_me:$LINENO: checking for wait4" >&5
48815 echo $ECHO_N "checking for wait4... $ECHO_C" >&6
48816 if test "${ac_cv_func_wait4+set}" = set; then
48817 echo $ECHO_N "(cached) $ECHO_C" >&6
48819 cat >conftest.$ac_ext <<_ACEOF
48822 cat confdefs.h >>conftest.$ac_ext
48823 cat >>conftest.$ac_ext <<_ACEOF
48824 /* end confdefs.h. */
48825 /* Define wait4 to an innocuous variant, in case <limits.h> declares wait4.
48826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48827 #define wait4 innocuous_wait4
48829 /* System header to define __stub macros and hopefully few prototypes,
48830 which can conflict with char wait4 (); below.
48831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48832 <limits.h> exists even on freestanding compilers. */
48835 # include <limits.h>
48837 # include <assert.h>
48842 /* Override any gcc2 internal prototype to avoid an error. */
48847 /* We use char because int might match the return type of a gcc2
48848 builtin and then its argument prototype would still apply. */
48850 /* The GNU C library defines this for functions which it implements
48851 to always fail with ENOSYS. Some functions are actually named
48852 something starting with __ and the normal name is an alias. */
48853 #if defined (__stub_wait4) || defined (__stub___wait4)
48856 char (*f) () = wait4;
48870 rm -f conftest.$ac_objext conftest$ac_exeext
48871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48872 (eval $ac_link) 2>conftest.er1
48874 grep -v '^ *+' conftest.er1 >conftest.err
48876 cat conftest.err >&5
48877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48878 (exit $ac_status); } &&
48879 { ac_try='test -z "$ac_c_werror_flag"
48880 || test ! -s conftest.err'
48881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48882 (eval $ac_try) 2>&5
48884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48885 (exit $ac_status); }; } &&
48886 { ac_try='test -s conftest$ac_exeext'
48887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48888 (eval $ac_try) 2>&5
48890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48891 (exit $ac_status); }; }; then
48892 ac_cv_func_wait4=yes
48894 echo "$as_me: failed program was:" >&5
48895 sed 's/^/| /' conftest.$ac_ext >&5
48897 ac_cv_func_wait4=no
48899 rm -f conftest.err conftest.$ac_objext \
48900 conftest$ac_exeext conftest.$ac_ext
48902 echo "$as_me:$LINENO: result: $ac_cv_func_wait4" >&5
48903 echo "${ECHO_T}$ac_cv_func_wait4" >&6
48906 for ac_func in waitpid
48908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48909 echo "$as_me:$LINENO: checking for $ac_func" >&5
48910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48911 if eval "test \"\${$as_ac_var+set}\" = set"; then
48912 echo $ECHO_N "(cached) $ECHO_C" >&6
48914 cat >conftest.$ac_ext <<_ACEOF
48917 cat confdefs.h >>conftest.$ac_ext
48918 cat >>conftest.$ac_ext <<_ACEOF
48919 /* end confdefs.h. */
48920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48922 #define $ac_func innocuous_$ac_func
48924 /* System header to define __stub macros and hopefully few prototypes,
48925 which can conflict with char $ac_func (); below.
48926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48927 <limits.h> exists even on freestanding compilers. */
48930 # include <limits.h>
48932 # include <assert.h>
48937 /* Override any gcc2 internal prototype to avoid an error. */
48942 /* We use char because int might match the return type of a gcc2
48943 builtin and then its argument prototype would still apply. */
48945 /* The GNU C library defines this for functions which it implements
48946 to always fail with ENOSYS. Some functions are actually named
48947 something starting with __ and the normal name is an alias. */
48948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48951 char (*f) () = $ac_func;
48960 return f != $ac_func;
48965 rm -f conftest.$ac_objext conftest$ac_exeext
48966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48967 (eval $ac_link) 2>conftest.er1
48969 grep -v '^ *+' conftest.er1 >conftest.err
48971 cat conftest.err >&5
48972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48973 (exit $ac_status); } &&
48974 { ac_try='test -z "$ac_c_werror_flag"
48975 || test ! -s conftest.err'
48976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48977 (eval $ac_try) 2>&5
48979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48980 (exit $ac_status); }; } &&
48981 { ac_try='test -s conftest$ac_exeext'
48982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48983 (eval $ac_try) 2>&5
48985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48986 (exit $ac_status); }; }; then
48987 eval "$as_ac_var=yes"
48989 echo "$as_me: failed program was:" >&5
48990 sed 's/^/| /' conftest.$ac_ext >&5
48992 eval "$as_ac_var=no"
48994 rm -f conftest.err conftest.$ac_objext \
48995 conftest$ac_exeext conftest.$ac_ext
48997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48998 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48999 if test `eval echo '${'$as_ac_var'}'` = yes; then
49000 cat >>confdefs.h <<_ACEOF
49001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49006 "$ac_func.$ac_objext" | \
49007 *" $ac_func.$ac_objext" | \
49008 "$ac_func.$ac_objext "* | \
49009 *" $ac_func.$ac_objext "* ) ;;
49010 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
49018 for ac_func in strcasecmp
49020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49021 echo "$as_me:$LINENO: checking for $ac_func" >&5
49022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49023 if eval "test \"\${$as_ac_var+set}\" = set"; then
49024 echo $ECHO_N "(cached) $ECHO_C" >&6
49026 cat >conftest.$ac_ext <<_ACEOF
49029 cat confdefs.h >>conftest.$ac_ext
49030 cat >>conftest.$ac_ext <<_ACEOF
49031 /* end confdefs.h. */
49032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49034 #define $ac_func innocuous_$ac_func
49036 /* System header to define __stub macros and hopefully few prototypes,
49037 which can conflict with char $ac_func (); below.
49038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49039 <limits.h> exists even on freestanding compilers. */
49042 # include <limits.h>
49044 # include <assert.h>
49049 /* Override any gcc2 internal prototype to avoid an error. */
49054 /* We use char because int might match the return type of a gcc2
49055 builtin and then its argument prototype would still apply. */
49057 /* The GNU C library defines this for functions which it implements
49058 to always fail with ENOSYS. Some functions are actually named
49059 something starting with __ and the normal name is an alias. */
49060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49063 char (*f) () = $ac_func;
49072 return f != $ac_func;
49077 rm -f conftest.$ac_objext conftest$ac_exeext
49078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49079 (eval $ac_link) 2>conftest.er1
49081 grep -v '^ *+' conftest.er1 >conftest.err
49083 cat conftest.err >&5
49084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49085 (exit $ac_status); } &&
49086 { ac_try='test -z "$ac_c_werror_flag"
49087 || test ! -s conftest.err'
49088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49089 (eval $ac_try) 2>&5
49091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49092 (exit $ac_status); }; } &&
49093 { ac_try='test -s conftest$ac_exeext'
49094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49095 (eval $ac_try) 2>&5
49097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49098 (exit $ac_status); }; }; then
49099 eval "$as_ac_var=yes"
49101 echo "$as_me: failed program was:" >&5
49102 sed 's/^/| /' conftest.$ac_ext >&5
49104 eval "$as_ac_var=no"
49106 rm -f conftest.err conftest.$ac_objext \
49107 conftest$ac_exeext conftest.$ac_ext
49109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49110 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49111 if test `eval echo '${'$as_ac_var'}'` = yes; then
49112 cat >>confdefs.h <<_ACEOF
49113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49118 "$ac_func.$ac_objext" | \
49119 *" $ac_func.$ac_objext" | \
49120 "$ac_func.$ac_objext "* | \
49121 *" $ac_func.$ac_objext "* ) ;;
49122 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
49130 ice_have_strcasecmp=no
49132 for ac_func in strcasecmp
49134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49135 echo "$as_me:$LINENO: checking for $ac_func" >&5
49136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49137 if eval "test \"\${$as_ac_var+set}\" = set"; then
49138 echo $ECHO_N "(cached) $ECHO_C" >&6
49140 cat >conftest.$ac_ext <<_ACEOF
49143 cat confdefs.h >>conftest.$ac_ext
49144 cat >>conftest.$ac_ext <<_ACEOF
49145 /* end confdefs.h. */
49146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49148 #define $ac_func innocuous_$ac_func
49150 /* System header to define __stub macros and hopefully few prototypes,
49151 which can conflict with char $ac_func (); below.
49152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49153 <limits.h> exists even on freestanding compilers. */
49156 # include <limits.h>
49158 # include <assert.h>
49163 /* Override any gcc2 internal prototype to avoid an error. */
49168 /* We use char because int might match the return type of a gcc2
49169 builtin and then its argument prototype would still apply. */
49171 /* The GNU C library defines this for functions which it implements
49172 to always fail with ENOSYS. Some functions are actually named
49173 something starting with __ and the normal name is an alias. */
49174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49177 char (*f) () = $ac_func;
49186 return f != $ac_func;
49191 rm -f conftest.$ac_objext conftest$ac_exeext
49192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49193 (eval $ac_link) 2>conftest.er1
49195 grep -v '^ *+' conftest.er1 >conftest.err
49197 cat conftest.err >&5
49198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49199 (exit $ac_status); } &&
49200 { ac_try='test -z "$ac_c_werror_flag"
49201 || test ! -s conftest.err'
49202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49203 (eval $ac_try) 2>&5
49205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49206 (exit $ac_status); }; } &&
49207 { ac_try='test -s conftest$ac_exeext'
49208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49209 (eval $ac_try) 2>&5
49211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49212 (exit $ac_status); }; }; then
49213 eval "$as_ac_var=yes"
49215 echo "$as_me: failed program was:" >&5
49216 sed 's/^/| /' conftest.$ac_ext >&5
49218 eval "$as_ac_var=no"
49220 rm -f conftest.err conftest.$ac_objext \
49221 conftest$ac_exeext conftest.$ac_ext
49223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49224 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49225 if test `eval echo '${'$as_ac_var'}'` = yes; then
49226 cat >>confdefs.h <<_ACEOF
49227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49229 ice_have_strcasecmp=yes
49233 if test "${ice_have_strcasecmp}" = yes; then
49234 echo "$as_me:$LINENO: checking for strcasecmp declaration in string.h strings.h" >&5
49235 echo $ECHO_N "checking for strcasecmp declaration in string.h strings.h... $ECHO_C" >&6
49236 if test "${ice_cv_have_strcasecmp_decl+set}" = set; then
49237 echo $ECHO_N "(cached) $ECHO_C" >&6
49240 ice_cv_have_strcasecmp_decl=no
49241 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49242 ice_re_word='(^|[^a-zA-Z0-9_])'
49243 for header in string.h strings.h; do
49244 # Check for ordinary declaration
49245 cat >conftest.$ac_ext <<_ACEOF
49248 cat confdefs.h >>conftest.$ac_ext
49249 cat >>conftest.$ac_ext <<_ACEOF
49250 /* end confdefs.h. */
49254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49255 $EGREP "${ice_re_word}strcasecmp[ ]*\(" >/dev/null 2>&1; then
49256 ice_cv_have_strcasecmp_decl=yes
49260 if test "$ice_cv_have_strcasecmp_decl" = yes; then
49263 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49264 cat >conftest.$ac_ext <<_ACEOF
49267 cat confdefs.h >>conftest.$ac_ext
49268 cat >>conftest.$ac_ext <<_ACEOF
49269 /* end confdefs.h. */
49273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49274 $EGREP "${ice_re_word}strcasecmp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49275 ice_cv_have_strcasecmp_decl=yes
49279 if test "$ice_cv_have_strcasecmp_decl" = yes; then
49286 echo "$as_me:$LINENO: result: $ice_cv_have_strcasecmp_decl" >&5
49287 echo "${ECHO_T}$ice_cv_have_strcasecmp_decl" >&6
49288 if test "$ice_cv_have_strcasecmp_decl" = yes; then
49290 cat >>confdefs.h <<_ACEOF
49291 #define HAVE_STRCASECMP_DECL 1
49299 for ac_func in fnmatch
49301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49302 echo "$as_me:$LINENO: checking for $ac_func" >&5
49303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49304 if eval "test \"\${$as_ac_var+set}\" = set"; then
49305 echo $ECHO_N "(cached) $ECHO_C" >&6
49307 cat >conftest.$ac_ext <<_ACEOF
49310 cat confdefs.h >>conftest.$ac_ext
49311 cat >>conftest.$ac_ext <<_ACEOF
49312 /* end confdefs.h. */
49313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49315 #define $ac_func innocuous_$ac_func
49317 /* System header to define __stub macros and hopefully few prototypes,
49318 which can conflict with char $ac_func (); below.
49319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49320 <limits.h> exists even on freestanding compilers. */
49323 # include <limits.h>
49325 # include <assert.h>
49330 /* Override any gcc2 internal prototype to avoid an error. */
49335 /* We use char because int might match the return type of a gcc2
49336 builtin and then its argument prototype would still apply. */
49338 /* The GNU C library defines this for functions which it implements
49339 to always fail with ENOSYS. Some functions are actually named
49340 something starting with __ and the normal name is an alias. */
49341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49344 char (*f) () = $ac_func;
49353 return f != $ac_func;
49358 rm -f conftest.$ac_objext conftest$ac_exeext
49359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49360 (eval $ac_link) 2>conftest.er1
49362 grep -v '^ *+' conftest.er1 >conftest.err
49364 cat conftest.err >&5
49365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49366 (exit $ac_status); } &&
49367 { ac_try='test -z "$ac_c_werror_flag"
49368 || test ! -s conftest.err'
49369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49370 (eval $ac_try) 2>&5
49372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49373 (exit $ac_status); }; } &&
49374 { ac_try='test -s conftest$ac_exeext'
49375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49376 (eval $ac_try) 2>&5
49378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49379 (exit $ac_status); }; }; then
49380 eval "$as_ac_var=yes"
49382 echo "$as_me: failed program was:" >&5
49383 sed 's/^/| /' conftest.$ac_ext >&5
49385 eval "$as_ac_var=no"
49387 rm -f conftest.err conftest.$ac_objext \
49388 conftest$ac_exeext conftest.$ac_ext
49390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49391 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49392 if test `eval echo '${'$as_ac_var'}'` = yes; then
49393 cat >>confdefs.h <<_ACEOF
49394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49401 if test "$ac_cv_func_fnmatch" != yes -a "$USE_QUICK_AND_DIRTY_ESTIMATES" != yes ; then
49402 { echo "$as_me:$LINENO: WARNING: --with-qde and no fnmatch -- gnutar exclude files will not work" >&5
49403 echo "$as_me: WARNING: --with-qde and no fnmatch -- gnutar exclude files will not work" >&2;}
49406 echo "$as_me:$LINENO: checking disk device prefixes" >&5
49407 echo $ECHO_N "checking disk device prefixes... $ECHO_C" >&6
49409 df / | while read line; do
49411 while test $# -gt 0; do
49412 if test "$1" = "/"; then
49419 ) | sed 's/(//' | sed 's/)//' `
49423 while test $# -gt 0; do
49424 if expr "$1" : '.*dev' >/dev/null 2>&1; then
49432 if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
49433 echo "$as_me:$LINENO: result: (predefined) $DEV_PREFIX - $RDEV_PREFIX" >&5
49434 echo "${ECHO_T}(predefined) $DEV_PREFIX - $RDEV_PREFIX" >&6
49436 if test -d /dev/dsk; then
49437 DEV_PREFIX=/dev/dsk/
49438 if test -d /dev/rdsk; then
49439 RDEV_PREFIX=/dev/rdsk/
49441 RDEV_PREFIX=/dev/dsk/
49443 elif test -d /dev; then
49446 dev_prefix=/dev/dsk/
49447 rdev_prefix=/dev/rdsk/
49448 { echo "$as_me:$LINENO: WARNING: \"*** Run amsinixfixdevs on Sinix systems using VxFS.\"" >&5
49449 echo "$as_me: WARNING: \"*** Run amsinixfixdevs on Sinix systems using VxFS.\"" >&2;}
49454 # Some systems, notably Linux, do not have raw disk devices
49455 # names. Check this by trying to see if a raw disk device name
49456 # exists using the normal raw device path prepended to the
49457 # mount point of the root filesystem.
49458 if test "$mount"; then
49459 dev_name="/dev/r`basename $mount`"
49460 if test -b $dev_name -o -c $dev_name; then
49474 echo "$as_me:$LINENO: result: $DEV_PREFIX - $RDEV_PREFIX" >&5
49475 echo "${ECHO_T}$DEV_PREFIX - $RDEV_PREFIX" >&6
49479 cat >>confdefs.h <<_ACEOF
49480 #define DEV_PREFIX "${DEV_PREFIX}"
49484 cat >>confdefs.h <<_ACEOF
49485 #define RDEV_PREFIX "${RDEV_PREFIX}"
49491 { echo "$as_me:$LINENO: WARNING: \"*** Run amhpfixdevs on HP-UX systems using /dev/vg??.\"" >&5
49492 echo "$as_me: WARNING: \"*** Run amhpfixdevs on HP-UX systems using /dev/vg??.\"" >&2;}
49496 echo "$as_me:$LINENO: checking whether posix fcntl locking works" >&5
49497 echo $ECHO_N "checking whether posix fcntl locking works... $ECHO_C" >&6
49498 if test "${amanda_cv_posix_filelocking+set}" = set; then
49499 echo $ECHO_N "(cached) $ECHO_C" >&6
49502 if test "$cross_compiling" = yes; then
49504 amanda_cv_posix_filelocking="no (cannot run test)"
49507 cat >conftest.$ac_ext <<_ACEOF
49510 cat confdefs.h >>conftest.$ac_ext
49511 cat >>conftest.$ac_ext <<_ACEOF
49512 /* end confdefs.h. */
49515 #define CONFIGURE_TEST
49516 #define USE_POSIX_FCNTL
49517 #include "${srcdir-.}/common-src/amflock.c"
49520 rm -f conftest$ac_exeext
49521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49522 (eval $ac_link) 2>&5
49524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49527 (eval $ac_try) 2>&5
49529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49530 (exit $ac_status); }; }; then
49532 amanda_cv_posix_filelocking=yes
49535 echo "$as_me: program exited with status $ac_status" >&5
49536 echo "$as_me: failed program was:" >&5
49537 sed 's/^/| /' conftest.$ac_ext >&5
49539 ( exit $ac_status )
49541 amanda_cv_posix_filelocking="no"
49544 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49546 rm -f /tmp/conftest.lock
49549 echo "$as_me:$LINENO: result: $amanda_cv_posix_filelocking" >&5
49550 echo "${ECHO_T}$amanda_cv_posix_filelocking" >&6
49551 if test "$amanda_cv_posix_filelocking" = yes; then
49553 cat >>confdefs.h <<\_ACEOF
49554 #define USE_POSIX_FCNTL 1
49557 HAS_WORKING_FILE_LOCK=1
49560 if test -z "$HAS_WORKING_FILE_LOCK"; then
49561 echo "$as_me:$LINENO: checking whether flock locking works" >&5
49562 echo $ECHO_N "checking whether flock locking works... $ECHO_C" >&6
49563 if test "${amanda_cv_flock_filelocking+set}" = set; then
49564 echo $ECHO_N "(cached) $ECHO_C" >&6
49567 if test "$cross_compiling" = yes; then
49569 amanda_cv_flock_filelocking="no (cannot run test)"
49572 cat >conftest.$ac_ext <<_ACEOF
49575 cat confdefs.h >>conftest.$ac_ext
49576 cat >>conftest.$ac_ext <<_ACEOF
49577 /* end confdefs.h. */
49580 #define CONFIGURE_TEST
49582 #include "${srcdir-.}/common-src/amflock.c"
49585 rm -f conftest$ac_exeext
49586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49587 (eval $ac_link) 2>&5
49589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49592 (eval $ac_try) 2>&5
49594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49595 (exit $ac_status); }; }; then
49597 amanda_cv_flock_filelocking="yes"
49600 echo "$as_me: program exited with status $ac_status" >&5
49601 echo "$as_me: failed program was:" >&5
49602 sed 's/^/| /' conftest.$ac_ext >&5
49604 ( exit $ac_status )
49606 amanda_cv_flock_filelocking="no"
49609 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49611 rm -f /tmp/conftest.lock
49614 echo "$as_me:$LINENO: result: $amanda_cv_flock_filelocking" >&5
49615 echo "${ECHO_T}$amanda_cv_flock_filelocking" >&6
49616 if test "$amanda_cv_flock_filelocking" = yes; then
49618 cat >>confdefs.h <<\_ACEOF
49619 #define USE_FLOCK 1
49622 HAS_WORKING_FILE_LOCK=1
49626 if test -z "$HAS_WORKING_FILE_LOCK"; then
49627 echo "$as_me:$LINENO: checking whether lockf locking works" >&5
49628 echo $ECHO_N "checking whether lockf locking works... $ECHO_C" >&6
49629 if test "${amanda_cv_lockf_filelocking+set}" = set; then
49630 echo $ECHO_N "(cached) $ECHO_C" >&6
49633 if test "$cross_compiling" = yes; then
49635 amanda_cv_lockf_filelocking="no (cannot run test)"
49638 cat >conftest.$ac_ext <<_ACEOF
49641 cat confdefs.h >>conftest.$ac_ext
49642 cat >>conftest.$ac_ext <<_ACEOF
49643 /* end confdefs.h. */
49646 #define CONFIGURE_TEST
49648 #include "${srcdir-.}/common-src/amflock.c"
49651 rm -f conftest$ac_exeext
49652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49653 (eval $ac_link) 2>&5
49655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49658 (eval $ac_try) 2>&5
49660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49661 (exit $ac_status); }; }; then
49663 amanda_cv_lockf_filelocking="yes"
49666 echo "$as_me: program exited with status $ac_status" >&5
49667 echo "$as_me: failed program was:" >&5
49668 sed 's/^/| /' conftest.$ac_ext >&5
49670 ( exit $ac_status )
49672 amanda_cv_lockf_filelocking="no"
49675 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49677 rm -f /tmp/conftest.lock
49680 echo "$as_me:$LINENO: result: $amanda_cv_lockf_filelocking" >&5
49681 echo "${ECHO_T}$amanda_cv_lockf_filelocking" >&6
49682 if test "$amanda_cv_lockf_filelocking" = yes; then
49684 cat >>confdefs.h <<\_ACEOF
49685 #define USE_LOCKF 1
49688 HAS_WORKING_FILE_LOCK=1
49692 if test -z "$HAS_WORKING_FILE_LOCK"; then
49693 echo "$as_me:$LINENO: checking whether lnlock locking works" >&5
49694 echo $ECHO_N "checking whether lnlock locking works... $ECHO_C" >&6
49695 if test "${amanda_cv_lnlock_filelocking+set}" = set; then
49696 echo $ECHO_N "(cached) $ECHO_C" >&6
49699 if test "$cross_compiling" = yes; then
49701 amanda_cv_lnlock_filelocking="no (cannot run test)"
49704 cat >conftest.$ac_ext <<_ACEOF
49707 cat confdefs.h >>conftest.$ac_ext
49708 cat >>conftest.$ac_ext <<_ACEOF
49709 /* end confdefs.h. */
49712 #define CONFIGURE_TEST
49714 #include "${srcdir-.}/common-src/amflock.c"
49715 #include "${srcdir-.}/common-src/alloc.c"
49716 #include "${srcdir-.}/common-src/error.c"
49717 #include "${srcdir-.}/common-src/snprintf.c"
49720 rm -f conftest$ac_exeext
49721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49722 (eval $ac_link) 2>&5
49724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49727 (eval $ac_try) 2>&5
49729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49730 (exit $ac_status); }; }; then
49732 amanda_cv_lnlock_filelocking="yes"
49735 echo "$as_me: program exited with status $ac_status" >&5
49736 echo "$as_me: failed program was:" >&5
49737 sed 's/^/| /' conftest.$ac_ext >&5
49739 ( exit $ac_status )
49741 amanda_cv_lnlock_filelocking="no"
49744 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49746 rm -f /tmp/conftest.lock
49749 echo "$as_me:$LINENO: result: $amanda_cv_lnlock_filelocking" >&5
49750 echo "${ECHO_T}$amanda_cv_lnlock_filelocking" >&6
49751 if test "$amanda_cv_lnlock_filelocking" = yes; then
49753 cat >>confdefs.h <<\_ACEOF
49754 #define USE_LNLOCK 1
49757 HAS_WORKING_FILE_LOCK=1
49761 if test -z "$HAS_WORKING_FILE_LOCK"; then
49762 { echo "$as_me:$LINENO: WARNING: *** No working file locking capability found!" >&5
49763 echo "$as_me: WARNING: *** No working file locking capability found!" >&2;}
49764 { echo "$as_me:$LINENO: WARNING: *** Be VERY VERY careful." >&5
49765 echo "$as_me: WARNING: *** Be VERY VERY careful." >&2;}
49776 if test x"$NO_CLIENT_MODE" != x"true"; then
49778 WANT_CLIENT_FALSE='#'
49780 WANT_CLIENT_TRUE='#'
49786 if test ! -z "$SAMBA_CLIENT"; then
49788 WANT_SAMBA_FALSE='#'
49790 WANT_SAMBA_TRUE='#'
49796 if test x"$NO_RESTORE_MODE" != x"true"; then
49798 WANT_RESTORE_FALSE='#'
49800 WANT_RESTORE_TRUE='#'
49801 WANT_RESTORE_FALSE=
49806 if test x"$NO_SERVER_MODE" != x"true"; then
49808 WANT_SERVER_FALSE='#'
49810 WANT_SERVER_TRUE='#'
49816 if test x"$NO_RECOVER_MODE" != x"true" && test x"$NO_CLIENT_MODE" != x"true"; then
49818 WANT_RECOVER_FALSE='#'
49820 WANT_RECOVER_TRUE='#'
49821 WANT_RECOVER_FALSE=
49826 if test x"$NO_SERVER_MODE" != x"true" || test x"$NO_RESTORE_MODE" != x"true"; then
49828 WANT_TAPE_FALSE='#'
49836 if test x"$NO_AMPLOT_MODE" != x"true"; then
49838 WANT_AMPLOT_FALSE='#'
49840 WANT_AMPLOT_TRUE='#'
49846 if test x"$NO_SCSI_CHANGER_MODE" != x"true"; then
49847 WANT_CHG_SCSI_TRUE=
49848 WANT_CHG_SCSI_FALSE='#'
49850 WANT_CHG_SCSI_TRUE='#'
49851 WANT_CHG_SCSI_FALSE=
49856 if test x"$NO_CHIO_CHANGER_MODE" != x"true"; then
49857 WANT_CHIO_SCSI_TRUE=
49858 WANT_CHIO_SCSI_FALSE='#'
49860 WANT_CHIO_SCSI_TRUE='#'
49861 WANT_CHIO_SCSI_FALSE=
49866 if test x"$NEED_RUNTIME_PSEUDO_RELOC" = x"true"; then
49867 WANT_RUNTIME_PSEUDO_RELOC_TRUE=
49868 WANT_RUNTIME_PSEUDO_RELOC_FALSE='#'
49870 WANT_RUNTIME_PSEUDO_RELOC_TRUE='#'
49871 WANT_RUNTIME_PSEUDO_RELOC_FALSE=
49876 if test x"$NEED_SETUID_CLIENT" != x"false"; then
49877 WANT_SETUID_CLIENT_TRUE=
49878 WANT_SETUID_CLIENT_FALSE='#'
49880 WANT_SETUID_CLIENT_TRUE='#'
49881 WANT_SETUID_CLIENT_FALSE=
49885 case "${FORCE_USE_RUNDUMP-${USE_RUNDUMP}}" in
49887 cat >>confdefs.h <<\_ACEOF
49888 #define USE_RUNDUMP 1
49893 # This is necessary so that .o files in LIBOBJS are also built via
49894 # the ANSI2KNR-filtering rules.
49895 LIBOBJS=`echo "$LIBOBJS" |
49896 sed 's,\.[^.]* ,$U&,g;s,\.[^.]*$,$U&,'`
49897 LTLIBOBJS=`echo "$LIBOBJS" |
49898 sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
49901 LTALLOCA=`echo "$ALLOCA" | sed 's/\.'"${ac_objext}"'/\.lo/g'`
49904 ac_config_files="$ac_config_files amplot/amcat.awk amplot/amplot.sh amplot/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 client-src/patch-system.sh client-src/Makefile common-src/versuff.c common-src/Makefile example/amanda.conf example/Makefile example/amanda.conf.chg-scsi example/chg-scsi-linux.conf example/chg-scsi-solaris.conf example/chg-scsi-hpux.conf example/chg-mcutil.conf man/Makefile docs/Makefile recover-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 tape-src/Makefile config/Makefile Makefile"
49906 cat >confcache <<\_ACEOF
49907 # This file is a shell script that caches the results of configure
49908 # tests run on this system so they can be shared between configure
49909 # scripts and configure runs, see configure's option --config-cache.
49910 # It is not useful on other systems. If it contains results you don't
49911 # want to keep, you may remove or edit it.
49913 # config.status only pays attention to the cache file if you give it
49914 # the --recheck option to rerun configure.
49916 # `ac_cv_env_foo' variables (set or unset) will be overridden when
49917 # loading this file, other *unset* `ac_cv_foo' will be assigned the
49918 # following values.
49922 # The following way of writing the cache mishandles newlines in values,
49923 # but we know of no workaround that is simple, portable, and efficient.
49924 # So, don't put newlines in cache variables' values.
49925 # Ultrix sh set writes to stderr and can't be redirected directly,
49926 # and sets the high bit in the cache file unless we assign to the vars.
49929 case `(ac_space=' '; set | grep ac_space) 2>&1` in
49931 # `set' does not quote correctly, so add quotes (double-quote
49932 # substitution turns \\\\ into \\, and sed turns \\ into \).
49935 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
49938 # `set' quotes correctly as required by POSIX, so do not add quotes.
49940 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
49947 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49949 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49951 if diff $cache_file confcache >/dev/null 2>&1; then :; else
49952 if test -w $cache_file; then
49953 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
49954 cat confcache >$cache_file
49956 echo "not updating unwritable cache $cache_file"
49961 test "x$prefix" = xNONE && prefix=$ac_default_prefix
49962 # Let make expand exec_prefix.
49963 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49965 # VPATH may cause trouble with some makes, so we remove $(srcdir),
49966 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
49967 # trailing colons and then remove the whole line if VPATH becomes empty
49968 # (actually we leave an empty line to preserve line numbers).
49969 if test "x$srcdir" = x.; then
49970 ac_vpsub='/^[ ]*VPATH[ ]*=/{
49971 s/:*\$(srcdir):*/:/;
49972 s/:*\${srcdir}:*/:/;
49974 s/^\([^=]*=[ ]*\):*/\1/;
49980 DEFS=-DHAVE_CONFIG_H
49984 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49985 # 1. Remove the extension, and $U if already installed.
49986 ac_i=`echo "$ac_i" |
49987 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
49989 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
49990 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
49992 LIBOBJS=$ac_libobjs
49994 LTLIBOBJS=$ac_ltlibobjs
49997 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
49998 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
49999 Usually this means the macro was only invoked conditionally." >&5
50000 echo "$as_me: error: conditional \"AMDEP\" was never defined.
50001 Usually this means the macro was only invoked conditionally." >&2;}
50002 { (exit 1); exit 1; }; }
50004 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
50005 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
50006 Usually this means the macro was only invoked conditionally." >&5
50007 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
50008 Usually this means the macro was only invoked conditionally." >&2;}
50009 { (exit 1); exit 1; }; }
50011 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
50012 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
50013 Usually this means the macro was only invoked conditionally." >&5
50014 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
50015 Usually this means the macro was only invoked conditionally." >&2;}
50016 { (exit 1); exit 1; }; }
50018 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
50019 { { echo "$as_me:$LINENO: error: conditional \"WANT_CLIENT\" was never defined.
50020 Usually this means the macro was only invoked conditionally." >&5
50021 echo "$as_me: error: conditional \"WANT_CLIENT\" was never defined.
50022 Usually this means the macro was only invoked conditionally." >&2;}
50023 { (exit 1); exit 1; }; }
50025 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
50026 { { echo "$as_me:$LINENO: error: conditional \"WANT_SAMBA\" was never defined.
50027 Usually this means the macro was only invoked conditionally." >&5
50028 echo "$as_me: error: conditional \"WANT_SAMBA\" was never defined.
50029 Usually this means the macro was only invoked conditionally." >&2;}
50030 { (exit 1); exit 1; }; }
50032 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
50033 { { echo "$as_me:$LINENO: error: conditional \"WANT_RESTORE\" was never defined.
50034 Usually this means the macro was only invoked conditionally." >&5
50035 echo "$as_me: error: conditional \"WANT_RESTORE\" was never defined.
50036 Usually this means the macro was only invoked conditionally." >&2;}
50037 { (exit 1); exit 1; }; }
50039 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
50040 { { echo "$as_me:$LINENO: error: conditional \"WANT_SERVER\" was never defined.
50041 Usually this means the macro was only invoked conditionally." >&5
50042 echo "$as_me: error: conditional \"WANT_SERVER\" was never defined.
50043 Usually this means the macro was only invoked conditionally." >&2;}
50044 { (exit 1); exit 1; }; }
50046 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
50047 { { echo "$as_me:$LINENO: error: conditional \"WANT_RECOVER\" was never defined.
50048 Usually this means the macro was only invoked conditionally." >&5
50049 echo "$as_me: error: conditional \"WANT_RECOVER\" was never defined.
50050 Usually this means the macro was only invoked conditionally." >&2;}
50051 { (exit 1); exit 1; }; }
50053 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
50054 { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE\" was never defined.
50055 Usually this means the macro was only invoked conditionally." >&5
50056 echo "$as_me: error: conditional \"WANT_TAPE\" was never defined.
50057 Usually this means the macro was only invoked conditionally." >&2;}
50058 { (exit 1); exit 1; }; }
50060 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
50061 { { echo "$as_me:$LINENO: error: conditional \"WANT_AMPLOT\" was never defined.
50062 Usually this means the macro was only invoked conditionally." >&5
50063 echo "$as_me: error: conditional \"WANT_AMPLOT\" was never defined.
50064 Usually this means the macro was only invoked conditionally." >&2;}
50065 { (exit 1); exit 1; }; }
50067 if test -z "${WANT_CHG_SCSI_TRUE}" && test -z "${WANT_CHG_SCSI_FALSE}"; then
50068 { { echo "$as_me:$LINENO: error: conditional \"WANT_CHG_SCSI\" was never defined.
50069 Usually this means the macro was only invoked conditionally." >&5
50070 echo "$as_me: error: conditional \"WANT_CHG_SCSI\" was never defined.
50071 Usually this means the macro was only invoked conditionally." >&2;}
50072 { (exit 1); exit 1; }; }
50074 if test -z "${WANT_CHIO_SCSI_TRUE}" && test -z "${WANT_CHIO_SCSI_FALSE}"; then
50075 { { echo "$as_me:$LINENO: error: conditional \"WANT_CHIO_SCSI\" was never defined.
50076 Usually this means the macro was only invoked conditionally." >&5
50077 echo "$as_me: error: conditional \"WANT_CHIO_SCSI\" was never defined.
50078 Usually this means the macro was only invoked conditionally." >&2;}
50079 { (exit 1); exit 1; }; }
50081 if test -z "${WANT_RUNTIME_PSEUDO_RELOC_TRUE}" && test -z "${WANT_RUNTIME_PSEUDO_RELOC_FALSE}"; then
50082 { { echo "$as_me:$LINENO: error: conditional \"WANT_RUNTIME_PSEUDO_RELOC\" was never defined.
50083 Usually this means the macro was only invoked conditionally." >&5
50084 echo "$as_me: error: conditional \"WANT_RUNTIME_PSEUDO_RELOC\" was never defined.
50085 Usually this means the macro was only invoked conditionally." >&2;}
50086 { (exit 1); exit 1; }; }
50088 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
50089 { { echo "$as_me:$LINENO: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
50090 Usually this means the macro was only invoked conditionally." >&5
50091 echo "$as_me: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
50092 Usually this means the macro was only invoked conditionally." >&2;}
50093 { (exit 1); exit 1; }; }
50096 : ${CONFIG_STATUS=./config.status}
50097 ac_clean_files_save=$ac_clean_files
50098 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
50099 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
50100 echo "$as_me: creating $CONFIG_STATUS" >&6;}
50101 cat >$CONFIG_STATUS <<_ACEOF
50103 # Generated by $as_me.
50104 # Run this file to recreate the current configuration.
50105 # Compiler output produced by configure, useful for debugging
50106 # configure, is in config.log if it exists.
50109 ac_cs_recheck=false
50111 SHELL=\${CONFIG_SHELL-$SHELL}
50114 cat >>$CONFIG_STATUS <<\_ACEOF
50115 ## --------------------- ##
50116 ## M4sh Initialization. ##
50117 ## --------------------- ##
50119 # Be Bourne compatible
50120 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
50123 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
50124 # is contrary to our usage. Disable this feature.
50125 alias -g '${1+"$@"}'='"$@"'
50126 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
50129 DUALCASE=1; export DUALCASE # for MKS sh
50131 # Support unset when possible.
50132 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
50139 # Work around bugs in pre-3.0 UWIN ksh.
50140 $as_unset ENV MAIL MAILPATH
50147 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50148 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50149 LC_TELEPHONE LC_TIME
50151 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
50152 eval $as_var=C; export $as_var
50158 # Required to use basename.
50159 if expr a : '\(a\)' >/dev/null 2>&1; then
50165 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
50166 as_basename=basename
50172 # Name of the executable.
50173 as_me=`$as_basename "$0" ||
50174 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
50175 X"$0" : 'X\(//\)$' \| \
50176 X"$0" : 'X\(/\)$' \| \
50177 . : '\(.\)' 2>/dev/null ||
50179 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
50180 /^X\/\(\/\/\)$/{ s//\1/; q; }
50181 /^X\/\(\/\).*/{ s//\1/; q; }
50185 # PATH needs CR, and LINENO needs CR and PATH.
50186 # Avoid depending upon Character Ranges.
50187 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
50188 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
50189 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
50190 as_cr_digits='0123456789'
50191 as_cr_alnum=$as_cr_Letters$as_cr_digits
50193 # The user is always right.
50194 if test "${PATH_SEPARATOR+set}" != set; then
50195 echo "#! /bin/sh" >conf$$.sh
50196 echo "exit 0" >>conf$$.sh
50198 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50207 as_lineno_1=$LINENO
50208 as_lineno_2=$LINENO
50209 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50210 test "x$as_lineno_1" != "x$as_lineno_2" &&
50211 test "x$as_lineno_3" = "x$as_lineno_2" || {
50212 # Find who we are. Look in the path if we contain no path at all
50215 *[\\/]* ) as_myself=$0 ;;
50216 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50217 for as_dir in $PATH
50220 test -z "$as_dir" && as_dir=.
50221 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
50226 # We did not find ourselves, most probably we were run as `sh COMMAND'
50227 # in which case we are not to be found in the path.
50228 if test "x$as_myself" = x; then
50231 if test ! -f "$as_myself"; then
50232 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
50233 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
50234 { (exit 1); exit 1; }; }
50236 case $CONFIG_SHELL in
50238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50239 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
50242 test -z "$as_dir" && as_dir=.
50243 for as_base in sh bash ksh sh5; do
50246 if ("$as_dir/$as_base" -c '
50247 as_lineno_1=$LINENO
50248 as_lineno_2=$LINENO
50249 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50250 test "x$as_lineno_1" != "x$as_lineno_2" &&
50251 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
50252 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
50253 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
50254 CONFIG_SHELL=$as_dir/$as_base
50255 export CONFIG_SHELL
50256 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
50264 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
50265 # uniformly replaced by the line number. The first 'sed' inserts a
50266 # line-number line before each line; the second 'sed' does the real
50267 # work. The second script uses 'N' to pair each line-number line
50268 # with the numbered line, and appends trailing '-' during
50269 # substitution so that $LINENO is not a special case at line end.
50270 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
50271 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
50272 sed '=' <$as_myself |
50277 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
50280 s,^['$as_cr_digits']*\n,,
50281 ' >$as_me.lineno &&
50282 chmod +x $as_me.lineno ||
50283 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
50284 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
50285 { (exit 1); exit 1; }; }
50287 # Don't try to exec as it changes $[0], causing all sort of problems
50288 # (the dirname of $[0] is not the place where we might find the
50289 # original and so on. Autoconf is especially sensible to this).
50291 # Exit status is that of the last command.
50296 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
50297 *c*,-n*) ECHO_N= ECHO_C='
50299 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
50300 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
50303 if expr a : '\(a\)' >/dev/null 2>&1; then
50309 rm -f conf$$ conf$$.exe conf$$.file
50311 if ln -s conf$$.file conf$$ 2>/dev/null; then
50312 # We could just check for DJGPP; but this test a) works b) is more generic
50313 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
50314 if test -f conf$$.exe; then
50315 # Don't use ln at all; we don't have any links
50320 elif ln conf$$.file conf$$ 2>/dev/null; then
50325 rm -f conf$$ conf$$.exe conf$$.file
50327 if mkdir -p . 2>/dev/null; then
50330 test -d ./-p && rmdir ./-p
50334 as_executable_p="test -f"
50336 # Sed expression to map a string onto a valid CPP name.
50337 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
50339 # Sed expression to map a string onto a valid variable name.
50340 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
50344 # We need space, tab and new line, in precisely that order.
50354 # Open the log real soon, to keep \$[0] and so on meaningful, and to
50355 # report actual input values of CONFIG_FILES etc. instead of their
50356 # values after options handling. Logging --version etc. is OK.
50360 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
50361 ## Running $as_me. ##
50366 This file was extended by $as_me, which was
50367 generated by GNU Autoconf 2.59. Invocation command line was
50369 CONFIG_FILES = $CONFIG_FILES
50370 CONFIG_HEADERS = $CONFIG_HEADERS
50371 CONFIG_LINKS = $CONFIG_LINKS
50372 CONFIG_COMMANDS = $CONFIG_COMMANDS
50376 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
50380 # Files that config.status was made for.
50381 if test -n "$ac_config_files"; then
50382 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
50385 if test -n "$ac_config_headers"; then
50386 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
50389 if test -n "$ac_config_links"; then
50390 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
50393 if test -n "$ac_config_commands"; then
50394 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
50397 cat >>$CONFIG_STATUS <<\_ACEOF
50400 \`$as_me' instantiates files from templates according to the
50401 current configuration.
50403 Usage: $0 [OPTIONS] [FILE]...
50405 -h, --help print this help, then exit
50406 -V, --version print version number, then exit
50407 -q, --quiet do not print progress messages
50408 -d, --debug don't remove temporary files
50409 --recheck update $as_me by reconfiguring in the same conditions
50410 --file=FILE[:TEMPLATE]
50411 instantiate the configuration file FILE
50412 --header=FILE[:TEMPLATE]
50413 instantiate the configuration header FILE
50415 Configuration files:
50418 Configuration headers:
50421 Configuration commands:
50424 Report bugs to <bug-autoconf@gnu.org>."
50427 cat >>$CONFIG_STATUS <<_ACEOF
50430 configured by $0, generated by GNU Autoconf 2.59,
50431 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
50433 Copyright (C) 2003 Free Software Foundation, Inc.
50434 This config.status script is free software; the Free Software Foundation
50435 gives unlimited permission to copy, distribute and modify it."
50440 cat >>$CONFIG_STATUS <<\_ACEOF
50441 # If no file are specified by the user, then we need to provide default
50442 # value. By we need to know if files were specified by the user.
50448 ac_option=`expr "x$1" : 'x\([^=]*\)='`
50449 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
50457 *) # This is not an option, so the user has probably given explicit
50460 ac_need_defaults=false;;
50464 # Handling of the options.
50466 cat >>$CONFIG_STATUS <<\_ACEOF
50467 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
50469 --version | --vers* | -V )
50470 echo "$ac_cs_version"; exit 0 ;;
50472 # Conflict between --help and --header
50473 { { echo "$as_me:$LINENO: error: ambiguous option: $1
50474 Try \`$0 --help' for more information." >&5
50475 echo "$as_me: error: ambiguous option: $1
50476 Try \`$0 --help' for more information." >&2;}
50477 { (exit 1); exit 1; }; };;
50478 --help | --hel | -h )
50479 echo "$ac_cs_usage"; exit 0 ;;
50480 --debug | --d* | -d )
50482 --file | --fil | --fi | --f )
50484 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
50485 ac_need_defaults=false;;
50486 --header | --heade | --head | --hea )
50488 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
50489 ac_need_defaults=false;;
50490 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
50491 | -silent | --silent | --silen | --sile | --sil | --si | --s)
50494 # This is an error.
50495 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
50496 Try \`$0 --help' for more information." >&5
50497 echo "$as_me: error: unrecognized option: $1
50498 Try \`$0 --help' for more information." >&2;}
50499 { (exit 1); exit 1; }; } ;;
50501 *) ac_config_targets="$ac_config_targets $1" ;;
50507 ac_configure_extra_args=
50509 if $ac_cs_silent; then
50511 ac_configure_extra_args="$ac_configure_extra_args --silent"
50515 cat >>$CONFIG_STATUS <<_ACEOF
50516 if \$ac_cs_recheck; then
50517 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
50518 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
50523 cat >>$CONFIG_STATUS <<_ACEOF
50525 # INIT-COMMANDS section.
50528 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
50529 # variables for create stdint.h replacement
50532 ac_stdint_h="$ac_stdint_h"
50533 _ac_stdint_h=`echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
50534 ac_cv_stdint_message="$ac_cv_stdint_message"
50535 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
50536 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
50537 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
50538 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
50539 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
50540 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
50541 ac_cv_stdint_char_model="$ac_cv_stdint_char_model"
50542 ac_cv_stdint_long_model="$ac_cv_stdint_long_model"
50543 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
50544 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
50545 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
50552 cat >>$CONFIG_STATUS <<\_ACEOF
50553 for ac_config_target in $ac_config_targets
50555 case "$ac_config_target" in
50556 # Handling of arguments.
50557 "amplot/amcat.awk" ) CONFIG_FILES="$CONFIG_FILES amplot/amcat.awk" ;;
50558 "amplot/amplot.sh" ) CONFIG_FILES="$CONFIG_FILES amplot/amplot.sh" ;;
50559 "amplot/Makefile" ) CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
50560 "changer-src/chg-manual.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-manual.sh" ;;
50561 "changer-src/chg-multi.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-multi.sh" ;;
50562 "changer-src/chg-mtx.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-mtx.sh" ;;
50563 "changer-src/chg-chs.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-chs.sh" ;;
50564 "changer-src/chg-rth.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-rth.pl" ;;
50565 "changer-src/chg-chio.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-chio.pl" ;;
50566 "changer-src/chg-zd-mtx.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-zd-mtx.sh" ;;
50567 "changer-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
50568 "changer-src/chg-juke.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-juke.sh" ;;
50569 "changer-src/chg-rait.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-rait.sh" ;;
50570 "changer-src/chg-null.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-null.sh" ;;
50571 "changer-src/chg-mcutil.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-mcutil.sh" ;;
50572 "changer-src/chg-disk.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-disk.sh" ;;
50573 "changer-src/chg-iomega.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-iomega.pl" ;;
50574 "client-src/patch-system.sh" ) CONFIG_FILES="$CONFIG_FILES client-src/patch-system.sh" ;;
50575 "client-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
50576 "common-src/versuff.c" ) CONFIG_FILES="$CONFIG_FILES common-src/versuff.c" ;;
50577 "common-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
50578 "example/amanda.conf" ) CONFIG_FILES="$CONFIG_FILES example/amanda.conf" ;;
50579 "example/Makefile" ) CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
50580 "example/amanda.conf.chg-scsi" ) CONFIG_FILES="$CONFIG_FILES example/amanda.conf.chg-scsi" ;;
50581 "example/chg-scsi-linux.conf" ) CONFIG_FILES="$CONFIG_FILES example/chg-scsi-linux.conf" ;;
50582 "example/chg-scsi-solaris.conf" ) CONFIG_FILES="$CONFIG_FILES example/chg-scsi-solaris.conf" ;;
50583 "example/chg-scsi-hpux.conf" ) CONFIG_FILES="$CONFIG_FILES example/chg-scsi-hpux.conf" ;;
50584 "example/chg-mcutil.conf" ) CONFIG_FILES="$CONFIG_FILES example/chg-mcutil.conf" ;;
50585 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
50586 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
50587 "recover-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
50588 "restore-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES restore-src/Makefile" ;;
50589 "server-src/amcheckdb.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcheckdb.sh" ;;
50590 "server-src/amcleanup.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcleanup.sh" ;;
50591 "server-src/amdump.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amdump.sh" ;;
50592 "server-src/amfreetapes.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amfreetapes.sh" ;;
50593 "server-src/amoverview.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amoverview.pl" ;;
50594 "server-src/amrmtape.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amrmtape.sh" ;;
50595 "server-src/amtoc.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amtoc.pl" ;;
50596 "server-src/amverify.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amverify.sh" ;;
50597 "server-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
50598 "server-src/amstatus.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amstatus.pl" ;;
50599 "server-src/amverifyrun.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amverifyrun.sh" ;;
50600 "tape-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES tape-src/Makefile" ;;
50601 "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
50602 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
50603 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
50604 "$ac_stdint_h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
50605 "config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
50606 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
50607 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
50608 { (exit 1); exit 1; }; };;
50612 # If the user did not use the arguments to specify the items to instantiate,
50613 # then the envvar interface is used. Set only those that are not.
50614 # We use the long form for the default assignment because of an extremely
50615 # bizarre bug on SunOS 4.1.3.
50616 if $ac_need_defaults; then
50617 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
50618 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
50619 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
50622 # Have a temporary directory for convenience. Make it in the build tree
50623 # simply because there is no reason to put it here, and in addition,
50624 # creating and moving files from /tmp can sometimes cause problems.
50625 # Create a temporary directory, and hook for its removal unless debugging.
50628 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
50629 trap '{ (exit 1); exit 1; }' 1 2 13 15
50632 # Create a (secure) tmp directory for tmp files.
50635 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
50636 test -n "$tmp" && test -d "$tmp"
50639 tmp=./confstat$$-$RANDOM
50640 (umask 077 && mkdir $tmp)
50643 echo "$me: cannot create a temporary directory in ." >&2
50644 { (exit 1); exit 1; }
50649 cat >>$CONFIG_STATUS <<_ACEOF
50652 # CONFIG_FILES section.
50655 # No need to generate the scripts if there are no CONFIG_FILES.
50656 # This happens for instance when ./config.status config.h
50657 if test -n "\$CONFIG_FILES"; then
50658 # Protect against being on the right side of a sed subst in config.status.
50659 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
50660 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
50661 s,@SHELL@,$SHELL,;t t
50662 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
50663 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
50664 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
50665 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
50666 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
50667 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
50668 s,@exec_prefix@,$exec_prefix,;t t
50669 s,@prefix@,$prefix,;t t
50670 s,@program_transform_name@,$program_transform_name,;t t
50671 s,@bindir@,$bindir,;t t
50672 s,@sbindir@,$sbindir,;t t
50673 s,@libexecdir@,$libexecdir,;t t
50674 s,@datadir@,$datadir,;t t
50675 s,@sysconfdir@,$sysconfdir,;t t
50676 s,@sharedstatedir@,$sharedstatedir,;t t
50677 s,@localstatedir@,$localstatedir,;t t
50678 s,@libdir@,$libdir,;t t
50679 s,@includedir@,$includedir,;t t
50680 s,@oldincludedir@,$oldincludedir,;t t
50681 s,@infodir@,$infodir,;t t
50682 s,@mandir@,$mandir,;t t
50683 s,@build_alias@,$build_alias,;t t
50684 s,@host_alias@,$host_alias,;t t
50685 s,@target_alias@,$target_alias,;t t
50686 s,@DEFS@,$DEFS,;t t
50687 s,@ECHO_C@,$ECHO_C,;t t
50688 s,@ECHO_N@,$ECHO_N,;t t
50689 s,@ECHO_T@,$ECHO_T,;t t
50690 s,@LIBS@,$LIBS,;t t
50691 s,@build@,$build,;t t
50692 s,@build_cpu@,$build_cpu,;t t
50693 s,@build_vendor@,$build_vendor,;t t
50694 s,@build_os@,$build_os,;t t
50695 s,@host@,$host,;t t
50696 s,@host_cpu@,$host_cpu,;t t
50697 s,@host_vendor@,$host_vendor,;t t
50698 s,@host_os@,$host_os,;t t
50699 s,@target@,$target,;t t
50700 s,@target_cpu@,$target_cpu,;t t
50701 s,@target_vendor@,$target_vendor,;t t
50702 s,@target_os@,$target_os,;t t
50703 s,@CONFIGURE_COMMAND@,$CONFIGURE_COMMAND,;t t
50704 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
50705 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
50706 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
50707 s,@CYGPATH_W@,$CYGPATH_W,;t t
50708 s,@PACKAGE@,$PACKAGE,;t t
50709 s,@VERSION@,$VERSION,;t t
50710 s,@ACLOCAL@,$ACLOCAL,;t t
50711 s,@AUTOCONF@,$AUTOCONF,;t t
50712 s,@AUTOMAKE@,$AUTOMAKE,;t t
50713 s,@AUTOHEADER@,$AUTOHEADER,;t t
50714 s,@MAKEINFO@,$MAKEINFO,;t t
50715 s,@install_sh@,$install_sh,;t t
50716 s,@STRIP@,$STRIP,;t t
50717 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
50718 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
50719 s,@mkdir_p@,$mkdir_p,;t t
50721 s,@SET_MAKE@,$SET_MAKE,;t t
50722 s,@am__leading_dot@,$am__leading_dot,;t t
50723 s,@AMTAR@,$AMTAR,;t t
50724 s,@am__tar@,$am__tar,;t t
50725 s,@am__untar@,$am__untar,;t t
50726 s,@SNAPSHOT_STAMP@,$SNAPSHOT_STAMP,;t t
50727 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
50728 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
50729 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
50730 s,@VERSION_COMMENT@,$VERSION_COMMENT,;t t
50731 s,@VERSION_SUFFIX@,$VERSION_SUFFIX,;t t
50732 s,@CONFIG_DIR@,$CONFIG_DIR,;t t
50733 s,@USE_VERSION_SUFFIXES@,$USE_VERSION_SUFFIXES,;t t
50734 s,@CLIENT_SCRIPTS_OPT@,$CLIENT_SCRIPTS_OPT,;t t
50735 s,@DEFAULT_SERVER@,$DEFAULT_SERVER,;t t
50736 s,@CLIENT_LOGIN@,$CLIENT_LOGIN,;t t
50737 s,@SETUID_GROUP@,$SETUID_GROUP,;t t
50738 s,@BINARY_OWNER@,$BINARY_OWNER,;t t
50739 s,@DEFAULT_CONFIG@,$DEFAULT_CONFIG,;t t
50740 s,@DEFAULT_TAPE_SERVER@,$DEFAULT_TAPE_SERVER,;t t
50741 s,@DEFAULT_TAPE_DEVICE@,$DEFAULT_TAPE_DEVICE,;t t
50742 s,@DEFAULT_RAW_TAPE_DEVICE@,$DEFAULT_RAW_TAPE_DEVICE,;t t
50743 s,@DEFAULT_CHANGER_DEVICE@,$DEFAULT_CHANGER_DEVICE,;t t
50744 s,@GNUTAR_LISTED_INCREMENTAL_DIRX@,$GNUTAR_LISTED_INCREMENTAL_DIRX,;t t
50745 s,@MAXTAPEBLOCKSIZE@,$MAXTAPEBLOCKSIZE,;t t
50746 s,@AMANDA_TMPDIR@,$AMANDA_TMPDIR,;t t
50747 s,@AMANDA_DBGDIR@,$AMANDA_DBGDIR,;t t
50748 s,@AMANDA_DEBUG_DAYS@,$AMANDA_DEBUG_DAYS,;t t
50749 s,@SERVICE_SUFFIX@,$SERVICE_SUFFIX,;t t
50751 s,@CFLAGS@,$CFLAGS,;t t
50752 s,@LDFLAGS@,$LDFLAGS,;t t
50753 s,@CPPFLAGS@,$CPPFLAGS,;t t
50754 s,@ac_ct_CC@,$ac_ct_CC,;t t
50755 s,@EXEEXT@,$EXEEXT,;t t
50756 s,@OBJEXT@,$OBJEXT,;t t
50757 s,@DEPDIR@,$DEPDIR,;t t
50758 s,@am__include@,$am__include,;t t
50759 s,@am__quote@,$am__quote,;t t
50760 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
50761 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
50762 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
50763 s,@CCDEPMODE@,$CCDEPMODE,;t t
50764 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
50765 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
50766 s,@MT_FILE_FLAG@,$MT_FILE_FLAG,;t t
50768 s,@EGREP@,$EGREP,;t t
50770 s,@AWK_VAR_ASSIGNMENT_OPT@,$AWK_VAR_ASSIGNMENT_OPT,;t t
50771 s,@YACC@,$YACC,;t t
50773 s,@COMPRESS@,$COMPRESS,;t t
50775 s,@GETCONF@,$GETCONF,;t t
50776 s,@GNUPLOT@,$GNUPLOT,;t t
50777 s,@GREP@,$GREP,;t t
50778 s,@GNUTAR@,$GNUTAR,;t t
50779 s,@SAMBA_CLIENT@,$SAMBA_CLIENT,;t t
50780 s,@GZIP@,$GZIP,;t t
50781 s,@MAILER@,$MAILER,;t t
50783 s,@CHIO@,$CHIO,;t t
50786 s,@MCUTIL@,$MCUTIL,;t t
50787 s,@PRINT@,$PRINT,;t t
50788 s,@PCAT@,$PCAT,;t t
50789 s,@PERL@,$PERL,;t t
50790 s,@DUMP@,$DUMP,;t t
50791 s,@RESTORE@,$RESTORE,;t t
50792 s,@XFSDUMP@,$XFSDUMP,;t t
50793 s,@XFSRESTORE@,$XFSRESTORE,;t t
50794 s,@VXDUMP@,$VXDUMP,;t t
50795 s,@VXRESTORE@,$VXRESTORE,;t t
50796 s,@VDUMP@,$VDUMP,;t t
50797 s,@VRESTORE@,$VRESTORE,;t t
50798 s,@AMPLOT_COMPRESS@,$AMPLOT_COMPRESS,;t t
50799 s,@AMPLOT_CAT_GZIP@,$AMPLOT_CAT_GZIP,;t t
50800 s,@AMPLOT_CAT_COMPRESS@,$AMPLOT_CAT_COMPRESS,;t t
50801 s,@AMPLOT_CAT_PACK@,$AMPLOT_CAT_PACK,;t t
50802 s,@LN_S@,$LN_S,;t t
50803 s,@ECHO@,$ECHO,;t t
50804 s,@ac_ct_AR@,$ac_ct_AR,;t t
50805 s,@RANLIB@,$RANLIB,;t t
50806 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
50808 s,@CXXFLAGS@,$CXXFLAGS,;t t
50809 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
50810 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
50811 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
50812 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
50813 s,@CXXCPP@,$CXXCPP,;t t
50815 s,@FFLAGS@,$FFLAGS,;t t
50816 s,@ac_ct_F77@,$ac_ct_F77,;t t
50817 s,@LIBTOOL@,$LIBTOOL,;t t
50818 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
50820 s,@LEXLIB@,$LEXLIB,;t t
50821 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
50822 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
50823 s,@DB_EXT@,$DB_EXT,;t t
50824 s,@ALLOCA@,$ALLOCA,;t t
50825 s,@LIBOBJS@,$LIBOBJS,;t t
50826 s,@ac_n@,$ac_n,;t t
50827 s,@ac_c@,$ac_c,;t t
50828 s,@WANT_CLIENT_TRUE@,$WANT_CLIENT_TRUE,;t t
50829 s,@WANT_CLIENT_FALSE@,$WANT_CLIENT_FALSE,;t t
50830 s,@WANT_SAMBA_TRUE@,$WANT_SAMBA_TRUE,;t t
50831 s,@WANT_SAMBA_FALSE@,$WANT_SAMBA_FALSE,;t t
50832 s,@WANT_RESTORE_TRUE@,$WANT_RESTORE_TRUE,;t t
50833 s,@WANT_RESTORE_FALSE@,$WANT_RESTORE_FALSE,;t t
50834 s,@WANT_SERVER_TRUE@,$WANT_SERVER_TRUE,;t t
50835 s,@WANT_SERVER_FALSE@,$WANT_SERVER_FALSE,;t t
50836 s,@WANT_RECOVER_TRUE@,$WANT_RECOVER_TRUE,;t t
50837 s,@WANT_RECOVER_FALSE@,$WANT_RECOVER_FALSE,;t t
50838 s,@WANT_TAPE_TRUE@,$WANT_TAPE_TRUE,;t t
50839 s,@WANT_TAPE_FALSE@,$WANT_TAPE_FALSE,;t t
50840 s,@WANT_AMPLOT_TRUE@,$WANT_AMPLOT_TRUE,;t t
50841 s,@WANT_AMPLOT_FALSE@,$WANT_AMPLOT_FALSE,;t t
50842 s,@WANT_CHG_SCSI_TRUE@,$WANT_CHG_SCSI_TRUE,;t t
50843 s,@WANT_CHG_SCSI_FALSE@,$WANT_CHG_SCSI_FALSE,;t t
50844 s,@WANT_CHIO_SCSI_TRUE@,$WANT_CHIO_SCSI_TRUE,;t t
50845 s,@WANT_CHIO_SCSI_FALSE@,$WANT_CHIO_SCSI_FALSE,;t t
50846 s,@WANT_RUNTIME_PSEUDO_RELOC_TRUE@,$WANT_RUNTIME_PSEUDO_RELOC_TRUE,;t t
50847 s,@WANT_RUNTIME_PSEUDO_RELOC_FALSE@,$WANT_RUNTIME_PSEUDO_RELOC_FALSE,;t t
50848 s,@WANT_SETUID_CLIENT_TRUE@,$WANT_SETUID_CLIENT_TRUE,;t t
50849 s,@WANT_SETUID_CLIENT_FALSE@,$WANT_SETUID_CLIENT_FALSE,;t t
50850 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
50851 s,@LTALLOCA@,$LTALLOCA,;t t
50856 cat >>$CONFIG_STATUS <<\_ACEOF
50857 # Split the substitutions into bite-sized pieces for seds with
50858 # small command number limits, like on Digital OSF/1 and HP-UX.
50859 ac_max_sed_lines=48
50860 ac_sed_frag=1 # Number of current file.
50861 ac_beg=1 # First line for current file.
50862 ac_end=$ac_max_sed_lines # Line after last line for current file.
50865 while $ac_more_lines; do
50866 if test $ac_beg -gt 1; then
50867 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50869 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50871 if test ! -s $tmp/subs.frag; then
50872 ac_more_lines=false
50874 # The purpose of the label and of the branching condition is to
50875 # speed up the sed processing (if there are no `@' at all, there
50876 # is no need to browse any of the substitutions).
50877 # These are the two extra sed commands mentioned above.
50879 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
50880 if test -z "$ac_sed_cmds"; then
50881 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
50883 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
50885 ac_sed_frag=`expr $ac_sed_frag + 1`
50887 ac_end=`expr $ac_end + $ac_max_sed_lines`
50890 if test -z "$ac_sed_cmds"; then
50893 fi # test -n "$CONFIG_FILES"
50896 cat >>$CONFIG_STATUS <<\_ACEOF
50897 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
50898 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50900 - | *:- | *:-:* ) # input from stdin
50902 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50903 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
50904 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50905 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
50906 * ) ac_file_in=$ac_file.in ;;
50909 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
50910 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50911 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50912 X"$ac_file" : 'X\(//\)[^/]' \| \
50913 X"$ac_file" : 'X\(//\)$' \| \
50914 X"$ac_file" : 'X\(/\)' \| \
50915 . : '\(.\)' 2>/dev/null ||
50917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50918 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50919 /^X\(\/\/\)$/{ s//\1/; q; }
50920 /^X\(\/\).*/{ s//\1/; q; }
50922 { if $as_mkdir_p; then
50927 while test ! -d "$as_dir"; do
50928 as_dirs="$as_dir $as_dirs"
50929 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50930 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50931 X"$as_dir" : 'X\(//\)[^/]' \| \
50932 X"$as_dir" : 'X\(//\)$' \| \
50933 X"$as_dir" : 'X\(/\)' \| \
50934 . : '\(.\)' 2>/dev/null ||
50936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50937 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50938 /^X\(\/\/\)$/{ s//\1/; q; }
50939 /^X\(\/\).*/{ s//\1/; q; }
50942 test ! -n "$as_dirs" || mkdir $as_dirs
50943 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50944 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50945 { (exit 1); exit 1; }; }; }
50949 if test "$ac_dir" != .; then
50950 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50951 # A "../" for each directory in $ac_dir_suffix.
50952 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50954 ac_dir_suffix= ac_top_builddir=
50958 .) # No --srcdir option. We are building in place.
50960 if test -z "$ac_top_builddir"; then
50963 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50965 [\\/]* | ?:[\\/]* ) # Absolute path.
50966 ac_srcdir=$srcdir$ac_dir_suffix;
50967 ac_top_srcdir=$srcdir ;;
50968 *) # Relative path.
50969 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50970 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50973 # Do not use `cd foo && pwd` to compute absolute paths, because
50974 # the directories may not exist.
50976 .) ac_abs_builddir="$ac_dir";;
50979 .) ac_abs_builddir=`pwd`;;
50980 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50981 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50984 case $ac_abs_builddir in
50985 .) ac_abs_top_builddir=${ac_top_builddir}.;;
50987 case ${ac_top_builddir}. in
50988 .) ac_abs_top_builddir=$ac_abs_builddir;;
50989 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50990 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50993 case $ac_abs_builddir in
50994 .) ac_abs_srcdir=$ac_srcdir;;
50997 .) ac_abs_srcdir=$ac_abs_builddir;;
50998 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50999 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51002 case $ac_abs_builddir in
51003 .) ac_abs_top_srcdir=$ac_top_srcdir;;
51005 case $ac_top_srcdir in
51006 .) ac_abs_top_srcdir=$ac_abs_builddir;;
51007 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51008 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51014 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
51015 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
51018 if test x"$ac_file" != x-; then
51019 { echo "$as_me:$LINENO: creating $ac_file" >&5
51020 echo "$as_me: creating $ac_file" >&6;}
51023 # Let's still pretend it is `configure' which instantiates (i.e., don't
51024 # use $as_me), people would be surprised to read:
51025 # /* config.h. Generated by config.status. */
51026 if test x"$ac_file" = x-; then
51029 configure_input="$ac_file. "
51031 configure_input=$configure_input"Generated from `echo $ac_file_in |
51032 sed 's,.*/,,'` by configure."
51034 # First look for the input files in the build tree, otherwise in the
51036 ac_file_inputs=`IFS=:
51037 for f in $ac_file_in; do
51039 -) echo $tmp/stdin ;;
51041 # Absolute (can't be DOS-style, as IFS=:)
51042 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51043 echo "$as_me: error: cannot find input file: $f" >&2;}
51044 { (exit 1); exit 1; }; }
51047 if test -f "$f"; then
51050 elif test -f "$srcdir/$f"; then
51055 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51056 echo "$as_me: error: cannot find input file: $f" >&2;}
51057 { (exit 1); exit 1; }; }
51060 done` || { (exit 1); exit 1; }
51062 cat >>$CONFIG_STATUS <<_ACEOF
51066 cat >>$CONFIG_STATUS <<\_ACEOF
51068 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51069 s,@configure_input@,$configure_input,;t t
51070 s,@srcdir@,$ac_srcdir,;t t
51071 s,@abs_srcdir@,$ac_abs_srcdir,;t t
51072 s,@top_srcdir@,$ac_top_srcdir,;t t
51073 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
51074 s,@builddir@,$ac_builddir,;t t
51075 s,@abs_builddir@,$ac_abs_builddir,;t t
51076 s,@top_builddir@,$ac_top_builddir,;t t
51077 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
51078 s,@INSTALL@,$ac_INSTALL,;t t
51079 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
51081 if test x"$ac_file" != x-; then
51082 mv $tmp/out $ac_file
51090 cat >>$CONFIG_STATUS <<\_ACEOF
51093 # CONFIG_HEADER section.
51096 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
51097 # NAME is the cpp macro being defined and VALUE is the value it is being given.
51099 # ac_d sets the value in "#define NAME VALUE" lines.
51100 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
51101 ac_dB='[ ].*$,\1#\2'
51104 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
51105 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
51106 ac_uB='$,\1#\2define\3'
51110 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
51111 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51113 - | *:- | *:-:* ) # input from stdin
51115 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51116 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
51117 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51118 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
51119 * ) ac_file_in=$ac_file.in ;;
51122 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
51123 echo "$as_me: creating $ac_file" >&6;}
51125 # First look for the input files in the build tree, otherwise in the
51127 ac_file_inputs=`IFS=:
51128 for f in $ac_file_in; do
51130 -) echo $tmp/stdin ;;
51132 # Absolute (can't be DOS-style, as IFS=:)
51133 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51134 echo "$as_me: error: cannot find input file: $f" >&2;}
51135 { (exit 1); exit 1; }; }
51136 # Do quote $f, to prevent DOS paths from being IFS'd.
51139 if test -f "$f"; then
51142 elif test -f "$srcdir/$f"; then
51147 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51148 echo "$as_me: error: cannot find input file: $f" >&2;}
51149 { (exit 1); exit 1; }; }
51152 done` || { (exit 1); exit 1; }
51153 # Remove the trailing spaces.
51154 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
51158 # Transform confdefs.h into two sed scripts, `conftest.defines' and
51159 # `conftest.undefs', that substitutes the proper values into
51160 # config.h.in to produce config.h. The first handles `#define'
51161 # templates, and the second `#undef' templates.
51162 # And first: Protect against being on the right side of a sed subst in
51163 # config.status. Protect against being in an unquoted here document
51164 # in config.status.
51165 rm -f conftest.defines conftest.undefs
51166 # Using a here document instead of a string reduces the quoting nightmare.
51167 # Putting comments in sed scripts is not portable.
51169 # `end' is used to avoid that the second main sed command (meant for
51170 # 0-ary CPP macros) applies to n-ary macro definitions.
51171 # See the Autoconf documentation for `clear'.
51172 cat >confdef2sed.sed <<\_ACEOF
51177 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
51179 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
51182 # If some macros were called several times there might be several times
51183 # the same #defines, which is useless. Nevertheless, we may not want to
51184 # sort them, since we want the *last* AC-DEFINE to be honored.
51185 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
51186 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
51187 rm -f confdef2sed.sed
51189 # This sed command replaces #undef with comments. This is necessary, for
51190 # example, in the case of _POSIX_SOURCE, which is predefined and required
51191 # on some systems where configure will not decide to define it.
51192 cat >>conftest.undefs <<\_ACEOF
51193 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
51196 # Break up conftest.defines because some shells have a limit on the size
51197 # of here documents, and old seds have small limits too (100 cmds).
51198 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
51199 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
51200 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
51201 echo ' :' >>$CONFIG_STATUS
51202 rm -f conftest.tail
51203 while grep . conftest.defines >/dev/null
51205 # Write a limited-size here document to $tmp/defines.sed.
51206 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
51207 # Speed up: don't consider the non `#define' lines.
51208 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
51209 # Work around the forget-to-reset-the-flag bug.
51210 echo 't clr' >>$CONFIG_STATUS
51211 echo ': clr' >>$CONFIG_STATUS
51212 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
51214 sed -f $tmp/defines.sed $tmp/in >$tmp/out
51216 mv $tmp/out $tmp/in
51218 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
51219 rm -f conftest.defines
51220 mv conftest.tail conftest.defines
51222 rm -f conftest.defines
51223 echo ' fi # grep' >>$CONFIG_STATUS
51224 echo >>$CONFIG_STATUS
51226 # Break up conftest.undefs because some shells have a limit on the size
51227 # of here documents, and old seds have small limits too (100 cmds).
51228 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
51229 rm -f conftest.tail
51230 while grep . conftest.undefs >/dev/null
51232 # Write a limited-size here document to $tmp/undefs.sed.
51233 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
51234 # Speed up: don't consider the non `#undef'
51235 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
51236 # Work around the forget-to-reset-the-flag bug.
51237 echo 't clr' >>$CONFIG_STATUS
51238 echo ': clr' >>$CONFIG_STATUS
51239 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
51241 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
51243 mv $tmp/out $tmp/in
51245 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
51246 rm -f conftest.undefs
51247 mv conftest.tail conftest.undefs
51249 rm -f conftest.undefs
51251 cat >>$CONFIG_STATUS <<\_ACEOF
51252 # Let's still pretend it is `configure' which instantiates (i.e., don't
51253 # use $as_me), people would be surprised to read:
51254 # /* config.h. Generated by config.status. */
51255 if test x"$ac_file" = x-; then
51256 echo "/* Generated by configure. */" >$tmp/config.h
51258 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
51260 cat $tmp/in >>$tmp/config.h
51262 if test x"$ac_file" != x-; then
51263 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
51264 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
51265 echo "$as_me: $ac_file is unchanged" >&6;}
51267 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
51268 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51269 X"$ac_file" : 'X\(//\)[^/]' \| \
51270 X"$ac_file" : 'X\(//\)$' \| \
51271 X"$ac_file" : 'X\(/\)' \| \
51272 . : '\(.\)' 2>/dev/null ||
51274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51275 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51276 /^X\(\/\/\)$/{ s//\1/; q; }
51277 /^X\(\/\).*/{ s//\1/; q; }
51279 { if $as_mkdir_p; then
51284 while test ! -d "$as_dir"; do
51285 as_dirs="$as_dir $as_dirs"
51286 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51287 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51288 X"$as_dir" : 'X\(//\)[^/]' \| \
51289 X"$as_dir" : 'X\(//\)$' \| \
51290 X"$as_dir" : 'X\(/\)' \| \
51291 . : '\(.\)' 2>/dev/null ||
51293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51294 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51295 /^X\(\/\/\)$/{ s//\1/; q; }
51296 /^X\(\/\).*/{ s//\1/; q; }
51299 test ! -n "$as_dirs" || mkdir $as_dirs
51300 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51301 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51302 { (exit 1); exit 1; }; }; }
51305 mv $tmp/config.h $ac_file
51309 rm -f $tmp/config.h
51311 # Compute $ac_file's index in $config_headers.
51313 for _am_header in $config_headers :; do
51314 case $_am_header in
51315 $ac_file | $ac_file:* )
51318 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
51321 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
51322 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51323 X$ac_file : 'X\(//\)[^/]' \| \
51324 X$ac_file : 'X\(//\)$' \| \
51325 X$ac_file : 'X\(/\)' \| \
51326 . : '\(.\)' 2>/dev/null ||
51328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51329 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51330 /^X\(\/\/\)$/{ s//\1/; q; }
51331 /^X\(\/\).*/{ s//\1/; q; }
51332 s/.*/./; q'`/stamp-h$_am_stamp_count
51335 cat >>$CONFIG_STATUS <<\_ACEOF
51338 # CONFIG_COMMANDS section.
51340 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
51341 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
51342 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
51343 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
51344 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51345 X"$ac_dest" : 'X\(//\)[^/]' \| \
51346 X"$ac_dest" : 'X\(//\)$' \| \
51347 X"$ac_dest" : 'X\(/\)' \| \
51348 . : '\(.\)' 2>/dev/null ||
51350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51351 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51352 /^X\(\/\/\)$/{ s//\1/; q; }
51353 /^X\(\/\).*/{ s//\1/; q; }
51355 { if $as_mkdir_p; then
51360 while test ! -d "$as_dir"; do
51361 as_dirs="$as_dir $as_dirs"
51362 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51363 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51364 X"$as_dir" : 'X\(//\)[^/]' \| \
51365 X"$as_dir" : 'X\(//\)$' \| \
51366 X"$as_dir" : 'X\(/\)' \| \
51367 . : '\(.\)' 2>/dev/null ||
51369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51370 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51371 /^X\(\/\/\)$/{ s//\1/; q; }
51372 /^X\(\/\).*/{ s//\1/; q; }
51375 test ! -n "$as_dirs" || mkdir $as_dirs
51376 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51377 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51378 { (exit 1); exit 1; }; }; }
51382 if test "$ac_dir" != .; then
51383 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51384 # A "../" for each directory in $ac_dir_suffix.
51385 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51387 ac_dir_suffix= ac_top_builddir=
51391 .) # No --srcdir option. We are building in place.
51393 if test -z "$ac_top_builddir"; then
51396 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51398 [\\/]* | ?:[\\/]* ) # Absolute path.
51399 ac_srcdir=$srcdir$ac_dir_suffix;
51400 ac_top_srcdir=$srcdir ;;
51401 *) # Relative path.
51402 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51403 ac_top_srcdir=$ac_top_builddir$srcdir ;;
51406 # Do not use `cd foo && pwd` to compute absolute paths, because
51407 # the directories may not exist.
51409 .) ac_abs_builddir="$ac_dir";;
51412 .) ac_abs_builddir=`pwd`;;
51413 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51414 *) ac_abs_builddir=`pwd`/"$ac_dir";;
51417 case $ac_abs_builddir in
51418 .) ac_abs_top_builddir=${ac_top_builddir}.;;
51420 case ${ac_top_builddir}. in
51421 .) ac_abs_top_builddir=$ac_abs_builddir;;
51422 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51423 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51426 case $ac_abs_builddir in
51427 .) ac_abs_srcdir=$ac_srcdir;;
51430 .) ac_abs_srcdir=$ac_abs_builddir;;
51431 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51432 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51435 case $ac_abs_builddir in
51436 .) ac_abs_top_srcdir=$ac_top_srcdir;;
51438 case $ac_top_srcdir in
51439 .) ac_abs_top_srcdir=$ac_abs_builddir;;
51440 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51441 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51446 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
51447 echo "$as_me: executing $ac_dest commands" >&6;}
51449 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
51450 # Strip MF so we end up with the name of the file.
51451 mf=`echo "$mf" | sed -e 's/:.*$//'`
51452 # Check whether this is an Automake generated Makefile or not.
51453 # We used to match only the files named `Makefile.in', but
51454 # some people rename them; so instead we look at the file content.
51455 # Grep'ing the first line is not enough: some people post-process
51456 # each Makefile.in and add a new line on top of each file to say so.
51457 # So let's grep whole file.
51458 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
51459 dirpart=`(dirname "$mf") 2>/dev/null ||
51460 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51461 X"$mf" : 'X\(//\)[^/]' \| \
51462 X"$mf" : 'X\(//\)$' \| \
51463 X"$mf" : 'X\(/\)' \| \
51464 . : '\(.\)' 2>/dev/null ||
51466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51467 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51468 /^X\(\/\/\)$/{ s//\1/; q; }
51469 /^X\(\/\).*/{ s//\1/; q; }
51474 # Extract the definition of DEPDIR, am__include, and am__quote
51475 # from the Makefile without running `make'.
51476 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
51477 test -z "$DEPDIR" && continue
51478 am__include=`sed -n 's/^am__include = //p' < "$mf"`
51479 test -z "am__include" && continue
51480 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
51481 # When using ansi2knr, U may be empty or an underscore; expand it
51482 U=`sed -n 's/^U = //p' < "$mf"`
51483 # Find all dependency output files, they are included files with
51484 # $(DEPDIR) in their names. We invoke sed twice because it is the
51485 # simplest approach to changing $(DEPDIR) to its actual value in the
51487 for file in `sed -n "
51488 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
51489 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
51490 # Make sure the directory exists.
51491 test -f "$dirpart/$file" && continue
51492 fdir=`(dirname "$file") 2>/dev/null ||
51493 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51494 X"$file" : 'X\(//\)[^/]' \| \
51495 X"$file" : 'X\(//\)$' \| \
51496 X"$file" : 'X\(/\)' \| \
51497 . : '\(.\)' 2>/dev/null ||
51499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51500 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51501 /^X\(\/\/\)$/{ s//\1/; q; }
51502 /^X\(\/\).*/{ s//\1/; q; }
51504 { if $as_mkdir_p; then
51505 mkdir -p $dirpart/$fdir
51507 as_dir=$dirpart/$fdir
51509 while test ! -d "$as_dir"; do
51510 as_dirs="$as_dir $as_dirs"
51511 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51512 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51513 X"$as_dir" : 'X\(//\)[^/]' \| \
51514 X"$as_dir" : 'X\(//\)$' \| \
51515 X"$as_dir" : 'X\(/\)' \| \
51516 . : '\(.\)' 2>/dev/null ||
51518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51519 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51520 /^X\(\/\/\)$/{ s//\1/; q; }
51521 /^X\(\/\).*/{ s//\1/; q; }
51524 test ! -n "$as_dirs" || mkdir $as_dirs
51525 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
51526 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
51527 { (exit 1); exit 1; }; }; }
51529 # echo "creating $dirpart/$file"
51530 echo '# dummy' > "$dirpart/$file"
51535 { echo "$as_me:$LINENO: creating $ac_stdint_h : $_ac_stdint_h" >&5
51536 echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
51537 ac_stdint=$tmp/_stdint.h
51539 echo "#ifndef" $_ac_stdint_h >$ac_stdint
51540 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
51541 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
51542 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
51543 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
51544 if test "_$ac_cv_header_stdint_t" != "_" ; then
51545 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
51548 cat >>$ac_stdint <<STDINT_EOF
51550 /* ................... shortcircuit part ........................... */
51552 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
51553 #include <stdint.h>
51555 #include <stddef.h>
51557 /* .................... configured part ............................ */
51561 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
51562 if test "_$ac_cv_header_stdint_x" != "_" ; then
51563 ac_header="$ac_cv_header_stdint_x"
51564 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
51566 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
51569 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
51570 if test "_$ac_cv_header_stdint_o" != "_" ; then
51571 ac_header="$ac_cv_header_stdint_o"
51572 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
51574 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
51577 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
51578 if test "_$ac_cv_header_stdint_u" != "_" ; then
51579 ac_header="$ac_cv_header_stdint_u"
51580 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
51582 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
51585 echo "" >>$ac_stdint
51587 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
51588 echo "#include <$ac_header>" >>$ac_stdint
51589 echo "" >>$ac_stdint
51592 echo "/* which 64bit typedef has been found */" >>$ac_stdint
51593 if test "$ac_cv_type_uint64_t" = "yes" ; then
51594 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
51596 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
51598 if test "$ac_cv_type_u_int64_t" = "yes" ; then
51599 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
51601 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
51603 echo "" >>$ac_stdint
51605 echo "/* which type model has been detected */" >>$ac_stdint
51606 if test "_$ac_cv_stdint_char_model" != "_" ; then
51607 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_stdint_char_model" >>$ac_stdint
51608 echo "#define _STDINT_LONG_MODEL" "$ac_cv_stdint_long_model" >>$ac_stdint
51610 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
51611 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
51613 echo "" >>$ac_stdint
51615 echo "/* whether int_least types were detected */" >>$ac_stdint
51616 if test "$ac_cv_type_int_least32_t" = "yes"; then
51617 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
51619 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
51621 echo "/* whether int_fast types were detected */" >>$ac_stdint
51622 if test "$ac_cv_type_int_fast32_t" = "yes"; then
51623 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
51625 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
51627 echo "/* whether intmax_t type was detected */" >>$ac_stdint
51628 if test "$ac_cv_type_intmax_t" = "yes"; then
51629 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
51631 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
51633 echo "" >>$ac_stdint
51635 cat >>$ac_stdint <<STDINT_EOF
51636 /* .................... detections part ............................ */
51638 /* whether we need to define bitspecific types from compiler base types */
51639 #ifndef _STDINT_HEADER_INTPTR
51640 #ifndef _STDINT_HEADER_UINT32
51641 #ifndef _STDINT_HEADER_U_INT32
51642 #define _STDINT_NEED_INT_MODEL_T
51644 #define _STDINT_HAVE_U_INT_TYPES
51649 #ifdef _STDINT_HAVE_U_INT_TYPES
51650 #undef _STDINT_NEED_INT_MODEL_T
51653 #ifdef _STDINT_CHAR_MODEL
51654 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
51655 #ifndef _STDINT_BYTE_MODEL
51656 #define _STDINT_BYTE_MODEL 12
51661 #ifndef _STDINT_HAVE_INT_LEAST32_T
51662 #define _STDINT_NEED_INT_LEAST_T
51665 #ifndef _STDINT_HAVE_INT_FAST32_T
51666 #define _STDINT_NEED_INT_FAST_T
51669 #ifndef _STDINT_HEADER_INTPTR
51670 #define _STDINT_NEED_INTPTR_T
51671 #ifndef _STDINT_HAVE_INTMAX_T
51672 #define _STDINT_NEED_INTMAX_T
51677 /* .................... definition part ............................ */
51679 /* some system headers have good uint64_t */
51680 #ifndef _HAVE_UINT64_T
51681 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
51682 #define _HAVE_UINT64_T
51683 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
51684 #define _HAVE_UINT64_T
51685 typedef u_int64_t uint64_t;
51689 #ifndef _HAVE_UINT64_T
51690 /* .. here are some common heuristics using compiler runtime specifics */
51691 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
51692 #define _HAVE_UINT64_T
51693 typedef long long int64_t;
51694 typedef unsigned long long uint64_t;
51696 #elif !defined __STRICT_ANSI__
51697 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
51698 #define _HAVE_UINT64_T
51699 typedef __int64 int64_t;
51700 typedef unsigned __int64 uint64_t;
51702 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
51703 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
51704 #if !defined _NO_LONGLONG
51705 #define _HAVE_UINT64_T
51706 typedef long long int64_t;
51707 typedef unsigned long long uint64_t;
51710 #elif defined __alpha || (defined __mips && defined _ABIN32)
51711 #if !defined _NO_LONGLONG
51712 typedef long int64_t;
51713 typedef unsigned long uint64_t;
51715 /* compiler/cpu type to define int64_t */
51720 #if defined _STDINT_HAVE_U_INT_TYPES
51721 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
51722 typedef u_int8_t uint8_t;
51723 typedef u_int16_t uint16_t;
51724 typedef u_int32_t uint32_t;
51726 /* glibc compatibility */
51727 #ifndef __int8_t_defined
51728 #define __int8_t_defined
51732 #ifdef _STDINT_NEED_INT_MODEL_T
51733 /* we must guess all the basic types. Apart from byte-adressable system, */
51734 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
51735 /* (btw, those nibble-addressable systems are way off, or so we assume) */
51738 #if defined _STDINT_BYTE_MODEL
51739 #if _STDINT_LONG_MODEL+0 == 242
51740 /* 2:4:2 = IP16 = a normal 16-bit system */
51741 typedef unsigned char uint8_t;
51742 typedef unsigned short uint16_t;
51743 typedef unsigned long uint32_t;
51744 #ifndef __int8_t_defined
51745 #define __int8_t_defined
51746 typedef char int8_t;
51747 typedef short int16_t;
51748 typedef long int32_t;
51750 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
51751 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
51752 /* 4:4:4 = ILP32 = a normal 32-bit system */
51753 typedef unsigned char uint8_t;
51754 typedef unsigned short uint16_t;
51755 typedef unsigned int uint32_t;
51756 #ifndef __int8_t_defined
51757 #define __int8_t_defined
51758 typedef char int8_t;
51759 typedef short int16_t;
51760 typedef int int32_t;
51762 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
51763 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
51764 /* 4:8:8 = LP64 = a normal 64-bit system */
51765 typedef unsigned char uint8_t;
51766 typedef unsigned short uint16_t;
51767 typedef unsigned int uint32_t;
51768 #ifndef __int8_t_defined
51769 #define __int8_t_defined
51770 typedef char int8_t;
51771 typedef short int16_t;
51772 typedef int int32_t;
51774 /* this system has a "long" of 64bit */
51775 #ifndef _HAVE_UINT64_T
51776 #define _HAVE_UINT64_T
51777 typedef unsigned long uint64_t;
51778 typedef long int64_t;
51780 #elif _STDINT_LONG_MODEL+0 == 448
51781 /* LLP64 a 64-bit system derived from a 32-bit system */
51782 typedef unsigned char uint8_t;
51783 typedef unsigned short uint16_t;
51784 typedef unsigned int uint32_t;
51785 #ifndef __int8_t_defined
51786 #define __int8_t_defined
51787 typedef char int8_t;
51788 typedef short int16_t;
51789 typedef int int32_t;
51791 /* assuming the system has a "long long" */
51792 #ifndef _HAVE_UINT64_T
51793 #define _HAVE_UINT64_T
51794 typedef unsigned long long uint64_t;
51795 typedef long long int64_t;
51798 #define _STDINT_NO_INT32_T
51801 #define _STDINT_NO_INT8_T
51802 #define _STDINT_NO_INT32_T
51807 * quote from SunOS-5.8 sys/inttypes.h:
51808 * Use at your own risk. As of February 1996, the committee is squarely
51809 * behind the fixed sized types; the "least" and "fast" types are still being
51810 * discussed. The probability that the "fast" types may be removed before
51811 * the standard is finalized is high enough that they are not currently
51815 #if defined _STDINT_NEED_INT_LEAST_T
51816 typedef int8_t int_least8_t;
51817 typedef int16_t int_least16_t;
51818 typedef int32_t int_least32_t;
51819 #ifdef _HAVE_UINT64_T
51820 typedef int64_t int_least64_t;
51823 typedef uint8_t uint_least8_t;
51824 typedef uint16_t uint_least16_t;
51825 typedef uint32_t uint_least32_t;
51826 #ifdef _HAVE_UINT64_T
51827 typedef uint64_t uint_least64_t;
51832 #if defined _STDINT_NEED_INT_FAST_T
51833 typedef int8_t int_fast8_t;
51834 typedef int int_fast16_t;
51835 typedef int32_t int_fast32_t;
51836 #ifdef _HAVE_UINT64_T
51837 typedef int64_t int_fast64_t;
51840 typedef uint8_t uint_fast8_t;
51841 typedef unsigned uint_fast16_t;
51842 typedef uint32_t uint_fast32_t;
51843 #ifdef _HAVE_UINT64_T
51844 typedef uint64_t uint_fast64_t;
51849 #ifdef _STDINT_NEED_INTMAX_T
51850 #ifdef _HAVE_UINT64_T
51851 typedef int64_t intmax_t;
51852 typedef uint64_t uintmax_t;
51854 typedef long intmax_t;
51855 typedef unsigned long uintmax_t;
51859 #ifdef _STDINT_NEED_INTPTR_T
51860 #ifndef __intptr_t_defined
51861 #define __intptr_t_defined
51862 /* we encourage using "long" to store pointer values, never use "int" ! */
51863 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
51864 typedef unsinged int uintptr_t;
51865 typedef int intptr_t;
51866 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
51867 typedef unsigned long uintptr_t;
51868 typedef long intptr_t;
51869 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
51870 typedef uint64_t uintptr_t;
51871 typedef int64_t intptr_t;
51872 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
51873 typedef unsigned long uintptr_t;
51874 typedef long intptr_t;
51885 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
51886 { echo "$as_me:$LINENO: $ac_stdint_h is unchanged" >&5
51887 echo "$as_me: $ac_stdint_h is unchanged" >&6;}
51889 ac_dir=`(dirname "$ac_stdint_h") 2>/dev/null ||
51890 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51891 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
51892 X"$ac_stdint_h" : 'X\(//\)$' \| \
51893 X"$ac_stdint_h" : 'X\(/\)' \| \
51894 . : '\(.\)' 2>/dev/null ||
51895 echo X"$ac_stdint_h" |
51896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51897 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51898 /^X\(\/\/\)$/{ s//\1/; q; }
51899 /^X\(\/\).*/{ s//\1/; q; }
51901 { if $as_mkdir_p; then
51906 while test ! -d "$as_dir"; do
51907 as_dirs="$as_dir $as_dirs"
51908 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51909 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51910 X"$as_dir" : 'X\(//\)[^/]' \| \
51911 X"$as_dir" : 'X\(//\)$' \| \
51912 X"$as_dir" : 'X\(/\)' \| \
51913 . : '\(.\)' 2>/dev/null ||
51915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51916 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51917 /^X\(\/\/\)$/{ s//\1/; q; }
51918 /^X\(\/\).*/{ s//\1/; q; }
51921 test ! -n "$as_dirs" || mkdir $as_dirs
51922 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51923 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51924 { (exit 1); exit 1; }; }; }
51927 mv $ac_stdint $ac_stdint_h
51934 cat >>$CONFIG_STATUS <<\_ACEOF
51936 { (exit 0); exit 0; }
51938 chmod +x $CONFIG_STATUS
51939 ac_clean_files=$ac_clean_files_save
51942 # configure is writing to config.log, and then calls config.status.
51943 # config.status does its own redirection, appending to config.log.
51944 # Unfortunately, on DOS this fails, as config.log is still kept open
51945 # by configure, so config.status won't be able to write to it; its
51946 # output is simply discarded. So we exec the FD to /dev/null,
51947 # effectively closing config.log, so it can be properly (re)opened and
51948 # appended to by config.status. When coming back to configure, we
51949 # need to make the FD available again.
51950 if test "$no_create" != yes; then
51952 ac_config_status_args=
51953 test "$silent" = yes &&
51954 ac_config_status_args="$ac_config_status_args --quiet"
51956 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
51958 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
51959 # would make configure fail if this is the last instruction.
51960 $ac_cs_success || { (exit 1); exit 1; }