2 # From configure.in Revision: 1.331.2.8 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for Heimdal 0.6.3.
6 # Report bugs to <heimdal-bugs@pdc.kth.se>.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25 DUALCASE=1; export DUALCASE # for MKS sh
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
141 if ("$as_dir/$as_base" -c '
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175 s,^['$as_cr_digits']*\n,,
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
185 # Exit status is that of the last command.
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
197 if expr a : '\(a\)' >/dev/null 2>&1; then
203 rm -f conf$$ conf$$.exe conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
214 elif ln conf$$.file conf$$ 2>/dev/null; then
219 rm -f conf$$ conf$$.exe conf$$.file
221 if mkdir -p . 2>/dev/null; then
224 test -d ./-p && rmdir ./-p
228 as_executable_p="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
238 # We need space, tab and new line, in precisely that order.
248 # Check that we are running under the correct shell.
249 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Remove one level of quotation (which was required for Make).
254 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
259 if test "X$1" = X--no-reexec; then
260 # Discard the --no-reexec flag, and continue.
262 elif test "X$1" = X--fallback-echo; then
263 # Avoid inline document here, it may be left over
265 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
266 # Yippee, $echo works!
269 # Restart under the correct shell.
270 exec $SHELL "$0" --no-reexec ${1+"$@"}
273 if test "X$1" = X--fallback-echo; then
274 # used as fallback echo
282 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
286 if test -z "$ECHO"; then
287 if test "X${echo_test_string+set}" != Xset; then
288 # find a string as large as possible, as long as the shell can cope with it
289 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
290 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
291 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
292 echo_test_string="`eval $cmd`" &&
293 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
301 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
302 test "X$echo_testing_string" = "X$echo_test_string"; then
305 # The Solaris, AIX, and Digital Unix default echo programs unquote
306 # backslashes. This makes it impossible to quote backslashes using
307 # echo "$something" | sed 's/\\/\\\\/g'
309 # So, first we look for a working echo in the user's PATH.
311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
312 for dir in $PATH /usr/ucb; do
314 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
315 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
316 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
317 test "X$echo_testing_string" = "X$echo_test_string"; then
324 if test "X$echo" = Xecho; then
325 # We didn't find a better echo, so look for alternatives.
326 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
327 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
328 test "X$echo_testing_string" = "X$echo_test_string"; then
329 # This shell has a builtin print -r that does the trick.
331 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
332 test "X$CONFIG_SHELL" != X/bin/ksh; then
333 # If we have ksh, try running configure again with it.
334 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
335 export ORIGINAL_CONFIG_SHELL
336 CONFIG_SHELL=/bin/ksh
338 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
342 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
343 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
344 test "X$echo_testing_string" = "X$echo_test_string"; then
347 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
348 test "X$echo_testing_string" = 'X\t' &&
349 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
351 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353 SHELL="$CONFIG_SHELL"
355 echo="$CONFIG_SHELL $0 --fallback-echo"
356 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
357 test "X$echo_testing_string" = 'X\t' &&
358 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
359 test "X$echo_testing_string" = "X$echo_test_string"; then
360 echo="$CONFIG_SHELL $0 --fallback-echo"
362 # maybe with a smaller string...
365 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
366 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373 if test "$prev" != 'sed 50q "$0"'; then
374 echo_test_string=`eval $prev`
375 export echo_test_string
376 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378 # Oops. We lost completely, so just stick with echo.
387 # Copy echo and quote the copy suitably for passing to libtool from
388 # the Makefile, instead of quoting the original, which is used later.
390 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
391 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397 tagnames=${tagnames+${tagnames},}CXX
399 tagnames=${tagnames+${tagnames},}F77
402 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
403 # so uname gets run too.
404 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411 ac_default_prefix=/usr/local
412 ac_config_libobj_dir=.
417 SHELL=${CONFIG_SHELL-/bin/sh}
419 # Maximum number of lines to put in a shell here document.
420 # This variable seems obsolete. It should probably be removed, and
421 # only ac_max_sed_lines should be used.
422 : ${ac_max_here_lines=38}
424 # Identity of this package.
425 PACKAGE_NAME='Heimdal'
426 PACKAGE_TARNAME='heimdal'
427 PACKAGE_VERSION='0.6.3'
428 PACKAGE_STRING='Heimdal 0.6.3'
429 PACKAGE_BUGREPORT='heimdal-bugs@pdc.kth.se'
431 ac_unique_file="kuser/kinit.c"
432 ac_default_prefix=/usr/heimdal
433 # Factoring default headers for most tests.
434 ac_includes_default="\
437 # include <sys/types.h>
440 # include <sys/stat.h>
451 # if !STDC_HEADERS && HAVE_MEMORY_H
457 # include <strings.h>
460 # include <inttypes.h>
470 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CANONICAL_HOST YACC LEX LEXLIB LEX_OUTPUT_ROOT LN_S EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL WFLAGS WFLAGS_NOUNUSED WFLAGS_NOIMPLICITINT INCLUDE_openldap LIB_openldap INCLUDE_krb4 LIB_krb4 EXTRA_LIB45 LIB_krb_enable_debug LIB_krb_disable_debug LIB_krb_get_our_ip_for_realm LIB_krb_kdctimeofday LIB_krb_get_kdc_time_diff KRB4_TRUE KRB4_FALSE KRB5_TRUE KRB5_FALSE do_roken_rename_TRUE do_roken_rename_FALSE LIB_kdb HAVE_OPENSSL_TRUE HAVE_OPENSSL_FALSE DIR_des INCLUDE_des LIB_des LIB_des_a LIB_des_so LIB_des_appl DCE_TRUE DCE_FALSE dpagaix_cflags dpagaix_ldadd dpagaix_ldflags LIB_db_create LIB_dbopen LIB_dbm_firstkey HAVE_DB1_TRUE HAVE_DB1_FALSE HAVE_DB3_TRUE HAVE_DB3_FALSE HAVE_NDBM_TRUE HAVE_NDBM_FALSE DBLIB LIB_NDBM VOID_RETSIGTYPE have_err_h_TRUE have_err_h_FALSE have_fnmatch_h_TRUE have_fnmatch_h_FALSE have_ifaddrs_h_TRUE have_ifaddrs_h_FALSE have_vis_h_TRUE have_vis_h_FALSE LIB_socket LIB_gethostbyname LIB_syslog LIB_gethostbyname2 LIB_res_search LIB_res_nsearch LIB_dn_expand LIBOBJS have_glob_h_TRUE have_glob_h_FALSE LIB_getsockopt LIB_setsockopt LIB_hstrerror LIB_bswap16 LIB_bswap32 LIB_pidfile LIB_getaddrinfo LIB_getnameinfo LIB_freeaddrinfo LIB_gai_strerror LIB_crypt DIR_roken LIB_roken INCLUDES_roken LIB_otp OTP_TRUE OTP_FALSE LIB_security NROFF GROFF CATMAN CATMAN_TRUE CATMAN_FALSE CATMANEXT INCLUDE_readline LIB_readline INCLUDE_hesiod LIB_hesiod AIX_TRUE AIX_FALSE AIX4_TRUE AIX4_FALSE LIB_dlopen HAVE_DLOPEN_TRUE HAVE_DLOPEN_FALSE LIB_loadquery AIX_DYNAMIC_AFS_TRUE AIX_DYNAMIC_AFS_FALSE AIX_EXTRA_KAFS IRIX_TRUE IRIX_FALSE X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS HAVE_X_TRUE HAVE_X_FALSE LIB_XauWriteAuth LIB_XauReadAuth LIB_XauFileName NEED_WRITEAUTH_TRUE NEED_WRITEAUTH_FALSE LIB_logwtmp LIB_logout LIB_openpty LIB_tgetent LIB_getpwnam_r LIB_el_init el_compat_TRUE el_compat_FALSE COMPILE_ET DIR_com_err LIB_com_err LIB_com_err_a LIB_com_err_so LIB_AUTH_SUBDIRS LTLIBOBJS'
473 # Initialize some variables set by options.
475 ac_init_version=false
476 # The variables have the same names as the options, with
477 # dashes changed to underlines.
485 program_transform_name=s,x,x,
493 # Installation directory options.
494 # These are left unexpanded so users can "make install exec_prefix=/foo"
495 # and all the variables that are supposed to be based on exec_prefix
496 # by default will actually change.
497 # Use braces instead of parens because sh, perl, etc. also accept them.
498 bindir='${exec_prefix}/bin'
499 sbindir='${exec_prefix}/sbin'
500 libexecdir='${exec_prefix}/libexec'
501 datadir='${prefix}/share'
502 sysconfdir='${prefix}/etc'
503 sharedstatedir='${prefix}/com'
504 localstatedir='${prefix}/var'
505 libdir='${exec_prefix}/lib'
506 includedir='${prefix}/include'
507 oldincludedir='/usr/include'
508 infodir='${prefix}/info'
509 mandir='${prefix}/man'
514 # If the previous option needs an argument, assign it.
515 if test -n "$ac_prev"; then
516 eval "$ac_prev=\$ac_option"
521 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
523 # Accept the important Cygnus configure options, so we can diagnose typos.
527 -bindir | --bindir | --bindi | --bind | --bin | --bi)
529 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
532 -build | --build | --buil | --bui | --bu)
533 ac_prev=build_alias ;;
534 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535 build_alias=$ac_optarg ;;
537 -cache-file | --cache-file | --cache-fil | --cache-fi \
538 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539 ac_prev=cache_file ;;
540 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542 cache_file=$ac_optarg ;;
545 cache_file=config.cache ;;
547 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
549 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
551 datadir=$ac_optarg ;;
553 -disable-* | --disable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 eval "enable_$ac_feature=no" ;;
562 -enable-* | --enable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
573 eval "enable_$ac_feature='$ac_optarg'" ;;
575 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577 | --exec | --exe | --ex)
578 ac_prev=exec_prefix ;;
579 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581 | --exec=* | --exe=* | --ex=*)
582 exec_prefix=$ac_optarg ;;
584 -gas | --gas | --ga | --g)
585 # Obsolete; use --with-gas.
588 -help | --help | --hel | --he | -h)
590 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591 ac_init_help=recursive ;;
592 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593 ac_init_help=short ;;
595 -host | --host | --hos | --ho)
596 ac_prev=host_alias ;;
597 -host=* | --host=* | --hos=* | --ho=*)
598 host_alias=$ac_optarg ;;
600 -includedir | --includedir | --includedi | --included | --include \
601 | --includ | --inclu | --incl | --inc)
602 ac_prev=includedir ;;
603 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604 | --includ=* | --inclu=* | --incl=* | --inc=*)
605 includedir=$ac_optarg ;;
607 -infodir | --infodir | --infodi | --infod | --info | --inf)
609 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610 infodir=$ac_optarg ;;
612 -libdir | --libdir | --libdi | --libd)
614 -libdir=* | --libdir=* | --libdi=* | --libd=*)
617 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618 | --libexe | --libex | --libe)
619 ac_prev=libexecdir ;;
620 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621 | --libexe=* | --libex=* | --libe=*)
622 libexecdir=$ac_optarg ;;
624 -localstatedir | --localstatedir | --localstatedi | --localstated \
625 | --localstate | --localstat | --localsta | --localst \
626 | --locals | --local | --loca | --loc | --lo)
627 ac_prev=localstatedir ;;
628 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631 localstatedir=$ac_optarg ;;
633 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
639 # Obsolete; use --without-fp.
642 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643 | --no-cr | --no-c | -n)
646 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
650 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652 | --oldin | --oldi | --old | --ol | --o)
653 ac_prev=oldincludedir ;;
654 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657 oldincludedir=$ac_optarg ;;
659 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
664 -program-prefix | --program-prefix | --program-prefi | --program-pref \
665 | --program-pre | --program-pr | --program-p)
666 ac_prev=program_prefix ;;
667 -program-prefix=* | --program-prefix=* | --program-prefi=* \
668 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669 program_prefix=$ac_optarg ;;
671 -program-suffix | --program-suffix | --program-suffi | --program-suff \
672 | --program-suf | --program-su | --program-s)
673 ac_prev=program_suffix ;;
674 -program-suffix=* | --program-suffix=* | --program-suffi=* \
675 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676 program_suffix=$ac_optarg ;;
678 -program-transform-name | --program-transform-name \
679 | --program-transform-nam | --program-transform-na \
680 | --program-transform-n | --program-transform- \
681 | --program-transform | --program-transfor \
682 | --program-transfo | --program-transf \
683 | --program-trans | --program-tran \
684 | --progr-tra | --program-tr | --program-t)
685 ac_prev=program_transform_name ;;
686 -program-transform-name=* | --program-transform-name=* \
687 | --program-transform-nam=* | --program-transform-na=* \
688 | --program-transform-n=* | --program-transform-=* \
689 | --program-transform=* | --program-transfor=* \
690 | --program-transfo=* | --program-transf=* \
691 | --program-trans=* | --program-tran=* \
692 | --progr-tra=* | --program-tr=* | --program-t=*)
693 program_transform_name=$ac_optarg ;;
695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696 | -silent | --silent | --silen | --sile | --sil)
699 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703 sbindir=$ac_optarg ;;
705 -sharedstatedir | --sharedstatedir | --sharedstatedi \
706 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707 | --sharedst | --shareds | --shared | --share | --shar \
709 ac_prev=sharedstatedir ;;
710 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714 sharedstatedir=$ac_optarg ;;
716 -site | --site | --sit)
718 -site=* | --site=* | --sit=*)
721 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
726 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727 | --syscon | --sysco | --sysc | --sys | --sy)
728 ac_prev=sysconfdir ;;
729 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731 sysconfdir=$ac_optarg ;;
733 -target | --target | --targe | --targ | --tar | --ta | --t)
734 ac_prev=target_alias ;;
735 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736 target_alias=$ac_optarg ;;
738 -v | -verbose | --verbose | --verbos | --verbo | --verb)
741 -version | --version | --versio | --versi | --vers | -V)
745 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746 # Reject names that are not valid shell variable names.
747 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748 { echo "$as_me: error: invalid package name: $ac_package" >&2
749 { (exit 1); exit 1; }; }
750 ac_package=`echo $ac_package| sed 's/-/_/g'`
752 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
755 eval "with_$ac_package='$ac_optarg'" ;;
757 -without-* | --without-*)
758 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759 # Reject names that are not valid shell variable names.
760 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761 { echo "$as_me: error: invalid package name: $ac_package" >&2
762 { (exit 1); exit 1; }; }
763 ac_package=`echo $ac_package | sed 's/-/_/g'`
764 eval "with_$ac_package=no" ;;
767 # Obsolete; use --with-x.
770 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771 | --x-incl | --x-inc | --x-in | --x-i)
772 ac_prev=x_includes ;;
773 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775 x_includes=$ac_optarg ;;
777 -x-libraries | --x-libraries | --x-librarie | --x-librari \
778 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779 ac_prev=x_libraries ;;
780 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782 x_libraries=$ac_optarg ;;
784 -*) { echo "$as_me: error: unrecognized option: $ac_option
785 Try \`$0 --help' for more information." >&2
786 { (exit 1); exit 1; }; }
790 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791 # Reject names that are not valid shell variable names.
792 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794 { (exit 1); exit 1; }; }
795 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796 eval "$ac_envvar='$ac_optarg'"
800 # FIXME: should be removed in autoconf 3.0.
801 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810 if test -n "$ac_prev"; then
811 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812 { echo "$as_me: error: missing argument to $ac_option" >&2
813 { (exit 1); exit 1; }; }
816 # Be sure to have absolute paths.
817 for ac_var in exec_prefix prefix
819 eval ac_val=$`echo $ac_var`
821 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823 { (exit 1); exit 1; }; };;
827 # Be sure to have absolute paths.
828 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829 localstatedir libdir includedir oldincludedir infodir mandir
831 eval ac_val=$`echo $ac_var`
833 [\\/$]* | ?:[\\/]* ) ;;
834 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835 { (exit 1); exit 1; }; };;
839 # There might be people who depend on the old broken behavior: `$host'
840 # used to hold the argument of --host etc.
841 # FIXME: To remove some day.
846 # FIXME: To remove some day.
847 if test "x$host_alias" != x; then
848 if test "x$build_alias" = x; then
849 cross_compiling=maybe
850 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851 If a cross compiler is detected then cross compile mode will be used." >&2
852 elif test "x$build_alias" != "x$host_alias"; then
858 test -n "$host_alias" && ac_tool_prefix=$host_alias-
860 test "$silent" = yes && exec 6>/dev/null
863 # Find the source files, if location was not specified.
864 if test -z "$srcdir"; then
865 ac_srcdir_defaulted=yes
866 # Try the directory containing this script, then its parent.
867 ac_confdir=`(dirname "$0") 2>/dev/null ||
868 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869 X"$0" : 'X\(//\)[^/]' \| \
870 X"$0" : 'X\(//\)$' \| \
871 X"$0" : 'X\(/\)' \| \
872 . : '\(.\)' 2>/dev/null ||
874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876 /^X\(\/\/\)$/{ s//\1/; q; }
877 /^X\(\/\).*/{ s//\1/; q; }
880 if test ! -r $srcdir/$ac_unique_file; then
884 ac_srcdir_defaulted=no
886 if test ! -r $srcdir/$ac_unique_file; then
887 if test "$ac_srcdir_defaulted" = yes; then
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889 { (exit 1); exit 1; }; }
891 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892 { (exit 1); exit 1; }; }
895 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897 { (exit 1); exit 1; }; }
898 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899 ac_env_build_alias_set=${build_alias+set}
900 ac_env_build_alias_value=$build_alias
901 ac_cv_env_build_alias_set=${build_alias+set}
902 ac_cv_env_build_alias_value=$build_alias
903 ac_env_host_alias_set=${host_alias+set}
904 ac_env_host_alias_value=$host_alias
905 ac_cv_env_host_alias_set=${host_alias+set}
906 ac_cv_env_host_alias_value=$host_alias
907 ac_env_target_alias_set=${target_alias+set}
908 ac_env_target_alias_value=$target_alias
909 ac_cv_env_target_alias_set=${target_alias+set}
910 ac_cv_env_target_alias_value=$target_alias
911 ac_env_CC_set=${CC+set}
913 ac_cv_env_CC_set=${CC+set}
914 ac_cv_env_CC_value=$CC
915 ac_env_CFLAGS_set=${CFLAGS+set}
916 ac_env_CFLAGS_value=$CFLAGS
917 ac_cv_env_CFLAGS_set=${CFLAGS+set}
918 ac_cv_env_CFLAGS_value=$CFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_env_CPPFLAGS_value=$CPPFLAGS
925 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927 ac_env_CPP_set=${CPP+set}
928 ac_env_CPP_value=$CPP
929 ac_cv_env_CPP_set=${CPP+set}
930 ac_cv_env_CPP_value=$CPP
931 ac_env_CXX_set=${CXX+set}
932 ac_env_CXX_value=$CXX
933 ac_cv_env_CXX_set=${CXX+set}
934 ac_cv_env_CXX_value=$CXX
935 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_env_CXXFLAGS_value=$CXXFLAGS
937 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
938 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
939 ac_env_CXXCPP_set=${CXXCPP+set}
940 ac_env_CXXCPP_value=$CXXCPP
941 ac_cv_env_CXXCPP_set=${CXXCPP+set}
942 ac_cv_env_CXXCPP_value=$CXXCPP
943 ac_env_F77_set=${F77+set}
944 ac_env_F77_value=$F77
945 ac_cv_env_F77_set=${F77+set}
946 ac_cv_env_F77_value=$F77
947 ac_env_FFLAGS_set=${FFLAGS+set}
948 ac_env_FFLAGS_value=$FFLAGS
949 ac_cv_env_FFLAGS_set=${FFLAGS+set}
950 ac_cv_env_FFLAGS_value=$FFLAGS
953 # Report the --help message.
955 if test "$ac_init_help" = "long"; then
956 # Omit some internal or obsolete options to make the list less imposing.
957 # This message is too long to be a string in the A/UX 3.1 sh.
959 \`configure' configures Heimdal 0.6.3 to adapt to many kinds of systems.
961 Usage: $0 [OPTION]... [VAR=VALUE]...
963 To assign environment variables (e.g., CC, CFLAGS...), specify them as
964 VAR=VALUE. See below for descriptions of some of the useful variables.
966 Defaults for the options are specified in brackets.
969 -h, --help display this help and exit
970 --help=short display options specific to this package
971 --help=recursive display the short help of all the included packages
972 -V, --version display version information and exit
973 -q, --quiet, --silent do not print \`checking...' messages
974 --cache-file=FILE cache test results in FILE [disabled]
975 -C, --config-cache alias for \`--cache-file=config.cache'
976 -n, --no-create do not create output files
977 --srcdir=DIR find the sources in DIR [configure dir or \`..']
982 Installation directories:
983 --prefix=PREFIX install architecture-independent files in PREFIX
985 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
988 By default, \`make install' will install all the files in
989 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
990 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
991 for instance \`--prefix=\$HOME'.
993 For better control, use the options below.
995 Fine tuning of the installation directories:
996 --bindir=DIR user executables [EPREFIX/bin]
997 --sbindir=DIR system admin executables [EPREFIX/sbin]
998 --libexecdir=DIR program executables [EPREFIX/libexec]
999 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1000 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1001 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1002 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1003 --libdir=DIR object code libraries [EPREFIX/lib]
1004 --includedir=DIR C header files [PREFIX/include]
1005 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1006 --infodir=DIR info documentation [PREFIX/info]
1007 --mandir=DIR man documentation [PREFIX/man]
1013 --program-prefix=PREFIX prepend PREFIX to installed program names
1014 --program-suffix=SUFFIX append SUFFIX to installed program names
1015 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1018 --x-includes=DIR X include files are in DIR
1019 --x-libraries=DIR X library files are in DIR
1022 --build=BUILD configure for building on BUILD [guessed]
1023 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1027 if test -n "$ac_init_help"; then
1028 case $ac_init_help in
1029 short | recursive ) echo "Configuration of Heimdal 0.6.3:";;
1034 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1035 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1036 --enable-maintainer-mode enable make rules and dependencies not useful
1037 (and sometimes confusing) to the casual installer
1038 --disable-largefile omit support for large files
1039 --enable-shared[=PKGS]
1040 build shared libraries [default=no]
1041 --enable-static[=PKGS]
1042 build static libraries [default=yes]
1043 --enable-fast-install[=PKGS]
1044 optimize for fast installation [default=yes]
1045 --disable-libtool-lock avoid locking (might break parallel builds)
1046 --enable-dce if you want support for DCE/DFS PAG's
1047 --disable-berkeley-db if you don't want berkeley db
1048 --disable-otp if you don't want OTP support
1049 --enable-osfc2 enable some OSF C2 support
1050 --disable-mmap disable use of mmap
1051 --enable-bigendian the target is big endian
1052 --enable-littleendian the target is little endian
1053 --disable-dynamic-afs do not use loaded AFS library with AIX
1054 --enable-netinfo enable netinfo for configuration lookup
1057 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1058 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1059 --with-mips-abi=abi ABI to use for IRIX (32, n32, or 64)
1060 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1061 --with-pic try to use only PIC/non-PIC objects [default=use
1064 include additional configurations [automatic]
1065 --with-openldap=dir use openldap in dir
1066 --with-openldap-lib=dir use openldap libraries in dir
1067 --with-openldap-include=dir
1068 use openldap headers in dir
1069 --with-openldap-config=path
1070 config program for openldap
1071 --with-krb4=dir use krb4 in dir
1072 --with-krb4-lib=dir use krb4 libraries in dir
1073 --with-krb4-include=dir use krb4 headers in dir
1074 --with-krb4-config=path config program for krb4
1075 --with-openssl=dir use openssl in dir
1076 --with-openssl-lib=dir use openssl libraries in dir
1077 --with-openssl-include=dir
1078 use openssl headers in dir
1079 --without-ipv6 do not enable IPv6 support
1080 --with-readline=dir use readline in dir
1081 --with-readline-lib=dir use readline libraries in dir
1082 --with-readline-include=dir
1083 use readline headers in dir
1084 --with-readline-config=path
1085 config program for readline
1086 --with-hesiod=dir use hesiod in dir
1087 --with-hesiod-lib=dir use hesiod libraries in dir
1088 --with-hesiod-include=dir
1089 use hesiod headers in dir
1090 --with-hesiod-config=path
1091 config program for hesiod
1092 --with-x use the X Window System
1094 Some influential environment variables:
1095 CC C compiler command
1096 CFLAGS C compiler flags
1097 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1098 nonstandard directory <lib dir>
1099 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1100 headers in a nonstandard directory <include dir>
1102 CXX C++ compiler command
1103 CXXFLAGS C++ compiler flags
1104 CXXCPP C++ preprocessor
1105 F77 Fortran 77 compiler command
1106 FFLAGS Fortran 77 compiler flags
1108 Use these variables to override the choices made by `configure' or to help
1109 it to find libraries and programs with nonstandard names/locations.
1111 Report bugs to <heimdal-bugs@pdc.kth.se>.
1115 if test "$ac_init_help" = "recursive"; then
1116 # If there are subdirs, report their specific --help.
1118 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1119 test -d $ac_dir || continue
1122 if test "$ac_dir" != .; then
1123 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1124 # A "../" for each directory in $ac_dir_suffix.
1125 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1127 ac_dir_suffix= ac_top_builddir=
1131 .) # No --srcdir option. We are building in place.
1133 if test -z "$ac_top_builddir"; then
1136 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1138 [\\/]* | ?:[\\/]* ) # Absolute path.
1139 ac_srcdir=$srcdir$ac_dir_suffix;
1140 ac_top_srcdir=$srcdir ;;
1142 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1143 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1146 # Do not use `cd foo && pwd` to compute absolute paths, because
1147 # the directories may not exist.
1149 .) ac_abs_builddir="$ac_dir";;
1152 .) ac_abs_builddir=`pwd`;;
1153 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1154 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1157 case $ac_abs_builddir in
1158 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1160 case ${ac_top_builddir}. in
1161 .) ac_abs_top_builddir=$ac_abs_builddir;;
1162 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1163 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1166 case $ac_abs_builddir in
1167 .) ac_abs_srcdir=$ac_srcdir;;
1170 .) ac_abs_srcdir=$ac_abs_builddir;;
1171 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1172 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1175 case $ac_abs_builddir in
1176 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1178 case $ac_top_srcdir in
1179 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1180 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1181 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1186 # Check for guested configure; otherwise get Cygnus style configure.
1187 if test -f $ac_srcdir/configure.gnu; then
1189 $SHELL $ac_srcdir/configure.gnu --help=recursive
1190 elif test -f $ac_srcdir/configure; then
1192 $SHELL $ac_srcdir/configure --help=recursive
1193 elif test -f $ac_srcdir/configure.ac ||
1194 test -f $ac_srcdir/configure.in; then
1196 $ac_configure --help
1198 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1204 test -n "$ac_init_help" && exit 0
1205 if $ac_init_version; then
1207 Heimdal configure 0.6.3
1208 generated by GNU Autoconf 2.59
1210 Copyright (C) 2003 Free Software Foundation, Inc.
1211 This configure script is free software; the Free Software Foundation
1212 gives unlimited permission to copy, distribute and modify it.
1218 This file contains any messages produced by compilers while
1219 running configure, to aid debugging if configure makes a mistake.
1221 It was created by Heimdal $as_me 0.6.3, which was
1222 generated by GNU Autoconf 2.59. Invocation command line was
1233 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1234 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1235 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1236 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1237 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1239 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1240 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1242 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1243 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1244 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1245 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1246 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1247 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1248 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1256 test -z "$as_dir" && as_dir=.
1257 echo "PATH: $as_dir"
1272 # Keep a trace of the command line.
1273 # Strip out --no-create and --no-recursion so they do not pile up.
1274 # Strip out --silent because we don't want to record it for future runs.
1275 # Also quote any args containing shell meta-characters.
1276 # Make two passes to allow for proper duplicate-argument suppression.
1281 ac_must_keep_next=false
1287 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1289 | -silent | --silent | --silen | --sile | --sil)
1291 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1295 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1297 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1298 if test $ac_must_keep_next = true; then
1299 ac_must_keep_next=false # Got value, back to normal.
1302 *=* | --config-cache | -C | -disable-* | --disable-* \
1303 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1304 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1305 | -with-* | --with-* | -without-* | --without-* | --x)
1306 case "$ac_configure_args0 " in
1307 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1310 -* ) ac_must_keep_next=true ;;
1313 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1314 # Get rid of the leading space.
1320 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1321 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1323 # When interrupted or exit'd, cleanup temporary files, and complete
1324 # config.log. We remove comments because anyway the quotes in there
1325 # would cause problems or look ugly.
1326 # WARNING: Be sure not to use single quotes in there, as some shells,
1327 # such as our DU 5.0 friend, will then `close' the trap.
1328 trap 'exit_status=$?
1329 # Save into config.log some information that might help in debugging.
1334 ## ---------------- ##
1335 ## Cache variables. ##
1336 ## ---------------- ##
1339 # The following way of writing the cache mishandles newlines in values,
1342 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1345 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1346 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1350 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1357 ## ----------------- ##
1358 ## Output variables. ##
1359 ## ----------------- ##
1362 for ac_var in $ac_subst_vars
1364 eval ac_val=$`echo $ac_var`
1365 echo "$ac_var='"'"'$ac_val'"'"'"
1369 if test -n "$ac_subst_files"; then
1376 for ac_var in $ac_subst_files
1378 eval ac_val=$`echo $ac_var`
1379 echo "$ac_var='"'"'$ac_val'"'"'"
1384 if test -s confdefs.h; then
1391 sed "/^$/d" confdefs.h | sort
1394 test "$ac_signal" != 0 &&
1395 echo "$as_me: caught signal $ac_signal"
1396 echo "$as_me: exit $exit_status"
1398 rm -f core *.core &&
1399 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1402 for ac_signal in 1 2 13 15; do
1403 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1407 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1408 rm -rf conftest* confdefs.h
1409 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1412 # Predefined preprocessor variables.
1414 cat >>confdefs.h <<_ACEOF
1415 #define PACKAGE_NAME "$PACKAGE_NAME"
1419 cat >>confdefs.h <<_ACEOF
1420 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1424 cat >>confdefs.h <<_ACEOF
1425 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1429 cat >>confdefs.h <<_ACEOF
1430 #define PACKAGE_STRING "$PACKAGE_STRING"
1434 cat >>confdefs.h <<_ACEOF
1435 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1439 # Let the site file select an alternate cache file if it wants to.
1440 # Prefer explicitly selected file to automatically selected ones.
1441 if test -z "$CONFIG_SITE"; then
1442 if test "x$prefix" != xNONE; then
1443 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1445 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1448 for ac_site_file in $CONFIG_SITE; do
1449 if test -r "$ac_site_file"; then
1450 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1451 echo "$as_me: loading site script $ac_site_file" >&6;}
1452 sed 's/^/| /' "$ac_site_file" >&5
1457 if test -r "$cache_file"; then
1458 # Some versions of bash will fail to source /dev/null (special
1459 # files actually), so we avoid doing that.
1460 if test -f "$cache_file"; then
1461 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1462 echo "$as_me: loading cache $cache_file" >&6;}
1464 [\\/]* | ?:[\\/]* ) . $cache_file;;
1465 *) . ./$cache_file;;
1469 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1470 echo "$as_me: creating cache $cache_file" >&6;}
1474 # Check that the precious variables saved in the cache have kept the same
1476 ac_cache_corrupted=false
1477 for ac_var in `(set) 2>&1 |
1478 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1479 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1480 eval ac_new_set=\$ac_env_${ac_var}_set
1481 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1482 eval ac_new_val="\$ac_env_${ac_var}_value"
1483 case $ac_old_set,$ac_new_set in
1485 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1486 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1487 ac_cache_corrupted=: ;;
1489 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1490 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1491 ac_cache_corrupted=: ;;
1494 if test "x$ac_old_val" != "x$ac_new_val"; then
1495 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1496 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1497 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1498 echo "$as_me: former value: $ac_old_val" >&2;}
1499 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1500 echo "$as_me: current value: $ac_new_val" >&2;}
1501 ac_cache_corrupted=:
1504 # Pass precious variables to config.status.
1505 if test "$ac_new_set" = set; then
1507 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1508 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1509 *) ac_arg=$ac_var=$ac_new_val ;;
1511 case " $ac_configure_args " in
1512 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1513 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1517 if $ac_cache_corrupted; then
1518 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1519 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1520 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1521 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1522 { (exit 1); exit 1; }; }
1526 ac_cpp='$CPP $CPPFLAGS'
1527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1558 ac_config_headers="$ac_config_headers include/config.h"
1562 ac_cpp='$CPP $CPPFLAGS'
1563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1566 if test -n "$ac_tool_prefix"; then
1567 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1568 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1569 echo "$as_me:$LINENO: checking for $ac_word" >&5
1570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1571 if test "${ac_cv_prog_CC+set}" = set; then
1572 echo $ECHO_N "(cached) $ECHO_C" >&6
1574 if test -n "$CC"; then
1575 ac_cv_prog_CC="$CC" # Let the user override the test.
1577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581 test -z "$as_dir" && as_dir=.
1582 for ac_exec_ext in '' $ac_executable_extensions; do
1583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1584 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1594 if test -n "$CC"; then
1595 echo "$as_me:$LINENO: result: $CC" >&5
1596 echo "${ECHO_T}$CC" >&6
1598 echo "$as_me:$LINENO: result: no" >&5
1599 echo "${ECHO_T}no" >&6
1603 if test -z "$ac_cv_prog_CC"; then
1605 # Extract the first word of "gcc", so it can be a program name with args.
1606 set dummy gcc; ac_word=$2
1607 echo "$as_me:$LINENO: checking for $ac_word" >&5
1608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1610 echo $ECHO_N "(cached) $ECHO_C" >&6
1612 if test -n "$ac_ct_CC"; then
1613 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619 test -z "$as_dir" && as_dir=.
1620 for ac_exec_ext in '' $ac_executable_extensions; do
1621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622 ac_cv_prog_ac_ct_CC="gcc"
1623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1631 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1632 if test -n "$ac_ct_CC"; then
1633 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1634 echo "${ECHO_T}$ac_ct_CC" >&6
1636 echo "$as_me:$LINENO: result: no" >&5
1637 echo "${ECHO_T}no" >&6
1645 if test -z "$CC"; then
1646 if test -n "$ac_tool_prefix"; then
1647 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1648 set dummy ${ac_tool_prefix}cc; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_CC+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 if test -n "$CC"; then
1655 ac_cv_prog_CC="$CC" # Let the user override the test.
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1661 test -z "$as_dir" && as_dir=.
1662 for ac_exec_ext in '' $ac_executable_extensions; do
1663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664 ac_cv_prog_CC="${ac_tool_prefix}cc"
1665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674 if test -n "$CC"; then
1675 echo "$as_me:$LINENO: result: $CC" >&5
1676 echo "${ECHO_T}$CC" >&6
1678 echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1683 if test -z "$ac_cv_prog_CC"; then
1685 # Extract the first word of "cc", so it can be a program name with args.
1686 set dummy cc; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 if test -n "$ac_ct_CC"; then
1693 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 test -z "$as_dir" && as_dir=.
1700 for ac_exec_ext in '' $ac_executable_extensions; do
1701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702 ac_cv_prog_ac_ct_CC="cc"
1703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1711 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1712 if test -n "$ac_ct_CC"; then
1713 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1714 echo "${ECHO_T}$ac_ct_CC" >&6
1716 echo "$as_me:$LINENO: result: no" >&5
1717 echo "${ECHO_T}no" >&6
1726 if test -z "$CC"; then
1727 # Extract the first word of "cc", so it can be a program name with args.
1728 set dummy cc; ac_word=$2
1729 echo "$as_me:$LINENO: checking for $ac_word" >&5
1730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1731 if test "${ac_cv_prog_CC+set}" = set; then
1732 echo $ECHO_N "(cached) $ECHO_C" >&6
1734 if test -n "$CC"; then
1735 ac_cv_prog_CC="$CC" # Let the user override the test.
1738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1742 test -z "$as_dir" && as_dir=.
1743 for ac_exec_ext in '' $ac_executable_extensions; do
1744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1745 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1746 ac_prog_rejected=yes
1750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756 if test $ac_prog_rejected = yes; then
1757 # We found a bogon in the path, so make sure we never use it.
1758 set dummy $ac_cv_prog_CC
1760 if test $# != 0; then
1761 # We chose a different compiler from the bogus one.
1762 # However, it has the same basename, so the bogon will be chosen
1763 # first if we set CC to just the basename; use the full file name.
1765 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1771 if test -n "$CC"; then
1772 echo "$as_me:$LINENO: result: $CC" >&5
1773 echo "${ECHO_T}$CC" >&6
1775 echo "$as_me:$LINENO: result: no" >&5
1776 echo "${ECHO_T}no" >&6
1780 if test -z "$CC"; then
1781 if test -n "$ac_tool_prefix"; then
1784 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1785 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1786 echo "$as_me:$LINENO: checking for $ac_word" >&5
1787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788 if test "${ac_cv_prog_CC+set}" = set; then
1789 echo $ECHO_N "(cached) $ECHO_C" >&6
1791 if test -n "$CC"; then
1792 ac_cv_prog_CC="$CC" # Let the user override the test.
1794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798 test -z "$as_dir" && as_dir=.
1799 for ac_exec_ext in '' $ac_executable_extensions; do
1800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1801 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1811 if test -n "$CC"; then
1812 echo "$as_me:$LINENO: result: $CC" >&5
1813 echo "${ECHO_T}$CC" >&6
1815 echo "$as_me:$LINENO: result: no" >&5
1816 echo "${ECHO_T}no" >&6
1819 test -n "$CC" && break
1822 if test -z "$CC"; then
1826 # Extract the first word of "$ac_prog", so it can be a program name with args.
1827 set dummy $ac_prog; ac_word=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1833 if test -n "$ac_ct_CC"; then
1834 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 test -z "$as_dir" && as_dir=.
1841 for ac_exec_ext in '' $ac_executable_extensions; do
1842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843 ac_cv_prog_ac_ct_CC="$ac_prog"
1844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1852 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1853 if test -n "$ac_ct_CC"; then
1854 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1855 echo "${ECHO_T}$ac_ct_CC" >&6
1857 echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1861 test -n "$ac_ct_CC" && break
1870 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1871 See \`config.log' for more details." >&5
1872 echo "$as_me: error: no acceptable C compiler found in \$PATH
1873 See \`config.log' for more details." >&2;}
1874 { (exit 1); exit 1; }; }
1876 # Provide some information about the compiler.
1877 echo "$as_me:$LINENO:" \
1878 "checking for C compiler version" >&5
1879 ac_compiler=`set X $ac_compile; echo $2`
1880 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1881 (eval $ac_compiler --version </dev/null >&5) 2>&5
1883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884 (exit $ac_status); }
1885 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1886 (eval $ac_compiler -v </dev/null >&5) 2>&5
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }
1890 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1891 (eval $ac_compiler -V </dev/null >&5) 2>&5
1893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1894 (exit $ac_status); }
1896 cat >conftest.$ac_ext <<_ACEOF
1899 cat confdefs.h >>conftest.$ac_ext
1900 cat >>conftest.$ac_ext <<_ACEOF
1901 /* end confdefs.h. */
1911 ac_clean_files_save=$ac_clean_files
1912 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1913 # Try to create an executable without -o first, disregard a.out.
1914 # It will help us diagnose broken compilers, and finding out an intuition
1916 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1917 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1918 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1919 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1920 (eval $ac_link_default) 2>&5
1922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923 (exit $ac_status); }; then
1924 # Find the output, starting from the most likely. This scheme is
1925 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1928 # Be careful to initialize this variable, since it used to be cached.
1929 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1931 # b.out is created by i960 compilers.
1932 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1934 test -f "$ac_file" || continue
1936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1939 # This is the source file.
1942 # We found the default executable, but exeext='' is most
1946 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1947 # FIXME: I believe we export ac_cv_exeext for Libtool,
1948 # but it would be cool to find out if it's true. Does anybody
1949 # maintain Libtool? --akim.
1957 echo "$as_me: failed program was:" >&5
1958 sed 's/^/| /' conftest.$ac_ext >&5
1960 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1961 See \`config.log' for more details." >&5
1962 echo "$as_me: error: C compiler cannot create executables
1963 See \`config.log' for more details." >&2;}
1964 { (exit 77); exit 77; }; }
1967 ac_exeext=$ac_cv_exeext
1968 echo "$as_me:$LINENO: result: $ac_file" >&5
1969 echo "${ECHO_T}$ac_file" >&6
1971 # Check the compiler produces executables we can run. If not, either
1972 # the compiler is broken, or we cross compile.
1973 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1974 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1975 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1976 # If not cross compiling, check that we can run a simple program.
1977 if test "$cross_compiling" != yes; then
1978 if { ac_try='./$ac_file'
1979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983 (exit $ac_status); }; }; then
1986 if test "$cross_compiling" = maybe; then
1989 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1990 If you meant to cross compile, use \`--host'.
1991 See \`config.log' for more details." >&5
1992 echo "$as_me: error: cannot run C compiled programs.
1993 If you meant to cross compile, use \`--host'.
1994 See \`config.log' for more details." >&2;}
1995 { (exit 1); exit 1; }; }
1999 echo "$as_me:$LINENO: result: yes" >&5
2000 echo "${ECHO_T}yes" >&6
2002 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2003 ac_clean_files=$ac_clean_files_save
2004 # Check the compiler produces executables we can run. If not, either
2005 # the compiler is broken, or we cross compile.
2006 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2007 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2008 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2009 echo "${ECHO_T}$cross_compiling" >&6
2011 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2012 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2014 (eval $ac_link) 2>&5
2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017 (exit $ac_status); }; then
2018 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2019 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2020 # work properly (i.e., refer to `conftest.exe'), while it won't with
2022 for ac_file in conftest.exe conftest conftest.*; do
2023 test -f "$ac_file" || continue
2025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2026 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2033 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2034 See \`config.log' for more details." >&5
2035 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2036 See \`config.log' for more details." >&2;}
2037 { (exit 1); exit 1; }; }
2040 rm -f conftest$ac_cv_exeext
2041 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2042 echo "${ECHO_T}$ac_cv_exeext" >&6
2044 rm -f conftest.$ac_ext
2045 EXEEXT=$ac_cv_exeext
2047 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2048 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2049 if test "${ac_cv_objext+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2052 cat >conftest.$ac_ext <<_ACEOF
2055 cat confdefs.h >>conftest.$ac_ext
2056 cat >>conftest.$ac_ext <<_ACEOF
2057 /* end confdefs.h. */
2067 rm -f conftest.o conftest.obj
2068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2069 (eval $ac_compile) 2>&5
2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072 (exit $ac_status); }; then
2073 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2076 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2081 echo "$as_me: failed program was:" >&5
2082 sed 's/^/| /' conftest.$ac_ext >&5
2084 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2085 See \`config.log' for more details." >&5
2086 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2087 See \`config.log' for more details." >&2;}
2088 { (exit 1); exit 1; }; }
2091 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2093 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2094 echo "${ECHO_T}$ac_cv_objext" >&6
2095 OBJEXT=$ac_cv_objext
2097 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2098 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2099 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2102 cat >conftest.$ac_ext <<_ACEOF
2105 cat confdefs.h >>conftest.$ac_ext
2106 cat >>conftest.$ac_ext <<_ACEOF
2107 /* end confdefs.h. */
2120 rm -f conftest.$ac_objext
2121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2122 (eval $ac_compile) 2>conftest.er1
2124 grep -v '^ *+' conftest.er1 >conftest.err
2126 cat conftest.err >&5
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); } &&
2129 { ac_try='test -z "$ac_c_werror_flag"
2130 || test ! -s conftest.err'
2131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }; } &&
2136 { ac_try='test -s conftest.$ac_objext'
2137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }; }; then
2144 echo "$as_me: failed program was:" >&5
2145 sed 's/^/| /' conftest.$ac_ext >&5
2149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2150 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2153 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2154 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2155 GCC=`test $ac_compiler_gnu = yes && echo yes`
2156 ac_test_CFLAGS=${CFLAGS+set}
2157 ac_save_CFLAGS=$CFLAGS
2159 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2160 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2161 if test "${ac_cv_prog_cc_g+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2164 cat >conftest.$ac_ext <<_ACEOF
2167 cat confdefs.h >>conftest.$ac_ext
2168 cat >>conftest.$ac_ext <<_ACEOF
2169 /* end confdefs.h. */
2179 rm -f conftest.$ac_objext
2180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2181 (eval $ac_compile) 2>conftest.er1
2183 grep -v '^ *+' conftest.er1 >conftest.err
2185 cat conftest.err >&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); } &&
2188 { ac_try='test -z "$ac_c_werror_flag"
2189 || test ! -s conftest.err'
2190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }; } &&
2195 { ac_try='test -s conftest.$ac_objext'
2196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; }; then
2203 echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2210 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2211 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2212 if test "$ac_test_CFLAGS" = set; then
2213 CFLAGS=$ac_save_CFLAGS
2214 elif test $ac_cv_prog_cc_g = yes; then
2215 if test "$GCC" = yes; then
2221 if test "$GCC" = yes; then
2227 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2228 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2229 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 ac_cv_prog_cc_stdc=no
2234 cat >conftest.$ac_ext <<_ACEOF
2237 cat confdefs.h >>conftest.$ac_ext
2238 cat >>conftest.$ac_ext <<_ACEOF
2239 /* end confdefs.h. */
2242 #include <sys/types.h>
2243 #include <sys/stat.h>
2244 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2245 struct buf { int x; };
2246 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2247 static char *e (p, i)
2253 static char *f (char * (*g) (char **, int), char **p, ...)
2258 s = g (p, va_arg (v,int));
2263 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2264 function prototypes and stuff, but not '\xHH' hex character constants.
2265 These don't provoke an error unfortunately, instead are silently treated
2266 as 'x'. The following induces an error, until -std1 is added to get
2267 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2268 array size at least. It's necessary to write '\x00'==0 to get something
2269 that's true only with -std1. */
2270 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2272 int test (int i, double x);
2273 struct s1 {int (*f) (int a);};
2274 struct s2 {int (*f) (double a);};
2275 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2281 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2286 # Don't try gcc -ansi; that turns off useful extensions and
2287 # breaks some systems' header files.
2288 # AIX -qlanglvl=ansi
2289 # Ultrix and OSF/1 -std1
2290 # HP-UX 10.20 and later -Ae
2291 # HP-UX older versions -Aa -D_HPUX_SOURCE
2292 # SVR4 -Xc -D__EXTENSIONS__
2293 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2295 CC="$ac_save_CC $ac_arg"
2296 rm -f conftest.$ac_objext
2297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2298 (eval $ac_compile) 2>conftest.er1
2300 grep -v '^ *+' conftest.er1 >conftest.err
2302 cat conftest.err >&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); } &&
2305 { ac_try='test -z "$ac_c_werror_flag"
2306 || test ! -s conftest.err'
2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; } &&
2312 { ac_try='test -s conftest.$ac_objext'
2313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; }; then
2318 ac_cv_prog_cc_stdc=$ac_arg
2321 echo "$as_me: failed program was:" >&5
2322 sed 's/^/| /' conftest.$ac_ext >&5
2325 rm -f conftest.err conftest.$ac_objext
2327 rm -f conftest.$ac_ext conftest.$ac_objext
2332 case "x$ac_cv_prog_cc_stdc" in
2334 echo "$as_me:$LINENO: result: none needed" >&5
2335 echo "${ECHO_T}none needed" >&6 ;;
2337 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2338 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2339 CC="$CC $ac_cv_prog_cc_stdc" ;;
2342 # Some people use a C++ compiler to compile C. Since we use `exit',
2343 # in C++ we need to declare it. In case someone uses the same compiler
2344 # for both compiling C and C++ we need to have the C++ compiler decide
2345 # the declaration of exit, since it's the most demanding environment.
2346 cat >conftest.$ac_ext <<_ACEOF
2351 rm -f conftest.$ac_objext
2352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2353 (eval $ac_compile) 2>conftest.er1
2355 grep -v '^ *+' conftest.er1 >conftest.err
2357 cat conftest.err >&5
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); } &&
2360 { ac_try='test -z "$ac_c_werror_flag"
2361 || test ! -s conftest.err'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; } &&
2367 { ac_try='test -s conftest.$ac_objext'
2368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; }; then
2373 for ac_declaration in \
2375 'extern "C" void std::exit (int) throw (); using std::exit;' \
2376 'extern "C" void std::exit (int); using std::exit;' \
2377 'extern "C" void exit (int) throw ();' \
2378 'extern "C" void exit (int);' \
2381 cat >conftest.$ac_ext <<_ACEOF
2384 cat confdefs.h >>conftest.$ac_ext
2385 cat >>conftest.$ac_ext <<_ACEOF
2386 /* end confdefs.h. */
2397 rm -f conftest.$ac_objext
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399 (eval $ac_compile) 2>conftest.er1
2401 grep -v '^ *+' conftest.er1 >conftest.err
2403 cat conftest.err >&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); } &&
2406 { ac_try='test -z "$ac_c_werror_flag"
2407 || test ! -s conftest.err'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; } &&
2413 { ac_try='test -s conftest.$ac_objext'
2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; }; then
2421 echo "$as_me: failed program was:" >&5
2422 sed 's/^/| /' conftest.$ac_ext >&5
2426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2427 cat >conftest.$ac_ext <<_ACEOF
2430 cat confdefs.h >>conftest.$ac_ext
2431 cat >>conftest.$ac_ext <<_ACEOF
2432 /* end confdefs.h. */
2442 rm -f conftest.$ac_objext
2443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2444 (eval $ac_compile) 2>conftest.er1
2446 grep -v '^ *+' conftest.er1 >conftest.err
2448 cat conftest.err >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); } &&
2451 { ac_try='test -z "$ac_c_werror_flag"
2452 || test ! -s conftest.err'
2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; } &&
2458 { ac_try='test -s conftest.$ac_objext'
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; }; then
2466 echo "$as_me: failed program was:" >&5
2467 sed 's/^/| /' conftest.$ac_ext >&5
2470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2473 if test -n "$ac_declaration"; then
2474 echo '#ifdef __cplusplus' >>confdefs.h
2475 echo $ac_declaration >>confdefs.h
2476 echo '#endif' >>confdefs.h
2480 echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2486 ac_cpp='$CPP $CPPFLAGS'
2487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2492 ac_cpp='$CPP $CPPFLAGS'
2493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2496 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2497 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2498 # On Suns, sometimes $CPP names a directory.
2499 if test -n "$CPP" && test -d "$CPP"; then
2502 if test -z "$CPP"; then
2503 if test "${ac_cv_prog_CPP+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 # Double quotes because CPP needs to be expanded
2507 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2510 for ac_c_preproc_warn_flag in '' yes
2512 # Use a header file that comes with gcc, so configuring glibc
2513 # with a fresh cross-compiler works.
2514 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2515 # <limits.h> exists even on freestanding compilers.
2516 # On the NeXT, cc -E runs the code through the compiler's parser,
2517 # not just through cpp. "Syntax error" is here to catch this case.
2518 cat >conftest.$ac_ext <<_ACEOF
2521 cat confdefs.h >>conftest.$ac_ext
2522 cat >>conftest.$ac_ext <<_ACEOF
2523 /* end confdefs.h. */
2525 # include <limits.h>
2527 # include <assert.h>
2531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2532 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2534 grep -v '^ *+' conftest.er1 >conftest.err
2536 cat conftest.err >&5
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); } >/dev/null; then
2539 if test -s conftest.err; then
2540 ac_cpp_err=$ac_c_preproc_warn_flag
2541 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2548 if test -z "$ac_cpp_err"; then
2551 echo "$as_me: failed program was:" >&5
2552 sed 's/^/| /' conftest.$ac_ext >&5
2554 # Broken: fails on valid input.
2557 rm -f conftest.err conftest.$ac_ext
2559 # OK, works on sane cases. Now check whether non-existent headers
2560 # can be detected and how.
2561 cat >conftest.$ac_ext <<_ACEOF
2564 cat confdefs.h >>conftest.$ac_ext
2565 cat >>conftest.$ac_ext <<_ACEOF
2566 /* end confdefs.h. */
2567 #include <ac_nonexistent.h>
2569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2572 grep -v '^ *+' conftest.er1 >conftest.err
2574 cat conftest.err >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); } >/dev/null; then
2577 if test -s conftest.err; then
2578 ac_cpp_err=$ac_c_preproc_warn_flag
2579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2586 if test -z "$ac_cpp_err"; then
2587 # Broken: success on invalid input.
2590 echo "$as_me: failed program was:" >&5
2591 sed 's/^/| /' conftest.$ac_ext >&5
2593 # Passes both tests.
2597 rm -f conftest.err conftest.$ac_ext
2600 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2601 rm -f conftest.err conftest.$ac_ext
2602 if $ac_preproc_ok; then
2614 echo "$as_me:$LINENO: result: $CPP" >&5
2615 echo "${ECHO_T}$CPP" >&6
2617 for ac_c_preproc_warn_flag in '' yes
2619 # Use a header file that comes with gcc, so configuring glibc
2620 # with a fresh cross-compiler works.
2621 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2622 # <limits.h> exists even on freestanding compilers.
2623 # On the NeXT, cc -E runs the code through the compiler's parser,
2624 # not just through cpp. "Syntax error" is here to catch this case.
2625 cat >conftest.$ac_ext <<_ACEOF
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h. */
2632 # include <limits.h>
2634 # include <assert.h>
2638 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2639 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2641 grep -v '^ *+' conftest.er1 >conftest.err
2643 cat conftest.err >&5
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); } >/dev/null; then
2646 if test -s conftest.err; then
2647 ac_cpp_err=$ac_c_preproc_warn_flag
2648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2655 if test -z "$ac_cpp_err"; then
2658 echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2661 # Broken: fails on valid input.
2664 rm -f conftest.err conftest.$ac_ext
2666 # OK, works on sane cases. Now check whether non-existent headers
2667 # can be detected and how.
2668 cat >conftest.$ac_ext <<_ACEOF
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h. */
2674 #include <ac_nonexistent.h>
2676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2679 grep -v '^ *+' conftest.er1 >conftest.err
2681 cat conftest.err >&5
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); } >/dev/null; then
2684 if test -s conftest.err; then
2685 ac_cpp_err=$ac_c_preproc_warn_flag
2686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2693 if test -z "$ac_cpp_err"; then
2694 # Broken: success on invalid input.
2697 echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2700 # Passes both tests.
2704 rm -f conftest.err conftest.$ac_ext
2707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2708 rm -f conftest.err conftest.$ac_ext
2709 if $ac_preproc_ok; then
2712 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2713 See \`config.log' for more details." >&5
2714 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2715 See \`config.log' for more details." >&2;}
2716 { (exit 1); exit 1; }; }
2720 ac_cpp='$CPP $CPPFLAGS'
2721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2727 am__api_version="1.8"
2729 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2730 if test -f $ac_dir/install-sh; then
2732 ac_install_sh="$ac_aux_dir/install-sh -c"
2734 elif test -f $ac_dir/install.sh; then
2736 ac_install_sh="$ac_aux_dir/install.sh -c"
2738 elif test -f $ac_dir/shtool; then
2740 ac_install_sh="$ac_aux_dir/shtool install -c"
2744 if test -z "$ac_aux_dir"; then
2745 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2746 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2747 { (exit 1); exit 1; }; }
2749 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2750 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2751 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2753 # Find a good install program. We prefer a C program (faster),
2754 # so one script is as good as another. But avoid the broken or
2755 # incompatible versions:
2756 # SysV /etc/install, /usr/sbin/install
2757 # SunOS /usr/etc/install
2758 # IRIX /sbin/install
2760 # AmigaOS /C/install, which installs bootblocks on floppy discs
2761 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2762 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2763 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2764 # OS/2's system install, which has a completely different semantic
2765 # ./install, which can be erroneously created by make from ./install.sh.
2766 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2767 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2768 if test -z "$INSTALL"; then
2769 if test "${ac_cv_path_install+set}" = set; then
2770 echo $ECHO_N "(cached) $ECHO_C" >&6
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 test -z "$as_dir" && as_dir=.
2777 # Account for people who put trailing slashes in PATH elements.
2779 ./ | .// | /cC/* | \
2780 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2781 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2784 # OSF1 and SCO ODT 3.0 have their own names for install.
2785 # Don't use installbsd from OSF since it installs stuff as root
2787 for ac_prog in ginstall scoinst install; do
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2790 if test $ac_prog = install &&
2791 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2792 # AIX install. It has an incompatible calling convention.
2794 elif test $ac_prog = install &&
2795 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2796 # program-specific install script used by HP pwplus--don't use.
2799 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2811 if test "${ac_cv_path_install+set}" = set; then
2812 INSTALL=$ac_cv_path_install
2814 # As a last resort, use the slow shell script. We don't cache a
2815 # path for INSTALL within a source directory, because that will
2816 # break other packages using the cache if that directory is
2817 # removed, or if the path is relative.
2818 INSTALL=$ac_install_sh
2821 echo "$as_me:$LINENO: result: $INSTALL" >&5
2822 echo "${ECHO_T}$INSTALL" >&6
2824 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2825 # It thinks the first close brace ends the variable substitution.
2826 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2828 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2830 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2832 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2833 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2836 echo timestamp > conftest.file
2837 # Do `set' in a subshell so we don't clobber the current shell's
2838 # arguments. Must try -L first in case configure is actually a
2839 # symlink; some systems play weird games with the mod time of symlinks
2840 # (eg FreeBSD returns the mod time of the symlink's containing
2843 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2844 if test "$*" = "X"; then
2846 set X `ls -t $srcdir/configure conftest.file`
2849 if test "$*" != "X $srcdir/configure conftest.file" \
2850 && test "$*" != "X conftest.file $srcdir/configure"; then
2852 # If neither matched, then we have a broken ls. This can happen
2853 # if, for instance, CONFIG_SHELL is bash and it inherits a
2854 # broken ls alias from the environment. This has actually
2855 # happened. Such a system could not be considered "sane".
2856 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2857 alias in your environment" >&5
2858 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2859 alias in your environment" >&2;}
2860 { (exit 1); exit 1; }; }
2863 test "$2" = conftest.file
2869 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2870 Check your system clock" >&5
2871 echo "$as_me: error: newly created file is older than distributed files!
2872 Check your system clock" >&2;}
2873 { (exit 1); exit 1; }; }
2875 echo "$as_me:$LINENO: result: yes" >&5
2876 echo "${ECHO_T}yes" >&6
2877 test "$program_prefix" != NONE &&
2878 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2879 # Use a double $ so make ignores it.
2880 test "$program_suffix" != NONE &&
2881 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2882 # Double any \ or $. echo might interpret backslashes.
2883 # By default was `s,x,x', remove it if useless.
2884 cat <<\_ACEOF >conftest.sed
2885 s/[\\$]/&&/g;s/;s,x,x,$//
2887 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2890 # expand $ac_aux_dir to an absolute path
2891 am_aux_dir=`cd $ac_aux_dir && pwd`
2893 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2894 # Use eval to expand $SHELL
2895 if eval "$MISSING --run true"; then
2896 am_missing_run="$MISSING --run "
2899 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2900 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2903 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2904 # Keeping the `.' argument allows $(mkdir_p) to be used without
2905 # argument. Indeed, we sometimes output rules like
2906 # $(mkdir_p) $(somedir)
2907 # where $(somedir) is conditionally defined.
2908 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2909 # expensive solution, as it forces Make to start a sub-shell.)
2910 mkdir_p='mkdir -p -- .'
2912 # On NextStep and OpenStep, the `mkdir' command does not
2913 # recognize any option. It will interpret all options as
2914 # directories to create, and then abort because `.' already
2916 for d in ./-p ./--version;
2918 test -d $d && rmdir $d
2920 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2921 if test -f "$ac_aux_dir/mkinstalldirs"; then
2922 mkdir_p='$(mkinstalldirs)'
2924 mkdir_p='$(install_sh) -d'
2928 for ac_prog in gawk mawk nawk awk
2930 # Extract the first word of "$ac_prog", so it can be a program name with args.
2931 set dummy $ac_prog; ac_word=$2
2932 echo "$as_me:$LINENO: checking for $ac_word" >&5
2933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2934 if test "${ac_cv_prog_AWK+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2937 if test -n "$AWK"; then
2938 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947 ac_cv_prog_AWK="$ac_prog"
2948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 if test -n "$AWK"; then
2958 echo "$as_me:$LINENO: result: $AWK" >&5
2959 echo "${ECHO_T}$AWK" >&6
2961 echo "$as_me:$LINENO: result: no" >&5
2962 echo "${ECHO_T}no" >&6
2965 test -n "$AWK" && break
2968 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2969 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2970 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2971 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
2974 cat >conftest.make <<\_ACEOF
2976 @echo 'ac_maketemp="$(MAKE)"'
2978 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2979 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2980 if test -n "$ac_maketemp"; then
2981 eval ac_cv_prog_make_${ac_make}_set=yes
2983 eval ac_cv_prog_make_${ac_make}_set=no
2987 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2988 echo "$as_me:$LINENO: result: yes" >&5
2989 echo "${ECHO_T}yes" >&6
2992 echo "$as_me:$LINENO: result: no" >&5
2993 echo "${ECHO_T}no" >&6
2994 SET_MAKE="MAKE=${MAKE-make}"
2997 rm -rf .tst 2>/dev/null
2998 mkdir .tst 2>/dev/null
2999 if test -d .tst; then
3004 rmdir .tst 2>/dev/null
3006 # test to see if srcdir already configured
3007 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3008 test -f $srcdir/config.status; then
3009 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3010 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3011 { (exit 1); exit 1; }; }
3014 # test whether we have cygpath
3015 if test -z "$CYGPATH_W"; then
3016 if (cygpath --version) >/dev/null 2>/dev/null; then
3017 CYGPATH_W='cygpath -w'
3024 # Define the identity of the package.
3029 cat >>confdefs.h <<_ACEOF
3030 #define PACKAGE "$PACKAGE"
3034 cat >>confdefs.h <<_ACEOF
3035 #define VERSION "$VERSION"
3038 # Some tools Automake needs.
3040 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3043 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3046 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3049 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3052 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3055 AMTAR=${AMTAR-"${am_missing_run}tar"}
3057 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3059 # Installed binaries are usually stripped using `strip' when the user
3060 # run `make install-strip'. However `strip' might not be the right
3061 # tool to use in cross-compilation environments, therefore Automake
3062 # will honor the `STRIP' environment variable to overrule this program.
3063 if test "$cross_compiling" != no; then
3064 if test -n "$ac_tool_prefix"; then
3065 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3066 set dummy ${ac_tool_prefix}strip; ac_word=$2
3067 echo "$as_me:$LINENO: checking for $ac_word" >&5
3068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3069 if test "${ac_cv_prog_STRIP+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3072 if test -n "$STRIP"; then
3073 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 STRIP=$ac_cv_prog_STRIP
3092 if test -n "$STRIP"; then
3093 echo "$as_me:$LINENO: result: $STRIP" >&5
3094 echo "${ECHO_T}$STRIP" >&6
3096 echo "$as_me:$LINENO: result: no" >&5
3097 echo "${ECHO_T}no" >&6
3101 if test -z "$ac_cv_prog_STRIP"; then
3103 # Extract the first word of "strip", so it can be a program name with args.
3104 set dummy strip; ac_word=$2
3105 echo "$as_me:$LINENO: checking for $ac_word" >&5
3106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3107 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3110 if test -n "$ac_ct_STRIP"; then
3111 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120 ac_cv_prog_ac_ct_STRIP="strip"
3121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3130 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3131 if test -n "$ac_ct_STRIP"; then
3132 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3133 echo "${ECHO_T}$ac_ct_STRIP" >&6
3135 echo "$as_me:$LINENO: result: no" >&5
3136 echo "${ECHO_T}no" >&6
3141 STRIP="$ac_cv_prog_STRIP"
3145 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3147 # We need awk for the "check" target. The system "awk" is bad on
3152 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3153 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3154 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3155 if test "${enable_maintainer_mode+set}" = set; then
3156 enableval="$enable_maintainer_mode"
3157 USE_MAINTAINER_MODE=$enableval
3159 USE_MAINTAINER_MODE=no
3161 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3162 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3165 if test $USE_MAINTAINER_MODE = yes; then
3166 MAINTAINER_MODE_TRUE=
3167 MAINTAINER_MODE_FALSE='#'
3169 MAINTAINER_MODE_TRUE='#'
3170 MAINTAINER_MODE_FALSE=
3173 MAINT=$MAINTAINER_MODE_TRUE
3179 test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc'
3180 test "$localstatedir" = '${prefix}/var' && localstatedir='/var/heimdal'
3182 # Make sure we can run config.sub.
3183 $ac_config_sub sun4 >/dev/null 2>&1 ||
3184 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3185 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3186 { (exit 1); exit 1; }; }
3188 echo "$as_me:$LINENO: checking build system type" >&5
3189 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3190 if test "${ac_cv_build+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 ac_cv_build_alias=$build_alias
3194 test -z "$ac_cv_build_alias" &&
3195 ac_cv_build_alias=`$ac_config_guess`
3196 test -z "$ac_cv_build_alias" &&
3197 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3198 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3199 { (exit 1); exit 1; }; }
3200 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3201 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3202 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3203 { (exit 1); exit 1; }; }
3206 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3207 echo "${ECHO_T}$ac_cv_build" >&6
3209 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3210 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3211 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3214 echo "$as_me:$LINENO: checking host system type" >&5
3215 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3216 if test "${ac_cv_host+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 ac_cv_host_alias=$host_alias
3220 test -z "$ac_cv_host_alias" &&
3221 ac_cv_host_alias=$ac_cv_build_alias
3222 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3223 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3224 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3225 { (exit 1); exit 1; }; }
3228 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3229 echo "${ECHO_T}$ac_cv_host" >&6
3231 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3232 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3233 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3236 CANONICAL_HOST=$host
3240 # Check whether --enable-largefile or --disable-largefile was given.
3241 if test "${enable_largefile+set}" = set; then
3242 enableval="$enable_largefile"
3245 if test "$enable_largefile" != no; then
3247 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3248 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3249 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
3252 ac_cv_sys_largefile_CC=no
3253 if test "$GCC" != yes; then
3256 # IRIX 6.2 and later do not support large files by default,
3257 # so use the C compiler's -n32 option if that helps.
3258 cat >conftest.$ac_ext <<_ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h. */
3264 #include <sys/types.h>
3265 /* Check that off_t can represent 2**63 - 1 correctly.
3266 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3267 since some C++ compilers masquerading as C compilers
3268 incorrectly reject 9223372036854775807. */
3269 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3270 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3271 && LARGE_OFF_T % 2147483647 == 1)
3281 rm -f conftest.$ac_objext
3282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3283 (eval $ac_compile) 2>conftest.er1
3285 grep -v '^ *+' conftest.er1 >conftest.err
3287 cat conftest.err >&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } &&
3290 { ac_try='test -z "$ac_c_werror_flag"
3291 || test ! -s conftest.err'
3292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }; } &&
3297 { ac_try='test -s conftest.$ac_objext'
3298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }; }; then
3305 echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3309 rm -f conftest.err conftest.$ac_objext
3311 rm -f conftest.$ac_objext
3312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3313 (eval $ac_compile) 2>conftest.er1
3315 grep -v '^ *+' conftest.er1 >conftest.err
3317 cat conftest.err >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); } &&
3320 { ac_try='test -z "$ac_c_werror_flag"
3321 || test ! -s conftest.err'
3322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); }; } &&
3327 { ac_try='test -s conftest.$ac_objext'
3328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }; }; then
3333 ac_cv_sys_largefile_CC=' -n32'; break
3335 echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3339 rm -f conftest.err conftest.$ac_objext
3343 rm -f conftest.$ac_ext
3346 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3347 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3348 if test "$ac_cv_sys_largefile_CC" != no; then
3349 CC=$CC$ac_cv_sys_largefile_CC
3352 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3353 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3354 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 ac_cv_sys_file_offset_bits=no
3359 cat >conftest.$ac_ext <<_ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h. */
3365 #include <sys/types.h>
3366 /* Check that off_t can represent 2**63 - 1 correctly.
3367 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3368 since some C++ compilers masquerading as C compilers
3369 incorrectly reject 9223372036854775807. */
3370 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3371 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3372 && LARGE_OFF_T % 2147483647 == 1)
3382 rm -f conftest.$ac_objext
3383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3384 (eval $ac_compile) 2>conftest.er1
3386 grep -v '^ *+' conftest.er1 >conftest.err
3388 cat conftest.err >&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } &&
3391 { ac_try='test -z "$ac_c_werror_flag"
3392 || test ! -s conftest.err'
3393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; } &&
3398 { ac_try='test -s conftest.$ac_objext'
3399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); }; }; then
3406 echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3411 cat >conftest.$ac_ext <<_ACEOF
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h. */
3417 #define _FILE_OFFSET_BITS 64
3418 #include <sys/types.h>
3419 /* Check that off_t can represent 2**63 - 1 correctly.
3420 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3421 since some C++ compilers masquerading as C compilers
3422 incorrectly reject 9223372036854775807. */
3423 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3424 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3425 && LARGE_OFF_T % 2147483647 == 1)
3435 rm -f conftest.$ac_objext
3436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3437 (eval $ac_compile) 2>conftest.er1
3439 grep -v '^ *+' conftest.er1 >conftest.err
3441 cat conftest.err >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); } &&
3444 { ac_try='test -z "$ac_c_werror_flag"
3445 || test ! -s conftest.err'
3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; } &&
3451 { ac_try='test -s conftest.$ac_objext'
3452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; }; then
3457 ac_cv_sys_file_offset_bits=64; break
3459 echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3467 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3468 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3469 if test "$ac_cv_sys_file_offset_bits" != no; then
3471 cat >>confdefs.h <<_ACEOF
3472 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3477 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3478 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3479 if test "${ac_cv_sys_large_files+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3483 ac_cv_sys_large_files=no
3484 cat >conftest.$ac_ext <<_ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h. */
3490 #include <sys/types.h>
3491 /* Check that off_t can represent 2**63 - 1 correctly.
3492 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3493 since some C++ compilers masquerading as C compilers
3494 incorrectly reject 9223372036854775807. */
3495 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3496 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3497 && LARGE_OFF_T % 2147483647 == 1)
3507 rm -f conftest.$ac_objext
3508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3509 (eval $ac_compile) 2>conftest.er1
3511 grep -v '^ *+' conftest.er1 >conftest.err
3513 cat conftest.err >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } &&
3516 { ac_try='test -z "$ac_c_werror_flag"
3517 || test ! -s conftest.err'
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; } &&
3523 { ac_try='test -s conftest.$ac_objext'
3524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; }; then
3531 echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3536 cat >conftest.$ac_ext <<_ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h. */
3542 #define _LARGE_FILES 1
3543 #include <sys/types.h>
3544 /* Check that off_t can represent 2**63 - 1 correctly.
3545 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3546 since some C++ compilers masquerading as C compilers
3547 incorrectly reject 9223372036854775807. */
3548 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3549 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3550 && LARGE_OFF_T % 2147483647 == 1)
3560 rm -f conftest.$ac_objext
3561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3562 (eval $ac_compile) 2>conftest.er1
3564 grep -v '^ *+' conftest.er1 >conftest.err
3566 cat conftest.err >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } &&
3569 { ac_try='test -z "$ac_c_werror_flag"
3570 || test ! -s conftest.err'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; } &&
3576 { ac_try='test -s conftest.$ac_objext'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; }; then
3582 ac_cv_sys_large_files=1; break
3584 echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3592 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3593 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3594 if test "$ac_cv_sys_large_files" != no; then
3596 cat >>confdefs.h <<_ACEOF
3597 #define _LARGE_FILES $ac_cv_sys_large_files
3604 if test "$enable_largefile" != no -a "$ac_cv_sys_large_files" != no; then
3605 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files"
3609 cat >>confdefs.h <<\_ACEOF
3610 #define _GNU_SOURCE 1
3617 for ac_prog in 'bison -y' byacc
3619 # Extract the first word of "$ac_prog", so it can be a program name with args.
3620 set dummy $ac_prog; ac_word=$2
3621 echo "$as_me:$LINENO: checking for $ac_word" >&5
3622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3623 if test "${ac_cv_prog_YACC+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 if test -n "$YACC"; then
3627 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 test -z "$as_dir" && as_dir=.
3634 for ac_exec_ext in '' $ac_executable_extensions; do
3635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3636 ac_cv_prog_YACC="$ac_prog"
3637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3645 YACC=$ac_cv_prog_YACC
3646 if test -n "$YACC"; then
3647 echo "$as_me:$LINENO: result: $YACC" >&5
3648 echo "${ECHO_T}$YACC" >&6
3650 echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6
3654 test -n "$YACC" && break
3656 test -n "$YACC" || YACC="yacc"
3658 for ac_prog in flex lex
3660 # Extract the first word of "$ac_prog", so it can be a program name with args.
3661 set dummy $ac_prog; ac_word=$2
3662 echo "$as_me:$LINENO: checking for $ac_word" >&5
3663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3664 if test "${ac_cv_prog_LEX+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 if test -n "$LEX"; then
3668 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 test -z "$as_dir" && as_dir=.
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677 ac_cv_prog_LEX="$ac_prog"
3678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3687 if test -n "$LEX"; then
3688 echo "$as_me:$LINENO: result: $LEX" >&5
3689 echo "${ECHO_T}$LEX" >&6
3691 echo "$as_me:$LINENO: result: no" >&5
3692 echo "${ECHO_T}no" >&6
3695 test -n "$LEX" && break
3697 test -n "$LEX" || LEX=":"
3699 if test -z "$LEXLIB"
3701 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3702 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3703 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3706 ac_check_lib_save_LIBS=$LIBS
3708 cat >conftest.$ac_ext <<_ACEOF
3711 cat confdefs.h >>conftest.$ac_ext
3712 cat >>conftest.$ac_ext <<_ACEOF
3713 /* end confdefs.h. */
3715 /* Override any gcc2 internal prototype to avoid an error. */
3719 /* We use char because int might match the return type of a gcc2
3720 builtin and then its argument prototype would still apply. */
3730 rm -f conftest.$ac_objext conftest$ac_exeext
3731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3732 (eval $ac_link) 2>conftest.er1
3734 grep -v '^ *+' conftest.er1 >conftest.err
3736 cat conftest.err >&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); } &&
3739 { ac_try='test -z "$ac_c_werror_flag"
3740 || test ! -s conftest.err'
3741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); }; } &&
3746 { ac_try='test -s conftest$ac_exeext'
3747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); }; }; then
3752 ac_cv_lib_fl_yywrap=yes
3754 echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3757 ac_cv_lib_fl_yywrap=no
3759 rm -f conftest.err conftest.$ac_objext \
3760 conftest$ac_exeext conftest.$ac_ext
3761 LIBS=$ac_check_lib_save_LIBS
3763 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3764 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3765 if test $ac_cv_lib_fl_yywrap = yes; then
3768 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3769 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3770 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 ac_check_lib_save_LIBS=$LIBS
3775 cat >conftest.$ac_ext <<_ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3782 /* Override any gcc2 internal prototype to avoid an error. */
3786 /* We use char because int might match the return type of a gcc2
3787 builtin and then its argument prototype would still apply. */
3797 rm -f conftest.$ac_objext conftest$ac_exeext
3798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3799 (eval $ac_link) 2>conftest.er1
3801 grep -v '^ *+' conftest.er1 >conftest.err
3803 cat conftest.err >&5
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); } &&
3806 { ac_try='test -z "$ac_c_werror_flag"
3807 || test ! -s conftest.err'
3808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }; } &&
3813 { ac_try='test -s conftest$ac_exeext'
3814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); }; }; then
3819 ac_cv_lib_l_yywrap=yes
3821 echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3824 ac_cv_lib_l_yywrap=no
3826 rm -f conftest.err conftest.$ac_objext \
3827 conftest$ac_exeext conftest.$ac_ext
3828 LIBS=$ac_check_lib_save_LIBS
3830 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3831 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3832 if test $ac_cv_lib_l_yywrap = yes; then
3840 if test "x$LEX" != "x:"; then
3841 echo "$as_me:$LINENO: checking lex output file root" >&5
3842 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3843 if test "${ac_cv_prog_lex_root+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3846 # The minimal lex program is just a single line: %%. But some broken lexes
3847 # (Solaris, I think it was) want two %% lines, so accommodate them.
3848 cat >conftest.l <<_ACEOF
3852 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3853 (eval $LEX conftest.l) 2>&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }
3857 if test -f lex.yy.c; then
3858 ac_cv_prog_lex_root=lex.yy
3859 elif test -f lexyy.c; then
3860 ac_cv_prog_lex_root=lexyy
3862 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3863 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3864 { (exit 1); exit 1; }; }
3867 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3868 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3870 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3872 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3873 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3874 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3877 # POSIX says lex can declare yytext either as a pointer or an array; the
3878 # default is implementation-dependent. Figure out which it is, since
3879 # not all implementations provide the %pointer and %array declarations.
3880 ac_cv_prog_lex_yytext_pointer=no
3881 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3883 LIBS="$LIBS $LEXLIB"
3884 cat >conftest.$ac_ext <<_ACEOF
3885 `cat $LEX_OUTPUT_ROOT.c`
3887 rm -f conftest.$ac_objext conftest$ac_exeext
3888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3889 (eval $ac_link) 2>conftest.er1
3891 grep -v '^ *+' conftest.er1 >conftest.err
3893 cat conftest.err >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } &&
3896 { ac_try='test -z "$ac_c_werror_flag"
3897 || test ! -s conftest.err'
3898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }; } &&
3903 { ac_try='test -s conftest$ac_exeext'
3904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; }; then
3909 ac_cv_prog_lex_yytext_pointer=yes
3911 echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.$ac_ext >&5
3915 rm -f conftest.err conftest.$ac_objext \
3916 conftest$ac_exeext conftest.$ac_ext
3918 rm -f "${LEX_OUTPUT_ROOT}.c"
3921 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3922 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3923 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3925 cat >>confdefs.h <<\_ACEOF
3926 #define YYTEXT_POINTER 1
3932 if test "$LEX" = :; then
3933 LEX=${am_missing_run}flex
3935 for ac_prog in gawk mawk nawk awk
3937 # Extract the first word of "$ac_prog", so it can be a program name with args.
3938 set dummy $ac_prog; ac_word=$2
3939 echo "$as_me:$LINENO: checking for $ac_word" >&5
3940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3941 if test "${ac_cv_prog_AWK+set}" = set; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 if test -n "$AWK"; then
3945 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 test -z "$as_dir" && as_dir=.
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3954 ac_cv_prog_AWK="$ac_prog"
3955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3964 if test -n "$AWK"; then
3965 echo "$as_me:$LINENO: result: $AWK" >&5
3966 echo "${ECHO_T}$AWK" >&6
3968 echo "$as_me:$LINENO: result: no" >&5
3969 echo "${ECHO_T}no" >&6
3972 test -n "$AWK" && break
3975 echo "$as_me:$LINENO: checking for ln -s or something else" >&5
3976 echo $ECHO_N "checking for ln -s or something else... $ECHO_C" >&6
3977 if test "${ac_cv_prog_LN_S+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3981 if ln -s X conftestdata 2>/dev/null
3984 ac_cv_prog_LN_S="ln -s"
3987 if ln conftestdata1 conftestdata2; then
3995 LN_S="$ac_cv_prog_LN_S"
3996 echo "$as_me:$LINENO: result: $ac_cv_prog_LN_S" >&5
3997 echo "${ECHO_T}$ac_cv_prog_LN_S" >&6
4002 # Check whether --with-mips_abi or --without-mips_abi was given.
4003 if test "${with_mips_abi+set}" = set; then
4004 withval="$with_mips_abi"
4010 with_mips_abi="${with_mips_abi:-yes}"
4011 if test -n "$GCC"; then
4013 # GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select
4014 # which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs.
4016 # Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old
4017 # GCC and revert back to O32. The same goes if O32 is asked for - old
4018 # GCCs doesn't like the -mabi option, and new GCCs can't output O32.
4020 # Don't you just love *all* the different SGI ABIs?
4022 case "${with_mips_abi}" in
4023 32|o32) abi='-mabi=32'; abilibdirext='' ;;
4024 n32|yes) abi='-mabi=n32'; abilibdirext='32' ;;
4025 64) abi='-mabi=64'; abilibdirext='64' ;;
4026 no) abi=''; abilibdirext='';;
4027 *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5
4028 echo "$as_me: error: \"Invalid ABI specified\"" >&2;}
4029 { (exit 1); exit 1; }; } ;;
4031 if test -n "$abi" ; then
4032 ac_foo=krb_cv_gcc_`echo $abi | tr =- __`
4033 echo "$as_me:$LINENO: checking if $CC supports the $abi option" >&5
4034 echo $ECHO_N "checking if $CC supports the $abi option... $ECHO_C" >&6
4035 if eval "test \"\${$ac_foo+set}\" = set"; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4039 save_CFLAGS="$CFLAGS"
4040 CFLAGS="$CFLAGS $abi"
4041 cat >conftest.$ac_ext <<_ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h. */
4056 rm -f conftest.$ac_objext
4057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4058 (eval $ac_compile) 2>conftest.er1
4060 grep -v '^ *+' conftest.er1 >conftest.err
4062 cat conftest.err >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } &&
4065 { ac_try='test -z "$ac_c_werror_flag"
4066 || test ! -s conftest.err'
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; } &&
4072 { ac_try='test -s conftest.$ac_objext'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4080 echo "$as_me: failed program was:" >&5
4081 sed 's/^/| /' conftest.$ac_ext >&5
4085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4086 CFLAGS="$save_CFLAGS"
4090 ac_res=`eval echo \\\$$ac_foo`
4091 echo "$as_me:$LINENO: result: $ac_res" >&5
4092 echo "${ECHO_T}$ac_res" >&6
4093 if test $ac_res = no; then
4094 # Try to figure out why that failed...
4097 save_CFLAGS="$CFLAGS"
4098 CFLAGS="$CFLAGS -mabi=n32"
4099 cat >conftest.$ac_ext <<_ACEOF
4102 cat confdefs.h >>conftest.$ac_ext
4103 cat >>conftest.$ac_ext <<_ACEOF
4104 /* end confdefs.h. */
4114 rm -f conftest.$ac_objext
4115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4116 (eval $ac_compile) 2>conftest.er1
4118 grep -v '^ *+' conftest.er1 >conftest.err
4120 cat conftest.err >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } &&
4123 { ac_try='test -z "$ac_c_werror_flag"
4124 || test ! -s conftest.err'
4125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; } &&
4130 { ac_try='test -s conftest.$ac_objext'
4131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; }; then
4138 echo "$as_me: failed program was:" >&5
4139 sed 's/^/| /' conftest.$ac_ext >&5
4143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4144 CLAGS="$save_CFLAGS"
4145 if test $ac_res = yes; then
4147 { { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5
4148 echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;}
4149 { (exit 1); exit 1; }; }
4156 if test $with_mips_abi = yes; then
4157 # Old GCC, default to O32
4162 { { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5
4163 echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;}
4164 { (exit 1); exit 1; }; }
4168 fi #if test $ac_res = no; then
4169 fi #if test -n "$abi" ; then
4171 case "${with_mips_abi}" in
4172 32|o32) abi='-32'; abilibdirext='' ;;
4173 n32|yes) abi='-n32'; abilibdirext='32' ;;
4174 64) abi='-64'; abilibdirext='64' ;;
4175 no) abi=''; abilibdirext='';;
4176 *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5
4177 echo "$as_me: error: \"Invalid ABI specified\"" >&2;}
4178 { (exit 1); exit 1; }; } ;;
4180 fi #if test -n "$GCC"; then
4185 libdir="$libdir$abilibdirext"
4188 echo "$as_me:$LINENO: checking for __attribute__" >&5
4189 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
4190 if test "${ac_cv___attribute__+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 cat >conftest.$ac_ext <<_ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4207 static void foo(void) __attribute__ ((noreturn));
4219 rm -f conftest.$ac_objext
4220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4221 (eval $ac_compile) 2>conftest.er1
4223 grep -v '^ *+' conftest.er1 >conftest.err
4225 cat conftest.err >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } &&
4228 { ac_try='test -z "$ac_c_werror_flag"
4229 || test ! -s conftest.err'
4230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; } &&
4235 { ac_try='test -s conftest.$ac_objext'
4236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; }; then
4241 ac_cv___attribute__=yes
4243 echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4246 ac_cv___attribute__=no
4248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4251 if test "$ac_cv___attribute__" = "yes"; then
4253 cat >>confdefs.h <<\_ACEOF
4254 #define HAVE___ATTRIBUTE__ 1
4258 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
4259 echo "${ECHO_T}$ac_cv___attribute__" >&6
4262 # Check whether --enable-shared or --disable-shared was given.
4263 if test "${enable_shared+set}" = set; then
4264 enableval="$enable_shared"
4265 p=${PACKAGE-default}
4267 yes) enable_shared=yes ;;
4268 no) enable_shared=no ;;
4271 # Look at the argument we got. We use all the common list separators.
4272 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4273 for pkg in $enableval; do
4275 if test "X$pkg" = "X$p"; then
4286 # Check whether --enable-static or --disable-static was given.
4287 if test "${enable_static+set}" = set; then
4288 enableval="$enable_static"
4289 p=${PACKAGE-default}
4291 yes) enable_static=yes ;;
4292 no) enable_static=no ;;
4295 # Look at the argument we got. We use all the common list separators.
4296 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4297 for pkg in $enableval; do
4299 if test "X$pkg" = "X$p"; then
4310 # Check whether --enable-fast-install or --disable-fast-install was given.
4311 if test "${enable_fast_install+set}" = set; then
4312 enableval="$enable_fast_install"
4313 p=${PACKAGE-default}
4315 yes) enable_fast_install=yes ;;
4316 no) enable_fast_install=no ;;
4318 enable_fast_install=no
4319 # Look at the argument we got. We use all the common list separators.
4320 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4321 for pkg in $enableval; do
4323 if test "X$pkg" = "X$p"; then
4324 enable_fast_install=yes
4331 enable_fast_install=yes
4334 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4335 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4336 if test "${lt_cv_path_SED+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4339 # Loop through the user's path and test for sed and gsed.
4340 # Then use that list of sed's as ones to test for truncation.
4341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345 test -z "$as_dir" && as_dir=.
4346 for lt_ac_prog in sed gsed; do
4347 for ac_exec_ext in '' $ac_executable_extensions; do
4348 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4349 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4356 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4357 # along with /bin/sed that truncates output.
4358 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4359 test ! -f $lt_ac_sed && break
4360 cat /dev/null > conftest.in
4362 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4363 # Check for GNU sed and select it if it is found.
4364 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4365 lt_cv_path_SED=$lt_ac_sed
4369 cat conftest.in conftest.in >conftest.tmp
4370 mv conftest.tmp conftest.in
4371 cp conftest.in conftest.nl
4373 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4374 cmp -s conftest.out conftest.nl || break
4375 # 10000 chars as input seems more than enough
4376 test $lt_ac_count -gt 10 && break
4377 lt_ac_count=`expr $lt_ac_count + 1`
4378 if test $lt_ac_count -gt $lt_ac_max; then
4379 lt_ac_max=$lt_ac_count
4380 lt_cv_path_SED=$lt_ac_sed
4388 echo "$as_me:$LINENO: result: $SED" >&5
4389 echo "${ECHO_T}$SED" >&6
4391 echo "$as_me:$LINENO: checking for egrep" >&5
4392 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4393 if test "${ac_cv_prog_egrep+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4397 then ac_cv_prog_egrep='grep -E'
4398 else ac_cv_prog_egrep='egrep'
4401 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4402 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4403 EGREP=$ac_cv_prog_egrep
4407 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4408 if test "${with_gnu_ld+set}" = set; then
4409 withval="$with_gnu_ld"
4410 test "$withval" = no || with_gnu_ld=yes
4415 if test "$GCC" = yes; then
4416 # Check if gcc -print-prog-name=ld gives a path.
4417 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4418 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4421 # gcc leaves a trailing carriage return which upsets mingw
4422 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4424 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4427 # Accept absolute paths.
4429 re_direlt='/[^/][^/]*/\.\./'
4430 # Canonicalize the pathname of ld
4431 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4432 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4433 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4435 test -z "$LD" && LD="$ac_prog"
4438 # If it fails, then pretend we aren't using GCC.
4442 # If it is relative, then search for the first ld in PATH.
4446 elif test "$with_gnu_ld" = yes; then
4447 echo "$as_me:$LINENO: checking for GNU ld" >&5
4448 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4450 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4451 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4453 if test "${lt_cv_path_LD+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 if test -z "$LD"; then
4457 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4458 for ac_dir in $PATH; do
4460 test -z "$ac_dir" && ac_dir=.
4461 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4462 lt_cv_path_LD="$ac_dir/$ac_prog"
4463 # Check to see if the program is GNU ld. I'd rather use --version,
4464 # but apparently some GNU ld's only accept -v.
4465 # Break only if it was the GNU/non-GNU ld that we prefer.
4466 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4467 *GNU* | *'with BFD'*)
4468 test "$with_gnu_ld" != no && break
4471 test "$with_gnu_ld" != yes && break
4478 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4483 if test -n "$LD"; then
4484 echo "$as_me:$LINENO: result: $LD" >&5
4485 echo "${ECHO_T}$LD" >&6
4487 echo "$as_me:$LINENO: result: no" >&5
4488 echo "${ECHO_T}no" >&6
4490 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4491 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4492 { (exit 1); exit 1; }; }
4493 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4494 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4495 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4499 case `$LD -v 2>&1 </dev/null` in
4500 *GNU* | *'with BFD'*)
4501 lt_cv_prog_gnu_ld=yes
4504 lt_cv_prog_gnu_ld=no
4508 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4509 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4510 with_gnu_ld=$lt_cv_prog_gnu_ld
4513 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4514 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4515 if test "${lt_cv_ld_reload_flag+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4518 lt_cv_ld_reload_flag='-r'
4520 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4521 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4522 reload_flag=$lt_cv_ld_reload_flag
4523 case $reload_flag in
4525 *) reload_flag=" $reload_flag" ;;
4527 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4529 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4530 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4531 if test "${lt_cv_path_NM+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4534 if test -n "$NM"; then
4535 # Let the user override the test.
4538 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4539 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4541 test -z "$ac_dir" && ac_dir=.
4542 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4543 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4544 # Check to see if the nm accepts a BSD-compat flag.
4545 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4546 # nm: unknown option "B" ignored
4547 # Tru64's nm complains that /dev/null is an invalid object file
4548 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4549 */dev/null* | *'Invalid file or object type'*)
4550 lt_cv_path_NM="$tmp_nm -B"
4554 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4556 lt_cv_path_NM="$tmp_nm -p"
4560 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4561 continue # so that we can try to find one that supports BSD flags
4568 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4571 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4572 echo "${ECHO_T}$lt_cv_path_NM" >&6
4575 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4576 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4578 if test "$LN_S" = "ln -s"; then
4579 echo "$as_me:$LINENO: result: yes" >&5
4580 echo "${ECHO_T}yes" >&6
4582 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4583 echo "${ECHO_T}no, using $LN_S" >&6
4586 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4587 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4588 if test "${lt_cv_deplibs_check_method+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4591 lt_cv_file_magic_cmd='$MAGIC_CMD'
4592 lt_cv_file_magic_test_file=
4593 lt_cv_deplibs_check_method='unknown'
4594 # Need to set the preceding variable on all platforms that support
4595 # interlibrary dependencies.
4596 # 'none' -- dependencies not supported.
4597 # `unknown' -- same as none, but documents that we really don't know.
4598 # 'pass_all' -- all dependencies passed with no checks.
4599 # 'test_compile' -- check by making test program.
4600 # 'file_magic [[regex]]' -- check by looking for files in library path
4601 # which responds to the $file_magic_cmd with a given extended regex.
4602 # If you have `file' or equivalent on your system and you're not sure
4603 # whether `pass_all' will *always* work, you probably want this one.
4607 lt_cv_deplibs_check_method=pass_all
4611 lt_cv_deplibs_check_method=pass_all
4615 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4616 lt_cv_file_magic_cmd='/usr/bin/file -L'
4617 lt_cv_file_magic_test_file=/shlib/libc.so
4621 # win32_libid is a shell function defined in ltmain.sh
4622 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4623 lt_cv_file_magic_cmd='win32_libid'
4627 # Base MSYS/MinGW do not provide the 'file' command needed by
4628 # win32_libid shell function, so use a weaker test based on 'objdump'.
4629 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4630 lt_cv_file_magic_cmd='$OBJDUMP -f'
4633 darwin* | rhapsody*)
4634 lt_cv_deplibs_check_method=pass_all
4637 freebsd* | kfreebsd*-gnu)
4638 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4641 # Not sure whether the presence of OpenBSD here was a mistake.
4642 # Let's accept both of them until this is cleared up.
4643 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4644 lt_cv_file_magic_cmd=/usr/bin/file
4645 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4649 lt_cv_deplibs_check_method=pass_all
4654 lt_cv_deplibs_check_method=pass_all
4657 hpux10.20* | hpux11*)
4658 lt_cv_file_magic_cmd=/usr/bin/file
4661 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4662 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4665 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]'
4666 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4669 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4670 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4675 irix5* | irix6* | nonstopux*)
4677 *-32|*"-32 ") libmagic=32-bit;;
4678 *-n32|*"-n32 ") libmagic=N32;;
4679 *-64|*"-64 ") libmagic=64-bit;;
4680 *) libmagic=never-match;;
4682 lt_cv_deplibs_check_method=pass_all
4685 # This must be Linux ELF.
4688 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
4689 lt_cv_deplibs_check_method=pass_all ;;
4691 # glibc up to 2.1.1 does not perform some relocations on ARM
4692 # this will be overridden with pass_all, but let us keep it just in case
4693 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4695 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4696 lt_cv_deplibs_check_method=pass_all
4700 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4701 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4703 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4708 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4709 lt_cv_file_magic_cmd=/usr/bin/file
4710 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4714 lt_cv_deplibs_check_method=unknown
4718 lt_cv_file_magic_cmd=/usr/bin/file
4719 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4720 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4721 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4723 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4727 osf3* | osf4* | osf5*)
4728 lt_cv_deplibs_check_method=pass_all
4732 lt_cv_deplibs_check_method=pass_all
4736 lt_cv_deplibs_check_method=pass_all
4739 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4740 case $host_vendor in
4742 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]'
4743 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4746 lt_cv_deplibs_check_method=pass_all
4749 lt_cv_file_magic_cmd='/bin/file'
4750 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4753 lt_cv_file_magic_cmd='/bin/file'
4754 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4755 lt_cv_file_magic_test_file=/lib/libc.so
4758 lt_cv_deplibs_check_method=pass_all
4763 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4764 lt_cv_deplibs_check_method=pass_all
4769 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4770 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4771 file_magic_cmd=$lt_cv_file_magic_cmd
4772 deplibs_check_method=$lt_cv_deplibs_check_method
4773 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4776 # If no C compiler was specified, use CC.
4779 # Allow CC to be a program name with arguments.
4782 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4783 if test "${enable_libtool_lock+set}" = set; then
4784 enableval="$enable_libtool_lock"
4787 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4789 # Some flags need to be propagated to the compiler or linker for good
4793 # Find out which ABI we are using.
4794 echo 'int i;' > conftest.$ac_ext
4795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4796 (eval $ac_compile) 2>&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; then
4800 case `/usr/bin/file conftest.$ac_objext` in
4812 # Find out which ABI we are using.
4813 echo '#line 4813 "configure"' > conftest.$ac_ext
4814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4815 (eval $ac_compile) 2>&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); }; then
4819 if test "$lt_cv_prog_gnu_ld" = yes; then
4820 case `/usr/bin/file conftest.$ac_objext` in
4822 LD="${LD-ld} -melf32bsmip"
4825 LD="${LD-ld} -melf32bmipn32"
4828 LD="${LD-ld} -melf64bmip"
4832 case `/usr/bin/file conftest.$ac_objext` in
4848 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4849 # Find out which ABI we are using.
4850 echo 'int i;' > conftest.$ac_ext
4851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4852 (eval $ac_compile) 2>&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); }; then
4856 case "`/usr/bin/file conftest.o`" in
4860 LD="${LD-ld} -m elf_i386"
4862 ppc64-*linux*|powerpc64-*linux*)
4863 LD="${LD-ld} -m elf32ppclinux"
4866 LD="${LD-ld} -m elf_s390"
4869 LD="${LD-ld} -m elf32_sparc"
4876 LD="${LD-ld} -m elf_x86_64"
4878 ppc*-*linux*|powerpc*-*linux*)
4879 LD="${LD-ld} -m elf64ppc"
4882 LD="${LD-ld} -m elf64_s390"
4885 LD="${LD-ld} -m elf64_sparc"
4895 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4896 SAVE_CFLAGS="$CFLAGS"
4897 CFLAGS="$CFLAGS -belf"
4898 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4899 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4900 if test "${lt_cv_cc_needs_belf+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4904 ac_cpp='$CPP $CPPFLAGS'
4905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4909 cat >conftest.$ac_ext <<_ACEOF
4912 cat confdefs.h >>conftest.$ac_ext
4913 cat >>conftest.$ac_ext <<_ACEOF
4914 /* end confdefs.h. */
4924 rm -f conftest.$ac_objext conftest$ac_exeext
4925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4926 (eval $ac_link) 2>conftest.er1
4928 grep -v '^ *+' conftest.er1 >conftest.err
4930 cat conftest.err >&5
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); } &&
4933 { ac_try='test -z "$ac_c_werror_flag"
4934 || test ! -s conftest.err'
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; } &&
4940 { ac_try='test -s conftest$ac_exeext'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; }; then
4946 lt_cv_cc_needs_belf=yes
4948 echo "$as_me: failed program was:" >&5
4949 sed 's/^/| /' conftest.$ac_ext >&5
4951 lt_cv_cc_needs_belf=no
4953 rm -f conftest.err conftest.$ac_objext \
4954 conftest$ac_exeext conftest.$ac_ext
4956 ac_cpp='$CPP $CPPFLAGS'
4957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4962 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4963 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4964 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4965 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4966 CFLAGS="$SAVE_CFLAGS"
4972 need_locks="$enable_libtool_lock"
4976 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4977 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4978 if test "${ac_cv_header_stdc+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4981 cat >conftest.$ac_ext <<_ACEOF
4984 cat confdefs.h >>conftest.$ac_ext
4985 cat >>conftest.$ac_ext <<_ACEOF
4986 /* end confdefs.h. */
5000 rm -f conftest.$ac_objext
5001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5002 (eval $ac_compile) 2>conftest.er1
5004 grep -v '^ *+' conftest.er1 >conftest.err
5006 cat conftest.err >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } &&
5009 { ac_try='test -z "$ac_c_werror_flag"
5010 || test ! -s conftest.err'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; } &&
5016 { ac_try='test -s conftest.$ac_objext'
5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; }; then
5022 ac_cv_header_stdc=yes
5024 echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.$ac_ext >&5
5027 ac_cv_header_stdc=no
5029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5031 if test $ac_cv_header_stdc = yes; then
5032 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5033 cat >conftest.$ac_ext <<_ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h. */
5042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5043 $EGREP "memchr" >/dev/null 2>&1; then
5046 ac_cv_header_stdc=no
5052 if test $ac_cv_header_stdc = yes; then
5053 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5054 cat >conftest.$ac_ext <<_ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5064 $EGREP "free" >/dev/null 2>&1; then
5067 ac_cv_header_stdc=no
5073 if test $ac_cv_header_stdc = yes; then
5074 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5075 if test "$cross_compiling" = yes; then
5078 cat >conftest.$ac_ext <<_ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h. */
5085 #if ((' ' & 0x0FF) == 0x020)
5086 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5087 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5089 # define ISLOWER(c) \
5090 (('a' <= (c) && (c) <= 'i') \
5091 || ('j' <= (c) && (c) <= 'r') \
5092 || ('s' <= (c) && (c) <= 'z'))
5093 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5096 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5101 for (i = 0; i < 256; i++)
5102 if (XOR (islower (i), ISLOWER (i))
5103 || toupper (i) != TOUPPER (i))
5108 rm -f conftest$ac_exeext
5109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5110 (eval $ac_link) 2>&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }; }; then
5121 echo "$as_me: program exited with status $ac_status" >&5
5122 echo "$as_me: failed program was:" >&5
5123 sed 's/^/| /' conftest.$ac_ext >&5
5126 ac_cv_header_stdc=no
5128 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5132 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5133 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5134 if test $ac_cv_header_stdc = yes; then
5136 cat >>confdefs.h <<\_ACEOF
5137 #define STDC_HEADERS 1
5142 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5152 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5153 inttypes.h stdint.h unistd.h
5155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5156 echo "$as_me:$LINENO: checking for $ac_header" >&5
5157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
5161 cat >conftest.$ac_ext <<_ACEOF
5164 cat confdefs.h >>conftest.$ac_ext
5165 cat >>conftest.$ac_ext <<_ACEOF
5166 /* end confdefs.h. */
5167 $ac_includes_default
5169 #include <$ac_header>
5171 rm -f conftest.$ac_objext
5172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5173 (eval $ac_compile) 2>conftest.er1
5175 grep -v '^ *+' conftest.er1 >conftest.err
5177 cat conftest.err >&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); } &&
5180 { ac_try='test -z "$ac_c_werror_flag"
5181 || test ! -s conftest.err'
5182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); }; } &&
5187 { ac_try='test -s conftest.$ac_objext'
5188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); }; }; then
5193 eval "$as_ac_Header=yes"
5195 echo "$as_me: failed program was:" >&5
5196 sed 's/^/| /' conftest.$ac_ext >&5
5198 eval "$as_ac_Header=no"
5200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5205 cat >>confdefs.h <<_ACEOF
5206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5215 for ac_header in dlfcn.h
5217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5219 echo "$as_me:$LINENO: checking for $ac_header" >&5
5220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5227 # Is the header compilable?
5228 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5230 cat >conftest.$ac_ext <<_ACEOF
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h. */
5236 $ac_includes_default
5237 #include <$ac_header>
5239 rm -f conftest.$ac_objext
5240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5241 (eval $ac_compile) 2>conftest.er1
5243 grep -v '^ *+' conftest.er1 >conftest.err
5245 cat conftest.err >&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); } &&
5248 { ac_try='test -z "$ac_c_werror_flag"
5249 || test ! -s conftest.err'
5250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); }; } &&
5255 { ac_try='test -s conftest.$ac_objext'
5256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }; }; then
5261 ac_header_compiler=yes
5263 echo "$as_me: failed program was:" >&5
5264 sed 's/^/| /' conftest.$ac_ext >&5
5266 ac_header_compiler=no
5268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5269 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5270 echo "${ECHO_T}$ac_header_compiler" >&6
5272 # Is the header present?
5273 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5275 cat >conftest.$ac_ext <<_ACEOF
5278 cat confdefs.h >>conftest.$ac_ext
5279 cat >>conftest.$ac_ext <<_ACEOF
5280 /* end confdefs.h. */
5281 #include <$ac_header>
5283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5286 grep -v '^ *+' conftest.er1 >conftest.err
5288 cat conftest.err >&5
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); } >/dev/null; then
5291 if test -s conftest.err; then
5292 ac_cpp_err=$ac_c_preproc_warn_flag
5293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5300 if test -z "$ac_cpp_err"; then
5301 ac_header_preproc=yes
5303 echo "$as_me: failed program was:" >&5
5304 sed 's/^/| /' conftest.$ac_ext >&5
5306 ac_header_preproc=no
5308 rm -f conftest.err conftest.$ac_ext
5309 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5310 echo "${ECHO_T}$ac_header_preproc" >&6
5312 # So? What about this header?
5313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5318 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5319 ac_header_preproc=yes
5322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5325 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5326 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5327 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5328 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5329 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5332 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5333 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5336 ## -------------------------------------- ##
5337 ## Report this to heimdal-bugs@pdc.kth.se ##
5338 ## -------------------------------------- ##
5341 sed "s/^/$as_me: WARNING: /" >&2
5344 echo "$as_me:$LINENO: checking for $ac_header" >&5
5345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5349 eval "$as_ac_Header=\$ac_header_preproc"
5351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5356 cat >>confdefs.h <<_ACEOF
5357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5365 ac_cpp='$CXXCPP $CPPFLAGS'
5366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5369 if test -n "$ac_tool_prefix"; then
5370 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5372 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5373 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5374 echo "$as_me:$LINENO: checking for $ac_word" >&5
5375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5376 if test "${ac_cv_prog_CXX+set}" = set; then
5377 echo $ECHO_N "(cached) $ECHO_C" >&6
5379 if test -n "$CXX"; then
5380 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 test -z "$as_dir" && as_dir=.
5387 for ac_exec_ext in '' $ac_executable_extensions; do
5388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5389 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5399 if test -n "$CXX"; then
5400 echo "$as_me:$LINENO: result: $CXX" >&5
5401 echo "${ECHO_T}$CXX" >&6
5403 echo "$as_me:$LINENO: result: no" >&5
5404 echo "${ECHO_T}no" >&6
5407 test -n "$CXX" && break
5410 if test -z "$CXX"; then
5412 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5414 # Extract the first word of "$ac_prog", so it can be a program name with args.
5415 set dummy $ac_prog; ac_word=$2
5416 echo "$as_me:$LINENO: checking for $ac_word" >&5
5417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5418 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5419 echo $ECHO_N "(cached) $ECHO_C" >&6
5421 if test -n "$ac_ct_CXX"; then
5422 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428 test -z "$as_dir" && as_dir=.
5429 for ac_exec_ext in '' $ac_executable_extensions; do
5430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5431 ac_cv_prog_ac_ct_CXX="$ac_prog"
5432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5440 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5441 if test -n "$ac_ct_CXX"; then
5442 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5443 echo "${ECHO_T}$ac_ct_CXX" >&6
5445 echo "$as_me:$LINENO: result: no" >&5
5446 echo "${ECHO_T}no" >&6
5449 test -n "$ac_ct_CXX" && break
5451 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5457 # Provide some information about the compiler.
5458 echo "$as_me:$LINENO:" \
5459 "checking for C++ compiler version" >&5
5460 ac_compiler=`set X $ac_compile; echo $2`
5461 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5462 (eval $ac_compiler --version </dev/null >&5) 2>&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); }
5466 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5467 (eval $ac_compiler -v </dev/null >&5) 2>&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }
5471 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5472 (eval $ac_compiler -V </dev/null >&5) 2>&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }
5477 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5478 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5479 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5480 echo $ECHO_N "(cached) $ECHO_C" >&6
5482 cat >conftest.$ac_ext <<_ACEOF
5485 cat confdefs.h >>conftest.$ac_ext
5486 cat >>conftest.$ac_ext <<_ACEOF
5487 /* end confdefs.h. */
5500 rm -f conftest.$ac_objext
5501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5502 (eval $ac_compile) 2>conftest.er1
5504 grep -v '^ *+' conftest.er1 >conftest.err
5506 cat conftest.err >&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); } &&
5509 { ac_try='test -z "$ac_cxx_werror_flag"
5510 || test ! -s conftest.err'
5511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); }; } &&
5516 { ac_try='test -s conftest.$ac_objext'
5517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); }; }; then
5524 echo "$as_me: failed program was:" >&5
5525 sed 's/^/| /' conftest.$ac_ext >&5
5529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5530 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5533 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5534 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5535 GXX=`test $ac_compiler_gnu = yes && echo yes`
5536 ac_test_CXXFLAGS=${CXXFLAGS+set}
5537 ac_save_CXXFLAGS=$CXXFLAGS
5539 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5540 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5541 if test "${ac_cv_prog_cxx_g+set}" = set; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5544 cat >conftest.$ac_ext <<_ACEOF
5547 cat confdefs.h >>conftest.$ac_ext
5548 cat >>conftest.$ac_ext <<_ACEOF
5549 /* end confdefs.h. */
5559 rm -f conftest.$ac_objext
5560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5561 (eval $ac_compile) 2>conftest.er1
5563 grep -v '^ *+' conftest.er1 >conftest.err
5565 cat conftest.err >&5
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); } &&
5568 { ac_try='test -z "$ac_cxx_werror_flag"
5569 || test ! -s conftest.err'
5570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; } &&
5575 { ac_try='test -s conftest.$ac_objext'
5576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; }; then
5581 ac_cv_prog_cxx_g=yes
5583 echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.$ac_ext >&5
5588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5590 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5591 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5592 if test "$ac_test_CXXFLAGS" = set; then
5593 CXXFLAGS=$ac_save_CXXFLAGS
5594 elif test $ac_cv_prog_cxx_g = yes; then
5595 if test "$GXX" = yes; then
5601 if test "$GXX" = yes; then
5607 for ac_declaration in \
5609 'extern "C" void std::exit (int) throw (); using std::exit;' \
5610 'extern "C" void std::exit (int); using std::exit;' \
5611 'extern "C" void exit (int) throw ();' \
5612 'extern "C" void exit (int);' \
5615 cat >conftest.$ac_ext <<_ACEOF
5618 cat confdefs.h >>conftest.$ac_ext
5619 cat >>conftest.$ac_ext <<_ACEOF
5620 /* end confdefs.h. */
5631 rm -f conftest.$ac_objext
5632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5633 (eval $ac_compile) 2>conftest.er1
5635 grep -v '^ *+' conftest.er1 >conftest.err
5637 cat conftest.err >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } &&
5640 { ac_try='test -z "$ac_cxx_werror_flag"
5641 || test ! -s conftest.err'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; } &&
5647 { ac_try='test -s conftest.$ac_objext'
5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; }; then
5655 echo "$as_me: failed program was:" >&5
5656 sed 's/^/| /' conftest.$ac_ext >&5
5660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5661 cat >conftest.$ac_ext <<_ACEOF
5664 cat confdefs.h >>conftest.$ac_ext
5665 cat >>conftest.$ac_ext <<_ACEOF
5666 /* end confdefs.h. */
5676 rm -f conftest.$ac_objext
5677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5678 (eval $ac_compile) 2>conftest.er1
5680 grep -v '^ *+' conftest.er1 >conftest.err
5682 cat conftest.err >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } &&
5685 { ac_try='test -z "$ac_cxx_werror_flag"
5686 || test ! -s conftest.err'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; } &&
5692 { ac_try='test -s conftest.$ac_objext'
5693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); }; }; then
5700 echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5707 if test -n "$ac_declaration"; then
5708 echo '#ifdef __cplusplus' >>confdefs.h
5709 echo $ac_declaration >>confdefs.h
5710 echo '#endif' >>confdefs.h
5714 ac_cpp='$CXXCPP $CPPFLAGS'
5715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5720 ac_cpp='$CXXCPP $CPPFLAGS'
5721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5724 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5725 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5726 if test -z "$CXXCPP"; then
5727 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 # Double quotes because CXXCPP needs to be expanded
5731 for CXXCPP in "$CXX -E" "/lib/cpp"
5734 for ac_cxx_preproc_warn_flag in '' yes
5736 # Use a header file that comes with gcc, so configuring glibc
5737 # with a fresh cross-compiler works.
5738 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5739 # <limits.h> exists even on freestanding compilers.
5740 # On the NeXT, cc -E runs the code through the compiler's parser,
5741 # not just through cpp. "Syntax error" is here to catch this case.
5742 cat >conftest.$ac_ext <<_ACEOF
5745 cat confdefs.h >>conftest.$ac_ext
5746 cat >>conftest.$ac_ext <<_ACEOF
5747 /* end confdefs.h. */
5749 # include <limits.h>
5751 # include <assert.h>
5755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5758 grep -v '^ *+' conftest.er1 >conftest.err
5760 cat conftest.err >&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } >/dev/null; then
5763 if test -s conftest.err; then
5764 ac_cpp_err=$ac_cxx_preproc_warn_flag
5765 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5772 if test -z "$ac_cpp_err"; then
5775 echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5778 # Broken: fails on valid input.
5781 rm -f conftest.err conftest.$ac_ext
5783 # OK, works on sane cases. Now check whether non-existent headers
5784 # can be detected and how.
5785 cat >conftest.$ac_ext <<_ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5791 #include <ac_nonexistent.h>
5793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5796 grep -v '^ *+' conftest.er1 >conftest.err
5798 cat conftest.err >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); } >/dev/null; then
5801 if test -s conftest.err; then
5802 ac_cpp_err=$ac_cxx_preproc_warn_flag
5803 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5810 if test -z "$ac_cpp_err"; then
5811 # Broken: success on invalid input.
5814 echo "$as_me: failed program was:" >&5
5815 sed 's/^/| /' conftest.$ac_ext >&5
5817 # Passes both tests.
5821 rm -f conftest.err conftest.$ac_ext
5824 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5825 rm -f conftest.err conftest.$ac_ext
5826 if $ac_preproc_ok; then
5831 ac_cv_prog_CXXCPP=$CXXCPP
5834 CXXCPP=$ac_cv_prog_CXXCPP
5836 ac_cv_prog_CXXCPP=$CXXCPP
5838 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5839 echo "${ECHO_T}$CXXCPP" >&6
5841 for ac_cxx_preproc_warn_flag in '' yes
5843 # Use a header file that comes with gcc, so configuring glibc
5844 # with a fresh cross-compiler works.
5845 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5846 # <limits.h> exists even on freestanding compilers.
5847 # On the NeXT, cc -E runs the code through the compiler's parser,
5848 # not just through cpp. "Syntax error" is here to catch this case.
5849 cat >conftest.$ac_ext <<_ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5856 # include <limits.h>
5858 # include <assert.h>
5862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5865 grep -v '^ *+' conftest.er1 >conftest.err
5867 cat conftest.err >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); } >/dev/null; then
5870 if test -s conftest.err; then
5871 ac_cpp_err=$ac_cxx_preproc_warn_flag
5872 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5879 if test -z "$ac_cpp_err"; then
5882 echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5885 # Broken: fails on valid input.
5888 rm -f conftest.err conftest.$ac_ext
5890 # OK, works on sane cases. Now check whether non-existent headers
5891 # can be detected and how.
5892 cat >conftest.$ac_ext <<_ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5898 #include <ac_nonexistent.h>
5900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5903 grep -v '^ *+' conftest.er1 >conftest.err
5905 cat conftest.err >&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); } >/dev/null; then
5908 if test -s conftest.err; then
5909 ac_cpp_err=$ac_cxx_preproc_warn_flag
5910 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5917 if test -z "$ac_cpp_err"; then
5918 # Broken: success on invalid input.
5921 echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.$ac_ext >&5
5924 # Passes both tests.
5928 rm -f conftest.err conftest.$ac_ext
5931 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5932 rm -f conftest.err conftest.$ac_ext
5933 if $ac_preproc_ok; then
5936 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5937 See \`config.log' for more details." >&5
5938 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5939 See \`config.log' for more details." >&2;}
5940 { (exit 1); exit 1; }; }
5944 ac_cpp='$CXXCPP $CPPFLAGS'
5945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5951 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5952 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5953 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5954 if test -n "$ac_tool_prefix"; then
5955 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5957 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5958 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5959 echo "$as_me:$LINENO: checking for $ac_word" >&5
5960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5961 if test "${ac_cv_prog_F77+set}" = set; then
5962 echo $ECHO_N "(cached) $ECHO_C" >&6
5964 if test -n "$F77"; then
5965 ac_cv_prog_F77="$F77" # Let the user override the test.
5967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 test -z "$as_dir" && as_dir=.
5972 for ac_exec_ext in '' $ac_executable_extensions; do
5973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5974 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5984 if test -n "$F77"; then
5985 echo "$as_me:$LINENO: result: $F77" >&5
5986 echo "${ECHO_T}$F77" >&6
5988 echo "$as_me:$LINENO: result: no" >&5
5989 echo "${ECHO_T}no" >&6
5992 test -n "$F77" && break
5995 if test -z "$F77"; then
5997 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5999 # Extract the first word of "$ac_prog", so it can be a program name with args.
6000 set dummy $ac_prog; ac_word=$2
6001 echo "$as_me:$LINENO: checking for $ac_word" >&5
6002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6003 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6004 echo $ECHO_N "(cached) $ECHO_C" >&6
6006 if test -n "$ac_ct_F77"; then
6007 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6016 ac_cv_prog_ac_ct_F77="$ac_prog"
6017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6025 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6026 if test -n "$ac_ct_F77"; then
6027 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6028 echo "${ECHO_T}$ac_ct_F77" >&6
6030 echo "$as_me:$LINENO: result: no" >&5
6031 echo "${ECHO_T}no" >&6
6034 test -n "$ac_ct_F77" && break
6041 # Provide some information about the compiler.
6042 echo "$as_me:6042:" \
6043 "checking for Fortran 77 compiler version" >&5
6044 ac_compiler=`set X $ac_compile; echo $2`
6045 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6046 (eval $ac_compiler --version </dev/null >&5) 2>&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }
6050 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6051 (eval $ac_compiler -v </dev/null >&5) 2>&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); }
6055 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6056 (eval $ac_compiler -V </dev/null >&5) 2>&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }
6062 # If we don't use `.F' as extension, the preprocessor is not run on the
6063 # input file. (Note that this only needs to work for GNU compilers.)
6066 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6067 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6068 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 cat >conftest.$ac_ext <<_ACEOF
6079 rm -f conftest.$ac_objext
6080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6081 (eval $ac_compile) 2>conftest.er1
6083 grep -v '^ *+' conftest.er1 >conftest.err
6085 cat conftest.err >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } &&
6088 { ac_try='test -z "$ac_f77_werror_flag"
6089 || test ! -s conftest.err'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; } &&
6095 { ac_try='test -s conftest.$ac_objext'
6096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); }; }; then
6103 echo "$as_me: failed program was:" >&5
6104 sed 's/^/| /' conftest.$ac_ext >&5
6108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6109 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6112 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6113 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6115 ac_test_FFLAGS=${FFLAGS+set}
6116 ac_save_FFLAGS=$FFLAGS
6118 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6119 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6120 if test "${ac_cv_prog_f77_g+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 cat >conftest.$ac_ext <<_ACEOF
6129 rm -f conftest.$ac_objext
6130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6131 (eval $ac_compile) 2>conftest.er1
6133 grep -v '^ *+' conftest.er1 >conftest.err
6135 cat conftest.err >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } &&
6138 { ac_try='test -z "$ac_f77_werror_flag"
6139 || test ! -s conftest.err'
6140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; } &&
6145 { ac_try='test -s conftest.$ac_objext'
6146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; }; then
6151 ac_cv_prog_f77_g=yes
6153 echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6161 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6162 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6163 if test "$ac_test_FFLAGS" = set; then
6164 FFLAGS=$ac_save_FFLAGS
6165 elif test $ac_cv_prog_f77_g = yes; then
6166 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6172 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6179 G77=`test $ac_compiler_gnu = yes && echo yes`
6181 ac_cpp='$CPP $CPPFLAGS'
6182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6188 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6190 # find the maximum length of command line arguments
6191 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6192 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6193 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 # On DJGPP, this test can blow up pretty badly due to problems in libc
6202 # (any single argument exceeding 2000 bytes causes a buffer overrun
6203 # during glob expansion). Even if it were fixed, the result of this
6204 # check would be larger than it should be.
6205 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6209 # Under GNU Hurd, this test is not required because there is
6210 # no limit to the length of command line arguments.
6211 # Libtool will interpret -1 as no limit whatsoever
6212 lt_cv_sys_max_cmd_len=-1;
6216 # On Win9x/ME, this test blows up -- it succeeds, but takes
6217 # about 5 minutes as the teststring grows exponentially.
6218 # Worse, since 9x/ME are not pre-emptively multitasking,
6219 # you end up with a "frozen" computer, even though with patience
6220 # the test eventually succeeds (with a max line length of 256k).
6221 # Instead, let's just punt: use the minimum linelength reported by
6222 # all of the supported platforms: 8192 (on NT/2K/XP).
6223 lt_cv_sys_max_cmd_len=8192;
6227 # On AmigaOS with pdksh, this test takes hours, literally.
6228 # So we just punt and use a minimum line length of 8192.
6229 lt_cv_sys_max_cmd_len=8192;
6233 # If test is not a shell built-in, we'll probably end up computing a
6234 # maximum length that is only half of the actual maximum length, but
6236 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
6237 = "XX$testring") >/dev/null 2>&1 &&
6238 new_result=`expr "X$testring" : ".*" 2>&1` &&
6239 lt_cv_sys_max_cmd_len=$new_result &&
6240 test $i != 17 # 1/2 MB should be enough
6243 testring=$testring$testring
6246 # Add a significant safety factor because C++ compilers can tack on massive
6247 # amounts of additional arguments before passing them to the linker.
6248 # It appears as though 1/2 is a usable value.
6249 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6255 if test -n $lt_cv_sys_max_cmd_len ; then
6256 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6257 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6259 echo "$as_me:$LINENO: result: none" >&5
6260 echo "${ECHO_T}none" >&6
6266 # Check for command to grab the raw symbol name followed by C symbol from nm.
6267 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6268 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6269 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6270 echo $ECHO_N "(cached) $ECHO_C" >&6
6273 # These are sane defaults that work on at least a few old systems.
6274 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6276 # Character class describing NM global symbol codes.
6277 symcode='[BCDEGRST]'
6279 # Regexp to match symbols that can be accessed directly from C.
6280 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6282 # Transform the above into a raw symbol and a C symbol.
6283 symxfrm='\1 \2\3 \3'
6285 # Transform an extracted symbol line into a proper C declaration
6286 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6288 # Transform an extracted symbol line into symbol name and symbol address
6289 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'"
6291 # Define system-specific variables.
6296 cygwin* | mingw* | pw32*)
6297 symcode='[ABCDGISTW]'
6299 hpux*) # Its linker distinguishes data from code symbols
6300 if test "$host_cpu" = ia64; then
6301 symcode='[ABCDEGRST]'
6303 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6304 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'"
6307 symcode='[BCDEGRST]'
6310 symcode='[BCDEGQRST]'
6320 # Handle CRLF in mingw tool chain
6324 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6328 # If we're using GNU nm, then use its standard symbol codes.
6329 case `$NM -V 2>&1` in
6330 *GNU* | *'with BFD'*)
6331 symcode='[ABCDGIRSTW]' ;;
6334 # Try without a prefix undercore, then with it.
6335 for ac_symprfx in "" "_"; do
6337 # Write the raw and C identifiers.
6338 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6340 # Check to see that the pipe works correctly.
6344 cat > conftest.$ac_ext <<EOF
6349 void nm_test_func(){}
6353 int main(){nm_test_var='a';nm_test_func();return(0);}
6356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6357 (eval $ac_compile) 2>&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; then
6361 # Now try to grab the symbols.
6363 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6364 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); } && test -s "$nlist"; then
6368 # Try sorting and uniquifying the output.
6369 if sort "$nlist" | uniq > "$nlist"T; then
6370 mv -f "$nlist"T "$nlist"
6375 # Make sure that we snagged all the symbols we need.
6376 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6377 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6378 cat <<EOF > conftest.$ac_ext
6384 # Now generate the symbol file.
6385 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6387 cat <<EOF >> conftest.$ac_ext
6388 #if defined (__STDC__) && __STDC__
6389 # define lt_ptr_t void *
6391 # define lt_ptr_t char *
6395 /* The mapping between symbol names and symbols. */
6400 lt_preloaded_symbols[] =
6403 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6404 cat <<\EOF >> conftest.$ac_ext
6412 # Now try linking the two files.
6413 mv conftest.$ac_objext conftstm.$ac_objext
6414 lt_save_LIBS="$LIBS"
6415 lt_save_CFLAGS="$CFLAGS"
6416 LIBS="conftstm.$ac_objext"
6417 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6419 (eval $ac_link) 2>&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6425 LIBS="$lt_save_LIBS"
6426 CFLAGS="$lt_save_CFLAGS"
6428 echo "cannot find nm_test_func in $nlist" >&5
6431 echo "cannot find nm_test_var in $nlist" >&5
6434 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6437 echo "$progname: failed program was:" >&5
6438 cat conftest.$ac_ext >&5
6440 rm -f conftest* conftst*
6442 # Do not use the global_symbol_pipe unless it works.
6443 if test "$pipe_works" = yes; then
6446 lt_cv_sys_global_symbol_pipe=
6452 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6453 lt_cv_sys_global_symbol_to_cdecl=
6455 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6456 echo "$as_me:$LINENO: result: failed" >&5
6457 echo "${ECHO_T}failed" >&6
6459 echo "$as_me:$LINENO: result: ok" >&5
6460 echo "${ECHO_T}ok" >&6
6463 echo "$as_me:$LINENO: checking for objdir" >&5
6464 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6465 if test "${lt_cv_objdir+set}" = set; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6468 rm -f .libs 2>/dev/null
6469 mkdir .libs 2>/dev/null
6470 if test -d .libs; then
6473 # MS-DOS does not allow filenames that begin with a dot.
6476 rmdir .libs 2>/dev/null
6478 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6479 echo "${ECHO_T}$lt_cv_objdir" >&6
6480 objdir=$lt_cv_objdir
6488 # AIX sometimes has problems with the GCC collect2 program. For some
6489 # reason, if we set the COLLECT_NAMES environment variable, the problems
6490 # vanish in a puff of smoke.
6491 if test "X${COLLECT_NAMES+set}" != Xset; then
6493 export COLLECT_NAMES
6498 # Sed substitution that helps us do robust quoting. It backslashifies
6499 # metacharacters that are still active within double-quoted strings.
6500 Xsed='sed -e s/^X//'
6501 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6503 # Same as above, but do not quote variable references.
6504 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6506 # Sed substitution to delay expansion of an escaped shell variable in a
6507 # double_quote_subst'ed string.
6508 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6510 # Sed substitution to avoid accidental globbing in evaled expressions
6511 no_glob_subst='s/\*/\\\*/g'
6517 default_ofile=libtool
6518 can_build_shared=yes
6520 # All known linkers require a `.a' archive for static linking (except M$VC,
6521 # which needs '.lib').
6523 ltmain="$ac_aux_dir/ltmain.sh"
6524 ofile="$default_ofile"
6525 with_gnu_ld="$lt_cv_prog_gnu_ld"
6527 if test -n "$ac_tool_prefix"; then
6528 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6529 set dummy ${ac_tool_prefix}ar; ac_word=$2
6530 echo "$as_me:$LINENO: checking for $ac_word" >&5
6531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6532 if test "${ac_cv_prog_AR+set}" = set; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
6535 if test -n "$AR"; then
6536 ac_cv_prog_AR="$AR" # Let the user override the test.
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 test -z "$as_dir" && as_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
6544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6545 ac_cv_prog_AR="${ac_tool_prefix}ar"
6546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6555 if test -n "$AR"; then
6556 echo "$as_me:$LINENO: result: $AR" >&5
6557 echo "${ECHO_T}$AR" >&6
6559 echo "$as_me:$LINENO: result: no" >&5
6560 echo "${ECHO_T}no" >&6
6564 if test -z "$ac_cv_prog_AR"; then
6566 # Extract the first word of "ar", so it can be a program name with args.
6567 set dummy ar; ac_word=$2
6568 echo "$as_me:$LINENO: checking for $ac_word" >&5
6569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6570 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 if test -n "$ac_ct_AR"; then
6574 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580 test -z "$as_dir" && as_dir=.
6581 for ac_exec_ext in '' $ac_executable_extensions; do
6582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6583 ac_cv_prog_ac_ct_AR="ar"
6584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6593 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6594 if test -n "$ac_ct_AR"; then
6595 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6596 echo "${ECHO_T}$ac_ct_AR" >&6
6598 echo "$as_me:$LINENO: result: no" >&5
6599 echo "${ECHO_T}no" >&6
6607 if test -n "$ac_tool_prefix"; then
6608 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6609 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6610 echo "$as_me:$LINENO: checking for $ac_word" >&5
6611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6612 if test "${ac_cv_prog_RANLIB+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
6615 if test -n "$RANLIB"; then
6616 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6625 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6634 RANLIB=$ac_cv_prog_RANLIB
6635 if test -n "$RANLIB"; then
6636 echo "$as_me:$LINENO: result: $RANLIB" >&5
6637 echo "${ECHO_T}$RANLIB" >&6
6639 echo "$as_me:$LINENO: result: no" >&5
6640 echo "${ECHO_T}no" >&6
6644 if test -z "$ac_cv_prog_RANLIB"; then
6645 ac_ct_RANLIB=$RANLIB
6646 # Extract the first word of "ranlib", so it can be a program name with args.
6647 set dummy ranlib; ac_word=$2
6648 echo "$as_me:$LINENO: checking for $ac_word" >&5
6649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6650 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
6653 if test -n "$ac_ct_RANLIB"; then
6654 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 test -z "$as_dir" && as_dir=.
6661 for ac_exec_ext in '' $ac_executable_extensions; do
6662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6663 ac_cv_prog_ac_ct_RANLIB="ranlib"
6664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6670 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6673 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6674 if test -n "$ac_ct_RANLIB"; then
6675 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6676 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6678 echo "$as_me:$LINENO: result: no" >&5
6679 echo "${ECHO_T}no" >&6
6682 RANLIB=$ac_ct_RANLIB
6684 RANLIB="$ac_cv_prog_RANLIB"
6687 if test -n "$ac_tool_prefix"; then
6688 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6689 set dummy ${ac_tool_prefix}strip; ac_word=$2
6690 echo "$as_me:$LINENO: checking for $ac_word" >&5
6691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6692 if test "${ac_cv_prog_STRIP+set}" = set; then
6693 echo $ECHO_N "(cached) $ECHO_C" >&6
6695 if test -n "$STRIP"; then
6696 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 test -z "$as_dir" && as_dir=.
6703 for ac_exec_ext in '' $ac_executable_extensions; do
6704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6705 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 STRIP=$ac_cv_prog_STRIP
6715 if test -n "$STRIP"; then
6716 echo "$as_me:$LINENO: result: $STRIP" >&5
6717 echo "${ECHO_T}$STRIP" >&6
6719 echo "$as_me:$LINENO: result: no" >&5
6720 echo "${ECHO_T}no" >&6
6724 if test -z "$ac_cv_prog_STRIP"; then
6726 # Extract the first word of "strip", so it can be a program name with args.
6727 set dummy strip; ac_word=$2
6728 echo "$as_me:$LINENO: checking for $ac_word" >&5
6729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6730 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 if test -n "$ac_ct_STRIP"; then
6734 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6743 ac_cv_prog_ac_ct_STRIP="strip"
6744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6750 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6753 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6754 if test -n "$ac_ct_STRIP"; then
6755 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6756 echo "${ECHO_T}$ac_ct_STRIP" >&6
6758 echo "$as_me:$LINENO: result: no" >&5
6759 echo "${ECHO_T}no" >&6
6764 STRIP="$ac_cv_prog_STRIP"
6769 old_CFLAGS="$CFLAGS"
6771 # Set sane defaults for various variables
6772 test -z "$AR" && AR=ar
6773 test -z "$AR_FLAGS" && AR_FLAGS=cru
6774 test -z "$AS" && AS=as
6775 test -z "$CC" && CC=cc
6776 test -z "$LTCC" && LTCC=$CC
6777 test -z "$DLLTOOL" && DLLTOOL=dlltool
6778 test -z "$LD" && LD=ld
6779 test -z "$LN_S" && LN_S="ln -s"
6780 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6781 test -z "$NM" && NM=nm
6782 test -z "$SED" && SED=sed
6783 test -z "$OBJDUMP" && OBJDUMP=objdump
6784 test -z "$RANLIB" && RANLIB=:
6785 test -z "$STRIP" && STRIP=:
6786 test -z "$ac_objext" && ac_objext=o
6788 # Determine commands to create old-style static archives.
6789 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6790 old_postinstall_cmds='chmod 644 $oldlib'
6791 old_postuninstall_cmds=
6793 if test -n "$RANLIB"; then
6796 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6799 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6802 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6805 # Only perform the check for file, if the check method requires it
6806 case $deplibs_check_method in
6808 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6809 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6810 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6811 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6819 lt_save_MAGIC_CMD="$MAGIC_CMD"
6820 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6821 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6822 for ac_dir in $ac_dummy; do
6824 test -z "$ac_dir" && ac_dir=.
6825 if test -f $ac_dir/${ac_tool_prefix}file; then
6826 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6827 if test -n "$file_magic_test_file"; then
6828 case $deplibs_check_method in
6830 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6831 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6832 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6833 $EGREP "$file_magic_regex" > /dev/null; then
6838 *** Warning: the command libtool uses to detect shared libraries,
6839 *** $file_magic_cmd, produces output that libtool cannot recognize.
6840 *** The result is that libtool may fail to recognize shared libraries
6841 *** as such. This will affect the creation of libtool libraries that
6842 *** depend on shared libraries, but programs linked with such libtool
6843 *** libraries will work regardless of this problem. Nevertheless, you
6844 *** may want to report the problem to your system manager and/or to
6845 *** bug-libtool@gnu.org
6855 MAGIC_CMD="$lt_save_MAGIC_CMD"
6860 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6861 if test -n "$MAGIC_CMD"; then
6862 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6863 echo "${ECHO_T}$MAGIC_CMD" >&6
6865 echo "$as_me:$LINENO: result: no" >&5
6866 echo "${ECHO_T}no" >&6
6869 if test -z "$lt_cv_path_MAGIC_CMD"; then
6870 if test -n "$ac_tool_prefix"; then
6871 echo "$as_me:$LINENO: checking for file" >&5
6872 echo $ECHO_N "checking for file... $ECHO_C" >&6
6873 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6878 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6881 lt_save_MAGIC_CMD="$MAGIC_CMD"
6882 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6883 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6884 for ac_dir in $ac_dummy; do
6886 test -z "$ac_dir" && ac_dir=.
6887 if test -f $ac_dir/file; then
6888 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6889 if test -n "$file_magic_test_file"; then
6890 case $deplibs_check_method in
6892 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6893 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6894 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6895 $EGREP "$file_magic_regex" > /dev/null; then
6900 *** Warning: the command libtool uses to detect shared libraries,
6901 *** $file_magic_cmd, produces output that libtool cannot recognize.
6902 *** The result is that libtool may fail to recognize shared libraries
6903 *** as such. This will affect the creation of libtool libraries that
6904 *** depend on shared libraries, but programs linked with such libtool
6905 *** libraries will work regardless of this problem. Nevertheless, you
6906 *** may want to report the problem to your system manager and/or to
6907 *** bug-libtool@gnu.org
6917 MAGIC_CMD="$lt_save_MAGIC_CMD"
6922 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6923 if test -n "$MAGIC_CMD"; then
6924 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6925 echo "${ECHO_T}$MAGIC_CMD" >&6
6927 echo "$as_me:$LINENO: result: no" >&5
6928 echo "${ECHO_T}no" >&6
6943 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6944 if test "${enable_libtool_lock+set}" = set; then
6945 enableval="$enable_libtool_lock"
6948 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6951 # Check whether --with-pic or --without-pic was given.
6952 if test "${with_pic+set}" = set; then
6958 test -z "$pic_mode" && pic_mode=default
6960 # Use C for the default configuration in the libtool script
6964 ac_cpp='$CPP $CPPFLAGS'
6965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6970 # Source file extension for C test sources.
6973 # Object file extension for compiled C test sources.
6977 # Code to be used in simple compile tests
6978 lt_simple_compile_test_code="int some_variable = 0;\n"
6980 # Code to be used in simple link tests
6981 lt_simple_link_test_code='int main(){return(0);}\n'
6984 # If no C compiler was specified, use CC.
6987 # Allow CC to be a program name with arguments.
6992 # Check for any special shared library compilation flags.
6995 if test "$GCC" = no; then
6998 lt_prog_cc_shlib='-belf'
7002 if test -n "$lt_prog_cc_shlib"; then
7003 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7004 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7005 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7007 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7008 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7009 lt_cv_prog_cc_can_build_shared=no
7015 # Check to make sure the static flag actually works.
7017 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7018 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7019 if test "${lt_prog_compiler_static_works+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7022 lt_prog_compiler_static_works=no
7023 save_LDFLAGS="$LDFLAGS"
7024 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7025 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7026 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7027 # The compiler can only warn and ignore the option if not recognized
7028 # So say no if there are warnings
7029 if test -s conftest.err; then
7030 # Append any errors to the config.log.
7031 cat conftest.err 1>&5
7033 lt_prog_compiler_static_works=yes
7037 LDFLAGS="$save_LDFLAGS"
7040 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7041 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7043 if test x"$lt_prog_compiler_static_works" = xyes; then
7046 lt_prog_compiler_static=
7052 lt_prog_compiler_no_builtin_flag=
7054 if test "$GCC" = yes; then
7055 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7058 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7059 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7060 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7063 lt_cv_prog_compiler_rtti_exceptions=no
7064 ac_outfile=conftest.$ac_objext
7065 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7066 lt_compiler_flag="-fno-rtti -fno-exceptions"
7067 # Insert the option either (1) after the last *FLAGS variable, or
7068 # (2) before a word containing "conftest.", or (3) at the end.
7069 # Note that $ac_compile itself does not contain backslashes and begins
7070 # with a dollar sign (not a hyphen), so the echo should work correctly.
7071 # The option is referenced via a variable to avoid confusing sed.
7072 lt_compile=`echo "$ac_compile" | $SED \
7073 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7074 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7075 -e 's:$: $lt_compiler_flag:'`
7076 (eval echo "\"\$as_me:7076: $lt_compile\"" >&5)
7077 (eval "$lt_compile" 2>conftest.err)
7079 cat conftest.err >&5
7080 echo "$as_me:7080: \$? = $ac_status" >&5
7081 if (exit $ac_status) && test -s "$ac_outfile"; then
7082 # The compiler can only warn and ignore the option if not recognized
7083 # So say no if there are warnings
7084 if test ! -s conftest.err; then
7085 lt_cv_prog_compiler_rtti_exceptions=yes
7091 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7092 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7094 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7095 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7102 lt_prog_compiler_wl=
7103 lt_prog_compiler_pic=
7104 lt_prog_compiler_static=
7106 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7107 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7109 if test "$GCC" = yes; then
7110 lt_prog_compiler_wl='-Wl,'
7111 lt_prog_compiler_static='-static'
7115 # All AIX code is PIC.
7116 if test "$host_cpu" = ia64; then
7117 # AIX 5 now supports IA64 processor
7118 lt_prog_compiler_static='-Bstatic'
7123 # FIXME: we need at least 68020 code to build shared libraries, but
7124 # adding the `-m68020' flag to GCC prevents building anything better,
7126 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7129 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7130 # PIC is the default for these OSes.
7133 mingw* | pw32* | os2*)
7134 # This hack is so that the source file can tell whether it is being
7135 # built for inclusion in a dll (and should export symbols for example).
7136 lt_prog_compiler_pic='-DDLL_EXPORT'
7139 darwin* | rhapsody*)
7140 # PIC is the default on this platform
7141 # Common symbols not allowed in MH_DYLIB files
7142 lt_prog_compiler_pic='-fno-common'
7146 # Just because we use GCC doesn't mean we suddenly get shared libraries
7147 # on systems that don't support them.
7148 lt_prog_compiler_can_build_shared=no
7153 if test -d /usr/nec; then
7154 lt_prog_compiler_pic=-Kconform_pic
7159 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7166 lt_prog_compiler_pic='-fPIC'
7172 lt_prog_compiler_pic='-fPIC'
7176 # PORTME Check for flag to pass linker flags through the system compiler.
7179 lt_prog_compiler_wl='-Wl,'
7180 if test "$host_cpu" = ia64; then
7181 # AIX 5 now supports IA64 processor
7182 lt_prog_compiler_static='-Bstatic'
7184 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7188 mingw* | pw32* | os2*)
7189 # This hack is so that the source file can tell whether it is being
7190 # built for inclusion in a dll (and should export symbols for example).
7191 lt_prog_compiler_pic='-DDLL_EXPORT'
7194 hpux9* | hpux10* | hpux11*)
7195 lt_prog_compiler_wl='-Wl,'
7196 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7203 lt_prog_compiler_pic='+Z'
7206 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7207 lt_prog_compiler_static='${wl}-a ${wl}archive'
7210 irix5* | irix6* | nonstopux*)
7211 lt_prog_compiler_wl='-Wl,'
7212 # PIC (with -KPIC) is the default.
7213 lt_prog_compiler_static='-non_shared'
7217 lt_prog_compiler_pic='-KPIC'
7218 lt_prog_compiler_static='-Bstatic'
7224 lt_prog_compiler_wl='-Wl,'
7225 lt_prog_compiler_pic='-KPIC'
7226 lt_prog_compiler_static='-static'
7229 lt_prog_compiler_wl='-Wl,'
7230 # All Alpha code is PIC.
7231 lt_prog_compiler_static='-non_shared'
7236 osf3* | osf4* | osf5*)
7237 lt_prog_compiler_wl='-Wl,'
7238 # All OSF/1 code is PIC.
7239 lt_prog_compiler_static='-non_shared'
7243 lt_prog_compiler_pic='-Kpic'
7244 lt_prog_compiler_static='-dn'
7248 lt_prog_compiler_wl='-Wl,'
7249 lt_prog_compiler_pic='-KPIC'
7250 lt_prog_compiler_static='-Bstatic'
7254 lt_prog_compiler_wl='-Qoption ld '
7255 lt_prog_compiler_pic='-PIC'
7256 lt_prog_compiler_static='-Bstatic'
7259 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7260 lt_prog_compiler_wl='-Wl,'
7261 lt_prog_compiler_pic='-KPIC'
7262 lt_prog_compiler_static='-Bstatic'
7266 if test -d /usr/nec ;then
7267 lt_prog_compiler_pic='-Kconform_pic'
7268 lt_prog_compiler_static='-Bstatic'
7273 lt_prog_compiler_pic='-pic'
7274 lt_prog_compiler_static='-Bstatic'
7278 lt_prog_compiler_can_build_shared=no
7283 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7284 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7287 # Check to make sure the PIC flag actually works.
7289 if test -n "$lt_prog_compiler_pic"; then
7291 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7292 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7293 if test "${lt_prog_compiler_pic_works+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 lt_prog_compiler_pic_works=no
7297 ac_outfile=conftest.$ac_objext
7298 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7299 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7300 # Insert the option either (1) after the last *FLAGS variable, or
7301 # (2) before a word containing "conftest.", or (3) at the end.
7302 # Note that $ac_compile itself does not contain backslashes and begins
7303 # with a dollar sign (not a hyphen), so the echo should work correctly.
7304 # The option is referenced via a variable to avoid confusing sed.
7305 lt_compile=`echo "$ac_compile" | $SED \
7306 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7307 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7308 -e 's:$: $lt_compiler_flag:'`
7309 (eval echo "\"\$as_me:7309: $lt_compile\"" >&5)
7310 (eval "$lt_compile" 2>conftest.err)
7312 cat conftest.err >&5
7313 echo "$as_me:7313: \$? = $ac_status" >&5
7314 if (exit $ac_status) && test -s "$ac_outfile"; then
7315 # The compiler can only warn and ignore the option if not recognized
7316 # So say no if there are warnings
7317 if test ! -s conftest.err; then
7318 lt_prog_compiler_pic_works=yes
7324 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7325 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7327 if test x"$lt_prog_compiler_pic_works" = xyes; then
7328 case $lt_prog_compiler_pic in
7330 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7333 lt_prog_compiler_pic=
7334 lt_prog_compiler_can_build_shared=no
7339 # For platforms which do not support PIC, -DPIC is meaningless:
7341 lt_prog_compiler_pic=
7344 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7348 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7349 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7350 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7351 echo $ECHO_N "(cached) $ECHO_C" >&6
7353 lt_cv_prog_compiler_c_o=no
7354 $rm -r conftest 2>/dev/null
7358 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7360 lt_compiler_flag="-o out/conftest2.$ac_objext"
7361 # Insert the option either (1) after the last *FLAGS variable, or
7362 # (2) before a word containing "conftest.", or (3) at the end.
7363 # Note that $ac_compile itself does not contain backslashes and begins
7364 # with a dollar sign (not a hyphen), so the echo should work correctly.
7365 lt_compile=`echo "$ac_compile" | $SED \
7366 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7368 -e 's:$: $lt_compiler_flag:'`
7369 (eval echo "\"\$as_me:7369: $lt_compile\"" >&5)
7370 (eval "$lt_compile" 2>out/conftest.err)
7372 cat out/conftest.err >&5
7373 echo "$as_me:7373: \$? = $ac_status" >&5
7374 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7376 # The compiler can only warn and ignore the option if not recognized
7377 # So say no if there are warnings
7378 if test ! -s out/conftest.err; then
7379 lt_cv_prog_compiler_c_o=yes
7384 # SGI C++ compiler will create directory out/ii_files/ for
7385 # template instantiation
7386 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7387 $rm out/* && rmdir out
7393 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7394 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7397 hard_links="nottested"
7398 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7399 # do not overwrite the value of need_locks provided by the user
7400 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7401 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7404 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7406 ln conftest.a conftest.b 2>&5 || hard_links=no
7407 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7408 echo "$as_me:$LINENO: result: $hard_links" >&5
7409 echo "${ECHO_T}$hard_links" >&6
7410 if test "$hard_links" = no; then
7411 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7412 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7419 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7420 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7423 allow_undefined_flag=
7424 enable_shared_with_static_runtimes=no
7426 archive_expsym_cmds=
7427 old_archive_From_new_cmds=
7428 old_archive_from_expsyms_cmds=
7429 export_dynamic_flag_spec=
7430 whole_archive_flag_spec=
7431 thread_safe_flag_spec=
7432 hardcode_libdir_flag_spec=
7433 hardcode_libdir_flag_spec_ld=
7434 hardcode_libdir_separator=
7437 hardcode_shlibpath_var=unsupported
7438 link_all_deplibs=unknown
7439 hardcode_automatic=no
7442 always_export_symbols=no
7443 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7444 # include_expsyms should be a list of space-separated symbols to be *always*
7445 # included in the symbol list
7447 # exclude_expsyms can be an extended regexp of symbols to exclude
7448 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7449 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7450 # as well as any symbol that contains `d'.
7451 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7452 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7453 # platforms (ab)use it in PIC code, but their linkers get confused if
7454 # the symbol is explicitly referenced. Since portable code cannot
7455 # rely on this symbol name, it's probably fine to never include it in
7456 # preloaded symbol tables.
7457 extract_expsyms_cmds=
7460 cygwin* | mingw* | pw32*)
7461 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7462 # When not using gcc, we currently assume that we are using
7463 # Microsoft Visual C++.
7464 if test "$GCC" != yes; then
7474 if test "$with_gnu_ld" = yes; then
7475 # If archive_cmds runs LD, not CC, wlarc should be empty
7478 # See if GNU ld supports shared libraries.
7480 aix3* | aix4* | aix5*)
7481 # On AIX/PPC, the GNU linker is very broken
7482 if test "$host_cpu" != ia64; then
7486 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7487 *** to be unable to reliably create shared libraries on AIX.
7488 *** Therefore, libtool is disabling shared libraries support. If you
7489 *** really care for shared libraries, you may want to modify your PATH
7490 *** so that a non-GNU linker is found, and then restart.
7497 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)'
7498 hardcode_libdir_flag_spec='-L$libdir'
7499 hardcode_minus_L=yes
7501 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7502 # that the semantics of dynamic libraries on AmigaOS, at least up
7503 # to version 4, is to share data among multiple programs linked
7504 # with the same dynamic library. Since this doesn't match the
7505 # behavior of shared libraries on other platforms, we can't use
7511 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7512 allow_undefined_flag=unsupported
7513 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7514 # support --undefined. This deserves some investigation. FIXME
7515 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7521 cygwin* | mingw* | pw32*)
7522 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7523 # as there is no search path for DLLs.
7524 hardcode_libdir_flag_spec='-L$libdir'
7525 allow_undefined_flag=unsupported
7526 always_export_symbols=no
7527 enable_shared_with_static_runtimes=yes
7528 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7530 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7531 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7532 # If the export-symbols file already is a .def file (1st line
7533 # is EXPORTS), use it as is; otherwise, prepend...
7534 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7535 cp $export_symbols $output_objdir/$soname.def;
7537 echo EXPORTS > $output_objdir/$soname.def;
7538 cat $export_symbols >> $output_objdir/$soname.def;
7540 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7547 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7548 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7552 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7557 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7561 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7562 *** create shared libraries on Solaris systems. Therefore, libtool
7563 *** is disabling shared libraries support. We urge you to upgrade GNU
7564 *** binutils to release 2.9.1 or newer. Another option is to modify
7565 *** your PATH or compiler configuration so that the native linker is
7566 *** used, and then restart.
7569 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7570 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7571 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7578 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7581 hardcode_shlibpath_var=no
7585 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7586 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7587 archive_cmds="$tmp_archive_cmds"
7588 supports_anon_versioning=no
7589 case `$LD -v 2>/dev/null` in
7590 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7591 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7592 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7593 *\ 2.11.*) ;; # other 2.11 versions
7594 *) supports_anon_versioning=yes ;;
7596 if test $supports_anon_versioning = yes; then
7597 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7598 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7599 $echo "local: *; };" >> $output_objdir/$libname.ver~
7600 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7602 archive_expsym_cmds="$tmp_archive_cmds"
7610 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7611 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7612 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7619 if test "$ld_shlibs" = yes; then
7620 runpath_var=LD_RUN_PATH
7621 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7622 export_dynamic_flag_spec='${wl}--export-dynamic'
7623 # ancient GNU ld didn't support --whole-archive et. al.
7624 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7625 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7627 whole_archive_flag_spec=
7631 # PORTME fill in a description of your system's linker (not GNU ld)
7634 allow_undefined_flag=unsupported
7635 always_export_symbols=yes
7636 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'
7637 # Note: this linker hardcodes the directories in LIBPATH if there
7638 # are no directories specified by -L.
7639 hardcode_minus_L=yes
7640 if test "$GCC" = yes && test -z "$link_static_flag"; then
7641 # Neither direct hardcoding nor static linking is supported with a
7643 hardcode_direct=unsupported
7648 if test "$host_cpu" = ia64; then
7649 # On IA64, the linker does run time linking by default, so we don't
7650 # have to do anything special.
7651 aix_use_runtimelinking=no
7652 exp_sym_flag='-Bexport'
7655 # If we're using GNU nm, then we don't want the "-C" option.
7656 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7657 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7658 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'
7660 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'
7662 aix_use_runtimelinking=no
7664 # Test if we are trying to use run time linking or normal
7665 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7666 # need to do runtime linking.
7667 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7668 for ld_flag in $LDFLAGS; do
7669 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7670 aix_use_runtimelinking=yes
7676 exp_sym_flag='-bexport'
7677 no_entry_flag='-bnoentry'
7680 # When large executables or shared objects are built, AIX ld can
7681 # have problems creating the table of contents. If linking a library
7682 # or program results in "error TOC overflow" add -mminimal-toc to
7683 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7684 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7688 hardcode_libdir_separator=':'
7689 link_all_deplibs=yes
7691 if test "$GCC" = yes; then
7692 case $host_os in aix4.012|aix4.012.*)
7693 # We only want to do this on AIX 4.2 and lower, the check
7694 # below for broken collect2 doesn't work under 4.3+
7695 collect2name=`${CC} -print-prog-name=collect2`
7696 if test -f "$collect2name" && \
7697 strings "$collect2name" | grep resolve_lib_name >/dev/null
7699 # We have reworked collect2
7702 # We have old collect2
7703 hardcode_direct=unsupported
7704 # It fails to find uninstalled libraries when the uninstalled
7705 # path is not listed in the libpath. Setting hardcode_minus_L
7706 # to unsupported forces relinking
7707 hardcode_minus_L=yes
7708 hardcode_libdir_flag_spec='-L$libdir'
7709 hardcode_libdir_separator=
7712 shared_flag='-shared'
7715 if test "$host_cpu" = ia64; then
7716 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7717 # chokes on -Wl,-G. The following line is correct:
7720 if test "$aix_use_runtimelinking" = yes; then
7721 shared_flag='${wl}-G'
7723 shared_flag='${wl}-bM:SRE'
7728 # It seems that -bexpall does not export symbols beginning with
7729 # underscore (_), so it is better to generate a list of symbols to export.
7730 always_export_symbols=yes
7731 if test "$aix_use_runtimelinking" = yes; then
7732 # Warning - without using the other runtime loading flags (-brtl),
7733 # -berok will link without error, but may produce a broken library.
7734 allow_undefined_flag='-berok'
7735 # Determine the default libpath from the value encoded in an empty executable.
7736 cat >conftest.$ac_ext <<_ACEOF
7739 cat confdefs.h >>conftest.$ac_ext
7740 cat >>conftest.$ac_ext <<_ACEOF
7741 /* end confdefs.h. */
7751 rm -f conftest.$ac_objext conftest$ac_exeext
7752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7753 (eval $ac_link) 2>conftest.er1
7755 grep -v '^ *+' conftest.er1 >conftest.err
7757 cat conftest.err >&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); } &&
7760 { ac_try='test -z "$ac_c_werror_flag"
7761 || test ! -s conftest.err'
7762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); }; } &&
7767 { ac_try='test -s conftest$ac_exeext'
7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; }; then
7774 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7776 # Check for a 64-bit object if we didn't find anything.
7777 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; }
7780 echo "$as_me: failed program was:" >&5
7781 sed 's/^/| /' conftest.$ac_ext >&5
7784 rm -f conftest.err conftest.$ac_objext \
7785 conftest$ac_exeext conftest.$ac_ext
7786 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7788 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7789 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"
7791 if test "$host_cpu" = ia64; then
7792 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7793 allow_undefined_flag="-z nodefs"
7794 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"
7796 # Determine the default libpath from the value encoded in an empty executable.
7797 cat >conftest.$ac_ext <<_ACEOF
7800 cat confdefs.h >>conftest.$ac_ext
7801 cat >>conftest.$ac_ext <<_ACEOF
7802 /* end confdefs.h. */
7812 rm -f conftest.$ac_objext conftest$ac_exeext
7813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7814 (eval $ac_link) 2>conftest.er1
7816 grep -v '^ *+' conftest.er1 >conftest.err
7818 cat conftest.err >&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); } &&
7821 { ac_try='test -z "$ac_c_werror_flag"
7822 || test ! -s conftest.err'
7823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); }; } &&
7828 { ac_try='test -s conftest$ac_exeext'
7829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); }; }; then
7835 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7837 # Check for a 64-bit object if we didn't find anything.
7838 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; }
7841 echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7845 rm -f conftest.err conftest.$ac_objext \
7846 conftest$ac_exeext conftest.$ac_ext
7847 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7849 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7850 # Warning - without using the other run time loading flags,
7851 # -berok will link without error, but may produce a broken library.
7852 no_undefined_flag=' ${wl}-bernotok'
7853 allow_undefined_flag=' ${wl}-berok'
7854 # -bexpall does not export symbols beginning with underscore (_)
7855 always_export_symbols=yes
7856 # Exported symbols can be pulled into shared objects from archives
7857 whole_archive_flag_spec=' '
7858 archive_cmds_need_lc=yes
7859 # This is similar to how AIX traditionally builds it's shared libraries.
7860 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'
7866 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)'
7867 hardcode_libdir_flag_spec='-L$libdir'
7868 hardcode_minus_L=yes
7869 # see comment about different semantics on the GNU ld section
7874 export_dynamic_flag_spec=-rdynamic
7877 cygwin* | mingw* | pw32*)
7878 # When not using gcc, we currently assume that we are using
7879 # Microsoft Visual C++.
7880 # hardcode_libdir_flag_spec is actually meaningless, as there is
7881 # no search path for DLLs.
7882 hardcode_libdir_flag_spec=' '
7883 allow_undefined_flag=unsupported
7884 # Tell ltmain to make .lib files, not .a files.
7886 # Tell ltmain to make .dll files, not .so files.
7888 # FIXME: Setting linknames here is a bad hack.
7889 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7890 # The linker will automatically build a .lib file if we build a DLL.
7891 old_archive_From_new_cmds='true'
7892 # FIXME: Should let the user specify the lib program.
7893 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7894 fix_srcfile_path='`cygpath -w "$srcfile"`'
7895 enable_shared_with_static_runtimes=yes
7898 darwin* | rhapsody*)
7899 if test "$GXX" = yes ; then
7900 archive_cmds_need_lc=no
7902 rhapsody* | darwin1.[012])
7903 allow_undefined_flag='-undefined suppress'
7906 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7907 allow_undefined_flag='-flat_namespace -undefined suppress'
7909 case ${MACOSX_DEPLOYMENT_TARGET} in
7911 allow_undefined_flag='-flat_namespace -undefined suppress'
7914 allow_undefined_flag='-undefined dynamic_lookup'
7920 lt_int_apple_cc_single_mod=no
7921 output_verbose_link_cmd='echo'
7922 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7923 lt_int_apple_cc_single_mod=yes
7925 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7926 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7928 archive_cmds='$CC -r ${wl}-bind_at_load -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'
7930 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7931 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7932 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7933 archive_expsym_cmds='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}'
7935 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
7937 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}'
7939 hardcode_automatic=yes
7940 hardcode_shlibpath_var=unsupported
7941 whole_archive_flag_spec='-all_load $convenience'
7942 link_all_deplibs=yes
7949 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7950 hardcode_libdir_flag_spec='-L$libdir'
7951 hardcode_shlibpath_var=no
7958 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7959 # support. Future versions do this automatically, but an explicit c++rt0.o
7960 # does not break anything, and helps significantly (at the cost of a little
7963 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7964 hardcode_libdir_flag_spec='-R$libdir'
7966 hardcode_shlibpath_var=no
7969 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7971 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7973 hardcode_minus_L=yes
7974 hardcode_shlibpath_var=no
7977 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7978 freebsd* | kfreebsd*-gnu)
7979 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7980 hardcode_libdir_flag_spec='-R$libdir'
7982 hardcode_shlibpath_var=no
7986 if test "$GCC" = yes; then
7987 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'
7989 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'
7991 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7992 hardcode_libdir_separator=:
7995 # hardcode_minus_L: Not really in the search PATH,
7996 # but as the default location of the library.
7997 hardcode_minus_L=yes
7998 export_dynamic_flag_spec='${wl}-E'
8002 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8005 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8008 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8014 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8017 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8021 if test "$with_gnu_ld" = no; then
8024 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8025 hardcode_libdir_flag_spec_ld='+b $libdir'
8026 hardcode_libdir_separator=:
8028 hardcode_shlibpath_var=no
8031 hardcode_libdir_flag_spec='-L$libdir'
8033 hardcode_shlibpath_var=no
8035 # hardcode_minus_L: Not really in the search PATH,
8036 # but as the default location of the library.
8037 hardcode_minus_L=yes
8040 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8041 hardcode_libdir_separator=:
8043 export_dynamic_flag_spec='${wl}-E'
8045 # hardcode_minus_L: Not really in the search PATH,
8046 # but as the default location of the library.
8047 hardcode_minus_L=yes
8053 irix5* | irix6* | nonstopux*)
8054 if test "$GCC" = yes; then
8055 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'
8057 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'
8058 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8060 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8061 hardcode_libdir_separator=:
8062 link_all_deplibs=yes
8066 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8067 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8069 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8071 hardcode_libdir_flag_spec='-R$libdir'
8073 hardcode_shlibpath_var=no
8077 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8079 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8080 hardcode_libdir_separator=:
8081 hardcode_shlibpath_var=no
8086 hardcode_shlibpath_var=no
8087 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8088 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8089 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8090 export_dynamic_flag_spec='${wl}-E'
8093 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8094 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8095 hardcode_libdir_flag_spec='-R$libdir'
8098 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8099 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8106 hardcode_libdir_flag_spec='-L$libdir'
8107 hardcode_minus_L=yes
8108 allow_undefined_flag=unsupported
8109 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'
8110 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8114 if test "$GCC" = yes; then
8115 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8116 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'
8118 allow_undefined_flag=' -expect_unresolved \*'
8119 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'
8121 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8122 hardcode_libdir_separator=:
8125 osf4* | osf5*) # as osf3* with the addition of -msym flag
8126 if test "$GCC" = yes; then
8127 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8128 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'
8129 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8131 allow_undefined_flag=' -expect_unresolved \*'
8132 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'
8133 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8134 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
8136 # Both c and cxx compiler support -rpath directly
8137 hardcode_libdir_flag_spec='-rpath $libdir'
8139 hardcode_libdir_separator=:
8143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8144 hardcode_shlibpath_var=no
8145 export_dynamic_flag_spec='${wl}-Bexport'
8146 runpath_var=LD_RUN_PATH
8147 hardcode_runpath_var=yes
8151 no_undefined_flag=' -z text'
8152 if test "$GCC" = yes; then
8153 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8154 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8155 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8157 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8158 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8159 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8161 hardcode_libdir_flag_spec='-R$libdir'
8162 hardcode_shlibpath_var=no
8164 solaris2.[0-5] | solaris2.[0-5].*) ;;
8165 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8166 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8168 link_all_deplibs=yes
8172 if test "x$host_vendor" = xsequent; then
8173 # Use $CC to link under sequent, because it throws in some extra .o
8174 # files that make .init and .fini sections work.
8175 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8177 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8179 hardcode_libdir_flag_spec='-L$libdir'
8181 hardcode_minus_L=yes
8182 hardcode_shlibpath_var=no
8186 case $host_vendor in
8188 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8189 hardcode_direct=yes # is this really true???
8192 ## LD is ld it makes a PLAMLIB
8193 ## CC just makes a GrossModule.
8194 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8195 reload_cmds='$CC -r -o $output$reload_objs'
8199 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8200 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8203 runpath_var='LD_RUN_PATH'
8204 hardcode_shlibpath_var=no
8208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8209 hardcode_shlibpath_var=no
8210 export_dynamic_flag_spec='-Bexport'
8214 if test -d /usr/nec; then
8215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8216 hardcode_shlibpath_var=no
8217 runpath_var=LD_RUN_PATH
8218 hardcode_runpath_var=yes
8224 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8227 hardcode_shlibpath_var=no
8228 hardcode_runpath_var=yes
8229 runpath_var=LD_RUN_PATH
8232 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8233 no_undefined_flag='${wl}-z ${wl}text'
8234 if test "$GCC" = yes; then
8235 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8237 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8239 runpath_var='LD_RUN_PATH'
8240 hardcode_shlibpath_var=no
8244 no_undefined_flag=' -z text'
8245 # $CC -shared without GNU ld will not create a library from C++
8246 # object files and a static libstdc++, better avoid it by now
8247 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8248 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8249 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8250 hardcode_libdir_flag_spec=
8251 hardcode_shlibpath_var=no
8252 runpath_var='LD_RUN_PATH'
8256 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8257 hardcode_libdir_flag_spec='-L$libdir'
8258 hardcode_shlibpath_var=no
8267 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8268 echo "${ECHO_T}$ld_shlibs" >&6
8269 test "$ld_shlibs" = no && can_build_shared=no
8271 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8272 if test "$GCC" = yes; then
8273 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8277 # Do we need to explicitly link libc?
8279 case "x$archive_cmds_need_lc" in
8281 # Assume -lc should be added
8282 archive_cmds_need_lc=yes
8284 if test "$enable_shared" = yes && test "$GCC" = yes; then
8285 case $archive_cmds in
8287 # FIXME: we may have to deal with multi-command sequences.
8290 # Test whether the compiler implicitly links with -lc since on some
8291 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8292 # to ld, don't add -lc before -lgcc.
8293 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8294 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8296 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8299 (eval $ac_compile) 2>&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } 2>conftest.err; then
8305 libobjs=conftest.$ac_objext
8307 wl=$lt_prog_compiler_wl
8313 lt_save_allow_undefined_flag=$allow_undefined_flag
8314 allow_undefined_flag=
8315 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8316 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); }
8321 archive_cmds_need_lc=no
8323 archive_cmds_need_lc=yes
8325 allow_undefined_flag=$lt_save_allow_undefined_flag
8327 cat conftest.err 1>&5
8330 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8331 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8338 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8339 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8341 libname_spec='lib$name'
8349 shlibpath_overrides_runpath=unknown
8351 dynamic_linker="$host_os ld.so"
8352 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8353 if test "$GCC" = yes; then
8354 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8355 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8356 # if the path contains ";" then we assume it to be the separator
8357 # otherwise default to the standard path separator (i.e. ":") - it is
8358 # assumed that no part of a normal pathname contains ";" but that should
8359 # okay in the real world where ";" in dirpaths is itself problematic.
8360 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8362 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8365 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8367 need_lib_prefix=unknown
8368 hardcode_into_libs=no
8370 # when you set need_version to no, make sure it does not cause -set_version
8371 # flags to be left without arguments
8372 need_version=unknown
8377 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8378 shlibpath_var=LIBPATH
8380 # AIX 3 has no versioning support, so we append a major version to the name.
8381 soname_spec='${libname}${release}${shared_ext}$major'
8388 hardcode_into_libs=yes
8389 if test "$host_cpu" = ia64; then
8390 # AIX 5 supports IA64
8391 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8392 shlibpath_var=LD_LIBRARY_PATH
8394 # With GCC up to 2.95.x, collect2 would create an import file
8395 # for dependence libraries. The import file would start with
8396 # the line `#! .'. This would cause the generated library to
8397 # depend on `.', always an invalid library. This was fixed in
8398 # development snapshots of GCC prior to 3.0.
8400 aix4 | aix4.[01] | aix4.[01].*)
8401 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8403 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8410 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8411 # soname into executable. Probably we can add versioning support to
8412 # collect2, so additional links can be useful in future.
8413 if test "$aix_use_runtimelinking" = yes; then
8414 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8415 # instead of lib<name>.a to let people know that these are not
8416 # typical AIX shared libraries.
8417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8419 # We preserve .a as extension for shared libraries through AIX4.2
8420 # and later when we are not doing run time linking.
8421 library_names_spec='${libname}${release}.a $libname.a'
8422 soname_spec='${libname}${release}${shared_ext}$major'
8424 shlibpath_var=LIBPATH
8429 library_names_spec='$libname.ixlibrary $libname.a'
8430 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8431 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'
8435 library_names_spec='${libname}${shared_ext}'
8436 dynamic_linker="$host_os ld.so"
8437 shlibpath_var=LIBRARY_PATH
8443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8444 soname_spec='${libname}${release}${shared_ext}$major'
8445 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8446 shlibpath_var=LD_LIBRARY_PATH
8447 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8448 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8449 # the default ld.so.conf also contains /usr/contrib/lib and
8450 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8451 # libtool to hard-code these into programs
8454 cygwin* | mingw* | pw32*)
8455 version_type=windows
8460 case $GCC,$host_os in
8461 yes,cygwin* | yes,mingw* | yes,pw32*)
8462 library_names_spec='$libname.dll.a'
8463 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8464 postinstall_cmds='base_file=`basename \${file}`~
8465 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8466 dldir=$destdir/`dirname \$dlpath`~
8467 test -d \$dldir || mkdir -p \$dldir~
8468 $install_prog $dir/$dlname \$dldir/$dlname'
8469 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8470 dlpath=$dir/\$dldll~
8472 shlibpath_overrides_runpath=yes
8476 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8477 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8478 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8481 # MinGW DLLs use traditional 'lib' prefix
8482 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8483 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8484 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8485 # It is most probably a Windows format PATH printed by
8486 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8487 # path with ; separators, and with drive letters. We can handle the
8488 # drive letters (cygwin fileutils understands them), so leave them,
8489 # especially as we might pass files found there to a mingw objdump,
8490 # which wouldn't understand a cygwinified path. Ahh.
8491 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8493 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8497 # pw32 DLLs use 'pw' prefix rather than 'lib'
8498 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8504 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8507 dynamic_linker='Win32 ld.exe'
8508 # FIXME: first we should search . and the directory the executable is in
8512 darwin* | rhapsody*)
8513 dynamic_linker="$host_os dyld"
8517 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8518 soname_spec='${libname}${release}${major}$shared_ext'
8519 shlibpath_overrides_runpath=yes
8520 shlibpath_var=DYLD_LIBRARY_PATH
8521 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
8522 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8523 if test "$GCC" = yes; then
8524 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"`
8526 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8528 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8536 soname_spec='${libname}${release}${shared_ext}$major'
8537 shlibpath_var=LD_LIBRARY_PATH
8548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8549 soname_spec='${libname}${release}${shared_ext}$major'
8550 shlibpath_var=LD_LIBRARY_PATH
8551 shlibpath_overrides_runpath=no
8552 hardcode_into_libs=yes
8553 dynamic_linker='GNU ld.so'
8557 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8558 version_type=freebsd-$objformat
8559 case $version_type in
8561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8566 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8570 shlibpath_var=LD_LIBRARY_PATH
8573 shlibpath_overrides_runpath=yes
8575 freebsd3.01* | freebsdelf3.01*)
8576 shlibpath_overrides_runpath=yes
8577 hardcode_into_libs=yes
8580 shlibpath_overrides_runpath=no
8581 hardcode_into_libs=yes
8590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8591 soname_spec='${libname}${release}${shared_ext}$major'
8592 shlibpath_var=LD_LIBRARY_PATH
8593 hardcode_into_libs=yes
8596 hpux9* | hpux10* | hpux11*)
8597 # Give a soname corresponding to the major version so that dld.sl refuses to
8598 # link against other versions.
8605 hardcode_into_libs=yes
8606 dynamic_linker="$host_os dld.so"
8607 shlibpath_var=LD_LIBRARY_PATH
8608 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8610 soname_spec='${libname}${release}${shared_ext}$major'
8611 if test "X$HPUX_IA64_MODE" = X32; then
8612 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8614 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8616 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8620 hardcode_into_libs=yes
8621 dynamic_linker="$host_os dld.sl"
8622 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8623 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8625 soname_spec='${libname}${release}${shared_ext}$major'
8626 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8627 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8631 dynamic_linker="$host_os dld.sl"
8632 shlibpath_var=SHLIB_PATH
8633 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8635 soname_spec='${libname}${release}${shared_ext}$major'
8638 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8639 postinstall_cmds='chmod 555 $lib'
8642 irix5* | irix6* | nonstopux*)
8644 nonstopux*) version_type=nonstopux ;;
8646 if test "$lt_cv_prog_gnu_ld" = yes; then
8654 soname_spec='${libname}${release}${shared_ext}$major'
8655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8657 irix5* | nonstopux*)
8661 case $LD in # libtool.m4 will add one of these switches to LD
8662 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8663 libsuff= shlibsuff= libmagic=32-bit;;
8664 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8665 libsuff=32 shlibsuff=N32 libmagic=N32;;
8666 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8667 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8668 *) libsuff= shlibsuff= libmagic=never-match;;
8672 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8673 shlibpath_overrides_runpath=no
8674 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8675 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8676 hardcode_into_libs=yes
8679 # No shared lib support for Linux oldld, aout, or coff.
8680 linux*oldld* | linux*aout* | linux*coff*)
8684 # This must be Linux ELF.
8689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8690 soname_spec='${libname}${release}${shared_ext}$major'
8691 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8692 shlibpath_var=LD_LIBRARY_PATH
8693 shlibpath_overrides_runpath=no
8694 # This implies no fast_install, which is unacceptable.
8695 # Some rework will be needed to allow for fast_install
8696 # before this can be enabled.
8697 hardcode_into_libs=yes
8699 # Append ld.so.conf contents to the search path
8700 if test -f /etc/ld.so.conf; then
8701 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
8702 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
8705 # We used to test for /lib/ld.so.1 and disable shared libraries on
8706 # powerpc, because MkLinux only supported shared libraries with the
8707 # GNU dynamic linker. Since this was broken with cross compilers,
8708 # most powerpc-linux boxes support dynamic linking these days and
8709 # people can always --disable-shared, the test was removed, and we
8710 # assume the GNU/Linux dynamic linker is in use.
8711 dynamic_linker='GNU/Linux ld.so'
8718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8719 soname_spec='${libname}${release}${shared_ext}$major'
8720 shlibpath_var=LD_LIBRARY_PATH
8721 shlibpath_overrides_runpath=no
8722 hardcode_into_libs=yes
8723 dynamic_linker='GNU ld.so'
8730 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8732 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8733 dynamic_linker='NetBSD (a.out) ld.so'
8735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8736 soname_spec='${libname}${release}${shared_ext}$major'
8737 dynamic_linker='NetBSD ld.elf_so'
8739 shlibpath_var=LD_LIBRARY_PATH
8740 shlibpath_overrides_runpath=yes
8741 hardcode_into_libs=yes
8746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8747 shlibpath_var=LD_LIBRARY_PATH
8748 shlibpath_overrides_runpath=yes
8755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8756 soname_spec='${libname}${release}${shared_ext}$major'
8757 shlibpath_var=LD_LIBRARY_PATH
8758 shlibpath_overrides_runpath=yes
8765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8766 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8767 shlibpath_var=LD_LIBRARY_PATH
8768 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8770 openbsd2.[89] | openbsd2.[89].*)
8771 shlibpath_overrides_runpath=no
8774 shlibpath_overrides_runpath=yes
8778 shlibpath_overrides_runpath=yes
8783 libname_spec='$name'
8786 library_names_spec='$libname${shared_ext} $libname.a'
8787 dynamic_linker='OS/2 ld.exe'
8788 shlibpath_var=LIBPATH
8791 osf3* | osf4* | osf5*)
8795 soname_spec='${libname}${release}${shared_ext}$major'
8796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8797 shlibpath_var=LD_LIBRARY_PATH
8798 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8799 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8804 soname_spec='${libname}${release}${shared_ext}$major'
8805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8806 shlibpath_var=LD_LIBRARY_PATH
8813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8814 soname_spec='${libname}${release}${shared_ext}$major'
8815 shlibpath_var=LD_LIBRARY_PATH
8816 shlibpath_overrides_runpath=yes
8817 hardcode_into_libs=yes
8818 # ldd complains unless libraries are executable
8819 postinstall_cmds='chmod +x $lib'
8824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8825 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8826 shlibpath_var=LD_LIBRARY_PATH
8827 shlibpath_overrides_runpath=yes
8828 if test "$with_gnu_ld" = yes; then
8834 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8837 soname_spec='${libname}${release}${shared_ext}$major'
8838 shlibpath_var=LD_LIBRARY_PATH
8839 case $host_vendor in
8841 shlibpath_overrides_runpath=no
8843 export_dynamic_flag_spec='${wl}-Blargedynsym'
8844 runpath_var=LD_RUN_PATH
8852 shlibpath_overrides_runpath=no
8853 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8859 if test -d /usr/nec ;then
8861 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8862 soname_spec='$libname${shared_ext}.$major'
8863 shlibpath_var=LD_LIBRARY_PATH
8869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8870 soname_spec='${libname}${release}${shared_ext}$major'
8871 shlibpath_var=LD_LIBRARY_PATH
8878 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8879 echo "${ECHO_T}$dynamic_linker" >&6
8880 test "$dynamic_linker" = no && can_build_shared=no
8882 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8883 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8885 if test -n "$hardcode_libdir_flag_spec" || \
8886 test -n "$runpath_var " || \
8887 test "X$hardcode_automatic"="Xyes" ; then
8889 # We can hardcode non-existant directories.
8890 if test "$hardcode_direct" != no &&
8891 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8892 # have to relink, otherwise we might link with an installed library
8893 # when we should be linking with a yet-to-be-installed one
8894 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8895 test "$hardcode_minus_L" != no; then
8896 # Linking always hardcodes the temporary library directory.
8897 hardcode_action=relink
8899 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8900 hardcode_action=immediate
8903 # We cannot hardcode anything, or else we can only hardcode existing
8905 hardcode_action=unsupported
8907 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8908 echo "${ECHO_T}$hardcode_action" >&6
8910 if test "$hardcode_action" = relink; then
8911 # Fast installation is not supported
8912 enable_fast_install=no
8913 elif test "$shlibpath_overrides_runpath" = yes ||
8914 test "$enable_shared" = no; then
8915 # Fast installation is not necessary
8916 enable_fast_install=needless
8921 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8922 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8923 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8924 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8925 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8926 echo "$as_me:$LINENO: result: yes" >&5
8927 echo "${ECHO_T}yes" >&6
8929 # FIXME - insert some real tests, host_os isn't really good enough
8932 if test -n "$STRIP" ; then
8933 striplib="$STRIP -x"
8934 echo "$as_me:$LINENO: result: yes" >&5
8935 echo "${ECHO_T}yes" >&6
8937 echo "$as_me:$LINENO: result: no" >&5
8938 echo "${ECHO_T}no" >&6
8942 echo "$as_me:$LINENO: result: no" >&5
8943 echo "${ECHO_T}no" >&6
8948 if test "x$enable_dlopen" != xyes; then
8949 enable_dlopen=unknown
8950 enable_dlopen_self=unknown
8951 enable_dlopen_self_static=unknown
8958 lt_cv_dlopen="load_add_on"
8960 lt_cv_dlopen_self=yes
8964 lt_cv_dlopen="LoadLibrary"
8969 lt_cv_dlopen="dlopen"
8974 # if libdl is installed we need to link against it
8975 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8976 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8977 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8978 echo $ECHO_N "(cached) $ECHO_C" >&6
8980 ac_check_lib_save_LIBS=$LIBS
8982 cat >conftest.$ac_ext <<_ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h. */
8989 /* Override any gcc2 internal prototype to avoid an error. */
8993 /* We use char because int might match the return type of a gcc2
8994 builtin and then its argument prototype would still apply. */
9004 rm -f conftest.$ac_objext conftest$ac_exeext
9005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9006 (eval $ac_link) 2>conftest.er1
9008 grep -v '^ *+' conftest.er1 >conftest.err
9010 cat conftest.err >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } &&
9013 { ac_try='test -z "$ac_c_werror_flag"
9014 || test ! -s conftest.err'
9015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); }; } &&
9020 { ac_try='test -s conftest$ac_exeext'
9021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); }; }; then
9026 ac_cv_lib_dl_dlopen=yes
9028 echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9031 ac_cv_lib_dl_dlopen=no
9033 rm -f conftest.err conftest.$ac_objext \
9034 conftest$ac_exeext conftest.$ac_ext
9035 LIBS=$ac_check_lib_save_LIBS
9037 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9038 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9039 if test $ac_cv_lib_dl_dlopen = yes; then
9040 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9045 lt_cv_dlopen_self=yes
9052 echo "$as_me:$LINENO: checking for shl_load" >&5
9053 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9054 if test "${ac_cv_func_shl_load+set}" = set; then
9055 echo $ECHO_N "(cached) $ECHO_C" >&6
9057 cat >conftest.$ac_ext <<_ACEOF
9060 cat confdefs.h >>conftest.$ac_ext
9061 cat >>conftest.$ac_ext <<_ACEOF
9062 /* end confdefs.h. */
9063 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9065 #define shl_load innocuous_shl_load
9067 /* System header to define __stub macros and hopefully few prototypes,
9068 which can conflict with char shl_load (); below.
9069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9070 <limits.h> exists even on freestanding compilers. */
9073 # include <limits.h>
9075 # include <assert.h>
9080 /* Override any gcc2 internal prototype to avoid an error. */
9085 /* We use char because int might match the return type of a gcc2
9086 builtin and then its argument prototype would still apply. */
9088 /* The GNU C library defines this for functions which it implements
9089 to always fail with ENOSYS. Some functions are actually named
9090 something starting with __ and the normal name is an alias. */
9091 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9094 char (*f) () = shl_load;
9103 return f != shl_load;
9108 rm -f conftest.$ac_objext conftest$ac_exeext
9109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9110 (eval $ac_link) 2>conftest.er1
9112 grep -v '^ *+' conftest.er1 >conftest.err
9114 cat conftest.err >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); } &&
9117 { ac_try='test -z "$ac_c_werror_flag"
9118 || test ! -s conftest.err'
9119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); }; } &&
9124 { ac_try='test -s conftest$ac_exeext'
9125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; }; then
9130 ac_cv_func_shl_load=yes
9132 echo "$as_me: failed program was:" >&5
9133 sed 's/^/| /' conftest.$ac_ext >&5
9135 ac_cv_func_shl_load=no
9137 rm -f conftest.err conftest.$ac_objext \
9138 conftest$ac_exeext conftest.$ac_ext
9140 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9141 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9142 if test $ac_cv_func_shl_load = yes; then
9143 lt_cv_dlopen="shl_load"
9145 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9146 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9147 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9148 echo $ECHO_N "(cached) $ECHO_C" >&6
9150 ac_check_lib_save_LIBS=$LIBS
9152 cat >conftest.$ac_ext <<_ACEOF
9155 cat confdefs.h >>conftest.$ac_ext
9156 cat >>conftest.$ac_ext <<_ACEOF
9157 /* end confdefs.h. */
9159 /* Override any gcc2 internal prototype to avoid an error. */
9163 /* We use char because int might match the return type of a gcc2
9164 builtin and then its argument prototype would still apply. */
9174 rm -f conftest.$ac_objext conftest$ac_exeext
9175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9176 (eval $ac_link) 2>conftest.er1
9178 grep -v '^ *+' conftest.er1 >conftest.err
9180 cat conftest.err >&5
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); } &&
9183 { ac_try='test -z "$ac_c_werror_flag"
9184 || test ! -s conftest.err'
9185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); }; } &&
9190 { ac_try='test -s conftest$ac_exeext'
9191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); }; }; then
9196 ac_cv_lib_dld_shl_load=yes
9198 echo "$as_me: failed program was:" >&5
9199 sed 's/^/| /' conftest.$ac_ext >&5
9201 ac_cv_lib_dld_shl_load=no
9203 rm -f conftest.err conftest.$ac_objext \
9204 conftest$ac_exeext conftest.$ac_ext
9205 LIBS=$ac_check_lib_save_LIBS
9207 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9208 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9209 if test $ac_cv_lib_dld_shl_load = yes; then
9210 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9212 echo "$as_me:$LINENO: checking for dlopen" >&5
9213 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9214 if test "${ac_cv_func_dlopen+set}" = set; then
9215 echo $ECHO_N "(cached) $ECHO_C" >&6
9217 cat >conftest.$ac_ext <<_ACEOF
9220 cat confdefs.h >>conftest.$ac_ext
9221 cat >>conftest.$ac_ext <<_ACEOF
9222 /* end confdefs.h. */
9223 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9225 #define dlopen innocuous_dlopen
9227 /* System header to define __stub macros and hopefully few prototypes,
9228 which can conflict with char dlopen (); below.
9229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9230 <limits.h> exists even on freestanding compilers. */
9233 # include <limits.h>
9235 # include <assert.h>
9240 /* Override any gcc2 internal prototype to avoid an error. */
9245 /* We use char because int might match the return type of a gcc2
9246 builtin and then its argument prototype would still apply. */
9248 /* The GNU C library defines this for functions which it implements
9249 to always fail with ENOSYS. Some functions are actually named
9250 something starting with __ and the normal name is an alias. */
9251 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9254 char (*f) () = dlopen;
9268 rm -f conftest.$ac_objext conftest$ac_exeext
9269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9270 (eval $ac_link) 2>conftest.er1
9272 grep -v '^ *+' conftest.er1 >conftest.err
9274 cat conftest.err >&5
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); } &&
9277 { ac_try='test -z "$ac_c_werror_flag"
9278 || test ! -s conftest.err'
9279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); }; } &&
9284 { ac_try='test -s conftest$ac_exeext'
9285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }; }; then
9290 ac_cv_func_dlopen=yes
9292 echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9295 ac_cv_func_dlopen=no
9297 rm -f conftest.err conftest.$ac_objext \
9298 conftest$ac_exeext conftest.$ac_ext
9300 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9301 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9302 if test $ac_cv_func_dlopen = yes; then
9303 lt_cv_dlopen="dlopen"
9305 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9306 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9307 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9308 echo $ECHO_N "(cached) $ECHO_C" >&6
9310 ac_check_lib_save_LIBS=$LIBS
9312 cat >conftest.$ac_ext <<_ACEOF
9315 cat confdefs.h >>conftest.$ac_ext
9316 cat >>conftest.$ac_ext <<_ACEOF
9317 /* end confdefs.h. */
9319 /* Override any gcc2 internal prototype to avoid an error. */
9323 /* We use char because int might match the return type of a gcc2
9324 builtin and then its argument prototype would still apply. */
9334 rm -f conftest.$ac_objext conftest$ac_exeext
9335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9336 (eval $ac_link) 2>conftest.er1
9338 grep -v '^ *+' conftest.er1 >conftest.err
9340 cat conftest.err >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); } &&
9343 { ac_try='test -z "$ac_c_werror_flag"
9344 || test ! -s conftest.err'
9345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); }; } &&
9350 { ac_try='test -s conftest$ac_exeext'
9351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); }; }; then
9356 ac_cv_lib_dl_dlopen=yes
9358 echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.$ac_ext >&5
9361 ac_cv_lib_dl_dlopen=no
9363 rm -f conftest.err conftest.$ac_objext \
9364 conftest$ac_exeext conftest.$ac_ext
9365 LIBS=$ac_check_lib_save_LIBS
9367 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9368 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9369 if test $ac_cv_lib_dl_dlopen = yes; then
9370 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9372 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9373 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9374 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9375 echo $ECHO_N "(cached) $ECHO_C" >&6
9377 ac_check_lib_save_LIBS=$LIBS
9379 cat >conftest.$ac_ext <<_ACEOF
9382 cat confdefs.h >>conftest.$ac_ext
9383 cat >>conftest.$ac_ext <<_ACEOF
9384 /* end confdefs.h. */
9386 /* Override any gcc2 internal prototype to avoid an error. */
9390 /* We use char because int might match the return type of a gcc2
9391 builtin and then its argument prototype would still apply. */
9401 rm -f conftest.$ac_objext conftest$ac_exeext
9402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9403 (eval $ac_link) 2>conftest.er1
9405 grep -v '^ *+' conftest.er1 >conftest.err
9407 cat conftest.err >&5
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); } &&
9410 { ac_try='test -z "$ac_c_werror_flag"
9411 || test ! -s conftest.err'
9412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); }; } &&
9417 { ac_try='test -s conftest$ac_exeext'
9418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); }; }; then
9423 ac_cv_lib_svld_dlopen=yes
9425 echo "$as_me: failed program was:" >&5
9426 sed 's/^/| /' conftest.$ac_ext >&5
9428 ac_cv_lib_svld_dlopen=no
9430 rm -f conftest.err conftest.$ac_objext \
9431 conftest$ac_exeext conftest.$ac_ext
9432 LIBS=$ac_check_lib_save_LIBS
9434 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9435 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9436 if test $ac_cv_lib_svld_dlopen = yes; then
9437 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9439 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9440 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9441 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
9444 ac_check_lib_save_LIBS=$LIBS
9446 cat >conftest.$ac_ext <<_ACEOF
9449 cat confdefs.h >>conftest.$ac_ext
9450 cat >>conftest.$ac_ext <<_ACEOF
9451 /* end confdefs.h. */
9453 /* Override any gcc2 internal prototype to avoid an error. */
9457 /* We use char because int might match the return type of a gcc2
9458 builtin and then its argument prototype would still apply. */
9468 rm -f conftest.$ac_objext conftest$ac_exeext
9469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9470 (eval $ac_link) 2>conftest.er1
9472 grep -v '^ *+' conftest.er1 >conftest.err
9474 cat conftest.err >&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); } &&
9477 { ac_try='test -z "$ac_c_werror_flag"
9478 || test ! -s conftest.err'
9479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); }; } &&
9484 { ac_try='test -s conftest$ac_exeext'
9485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489 (exit $ac_status); }; }; then
9490 ac_cv_lib_dld_dld_link=yes
9492 echo "$as_me: failed program was:" >&5
9493 sed 's/^/| /' conftest.$ac_ext >&5
9495 ac_cv_lib_dld_dld_link=no
9497 rm -f conftest.err conftest.$ac_objext \
9498 conftest$ac_exeext conftest.$ac_ext
9499 LIBS=$ac_check_lib_save_LIBS
9501 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9502 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9503 if test $ac_cv_lib_dld_dld_link = yes; then
9504 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9525 if test "x$lt_cv_dlopen" != xno; then
9531 case $lt_cv_dlopen in
9533 save_CPPFLAGS="$CPPFLAGS"
9534 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9536 save_LDFLAGS="$LDFLAGS"
9537 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9540 LIBS="$lt_cv_dlopen_libs $LIBS"
9542 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9543 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9544 if test "${lt_cv_dlopen_self+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9547 if test "$cross_compiling" = yes; then :
9548 lt_cv_dlopen_self=cross
9550 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9551 lt_status=$lt_dlunknown
9552 cat > conftest.$ac_ext <<EOF
9553 #line 9553 "configure"
9554 #include "confdefs.h"
9563 # define LT_DLGLOBAL RTLD_GLOBAL
9566 # define LT_DLGLOBAL DL_GLOBAL
9568 # define LT_DLGLOBAL 0
9572 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9573 find out it does not work in some platform. */
9574 #ifndef LT_DLLAZY_OR_NOW
9576 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9579 # define LT_DLLAZY_OR_NOW DL_LAZY
9582 # define LT_DLLAZY_OR_NOW RTLD_NOW
9585 # define LT_DLLAZY_OR_NOW DL_NOW
9587 # define LT_DLLAZY_OR_NOW 0
9595 extern "C" void exit (int);
9598 void fnord() { int i=42;}
9601 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9602 int status = $lt_dlunknown;
9606 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9607 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9608 /* dlclose (self); */
9614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9615 (eval $ac_link) 2>&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9619 (./conftest; exit; ) 2>/dev/null
9622 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9623 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9624 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9627 # compilation failed
9628 lt_cv_dlopen_self=no
9635 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9636 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9638 if test "x$lt_cv_dlopen_self" = xyes; then
9639 LDFLAGS="$LDFLAGS $link_static_flag"
9640 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9641 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9642 if test "${lt_cv_dlopen_self_static+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9645 if test "$cross_compiling" = yes; then :
9646 lt_cv_dlopen_self_static=cross
9648 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9649 lt_status=$lt_dlunknown
9650 cat > conftest.$ac_ext <<EOF
9651 #line 9651 "configure"
9652 #include "confdefs.h"
9661 # define LT_DLGLOBAL RTLD_GLOBAL
9664 # define LT_DLGLOBAL DL_GLOBAL
9666 # define LT_DLGLOBAL 0
9670 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9671 find out it does not work in some platform. */
9672 #ifndef LT_DLLAZY_OR_NOW
9674 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9677 # define LT_DLLAZY_OR_NOW DL_LAZY
9680 # define LT_DLLAZY_OR_NOW RTLD_NOW
9683 # define LT_DLLAZY_OR_NOW DL_NOW
9685 # define LT_DLLAZY_OR_NOW 0
9693 extern "C" void exit (int);
9696 void fnord() { int i=42;}
9699 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9700 int status = $lt_dlunknown;
9704 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9705 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9706 /* dlclose (self); */
9712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9713 (eval $ac_link) 2>&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9717 (./conftest; exit; ) 2>/dev/null
9720 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9721 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9722 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9725 # compilation failed
9726 lt_cv_dlopen_self_static=no
9733 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9734 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9737 CPPFLAGS="$save_CPPFLAGS"
9738 LDFLAGS="$save_LDFLAGS"
9743 case $lt_cv_dlopen_self in
9744 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9745 *) enable_dlopen_self=unknown ;;
9748 case $lt_cv_dlopen_self_static in
9749 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9750 *) enable_dlopen_self_static=unknown ;;
9755 # Report which librarie types wil actually be built
9756 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9757 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9758 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9759 echo "${ECHO_T}$can_build_shared" >&6
9761 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9762 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9763 test "$can_build_shared" = "no" && enable_shared=no
9765 # On AIX, shared libraries and static libraries use the same namespace, and
9766 # are all built from PIC.
9769 test "$enable_shared" = yes && enable_static=no
9770 if test -n "$RANLIB"; then
9771 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9772 postinstall_cmds='$RANLIB $lib'
9777 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9778 test "$enable_shared" = yes && enable_static=no
9781 darwin* | rhapsody*)
9782 if test "$GCC" = yes; then
9783 archive_cmds_need_lc=no
9785 rhapsody* | darwin1.[012])
9786 allow_undefined_flag='-undefined suppress'
9789 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9790 allow_undefined_flag='-flat_namespace -undefined suppress'
9792 case ${MACOSX_DEPLOYMENT_TARGET} in
9794 allow_undefined_flag='-flat_namespace -undefined suppress'
9797 allow_undefined_flag='-undefined dynamic_lookup'
9803 output_verbose_link_cmd='echo'
9804 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9805 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9806 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9807 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}'
9808 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}'
9810 hardcode_automatic=yes
9811 hardcode_shlibpath_var=unsupported
9812 whole_archive_flag_spec='-all_load $convenience'
9813 link_all_deplibs=yes
9819 echo "$as_me:$LINENO: result: $enable_shared" >&5
9820 echo "${ECHO_T}$enable_shared" >&6
9822 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9823 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9824 # Make sure either enable_shared or enable_static is yes.
9825 test "$enable_shared" = yes || enable_static=yes
9826 echo "$as_me:$LINENO: result: $enable_static" >&5
9827 echo "${ECHO_T}$enable_static" >&6
9829 # The else clause should only fire when bootstrapping the
9830 # libtool distribution, otherwise you forgot to ship ltmain.sh
9831 # with your package, and you will get complaints that there are
9832 # no rules to generate ltmain.sh.
9833 if test -f "$ltmain"; then
9834 # See if we are running on zsh, and set the options which allow our commands through
9835 # without removal of \ escapes.
9836 if test -n "${ZSH_VERSION+set}" ; then
9837 setopt NO_GLOB_SUBST
9839 # Now quote all the things that may contain metacharacters while being
9840 # careful not to overquote the AC_SUBSTed values. We take copies of the
9841 # variables and quote the copies for generation of the libtool script.
9842 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9844 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9845 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9846 deplibs_check_method reload_flag reload_cmds need_locks \
9847 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9848 lt_cv_sys_global_symbol_to_c_name_address \
9849 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9850 old_postinstall_cmds old_postuninstall_cmds \
9854 lt_prog_compiler_wl \
9855 lt_prog_compiler_pic \
9856 lt_prog_compiler_static \
9857 lt_prog_compiler_no_builtin_flag \
9858 export_dynamic_flag_spec \
9859 thread_safe_flag_spec \
9860 whole_archive_flag_spec \
9861 enable_shared_with_static_runtimes \
9863 old_archive_from_new_cmds \
9868 compiler_lib_search_path \
9870 archive_expsym_cmds \
9872 postuninstall_cmds \
9873 old_archive_from_expsyms_cmds \
9874 allow_undefined_flag \
9876 export_symbols_cmds \
9877 hardcode_libdir_flag_spec \
9878 hardcode_libdir_flag_spec_ld \
9879 hardcode_libdir_separator \
9880 hardcode_automatic \
9882 module_expsym_cmds \
9883 lt_cv_prog_compiler_c_o \
9888 old_archive_cmds | \
9889 old_archive_from_new_cmds | \
9891 archive_expsym_cmds | \
9893 module_expsym_cmds | \
9894 old_archive_from_expsyms_cmds | \
9895 export_symbols_cmds | \
9896 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9897 postinstall_cmds | postuninstall_cmds | \
9898 old_postinstall_cmds | old_postuninstall_cmds | \
9899 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9900 # Double-quote double-evaled strings.
9901 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9904 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9910 *'\$0 --fallback-echo"')
9911 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9916 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9918 { echo "$as_me:$LINENO: creating $ofile" >&5
9919 echo "$as_me: creating $ofile" >&6;}
9921 cat <<__EOF__ >> "$cfgfile"
9924 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9925 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9926 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9928 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9929 # Free Software Foundation, Inc.
9931 # This file is part of GNU Libtool:
9932 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9934 # This program is free software; you can redistribute it and/or modify
9935 # it under the terms of the GNU General Public License as published by
9936 # the Free Software Foundation; either version 2 of the License, or
9937 # (at your option) any later version.
9939 # This program is distributed in the hope that it will be useful, but
9940 # WITHOUT ANY WARRANTY; without even the implied warranty of
9941 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9942 # General Public License for more details.
9944 # You should have received a copy of the GNU General Public License
9945 # along with this program; if not, write to the Free Software
9946 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9948 # As a special exception to the GNU General Public License, if you
9949 # distribute this file as part of a program that contains a
9950 # configuration script generated by Autoconf, you may include it under
9951 # the same distribution terms that you use for the rest of that program.
9953 # A sed program that does not truncate output.
9956 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9957 Xsed="$SED -e s/^X//"
9959 # The HP-UX ksh and POSIX shell print the target directory to stdout
9961 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9963 # The names of the tagged configurations supported by this script.
9966 # ### BEGIN LIBTOOL CONFIG
9968 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9970 # Shell to use when invoking shell scripts.
9973 # Whether or not to build shared libraries.
9974 build_libtool_libs=$enable_shared
9976 # Whether or not to build static libraries.
9977 build_old_libs=$enable_static
9979 # Whether or not to add -lc for building shared libraries.
9980 build_libtool_need_lc=$archive_cmds_need_lc
9982 # Whether or not to disallow shared libs when runtime libs are static
9983 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9985 # Whether or not to optimize for fast installation.
9986 fast_install=$enable_fast_install
9989 host_alias=$host_alias
9992 # An echo program that does not interpret backslashes.
9997 AR_FLAGS=$lt_AR_FLAGS
10002 # A language-specific compiler.
10005 # Is the compiler the GNU C compiler?
10011 # The linker used to build libraries.
10014 # Whether we need hard or soft links.
10017 # A BSD-compatible nm program.
10020 # A symbol stripping program
10023 # Used to examine libraries when file_magic_cmd begins "file"
10024 MAGIC_CMD=$MAGIC_CMD
10026 # Used on cygwin: DLL creation program.
10029 # Used on cygwin: object dumper.
10032 # Used on cygwin: assembler.
10035 # The name of the directory that contains temporary libtool files.
10038 # How to create reloadable object files.
10039 reload_flag=$lt_reload_flag
10040 reload_cmds=$lt_reload_cmds
10042 # How to pass a linker flag through the compiler.
10043 wl=$lt_lt_prog_compiler_wl
10045 # Object file suffix (normally "o").
10046 objext="$ac_objext"
10048 # Old archive suffix (normally "a").
10051 # Shared library suffix (normally ".so").
10054 # Executable file suffix (normally "").
10057 # Additional compiler flags for building library objects.
10058 pic_flag=$lt_lt_prog_compiler_pic
10061 # What is the maximum length of a command?
10062 max_cmd_len=$lt_cv_sys_max_cmd_len
10064 # Does compiler simultaneously support -c and -o options?
10065 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10067 # Must we lock files when doing compilation ?
10068 need_locks=$lt_need_locks
10070 # Do we need the lib prefix for modules?
10071 need_lib_prefix=$need_lib_prefix
10073 # Do we need a version for libraries?
10074 need_version=$need_version
10076 # Whether dlopen is supported.
10077 dlopen_support=$enable_dlopen
10079 # Whether dlopen of programs is supported.
10080 dlopen_self=$enable_dlopen_self
10082 # Whether dlopen of statically linked programs is supported.
10083 dlopen_self_static=$enable_dlopen_self_static
10085 # Compiler flag to prevent dynamic linking.
10086 link_static_flag=$lt_lt_prog_compiler_static
10088 # Compiler flag to turn off builtin functions.
10089 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10091 # Compiler flag to allow reflexive dlopens.
10092 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10094 # Compiler flag to generate shared objects directly from archives.
10095 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10097 # Compiler flag to generate thread-safe objects.
10098 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10100 # Library versioning type.
10101 version_type=$version_type
10103 # Format of library name prefix.
10104 libname_spec=$lt_libname_spec
10106 # List of archive names. First name is the real one, the rest are links.
10107 # The last name is the one that the linker finds with -lNAME.
10108 library_names_spec=$lt_library_names_spec
10110 # The coded name of the library, if different from the real name.
10111 soname_spec=$lt_soname_spec
10113 # Commands used to build and install an old-style archive.
10115 old_archive_cmds=$lt_old_archive_cmds
10116 old_postinstall_cmds=$lt_old_postinstall_cmds
10117 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10119 # Create an old-style archive from a shared archive.
10120 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10122 # Create a temporary old-style archive to link instead of a shared archive.
10123 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10125 # Commands used to build and install a shared archive.
10126 archive_cmds=$lt_archive_cmds
10127 archive_expsym_cmds=$lt_archive_expsym_cmds
10128 postinstall_cmds=$lt_postinstall_cmds
10129 postuninstall_cmds=$lt_postuninstall_cmds
10131 # Commands used to build a loadable module (assumed same as above if empty)
10132 module_cmds=$lt_module_cmds
10133 module_expsym_cmds=$lt_module_expsym_cmds
10135 # Commands to strip libraries.
10136 old_striplib=$lt_old_striplib
10137 striplib=$lt_striplib
10139 # Dependencies to place before the objects being linked to create a
10141 predep_objects=$lt_predep_objects
10143 # Dependencies to place after the objects being linked to create a
10145 postdep_objects=$lt_postdep_objects
10147 # Dependencies to place before the objects being linked to create a
10149 predeps=$lt_predeps
10151 # Dependencies to place after the objects being linked to create a
10153 postdeps=$lt_postdeps
10155 # The library search path used internally by the compiler when linking
10156 # a shared library.
10157 compiler_lib_search_path=$lt_compiler_lib_search_path
10159 # Method to check whether dependent libraries are shared objects.
10160 deplibs_check_method=$lt_deplibs_check_method
10162 # Command to use when deplibs_check_method == file_magic.
10163 file_magic_cmd=$lt_file_magic_cmd
10165 # Flag that allows shared libraries with undefined symbols to be built.
10166 allow_undefined_flag=$lt_allow_undefined_flag
10168 # Flag that forces no undefined symbols.
10169 no_undefined_flag=$lt_no_undefined_flag
10171 # Commands used to finish a libtool library installation in a directory.
10172 finish_cmds=$lt_finish_cmds
10174 # Same as above, but a single script fragment to be evaled but not shown.
10175 finish_eval=$lt_finish_eval
10177 # Take the output of nm and produce a listing of raw symbols and C names.
10178 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10180 # Transform the output of nm in a proper C declaration
10181 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10183 # Transform the output of nm in a C name address pair
10184 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10186 # This is the shared library runtime path variable.
10187 runpath_var=$runpath_var
10189 # This is the shared library path variable.
10190 shlibpath_var=$shlibpath_var
10192 # Is shlibpath searched before the hard-coded library search path?
10193 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10195 # How to hardcode a shared library path into an executable.
10196 hardcode_action=$hardcode_action
10198 # Whether we should hardcode library paths into libraries.
10199 hardcode_into_libs=$hardcode_into_libs
10201 # Flag to hardcode \$libdir into a binary during linking.
10202 # This must work even if \$libdir does not exist.
10203 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10205 # If ld is used when linking, flag to hardcode \$libdir into
10206 # a binary during linking. This must work even if \$libdir does
10208 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10210 # Whether we need a single -rpath flag with a separated argument.
10211 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10213 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10214 # resulting binary.
10215 hardcode_direct=$hardcode_direct
10217 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10218 # resulting binary.
10219 hardcode_minus_L=$hardcode_minus_L
10221 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10222 # the resulting binary.
10223 hardcode_shlibpath_var=$hardcode_shlibpath_var
10225 # Set to yes if building a shared library automatically hardcodes DIR into the library
10226 # and all subsequent libraries and executables linked against it.
10227 hardcode_automatic=$hardcode_automatic
10229 # Variables whose values should be saved in libtool wrapper scripts and
10230 # restored at relink time.
10231 variables_saved_for_relink="$variables_saved_for_relink"
10233 # Whether libtool must link a program against all its dependency libraries.
10234 link_all_deplibs=$link_all_deplibs
10236 # Compile-time system search path for libraries
10237 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10239 # Run-time system search path for libraries
10240 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10242 # Fix the shell variable \$srcfile for the compiler.
10243 fix_srcfile_path="$fix_srcfile_path"
10245 # Set to yes if exported symbols are required.
10246 always_export_symbols=$always_export_symbols
10248 # The commands to list exported symbols.
10249 export_symbols_cmds=$lt_export_symbols_cmds
10251 # The commands to extract the exported symbol list from a shared archive.
10252 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10254 # Symbols that should not be listed in the preloaded symbols.
10255 exclude_expsyms=$lt_exclude_expsyms
10257 # Symbols that must always be exported.
10258 include_expsyms=$lt_include_expsyms
10260 # ### END LIBTOOL CONFIG
10267 cat <<\EOF >> "$cfgfile"
10269 # AIX sometimes has problems with the GCC collect2 program. For some
10270 # reason, if we set the COLLECT_NAMES environment variable, the problems
10271 # vanish in a puff of smoke.
10272 if test "X${COLLECT_NAMES+set}" != Xset; then
10274 export COLLECT_NAMES
10280 # We use sed instead of cat because bash on DJGPP gets confused if
10281 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10282 # text mode, it properly converts lines to CR/LF. This bash problem
10283 # is reportedly fixed, but why not run on old versions too?
10284 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10286 mv -f "$cfgfile" "$ofile" || \
10287 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10291 # If there is no Makefile yet, we rely on a make rule to execute
10292 # `config.status --recheck' to rerun these tests and create the
10293 # libtool script then.
10294 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10295 if test -f "$ltmain_in"; then
10296 test -f Makefile && make "$ltmain"
10302 ac_cpp='$CPP $CPPFLAGS'
10303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10310 # Check whether --with-tags or --without-tags was given.
10311 if test "${with_tags+set}" = set; then
10312 withval="$with_tags"
10313 tagnames="$withval"
10316 if test -f "$ltmain" && test -n "$tagnames"; then
10317 if test ! -f "${ofile}"; then
10318 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10319 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10322 if test -z "$LTCC"; then
10323 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10324 if test -z "$LTCC"; then
10325 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10326 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10328 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10329 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10333 # Extract list of available tagged configurations in $ofile.
10334 # Note that this assumes the entire list is on one line.
10335 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10337 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10338 for tagname in $tagnames; do
10340 # Check whether tagname contains only valid characters
10341 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10343 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10344 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10345 { (exit 1); exit 1; }; }
10349 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10351 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10352 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10353 { (exit 1); exit 1; }; }
10356 # Update the list of available tags.
10357 if test -n "$tagname"; then
10358 echo appending configuration tag \"$tagname\" to $ofile
10362 if test -n "$CXX" && test "X$CXX" != "Xno"; then
10364 ac_cpp='$CXXCPP $CPPFLAGS'
10365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10372 archive_cmds_need_lc_CXX=no
10373 allow_undefined_flag_CXX=
10374 always_export_symbols_CXX=no
10375 archive_expsym_cmds_CXX=
10376 export_dynamic_flag_spec_CXX=
10377 hardcode_direct_CXX=no
10378 hardcode_libdir_flag_spec_CXX=
10379 hardcode_libdir_flag_spec_ld_CXX=
10380 hardcode_libdir_separator_CXX=
10381 hardcode_minus_L_CXX=no
10382 hardcode_automatic_CXX=no
10384 module_expsym_cmds_CXX=
10385 link_all_deplibs_CXX=unknown
10386 old_archive_cmds_CXX=$old_archive_cmds
10387 no_undefined_flag_CXX=
10388 whole_archive_flag_spec_CXX=
10389 enable_shared_with_static_runtimes_CXX=no
10391 # Dependencies to place before and after the object being linked:
10392 predep_objects_CXX=
10393 postdep_objects_CXX=
10396 compiler_lib_search_path_CXX=
10398 # Source file extension for C++ test sources.
10401 # Object file extension for compiled C++ test sources.
10405 # Code to be used in simple compile tests
10406 lt_simple_compile_test_code="int some_variable = 0;\n"
10408 # Code to be used in simple link tests
10409 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10411 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10413 # If no C compiler was specified, use CC.
10416 # Allow CC to be a program name with arguments.
10420 # Allow CC to be a program name with arguments.
10425 lt_save_with_gnu_ld=$with_gnu_ld
10426 lt_save_path_LD=$lt_cv_path_LD
10427 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10428 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10430 unset lt_cv_prog_gnu_ld
10432 if test -n "${lt_cv_path_LDCXX+set}"; then
10433 lt_cv_path_LD=$lt_cv_path_LDCXX
10435 unset lt_cv_path_LD
10437 test -z "${LDCXX+set}" || LD=$LDCXX
10441 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10443 # We don't want -fno-exception wen compiling C++ code, so set the
10444 # no_builtin_flag separately
10445 if test "$GXX" = yes; then
10446 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10448 lt_prog_compiler_no_builtin_flag_CXX=
10451 if test "$GXX" = yes; then
10452 # Set up default GNU C++ configuration
10455 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10456 if test "${with_gnu_ld+set}" = set; then
10457 withval="$with_gnu_ld"
10458 test "$withval" = no || with_gnu_ld=yes
10463 if test "$GCC" = yes; then
10464 # Check if gcc -print-prog-name=ld gives a path.
10465 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10466 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10469 # gcc leaves a trailing carriage return which upsets mingw
10470 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10472 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10475 # Accept absolute paths.
10477 re_direlt='/[^/][^/]*/\.\./'
10478 # Canonicalize the pathname of ld
10479 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10480 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10481 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10483 test -z "$LD" && LD="$ac_prog"
10486 # If it fails, then pretend we aren't using GCC.
10490 # If it is relative, then search for the first ld in PATH.
10491 with_gnu_ld=unknown
10494 elif test "$with_gnu_ld" = yes; then
10495 echo "$as_me:$LINENO: checking for GNU ld" >&5
10496 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10498 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10499 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10501 if test "${lt_cv_path_LD+set}" = set; then
10502 echo $ECHO_N "(cached) $ECHO_C" >&6
10504 if test -z "$LD"; then
10505 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10506 for ac_dir in $PATH; do
10508 test -z "$ac_dir" && ac_dir=.
10509 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10510 lt_cv_path_LD="$ac_dir/$ac_prog"
10511 # Check to see if the program is GNU ld. I'd rather use --version,
10512 # but apparently some GNU ld's only accept -v.
10513 # Break only if it was the GNU/non-GNU ld that we prefer.
10514 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10515 *GNU* | *'with BFD'*)
10516 test "$with_gnu_ld" != no && break
10519 test "$with_gnu_ld" != yes && break
10526 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10530 LD="$lt_cv_path_LD"
10531 if test -n "$LD"; then
10532 echo "$as_me:$LINENO: result: $LD" >&5
10533 echo "${ECHO_T}$LD" >&6
10535 echo "$as_me:$LINENO: result: no" >&5
10536 echo "${ECHO_T}no" >&6
10538 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10539 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10540 { (exit 1); exit 1; }; }
10541 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10542 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10543 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10544 echo $ECHO_N "(cached) $ECHO_C" >&6
10546 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10547 case `$LD -v 2>&1 </dev/null` in
10548 *GNU* | *'with BFD'*)
10549 lt_cv_prog_gnu_ld=yes
10552 lt_cv_prog_gnu_ld=no
10556 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10557 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10558 with_gnu_ld=$lt_cv_prog_gnu_ld
10562 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10563 # archiving commands below assume that GNU ld is being used.
10564 if test "$with_gnu_ld" = yes; then
10565 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10566 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'
10568 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10569 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10571 # If archive_cmds runs LD, not CC, wlarc should be empty
10572 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10573 # investigate it a little bit more. (MM)
10576 # ancient GNU ld didn't support --whole-archive et. al.
10577 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10578 grep 'no-whole-archive' > /dev/null; then
10579 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10581 whole_archive_flag_spec_CXX=
10587 # A generic and very simple default shared library creation
10588 # command for GNU C++ for the case where it uses the native
10589 # linker, instead of GNU ld. If possible, this setting should
10590 # overridden to take advantage of the native linker features on
10591 # the platform it is being used on.
10592 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10595 # Commands to make compiler produce verbose output that lists
10596 # what "hidden" libraries, object files and flags are used when
10597 # linking a shared library.
10598 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10606 # PORTME: fill in a description of your system's C++ link characteristics
10607 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10608 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10612 # FIXME: insert proper C++ library support
10616 if test "$host_cpu" = ia64; then
10617 # On IA64, the linker does run time linking by default, so we don't
10618 # have to do anything special.
10619 aix_use_runtimelinking=no
10620 exp_sym_flag='-Bexport'
10623 aix_use_runtimelinking=no
10625 # Test if we are trying to use run time linking or normal
10626 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10627 # need to do runtime linking.
10628 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10629 for ld_flag in $LDFLAGS; do
10632 aix_use_runtimelinking=yes
10639 exp_sym_flag='-bexport'
10640 no_entry_flag='-bnoentry'
10643 # When large executables or shared objects are built, AIX ld can
10644 # have problems creating the table of contents. If linking a library
10645 # or program results in "error TOC overflow" add -mminimal-toc to
10646 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10647 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10649 archive_cmds_CXX=''
10650 hardcode_direct_CXX=yes
10651 hardcode_libdir_separator_CXX=':'
10652 link_all_deplibs_CXX=yes
10654 if test "$GXX" = yes; then
10655 case $host_os in aix4.012|aix4.012.*)
10656 # We only want to do this on AIX 4.2 and lower, the check
10657 # below for broken collect2 doesn't work under 4.3+
10658 collect2name=`${CC} -print-prog-name=collect2`
10659 if test -f "$collect2name" && \
10660 strings "$collect2name" | grep resolve_lib_name >/dev/null
10662 # We have reworked collect2
10663 hardcode_direct_CXX=yes
10665 # We have old collect2
10666 hardcode_direct_CXX=unsupported
10667 # It fails to find uninstalled libraries when the uninstalled
10668 # path is not listed in the libpath. Setting hardcode_minus_L
10669 # to unsupported forces relinking
10670 hardcode_minus_L_CXX=yes
10671 hardcode_libdir_flag_spec_CXX='-L$libdir'
10672 hardcode_libdir_separator_CXX=
10675 shared_flag='-shared'
10678 if test "$host_cpu" = ia64; then
10679 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10680 # chokes on -Wl,-G. The following line is correct:
10683 if test "$aix_use_runtimelinking" = yes; then
10684 shared_flag='${wl}-G'
10686 shared_flag='${wl}-bM:SRE'
10691 # It seems that -bexpall does not export symbols beginning with
10692 # underscore (_), so it is better to generate a list of symbols to export.
10693 always_export_symbols_CXX=yes
10694 if test "$aix_use_runtimelinking" = yes; then
10695 # Warning - without using the other runtime loading flags (-brtl),
10696 # -berok will link without error, but may produce a broken library.
10697 allow_undefined_flag_CXX='-berok'
10698 # Determine the default libpath from the value encoded in an empty executable.
10699 cat >conftest.$ac_ext <<_ACEOF
10702 cat confdefs.h >>conftest.$ac_ext
10703 cat >>conftest.$ac_ext <<_ACEOF
10704 /* end confdefs.h. */
10714 rm -f conftest.$ac_objext conftest$ac_exeext
10715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10716 (eval $ac_link) 2>conftest.er1
10718 grep -v '^ *+' conftest.er1 >conftest.err
10720 cat conftest.err >&5
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); } &&
10723 { ac_try='test -z "$ac_cxx_werror_flag"
10724 || test ! -s conftest.err'
10725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726 (eval $ac_try) 2>&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; } &&
10730 { ac_try='test -s conftest$ac_exeext'
10731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10732 (eval $ac_try) 2>&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; }; then
10737 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10739 # Check for a 64-bit object if we didn't find anything.
10740 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; }
10743 echo "$as_me: failed program was:" >&5
10744 sed 's/^/| /' conftest.$ac_ext >&5
10747 rm -f conftest.err conftest.$ac_objext \
10748 conftest$ac_exeext conftest.$ac_ext
10749 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10751 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10753 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"
10755 if test "$host_cpu" = ia64; then
10756 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10757 allow_undefined_flag_CXX="-z nodefs"
10758 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"
10760 # Determine the default libpath from the value encoded in an empty executable.
10761 cat >conftest.$ac_ext <<_ACEOF
10764 cat confdefs.h >>conftest.$ac_ext
10765 cat >>conftest.$ac_ext <<_ACEOF
10766 /* end confdefs.h. */
10776 rm -f conftest.$ac_objext conftest$ac_exeext
10777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10778 (eval $ac_link) 2>conftest.er1
10780 grep -v '^ *+' conftest.er1 >conftest.err
10782 cat conftest.err >&5
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); } &&
10785 { ac_try='test -z "$ac_cxx_werror_flag"
10786 || test ! -s conftest.err'
10787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788 (eval $ac_try) 2>&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); }; } &&
10792 { ac_try='test -s conftest$ac_exeext'
10793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10794 (eval $ac_try) 2>&5
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; }; then
10799 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10801 # Check for a 64-bit object if we didn't find anything.
10802 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; }
10805 echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.$ac_ext >&5
10809 rm -f conftest.err conftest.$ac_objext \
10810 conftest$ac_exeext conftest.$ac_ext
10811 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10813 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10814 # Warning - without using the other run time loading flags,
10815 # -berok will link without error, but may produce a broken library.
10816 no_undefined_flag_CXX=' ${wl}-bernotok'
10817 allow_undefined_flag_CXX=' ${wl}-berok'
10818 # -bexpall does not export symbols beginning with underscore (_)
10819 always_export_symbols_CXX=yes
10820 # Exported symbols can be pulled into shared objects from archives
10821 whole_archive_flag_spec_CXX=' '
10822 archive_cmds_need_lc_CXX=yes
10823 # This is similar to how AIX traditionally builds it's shared libraries.
10824 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'
10829 case $cc_basename in
10831 # FIXME: insert proper C++ library support
10837 cygwin* | mingw* | pw32*)
10838 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10839 # as there is no search path for DLLs.
10840 hardcode_libdir_flag_spec_CXX='-L$libdir'
10841 allow_undefined_flag_CXX=unsupported
10842 always_export_symbols_CXX=no
10843 enable_shared_with_static_runtimes_CXX=yes
10845 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10846 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'
10847 # If the export-symbols file already is a .def file (1st line
10848 # is EXPORTS), use it as is; otherwise, prepend...
10849 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10850 cp $export_symbols $output_objdir/$soname.def;
10852 echo EXPORTS > $output_objdir/$soname.def;
10853 cat $export_symbols >> $output_objdir/$soname.def;
10855 $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'
10861 darwin* | rhapsody*)
10862 if test "$GXX" = yes; then
10863 archive_cmds_need_lc_CXX=no
10865 rhapsody* | darwin1.[012])
10866 allow_undefined_flag_CXX='-undefined suppress'
10869 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10870 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10872 case ${MACOSX_DEPLOYMENT_TARGET} in
10874 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10877 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10883 lt_int_apple_cc_single_mod=no
10884 output_verbose_link_cmd='echo'
10885 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10886 lt_int_apple_cc_single_mod=yes
10888 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10889 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10891 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
10893 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10895 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10896 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10897 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}'
10899 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
10901 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}'
10902 hardcode_direct_CXX=no
10903 hardcode_automatic_CXX=yes
10904 hardcode_shlibpath_var_CXX=unsupported
10905 whole_archive_flag_spec_CXX='-all_load $convenience'
10906 link_all_deplibs_CXX=yes
10913 case $cc_basename in
10915 # FIXME: insert proper C++ library support
10919 # Green Hills C++ Compiler
10920 # FIXME: insert proper C++ library support
10924 # FIXME: insert proper C++ library support
10930 # C++ shared libraries reported to be fairly broken before switch to ELF
10934 archive_cmds_need_lc_CXX=no
10936 freebsd* | kfreebsd*-gnu)
10937 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10944 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10945 hardcode_libdir_separator_CXX=:
10946 export_dynamic_flag_spec_CXX='${wl}-E'
10947 hardcode_direct_CXX=yes
10948 hardcode_minus_L_CXX=yes # Not in the search PATH,
10949 # but as the default
10950 # location of the library.
10952 case $cc_basename in
10954 # FIXME: insert proper C++ library support
10958 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'
10959 # Commands to make compiler produce verbose output that lists
10960 # what "hidden" libraries, object files and flags are used when
10961 # linking a shared library.
10963 # There doesn't appear to be a way to prevent this compiler from
10964 # explicitly linking system object files so we need to strip them
10965 # from the output so that they don't get included in the library
10967 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10970 if test "$GXX" = yes; then
10971 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'
10973 # FIXME: insert proper C++ library support
10980 if test $with_gnu_ld = no; then
10981 case "$host_cpu" in
10983 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10984 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10985 hardcode_libdir_separator_CXX=:
10988 hardcode_libdir_flag_spec_CXX='-L$libdir'
10991 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10992 hardcode_libdir_separator_CXX=:
10993 export_dynamic_flag_spec_CXX='${wl}-E'
10997 case "$host_cpu" in
10999 hardcode_direct_CXX=no
11000 hardcode_shlibpath_var_CXX=no
11003 hardcode_direct_CXX=no
11004 hardcode_shlibpath_var_CXX=no
11005 hardcode_minus_L_CXX=yes # Not in the search PATH,
11006 # but as the default
11007 # location of the library.
11010 hardcode_direct_CXX=yes
11011 hardcode_minus_L_CXX=yes # Not in the search PATH,
11012 # but as the default
11013 # location of the library.
11017 case $cc_basename in
11019 # FIXME: insert proper C++ library support
11023 case "$host_cpu" in
11025 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11028 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11031 # Commands to make compiler produce verbose output that lists
11032 # what "hidden" libraries, object files and flags are used when
11033 # linking a shared library.
11035 # There doesn't appear to be a way to prevent this compiler from
11036 # explicitly linking system object files so we need to strip them
11037 # from the output so that they don't get included in the library
11039 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'
11042 if test "$GXX" = yes; then
11043 if test $with_gnu_ld = no; then
11044 case "$host_cpu" in
11046 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11049 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'
11054 # FIXME: insert proper C++ library support
11061 case $cc_basename in
11064 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 ${objdir}/so_locations -o $lib'
11066 # Archives containing C++ object files must be created using
11067 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11068 # necessary to make sure instantiated templates are included
11070 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11073 if test "$GXX" = yes; then
11074 if test "$with_gnu_ld" = no; then
11075 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}${objdir}/so_locations -o $lib'
11077 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'
11080 link_all_deplibs_CXX=yes
11083 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11084 hardcode_libdir_separator_CXX=:
11087 case $cc_basename in
11089 # Kuck and Associates, Inc. (KAI) C++ Compiler
11091 # KCC will only create a shared library if the output file
11092 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11093 # to its proper name (with version) after linking.
11094 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'
11095 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'
11096 # Commands to make compiler produce verbose output that lists
11097 # what "hidden" libraries, object files and flags are used when
11098 # linking a shared library.
11100 # There doesn't appear to be a way to prevent this compiler from
11101 # explicitly linking system object files so we need to strip them
11102 # from the output so that they don't get included in the library
11104 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'
11106 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11107 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11109 # Archives containing C++ object files must be created using
11110 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11111 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11116 archive_cmds_need_lc_CXX=no
11117 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11118 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'
11119 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11120 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11121 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11125 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11126 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'
11128 runpath_var=LD_RUN_PATH
11129 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11130 hardcode_libdir_separator_CXX=:
11132 # Commands to make compiler produce verbose output that lists
11133 # what "hidden" libraries, object files and flags are used when
11134 # linking a shared library.
11136 # There doesn't appear to be a way to prevent this compiler from
11137 # explicitly linking system object files so we need to strip them
11138 # from the output so that they don't get included in the library
11140 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'
11145 # FIXME: insert proper C++ library support
11149 # FIXME: insert proper C++ library support
11153 case $cc_basename in
11155 # FIXME: insert proper C++ library support
11159 # FIXME: insert proper C++ library support
11165 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11166 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11168 hardcode_libdir_flag_spec_CXX='-R$libdir'
11169 hardcode_direct_CXX=yes
11170 hardcode_shlibpath_var_CXX=no
11172 # Workaround some broken pre-1.5 toolchains
11173 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11176 case $cc_basename in
11178 # Kuck and Associates, Inc. (KAI) C++ Compiler
11180 # KCC will only create a shared library if the output file
11181 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11182 # to its proper name (with version) after linking.
11183 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'
11185 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11186 hardcode_libdir_separator_CXX=:
11188 # Archives containing C++ object files must be created using
11189 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11190 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11194 # Rational C++ 2.4.1
11195 # FIXME: insert proper C++ library support
11199 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11200 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 ${objdir}/so_locations -o $lib'
11202 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11203 hardcode_libdir_separator_CXX=:
11205 # Commands to make compiler produce verbose output that lists
11206 # what "hidden" libraries, object files and flags are used when
11207 # linking a shared library.
11209 # There doesn't appear to be a way to prevent this compiler from
11210 # explicitly linking system object files so we need to strip them
11211 # from the output so that they don't get included in the library
11213 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'
11216 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11217 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11218 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}${objdir}/so_locations -o $lib'
11220 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11221 hardcode_libdir_separator_CXX=:
11223 # Commands to make compiler produce verbose output that lists
11224 # what "hidden" libraries, object files and flags are used when
11225 # linking a shared library.
11226 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11229 # FIXME: insert proper C++ library support
11236 case $cc_basename in
11238 # Kuck and Associates, Inc. (KAI) C++ Compiler
11240 # KCC will only create a shared library if the output file
11241 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11242 # to its proper name (with version) after linking.
11243 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'
11245 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11246 hardcode_libdir_separator_CXX=:
11248 # Archives containing C++ object files must be created using
11249 # the KAI C++ compiler.
11250 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11253 # Rational C++ 2.4.1
11254 # FIXME: insert proper C++ library support
11258 allow_undefined_flag_CXX=' -expect_unresolved \*'
11259 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 ${objdir}/so_locations -o $lib'
11260 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11261 echo "-hidden">> $lib.exp~
11262 $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 $objdir/so_locations -o $lib~
11265 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11266 hardcode_libdir_separator_CXX=:
11268 # Commands to make compiler produce verbose output that lists
11269 # what "hidden" libraries, object files and flags are used when
11270 # linking a shared library.
11272 # There doesn't appear to be a way to prevent this compiler from
11273 # explicitly linking system object files so we need to strip them
11274 # from the output so that they don't get included in the library
11276 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'
11279 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11280 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11281 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}${objdir}/so_locations -o $lib'
11283 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11284 hardcode_libdir_separator_CXX=:
11286 # Commands to make compiler produce verbose output that lists
11287 # what "hidden" libraries, object files and flags are used when
11288 # linking a shared library.
11289 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11292 # FIXME: insert proper C++ library support
11299 # FIXME: insert proper C++ library support
11303 archive_cmds_need_lc_CXX=no
11304 case $cc_basename in
11306 # FIXME: insert proper C++ library support
11310 # FIXME: insert proper C++ library support
11316 case $cc_basename in
11319 # FIXME: insert proper C++ library support
11324 # FIXME: insert proper C++ library support
11328 # FIXME: insert proper C++ library support
11334 case $cc_basename in
11336 # Sun C++ 4.2, 5.x and Centerline C++
11337 no_undefined_flag_CXX=' -zdefs'
11338 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11339 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11340 $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'
11342 hardcode_libdir_flag_spec_CXX='-R$libdir'
11343 hardcode_shlibpath_var_CXX=no
11345 solaris2.0-5 | solaris2.0-5.*) ;;
11347 # The C++ compiler is used as linker so we must use $wl
11348 # flag to pass the commands to the underlying system
11350 # Supported since Solaris 2.6 (maybe 2.5.1?)
11351 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11354 link_all_deplibs_CXX=yes
11356 # Commands to make compiler produce verbose output that lists
11357 # what "hidden" libraries, object files and flags are used when
11358 # linking a shared library.
11360 # There doesn't appear to be a way to prevent this compiler from
11361 # explicitly linking system object files so we need to strip them
11362 # from the output so that they don't get included in the library
11364 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'
11366 # Archives containing C++ object files must be created using
11367 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11368 # necessary to make sure instantiated templates are included
11370 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11373 # Green Hills C++ Compiler
11374 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11376 # The C++ compiler must be used to create the archive.
11377 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11380 # GNU C++ compiler with Solaris linker
11381 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11382 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11383 if $CC --version | grep -v '^2\.7' > /dev/null; then
11384 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11385 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11386 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11388 # Commands to make compiler produce verbose output that lists
11389 # what "hidden" libraries, object files and flags are used when
11390 # linking a shared library.
11391 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11393 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11395 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11396 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11397 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11399 # Commands to make compiler produce verbose output that lists
11400 # what "hidden" libraries, object files and flags are used when
11401 # linking a shared library.
11402 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11405 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11410 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11411 archive_cmds_need_lc_CXX=no
11414 case $cc_basename in
11416 # NonStop-UX NCC 3.20
11417 # FIXME: insert proper C++ library support
11421 # FIXME: insert proper C++ library support
11427 # FIXME: insert proper C++ library support
11431 # FIXME: insert proper C++ library support
11435 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11436 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11437 test "$ld_shlibs_CXX" = no && can_build_shared=no
11443 cat > conftest.$ac_ext <<EOF
11447 Foo (void) { a = 0; }
11453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11454 (eval $ac_compile) 2>&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); }; then
11458 # Parse the compiler output and extract the necessary
11459 # objects, libraries and library flags.
11461 # Sentinel used to keep track of whether or not we are before
11462 # the conftest object file.
11463 pre_test_object_deps_done=no
11465 # The `*' in the case matches for architectures that use `case' in
11466 # $output_verbose_cmd can trigger glob expansion during the loop
11467 # eval without this substitution.
11468 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11470 for p in `eval $output_verbose_link_cmd`; do
11474 # Some compilers place space between "-{L,R}" and the path.
11475 # Remove the space.
11476 if test $p = "-L" \
11477 || test $p = "-R"; then
11484 if test "$pre_test_object_deps_done" = no; then
11487 # Internal compiler library paths should come after those
11488 # provided the user. The postdeps already come after the
11489 # user supplied libs so there is no need to process them.
11490 if test -z "$compiler_lib_search_path_CXX"; then
11491 compiler_lib_search_path_CXX="${prev}${p}"
11493 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11496 # The "-l" case would never come before the object being
11497 # linked, so don't bother handling this case.
11500 if test -z "$postdeps_CXX"; then
11501 postdeps_CXX="${prev}${p}"
11503 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11509 # This assumes that the test object file only shows up
11510 # once in the compiler output.
11511 if test "$p" = "conftest.$objext"; then
11512 pre_test_object_deps_done=yes
11516 if test "$pre_test_object_deps_done" = no; then
11517 if test -z "$predep_objects_CXX"; then
11518 predep_objects_CXX="$p"
11520 predep_objects_CXX="$predep_objects_CXX $p"
11523 if test -z "$postdep_objects_CXX"; then
11524 postdep_objects_CXX="$p"
11526 postdep_objects_CXX="$postdep_objects_CXX $p"
11531 *) ;; # Ignore the rest.
11539 echo "libtool.m4: error: problem compiling CXX test program"
11542 $rm -f confest.$objext
11544 case " $postdeps_CXX " in
11545 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11548 lt_prog_compiler_wl_CXX=
11549 lt_prog_compiler_pic_CXX=
11550 lt_prog_compiler_static_CXX=
11552 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11553 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11555 # C++ specific cases for pic, static, wl, etc.
11556 if test "$GXX" = yes; then
11557 lt_prog_compiler_wl_CXX='-Wl,'
11558 lt_prog_compiler_static_CXX='-static'
11562 # All AIX code is PIC.
11563 if test "$host_cpu" = ia64; then
11564 # AIX 5 now supports IA64 processor
11565 lt_prog_compiler_static_CXX='-Bstatic'
11569 # FIXME: we need at least 68020 code to build shared libraries, but
11570 # adding the `-m68020' flag to GCC prevents building anything better,
11572 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11574 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11575 # PIC is the default for these OSes.
11577 mingw* | os2* | pw32*)
11578 # This hack is so that the source file can tell whether it is being
11579 # built for inclusion in a dll (and should export symbols for example).
11580 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11582 darwin* | rhapsody*)
11583 # PIC is the default on this platform
11584 # Common symbols not allowed in MH_DYLIB files
11585 lt_prog_compiler_pic_CXX='-fno-common'
11588 # DJGPP does not support shared libraries at all
11589 lt_prog_compiler_pic_CXX=
11592 if test -d /usr/nec; then
11593 lt_prog_compiler_pic_CXX=-Kconform_pic
11597 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11598 # not for PA HP-UX.
11599 case "$host_cpu" in
11603 lt_prog_compiler_pic_CXX='-fPIC'
11608 lt_prog_compiler_pic_CXX='-fPIC'
11614 # All AIX code is PIC.
11615 if test "$host_cpu" = ia64; then
11616 # AIX 5 now supports IA64 processor
11617 lt_prog_compiler_static_CXX='-Bstatic'
11619 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11623 case $cc_basename in
11625 # Green Hills C++ Compiler
11626 # _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"
11631 case $cc_basename in
11633 lt_prog_compiler_pic_CXX='-KPIC'
11636 # Green Hills C++ Compiler
11637 lt_prog_compiler_pic_CXX='-pic'
11643 freebsd* | kfreebsd*-gnu)
11644 # FreeBSD uses GNU C++
11646 hpux9* | hpux10* | hpux11*)
11647 case $cc_basename in
11649 lt_prog_compiler_wl_CXX='-Wl,'
11650 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11651 if test "$host_cpu" != ia64; then
11652 lt_prog_compiler_pic_CXX='+Z'
11656 lt_prog_compiler_wl_CXX='-Wl,'
11657 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11658 case "$host_cpu" in
11663 lt_prog_compiler_pic_CXX='+Z'
11671 irix5* | irix6* | nonstopux*)
11672 case $cc_basename in
11674 lt_prog_compiler_wl_CXX='-Wl,'
11675 lt_prog_compiler_static_CXX='-non_shared'
11676 # CC pic flag -KPIC is the default.
11683 case $cc_basename in
11686 lt_prog_compiler_wl_CXX='--backend -Wl,'
11687 lt_prog_compiler_pic_CXX='-fPIC'
11691 lt_prog_compiler_wl_CXX='-Wl,'
11692 lt_prog_compiler_pic_CXX='-KPIC'
11693 lt_prog_compiler_static_CXX='-static'
11697 # Make sure the PIC flag is empty. It appears that all Alpha
11698 # Linux and Compaq Tru64 Unix objects are PIC.
11699 lt_prog_compiler_pic_CXX=
11700 lt_prog_compiler_static_CXX='-non_shared'
11711 case $cc_basename in
11713 lt_prog_compiler_pic_CXX='-W c,exportall'
11721 osf3* | osf4* | osf5*)
11722 case $cc_basename in
11724 lt_prog_compiler_wl_CXX='--backend -Wl,'
11727 # Rational C++ 2.4.1
11728 lt_prog_compiler_pic_CXX='-pic'
11731 # Digital/Compaq C++
11732 lt_prog_compiler_wl_CXX='-Wl,'
11733 # Make sure the PIC flag is empty. It appears that all Alpha
11734 # Linux and Compaq Tru64 Unix objects are PIC.
11735 lt_prog_compiler_pic_CXX=
11736 lt_prog_compiler_static_CXX='-non_shared'
11745 case $cc_basename in
11747 lt_prog_compiler_pic_CXX='-fPIC'
11754 case $cc_basename in
11756 # Sun C++ 4.2, 5.x and Centerline C++
11757 lt_prog_compiler_pic_CXX='-KPIC'
11758 lt_prog_compiler_static_CXX='-Bstatic'
11759 lt_prog_compiler_wl_CXX='-Qoption ld '
11762 # Green Hills C++ Compiler
11763 lt_prog_compiler_pic_CXX='-PIC'
11770 case $cc_basename in
11773 lt_prog_compiler_pic_CXX='-pic'
11774 lt_prog_compiler_static_CXX='-Bstatic'
11778 lt_prog_compiler_pic_CXX='-pic'
11785 case $cc_basename in
11787 # NonStop-UX NCC 3.20
11788 lt_prog_compiler_pic_CXX='-KPIC'
11799 lt_prog_compiler_can_build_shared_CXX=no
11804 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11805 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11808 # Check to make sure the PIC flag actually works.
11810 if test -n "$lt_prog_compiler_pic_CXX"; then
11812 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11813 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11814 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11815 echo $ECHO_N "(cached) $ECHO_C" >&6
11817 lt_prog_compiler_pic_works_CXX=no
11818 ac_outfile=conftest.$ac_objext
11819 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11820 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11821 # Insert the option either (1) after the last *FLAGS variable, or
11822 # (2) before a word containing "conftest.", or (3) at the end.
11823 # Note that $ac_compile itself does not contain backslashes and begins
11824 # with a dollar sign (not a hyphen), so the echo should work correctly.
11825 # The option is referenced via a variable to avoid confusing sed.
11826 lt_compile=`echo "$ac_compile" | $SED \
11827 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11828 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11829 -e 's:$: $lt_compiler_flag:'`
11830 (eval echo "\"\$as_me:11830: $lt_compile\"" >&5)
11831 (eval "$lt_compile" 2>conftest.err)
11833 cat conftest.err >&5
11834 echo "$as_me:11834: \$? = $ac_status" >&5
11835 if (exit $ac_status) && test -s "$ac_outfile"; then
11836 # The compiler can only warn and ignore the option if not recognized
11837 # So say no if there are warnings
11838 if test ! -s conftest.err; then
11839 lt_prog_compiler_pic_works_CXX=yes
11845 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11846 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11848 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11849 case $lt_prog_compiler_pic_CXX in
11851 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11854 lt_prog_compiler_pic_CXX=
11855 lt_prog_compiler_can_build_shared_CXX=no
11860 # For platforms which do not support PIC, -DPIC is meaningless:
11862 lt_prog_compiler_pic_CXX=
11865 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11869 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11870 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11871 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11872 echo $ECHO_N "(cached) $ECHO_C" >&6
11874 lt_cv_prog_compiler_c_o_CXX=no
11875 $rm -r conftest 2>/dev/null
11879 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11881 lt_compiler_flag="-o out/conftest2.$ac_objext"
11882 # Insert the option either (1) after the last *FLAGS variable, or
11883 # (2) before a word containing "conftest.", or (3) at the end.
11884 # Note that $ac_compile itself does not contain backslashes and begins
11885 # with a dollar sign (not a hyphen), so the echo should work correctly.
11886 lt_compile=`echo "$ac_compile" | $SED \
11887 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11889 -e 's:$: $lt_compiler_flag:'`
11890 (eval echo "\"\$as_me:11890: $lt_compile\"" >&5)
11891 (eval "$lt_compile" 2>out/conftest.err)
11893 cat out/conftest.err >&5
11894 echo "$as_me:11894: \$? = $ac_status" >&5
11895 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11897 # The compiler can only warn and ignore the option if not recognized
11898 # So say no if there are warnings
11899 if test ! -s out/conftest.err; then
11900 lt_cv_prog_compiler_c_o_CXX=yes
11905 # SGI C++ compiler will create directory out/ii_files/ for
11906 # template instantiation
11907 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11908 $rm out/* && rmdir out
11914 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11915 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11918 hard_links="nottested"
11919 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11920 # do not overwrite the value of need_locks provided by the user
11921 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11922 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11925 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11927 ln conftest.a conftest.b 2>&5 || hard_links=no
11928 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11929 echo "$as_me:$LINENO: result: $hard_links" >&5
11930 echo "${ECHO_T}$hard_links" >&6
11931 if test "$hard_links" = no; then
11932 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11933 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11940 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11941 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11943 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11946 # If we're using GNU nm, then we don't want the "-C" option.
11947 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11948 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11949 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'
11951 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'
11955 export_symbols_cmds_CXX="$ltdll_cmds"
11958 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11961 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11965 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11966 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11967 test "$ld_shlibs_CXX" = no && can_build_shared=no
11969 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11970 if test "$GCC" = yes; then
11971 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11975 # Do we need to explicitly link libc?
11977 case "x$archive_cmds_need_lc_CXX" in
11979 # Assume -lc should be added
11980 archive_cmds_need_lc_CXX=yes
11982 if test "$enable_shared" = yes && test "$GCC" = yes; then
11983 case $archive_cmds_CXX in
11985 # FIXME: we may have to deal with multi-command sequences.
11988 # Test whether the compiler implicitly links with -lc since on some
11989 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11990 # to ld, don't add -lc before -lgcc.
11991 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11992 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11994 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11997 (eval $ac_compile) 2>&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } 2>conftest.err; then
12003 libobjs=conftest.$ac_objext
12005 wl=$lt_prog_compiler_wl_CXX
12011 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12012 allow_undefined_flag_CXX=
12013 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12014 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); }
12019 archive_cmds_need_lc_CXX=no
12021 archive_cmds_need_lc_CXX=yes
12023 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12025 cat conftest.err 1>&5
12028 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12029 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12036 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12037 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12038 library_names_spec=
12039 libname_spec='lib$name'
12043 postuninstall_cmds=
12047 shlibpath_overrides_runpath=unknown
12049 dynamic_linker="$host_os ld.so"
12050 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12051 if test "$GCC" = yes; then
12052 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12053 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12054 # if the path contains ";" then we assume it to be the separator
12055 # otherwise default to the standard path separator (i.e. ":") - it is
12056 # assumed that no part of a normal pathname contains ";" but that should
12057 # okay in the real world where ";" in dirpaths is itself problematic.
12058 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12060 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12063 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12065 need_lib_prefix=unknown
12066 hardcode_into_libs=no
12068 # when you set need_version to no, make sure it does not cause -set_version
12069 # flags to be left without arguments
12070 need_version=unknown
12075 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12076 shlibpath_var=LIBPATH
12078 # AIX 3 has no versioning support, so we append a major version to the name.
12079 soname_spec='${libname}${release}${shared_ext}$major'
12086 hardcode_into_libs=yes
12087 if test "$host_cpu" = ia64; then
12088 # AIX 5 supports IA64
12089 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12090 shlibpath_var=LD_LIBRARY_PATH
12092 # With GCC up to 2.95.x, collect2 would create an import file
12093 # for dependence libraries. The import file would start with
12094 # the line `#! .'. This would cause the generated library to
12095 # depend on `.', always an invalid library. This was fixed in
12096 # development snapshots of GCC prior to 3.0.
12098 aix4 | aix4.[01] | aix4.[01].*)
12099 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12101 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12104 can_build_shared=no
12108 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12109 # soname into executable. Probably we can add versioning support to
12110 # collect2, so additional links can be useful in future.
12111 if test "$aix_use_runtimelinking" = yes; then
12112 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12113 # instead of lib<name>.a to let people know that these are not
12114 # typical AIX shared libraries.
12115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12117 # We preserve .a as extension for shared libraries through AIX4.2
12118 # and later when we are not doing run time linking.
12119 library_names_spec='${libname}${release}.a $libname.a'
12120 soname_spec='${libname}${release}${shared_ext}$major'
12122 shlibpath_var=LIBPATH
12127 library_names_spec='$libname.ixlibrary $libname.a'
12128 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12129 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'
12133 library_names_spec='${libname}${shared_ext}'
12134 dynamic_linker="$host_os ld.so"
12135 shlibpath_var=LIBRARY_PATH
12141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12142 soname_spec='${libname}${release}${shared_ext}$major'
12143 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12144 shlibpath_var=LD_LIBRARY_PATH
12145 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12146 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12147 # the default ld.so.conf also contains /usr/contrib/lib and
12148 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12149 # libtool to hard-code these into programs
12152 cygwin* | mingw* | pw32*)
12153 version_type=windows
12158 case $GCC,$host_os in
12159 yes,cygwin* | yes,mingw* | yes,pw32*)
12160 library_names_spec='$libname.dll.a'
12161 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12162 postinstall_cmds='base_file=`basename \${file}`~
12163 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12164 dldir=$destdir/`dirname \$dlpath`~
12165 test -d \$dldir || mkdir -p \$dldir~
12166 $install_prog $dir/$dlname \$dldir/$dlname'
12167 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12168 dlpath=$dir/\$dldll~
12170 shlibpath_overrides_runpath=yes
12174 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12175 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12176 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12179 # MinGW DLLs use traditional 'lib' prefix
12180 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12181 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12182 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12183 # It is most probably a Windows format PATH printed by
12184 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12185 # path with ; separators, and with drive letters. We can handle the
12186 # drive letters (cygwin fileutils understands them), so leave them,
12187 # especially as we might pass files found there to a mingw objdump,
12188 # which wouldn't understand a cygwinified path. Ahh.
12189 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12191 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12195 # pw32 DLLs use 'pw' prefix rather than 'lib'
12196 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12202 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12205 dynamic_linker='Win32 ld.exe'
12206 # FIXME: first we should search . and the directory the executable is in
12210 darwin* | rhapsody*)
12211 dynamic_linker="$host_os dyld"
12212 version_type=darwin
12215 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12216 soname_spec='${libname}${release}${major}$shared_ext'
12217 shlibpath_overrides_runpath=yes
12218 shlibpath_var=DYLD_LIBRARY_PATH
12219 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
12220 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12221 if test "$GCC" = yes; then
12222 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"`
12224 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12226 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12234 soname_spec='${libname}${release}${shared_ext}$major'
12235 shlibpath_var=LD_LIBRARY_PATH
12246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12247 soname_spec='${libname}${release}${shared_ext}$major'
12248 shlibpath_var=LD_LIBRARY_PATH
12249 shlibpath_overrides_runpath=no
12250 hardcode_into_libs=yes
12251 dynamic_linker='GNU ld.so'
12255 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12256 version_type=freebsd-$objformat
12257 case $version_type in
12259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12264 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12268 shlibpath_var=LD_LIBRARY_PATH
12271 shlibpath_overrides_runpath=yes
12273 freebsd3.01* | freebsdelf3.01*)
12274 shlibpath_overrides_runpath=yes
12275 hardcode_into_libs=yes
12278 shlibpath_overrides_runpath=no
12279 hardcode_into_libs=yes
12288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12289 soname_spec='${libname}${release}${shared_ext}$major'
12290 shlibpath_var=LD_LIBRARY_PATH
12291 hardcode_into_libs=yes
12294 hpux9* | hpux10* | hpux11*)
12295 # Give a soname corresponding to the major version so that dld.sl refuses to
12296 # link against other versions.
12300 case "$host_cpu" in
12303 hardcode_into_libs=yes
12304 dynamic_linker="$host_os dld.so"
12305 shlibpath_var=LD_LIBRARY_PATH
12306 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12308 soname_spec='${libname}${release}${shared_ext}$major'
12309 if test "X$HPUX_IA64_MODE" = X32; then
12310 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12312 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12314 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12318 hardcode_into_libs=yes
12319 dynamic_linker="$host_os dld.sl"
12320 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12321 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12323 soname_spec='${libname}${release}${shared_ext}$major'
12324 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12325 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12329 dynamic_linker="$host_os dld.sl"
12330 shlibpath_var=SHLIB_PATH
12331 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12333 soname_spec='${libname}${release}${shared_ext}$major'
12336 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12337 postinstall_cmds='chmod 555 $lib'
12340 irix5* | irix6* | nonstopux*)
12342 nonstopux*) version_type=nonstopux ;;
12344 if test "$lt_cv_prog_gnu_ld" = yes; then
12352 soname_spec='${libname}${release}${shared_ext}$major'
12353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12355 irix5* | nonstopux*)
12356 libsuff= shlibsuff=
12359 case $LD in # libtool.m4 will add one of these switches to LD
12360 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12361 libsuff= shlibsuff= libmagic=32-bit;;
12362 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12363 libsuff=32 shlibsuff=N32 libmagic=N32;;
12364 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12365 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12366 *) libsuff= shlibsuff= libmagic=never-match;;
12370 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12371 shlibpath_overrides_runpath=no
12372 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12373 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12374 hardcode_into_libs=yes
12377 # No shared lib support for Linux oldld, aout, or coff.
12378 linux*oldld* | linux*aout* | linux*coff*)
12382 # This must be Linux ELF.
12387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12388 soname_spec='${libname}${release}${shared_ext}$major'
12389 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12390 shlibpath_var=LD_LIBRARY_PATH
12391 shlibpath_overrides_runpath=no
12392 # This implies no fast_install, which is unacceptable.
12393 # Some rework will be needed to allow for fast_install
12394 # before this can be enabled.
12395 hardcode_into_libs=yes
12397 # Append ld.so.conf contents to the search path
12398 if test -f /etc/ld.so.conf; then
12399 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
12400 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
12403 # We used to test for /lib/ld.so.1 and disable shared libraries on
12404 # powerpc, because MkLinux only supported shared libraries with the
12405 # GNU dynamic linker. Since this was broken with cross compilers,
12406 # most powerpc-linux boxes support dynamic linking these days and
12407 # people can always --disable-shared, the test was removed, and we
12408 # assume the GNU/Linux dynamic linker is in use.
12409 dynamic_linker='GNU/Linux ld.so'
12416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12417 soname_spec='${libname}${release}${shared_ext}$major'
12418 shlibpath_var=LD_LIBRARY_PATH
12419 shlibpath_overrides_runpath=no
12420 hardcode_into_libs=yes
12421 dynamic_linker='GNU ld.so'
12428 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12431 dynamic_linker='NetBSD (a.out) ld.so'
12433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12434 soname_spec='${libname}${release}${shared_ext}$major'
12435 dynamic_linker='NetBSD ld.elf_so'
12437 shlibpath_var=LD_LIBRARY_PATH
12438 shlibpath_overrides_runpath=yes
12439 hardcode_into_libs=yes
12444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12445 shlibpath_var=LD_LIBRARY_PATH
12446 shlibpath_overrides_runpath=yes
12453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12454 soname_spec='${libname}${release}${shared_ext}$major'
12455 shlibpath_var=LD_LIBRARY_PATH
12456 shlibpath_overrides_runpath=yes
12463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12464 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12465 shlibpath_var=LD_LIBRARY_PATH
12466 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12468 openbsd2.[89] | openbsd2.[89].*)
12469 shlibpath_overrides_runpath=no
12472 shlibpath_overrides_runpath=yes
12476 shlibpath_overrides_runpath=yes
12481 libname_spec='$name'
12484 library_names_spec='$libname${shared_ext} $libname.a'
12485 dynamic_linker='OS/2 ld.exe'
12486 shlibpath_var=LIBPATH
12489 osf3* | osf4* | osf5*)
12493 soname_spec='${libname}${release}${shared_ext}$major'
12494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12495 shlibpath_var=LD_LIBRARY_PATH
12496 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12497 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12502 soname_spec='${libname}${release}${shared_ext}$major'
12503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12504 shlibpath_var=LD_LIBRARY_PATH
12511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12512 soname_spec='${libname}${release}${shared_ext}$major'
12513 shlibpath_var=LD_LIBRARY_PATH
12514 shlibpath_overrides_runpath=yes
12515 hardcode_into_libs=yes
12516 # ldd complains unless libraries are executable
12517 postinstall_cmds='chmod +x $lib'
12522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12523 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12524 shlibpath_var=LD_LIBRARY_PATH
12525 shlibpath_overrides_runpath=yes
12526 if test "$with_gnu_ld" = yes; then
12532 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12535 soname_spec='${libname}${release}${shared_ext}$major'
12536 shlibpath_var=LD_LIBRARY_PATH
12537 case $host_vendor in
12539 shlibpath_overrides_runpath=no
12541 export_dynamic_flag_spec='${wl}-Blargedynsym'
12542 runpath_var=LD_RUN_PATH
12550 shlibpath_overrides_runpath=no
12551 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12557 if test -d /usr/nec ;then
12559 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12560 soname_spec='$libname${shared_ext}.$major'
12561 shlibpath_var=LD_LIBRARY_PATH
12567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12568 soname_spec='${libname}${release}${shared_ext}$major'
12569 shlibpath_var=LD_LIBRARY_PATH
12576 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12577 echo "${ECHO_T}$dynamic_linker" >&6
12578 test "$dynamic_linker" = no && can_build_shared=no
12580 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12581 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12582 hardcode_action_CXX=
12583 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12584 test -n "$runpath_var CXX" || \
12585 test "X$hardcode_automatic_CXX"="Xyes" ; then
12587 # We can hardcode non-existant directories.
12588 if test "$hardcode_direct_CXX" != no &&
12589 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12590 # have to relink, otherwise we might link with an installed library
12591 # when we should be linking with a yet-to-be-installed one
12592 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12593 test "$hardcode_minus_L_CXX" != no; then
12594 # Linking always hardcodes the temporary library directory.
12595 hardcode_action_CXX=relink
12597 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12598 hardcode_action_CXX=immediate
12601 # We cannot hardcode anything, or else we can only hardcode existing
12603 hardcode_action_CXX=unsupported
12605 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12606 echo "${ECHO_T}$hardcode_action_CXX" >&6
12608 if test "$hardcode_action_CXX" = relink; then
12609 # Fast installation is not supported
12610 enable_fast_install=no
12611 elif test "$shlibpath_overrides_runpath" = yes ||
12612 test "$enable_shared" = no; then
12613 # Fast installation is not necessary
12614 enable_fast_install=needless
12619 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12620 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12621 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12622 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12623 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12624 echo "$as_me:$LINENO: result: yes" >&5
12625 echo "${ECHO_T}yes" >&6
12627 # FIXME - insert some real tests, host_os isn't really good enough
12630 if test -n "$STRIP" ; then
12631 striplib="$STRIP -x"
12632 echo "$as_me:$LINENO: result: yes" >&5
12633 echo "${ECHO_T}yes" >&6
12635 echo "$as_me:$LINENO: result: no" >&5
12636 echo "${ECHO_T}no" >&6
12640 echo "$as_me:$LINENO: result: no" >&5
12641 echo "${ECHO_T}no" >&6
12646 if test "x$enable_dlopen" != xyes; then
12647 enable_dlopen=unknown
12648 enable_dlopen_self=unknown
12649 enable_dlopen_self_static=unknown
12656 lt_cv_dlopen="load_add_on"
12658 lt_cv_dlopen_self=yes
12662 lt_cv_dlopen="LoadLibrary"
12667 lt_cv_dlopen="dlopen"
12672 # if libdl is installed we need to link against it
12673 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12674 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12675 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12676 echo $ECHO_N "(cached) $ECHO_C" >&6
12678 ac_check_lib_save_LIBS=$LIBS
12680 cat >conftest.$ac_ext <<_ACEOF
12683 cat confdefs.h >>conftest.$ac_ext
12684 cat >>conftest.$ac_ext <<_ACEOF
12685 /* end confdefs.h. */
12687 /* Override any gcc2 internal prototype to avoid an error. */
12691 /* We use char because int might match the return type of a gcc2
12692 builtin and then its argument prototype would still apply. */
12702 rm -f conftest.$ac_objext conftest$ac_exeext
12703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12704 (eval $ac_link) 2>conftest.er1
12706 grep -v '^ *+' conftest.er1 >conftest.err
12708 cat conftest.err >&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); } &&
12711 { ac_try='test -z "$ac_cxx_werror_flag"
12712 || test ! -s conftest.err'
12713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12714 (eval $ac_try) 2>&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); }; } &&
12718 { ac_try='test -s conftest$ac_exeext'
12719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12720 (eval $ac_try) 2>&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); }; }; then
12724 ac_cv_lib_dl_dlopen=yes
12726 echo "$as_me: failed program was:" >&5
12727 sed 's/^/| /' conftest.$ac_ext >&5
12729 ac_cv_lib_dl_dlopen=no
12731 rm -f conftest.err conftest.$ac_objext \
12732 conftest$ac_exeext conftest.$ac_ext
12733 LIBS=$ac_check_lib_save_LIBS
12735 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12736 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12737 if test $ac_cv_lib_dl_dlopen = yes; then
12738 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12741 lt_cv_dlopen="dyld"
12743 lt_cv_dlopen_self=yes
12750 echo "$as_me:$LINENO: checking for shl_load" >&5
12751 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12752 if test "${ac_cv_func_shl_load+set}" = set; then
12753 echo $ECHO_N "(cached) $ECHO_C" >&6
12755 cat >conftest.$ac_ext <<_ACEOF
12758 cat confdefs.h >>conftest.$ac_ext
12759 cat >>conftest.$ac_ext <<_ACEOF
12760 /* end confdefs.h. */
12761 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12763 #define shl_load innocuous_shl_load
12765 /* System header to define __stub macros and hopefully few prototypes,
12766 which can conflict with char shl_load (); below.
12767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12768 <limits.h> exists even on freestanding compilers. */
12771 # include <limits.h>
12773 # include <assert.h>
12778 /* Override any gcc2 internal prototype to avoid an error. */
12783 /* We use char because int might match the return type of a gcc2
12784 builtin and then its argument prototype would still apply. */
12786 /* The GNU C library defines this for functions which it implements
12787 to always fail with ENOSYS. Some functions are actually named
12788 something starting with __ and the normal name is an alias. */
12789 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12792 char (*f) () = shl_load;
12801 return f != shl_load;
12806 rm -f conftest.$ac_objext conftest$ac_exeext
12807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12808 (eval $ac_link) 2>conftest.er1
12810 grep -v '^ *+' conftest.er1 >conftest.err
12812 cat conftest.err >&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); } &&
12815 { ac_try='test -z "$ac_cxx_werror_flag"
12816 || test ! -s conftest.err'
12817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818 (eval $ac_try) 2>&5
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; } &&
12822 { ac_try='test -s conftest$ac_exeext'
12823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12824 (eval $ac_try) 2>&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); }; }; then
12828 ac_cv_func_shl_load=yes
12830 echo "$as_me: failed program was:" >&5
12831 sed 's/^/| /' conftest.$ac_ext >&5
12833 ac_cv_func_shl_load=no
12835 rm -f conftest.err conftest.$ac_objext \
12836 conftest$ac_exeext conftest.$ac_ext
12838 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12839 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12840 if test $ac_cv_func_shl_load = yes; then
12841 lt_cv_dlopen="shl_load"
12843 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12844 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12845 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12846 echo $ECHO_N "(cached) $ECHO_C" >&6
12848 ac_check_lib_save_LIBS=$LIBS
12850 cat >conftest.$ac_ext <<_ACEOF
12853 cat confdefs.h >>conftest.$ac_ext
12854 cat >>conftest.$ac_ext <<_ACEOF
12855 /* end confdefs.h. */
12857 /* Override any gcc2 internal prototype to avoid an error. */
12861 /* We use char because int might match the return type of a gcc2
12862 builtin and then its argument prototype would still apply. */
12872 rm -f conftest.$ac_objext conftest$ac_exeext
12873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12874 (eval $ac_link) 2>conftest.er1
12876 grep -v '^ *+' conftest.er1 >conftest.err
12878 cat conftest.err >&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } &&
12881 { ac_try='test -z "$ac_cxx_werror_flag"
12882 || test ! -s conftest.err'
12883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12884 (eval $ac_try) 2>&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); }; } &&
12888 { ac_try='test -s conftest$ac_exeext'
12889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890 (eval $ac_try) 2>&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; }; then
12894 ac_cv_lib_dld_shl_load=yes
12896 echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.$ac_ext >&5
12899 ac_cv_lib_dld_shl_load=no
12901 rm -f conftest.err conftest.$ac_objext \
12902 conftest$ac_exeext conftest.$ac_ext
12903 LIBS=$ac_check_lib_save_LIBS
12905 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12906 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12907 if test $ac_cv_lib_dld_shl_load = yes; then
12908 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12910 echo "$as_me:$LINENO: checking for dlopen" >&5
12911 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12912 if test "${ac_cv_func_dlopen+set}" = set; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
12915 cat >conftest.$ac_ext <<_ACEOF
12918 cat confdefs.h >>conftest.$ac_ext
12919 cat >>conftest.$ac_ext <<_ACEOF
12920 /* end confdefs.h. */
12921 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12923 #define dlopen innocuous_dlopen
12925 /* System header to define __stub macros and hopefully few prototypes,
12926 which can conflict with char dlopen (); below.
12927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12928 <limits.h> exists even on freestanding compilers. */
12931 # include <limits.h>
12933 # include <assert.h>
12938 /* Override any gcc2 internal prototype to avoid an error. */
12943 /* We use char because int might match the return type of a gcc2
12944 builtin and then its argument prototype would still apply. */
12946 /* The GNU C library defines this for functions which it implements
12947 to always fail with ENOSYS. Some functions are actually named
12948 something starting with __ and the normal name is an alias. */
12949 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12952 char (*f) () = dlopen;
12961 return f != dlopen;
12966 rm -f conftest.$ac_objext conftest$ac_exeext
12967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12968 (eval $ac_link) 2>conftest.er1
12970 grep -v '^ *+' conftest.er1 >conftest.err
12972 cat conftest.err >&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); } &&
12975 { ac_try='test -z "$ac_cxx_werror_flag"
12976 || test ! -s conftest.err'
12977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12978 (eval $ac_try) 2>&5
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); }; } &&
12982 { ac_try='test -s conftest$ac_exeext'
12983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12984 (eval $ac_try) 2>&5
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); }; }; then
12988 ac_cv_func_dlopen=yes
12990 echo "$as_me: failed program was:" >&5
12991 sed 's/^/| /' conftest.$ac_ext >&5
12993 ac_cv_func_dlopen=no
12995 rm -f conftest.err conftest.$ac_objext \
12996 conftest$ac_exeext conftest.$ac_ext
12998 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12999 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13000 if test $ac_cv_func_dlopen = yes; then
13001 lt_cv_dlopen="dlopen"
13003 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13004 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13005 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13006 echo $ECHO_N "(cached) $ECHO_C" >&6
13008 ac_check_lib_save_LIBS=$LIBS
13010 cat >conftest.$ac_ext <<_ACEOF
13013 cat confdefs.h >>conftest.$ac_ext
13014 cat >>conftest.$ac_ext <<_ACEOF
13015 /* end confdefs.h. */
13017 /* Override any gcc2 internal prototype to avoid an error. */
13021 /* We use char because int might match the return type of a gcc2
13022 builtin and then its argument prototype would still apply. */
13032 rm -f conftest.$ac_objext conftest$ac_exeext
13033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13034 (eval $ac_link) 2>conftest.er1
13036 grep -v '^ *+' conftest.er1 >conftest.err
13038 cat conftest.err >&5
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); } &&
13041 { ac_try='test -z "$ac_cxx_werror_flag"
13042 || test ! -s conftest.err'
13043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044 (eval $ac_try) 2>&5
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; } &&
13048 { ac_try='test -s conftest$ac_exeext'
13049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13050 (eval $ac_try) 2>&5
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); }; }; then
13054 ac_cv_lib_dl_dlopen=yes
13056 echo "$as_me: failed program was:" >&5
13057 sed 's/^/| /' conftest.$ac_ext >&5
13059 ac_cv_lib_dl_dlopen=no
13061 rm -f conftest.err conftest.$ac_objext \
13062 conftest$ac_exeext conftest.$ac_ext
13063 LIBS=$ac_check_lib_save_LIBS
13065 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13066 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13067 if test $ac_cv_lib_dl_dlopen = yes; then
13068 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13070 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13071 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13072 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13073 echo $ECHO_N "(cached) $ECHO_C" >&6
13075 ac_check_lib_save_LIBS=$LIBS
13076 LIBS="-lsvld $LIBS"
13077 cat >conftest.$ac_ext <<_ACEOF
13080 cat confdefs.h >>conftest.$ac_ext
13081 cat >>conftest.$ac_ext <<_ACEOF
13082 /* end confdefs.h. */
13084 /* Override any gcc2 internal prototype to avoid an error. */
13088 /* We use char because int might match the return type of a gcc2
13089 builtin and then its argument prototype would still apply. */
13099 rm -f conftest.$ac_objext conftest$ac_exeext
13100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13101 (eval $ac_link) 2>conftest.er1
13103 grep -v '^ *+' conftest.er1 >conftest.err
13105 cat conftest.err >&5
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); } &&
13108 { ac_try='test -z "$ac_cxx_werror_flag"
13109 || test ! -s conftest.err'
13110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111 (eval $ac_try) 2>&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; } &&
13115 { ac_try='test -s conftest$ac_exeext'
13116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117 (eval $ac_try) 2>&5
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; }; then
13121 ac_cv_lib_svld_dlopen=yes
13123 echo "$as_me: failed program was:" >&5
13124 sed 's/^/| /' conftest.$ac_ext >&5
13126 ac_cv_lib_svld_dlopen=no
13128 rm -f conftest.err conftest.$ac_objext \
13129 conftest$ac_exeext conftest.$ac_ext
13130 LIBS=$ac_check_lib_save_LIBS
13132 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13133 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13134 if test $ac_cv_lib_svld_dlopen = yes; then
13135 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13137 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13138 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13139 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13140 echo $ECHO_N "(cached) $ECHO_C" >&6
13142 ac_check_lib_save_LIBS=$LIBS
13144 cat >conftest.$ac_ext <<_ACEOF
13147 cat confdefs.h >>conftest.$ac_ext
13148 cat >>conftest.$ac_ext <<_ACEOF
13149 /* end confdefs.h. */
13151 /* Override any gcc2 internal prototype to avoid an error. */
13155 /* We use char because int might match the return type of a gcc2
13156 builtin and then its argument prototype would still apply. */
13166 rm -f conftest.$ac_objext conftest$ac_exeext
13167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13168 (eval $ac_link) 2>conftest.er1
13170 grep -v '^ *+' conftest.er1 >conftest.err
13172 cat conftest.err >&5
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); } &&
13175 { ac_try='test -z "$ac_cxx_werror_flag"
13176 || test ! -s conftest.err'
13177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13178 (eval $ac_try) 2>&5
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); }; } &&
13182 { ac_try='test -s conftest$ac_exeext'
13183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13184 (eval $ac_try) 2>&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); }; }; then
13188 ac_cv_lib_dld_dld_link=yes
13190 echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13193 ac_cv_lib_dld_dld_link=no
13195 rm -f conftest.err conftest.$ac_objext \
13196 conftest$ac_exeext conftest.$ac_ext
13197 LIBS=$ac_check_lib_save_LIBS
13199 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13200 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13201 if test $ac_cv_lib_dld_dld_link = yes; then
13202 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13223 if test "x$lt_cv_dlopen" != xno; then
13229 case $lt_cv_dlopen in
13231 save_CPPFLAGS="$CPPFLAGS"
13232 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13234 save_LDFLAGS="$LDFLAGS"
13235 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13238 LIBS="$lt_cv_dlopen_libs $LIBS"
13240 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13241 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13242 if test "${lt_cv_dlopen_self+set}" = set; then
13243 echo $ECHO_N "(cached) $ECHO_C" >&6
13245 if test "$cross_compiling" = yes; then :
13246 lt_cv_dlopen_self=cross
13248 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13249 lt_status=$lt_dlunknown
13250 cat > conftest.$ac_ext <<EOF
13251 #line 13251 "configure"
13252 #include "confdefs.h"
13261 # define LT_DLGLOBAL RTLD_GLOBAL
13264 # define LT_DLGLOBAL DL_GLOBAL
13266 # define LT_DLGLOBAL 0
13270 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13271 find out it does not work in some platform. */
13272 #ifndef LT_DLLAZY_OR_NOW
13274 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13277 # define LT_DLLAZY_OR_NOW DL_LAZY
13280 # define LT_DLLAZY_OR_NOW RTLD_NOW
13283 # define LT_DLLAZY_OR_NOW DL_NOW
13285 # define LT_DLLAZY_OR_NOW 0
13293 extern "C" void exit (int);
13296 void fnord() { int i=42;}
13299 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13300 int status = $lt_dlunknown;
13304 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13305 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13306 /* dlclose (self); */
13312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13313 (eval $ac_link) 2>&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13317 (./conftest; exit; ) 2>/dev/null
13319 case x$lt_status in
13320 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13321 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13322 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13325 # compilation failed
13326 lt_cv_dlopen_self=no
13333 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13334 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13336 if test "x$lt_cv_dlopen_self" = xyes; then
13337 LDFLAGS="$LDFLAGS $link_static_flag"
13338 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13339 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13340 if test "${lt_cv_dlopen_self_static+set}" = set; then
13341 echo $ECHO_N "(cached) $ECHO_C" >&6
13343 if test "$cross_compiling" = yes; then :
13344 lt_cv_dlopen_self_static=cross
13346 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13347 lt_status=$lt_dlunknown
13348 cat > conftest.$ac_ext <<EOF
13349 #line 13349 "configure"
13350 #include "confdefs.h"
13359 # define LT_DLGLOBAL RTLD_GLOBAL
13362 # define LT_DLGLOBAL DL_GLOBAL
13364 # define LT_DLGLOBAL 0
13368 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13369 find out it does not work in some platform. */
13370 #ifndef LT_DLLAZY_OR_NOW
13372 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13375 # define LT_DLLAZY_OR_NOW DL_LAZY
13378 # define LT_DLLAZY_OR_NOW RTLD_NOW
13381 # define LT_DLLAZY_OR_NOW DL_NOW
13383 # define LT_DLLAZY_OR_NOW 0
13391 extern "C" void exit (int);
13394 void fnord() { int i=42;}
13397 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13398 int status = $lt_dlunknown;
13402 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13403 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13404 /* dlclose (self); */
13410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13411 (eval $ac_link) 2>&5
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13415 (./conftest; exit; ) 2>/dev/null
13417 case x$lt_status in
13418 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13419 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13420 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13423 # compilation failed
13424 lt_cv_dlopen_self_static=no
13431 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13432 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13435 CPPFLAGS="$save_CPPFLAGS"
13436 LDFLAGS="$save_LDFLAGS"
13441 case $lt_cv_dlopen_self in
13442 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13443 *) enable_dlopen_self=unknown ;;
13446 case $lt_cv_dlopen_self_static in
13447 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13448 *) enable_dlopen_self_static=unknown ;;
13453 # The else clause should only fire when bootstrapping the
13454 # libtool distribution, otherwise you forgot to ship ltmain.sh
13455 # with your package, and you will get complaints that there are
13456 # no rules to generate ltmain.sh.
13457 if test -f "$ltmain"; then
13458 # See if we are running on zsh, and set the options which allow our commands through
13459 # without removal of \ escapes.
13460 if test -n "${ZSH_VERSION+set}" ; then
13461 setopt NO_GLOB_SUBST
13463 # Now quote all the things that may contain metacharacters while being
13464 # careful not to overquote the AC_SUBSTed values. We take copies of the
13465 # variables and quote the copies for generation of the libtool script.
13466 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13468 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13469 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13470 deplibs_check_method reload_flag reload_cmds need_locks \
13471 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13472 lt_cv_sys_global_symbol_to_c_name_address \
13473 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13474 old_postinstall_cmds old_postuninstall_cmds \
13478 lt_prog_compiler_wl_CXX \
13479 lt_prog_compiler_pic_CXX \
13480 lt_prog_compiler_static_CXX \
13481 lt_prog_compiler_no_builtin_flag_CXX \
13482 export_dynamic_flag_spec_CXX \
13483 thread_safe_flag_spec_CXX \
13484 whole_archive_flag_spec_CXX \
13485 enable_shared_with_static_runtimes_CXX \
13486 old_archive_cmds_CXX \
13487 old_archive_from_new_cmds_CXX \
13488 predep_objects_CXX \
13489 postdep_objects_CXX \
13492 compiler_lib_search_path_CXX \
13494 archive_expsym_cmds_CXX \
13495 postinstall_cmds_CXX \
13496 postuninstall_cmds_CXX \
13497 old_archive_from_expsyms_cmds_CXX \
13498 allow_undefined_flag_CXX \
13499 no_undefined_flag_CXX \
13500 export_symbols_cmds_CXX \
13501 hardcode_libdir_flag_spec_CXX \
13502 hardcode_libdir_flag_spec_ld_CXX \
13503 hardcode_libdir_separator_CXX \
13504 hardcode_automatic_CXX \
13506 module_expsym_cmds_CXX \
13507 lt_cv_prog_compiler_c_o_CXX \
13508 exclude_expsyms_CXX \
13509 include_expsyms_CXX; do
13512 old_archive_cmds_CXX | \
13513 old_archive_from_new_cmds_CXX | \
13514 archive_cmds_CXX | \
13515 archive_expsym_cmds_CXX | \
13516 module_cmds_CXX | \
13517 module_expsym_cmds_CXX | \
13518 old_archive_from_expsyms_cmds_CXX | \
13519 export_symbols_cmds_CXX | \
13520 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13521 postinstall_cmds | postuninstall_cmds | \
13522 old_postinstall_cmds | old_postuninstall_cmds | \
13523 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13524 # Double-quote double-evaled strings.
13525 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13528 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13534 *'\$0 --fallback-echo"')
13535 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13541 cat <<__EOF__ >> "$cfgfile"
13542 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13544 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13546 # Shell to use when invoking shell scripts.
13549 # Whether or not to build shared libraries.
13550 build_libtool_libs=$enable_shared
13552 # Whether or not to build static libraries.
13553 build_old_libs=$enable_static
13555 # Whether or not to add -lc for building shared libraries.
13556 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13558 # Whether or not to disallow shared libs when runtime libs are static
13559 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13561 # Whether or not to optimize for fast installation.
13562 fast_install=$enable_fast_install
13565 host_alias=$host_alias
13568 # An echo program that does not interpret backslashes.
13573 AR_FLAGS=$lt_AR_FLAGS
13578 # A language-specific compiler.
13579 CC=$lt_compiler_CXX
13581 # Is the compiler the GNU C compiler?
13587 # The linker used to build libraries.
13590 # Whether we need hard or soft links.
13593 # A BSD-compatible nm program.
13596 # A symbol stripping program
13599 # Used to examine libraries when file_magic_cmd begins "file"
13600 MAGIC_CMD=$MAGIC_CMD
13602 # Used on cygwin: DLL creation program.
13605 # Used on cygwin: object dumper.
13608 # Used on cygwin: assembler.
13611 # The name of the directory that contains temporary libtool files.
13614 # How to create reloadable object files.
13615 reload_flag=$lt_reload_flag
13616 reload_cmds=$lt_reload_cmds
13618 # How to pass a linker flag through the compiler.
13619 wl=$lt_lt_prog_compiler_wl_CXX
13621 # Object file suffix (normally "o").
13622 objext="$ac_objext"
13624 # Old archive suffix (normally "a").
13627 # Shared library suffix (normally ".so").
13630 # Executable file suffix (normally "").
13633 # Additional compiler flags for building library objects.
13634 pic_flag=$lt_lt_prog_compiler_pic_CXX
13637 # What is the maximum length of a command?
13638 max_cmd_len=$lt_cv_sys_max_cmd_len
13640 # Does compiler simultaneously support -c and -o options?
13641 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13643 # Must we lock files when doing compilation ?
13644 need_locks=$lt_need_locks
13646 # Do we need the lib prefix for modules?
13647 need_lib_prefix=$need_lib_prefix
13649 # Do we need a version for libraries?
13650 need_version=$need_version
13652 # Whether dlopen is supported.
13653 dlopen_support=$enable_dlopen
13655 # Whether dlopen of programs is supported.
13656 dlopen_self=$enable_dlopen_self
13658 # Whether dlopen of statically linked programs is supported.
13659 dlopen_self_static=$enable_dlopen_self_static
13661 # Compiler flag to prevent dynamic linking.
13662 link_static_flag=$lt_lt_prog_compiler_static_CXX
13664 # Compiler flag to turn off builtin functions.
13665 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13667 # Compiler flag to allow reflexive dlopens.
13668 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13670 # Compiler flag to generate shared objects directly from archives.
13671 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13673 # Compiler flag to generate thread-safe objects.
13674 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13676 # Library versioning type.
13677 version_type=$version_type
13679 # Format of library name prefix.
13680 libname_spec=$lt_libname_spec
13682 # List of archive names. First name is the real one, the rest are links.
13683 # The last name is the one that the linker finds with -lNAME.
13684 library_names_spec=$lt_library_names_spec
13686 # The coded name of the library, if different from the real name.
13687 soname_spec=$lt_soname_spec
13689 # Commands used to build and install an old-style archive.
13691 old_archive_cmds=$lt_old_archive_cmds_CXX
13692 old_postinstall_cmds=$lt_old_postinstall_cmds
13693 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13695 # Create an old-style archive from a shared archive.
13696 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13698 # Create a temporary old-style archive to link instead of a shared archive.
13699 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13701 # Commands used to build and install a shared archive.
13702 archive_cmds=$lt_archive_cmds_CXX
13703 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13704 postinstall_cmds=$lt_postinstall_cmds
13705 postuninstall_cmds=$lt_postuninstall_cmds
13707 # Commands used to build a loadable module (assumed same as above if empty)
13708 module_cmds=$lt_module_cmds_CXX
13709 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13711 # Commands to strip libraries.
13712 old_striplib=$lt_old_striplib
13713 striplib=$lt_striplib
13715 # Dependencies to place before the objects being linked to create a
13717 predep_objects=$lt_predep_objects_CXX
13719 # Dependencies to place after the objects being linked to create a
13721 postdep_objects=$lt_postdep_objects_CXX
13723 # Dependencies to place before the objects being linked to create a
13725 predeps=$lt_predeps_CXX
13727 # Dependencies to place after the objects being linked to create a
13729 postdeps=$lt_postdeps_CXX
13731 # The library search path used internally by the compiler when linking
13732 # a shared library.
13733 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13735 # Method to check whether dependent libraries are shared objects.
13736 deplibs_check_method=$lt_deplibs_check_method
13738 # Command to use when deplibs_check_method == file_magic.
13739 file_magic_cmd=$lt_file_magic_cmd
13741 # Flag that allows shared libraries with undefined symbols to be built.
13742 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13744 # Flag that forces no undefined symbols.
13745 no_undefined_flag=$lt_no_undefined_flag_CXX
13747 # Commands used to finish a libtool library installation in a directory.
13748 finish_cmds=$lt_finish_cmds
13750 # Same as above, but a single script fragment to be evaled but not shown.
13751 finish_eval=$lt_finish_eval
13753 # Take the output of nm and produce a listing of raw symbols and C names.
13754 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13756 # Transform the output of nm in a proper C declaration
13757 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13759 # Transform the output of nm in a C name address pair
13760 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13762 # This is the shared library runtime path variable.
13763 runpath_var=$runpath_var
13765 # This is the shared library path variable.
13766 shlibpath_var=$shlibpath_var
13768 # Is shlibpath searched before the hard-coded library search path?
13769 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13771 # How to hardcode a shared library path into an executable.
13772 hardcode_action=$hardcode_action_CXX
13774 # Whether we should hardcode library paths into libraries.
13775 hardcode_into_libs=$hardcode_into_libs
13777 # Flag to hardcode \$libdir into a binary during linking.
13778 # This must work even if \$libdir does not exist.
13779 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13781 # If ld is used when linking, flag to hardcode \$libdir into
13782 # a binary during linking. This must work even if \$libdir does
13784 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13786 # Whether we need a single -rpath flag with a separated argument.
13787 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13789 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13790 # resulting binary.
13791 hardcode_direct=$hardcode_direct_CXX
13793 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13794 # resulting binary.
13795 hardcode_minus_L=$hardcode_minus_L_CXX
13797 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13798 # the resulting binary.
13799 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13801 # Set to yes if building a shared library automatically hardcodes DIR into the library
13802 # and all subsequent libraries and executables linked against it.
13803 hardcode_automatic=$hardcode_automatic_CXX
13805 # Variables whose values should be saved in libtool wrapper scripts and
13806 # restored at relink time.
13807 variables_saved_for_relink="$variables_saved_for_relink"
13809 # Whether libtool must link a program against all its dependency libraries.
13810 link_all_deplibs=$link_all_deplibs_CXX
13812 # Compile-time system search path for libraries
13813 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13815 # Run-time system search path for libraries
13816 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13818 # Fix the shell variable \$srcfile for the compiler.
13819 fix_srcfile_path="$fix_srcfile_path_CXX"
13821 # Set to yes if exported symbols are required.
13822 always_export_symbols=$always_export_symbols_CXX
13824 # The commands to list exported symbols.
13825 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13827 # The commands to extract the exported symbol list from a shared archive.
13828 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13830 # Symbols that should not be listed in the preloaded symbols.
13831 exclude_expsyms=$lt_exclude_expsyms_CXX
13833 # Symbols that must always be exported.
13834 include_expsyms=$lt_include_expsyms_CXX
13836 # ### END LIBTOOL TAG CONFIG: $tagname
13842 # If there is no Makefile yet, we rely on a make rule to execute
13843 # `config.status --recheck' to rerun these tests and create the
13844 # libtool script then.
13845 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13846 if test -f "$ltmain_in"; then
13847 test -f Makefile && make "$ltmain"
13853 ac_cpp='$CPP $CPPFLAGS'
13854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13862 with_gnu_ldcxx=$with_gnu_ld
13863 with_gnu_ld=$lt_save_with_gnu_ld
13864 lt_cv_path_LDCXX=$lt_cv_path_LD
13865 lt_cv_path_LD=$lt_save_path_LD
13866 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13867 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13875 if test -n "$F77" && test "X$F77" != "Xno"; then
13878 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13879 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13880 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13883 archive_cmds_need_lc_F77=no
13884 allow_undefined_flag_F77=
13885 always_export_symbols_F77=no
13886 archive_expsym_cmds_F77=
13887 export_dynamic_flag_spec_F77=
13888 hardcode_direct_F77=no
13889 hardcode_libdir_flag_spec_F77=
13890 hardcode_libdir_flag_spec_ld_F77=
13891 hardcode_libdir_separator_F77=
13892 hardcode_minus_L_F77=no
13893 hardcode_automatic_F77=no
13895 module_expsym_cmds_F77=
13896 link_all_deplibs_F77=unknown
13897 old_archive_cmds_F77=$old_archive_cmds
13898 no_undefined_flag_F77=
13899 whole_archive_flag_spec_F77=
13900 enable_shared_with_static_runtimes_F77=no
13902 # Source file extension for f77 test sources.
13905 # Object file extension for compiled f77 test sources.
13909 # Code to be used in simple compile tests
13910 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13912 # Code to be used in simple link tests
13913 lt_simple_link_test_code=" program t\n end\n"
13915 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13917 # If no C compiler was specified, use CC.
13920 # Allow CC to be a program name with arguments.
13924 # Allow CC to be a program name with arguments.
13929 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13931 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13932 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13933 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13934 echo "${ECHO_T}$can_build_shared" >&6
13936 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13937 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13938 test "$can_build_shared" = "no" && enable_shared=no
13940 # On AIX, shared libraries and static libraries use the same namespace, and
13941 # are all built from PIC.
13944 test "$enable_shared" = yes && enable_static=no
13945 if test -n "$RANLIB"; then
13946 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13947 postinstall_cmds='$RANLIB $lib'
13951 test "$enable_shared" = yes && enable_static=no
13954 echo "$as_me:$LINENO: result: $enable_shared" >&5
13955 echo "${ECHO_T}$enable_shared" >&6
13957 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13958 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13959 # Make sure either enable_shared or enable_static is yes.
13960 test "$enable_shared" = yes || enable_static=yes
13961 echo "$as_me:$LINENO: result: $enable_static" >&5
13962 echo "${ECHO_T}$enable_static" >&6
13964 test "$ld_shlibs_F77" = no && can_build_shared=no
13969 lt_prog_compiler_wl_F77=
13970 lt_prog_compiler_pic_F77=
13971 lt_prog_compiler_static_F77=
13973 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13974 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13976 if test "$GCC" = yes; then
13977 lt_prog_compiler_wl_F77='-Wl,'
13978 lt_prog_compiler_static_F77='-static'
13982 # All AIX code is PIC.
13983 if test "$host_cpu" = ia64; then
13984 # AIX 5 now supports IA64 processor
13985 lt_prog_compiler_static_F77='-Bstatic'
13990 # FIXME: we need at least 68020 code to build shared libraries, but
13991 # adding the `-m68020' flag to GCC prevents building anything better,
13993 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13996 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13997 # PIC is the default for these OSes.
14000 mingw* | pw32* | os2*)
14001 # This hack is so that the source file can tell whether it is being
14002 # built for inclusion in a dll (and should export symbols for example).
14003 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14006 darwin* | rhapsody*)
14007 # PIC is the default on this platform
14008 # Common symbols not allowed in MH_DYLIB files
14009 lt_prog_compiler_pic_F77='-fno-common'
14013 # Just because we use GCC doesn't mean we suddenly get shared libraries
14014 # on systems that don't support them.
14015 lt_prog_compiler_can_build_shared_F77=no
14020 if test -d /usr/nec; then
14021 lt_prog_compiler_pic_F77=-Kconform_pic
14026 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14027 # not for PA HP-UX.
14028 case "$host_cpu" in
14033 lt_prog_compiler_pic_F77='-fPIC'
14039 lt_prog_compiler_pic_F77='-fPIC'
14043 # PORTME Check for flag to pass linker flags through the system compiler.
14046 lt_prog_compiler_wl_F77='-Wl,'
14047 if test "$host_cpu" = ia64; then
14048 # AIX 5 now supports IA64 processor
14049 lt_prog_compiler_static_F77='-Bstatic'
14051 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14055 mingw* | pw32* | os2*)
14056 # This hack is so that the source file can tell whether it is being
14057 # built for inclusion in a dll (and should export symbols for example).
14058 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14061 hpux9* | hpux10* | hpux11*)
14062 lt_prog_compiler_wl_F77='-Wl,'
14063 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14064 # not for PA HP-UX.
14065 case "$host_cpu" in
14070 lt_prog_compiler_pic_F77='+Z'
14073 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14074 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14077 irix5* | irix6* | nonstopux*)
14078 lt_prog_compiler_wl_F77='-Wl,'
14079 # PIC (with -KPIC) is the default.
14080 lt_prog_compiler_static_F77='-non_shared'
14084 lt_prog_compiler_pic_F77='-KPIC'
14085 lt_prog_compiler_static_F77='-Bstatic'
14091 lt_prog_compiler_wl_F77='-Wl,'
14092 lt_prog_compiler_pic_F77='-KPIC'
14093 lt_prog_compiler_static_F77='-static'
14096 lt_prog_compiler_wl_F77='-Wl,'
14097 # All Alpha code is PIC.
14098 lt_prog_compiler_static_F77='-non_shared'
14103 osf3* | osf4* | osf5*)
14104 lt_prog_compiler_wl_F77='-Wl,'
14105 # All OSF/1 code is PIC.
14106 lt_prog_compiler_static_F77='-non_shared'
14110 lt_prog_compiler_pic_F77='-Kpic'
14111 lt_prog_compiler_static_F77='-dn'
14115 lt_prog_compiler_wl_F77='-Wl,'
14116 lt_prog_compiler_pic_F77='-KPIC'
14117 lt_prog_compiler_static_F77='-Bstatic'
14121 lt_prog_compiler_wl_F77='-Qoption ld '
14122 lt_prog_compiler_pic_F77='-PIC'
14123 lt_prog_compiler_static_F77='-Bstatic'
14126 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14127 lt_prog_compiler_wl_F77='-Wl,'
14128 lt_prog_compiler_pic_F77='-KPIC'
14129 lt_prog_compiler_static_F77='-Bstatic'
14133 if test -d /usr/nec ;then
14134 lt_prog_compiler_pic_F77='-Kconform_pic'
14135 lt_prog_compiler_static_F77='-Bstatic'
14140 lt_prog_compiler_pic_F77='-pic'
14141 lt_prog_compiler_static_F77='-Bstatic'
14145 lt_prog_compiler_can_build_shared_F77=no
14150 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14151 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14154 # Check to make sure the PIC flag actually works.
14156 if test -n "$lt_prog_compiler_pic_F77"; then
14158 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14159 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14160 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14161 echo $ECHO_N "(cached) $ECHO_C" >&6
14163 lt_prog_compiler_pic_works_F77=no
14164 ac_outfile=conftest.$ac_objext
14165 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14166 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14167 # Insert the option either (1) after the last *FLAGS variable, or
14168 # (2) before a word containing "conftest.", or (3) at the end.
14169 # Note that $ac_compile itself does not contain backslashes and begins
14170 # with a dollar sign (not a hyphen), so the echo should work correctly.
14171 # The option is referenced via a variable to avoid confusing sed.
14172 lt_compile=`echo "$ac_compile" | $SED \
14173 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14175 -e 's:$: $lt_compiler_flag:'`
14176 (eval echo "\"\$as_me:14176: $lt_compile\"" >&5)
14177 (eval "$lt_compile" 2>conftest.err)
14179 cat conftest.err >&5
14180 echo "$as_me:14180: \$? = $ac_status" >&5
14181 if (exit $ac_status) && test -s "$ac_outfile"; then
14182 # The compiler can only warn and ignore the option if not recognized
14183 # So say no if there are warnings
14184 if test ! -s conftest.err; then
14185 lt_prog_compiler_pic_works_F77=yes
14191 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14192 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14194 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14195 case $lt_prog_compiler_pic_F77 in
14197 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14200 lt_prog_compiler_pic_F77=
14201 lt_prog_compiler_can_build_shared_F77=no
14206 # For platforms which do not support PIC, -DPIC is meaningless:
14208 lt_prog_compiler_pic_F77=
14211 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14215 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14216 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14217 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14220 lt_cv_prog_compiler_c_o_F77=no
14221 $rm -r conftest 2>/dev/null
14225 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14227 lt_compiler_flag="-o out/conftest2.$ac_objext"
14228 # Insert the option either (1) after the last *FLAGS variable, or
14229 # (2) before a word containing "conftest.", or (3) at the end.
14230 # Note that $ac_compile itself does not contain backslashes and begins
14231 # with a dollar sign (not a hyphen), so the echo should work correctly.
14232 lt_compile=`echo "$ac_compile" | $SED \
14233 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14234 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14235 -e 's:$: $lt_compiler_flag:'`
14236 (eval echo "\"\$as_me:14236: $lt_compile\"" >&5)
14237 (eval "$lt_compile" 2>out/conftest.err)
14239 cat out/conftest.err >&5
14240 echo "$as_me:14240: \$? = $ac_status" >&5
14241 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14243 # The compiler can only warn and ignore the option if not recognized
14244 # So say no if there are warnings
14245 if test ! -s out/conftest.err; then
14246 lt_cv_prog_compiler_c_o_F77=yes
14251 # SGI C++ compiler will create directory out/ii_files/ for
14252 # template instantiation
14253 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14254 $rm out/* && rmdir out
14260 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14261 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14264 hard_links="nottested"
14265 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14266 # do not overwrite the value of need_locks provided by the user
14267 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14268 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14271 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14273 ln conftest.a conftest.b 2>&5 || hard_links=no
14274 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14275 echo "$as_me:$LINENO: result: $hard_links" >&5
14276 echo "${ECHO_T}$hard_links" >&6
14277 if test "$hard_links" = no; then
14278 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14279 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14286 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14287 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14290 allow_undefined_flag_F77=
14291 enable_shared_with_static_runtimes_F77=no
14293 archive_expsym_cmds_F77=
14294 old_archive_From_new_cmds_F77=
14295 old_archive_from_expsyms_cmds_F77=
14296 export_dynamic_flag_spec_F77=
14297 whole_archive_flag_spec_F77=
14298 thread_safe_flag_spec_F77=
14299 hardcode_libdir_flag_spec_F77=
14300 hardcode_libdir_flag_spec_ld_F77=
14301 hardcode_libdir_separator_F77=
14302 hardcode_direct_F77=no
14303 hardcode_minus_L_F77=no
14304 hardcode_shlibpath_var_F77=unsupported
14305 link_all_deplibs_F77=unknown
14306 hardcode_automatic_F77=no
14308 module_expsym_cmds_F77=
14309 always_export_symbols_F77=no
14310 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14311 # include_expsyms should be a list of space-separated symbols to be *always*
14312 # included in the symbol list
14313 include_expsyms_F77=
14314 # exclude_expsyms can be an extended regexp of symbols to exclude
14315 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14316 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14317 # as well as any symbol that contains `d'.
14318 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14319 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14320 # platforms (ab)use it in PIC code, but their linkers get confused if
14321 # the symbol is explicitly referenced. Since portable code cannot
14322 # rely on this symbol name, it's probably fine to never include it in
14323 # preloaded symbol tables.
14324 extract_expsyms_cmds=
14327 cygwin* | mingw* | pw32*)
14328 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14329 # When not using gcc, we currently assume that we are using
14330 # Microsoft Visual C++.
14331 if test "$GCC" != yes; then
14341 if test "$with_gnu_ld" = yes; then
14342 # If archive_cmds runs LD, not CC, wlarc should be empty
14345 # See if GNU ld supports shared libraries.
14347 aix3* | aix4* | aix5*)
14348 # On AIX/PPC, the GNU linker is very broken
14349 if test "$host_cpu" != ia64; then
14353 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14354 *** to be unable to reliably create shared libraries on AIX.
14355 *** Therefore, libtool is disabling shared libraries support. If you
14356 *** really care for shared libraries, you may want to modify your PATH
14357 *** so that a non-GNU linker is found, and then restart.
14364 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)'
14365 hardcode_libdir_flag_spec_F77='-L$libdir'
14366 hardcode_minus_L_F77=yes
14368 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14369 # that the semantics of dynamic libraries on AmigaOS, at least up
14370 # to version 4, is to share data among multiple programs linked
14371 # with the same dynamic library. Since this doesn't match the
14372 # behavior of shared libraries on other platforms, we can't use
14378 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14379 allow_undefined_flag_F77=unsupported
14380 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14381 # support --undefined. This deserves some investigation. FIXME
14382 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14388 cygwin* | mingw* | pw32*)
14389 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14390 # as there is no search path for DLLs.
14391 hardcode_libdir_flag_spec_F77='-L$libdir'
14392 allow_undefined_flag_F77=unsupported
14393 always_export_symbols_F77=no
14394 enable_shared_with_static_runtimes_F77=yes
14395 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14397 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14398 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14399 # If the export-symbols file already is a .def file (1st line
14400 # is EXPORTS), use it as is; otherwise, prepend...
14401 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14402 cp $export_symbols $output_objdir/$soname.def;
14404 echo EXPORTS > $output_objdir/$soname.def;
14405 cat $export_symbols >> $output_objdir/$soname.def;
14407 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14414 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14415 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14418 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14419 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14424 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14428 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14429 *** create shared libraries on Solaris systems. Therefore, libtool
14430 *** is disabling shared libraries support. We urge you to upgrade GNU
14431 *** binutils to release 2.9.1 or newer. Another option is to modify
14432 *** your PATH or compiler configuration so that the native linker is
14433 *** used, and then restart.
14436 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14437 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14438 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14445 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14447 hardcode_direct_F77=yes
14448 hardcode_shlibpath_var_F77=no
14452 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14453 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14454 archive_cmds_F77="$tmp_archive_cmds"
14455 supports_anon_versioning=no
14456 case `$LD -v 2>/dev/null` in
14457 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14458 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14459 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14460 *\ 2.11.*) ;; # other 2.11 versions
14461 *) supports_anon_versioning=yes ;;
14463 if test $supports_anon_versioning = yes; then
14464 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14465 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14466 $echo "local: *; };" >> $output_objdir/$libname.ver~
14467 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14469 archive_expsym_cmds_F77="$tmp_archive_cmds"
14477 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14478 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14479 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14486 if test "$ld_shlibs_F77" = yes; then
14487 runpath_var=LD_RUN_PATH
14488 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14489 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14490 # ancient GNU ld didn't support --whole-archive et. al.
14491 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14492 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14494 whole_archive_flag_spec_F77=
14498 # PORTME fill in a description of your system's linker (not GNU ld)
14501 allow_undefined_flag_F77=unsupported
14502 always_export_symbols_F77=yes
14503 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'
14504 # Note: this linker hardcodes the directories in LIBPATH if there
14505 # are no directories specified by -L.
14506 hardcode_minus_L_F77=yes
14507 if test "$GCC" = yes && test -z "$link_static_flag"; then
14508 # Neither direct hardcoding nor static linking is supported with a
14510 hardcode_direct_F77=unsupported
14515 if test "$host_cpu" = ia64; then
14516 # On IA64, the linker does run time linking by default, so we don't
14517 # have to do anything special.
14518 aix_use_runtimelinking=no
14519 exp_sym_flag='-Bexport'
14522 # If we're using GNU nm, then we don't want the "-C" option.
14523 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14524 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14525 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'
14527 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'
14529 aix_use_runtimelinking=no
14531 # Test if we are trying to use run time linking or normal
14532 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14533 # need to do runtime linking.
14534 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14535 for ld_flag in $LDFLAGS; do
14536 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14537 aix_use_runtimelinking=yes
14543 exp_sym_flag='-bexport'
14544 no_entry_flag='-bnoentry'
14547 # When large executables or shared objects are built, AIX ld can
14548 # have problems creating the table of contents. If linking a library
14549 # or program results in "error TOC overflow" add -mminimal-toc to
14550 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14551 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14553 archive_cmds_F77=''
14554 hardcode_direct_F77=yes
14555 hardcode_libdir_separator_F77=':'
14556 link_all_deplibs_F77=yes
14558 if test "$GCC" = yes; then
14559 case $host_os in aix4.012|aix4.012.*)
14560 # We only want to do this on AIX 4.2 and lower, the check
14561 # below for broken collect2 doesn't work under 4.3+
14562 collect2name=`${CC} -print-prog-name=collect2`
14563 if test -f "$collect2name" && \
14564 strings "$collect2name" | grep resolve_lib_name >/dev/null
14566 # We have reworked collect2
14567 hardcode_direct_F77=yes
14569 # We have old collect2
14570 hardcode_direct_F77=unsupported
14571 # It fails to find uninstalled libraries when the uninstalled
14572 # path is not listed in the libpath. Setting hardcode_minus_L
14573 # to unsupported forces relinking
14574 hardcode_minus_L_F77=yes
14575 hardcode_libdir_flag_spec_F77='-L$libdir'
14576 hardcode_libdir_separator_F77=
14579 shared_flag='-shared'
14582 if test "$host_cpu" = ia64; then
14583 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14584 # chokes on -Wl,-G. The following line is correct:
14587 if test "$aix_use_runtimelinking" = yes; then
14588 shared_flag='${wl}-G'
14590 shared_flag='${wl}-bM:SRE'
14595 # It seems that -bexpall does not export symbols beginning with
14596 # underscore (_), so it is better to generate a list of symbols to export.
14597 always_export_symbols_F77=yes
14598 if test "$aix_use_runtimelinking" = yes; then
14599 # Warning - without using the other runtime loading flags (-brtl),
14600 # -berok will link without error, but may produce a broken library.
14601 allow_undefined_flag_F77='-berok'
14602 # Determine the default libpath from the value encoded in an empty executable.
14603 cat >conftest.$ac_ext <<_ACEOF
14608 rm -f conftest.$ac_objext conftest$ac_exeext
14609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14610 (eval $ac_link) 2>conftest.er1
14612 grep -v '^ *+' conftest.er1 >conftest.err
14614 cat conftest.err >&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); } &&
14617 { ac_try='test -z "$ac_f77_werror_flag"
14618 || test ! -s conftest.err'
14619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14620 (eval $ac_try) 2>&5
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); }; } &&
14624 { ac_try='test -s conftest$ac_exeext'
14625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14626 (eval $ac_try) 2>&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); }; }; then
14631 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14633 # Check for a 64-bit object if we didn't find anything.
14634 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; }
14637 echo "$as_me: failed program was:" >&5
14638 sed 's/^/| /' conftest.$ac_ext >&5
14641 rm -f conftest.err conftest.$ac_objext \
14642 conftest$ac_exeext conftest.$ac_ext
14643 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14645 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14646 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"
14648 if test "$host_cpu" = ia64; then
14649 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14650 allow_undefined_flag_F77="-z nodefs"
14651 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"
14653 # Determine the default libpath from the value encoded in an empty executable.
14654 cat >conftest.$ac_ext <<_ACEOF
14659 rm -f conftest.$ac_objext conftest$ac_exeext
14660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14661 (eval $ac_link) 2>conftest.er1
14663 grep -v '^ *+' conftest.er1 >conftest.err
14665 cat conftest.err >&5
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); } &&
14668 { ac_try='test -z "$ac_f77_werror_flag"
14669 || test ! -s conftest.err'
14670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14671 (eval $ac_try) 2>&5
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); }; } &&
14675 { ac_try='test -s conftest$ac_exeext'
14676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677 (eval $ac_try) 2>&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); }; }; then
14682 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14684 # Check for a 64-bit object if we didn't find anything.
14685 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; }
14688 echo "$as_me: failed program was:" >&5
14689 sed 's/^/| /' conftest.$ac_ext >&5
14692 rm -f conftest.err conftest.$ac_objext \
14693 conftest$ac_exeext conftest.$ac_ext
14694 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14696 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14697 # Warning - without using the other run time loading flags,
14698 # -berok will link without error, but may produce a broken library.
14699 no_undefined_flag_F77=' ${wl}-bernotok'
14700 allow_undefined_flag_F77=' ${wl}-berok'
14701 # -bexpall does not export symbols beginning with underscore (_)
14702 always_export_symbols_F77=yes
14703 # Exported symbols can be pulled into shared objects from archives
14704 whole_archive_flag_spec_F77=' '
14705 archive_cmds_need_lc_F77=yes
14706 # This is similar to how AIX traditionally builds it's shared libraries.
14707 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'
14713 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)'
14714 hardcode_libdir_flag_spec_F77='-L$libdir'
14715 hardcode_minus_L_F77=yes
14716 # see comment about different semantics on the GNU ld section
14721 export_dynamic_flag_spec_F77=-rdynamic
14724 cygwin* | mingw* | pw32*)
14725 # When not using gcc, we currently assume that we are using
14726 # Microsoft Visual C++.
14727 # hardcode_libdir_flag_spec is actually meaningless, as there is
14728 # no search path for DLLs.
14729 hardcode_libdir_flag_spec_F77=' '
14730 allow_undefined_flag_F77=unsupported
14731 # Tell ltmain to make .lib files, not .a files.
14733 # Tell ltmain to make .dll files, not .so files.
14735 # FIXME: Setting linknames here is a bad hack.
14736 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14737 # The linker will automatically build a .lib file if we build a DLL.
14738 old_archive_From_new_cmds_F77='true'
14739 # FIXME: Should let the user specify the lib program.
14740 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14741 fix_srcfile_path='`cygpath -w "$srcfile"`'
14742 enable_shared_with_static_runtimes_F77=yes
14745 darwin* | rhapsody*)
14746 if test "$GXX" = yes ; then
14747 archive_cmds_need_lc_F77=no
14749 rhapsody* | darwin1.[012])
14750 allow_undefined_flag_F77='-undefined suppress'
14753 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14754 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14756 case ${MACOSX_DEPLOYMENT_TARGET} in
14758 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14761 allow_undefined_flag_F77='-undefined dynamic_lookup'
14767 lt_int_apple_cc_single_mod=no
14768 output_verbose_link_cmd='echo'
14769 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14770 lt_int_apple_cc_single_mod=yes
14772 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14773 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14775 archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
14777 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14778 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14779 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14780 archive_expsym_cmds_F77='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}'
14782 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
14784 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}'
14785 hardcode_direct_F77=no
14786 hardcode_automatic_F77=yes
14787 hardcode_shlibpath_var_F77=unsupported
14788 whole_archive_flag_spec_F77='-all_load $convenience'
14789 link_all_deplibs_F77=yes
14796 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14797 hardcode_libdir_flag_spec_F77='-L$libdir'
14798 hardcode_shlibpath_var_F77=no
14805 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14806 # support. Future versions do this automatically, but an explicit c++rt0.o
14807 # does not break anything, and helps significantly (at the cost of a little
14810 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14811 hardcode_libdir_flag_spec_F77='-R$libdir'
14812 hardcode_direct_F77=yes
14813 hardcode_shlibpath_var_F77=no
14816 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14818 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14819 hardcode_direct_F77=yes
14820 hardcode_minus_L_F77=yes
14821 hardcode_shlibpath_var_F77=no
14824 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14825 freebsd* | kfreebsd*-gnu)
14826 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14827 hardcode_libdir_flag_spec_F77='-R$libdir'
14828 hardcode_direct_F77=yes
14829 hardcode_shlibpath_var_F77=no
14833 if test "$GCC" = yes; then
14834 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'
14836 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'
14838 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14839 hardcode_libdir_separator_F77=:
14840 hardcode_direct_F77=yes
14842 # hardcode_minus_L: Not really in the search PATH,
14843 # but as the default location of the library.
14844 hardcode_minus_L_F77=yes
14845 export_dynamic_flag_spec_F77='${wl}-E'
14849 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14850 case "$host_cpu" in
14852 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14855 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14859 case "$host_cpu" in
14861 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14864 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14868 if test "$with_gnu_ld" = no; then
14869 case "$host_cpu" in
14871 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14872 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14873 hardcode_libdir_separator_F77=:
14874 hardcode_direct_F77=no
14875 hardcode_shlibpath_var_F77=no
14878 hardcode_libdir_flag_spec_F77='-L$libdir'
14879 hardcode_direct_F77=no
14880 hardcode_shlibpath_var_F77=no
14882 # hardcode_minus_L: Not really in the search PATH,
14883 # but as the default location of the library.
14884 hardcode_minus_L_F77=yes
14887 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14888 hardcode_libdir_separator_F77=:
14889 hardcode_direct_F77=yes
14890 export_dynamic_flag_spec_F77='${wl}-E'
14892 # hardcode_minus_L: Not really in the search PATH,
14893 # but as the default location of the library.
14894 hardcode_minus_L_F77=yes
14900 irix5* | irix6* | nonstopux*)
14901 if test "$GCC" = yes; then
14902 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'
14904 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'
14905 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14907 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14908 hardcode_libdir_separator_F77=:
14909 link_all_deplibs_F77=yes
14913 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14914 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14916 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14918 hardcode_libdir_flag_spec_F77='-R$libdir'
14919 hardcode_direct_F77=yes
14920 hardcode_shlibpath_var_F77=no
14924 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14925 hardcode_direct_F77=yes
14926 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14927 hardcode_libdir_separator_F77=:
14928 hardcode_shlibpath_var_F77=no
14932 hardcode_direct_F77=yes
14933 hardcode_shlibpath_var_F77=no
14934 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14935 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14936 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14937 export_dynamic_flag_spec_F77='${wl}-E'
14940 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14941 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14942 hardcode_libdir_flag_spec_F77='-R$libdir'
14945 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14946 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14953 hardcode_libdir_flag_spec_F77='-L$libdir'
14954 hardcode_minus_L_F77=yes
14955 allow_undefined_flag_F77=unsupported
14956 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'
14957 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14961 if test "$GCC" = yes; then
14962 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14963 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'
14965 allow_undefined_flag_F77=' -expect_unresolved \*'
14966 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'
14968 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14969 hardcode_libdir_separator_F77=:
14972 osf4* | osf5*) # as osf3* with the addition of -msym flag
14973 if test "$GCC" = yes; then
14974 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14975 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'
14976 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14978 allow_undefined_flag_F77=' -expect_unresolved \*'
14979 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'
14980 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~
14981 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14983 # Both c and cxx compiler support -rpath directly
14984 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14986 hardcode_libdir_separator_F77=:
14990 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14991 hardcode_shlibpath_var_F77=no
14992 export_dynamic_flag_spec_F77='${wl}-Bexport'
14993 runpath_var=LD_RUN_PATH
14994 hardcode_runpath_var=yes
14998 no_undefined_flag_F77=' -z text'
14999 if test "$GCC" = yes; then
15000 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15001 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15002 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15004 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15005 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15006 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15008 hardcode_libdir_flag_spec_F77='-R$libdir'
15009 hardcode_shlibpath_var_F77=no
15011 solaris2.[0-5] | solaris2.[0-5].*) ;;
15012 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15013 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15015 link_all_deplibs_F77=yes
15019 if test "x$host_vendor" = xsequent; then
15020 # Use $CC to link under sequent, because it throws in some extra .o
15021 # files that make .init and .fini sections work.
15022 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15024 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15026 hardcode_libdir_flag_spec_F77='-L$libdir'
15027 hardcode_direct_F77=yes
15028 hardcode_minus_L_F77=yes
15029 hardcode_shlibpath_var_F77=no
15033 case $host_vendor in
15035 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15036 hardcode_direct_F77=yes # is this really true???
15039 ## LD is ld it makes a PLAMLIB
15040 ## CC just makes a GrossModule.
15041 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15042 reload_cmds_F77='$CC -r -o $output$reload_objs'
15043 hardcode_direct_F77=no
15046 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15047 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15050 runpath_var='LD_RUN_PATH'
15051 hardcode_shlibpath_var_F77=no
15055 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15056 hardcode_shlibpath_var_F77=no
15057 export_dynamic_flag_spec_F77='-Bexport'
15061 if test -d /usr/nec; then
15062 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15063 hardcode_shlibpath_var_F77=no
15064 runpath_var=LD_RUN_PATH
15065 hardcode_runpath_var=yes
15071 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15072 hardcode_direct_F77=yes
15073 hardcode_minus_L_F77=no
15074 hardcode_shlibpath_var_F77=no
15075 hardcode_runpath_var=yes
15076 runpath_var=LD_RUN_PATH
15079 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15080 no_undefined_flag_F77='${wl}-z ${wl}text'
15081 if test "$GCC" = yes; then
15082 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15084 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15086 runpath_var='LD_RUN_PATH'
15087 hardcode_shlibpath_var_F77=no
15091 no_undefined_flag_F77=' -z text'
15092 # $CC -shared without GNU ld will not create a library from C++
15093 # object files and a static libstdc++, better avoid it by now
15094 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15095 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15096 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15097 hardcode_libdir_flag_spec_F77=
15098 hardcode_shlibpath_var_F77=no
15099 runpath_var='LD_RUN_PATH'
15103 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15104 hardcode_libdir_flag_spec_F77='-L$libdir'
15105 hardcode_shlibpath_var_F77=no
15114 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15115 echo "${ECHO_T}$ld_shlibs_F77" >&6
15116 test "$ld_shlibs_F77" = no && can_build_shared=no
15118 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15119 if test "$GCC" = yes; then
15120 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15124 # Do we need to explicitly link libc?
15126 case "x$archive_cmds_need_lc_F77" in
15128 # Assume -lc should be added
15129 archive_cmds_need_lc_F77=yes
15131 if test "$enable_shared" = yes && test "$GCC" = yes; then
15132 case $archive_cmds_F77 in
15134 # FIXME: we may have to deal with multi-command sequences.
15137 # Test whether the compiler implicitly links with -lc since on some
15138 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15139 # to ld, don't add -lc before -lgcc.
15140 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15141 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15143 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15146 (eval $ac_compile) 2>&5
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); } 2>conftest.err; then
15152 libobjs=conftest.$ac_objext
15154 wl=$lt_prog_compiler_wl_F77
15160 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15161 allow_undefined_flag_F77=
15162 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15163 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }
15168 archive_cmds_need_lc_F77=no
15170 archive_cmds_need_lc_F77=yes
15172 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15174 cat conftest.err 1>&5
15177 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15178 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15185 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15186 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15187 library_names_spec=
15188 libname_spec='lib$name'
15192 postuninstall_cmds=
15196 shlibpath_overrides_runpath=unknown
15198 dynamic_linker="$host_os ld.so"
15199 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15200 if test "$GCC" = yes; then
15201 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15202 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15203 # if the path contains ";" then we assume it to be the separator
15204 # otherwise default to the standard path separator (i.e. ":") - it is
15205 # assumed that no part of a normal pathname contains ";" but that should
15206 # okay in the real world where ";" in dirpaths is itself problematic.
15207 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15209 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15212 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15214 need_lib_prefix=unknown
15215 hardcode_into_libs=no
15217 # when you set need_version to no, make sure it does not cause -set_version
15218 # flags to be left without arguments
15219 need_version=unknown
15224 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15225 shlibpath_var=LIBPATH
15227 # AIX 3 has no versioning support, so we append a major version to the name.
15228 soname_spec='${libname}${release}${shared_ext}$major'
15235 hardcode_into_libs=yes
15236 if test "$host_cpu" = ia64; then
15237 # AIX 5 supports IA64
15238 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15239 shlibpath_var=LD_LIBRARY_PATH
15241 # With GCC up to 2.95.x, collect2 would create an import file
15242 # for dependence libraries. The import file would start with
15243 # the line `#! .'. This would cause the generated library to
15244 # depend on `.', always an invalid library. This was fixed in
15245 # development snapshots of GCC prior to 3.0.
15247 aix4 | aix4.[01] | aix4.[01].*)
15248 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15250 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15253 can_build_shared=no
15257 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15258 # soname into executable. Probably we can add versioning support to
15259 # collect2, so additional links can be useful in future.
15260 if test "$aix_use_runtimelinking" = yes; then
15261 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15262 # instead of lib<name>.a to let people know that these are not
15263 # typical AIX shared libraries.
15264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15266 # We preserve .a as extension for shared libraries through AIX4.2
15267 # and later when we are not doing run time linking.
15268 library_names_spec='${libname}${release}.a $libname.a'
15269 soname_spec='${libname}${release}${shared_ext}$major'
15271 shlibpath_var=LIBPATH
15276 library_names_spec='$libname.ixlibrary $libname.a'
15277 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15278 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'
15282 library_names_spec='${libname}${shared_ext}'
15283 dynamic_linker="$host_os ld.so"
15284 shlibpath_var=LIBRARY_PATH
15290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15291 soname_spec='${libname}${release}${shared_ext}$major'
15292 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15293 shlibpath_var=LD_LIBRARY_PATH
15294 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15295 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15296 # the default ld.so.conf also contains /usr/contrib/lib and
15297 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15298 # libtool to hard-code these into programs
15301 cygwin* | mingw* | pw32*)
15302 version_type=windows
15307 case $GCC,$host_os in
15308 yes,cygwin* | yes,mingw* | yes,pw32*)
15309 library_names_spec='$libname.dll.a'
15310 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15311 postinstall_cmds='base_file=`basename \${file}`~
15312 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15313 dldir=$destdir/`dirname \$dlpath`~
15314 test -d \$dldir || mkdir -p \$dldir~
15315 $install_prog $dir/$dlname \$dldir/$dlname'
15316 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15317 dlpath=$dir/\$dldll~
15319 shlibpath_overrides_runpath=yes
15323 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15324 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15325 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15328 # MinGW DLLs use traditional 'lib' prefix
15329 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15330 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15331 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15332 # It is most probably a Windows format PATH printed by
15333 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15334 # path with ; separators, and with drive letters. We can handle the
15335 # drive letters (cygwin fileutils understands them), so leave them,
15336 # especially as we might pass files found there to a mingw objdump,
15337 # which wouldn't understand a cygwinified path. Ahh.
15338 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15340 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15344 # pw32 DLLs use 'pw' prefix rather than 'lib'
15345 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15351 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15354 dynamic_linker='Win32 ld.exe'
15355 # FIXME: first we should search . and the directory the executable is in
15359 darwin* | rhapsody*)
15360 dynamic_linker="$host_os dyld"
15361 version_type=darwin
15364 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15365 soname_spec='${libname}${release}${major}$shared_ext'
15366 shlibpath_overrides_runpath=yes
15367 shlibpath_var=DYLD_LIBRARY_PATH
15368 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
15369 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15370 if test "$GCC" = yes; then
15371 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"`
15373 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15375 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15383 soname_spec='${libname}${release}${shared_ext}$major'
15384 shlibpath_var=LD_LIBRARY_PATH
15395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15396 soname_spec='${libname}${release}${shared_ext}$major'
15397 shlibpath_var=LD_LIBRARY_PATH
15398 shlibpath_overrides_runpath=no
15399 hardcode_into_libs=yes
15400 dynamic_linker='GNU ld.so'
15404 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15405 version_type=freebsd-$objformat
15406 case $version_type in
15408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15413 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15417 shlibpath_var=LD_LIBRARY_PATH
15420 shlibpath_overrides_runpath=yes
15422 freebsd3.01* | freebsdelf3.01*)
15423 shlibpath_overrides_runpath=yes
15424 hardcode_into_libs=yes
15427 shlibpath_overrides_runpath=no
15428 hardcode_into_libs=yes
15437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15438 soname_spec='${libname}${release}${shared_ext}$major'
15439 shlibpath_var=LD_LIBRARY_PATH
15440 hardcode_into_libs=yes
15443 hpux9* | hpux10* | hpux11*)
15444 # Give a soname corresponding to the major version so that dld.sl refuses to
15445 # link against other versions.
15449 case "$host_cpu" in
15452 hardcode_into_libs=yes
15453 dynamic_linker="$host_os dld.so"
15454 shlibpath_var=LD_LIBRARY_PATH
15455 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15457 soname_spec='${libname}${release}${shared_ext}$major'
15458 if test "X$HPUX_IA64_MODE" = X32; then
15459 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15461 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15463 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15467 hardcode_into_libs=yes
15468 dynamic_linker="$host_os dld.sl"
15469 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15470 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15472 soname_spec='${libname}${release}${shared_ext}$major'
15473 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15478 dynamic_linker="$host_os dld.sl"
15479 shlibpath_var=SHLIB_PATH
15480 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15482 soname_spec='${libname}${release}${shared_ext}$major'
15485 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15486 postinstall_cmds='chmod 555 $lib'
15489 irix5* | irix6* | nonstopux*)
15491 nonstopux*) version_type=nonstopux ;;
15493 if test "$lt_cv_prog_gnu_ld" = yes; then
15501 soname_spec='${libname}${release}${shared_ext}$major'
15502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15504 irix5* | nonstopux*)
15505 libsuff= shlibsuff=
15508 case $LD in # libtool.m4 will add one of these switches to LD
15509 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15510 libsuff= shlibsuff= libmagic=32-bit;;
15511 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15512 libsuff=32 shlibsuff=N32 libmagic=N32;;
15513 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15514 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15515 *) libsuff= shlibsuff= libmagic=never-match;;
15519 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15520 shlibpath_overrides_runpath=no
15521 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15522 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15523 hardcode_into_libs=yes
15526 # No shared lib support for Linux oldld, aout, or coff.
15527 linux*oldld* | linux*aout* | linux*coff*)
15531 # This must be Linux ELF.
15536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15537 soname_spec='${libname}${release}${shared_ext}$major'
15538 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15539 shlibpath_var=LD_LIBRARY_PATH
15540 shlibpath_overrides_runpath=no
15541 # This implies no fast_install, which is unacceptable.
15542 # Some rework will be needed to allow for fast_install
15543 # before this can be enabled.
15544 hardcode_into_libs=yes
15546 # Append ld.so.conf contents to the search path
15547 if test -f /etc/ld.so.conf; then
15548 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
15549 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
15552 # We used to test for /lib/ld.so.1 and disable shared libraries on
15553 # powerpc, because MkLinux only supported shared libraries with the
15554 # GNU dynamic linker. Since this was broken with cross compilers,
15555 # most powerpc-linux boxes support dynamic linking these days and
15556 # people can always --disable-shared, the test was removed, and we
15557 # assume the GNU/Linux dynamic linker is in use.
15558 dynamic_linker='GNU/Linux ld.so'
15565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15566 soname_spec='${libname}${release}${shared_ext}$major'
15567 shlibpath_var=LD_LIBRARY_PATH
15568 shlibpath_overrides_runpath=no
15569 hardcode_into_libs=yes
15570 dynamic_linker='GNU ld.so'
15577 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15579 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15580 dynamic_linker='NetBSD (a.out) ld.so'
15582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15583 soname_spec='${libname}${release}${shared_ext}$major'
15584 dynamic_linker='NetBSD ld.elf_so'
15586 shlibpath_var=LD_LIBRARY_PATH
15587 shlibpath_overrides_runpath=yes
15588 hardcode_into_libs=yes
15593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15594 shlibpath_var=LD_LIBRARY_PATH
15595 shlibpath_overrides_runpath=yes
15602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15603 soname_spec='${libname}${release}${shared_ext}$major'
15604 shlibpath_var=LD_LIBRARY_PATH
15605 shlibpath_overrides_runpath=yes
15612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15614 shlibpath_var=LD_LIBRARY_PATH
15615 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15617 openbsd2.[89] | openbsd2.[89].*)
15618 shlibpath_overrides_runpath=no
15621 shlibpath_overrides_runpath=yes
15625 shlibpath_overrides_runpath=yes
15630 libname_spec='$name'
15633 library_names_spec='$libname${shared_ext} $libname.a'
15634 dynamic_linker='OS/2 ld.exe'
15635 shlibpath_var=LIBPATH
15638 osf3* | osf4* | osf5*)
15642 soname_spec='${libname}${release}${shared_ext}$major'
15643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15644 shlibpath_var=LD_LIBRARY_PATH
15645 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15646 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15651 soname_spec='${libname}${release}${shared_ext}$major'
15652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15653 shlibpath_var=LD_LIBRARY_PATH
15660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15661 soname_spec='${libname}${release}${shared_ext}$major'
15662 shlibpath_var=LD_LIBRARY_PATH
15663 shlibpath_overrides_runpath=yes
15664 hardcode_into_libs=yes
15665 # ldd complains unless libraries are executable
15666 postinstall_cmds='chmod +x $lib'
15671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15672 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15673 shlibpath_var=LD_LIBRARY_PATH
15674 shlibpath_overrides_runpath=yes
15675 if test "$with_gnu_ld" = yes; then
15681 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15684 soname_spec='${libname}${release}${shared_ext}$major'
15685 shlibpath_var=LD_LIBRARY_PATH
15686 case $host_vendor in
15688 shlibpath_overrides_runpath=no
15690 export_dynamic_flag_spec='${wl}-Blargedynsym'
15691 runpath_var=LD_RUN_PATH
15699 shlibpath_overrides_runpath=no
15700 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15706 if test -d /usr/nec ;then
15708 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15709 soname_spec='$libname${shared_ext}.$major'
15710 shlibpath_var=LD_LIBRARY_PATH
15716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15717 soname_spec='${libname}${release}${shared_ext}$major'
15718 shlibpath_var=LD_LIBRARY_PATH
15725 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15726 echo "${ECHO_T}$dynamic_linker" >&6
15727 test "$dynamic_linker" = no && can_build_shared=no
15729 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15730 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15731 hardcode_action_F77=
15732 if test -n "$hardcode_libdir_flag_spec_F77" || \
15733 test -n "$runpath_var F77" || \
15734 test "X$hardcode_automatic_F77"="Xyes" ; then
15736 # We can hardcode non-existant directories.
15737 if test "$hardcode_direct_F77" != no &&
15738 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15739 # have to relink, otherwise we might link with an installed library
15740 # when we should be linking with a yet-to-be-installed one
15741 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15742 test "$hardcode_minus_L_F77" != no; then
15743 # Linking always hardcodes the temporary library directory.
15744 hardcode_action_F77=relink
15746 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15747 hardcode_action_F77=immediate
15750 # We cannot hardcode anything, or else we can only hardcode existing
15752 hardcode_action_F77=unsupported
15754 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15755 echo "${ECHO_T}$hardcode_action_F77" >&6
15757 if test "$hardcode_action_F77" = relink; then
15758 # Fast installation is not supported
15759 enable_fast_install=no
15760 elif test "$shlibpath_overrides_runpath" = yes ||
15761 test "$enable_shared" = no; then
15762 # Fast installation is not necessary
15763 enable_fast_install=needless
15768 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15769 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15770 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15771 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15772 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15773 echo "$as_me:$LINENO: result: yes" >&5
15774 echo "${ECHO_T}yes" >&6
15776 # FIXME - insert some real tests, host_os isn't really good enough
15779 if test -n "$STRIP" ; then
15780 striplib="$STRIP -x"
15781 echo "$as_me:$LINENO: result: yes" >&5
15782 echo "${ECHO_T}yes" >&6
15784 echo "$as_me:$LINENO: result: no" >&5
15785 echo "${ECHO_T}no" >&6
15789 echo "$as_me:$LINENO: result: no" >&5
15790 echo "${ECHO_T}no" >&6
15797 # The else clause should only fire when bootstrapping the
15798 # libtool distribution, otherwise you forgot to ship ltmain.sh
15799 # with your package, and you will get complaints that there are
15800 # no rules to generate ltmain.sh.
15801 if test -f "$ltmain"; then
15802 # See if we are running on zsh, and set the options which allow our commands through
15803 # without removal of \ escapes.
15804 if test -n "${ZSH_VERSION+set}" ; then
15805 setopt NO_GLOB_SUBST
15807 # Now quote all the things that may contain metacharacters while being
15808 # careful not to overquote the AC_SUBSTed values. We take copies of the
15809 # variables and quote the copies for generation of the libtool script.
15810 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15812 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15813 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15814 deplibs_check_method reload_flag reload_cmds need_locks \
15815 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15816 lt_cv_sys_global_symbol_to_c_name_address \
15817 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15818 old_postinstall_cmds old_postuninstall_cmds \
15822 lt_prog_compiler_wl_F77 \
15823 lt_prog_compiler_pic_F77 \
15824 lt_prog_compiler_static_F77 \
15825 lt_prog_compiler_no_builtin_flag_F77 \
15826 export_dynamic_flag_spec_F77 \
15827 thread_safe_flag_spec_F77 \
15828 whole_archive_flag_spec_F77 \
15829 enable_shared_with_static_runtimes_F77 \
15830 old_archive_cmds_F77 \
15831 old_archive_from_new_cmds_F77 \
15832 predep_objects_F77 \
15833 postdep_objects_F77 \
15836 compiler_lib_search_path_F77 \
15838 archive_expsym_cmds_F77 \
15839 postinstall_cmds_F77 \
15840 postuninstall_cmds_F77 \
15841 old_archive_from_expsyms_cmds_F77 \
15842 allow_undefined_flag_F77 \
15843 no_undefined_flag_F77 \
15844 export_symbols_cmds_F77 \
15845 hardcode_libdir_flag_spec_F77 \
15846 hardcode_libdir_flag_spec_ld_F77 \
15847 hardcode_libdir_separator_F77 \
15848 hardcode_automatic_F77 \
15850 module_expsym_cmds_F77 \
15851 lt_cv_prog_compiler_c_o_F77 \
15852 exclude_expsyms_F77 \
15853 include_expsyms_F77; do
15856 old_archive_cmds_F77 | \
15857 old_archive_from_new_cmds_F77 | \
15858 archive_cmds_F77 | \
15859 archive_expsym_cmds_F77 | \
15860 module_cmds_F77 | \
15861 module_expsym_cmds_F77 | \
15862 old_archive_from_expsyms_cmds_F77 | \
15863 export_symbols_cmds_F77 | \
15864 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15865 postinstall_cmds | postuninstall_cmds | \
15866 old_postinstall_cmds | old_postuninstall_cmds | \
15867 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15868 # Double-quote double-evaled strings.
15869 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15872 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15878 *'\$0 --fallback-echo"')
15879 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15885 cat <<__EOF__ >> "$cfgfile"
15886 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15888 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15890 # Shell to use when invoking shell scripts.
15893 # Whether or not to build shared libraries.
15894 build_libtool_libs=$enable_shared
15896 # Whether or not to build static libraries.
15897 build_old_libs=$enable_static
15899 # Whether or not to add -lc for building shared libraries.
15900 build_libtool_need_lc=$archive_cmds_need_lc_F77
15902 # Whether or not to disallow shared libs when runtime libs are static
15903 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15905 # Whether or not to optimize for fast installation.
15906 fast_install=$enable_fast_install
15909 host_alias=$host_alias
15912 # An echo program that does not interpret backslashes.
15917 AR_FLAGS=$lt_AR_FLAGS
15922 # A language-specific compiler.
15923 CC=$lt_compiler_F77
15925 # Is the compiler the GNU C compiler?
15931 # The linker used to build libraries.
15934 # Whether we need hard or soft links.
15937 # A BSD-compatible nm program.
15940 # A symbol stripping program
15943 # Used to examine libraries when file_magic_cmd begins "file"
15944 MAGIC_CMD=$MAGIC_CMD
15946 # Used on cygwin: DLL creation program.
15949 # Used on cygwin: object dumper.
15952 # Used on cygwin: assembler.
15955 # The name of the directory that contains temporary libtool files.
15958 # How to create reloadable object files.
15959 reload_flag=$lt_reload_flag
15960 reload_cmds=$lt_reload_cmds
15962 # How to pass a linker flag through the compiler.
15963 wl=$lt_lt_prog_compiler_wl_F77
15965 # Object file suffix (normally "o").
15966 objext="$ac_objext"
15968 # Old archive suffix (normally "a").
15971 # Shared library suffix (normally ".so").
15974 # Executable file suffix (normally "").
15977 # Additional compiler flags for building library objects.
15978 pic_flag=$lt_lt_prog_compiler_pic_F77
15981 # What is the maximum length of a command?
15982 max_cmd_len=$lt_cv_sys_max_cmd_len
15984 # Does compiler simultaneously support -c and -o options?
15985 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15987 # Must we lock files when doing compilation ?
15988 need_locks=$lt_need_locks
15990 # Do we need the lib prefix for modules?
15991 need_lib_prefix=$need_lib_prefix
15993 # Do we need a version for libraries?
15994 need_version=$need_version
15996 # Whether dlopen is supported.
15997 dlopen_support=$enable_dlopen
15999 # Whether dlopen of programs is supported.
16000 dlopen_self=$enable_dlopen_self
16002 # Whether dlopen of statically linked programs is supported.
16003 dlopen_self_static=$enable_dlopen_self_static
16005 # Compiler flag to prevent dynamic linking.
16006 link_static_flag=$lt_lt_prog_compiler_static_F77
16008 # Compiler flag to turn off builtin functions.
16009 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16011 # Compiler flag to allow reflexive dlopens.
16012 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16014 # Compiler flag to generate shared objects directly from archives.
16015 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16017 # Compiler flag to generate thread-safe objects.
16018 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16020 # Library versioning type.
16021 version_type=$version_type
16023 # Format of library name prefix.
16024 libname_spec=$lt_libname_spec
16026 # List of archive names. First name is the real one, the rest are links.
16027 # The last name is the one that the linker finds with -lNAME.
16028 library_names_spec=$lt_library_names_spec
16030 # The coded name of the library, if different from the real name.
16031 soname_spec=$lt_soname_spec
16033 # Commands used to build and install an old-style archive.
16035 old_archive_cmds=$lt_old_archive_cmds_F77
16036 old_postinstall_cmds=$lt_old_postinstall_cmds
16037 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16039 # Create an old-style archive from a shared archive.
16040 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16042 # Create a temporary old-style archive to link instead of a shared archive.
16043 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16045 # Commands used to build and install a shared archive.
16046 archive_cmds=$lt_archive_cmds_F77
16047 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16048 postinstall_cmds=$lt_postinstall_cmds
16049 postuninstall_cmds=$lt_postuninstall_cmds
16051 # Commands used to build a loadable module (assumed same as above if empty)
16052 module_cmds=$lt_module_cmds_F77
16053 module_expsym_cmds=$lt_module_expsym_cmds_F77
16055 # Commands to strip libraries.
16056 old_striplib=$lt_old_striplib
16057 striplib=$lt_striplib
16059 # Dependencies to place before the objects being linked to create a
16061 predep_objects=$lt_predep_objects_F77
16063 # Dependencies to place after the objects being linked to create a
16065 postdep_objects=$lt_postdep_objects_F77
16067 # Dependencies to place before the objects being linked to create a
16069 predeps=$lt_predeps_F77
16071 # Dependencies to place after the objects being linked to create a
16073 postdeps=$lt_postdeps_F77
16075 # The library search path used internally by the compiler when linking
16076 # a shared library.
16077 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16079 # Method to check whether dependent libraries are shared objects.
16080 deplibs_check_method=$lt_deplibs_check_method
16082 # Command to use when deplibs_check_method == file_magic.
16083 file_magic_cmd=$lt_file_magic_cmd
16085 # Flag that allows shared libraries with undefined symbols to be built.
16086 allow_undefined_flag=$lt_allow_undefined_flag_F77
16088 # Flag that forces no undefined symbols.
16089 no_undefined_flag=$lt_no_undefined_flag_F77
16091 # Commands used to finish a libtool library installation in a directory.
16092 finish_cmds=$lt_finish_cmds
16094 # Same as above, but a single script fragment to be evaled but not shown.
16095 finish_eval=$lt_finish_eval
16097 # Take the output of nm and produce a listing of raw symbols and C names.
16098 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16100 # Transform the output of nm in a proper C declaration
16101 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16103 # Transform the output of nm in a C name address pair
16104 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16106 # This is the shared library runtime path variable.
16107 runpath_var=$runpath_var
16109 # This is the shared library path variable.
16110 shlibpath_var=$shlibpath_var
16112 # Is shlibpath searched before the hard-coded library search path?
16113 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16115 # How to hardcode a shared library path into an executable.
16116 hardcode_action=$hardcode_action_F77
16118 # Whether we should hardcode library paths into libraries.
16119 hardcode_into_libs=$hardcode_into_libs
16121 # Flag to hardcode \$libdir into a binary during linking.
16122 # This must work even if \$libdir does not exist.
16123 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16125 # If ld is used when linking, flag to hardcode \$libdir into
16126 # a binary during linking. This must work even if \$libdir does
16128 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16130 # Whether we need a single -rpath flag with a separated argument.
16131 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16133 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16134 # resulting binary.
16135 hardcode_direct=$hardcode_direct_F77
16137 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16138 # resulting binary.
16139 hardcode_minus_L=$hardcode_minus_L_F77
16141 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16142 # the resulting binary.
16143 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16145 # Set to yes if building a shared library automatically hardcodes DIR into the library
16146 # and all subsequent libraries and executables linked against it.
16147 hardcode_automatic=$hardcode_automatic_F77
16149 # Variables whose values should be saved in libtool wrapper scripts and
16150 # restored at relink time.
16151 variables_saved_for_relink="$variables_saved_for_relink"
16153 # Whether libtool must link a program against all its dependency libraries.
16154 link_all_deplibs=$link_all_deplibs_F77
16156 # Compile-time system search path for libraries
16157 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16159 # Run-time system search path for libraries
16160 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16162 # Fix the shell variable \$srcfile for the compiler.
16163 fix_srcfile_path="$fix_srcfile_path_F77"
16165 # Set to yes if exported symbols are required.
16166 always_export_symbols=$always_export_symbols_F77
16168 # The commands to list exported symbols.
16169 export_symbols_cmds=$lt_export_symbols_cmds_F77
16171 # The commands to extract the exported symbol list from a shared archive.
16172 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16174 # Symbols that should not be listed in the preloaded symbols.
16175 exclude_expsyms=$lt_exclude_expsyms_F77
16177 # Symbols that must always be exported.
16178 include_expsyms=$lt_include_expsyms_F77
16180 # ### END LIBTOOL TAG CONFIG: $tagname
16186 # If there is no Makefile yet, we rely on a make rule to execute
16187 # `config.status --recheck' to rerun these tests and create the
16188 # libtool script then.
16189 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16190 if test -f "$ltmain_in"; then
16191 test -f Makefile && make "$ltmain"
16197 ac_cpp='$CPP $CPPFLAGS'
16198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16210 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16214 # Source file extension for Java test sources.
16217 # Object file extension for compiled Java test sources.
16221 # Code to be used in simple compile tests
16222 lt_simple_compile_test_code="class foo {}\n"
16224 # Code to be used in simple link tests
16225 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16227 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16229 # If no C compiler was specified, use CC.
16232 # Allow CC to be a program name with arguments.
16236 # Allow CC to be a program name with arguments.
16242 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16243 archive_cmds_need_lc_GCJ=no
16246 lt_prog_compiler_no_builtin_flag_GCJ=
16248 if test "$GCC" = yes; then
16249 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16252 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16253 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16254 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16255 echo $ECHO_N "(cached) $ECHO_C" >&6
16257 lt_cv_prog_compiler_rtti_exceptions=no
16258 ac_outfile=conftest.$ac_objext
16259 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16260 lt_compiler_flag="-fno-rtti -fno-exceptions"
16261 # Insert the option either (1) after the last *FLAGS variable, or
16262 # (2) before a word containing "conftest.", or (3) at the end.
16263 # Note that $ac_compile itself does not contain backslashes and begins
16264 # with a dollar sign (not a hyphen), so the echo should work correctly.
16265 # The option is referenced via a variable to avoid confusing sed.
16266 lt_compile=`echo "$ac_compile" | $SED \
16267 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16268 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16269 -e 's:$: $lt_compiler_flag:'`
16270 (eval echo "\"\$as_me:16270: $lt_compile\"" >&5)
16271 (eval "$lt_compile" 2>conftest.err)
16273 cat conftest.err >&5
16274 echo "$as_me:16274: \$? = $ac_status" >&5
16275 if (exit $ac_status) && test -s "$ac_outfile"; then
16276 # The compiler can only warn and ignore the option if not recognized
16277 # So say no if there are warnings
16278 if test ! -s conftest.err; then
16279 lt_cv_prog_compiler_rtti_exceptions=yes
16285 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16286 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16288 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16289 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16296 lt_prog_compiler_wl_GCJ=
16297 lt_prog_compiler_pic_GCJ=
16298 lt_prog_compiler_static_GCJ=
16300 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16301 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16303 if test "$GCC" = yes; then
16304 lt_prog_compiler_wl_GCJ='-Wl,'
16305 lt_prog_compiler_static_GCJ='-static'
16309 # All AIX code is PIC.
16310 if test "$host_cpu" = ia64; then
16311 # AIX 5 now supports IA64 processor
16312 lt_prog_compiler_static_GCJ='-Bstatic'
16317 # FIXME: we need at least 68020 code to build shared libraries, but
16318 # adding the `-m68020' flag to GCC prevents building anything better,
16320 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16323 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16324 # PIC is the default for these OSes.
16327 mingw* | pw32* | os2*)
16328 # This hack is so that the source file can tell whether it is being
16329 # built for inclusion in a dll (and should export symbols for example).
16330 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16333 darwin* | rhapsody*)
16334 # PIC is the default on this platform
16335 # Common symbols not allowed in MH_DYLIB files
16336 lt_prog_compiler_pic_GCJ='-fno-common'
16340 # Just because we use GCC doesn't mean we suddenly get shared libraries
16341 # on systems that don't support them.
16342 lt_prog_compiler_can_build_shared_GCJ=no
16347 if test -d /usr/nec; then
16348 lt_prog_compiler_pic_GCJ=-Kconform_pic
16353 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16354 # not for PA HP-UX.
16355 case "$host_cpu" in
16360 lt_prog_compiler_pic_GCJ='-fPIC'
16366 lt_prog_compiler_pic_GCJ='-fPIC'
16370 # PORTME Check for flag to pass linker flags through the system compiler.
16373 lt_prog_compiler_wl_GCJ='-Wl,'
16374 if test "$host_cpu" = ia64; then
16375 # AIX 5 now supports IA64 processor
16376 lt_prog_compiler_static_GCJ='-Bstatic'
16378 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16382 mingw* | pw32* | os2*)
16383 # This hack is so that the source file can tell whether it is being
16384 # built for inclusion in a dll (and should export symbols for example).
16385 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16388 hpux9* | hpux10* | hpux11*)
16389 lt_prog_compiler_wl_GCJ='-Wl,'
16390 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16391 # not for PA HP-UX.
16392 case "$host_cpu" in
16397 lt_prog_compiler_pic_GCJ='+Z'
16400 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16401 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16404 irix5* | irix6* | nonstopux*)
16405 lt_prog_compiler_wl_GCJ='-Wl,'
16406 # PIC (with -KPIC) is the default.
16407 lt_prog_compiler_static_GCJ='-non_shared'
16411 lt_prog_compiler_pic_GCJ='-KPIC'
16412 lt_prog_compiler_static_GCJ='-Bstatic'
16418 lt_prog_compiler_wl_GCJ='-Wl,'
16419 lt_prog_compiler_pic_GCJ='-KPIC'
16420 lt_prog_compiler_static_GCJ='-static'
16423 lt_prog_compiler_wl_GCJ='-Wl,'
16424 # All Alpha code is PIC.
16425 lt_prog_compiler_static_GCJ='-non_shared'
16430 osf3* | osf4* | osf5*)
16431 lt_prog_compiler_wl_GCJ='-Wl,'
16432 # All OSF/1 code is PIC.
16433 lt_prog_compiler_static_GCJ='-non_shared'
16437 lt_prog_compiler_pic_GCJ='-Kpic'
16438 lt_prog_compiler_static_GCJ='-dn'
16442 lt_prog_compiler_wl_GCJ='-Wl,'
16443 lt_prog_compiler_pic_GCJ='-KPIC'
16444 lt_prog_compiler_static_GCJ='-Bstatic'
16448 lt_prog_compiler_wl_GCJ='-Qoption ld '
16449 lt_prog_compiler_pic_GCJ='-PIC'
16450 lt_prog_compiler_static_GCJ='-Bstatic'
16453 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16454 lt_prog_compiler_wl_GCJ='-Wl,'
16455 lt_prog_compiler_pic_GCJ='-KPIC'
16456 lt_prog_compiler_static_GCJ='-Bstatic'
16460 if test -d /usr/nec ;then
16461 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16462 lt_prog_compiler_static_GCJ='-Bstatic'
16467 lt_prog_compiler_pic_GCJ='-pic'
16468 lt_prog_compiler_static_GCJ='-Bstatic'
16472 lt_prog_compiler_can_build_shared_GCJ=no
16477 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16478 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16481 # Check to make sure the PIC flag actually works.
16483 if test -n "$lt_prog_compiler_pic_GCJ"; then
16485 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16486 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16487 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16488 echo $ECHO_N "(cached) $ECHO_C" >&6
16490 lt_prog_compiler_pic_works_GCJ=no
16491 ac_outfile=conftest.$ac_objext
16492 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16493 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16494 # Insert the option either (1) after the last *FLAGS variable, or
16495 # (2) before a word containing "conftest.", or (3) at the end.
16496 # Note that $ac_compile itself does not contain backslashes and begins
16497 # with a dollar sign (not a hyphen), so the echo should work correctly.
16498 # The option is referenced via a variable to avoid confusing sed.
16499 lt_compile=`echo "$ac_compile" | $SED \
16500 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16501 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16502 -e 's:$: $lt_compiler_flag:'`
16503 (eval echo "\"\$as_me:16503: $lt_compile\"" >&5)
16504 (eval "$lt_compile" 2>conftest.err)
16506 cat conftest.err >&5
16507 echo "$as_me:16507: \$? = $ac_status" >&5
16508 if (exit $ac_status) && test -s "$ac_outfile"; then
16509 # The compiler can only warn and ignore the option if not recognized
16510 # So say no if there are warnings
16511 if test ! -s conftest.err; then
16512 lt_prog_compiler_pic_works_GCJ=yes
16518 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16519 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16521 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16522 case $lt_prog_compiler_pic_GCJ in
16524 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16527 lt_prog_compiler_pic_GCJ=
16528 lt_prog_compiler_can_build_shared_GCJ=no
16533 # For platforms which do not support PIC, -DPIC is meaningless:
16535 lt_prog_compiler_pic_GCJ=
16538 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16542 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16543 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16544 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16545 echo $ECHO_N "(cached) $ECHO_C" >&6
16547 lt_cv_prog_compiler_c_o_GCJ=no
16548 $rm -r conftest 2>/dev/null
16552 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16554 lt_compiler_flag="-o out/conftest2.$ac_objext"
16555 # Insert the option either (1) after the last *FLAGS variable, or
16556 # (2) before a word containing "conftest.", or (3) at the end.
16557 # Note that $ac_compile itself does not contain backslashes and begins
16558 # with a dollar sign (not a hyphen), so the echo should work correctly.
16559 lt_compile=`echo "$ac_compile" | $SED \
16560 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16562 -e 's:$: $lt_compiler_flag:'`
16563 (eval echo "\"\$as_me:16563: $lt_compile\"" >&5)
16564 (eval "$lt_compile" 2>out/conftest.err)
16566 cat out/conftest.err >&5
16567 echo "$as_me:16567: \$? = $ac_status" >&5
16568 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16570 # The compiler can only warn and ignore the option if not recognized
16571 # So say no if there are warnings
16572 if test ! -s out/conftest.err; then
16573 lt_cv_prog_compiler_c_o_GCJ=yes
16578 # SGI C++ compiler will create directory out/ii_files/ for
16579 # template instantiation
16580 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16581 $rm out/* && rmdir out
16587 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16588 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16591 hard_links="nottested"
16592 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16593 # do not overwrite the value of need_locks provided by the user
16594 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16595 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16598 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16600 ln conftest.a conftest.b 2>&5 || hard_links=no
16601 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16602 echo "$as_me:$LINENO: result: $hard_links" >&5
16603 echo "${ECHO_T}$hard_links" >&6
16604 if test "$hard_links" = no; then
16605 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16606 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16613 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16614 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16617 allow_undefined_flag_GCJ=
16618 enable_shared_with_static_runtimes_GCJ=no
16620 archive_expsym_cmds_GCJ=
16621 old_archive_From_new_cmds_GCJ=
16622 old_archive_from_expsyms_cmds_GCJ=
16623 export_dynamic_flag_spec_GCJ=
16624 whole_archive_flag_spec_GCJ=
16625 thread_safe_flag_spec_GCJ=
16626 hardcode_libdir_flag_spec_GCJ=
16627 hardcode_libdir_flag_spec_ld_GCJ=
16628 hardcode_libdir_separator_GCJ=
16629 hardcode_direct_GCJ=no
16630 hardcode_minus_L_GCJ=no
16631 hardcode_shlibpath_var_GCJ=unsupported
16632 link_all_deplibs_GCJ=unknown
16633 hardcode_automatic_GCJ=no
16635 module_expsym_cmds_GCJ=
16636 always_export_symbols_GCJ=no
16637 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16638 # include_expsyms should be a list of space-separated symbols to be *always*
16639 # included in the symbol list
16640 include_expsyms_GCJ=
16641 # exclude_expsyms can be an extended regexp of symbols to exclude
16642 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16643 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16644 # as well as any symbol that contains `d'.
16645 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16646 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16647 # platforms (ab)use it in PIC code, but their linkers get confused if
16648 # the symbol is explicitly referenced. Since portable code cannot
16649 # rely on this symbol name, it's probably fine to never include it in
16650 # preloaded symbol tables.
16651 extract_expsyms_cmds=
16654 cygwin* | mingw* | pw32*)
16655 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16656 # When not using gcc, we currently assume that we are using
16657 # Microsoft Visual C++.
16658 if test "$GCC" != yes; then
16668 if test "$with_gnu_ld" = yes; then
16669 # If archive_cmds runs LD, not CC, wlarc should be empty
16672 # See if GNU ld supports shared libraries.
16674 aix3* | aix4* | aix5*)
16675 # On AIX/PPC, the GNU linker is very broken
16676 if test "$host_cpu" != ia64; then
16680 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16681 *** to be unable to reliably create shared libraries on AIX.
16682 *** Therefore, libtool is disabling shared libraries support. If you
16683 *** really care for shared libraries, you may want to modify your PATH
16684 *** so that a non-GNU linker is found, and then restart.
16691 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)'
16692 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16693 hardcode_minus_L_GCJ=yes
16695 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16696 # that the semantics of dynamic libraries on AmigaOS, at least up
16697 # to version 4, is to share data among multiple programs linked
16698 # with the same dynamic library. Since this doesn't match the
16699 # behavior of shared libraries on other platforms, we can't use
16705 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16706 allow_undefined_flag_GCJ=unsupported
16707 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16708 # support --undefined. This deserves some investigation. FIXME
16709 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16715 cygwin* | mingw* | pw32*)
16716 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16717 # as there is no search path for DLLs.
16718 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16719 allow_undefined_flag_GCJ=unsupported
16720 always_export_symbols_GCJ=no
16721 enable_shared_with_static_runtimes_GCJ=yes
16722 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16724 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16725 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16726 # If the export-symbols file already is a .def file (1st line
16727 # is EXPORTS), use it as is; otherwise, prepend...
16728 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16729 cp $export_symbols $output_objdir/$soname.def;
16731 echo EXPORTS > $output_objdir/$soname.def;
16732 cat $export_symbols >> $output_objdir/$soname.def;
16734 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16741 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16742 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16745 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16746 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16751 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16755 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16756 *** create shared libraries on Solaris systems. Therefore, libtool
16757 *** is disabling shared libraries support. We urge you to upgrade GNU
16758 *** binutils to release 2.9.1 or newer. Another option is to modify
16759 *** your PATH or compiler configuration so that the native linker is
16760 *** used, and then restart.
16763 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16764 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16765 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16772 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16774 hardcode_direct_GCJ=yes
16775 hardcode_shlibpath_var_GCJ=no
16779 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16780 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16781 archive_cmds_GCJ="$tmp_archive_cmds"
16782 supports_anon_versioning=no
16783 case `$LD -v 2>/dev/null` in
16784 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16785 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16786 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16787 *\ 2.11.*) ;; # other 2.11 versions
16788 *) supports_anon_versioning=yes ;;
16790 if test $supports_anon_versioning = yes; then
16791 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16792 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16793 $echo "local: *; };" >> $output_objdir/$libname.ver~
16794 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16796 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16804 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16805 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16806 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16813 if test "$ld_shlibs_GCJ" = yes; then
16814 runpath_var=LD_RUN_PATH
16815 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16816 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16817 # ancient GNU ld didn't support --whole-archive et. al.
16818 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16819 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16821 whole_archive_flag_spec_GCJ=
16825 # PORTME fill in a description of your system's linker (not GNU ld)
16828 allow_undefined_flag_GCJ=unsupported
16829 always_export_symbols_GCJ=yes
16830 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'
16831 # Note: this linker hardcodes the directories in LIBPATH if there
16832 # are no directories specified by -L.
16833 hardcode_minus_L_GCJ=yes
16834 if test "$GCC" = yes && test -z "$link_static_flag"; then
16835 # Neither direct hardcoding nor static linking is supported with a
16837 hardcode_direct_GCJ=unsupported
16842 if test "$host_cpu" = ia64; then
16843 # On IA64, the linker does run time linking by default, so we don't
16844 # have to do anything special.
16845 aix_use_runtimelinking=no
16846 exp_sym_flag='-Bexport'
16849 # If we're using GNU nm, then we don't want the "-C" option.
16850 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16851 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16852 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'
16854 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'
16856 aix_use_runtimelinking=no
16858 # Test if we are trying to use run time linking or normal
16859 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16860 # need to do runtime linking.
16861 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16862 for ld_flag in $LDFLAGS; do
16863 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16864 aix_use_runtimelinking=yes
16870 exp_sym_flag='-bexport'
16871 no_entry_flag='-bnoentry'
16874 # When large executables or shared objects are built, AIX ld can
16875 # have problems creating the table of contents. If linking a library
16876 # or program results in "error TOC overflow" add -mminimal-toc to
16877 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16878 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16880 archive_cmds_GCJ=''
16881 hardcode_direct_GCJ=yes
16882 hardcode_libdir_separator_GCJ=':'
16883 link_all_deplibs_GCJ=yes
16885 if test "$GCC" = yes; then
16886 case $host_os in aix4.012|aix4.012.*)
16887 # We only want to do this on AIX 4.2 and lower, the check
16888 # below for broken collect2 doesn't work under 4.3+
16889 collect2name=`${CC} -print-prog-name=collect2`
16890 if test -f "$collect2name" && \
16891 strings "$collect2name" | grep resolve_lib_name >/dev/null
16893 # We have reworked collect2
16894 hardcode_direct_GCJ=yes
16896 # We have old collect2
16897 hardcode_direct_GCJ=unsupported
16898 # It fails to find uninstalled libraries when the uninstalled
16899 # path is not listed in the libpath. Setting hardcode_minus_L
16900 # to unsupported forces relinking
16901 hardcode_minus_L_GCJ=yes
16902 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16903 hardcode_libdir_separator_GCJ=
16906 shared_flag='-shared'
16909 if test "$host_cpu" = ia64; then
16910 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16911 # chokes on -Wl,-G. The following line is correct:
16914 if test "$aix_use_runtimelinking" = yes; then
16915 shared_flag='${wl}-G'
16917 shared_flag='${wl}-bM:SRE'
16922 # It seems that -bexpall does not export symbols beginning with
16923 # underscore (_), so it is better to generate a list of symbols to export.
16924 always_export_symbols_GCJ=yes
16925 if test "$aix_use_runtimelinking" = yes; then
16926 # Warning - without using the other runtime loading flags (-brtl),
16927 # -berok will link without error, but may produce a broken library.
16928 allow_undefined_flag_GCJ='-berok'
16929 # Determine the default libpath from the value encoded in an empty executable.
16930 cat >conftest.$ac_ext <<_ACEOF
16933 cat confdefs.h >>conftest.$ac_ext
16934 cat >>conftest.$ac_ext <<_ACEOF
16935 /* end confdefs.h. */
16945 rm -f conftest.$ac_objext conftest$ac_exeext
16946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16947 (eval $ac_link) 2>conftest.er1
16949 grep -v '^ *+' conftest.er1 >conftest.err
16951 cat conftest.err >&5
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); } &&
16954 { ac_try='test -z "$ac_c_werror_flag"
16955 || test ! -s conftest.err'
16956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16957 (eval $ac_try) 2>&5
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); }; } &&
16961 { ac_try='test -s conftest$ac_exeext'
16962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16963 (eval $ac_try) 2>&5
16965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); }; }; then
16968 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16970 # Check for a 64-bit object if we didn't find anything.
16971 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; }
16974 echo "$as_me: failed program was:" >&5
16975 sed 's/^/| /' conftest.$ac_ext >&5
16978 rm -f conftest.err conftest.$ac_objext \
16979 conftest$ac_exeext conftest.$ac_ext
16980 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16982 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16983 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"
16985 if test "$host_cpu" = ia64; then
16986 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16987 allow_undefined_flag_GCJ="-z nodefs"
16988 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"
16990 # Determine the default libpath from the value encoded in an empty executable.
16991 cat >conftest.$ac_ext <<_ACEOF
16994 cat confdefs.h >>conftest.$ac_ext
16995 cat >>conftest.$ac_ext <<_ACEOF
16996 /* end confdefs.h. */
17006 rm -f conftest.$ac_objext conftest$ac_exeext
17007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17008 (eval $ac_link) 2>conftest.er1
17010 grep -v '^ *+' conftest.er1 >conftest.err
17012 cat conftest.err >&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); } &&
17015 { ac_try='test -z "$ac_c_werror_flag"
17016 || test ! -s conftest.err'
17017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17018 (eval $ac_try) 2>&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); }; } &&
17022 { ac_try='test -s conftest$ac_exeext'
17023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17024 (eval $ac_try) 2>&5
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); }; }; then
17029 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17031 # Check for a 64-bit object if we didn't find anything.
17032 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; }
17035 echo "$as_me: failed program was:" >&5
17036 sed 's/^/| /' conftest.$ac_ext >&5
17039 rm -f conftest.err conftest.$ac_objext \
17040 conftest$ac_exeext conftest.$ac_ext
17041 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17043 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17044 # Warning - without using the other run time loading flags,
17045 # -berok will link without error, but may produce a broken library.
17046 no_undefined_flag_GCJ=' ${wl}-bernotok'
17047 allow_undefined_flag_GCJ=' ${wl}-berok'
17048 # -bexpall does not export symbols beginning with underscore (_)
17049 always_export_symbols_GCJ=yes
17050 # Exported symbols can be pulled into shared objects from archives
17051 whole_archive_flag_spec_GCJ=' '
17052 archive_cmds_need_lc_GCJ=yes
17053 # This is similar to how AIX traditionally builds it's shared libraries.
17054 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'
17060 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)'
17061 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17062 hardcode_minus_L_GCJ=yes
17063 # see comment about different semantics on the GNU ld section
17068 export_dynamic_flag_spec_GCJ=-rdynamic
17071 cygwin* | mingw* | pw32*)
17072 # When not using gcc, we currently assume that we are using
17073 # Microsoft Visual C++.
17074 # hardcode_libdir_flag_spec is actually meaningless, as there is
17075 # no search path for DLLs.
17076 hardcode_libdir_flag_spec_GCJ=' '
17077 allow_undefined_flag_GCJ=unsupported
17078 # Tell ltmain to make .lib files, not .a files.
17080 # Tell ltmain to make .dll files, not .so files.
17082 # FIXME: Setting linknames here is a bad hack.
17083 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17084 # The linker will automatically build a .lib file if we build a DLL.
17085 old_archive_From_new_cmds_GCJ='true'
17086 # FIXME: Should let the user specify the lib program.
17087 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17088 fix_srcfile_path='`cygpath -w "$srcfile"`'
17089 enable_shared_with_static_runtimes_GCJ=yes
17092 darwin* | rhapsody*)
17093 if test "$GXX" = yes ; then
17094 archive_cmds_need_lc_GCJ=no
17096 rhapsody* | darwin1.[012])
17097 allow_undefined_flag_GCJ='-undefined suppress'
17100 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17101 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17103 case ${MACOSX_DEPLOYMENT_TARGET} in
17105 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17108 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
17114 lt_int_apple_cc_single_mod=no
17115 output_verbose_link_cmd='echo'
17116 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17117 lt_int_apple_cc_single_mod=yes
17119 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17120 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17122 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
17124 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17125 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17126 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17127 archive_expsym_cmds_GCJ='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}'
17129 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
17131 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}'
17132 hardcode_direct_GCJ=no
17133 hardcode_automatic_GCJ=yes
17134 hardcode_shlibpath_var_GCJ=unsupported
17135 whole_archive_flag_spec_GCJ='-all_load $convenience'
17136 link_all_deplibs_GCJ=yes
17143 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17144 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17145 hardcode_shlibpath_var_GCJ=no
17152 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17153 # support. Future versions do this automatically, but an explicit c++rt0.o
17154 # does not break anything, and helps significantly (at the cost of a little
17157 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17158 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17159 hardcode_direct_GCJ=yes
17160 hardcode_shlibpath_var_GCJ=no
17163 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17165 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17166 hardcode_direct_GCJ=yes
17167 hardcode_minus_L_GCJ=yes
17168 hardcode_shlibpath_var_GCJ=no
17171 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17172 freebsd* | kfreebsd*-gnu)
17173 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17174 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17175 hardcode_direct_GCJ=yes
17176 hardcode_shlibpath_var_GCJ=no
17180 if test "$GCC" = yes; then
17181 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'
17183 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'
17185 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17186 hardcode_libdir_separator_GCJ=:
17187 hardcode_direct_GCJ=yes
17189 # hardcode_minus_L: Not really in the search PATH,
17190 # but as the default location of the library.
17191 hardcode_minus_L_GCJ=yes
17192 export_dynamic_flag_spec_GCJ='${wl}-E'
17196 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17197 case "$host_cpu" in
17199 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17202 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17206 case "$host_cpu" in
17208 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17211 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17215 if test "$with_gnu_ld" = no; then
17216 case "$host_cpu" in
17218 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17219 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17220 hardcode_libdir_separator_GCJ=:
17221 hardcode_direct_GCJ=no
17222 hardcode_shlibpath_var_GCJ=no
17225 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17226 hardcode_direct_GCJ=no
17227 hardcode_shlibpath_var_GCJ=no
17229 # hardcode_minus_L: Not really in the search PATH,
17230 # but as the default location of the library.
17231 hardcode_minus_L_GCJ=yes
17234 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17235 hardcode_libdir_separator_GCJ=:
17236 hardcode_direct_GCJ=yes
17237 export_dynamic_flag_spec_GCJ='${wl}-E'
17239 # hardcode_minus_L: Not really in the search PATH,
17240 # but as the default location of the library.
17241 hardcode_minus_L_GCJ=yes
17247 irix5* | irix6* | nonstopux*)
17248 if test "$GCC" = yes; then
17249 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'
17251 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'
17252 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17254 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17255 hardcode_libdir_separator_GCJ=:
17256 link_all_deplibs_GCJ=yes
17260 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17261 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17263 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17265 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17266 hardcode_direct_GCJ=yes
17267 hardcode_shlibpath_var_GCJ=no
17271 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17272 hardcode_direct_GCJ=yes
17273 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17274 hardcode_libdir_separator_GCJ=:
17275 hardcode_shlibpath_var_GCJ=no
17279 hardcode_direct_GCJ=yes
17280 hardcode_shlibpath_var_GCJ=no
17281 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17282 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17283 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17284 export_dynamic_flag_spec_GCJ='${wl}-E'
17287 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17288 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17289 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17292 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17293 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17300 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17301 hardcode_minus_L_GCJ=yes
17302 allow_undefined_flag_GCJ=unsupported
17303 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'
17304 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17308 if test "$GCC" = yes; then
17309 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17310 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'
17312 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17313 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'
17315 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17316 hardcode_libdir_separator_GCJ=:
17319 osf4* | osf5*) # as osf3* with the addition of -msym flag
17320 if test "$GCC" = yes; then
17321 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17322 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'
17323 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17325 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17326 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'
17327 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~
17328 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
17330 # Both c and cxx compiler support -rpath directly
17331 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17333 hardcode_libdir_separator_GCJ=:
17337 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17338 hardcode_shlibpath_var_GCJ=no
17339 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17340 runpath_var=LD_RUN_PATH
17341 hardcode_runpath_var=yes
17345 no_undefined_flag_GCJ=' -z text'
17346 if test "$GCC" = yes; then
17347 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17348 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17349 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17351 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17352 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17353 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17355 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17356 hardcode_shlibpath_var_GCJ=no
17358 solaris2.[0-5] | solaris2.[0-5].*) ;;
17359 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17360 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17362 link_all_deplibs_GCJ=yes
17366 if test "x$host_vendor" = xsequent; then
17367 # Use $CC to link under sequent, because it throws in some extra .o
17368 # files that make .init and .fini sections work.
17369 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17371 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17373 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17374 hardcode_direct_GCJ=yes
17375 hardcode_minus_L_GCJ=yes
17376 hardcode_shlibpath_var_GCJ=no
17380 case $host_vendor in
17382 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17383 hardcode_direct_GCJ=yes # is this really true???
17386 ## LD is ld it makes a PLAMLIB
17387 ## CC just makes a GrossModule.
17388 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17389 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17390 hardcode_direct_GCJ=no
17393 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17394 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17397 runpath_var='LD_RUN_PATH'
17398 hardcode_shlibpath_var_GCJ=no
17402 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17403 hardcode_shlibpath_var_GCJ=no
17404 export_dynamic_flag_spec_GCJ='-Bexport'
17408 if test -d /usr/nec; then
17409 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17410 hardcode_shlibpath_var_GCJ=no
17411 runpath_var=LD_RUN_PATH
17412 hardcode_runpath_var=yes
17418 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17419 hardcode_direct_GCJ=yes
17420 hardcode_minus_L_GCJ=no
17421 hardcode_shlibpath_var_GCJ=no
17422 hardcode_runpath_var=yes
17423 runpath_var=LD_RUN_PATH
17426 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17427 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17428 if test "$GCC" = yes; then
17429 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17431 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17433 runpath_var='LD_RUN_PATH'
17434 hardcode_shlibpath_var_GCJ=no
17438 no_undefined_flag_GCJ=' -z text'
17439 # $CC -shared without GNU ld will not create a library from C++
17440 # object files and a static libstdc++, better avoid it by now
17441 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17442 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17443 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17444 hardcode_libdir_flag_spec_GCJ=
17445 hardcode_shlibpath_var_GCJ=no
17446 runpath_var='LD_RUN_PATH'
17450 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17451 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17452 hardcode_shlibpath_var_GCJ=no
17461 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17462 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17463 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17465 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17466 if test "$GCC" = yes; then
17467 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17471 # Do we need to explicitly link libc?
17473 case "x$archive_cmds_need_lc_GCJ" in
17475 # Assume -lc should be added
17476 archive_cmds_need_lc_GCJ=yes
17478 if test "$enable_shared" = yes && test "$GCC" = yes; then
17479 case $archive_cmds_GCJ in
17481 # FIXME: we may have to deal with multi-command sequences.
17484 # Test whether the compiler implicitly links with -lc since on some
17485 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17486 # to ld, don't add -lc before -lgcc.
17487 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17488 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17490 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17493 (eval $ac_compile) 2>&5
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); } 2>conftest.err; then
17499 libobjs=conftest.$ac_objext
17501 wl=$lt_prog_compiler_wl_GCJ
17507 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17508 allow_undefined_flag_GCJ=
17509 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17510 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }
17515 archive_cmds_need_lc_GCJ=no
17517 archive_cmds_need_lc_GCJ=yes
17519 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17521 cat conftest.err 1>&5
17524 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17525 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17532 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17533 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17534 library_names_spec=
17535 libname_spec='lib$name'
17539 postuninstall_cmds=
17543 shlibpath_overrides_runpath=unknown
17545 dynamic_linker="$host_os ld.so"
17546 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17547 if test "$GCC" = yes; then
17548 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17549 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17550 # if the path contains ";" then we assume it to be the separator
17551 # otherwise default to the standard path separator (i.e. ":") - it is
17552 # assumed that no part of a normal pathname contains ";" but that should
17553 # okay in the real world where ";" in dirpaths is itself problematic.
17554 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17556 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17559 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17561 need_lib_prefix=unknown
17562 hardcode_into_libs=no
17564 # when you set need_version to no, make sure it does not cause -set_version
17565 # flags to be left without arguments
17566 need_version=unknown
17571 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17572 shlibpath_var=LIBPATH
17574 # AIX 3 has no versioning support, so we append a major version to the name.
17575 soname_spec='${libname}${release}${shared_ext}$major'
17582 hardcode_into_libs=yes
17583 if test "$host_cpu" = ia64; then
17584 # AIX 5 supports IA64
17585 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17586 shlibpath_var=LD_LIBRARY_PATH
17588 # With GCC up to 2.95.x, collect2 would create an import file
17589 # for dependence libraries. The import file would start with
17590 # the line `#! .'. This would cause the generated library to
17591 # depend on `.', always an invalid library. This was fixed in
17592 # development snapshots of GCC prior to 3.0.
17594 aix4 | aix4.[01] | aix4.[01].*)
17595 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17597 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17600 can_build_shared=no
17604 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17605 # soname into executable. Probably we can add versioning support to
17606 # collect2, so additional links can be useful in future.
17607 if test "$aix_use_runtimelinking" = yes; then
17608 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17609 # instead of lib<name>.a to let people know that these are not
17610 # typical AIX shared libraries.
17611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17613 # We preserve .a as extension for shared libraries through AIX4.2
17614 # and later when we are not doing run time linking.
17615 library_names_spec='${libname}${release}.a $libname.a'
17616 soname_spec='${libname}${release}${shared_ext}$major'
17618 shlibpath_var=LIBPATH
17623 library_names_spec='$libname.ixlibrary $libname.a'
17624 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17625 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'
17629 library_names_spec='${libname}${shared_ext}'
17630 dynamic_linker="$host_os ld.so"
17631 shlibpath_var=LIBRARY_PATH
17637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17638 soname_spec='${libname}${release}${shared_ext}$major'
17639 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17640 shlibpath_var=LD_LIBRARY_PATH
17641 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17642 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17643 # the default ld.so.conf also contains /usr/contrib/lib and
17644 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17645 # libtool to hard-code these into programs
17648 cygwin* | mingw* | pw32*)
17649 version_type=windows
17654 case $GCC,$host_os in
17655 yes,cygwin* | yes,mingw* | yes,pw32*)
17656 library_names_spec='$libname.dll.a'
17657 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17658 postinstall_cmds='base_file=`basename \${file}`~
17659 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17660 dldir=$destdir/`dirname \$dlpath`~
17661 test -d \$dldir || mkdir -p \$dldir~
17662 $install_prog $dir/$dlname \$dldir/$dlname'
17663 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17664 dlpath=$dir/\$dldll~
17666 shlibpath_overrides_runpath=yes
17670 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17671 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17672 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17675 # MinGW DLLs use traditional 'lib' prefix
17676 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17677 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17678 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17679 # It is most probably a Windows format PATH printed by
17680 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17681 # path with ; separators, and with drive letters. We can handle the
17682 # drive letters (cygwin fileutils understands them), so leave them,
17683 # especially as we might pass files found there to a mingw objdump,
17684 # which wouldn't understand a cygwinified path. Ahh.
17685 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17687 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17691 # pw32 DLLs use 'pw' prefix rather than 'lib'
17692 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17698 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17701 dynamic_linker='Win32 ld.exe'
17702 # FIXME: first we should search . and the directory the executable is in
17706 darwin* | rhapsody*)
17707 dynamic_linker="$host_os dyld"
17708 version_type=darwin
17711 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17712 soname_spec='${libname}${release}${major}$shared_ext'
17713 shlibpath_overrides_runpath=yes
17714 shlibpath_var=DYLD_LIBRARY_PATH
17715 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
17716 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17717 if test "$GCC" = yes; then
17718 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"`
17720 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17722 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17730 soname_spec='${libname}${release}${shared_ext}$major'
17731 shlibpath_var=LD_LIBRARY_PATH
17742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17743 soname_spec='${libname}${release}${shared_ext}$major'
17744 shlibpath_var=LD_LIBRARY_PATH
17745 shlibpath_overrides_runpath=no
17746 hardcode_into_libs=yes
17747 dynamic_linker='GNU ld.so'
17751 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17752 version_type=freebsd-$objformat
17753 case $version_type in
17755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17760 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17764 shlibpath_var=LD_LIBRARY_PATH
17767 shlibpath_overrides_runpath=yes
17769 freebsd3.01* | freebsdelf3.01*)
17770 shlibpath_overrides_runpath=yes
17771 hardcode_into_libs=yes
17774 shlibpath_overrides_runpath=no
17775 hardcode_into_libs=yes
17784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17785 soname_spec='${libname}${release}${shared_ext}$major'
17786 shlibpath_var=LD_LIBRARY_PATH
17787 hardcode_into_libs=yes
17790 hpux9* | hpux10* | hpux11*)
17791 # Give a soname corresponding to the major version so that dld.sl refuses to
17792 # link against other versions.
17796 case "$host_cpu" in
17799 hardcode_into_libs=yes
17800 dynamic_linker="$host_os dld.so"
17801 shlibpath_var=LD_LIBRARY_PATH
17802 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17804 soname_spec='${libname}${release}${shared_ext}$major'
17805 if test "X$HPUX_IA64_MODE" = X32; then
17806 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17808 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17810 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17814 hardcode_into_libs=yes
17815 dynamic_linker="$host_os dld.sl"
17816 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17817 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17819 soname_spec='${libname}${release}${shared_ext}$major'
17820 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17821 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17825 dynamic_linker="$host_os dld.sl"
17826 shlibpath_var=SHLIB_PATH
17827 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17829 soname_spec='${libname}${release}${shared_ext}$major'
17832 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17833 postinstall_cmds='chmod 555 $lib'
17836 irix5* | irix6* | nonstopux*)
17838 nonstopux*) version_type=nonstopux ;;
17840 if test "$lt_cv_prog_gnu_ld" = yes; then
17848 soname_spec='${libname}${release}${shared_ext}$major'
17849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17851 irix5* | nonstopux*)
17852 libsuff= shlibsuff=
17855 case $LD in # libtool.m4 will add one of these switches to LD
17856 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17857 libsuff= shlibsuff= libmagic=32-bit;;
17858 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17859 libsuff=32 shlibsuff=N32 libmagic=N32;;
17860 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17861 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17862 *) libsuff= shlibsuff= libmagic=never-match;;
17866 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17867 shlibpath_overrides_runpath=no
17868 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17869 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17870 hardcode_into_libs=yes
17873 # No shared lib support for Linux oldld, aout, or coff.
17874 linux*oldld* | linux*aout* | linux*coff*)
17878 # This must be Linux ELF.
17883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17884 soname_spec='${libname}${release}${shared_ext}$major'
17885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17886 shlibpath_var=LD_LIBRARY_PATH
17887 shlibpath_overrides_runpath=no
17888 # This implies no fast_install, which is unacceptable.
17889 # Some rework will be needed to allow for fast_install
17890 # before this can be enabled.
17891 hardcode_into_libs=yes
17893 # Append ld.so.conf contents to the search path
17894 if test -f /etc/ld.so.conf; then
17895 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
17896 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
17899 # We used to test for /lib/ld.so.1 and disable shared libraries on
17900 # powerpc, because MkLinux only supported shared libraries with the
17901 # GNU dynamic linker. Since this was broken with cross compilers,
17902 # most powerpc-linux boxes support dynamic linking these days and
17903 # people can always --disable-shared, the test was removed, and we
17904 # assume the GNU/Linux dynamic linker is in use.
17905 dynamic_linker='GNU/Linux ld.so'
17912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17913 soname_spec='${libname}${release}${shared_ext}$major'
17914 shlibpath_var=LD_LIBRARY_PATH
17915 shlibpath_overrides_runpath=no
17916 hardcode_into_libs=yes
17917 dynamic_linker='GNU ld.so'
17924 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17926 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17927 dynamic_linker='NetBSD (a.out) ld.so'
17929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17930 soname_spec='${libname}${release}${shared_ext}$major'
17931 dynamic_linker='NetBSD ld.elf_so'
17933 shlibpath_var=LD_LIBRARY_PATH
17934 shlibpath_overrides_runpath=yes
17935 hardcode_into_libs=yes
17940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17941 shlibpath_var=LD_LIBRARY_PATH
17942 shlibpath_overrides_runpath=yes
17949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17950 soname_spec='${libname}${release}${shared_ext}$major'
17951 shlibpath_var=LD_LIBRARY_PATH
17952 shlibpath_overrides_runpath=yes
17959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17961 shlibpath_var=LD_LIBRARY_PATH
17962 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17964 openbsd2.[89] | openbsd2.[89].*)
17965 shlibpath_overrides_runpath=no
17968 shlibpath_overrides_runpath=yes
17972 shlibpath_overrides_runpath=yes
17977 libname_spec='$name'
17980 library_names_spec='$libname${shared_ext} $libname.a'
17981 dynamic_linker='OS/2 ld.exe'
17982 shlibpath_var=LIBPATH
17985 osf3* | osf4* | osf5*)
17989 soname_spec='${libname}${release}${shared_ext}$major'
17990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17991 shlibpath_var=LD_LIBRARY_PATH
17992 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17993 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17998 soname_spec='${libname}${release}${shared_ext}$major'
17999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18000 shlibpath_var=LD_LIBRARY_PATH
18007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18008 soname_spec='${libname}${release}${shared_ext}$major'
18009 shlibpath_var=LD_LIBRARY_PATH
18010 shlibpath_overrides_runpath=yes
18011 hardcode_into_libs=yes
18012 # ldd complains unless libraries are executable
18013 postinstall_cmds='chmod +x $lib'
18018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18019 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18020 shlibpath_var=LD_LIBRARY_PATH
18021 shlibpath_overrides_runpath=yes
18022 if test "$with_gnu_ld" = yes; then
18028 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18031 soname_spec='${libname}${release}${shared_ext}$major'
18032 shlibpath_var=LD_LIBRARY_PATH
18033 case $host_vendor in
18035 shlibpath_overrides_runpath=no
18037 export_dynamic_flag_spec='${wl}-Blargedynsym'
18038 runpath_var=LD_RUN_PATH
18046 shlibpath_overrides_runpath=no
18047 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18053 if test -d /usr/nec ;then
18055 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18056 soname_spec='$libname${shared_ext}.$major'
18057 shlibpath_var=LD_LIBRARY_PATH
18063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18064 soname_spec='${libname}${release}${shared_ext}$major'
18065 shlibpath_var=LD_LIBRARY_PATH
18072 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18073 echo "${ECHO_T}$dynamic_linker" >&6
18074 test "$dynamic_linker" = no && can_build_shared=no
18076 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18077 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18078 hardcode_action_GCJ=
18079 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18080 test -n "$runpath_var GCJ" || \
18081 test "X$hardcode_automatic_GCJ"="Xyes" ; then
18083 # We can hardcode non-existant directories.
18084 if test "$hardcode_direct_GCJ" != no &&
18085 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18086 # have to relink, otherwise we might link with an installed library
18087 # when we should be linking with a yet-to-be-installed one
18088 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18089 test "$hardcode_minus_L_GCJ" != no; then
18090 # Linking always hardcodes the temporary library directory.
18091 hardcode_action_GCJ=relink
18093 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18094 hardcode_action_GCJ=immediate
18097 # We cannot hardcode anything, or else we can only hardcode existing
18099 hardcode_action_GCJ=unsupported
18101 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18102 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18104 if test "$hardcode_action_GCJ" = relink; then
18105 # Fast installation is not supported
18106 enable_fast_install=no
18107 elif test "$shlibpath_overrides_runpath" = yes ||
18108 test "$enable_shared" = no; then
18109 # Fast installation is not necessary
18110 enable_fast_install=needless
18115 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18116 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18117 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18118 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18119 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18120 echo "$as_me:$LINENO: result: yes" >&5
18121 echo "${ECHO_T}yes" >&6
18123 # FIXME - insert some real tests, host_os isn't really good enough
18126 if test -n "$STRIP" ; then
18127 striplib="$STRIP -x"
18128 echo "$as_me:$LINENO: result: yes" >&5
18129 echo "${ECHO_T}yes" >&6
18131 echo "$as_me:$LINENO: result: no" >&5
18132 echo "${ECHO_T}no" >&6
18136 echo "$as_me:$LINENO: result: no" >&5
18137 echo "${ECHO_T}no" >&6
18142 if test "x$enable_dlopen" != xyes; then
18143 enable_dlopen=unknown
18144 enable_dlopen_self=unknown
18145 enable_dlopen_self_static=unknown
18152 lt_cv_dlopen="load_add_on"
18154 lt_cv_dlopen_self=yes
18158 lt_cv_dlopen="LoadLibrary"
18163 lt_cv_dlopen="dlopen"
18168 # if libdl is installed we need to link against it
18169 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18170 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18171 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18172 echo $ECHO_N "(cached) $ECHO_C" >&6
18174 ac_check_lib_save_LIBS=$LIBS
18176 cat >conftest.$ac_ext <<_ACEOF
18179 cat confdefs.h >>conftest.$ac_ext
18180 cat >>conftest.$ac_ext <<_ACEOF
18181 /* end confdefs.h. */
18183 /* Override any gcc2 internal prototype to avoid an error. */
18187 /* We use char because int might match the return type of a gcc2
18188 builtin and then its argument prototype would still apply. */
18198 rm -f conftest.$ac_objext conftest$ac_exeext
18199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18200 (eval $ac_link) 2>conftest.er1
18202 grep -v '^ *+' conftest.er1 >conftest.err
18204 cat conftest.err >&5
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); } &&
18207 { ac_try='test -z "$ac_c_werror_flag"
18208 || test ! -s conftest.err'
18209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18210 (eval $ac_try) 2>&5
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); }; } &&
18214 { ac_try='test -s conftest$ac_exeext'
18215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18216 (eval $ac_try) 2>&5
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); }; }; then
18220 ac_cv_lib_dl_dlopen=yes
18222 echo "$as_me: failed program was:" >&5
18223 sed 's/^/| /' conftest.$ac_ext >&5
18225 ac_cv_lib_dl_dlopen=no
18227 rm -f conftest.err conftest.$ac_objext \
18228 conftest$ac_exeext conftest.$ac_ext
18229 LIBS=$ac_check_lib_save_LIBS
18231 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18232 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18233 if test $ac_cv_lib_dl_dlopen = yes; then
18234 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18237 lt_cv_dlopen="dyld"
18239 lt_cv_dlopen_self=yes
18246 echo "$as_me:$LINENO: checking for shl_load" >&5
18247 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18248 if test "${ac_cv_func_shl_load+set}" = set; then
18249 echo $ECHO_N "(cached) $ECHO_C" >&6
18251 cat >conftest.$ac_ext <<_ACEOF
18254 cat confdefs.h >>conftest.$ac_ext
18255 cat >>conftest.$ac_ext <<_ACEOF
18256 /* end confdefs.h. */
18257 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18259 #define shl_load innocuous_shl_load
18261 /* System header to define __stub macros and hopefully few prototypes,
18262 which can conflict with char shl_load (); below.
18263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18264 <limits.h> exists even on freestanding compilers. */
18267 # include <limits.h>
18269 # include <assert.h>
18274 /* Override any gcc2 internal prototype to avoid an error. */
18279 /* We use char because int might match the return type of a gcc2
18280 builtin and then its argument prototype would still apply. */
18282 /* The GNU C library defines this for functions which it implements
18283 to always fail with ENOSYS. Some functions are actually named
18284 something starting with __ and the normal name is an alias. */
18285 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18288 char (*f) () = shl_load;
18297 return f != shl_load;
18302 rm -f conftest.$ac_objext conftest$ac_exeext
18303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18304 (eval $ac_link) 2>conftest.er1
18306 grep -v '^ *+' conftest.er1 >conftest.err
18308 cat conftest.err >&5
18309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310 (exit $ac_status); } &&
18311 { ac_try='test -z "$ac_c_werror_flag"
18312 || test ! -s conftest.err'
18313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18314 (eval $ac_try) 2>&5
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); }; } &&
18318 { ac_try='test -s conftest$ac_exeext'
18319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18320 (eval $ac_try) 2>&5
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); }; }; then
18324 ac_cv_func_shl_load=yes
18326 echo "$as_me: failed program was:" >&5
18327 sed 's/^/| /' conftest.$ac_ext >&5
18329 ac_cv_func_shl_load=no
18331 rm -f conftest.err conftest.$ac_objext \
18332 conftest$ac_exeext conftest.$ac_ext
18334 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18335 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18336 if test $ac_cv_func_shl_load = yes; then
18337 lt_cv_dlopen="shl_load"
18339 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18340 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18341 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18342 echo $ECHO_N "(cached) $ECHO_C" >&6
18344 ac_check_lib_save_LIBS=$LIBS
18346 cat >conftest.$ac_ext <<_ACEOF
18349 cat confdefs.h >>conftest.$ac_ext
18350 cat >>conftest.$ac_ext <<_ACEOF
18351 /* end confdefs.h. */
18353 /* Override any gcc2 internal prototype to avoid an error. */
18357 /* We use char because int might match the return type of a gcc2
18358 builtin and then its argument prototype would still apply. */
18368 rm -f conftest.$ac_objext conftest$ac_exeext
18369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18370 (eval $ac_link) 2>conftest.er1
18372 grep -v '^ *+' conftest.er1 >conftest.err
18374 cat conftest.err >&5
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); } &&
18377 { ac_try='test -z "$ac_c_werror_flag"
18378 || test ! -s conftest.err'
18379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18380 (eval $ac_try) 2>&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); }; } &&
18384 { ac_try='test -s conftest$ac_exeext'
18385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386 (eval $ac_try) 2>&5
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); }; }; then
18390 ac_cv_lib_dld_shl_load=yes
18392 echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18395 ac_cv_lib_dld_shl_load=no
18397 rm -f conftest.err conftest.$ac_objext \
18398 conftest$ac_exeext conftest.$ac_ext
18399 LIBS=$ac_check_lib_save_LIBS
18401 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18402 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18403 if test $ac_cv_lib_dld_shl_load = yes; then
18404 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18406 echo "$as_me:$LINENO: checking for dlopen" >&5
18407 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18408 if test "${ac_cv_func_dlopen+set}" = set; then
18409 echo $ECHO_N "(cached) $ECHO_C" >&6
18411 cat >conftest.$ac_ext <<_ACEOF
18414 cat confdefs.h >>conftest.$ac_ext
18415 cat >>conftest.$ac_ext <<_ACEOF
18416 /* end confdefs.h. */
18417 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18419 #define dlopen innocuous_dlopen
18421 /* System header to define __stub macros and hopefully few prototypes,
18422 which can conflict with char dlopen (); below.
18423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18424 <limits.h> exists even on freestanding compilers. */
18427 # include <limits.h>
18429 # include <assert.h>
18434 /* Override any gcc2 internal prototype to avoid an error. */
18439 /* We use char because int might match the return type of a gcc2
18440 builtin and then its argument prototype would still apply. */
18442 /* The GNU C library defines this for functions which it implements
18443 to always fail with ENOSYS. Some functions are actually named
18444 something starting with __ and the normal name is an alias. */
18445 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18448 char (*f) () = dlopen;
18457 return f != dlopen;
18462 rm -f conftest.$ac_objext conftest$ac_exeext
18463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18464 (eval $ac_link) 2>conftest.er1
18466 grep -v '^ *+' conftest.er1 >conftest.err
18468 cat conftest.err >&5
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); } &&
18471 { ac_try='test -z "$ac_c_werror_flag"
18472 || test ! -s conftest.err'
18473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18474 (eval $ac_try) 2>&5
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); }; } &&
18478 { ac_try='test -s conftest$ac_exeext'
18479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480 (eval $ac_try) 2>&5
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); }; }; then
18484 ac_cv_func_dlopen=yes
18486 echo "$as_me: failed program was:" >&5
18487 sed 's/^/| /' conftest.$ac_ext >&5
18489 ac_cv_func_dlopen=no
18491 rm -f conftest.err conftest.$ac_objext \
18492 conftest$ac_exeext conftest.$ac_ext
18494 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18495 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18496 if test $ac_cv_func_dlopen = yes; then
18497 lt_cv_dlopen="dlopen"
18499 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18500 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18501 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18502 echo $ECHO_N "(cached) $ECHO_C" >&6
18504 ac_check_lib_save_LIBS=$LIBS
18506 cat >conftest.$ac_ext <<_ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h. */
18513 /* Override any gcc2 internal prototype to avoid an error. */
18517 /* We use char because int might match the return type of a gcc2
18518 builtin and then its argument prototype would still apply. */
18528 rm -f conftest.$ac_objext conftest$ac_exeext
18529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18530 (eval $ac_link) 2>conftest.er1
18532 grep -v '^ *+' conftest.er1 >conftest.err
18534 cat conftest.err >&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); } &&
18537 { ac_try='test -z "$ac_c_werror_flag"
18538 || test ! -s conftest.err'
18539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18540 (eval $ac_try) 2>&5
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); }; } &&
18544 { ac_try='test -s conftest$ac_exeext'
18545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18546 (eval $ac_try) 2>&5
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); }; }; then
18550 ac_cv_lib_dl_dlopen=yes
18552 echo "$as_me: failed program was:" >&5
18553 sed 's/^/| /' conftest.$ac_ext >&5
18555 ac_cv_lib_dl_dlopen=no
18557 rm -f conftest.err conftest.$ac_objext \
18558 conftest$ac_exeext conftest.$ac_ext
18559 LIBS=$ac_check_lib_save_LIBS
18561 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18562 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18563 if test $ac_cv_lib_dl_dlopen = yes; then
18564 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18566 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18567 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18568 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18569 echo $ECHO_N "(cached) $ECHO_C" >&6
18571 ac_check_lib_save_LIBS=$LIBS
18572 LIBS="-lsvld $LIBS"
18573 cat >conftest.$ac_ext <<_ACEOF
18576 cat confdefs.h >>conftest.$ac_ext
18577 cat >>conftest.$ac_ext <<_ACEOF
18578 /* end confdefs.h. */
18580 /* Override any gcc2 internal prototype to avoid an error. */
18584 /* We use char because int might match the return type of a gcc2
18585 builtin and then its argument prototype would still apply. */
18595 rm -f conftest.$ac_objext conftest$ac_exeext
18596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18597 (eval $ac_link) 2>conftest.er1
18599 grep -v '^ *+' conftest.er1 >conftest.err
18601 cat conftest.err >&5
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); } &&
18604 { ac_try='test -z "$ac_c_werror_flag"
18605 || test ! -s conftest.err'
18606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18607 (eval $ac_try) 2>&5
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); }; } &&
18611 { ac_try='test -s conftest$ac_exeext'
18612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18613 (eval $ac_try) 2>&5
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); }; }; then
18617 ac_cv_lib_svld_dlopen=yes
18619 echo "$as_me: failed program was:" >&5
18620 sed 's/^/| /' conftest.$ac_ext >&5
18622 ac_cv_lib_svld_dlopen=no
18624 rm -f conftest.err conftest.$ac_objext \
18625 conftest$ac_exeext conftest.$ac_ext
18626 LIBS=$ac_check_lib_save_LIBS
18628 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18629 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18630 if test $ac_cv_lib_svld_dlopen = yes; then
18631 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18633 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18634 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18635 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18636 echo $ECHO_N "(cached) $ECHO_C" >&6
18638 ac_check_lib_save_LIBS=$LIBS
18640 cat >conftest.$ac_ext <<_ACEOF
18643 cat confdefs.h >>conftest.$ac_ext
18644 cat >>conftest.$ac_ext <<_ACEOF
18645 /* end confdefs.h. */
18647 /* Override any gcc2 internal prototype to avoid an error. */
18651 /* We use char because int might match the return type of a gcc2
18652 builtin and then its argument prototype would still apply. */
18662 rm -f conftest.$ac_objext conftest$ac_exeext
18663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18664 (eval $ac_link) 2>conftest.er1
18666 grep -v '^ *+' conftest.er1 >conftest.err
18668 cat conftest.err >&5
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); } &&
18671 { ac_try='test -z "$ac_c_werror_flag"
18672 || test ! -s conftest.err'
18673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18674 (eval $ac_try) 2>&5
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); }; } &&
18678 { ac_try='test -s conftest$ac_exeext'
18679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18680 (eval $ac_try) 2>&5
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); }; }; then
18684 ac_cv_lib_dld_dld_link=yes
18686 echo "$as_me: failed program was:" >&5
18687 sed 's/^/| /' conftest.$ac_ext >&5
18689 ac_cv_lib_dld_dld_link=no
18691 rm -f conftest.err conftest.$ac_objext \
18692 conftest$ac_exeext conftest.$ac_ext
18693 LIBS=$ac_check_lib_save_LIBS
18695 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18696 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18697 if test $ac_cv_lib_dld_dld_link = yes; then
18698 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18719 if test "x$lt_cv_dlopen" != xno; then
18725 case $lt_cv_dlopen in
18727 save_CPPFLAGS="$CPPFLAGS"
18728 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18730 save_LDFLAGS="$LDFLAGS"
18731 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18734 LIBS="$lt_cv_dlopen_libs $LIBS"
18736 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18737 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18738 if test "${lt_cv_dlopen_self+set}" = set; then
18739 echo $ECHO_N "(cached) $ECHO_C" >&6
18741 if test "$cross_compiling" = yes; then :
18742 lt_cv_dlopen_self=cross
18744 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18745 lt_status=$lt_dlunknown
18746 cat > conftest.$ac_ext <<EOF
18747 #line 18747 "configure"
18748 #include "confdefs.h"
18757 # define LT_DLGLOBAL RTLD_GLOBAL
18760 # define LT_DLGLOBAL DL_GLOBAL
18762 # define LT_DLGLOBAL 0
18766 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18767 find out it does not work in some platform. */
18768 #ifndef LT_DLLAZY_OR_NOW
18770 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18773 # define LT_DLLAZY_OR_NOW DL_LAZY
18776 # define LT_DLLAZY_OR_NOW RTLD_NOW
18779 # define LT_DLLAZY_OR_NOW DL_NOW
18781 # define LT_DLLAZY_OR_NOW 0
18789 extern "C" void exit (int);
18792 void fnord() { int i=42;}
18795 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18796 int status = $lt_dlunknown;
18800 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18801 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18802 /* dlclose (self); */
18808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18809 (eval $ac_link) 2>&5
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18813 (./conftest; exit; ) 2>/dev/null
18815 case x$lt_status in
18816 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18817 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18818 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18821 # compilation failed
18822 lt_cv_dlopen_self=no
18829 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18830 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18832 if test "x$lt_cv_dlopen_self" = xyes; then
18833 LDFLAGS="$LDFLAGS $link_static_flag"
18834 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18835 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18836 if test "${lt_cv_dlopen_self_static+set}" = set; then
18837 echo $ECHO_N "(cached) $ECHO_C" >&6
18839 if test "$cross_compiling" = yes; then :
18840 lt_cv_dlopen_self_static=cross
18842 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18843 lt_status=$lt_dlunknown
18844 cat > conftest.$ac_ext <<EOF
18845 #line 18845 "configure"
18846 #include "confdefs.h"
18855 # define LT_DLGLOBAL RTLD_GLOBAL
18858 # define LT_DLGLOBAL DL_GLOBAL
18860 # define LT_DLGLOBAL 0
18864 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18865 find out it does not work in some platform. */
18866 #ifndef LT_DLLAZY_OR_NOW
18868 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18871 # define LT_DLLAZY_OR_NOW DL_LAZY
18874 # define LT_DLLAZY_OR_NOW RTLD_NOW
18877 # define LT_DLLAZY_OR_NOW DL_NOW
18879 # define LT_DLLAZY_OR_NOW 0
18887 extern "C" void exit (int);
18890 void fnord() { int i=42;}
18893 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18894 int status = $lt_dlunknown;
18898 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18899 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18900 /* dlclose (self); */
18906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18907 (eval $ac_link) 2>&5
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18911 (./conftest; exit; ) 2>/dev/null
18913 case x$lt_status in
18914 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18915 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18916 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18919 # compilation failed
18920 lt_cv_dlopen_self_static=no
18927 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18928 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18931 CPPFLAGS="$save_CPPFLAGS"
18932 LDFLAGS="$save_LDFLAGS"
18937 case $lt_cv_dlopen_self in
18938 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18939 *) enable_dlopen_self=unknown ;;
18942 case $lt_cv_dlopen_self_static in
18943 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18944 *) enable_dlopen_self_static=unknown ;;
18949 # The else clause should only fire when bootstrapping the
18950 # libtool distribution, otherwise you forgot to ship ltmain.sh
18951 # with your package, and you will get complaints that there are
18952 # no rules to generate ltmain.sh.
18953 if test -f "$ltmain"; then
18954 # See if we are running on zsh, and set the options which allow our commands through
18955 # without removal of \ escapes.
18956 if test -n "${ZSH_VERSION+set}" ; then
18957 setopt NO_GLOB_SUBST
18959 # Now quote all the things that may contain metacharacters while being
18960 # careful not to overquote the AC_SUBSTed values. We take copies of the
18961 # variables and quote the copies for generation of the libtool script.
18962 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18964 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18965 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18966 deplibs_check_method reload_flag reload_cmds need_locks \
18967 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18968 lt_cv_sys_global_symbol_to_c_name_address \
18969 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18970 old_postinstall_cmds old_postuninstall_cmds \
18974 lt_prog_compiler_wl_GCJ \
18975 lt_prog_compiler_pic_GCJ \
18976 lt_prog_compiler_static_GCJ \
18977 lt_prog_compiler_no_builtin_flag_GCJ \
18978 export_dynamic_flag_spec_GCJ \
18979 thread_safe_flag_spec_GCJ \
18980 whole_archive_flag_spec_GCJ \
18981 enable_shared_with_static_runtimes_GCJ \
18982 old_archive_cmds_GCJ \
18983 old_archive_from_new_cmds_GCJ \
18984 predep_objects_GCJ \
18985 postdep_objects_GCJ \
18988 compiler_lib_search_path_GCJ \
18990 archive_expsym_cmds_GCJ \
18991 postinstall_cmds_GCJ \
18992 postuninstall_cmds_GCJ \
18993 old_archive_from_expsyms_cmds_GCJ \
18994 allow_undefined_flag_GCJ \
18995 no_undefined_flag_GCJ \
18996 export_symbols_cmds_GCJ \
18997 hardcode_libdir_flag_spec_GCJ \
18998 hardcode_libdir_flag_spec_ld_GCJ \
18999 hardcode_libdir_separator_GCJ \
19000 hardcode_automatic_GCJ \
19002 module_expsym_cmds_GCJ \
19003 lt_cv_prog_compiler_c_o_GCJ \
19004 exclude_expsyms_GCJ \
19005 include_expsyms_GCJ; do
19008 old_archive_cmds_GCJ | \
19009 old_archive_from_new_cmds_GCJ | \
19010 archive_cmds_GCJ | \
19011 archive_expsym_cmds_GCJ | \
19012 module_cmds_GCJ | \
19013 module_expsym_cmds_GCJ | \
19014 old_archive_from_expsyms_cmds_GCJ | \
19015 export_symbols_cmds_GCJ | \
19016 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19017 postinstall_cmds | postuninstall_cmds | \
19018 old_postinstall_cmds | old_postuninstall_cmds | \
19019 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19020 # Double-quote double-evaled strings.
19021 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19024 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19030 *'\$0 --fallback-echo"')
19031 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19037 cat <<__EOF__ >> "$cfgfile"
19038 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19040 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19042 # Shell to use when invoking shell scripts.
19045 # Whether or not to build shared libraries.
19046 build_libtool_libs=$enable_shared
19048 # Whether or not to build static libraries.
19049 build_old_libs=$enable_static
19051 # Whether or not to add -lc for building shared libraries.
19052 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19054 # Whether or not to disallow shared libs when runtime libs are static
19055 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19057 # Whether or not to optimize for fast installation.
19058 fast_install=$enable_fast_install
19061 host_alias=$host_alias
19064 # An echo program that does not interpret backslashes.
19069 AR_FLAGS=$lt_AR_FLAGS
19074 # A language-specific compiler.
19075 CC=$lt_compiler_GCJ
19077 # Is the compiler the GNU C compiler?
19083 # The linker used to build libraries.
19086 # Whether we need hard or soft links.
19089 # A BSD-compatible nm program.
19092 # A symbol stripping program
19095 # Used to examine libraries when file_magic_cmd begins "file"
19096 MAGIC_CMD=$MAGIC_CMD
19098 # Used on cygwin: DLL creation program.
19101 # Used on cygwin: object dumper.
19104 # Used on cygwin: assembler.
19107 # The name of the directory that contains temporary libtool files.
19110 # How to create reloadable object files.
19111 reload_flag=$lt_reload_flag
19112 reload_cmds=$lt_reload_cmds
19114 # How to pass a linker flag through the compiler.
19115 wl=$lt_lt_prog_compiler_wl_GCJ
19117 # Object file suffix (normally "o").
19118 objext="$ac_objext"
19120 # Old archive suffix (normally "a").
19123 # Shared library suffix (normally ".so").
19126 # Executable file suffix (normally "").
19129 # Additional compiler flags for building library objects.
19130 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19133 # What is the maximum length of a command?
19134 max_cmd_len=$lt_cv_sys_max_cmd_len
19136 # Does compiler simultaneously support -c and -o options?
19137 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19139 # Must we lock files when doing compilation ?
19140 need_locks=$lt_need_locks
19142 # Do we need the lib prefix for modules?
19143 need_lib_prefix=$need_lib_prefix
19145 # Do we need a version for libraries?
19146 need_version=$need_version
19148 # Whether dlopen is supported.
19149 dlopen_support=$enable_dlopen
19151 # Whether dlopen of programs is supported.
19152 dlopen_self=$enable_dlopen_self
19154 # Whether dlopen of statically linked programs is supported.
19155 dlopen_self_static=$enable_dlopen_self_static
19157 # Compiler flag to prevent dynamic linking.
19158 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19160 # Compiler flag to turn off builtin functions.
19161 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19163 # Compiler flag to allow reflexive dlopens.
19164 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19166 # Compiler flag to generate shared objects directly from archives.
19167 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19169 # Compiler flag to generate thread-safe objects.
19170 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19172 # Library versioning type.
19173 version_type=$version_type
19175 # Format of library name prefix.
19176 libname_spec=$lt_libname_spec
19178 # List of archive names. First name is the real one, the rest are links.
19179 # The last name is the one that the linker finds with -lNAME.
19180 library_names_spec=$lt_library_names_spec
19182 # The coded name of the library, if different from the real name.
19183 soname_spec=$lt_soname_spec
19185 # Commands used to build and install an old-style archive.
19187 old_archive_cmds=$lt_old_archive_cmds_GCJ
19188 old_postinstall_cmds=$lt_old_postinstall_cmds
19189 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19191 # Create an old-style archive from a shared archive.
19192 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19194 # Create a temporary old-style archive to link instead of a shared archive.
19195 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19197 # Commands used to build and install a shared archive.
19198 archive_cmds=$lt_archive_cmds_GCJ
19199 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19200 postinstall_cmds=$lt_postinstall_cmds
19201 postuninstall_cmds=$lt_postuninstall_cmds
19203 # Commands used to build a loadable module (assumed same as above if empty)
19204 module_cmds=$lt_module_cmds_GCJ
19205 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19207 # Commands to strip libraries.
19208 old_striplib=$lt_old_striplib
19209 striplib=$lt_striplib
19211 # Dependencies to place before the objects being linked to create a
19213 predep_objects=$lt_predep_objects_GCJ
19215 # Dependencies to place after the objects being linked to create a
19217 postdep_objects=$lt_postdep_objects_GCJ
19219 # Dependencies to place before the objects being linked to create a
19221 predeps=$lt_predeps_GCJ
19223 # Dependencies to place after the objects being linked to create a
19225 postdeps=$lt_postdeps_GCJ
19227 # The library search path used internally by the compiler when linking
19228 # a shared library.
19229 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19231 # Method to check whether dependent libraries are shared objects.
19232 deplibs_check_method=$lt_deplibs_check_method
19234 # Command to use when deplibs_check_method == file_magic.
19235 file_magic_cmd=$lt_file_magic_cmd
19237 # Flag that allows shared libraries with undefined symbols to be built.
19238 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19240 # Flag that forces no undefined symbols.
19241 no_undefined_flag=$lt_no_undefined_flag_GCJ
19243 # Commands used to finish a libtool library installation in a directory.
19244 finish_cmds=$lt_finish_cmds
19246 # Same as above, but a single script fragment to be evaled but not shown.
19247 finish_eval=$lt_finish_eval
19249 # Take the output of nm and produce a listing of raw symbols and C names.
19250 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19252 # Transform the output of nm in a proper C declaration
19253 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19255 # Transform the output of nm in a C name address pair
19256 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19258 # This is the shared library runtime path variable.
19259 runpath_var=$runpath_var
19261 # This is the shared library path variable.
19262 shlibpath_var=$shlibpath_var
19264 # Is shlibpath searched before the hard-coded library search path?
19265 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19267 # How to hardcode a shared library path into an executable.
19268 hardcode_action=$hardcode_action_GCJ
19270 # Whether we should hardcode library paths into libraries.
19271 hardcode_into_libs=$hardcode_into_libs
19273 # Flag to hardcode \$libdir into a binary during linking.
19274 # This must work even if \$libdir does not exist.
19275 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19277 # If ld is used when linking, flag to hardcode \$libdir into
19278 # a binary during linking. This must work even if \$libdir does
19280 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19282 # Whether we need a single -rpath flag with a separated argument.
19283 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19285 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19286 # resulting binary.
19287 hardcode_direct=$hardcode_direct_GCJ
19289 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19290 # resulting binary.
19291 hardcode_minus_L=$hardcode_minus_L_GCJ
19293 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19294 # the resulting binary.
19295 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19297 # Set to yes if building a shared library automatically hardcodes DIR into the library
19298 # and all subsequent libraries and executables linked against it.
19299 hardcode_automatic=$hardcode_automatic_GCJ
19301 # Variables whose values should be saved in libtool wrapper scripts and
19302 # restored at relink time.
19303 variables_saved_for_relink="$variables_saved_for_relink"
19305 # Whether libtool must link a program against all its dependency libraries.
19306 link_all_deplibs=$link_all_deplibs_GCJ
19308 # Compile-time system search path for libraries
19309 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19311 # Run-time system search path for libraries
19312 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19314 # Fix the shell variable \$srcfile for the compiler.
19315 fix_srcfile_path="$fix_srcfile_path_GCJ"
19317 # Set to yes if exported symbols are required.
19318 always_export_symbols=$always_export_symbols_GCJ
19320 # The commands to list exported symbols.
19321 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19323 # The commands to extract the exported symbol list from a shared archive.
19324 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19326 # Symbols that should not be listed in the preloaded symbols.
19327 exclude_expsyms=$lt_exclude_expsyms_GCJ
19329 # Symbols that must always be exported.
19330 include_expsyms=$lt_include_expsyms_GCJ
19332 # ### END LIBTOOL TAG CONFIG: $tagname
19338 # If there is no Makefile yet, we rely on a make rule to execute
19339 # `config.status --recheck' to rerun these tests and create the
19340 # libtool script then.
19341 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19342 if test -f "$ltmain_in"; then
19343 test -f Makefile && make "$ltmain"
19349 ac_cpp='$CPP $CPPFLAGS'
19350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19365 # Source file extension for RC test sources.
19368 # Object file extension for compiled RC test sources.
19372 # Code to be used in simple compile tests
19373 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19375 # Code to be used in simple link tests
19376 lt_simple_link_test_code="$lt_simple_compile_test_code"
19378 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19380 # If no C compiler was specified, use CC.
19383 # Allow CC to be a program name with arguments.
19387 # Allow CC to be a program name with arguments.
19392 lt_cv_prog_compiler_c_o_RC=yes
19394 # The else clause should only fire when bootstrapping the
19395 # libtool distribution, otherwise you forgot to ship ltmain.sh
19396 # with your package, and you will get complaints that there are
19397 # no rules to generate ltmain.sh.
19398 if test -f "$ltmain"; then
19399 # See if we are running on zsh, and set the options which allow our commands through
19400 # without removal of \ escapes.
19401 if test -n "${ZSH_VERSION+set}" ; then
19402 setopt NO_GLOB_SUBST
19404 # Now quote all the things that may contain metacharacters while being
19405 # careful not to overquote the AC_SUBSTed values. We take copies of the
19406 # variables and quote the copies for generation of the libtool script.
19407 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19409 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19410 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19411 deplibs_check_method reload_flag reload_cmds need_locks \
19412 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19413 lt_cv_sys_global_symbol_to_c_name_address \
19414 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19415 old_postinstall_cmds old_postuninstall_cmds \
19419 lt_prog_compiler_wl_RC \
19420 lt_prog_compiler_pic_RC \
19421 lt_prog_compiler_static_RC \
19422 lt_prog_compiler_no_builtin_flag_RC \
19423 export_dynamic_flag_spec_RC \
19424 thread_safe_flag_spec_RC \
19425 whole_archive_flag_spec_RC \
19426 enable_shared_with_static_runtimes_RC \
19427 old_archive_cmds_RC \
19428 old_archive_from_new_cmds_RC \
19429 predep_objects_RC \
19430 postdep_objects_RC \
19433 compiler_lib_search_path_RC \
19435 archive_expsym_cmds_RC \
19436 postinstall_cmds_RC \
19437 postuninstall_cmds_RC \
19438 old_archive_from_expsyms_cmds_RC \
19439 allow_undefined_flag_RC \
19440 no_undefined_flag_RC \
19441 export_symbols_cmds_RC \
19442 hardcode_libdir_flag_spec_RC \
19443 hardcode_libdir_flag_spec_ld_RC \
19444 hardcode_libdir_separator_RC \
19445 hardcode_automatic_RC \
19447 module_expsym_cmds_RC \
19448 lt_cv_prog_compiler_c_o_RC \
19449 exclude_expsyms_RC \
19450 include_expsyms_RC; do
19453 old_archive_cmds_RC | \
19454 old_archive_from_new_cmds_RC | \
19455 archive_cmds_RC | \
19456 archive_expsym_cmds_RC | \
19458 module_expsym_cmds_RC | \
19459 old_archive_from_expsyms_cmds_RC | \
19460 export_symbols_cmds_RC | \
19461 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19462 postinstall_cmds | postuninstall_cmds | \
19463 old_postinstall_cmds | old_postuninstall_cmds | \
19464 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19465 # Double-quote double-evaled strings.
19466 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19469 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19475 *'\$0 --fallback-echo"')
19476 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19482 cat <<__EOF__ >> "$cfgfile"
19483 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19485 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19487 # Shell to use when invoking shell scripts.
19490 # Whether or not to build shared libraries.
19491 build_libtool_libs=$enable_shared
19493 # Whether or not to build static libraries.
19494 build_old_libs=$enable_static
19496 # Whether or not to add -lc for building shared libraries.
19497 build_libtool_need_lc=$archive_cmds_need_lc_RC
19499 # Whether or not to disallow shared libs when runtime libs are static
19500 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19502 # Whether or not to optimize for fast installation.
19503 fast_install=$enable_fast_install
19506 host_alias=$host_alias
19509 # An echo program that does not interpret backslashes.
19514 AR_FLAGS=$lt_AR_FLAGS
19519 # A language-specific compiler.
19522 # Is the compiler the GNU C compiler?
19528 # The linker used to build libraries.
19531 # Whether we need hard or soft links.
19534 # A BSD-compatible nm program.
19537 # A symbol stripping program
19540 # Used to examine libraries when file_magic_cmd begins "file"
19541 MAGIC_CMD=$MAGIC_CMD
19543 # Used on cygwin: DLL creation program.
19546 # Used on cygwin: object dumper.
19549 # Used on cygwin: assembler.
19552 # The name of the directory that contains temporary libtool files.
19555 # How to create reloadable object files.
19556 reload_flag=$lt_reload_flag
19557 reload_cmds=$lt_reload_cmds
19559 # How to pass a linker flag through the compiler.
19560 wl=$lt_lt_prog_compiler_wl_RC
19562 # Object file suffix (normally "o").
19563 objext="$ac_objext"
19565 # Old archive suffix (normally "a").
19568 # Shared library suffix (normally ".so").
19571 # Executable file suffix (normally "").
19574 # Additional compiler flags for building library objects.
19575 pic_flag=$lt_lt_prog_compiler_pic_RC
19578 # What is the maximum length of a command?
19579 max_cmd_len=$lt_cv_sys_max_cmd_len
19581 # Does compiler simultaneously support -c and -o options?
19582 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19584 # Must we lock files when doing compilation ?
19585 need_locks=$lt_need_locks
19587 # Do we need the lib prefix for modules?
19588 need_lib_prefix=$need_lib_prefix
19590 # Do we need a version for libraries?
19591 need_version=$need_version
19593 # Whether dlopen is supported.
19594 dlopen_support=$enable_dlopen
19596 # Whether dlopen of programs is supported.
19597 dlopen_self=$enable_dlopen_self
19599 # Whether dlopen of statically linked programs is supported.
19600 dlopen_self_static=$enable_dlopen_self_static
19602 # Compiler flag to prevent dynamic linking.
19603 link_static_flag=$lt_lt_prog_compiler_static_RC
19605 # Compiler flag to turn off builtin functions.
19606 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19608 # Compiler flag to allow reflexive dlopens.
19609 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19611 # Compiler flag to generate shared objects directly from archives.
19612 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19614 # Compiler flag to generate thread-safe objects.
19615 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19617 # Library versioning type.
19618 version_type=$version_type
19620 # Format of library name prefix.
19621 libname_spec=$lt_libname_spec
19623 # List of archive names. First name is the real one, the rest are links.
19624 # The last name is the one that the linker finds with -lNAME.
19625 library_names_spec=$lt_library_names_spec
19627 # The coded name of the library, if different from the real name.
19628 soname_spec=$lt_soname_spec
19630 # Commands used to build and install an old-style archive.
19632 old_archive_cmds=$lt_old_archive_cmds_RC
19633 old_postinstall_cmds=$lt_old_postinstall_cmds
19634 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19636 # Create an old-style archive from a shared archive.
19637 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19639 # Create a temporary old-style archive to link instead of a shared archive.
19640 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19642 # Commands used to build and install a shared archive.
19643 archive_cmds=$lt_archive_cmds_RC
19644 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19645 postinstall_cmds=$lt_postinstall_cmds
19646 postuninstall_cmds=$lt_postuninstall_cmds
19648 # Commands used to build a loadable module (assumed same as above if empty)
19649 module_cmds=$lt_module_cmds_RC
19650 module_expsym_cmds=$lt_module_expsym_cmds_RC
19652 # Commands to strip libraries.
19653 old_striplib=$lt_old_striplib
19654 striplib=$lt_striplib
19656 # Dependencies to place before the objects being linked to create a
19658 predep_objects=$lt_predep_objects_RC
19660 # Dependencies to place after the objects being linked to create a
19662 postdep_objects=$lt_postdep_objects_RC
19664 # Dependencies to place before the objects being linked to create a
19666 predeps=$lt_predeps_RC
19668 # Dependencies to place after the objects being linked to create a
19670 postdeps=$lt_postdeps_RC
19672 # The library search path used internally by the compiler when linking
19673 # a shared library.
19674 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19676 # Method to check whether dependent libraries are shared objects.
19677 deplibs_check_method=$lt_deplibs_check_method
19679 # Command to use when deplibs_check_method == file_magic.
19680 file_magic_cmd=$lt_file_magic_cmd
19682 # Flag that allows shared libraries with undefined symbols to be built.
19683 allow_undefined_flag=$lt_allow_undefined_flag_RC
19685 # Flag that forces no undefined symbols.
19686 no_undefined_flag=$lt_no_undefined_flag_RC
19688 # Commands used to finish a libtool library installation in a directory.
19689 finish_cmds=$lt_finish_cmds
19691 # Same as above, but a single script fragment to be evaled but not shown.
19692 finish_eval=$lt_finish_eval
19694 # Take the output of nm and produce a listing of raw symbols and C names.
19695 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19697 # Transform the output of nm in a proper C declaration
19698 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19700 # Transform the output of nm in a C name address pair
19701 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19703 # This is the shared library runtime path variable.
19704 runpath_var=$runpath_var
19706 # This is the shared library path variable.
19707 shlibpath_var=$shlibpath_var
19709 # Is shlibpath searched before the hard-coded library search path?
19710 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19712 # How to hardcode a shared library path into an executable.
19713 hardcode_action=$hardcode_action_RC
19715 # Whether we should hardcode library paths into libraries.
19716 hardcode_into_libs=$hardcode_into_libs
19718 # Flag to hardcode \$libdir into a binary during linking.
19719 # This must work even if \$libdir does not exist.
19720 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19722 # If ld is used when linking, flag to hardcode \$libdir into
19723 # a binary during linking. This must work even if \$libdir does
19725 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19727 # Whether we need a single -rpath flag with a separated argument.
19728 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19730 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19731 # resulting binary.
19732 hardcode_direct=$hardcode_direct_RC
19734 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19735 # resulting binary.
19736 hardcode_minus_L=$hardcode_minus_L_RC
19738 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19739 # the resulting binary.
19740 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19742 # Set to yes if building a shared library automatically hardcodes DIR into the library
19743 # and all subsequent libraries and executables linked against it.
19744 hardcode_automatic=$hardcode_automatic_RC
19746 # Variables whose values should be saved in libtool wrapper scripts and
19747 # restored at relink time.
19748 variables_saved_for_relink="$variables_saved_for_relink"
19750 # Whether libtool must link a program against all its dependency libraries.
19751 link_all_deplibs=$link_all_deplibs_RC
19753 # Compile-time system search path for libraries
19754 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19756 # Run-time system search path for libraries
19757 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19759 # Fix the shell variable \$srcfile for the compiler.
19760 fix_srcfile_path="$fix_srcfile_path_RC"
19762 # Set to yes if exported symbols are required.
19763 always_export_symbols=$always_export_symbols_RC
19765 # The commands to list exported symbols.
19766 export_symbols_cmds=$lt_export_symbols_cmds_RC
19768 # The commands to extract the exported symbol list from a shared archive.
19769 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19771 # Symbols that should not be listed in the preloaded symbols.
19772 exclude_expsyms=$lt_exclude_expsyms_RC
19774 # Symbols that must always be exported.
19775 include_expsyms=$lt_include_expsyms_RC
19777 # ### END LIBTOOL TAG CONFIG: $tagname
19783 # If there is no Makefile yet, we rely on a make rule to execute
19784 # `config.status --recheck' to rerun these tests and create the
19785 # libtool script then.
19786 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19787 if test -f "$ltmain_in"; then
19788 test -f Makefile && make "$ltmain"
19794 ac_cpp='$CPP $CPPFLAGS'
19795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19804 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19805 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19806 { (exit 1); exit 1; }; }
19810 # Append the new tag name to the list of available tags.
19811 if test -n "$tagname" ; then
19812 available_tags="$available_tags $tagname"
19818 # Now substitute the updated list of available tags.
19819 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19820 mv "${ofile}T" "$ofile"
19824 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19825 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19826 { (exit 1); exit 1; }; }
19832 # This can be used to rebuild libtool when needed
19833 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19835 # Always use our own libtool.
19836 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19838 # Prevent multiple expansion
19862 WFLAGS_NOIMPLICITINT=""
19863 if test -z "$WFLAGS" -a "$GCC" = "yes"; then
19864 # -Wno-implicit-int for broken X11 headers
19865 # leave these out for now:
19866 # -Wcast-align doesn't work well on alpha osf/1
19867 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
19868 # -Wmissing-declarations -Wnested-externs
19869 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
19870 WFLAGS_NOUNUSED="-Wno-unused"
19871 WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
19877 # Check whether --with-openldap or --without-openldap was given.
19878 if test "${with_openldap+set}" = set; then
19879 withval="$with_openldap"
19883 # Check whether --with-openldap-lib or --without-openldap-lib was given.
19884 if test "${with_openldap_lib+set}" = set; then
19885 withval="$with_openldap_lib"
19886 if test "$withval" = "yes" -o "$withval" = "no"; then
19887 { { echo "$as_me:$LINENO: error: No argument for --with-openldap-lib" >&5
19888 echo "$as_me: error: No argument for --with-openldap-lib" >&2;}
19889 { (exit 1); exit 1; }; }
19890 elif test "X$with_openldap" = "X"; then
19895 # Check whether --with-openldap-include or --without-openldap-include was given.
19896 if test "${with_openldap_include+set}" = set; then
19897 withval="$with_openldap_include"
19898 if test "$withval" = "yes" -o "$withval" = "no"; then
19899 { { echo "$as_me:$LINENO: error: No argument for --with-openldap-include" >&5
19900 echo "$as_me: error: No argument for --with-openldap-include" >&2;}
19901 { (exit 1); exit 1; }; }
19902 elif test "X$with_openldap" = "X"; then
19907 # Check whether --with-openldap-config or --without-openldap-config was given.
19908 if test "${with_openldap_config+set}" = set; then
19909 withval="$with_openldap_config"
19915 echo "$as_me:$LINENO: checking for openldap" >&5
19916 echo $ECHO_N "checking for openldap... $ECHO_C" >&6
19918 case "$with_openldap" in
19921 *) d="$with_openldap" ;;
19927 if test "$with_openldap_include" = ""; then
19928 if test -d "$i/include/openldap"; then
19929 header_dirs="$header_dirs $i/include/openldap"
19931 if test -d "$i/include"; then
19932 header_dirs="$header_dirs $i/include"
19935 if test "$with_openldap_lib" = ""; then
19936 if test -d "$i/lib$abilibdirext"; then
19937 lib_dirs="$lib_dirs $i/lib$abilibdirext"
19942 if test "$with_openldap_include"; then
19943 header_dirs="$with_openldap_include $header_dirs"
19945 if test "$with_openldap_lib"; then
19946 lib_dirs="$with_openldap_lib $lib_dirs"
19949 if test "$with_openldap_config" = ""; then
19950 with_openldap_config=''
19956 case "$with_openldap_config" in
19960 openldap_cflags="`$with_openldap_config --cflags 2>&1`"
19961 openldap_libs="`$with_openldap_config --libs 2>&1`"
19966 if test "$with_openldap" != no; then
19967 save_CFLAGS="$CFLAGS"
19969 if test "$openldap_cflags" -a "$openldap_libs"; then
19970 CFLAGS="$openldap_cflags $save_CFLAGS"
19971 LIBS="$openldap_libs $save_LIBS"
19972 cat >conftest.$ac_ext <<_ACEOF
19975 cat confdefs.h >>conftest.$ac_ext
19976 cat >>conftest.$ac_ext <<_ACEOF
19977 /* end confdefs.h. */
19988 rm -f conftest.$ac_objext conftest$ac_exeext
19989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19990 (eval $ac_link) 2>conftest.er1
19992 grep -v '^ *+' conftest.er1 >conftest.err
19994 cat conftest.err >&5
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); } &&
19997 { ac_try='test -z "$ac_c_werror_flag"
19998 || test ! -s conftest.err'
19999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000 (eval $ac_try) 2>&5
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); }; } &&
20004 { ac_try='test -s conftest$ac_exeext'
20005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20006 (eval $ac_try) 2>&5
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); }; }; then
20011 INCLUDE_openldap="$openldap_cflags"
20012 LIB_openldap="$openldap_libs"
20013 echo "$as_me:$LINENO: result: from $with_openldap_config" >&5
20014 echo "${ECHO_T}from $with_openldap_config" >&6
20017 echo "$as_me: failed program was:" >&5
20018 sed 's/^/| /' conftest.$ac_ext >&5
20021 rm -f conftest.err conftest.$ac_objext \
20022 conftest$ac_exeext conftest.$ac_ext
20024 if test "$found" = no; then
20026 for i in $header_dirs; do
20027 CFLAGS="-I$i $save_CFLAGS"
20028 cat >conftest.$ac_ext <<_ACEOF
20031 cat confdefs.h >>conftest.$ac_ext
20032 cat >>conftest.$ac_ext <<_ACEOF
20033 /* end confdefs.h. */
20044 rm -f conftest.$ac_objext
20045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20046 (eval $ac_compile) 2>conftest.er1
20048 grep -v '^ *+' conftest.er1 >conftest.err
20050 cat conftest.err >&5
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); } &&
20053 { ac_try='test -z "$ac_c_werror_flag"
20054 || test ! -s conftest.err'
20055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20056 (eval $ac_try) 2>&5
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); }; } &&
20060 { ac_try='test -s conftest.$ac_objext'
20061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20062 (eval $ac_try) 2>&5
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); }; }; then
20068 echo "$as_me: failed program was:" >&5
20069 sed 's/^/| /' conftest.$ac_ext >&5
20072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20074 for i in $lib_dirs; do
20075 LIBS="-L$i -lldap -llber $save_LIBS"
20076 cat >conftest.$ac_ext <<_ACEOF
20079 cat confdefs.h >>conftest.$ac_ext
20080 cat >>conftest.$ac_ext <<_ACEOF
20081 /* end confdefs.h. */
20092 rm -f conftest.$ac_objext conftest$ac_exeext
20093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20094 (eval $ac_link) 2>conftest.er1
20096 grep -v '^ *+' conftest.er1 >conftest.err
20098 cat conftest.err >&5
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); } &&
20101 { ac_try='test -z "$ac_c_werror_flag"
20102 || test ! -s conftest.err'
20103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20104 (eval $ac_try) 2>&5
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 (exit $ac_status); }; } &&
20108 { ac_try='test -s conftest$ac_exeext'
20109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20110 (eval $ac_try) 2>&5
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); }; }; then
20116 echo "$as_me: failed program was:" >&5
20117 sed 's/^/| /' conftest.$ac_ext >&5
20120 rm -f conftest.err conftest.$ac_objext \
20121 conftest$ac_exeext conftest.$ac_ext
20123 if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then
20124 INCLUDE_openldap="-I$ires"
20125 LIB_openldap="-L$lres -lldap -llber "
20127 echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
20128 echo "${ECHO_T}headers $ires, libraries $lres" >&6
20131 CFLAGS="$save_CFLAGS"
20135 if test "$found" = yes; then
20137 cat >>confdefs.h <<_ACEOF
20146 echo "$as_me:$LINENO: result: no" >&5
20147 echo "${ECHO_T}no" >&6
20156 # Check whether --with-krb4 or --without-krb4 was given.
20157 if test "${with_krb4+set}" = set; then
20158 withval="$with_krb4"
20162 # Check whether --with-krb4-lib or --without-krb4-lib was given.
20163 if test "${with_krb4_lib+set}" = set; then
20164 withval="$with_krb4_lib"
20165 if test "$withval" = "yes" -o "$withval" = "no"; then
20166 { { echo "$as_me:$LINENO: error: No argument for --with-krb4-lib" >&5
20167 echo "$as_me: error: No argument for --with-krb4-lib" >&2;}
20168 { (exit 1); exit 1; }; }
20169 elif test "X$with_krb4" = "X"; then
20174 # Check whether --with-krb4-include or --without-krb4-include was given.
20175 if test "${with_krb4_include+set}" = set; then
20176 withval="$with_krb4_include"
20177 if test "$withval" = "yes" -o "$withval" = "no"; then
20178 { { echo "$as_me:$LINENO: error: No argument for --with-krb4-include" >&5
20179 echo "$as_me: error: No argument for --with-krb4-include" >&2;}
20180 { (exit 1); exit 1; }; }
20181 elif test "X$with_krb4" = "X"; then
20186 # Check whether --with-krb4-config or --without-krb4-config was given.
20187 if test "${with_krb4_config+set}" = set; then
20188 withval="$with_krb4_config"
20194 echo "$as_me:$LINENO: checking for krb4" >&5
20195 echo $ECHO_N "checking for krb4... $ECHO_C" >&6
20197 case "$with_krb4" in
20198 yes|"") d='/usr/athena' ;;
20200 *) d="$with_krb4" ;;
20206 if test "$with_krb4_include" = ""; then
20207 if test -d "$i/include/krb4"; then
20208 header_dirs="$header_dirs $i/include/krb4"
20210 if test -d "$i/include"; then
20211 header_dirs="$header_dirs $i/include"
20214 if test "$with_krb4_lib" = ""; then
20215 if test -d "$i/lib$abilibdirext"; then
20216 lib_dirs="$lib_dirs $i/lib$abilibdirext"
20221 if test "$with_krb4_include"; then
20222 header_dirs="$with_krb4_include $header_dirs"
20224 if test "$with_krb4_lib"; then
20225 lib_dirs="$with_krb4_lib $lib_dirs"
20228 if test "$with_krb4_config" = ""; then
20229 with_krb4_config='krb4-config'
20235 case "$with_krb4_config" in
20239 krb4_cflags="`$with_krb4_config --cflags 2>&1`"
20240 krb4_libs="`$with_krb4_config --libs 2>&1`"
20245 if test "$with_krb4" != no; then
20246 save_CFLAGS="$CFLAGS"
20248 if test "$krb4_cflags" -a "$krb4_libs"; then
20249 CFLAGS="$krb4_cflags $save_CFLAGS"
20250 LIBS="$krb4_libs $save_LIBS"
20251 cat >conftest.$ac_ext <<_ACEOF
20254 cat confdefs.h >>conftest.$ac_ext
20255 cat >>conftest.$ac_ext <<_ACEOF
20256 /* end confdefs.h. */
20266 rm -f conftest.$ac_objext conftest$ac_exeext
20267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20268 (eval $ac_link) 2>conftest.er1
20270 grep -v '^ *+' conftest.er1 >conftest.err
20272 cat conftest.err >&5
20273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274 (exit $ac_status); } &&
20275 { ac_try='test -z "$ac_c_werror_flag"
20276 || test ! -s conftest.err'
20277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20278 (eval $ac_try) 2>&5
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); }; } &&
20282 { ac_try='test -s conftest$ac_exeext'
20283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20284 (eval $ac_try) 2>&5
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); }; }; then
20289 INCLUDE_krb4="$krb4_cflags"
20290 LIB_krb4="$krb4_libs"
20291 echo "$as_me:$LINENO: result: from $with_krb4_config" >&5
20292 echo "${ECHO_T}from $with_krb4_config" >&6
20295 echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20299 rm -f conftest.err conftest.$ac_objext \
20300 conftest$ac_exeext conftest.$ac_ext
20302 if test "$found" = no; then
20304 for i in $header_dirs; do
20305 CFLAGS="-I$i $save_CFLAGS"
20306 cat >conftest.$ac_ext <<_ACEOF
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h. */
20321 rm -f conftest.$ac_objext
20322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20323 (eval $ac_compile) 2>conftest.er1
20325 grep -v '^ *+' conftest.er1 >conftest.err
20327 cat conftest.err >&5
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); } &&
20330 { ac_try='test -z "$ac_c_werror_flag"
20331 || test ! -s conftest.err'
20332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20333 (eval $ac_try) 2>&5
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); }; } &&
20337 { ac_try='test -s conftest.$ac_objext'
20338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339 (eval $ac_try) 2>&5
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); }; }; then
20345 echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20351 for i in $lib_dirs; do
20352 LIBS="-L$i -lkrb -ldes $save_LIBS"
20353 cat >conftest.$ac_ext <<_ACEOF
20356 cat confdefs.h >>conftest.$ac_ext
20357 cat >>conftest.$ac_ext <<_ACEOF
20358 /* end confdefs.h. */
20368 rm -f conftest.$ac_objext conftest$ac_exeext
20369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20370 (eval $ac_link) 2>conftest.er1
20372 grep -v '^ *+' conftest.er1 >conftest.err
20374 cat conftest.err >&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); } &&
20377 { ac_try='test -z "$ac_c_werror_flag"
20378 || test ! -s conftest.err'
20379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20380 (eval $ac_try) 2>&5
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); }; } &&
20384 { ac_try='test -s conftest$ac_exeext'
20385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20386 (eval $ac_try) 2>&5
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); }; }; then
20392 echo "$as_me: failed program was:" >&5
20393 sed 's/^/| /' conftest.$ac_ext >&5
20396 rm -f conftest.err conftest.$ac_objext \
20397 conftest$ac_exeext conftest.$ac_ext
20399 if test "$ires" -a "$lres" -a "$with_krb4" != "no"; then
20400 INCLUDE_krb4="-I$ires"
20401 LIB_krb4="-L$lres -lkrb -ldes"
20403 echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
20404 echo "${ECHO_T}headers $ires, libraries $lres" >&6
20407 CFLAGS="$save_CFLAGS"
20411 if test "$found" = yes; then
20413 cat >>confdefs.h <<_ACEOF
20422 echo "$as_me:$LINENO: result: no" >&5
20423 echo "${ECHO_T}no" >&6
20431 if test "$with_krb4" != "no"; then
20432 save_CFLAGS="$CFLAGS"
20433 CFLAGS="$CFLAGS $INCLUDE_krb4"
20435 LIBS="$LIB_krb4 $LIBS"
20436 EXTRA_LIB45=lib45.a
20438 echo "$as_me:$LINENO: checking for four valued krb_put_int" >&5
20439 echo $ECHO_N "checking for four valued krb_put_int... $ECHO_C" >&6
20440 if test "${ac_cv_func_krb_put_int_four+set}" = set; then
20441 echo $ECHO_N "(cached) $ECHO_C" >&6
20443 cat >conftest.$ac_ext <<_ACEOF
20446 cat confdefs.h >>conftest.$ac_ext
20447 cat >>conftest.$ac_ext <<_ACEOF
20448 /* end confdefs.h. */
20455 krb_put_int(17, tmp, 4, sizeof(tmp));
20460 rm -f conftest.$ac_objext
20461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20462 (eval $ac_compile) 2>conftest.er1
20464 grep -v '^ *+' conftest.er1 >conftest.err
20466 cat conftest.err >&5
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); } &&
20469 { ac_try='test -z "$ac_c_werror_flag"
20470 || test ! -s conftest.err'
20471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20472 (eval $ac_try) 2>&5
20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 (exit $ac_status); }; } &&
20476 { ac_try='test -s conftest.$ac_objext'
20477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20478 (eval $ac_try) 2>&5
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); }; }; then
20482 ac_cv_func_krb_put_int_four=yes
20484 echo "$as_me: failed program was:" >&5
20485 sed 's/^/| /' conftest.$ac_ext >&5
20487 ac_cv_func_krb_put_int_four=no
20489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20492 echo "$as_me:$LINENO: result: $ac_cv_func_krb_put_int_four" >&5
20493 echo "${ECHO_T}$ac_cv_func_krb_put_int_four" >&6
20494 if test "$ac_cv_func_krb_put_int_four" = yes; then
20496 cat >>confdefs.h <<\_ACEOF
20497 #define HAVE_FOUR_VALUED_KRB_PUT_INT 1
20503 echo "$as_me:$LINENO: checking for KRB_VERIFY_SECURE" >&5
20504 echo $ECHO_N "checking for KRB_VERIFY_SECURE... $ECHO_C" >&6
20505 if test "${ac_cv_func_krb_verify_secure+set}" = set; then
20506 echo $ECHO_N "(cached) $ECHO_C" >&6
20508 cat >conftest.$ac_ext <<_ACEOF
20511 cat confdefs.h >>conftest.$ac_ext
20512 cat >>conftest.$ac_ext <<_ACEOF
20513 /* end confdefs.h. */
20519 int x = KRB_VERIFY_SECURE
20524 rm -f conftest.$ac_objext
20525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20526 (eval $ac_compile) 2>conftest.er1
20528 grep -v '^ *+' conftest.er1 >conftest.err
20530 cat conftest.err >&5
20531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532 (exit $ac_status); } &&
20533 { ac_try='test -z "$ac_c_werror_flag"
20534 || test ! -s conftest.err'
20535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20536 (eval $ac_try) 2>&5
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); }; } &&
20540 { ac_try='test -s conftest.$ac_objext'
20541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20542 (eval $ac_try) 2>&5
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); }; }; then
20546 ac_cv_func_krb_verify_secure=yes
20548 echo "$as_me: failed program was:" >&5
20549 sed 's/^/| /' conftest.$ac_ext >&5
20551 ac_cv_func_krb_verify_secure=no
20553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20556 echo "$as_me:$LINENO: result: $ac_cv_func_krb_verify_secure" >&5
20557 echo "${ECHO_T}$ac_cv_func_krb_verify_secure" >&6
20558 if test "$ac_cv_func_krb_verify_secure" != yes; then
20560 cat >>confdefs.h <<\_ACEOF
20561 #define KRB_VERIFY_SECURE 1
20565 cat >>confdefs.h <<\_ACEOF
20566 #define KRB_VERIFY_SECURE_FAIL 2
20570 echo "$as_me:$LINENO: checking for KRB_VERIFY_NOT_SECURE" >&5
20571 echo $ECHO_N "checking for KRB_VERIFY_NOT_SECURE... $ECHO_C" >&6
20572 if test "${ac_cv_func_krb_verify_not_secure+set}" = set; then
20573 echo $ECHO_N "(cached) $ECHO_C" >&6
20575 cat >conftest.$ac_ext <<_ACEOF
20578 cat confdefs.h >>conftest.$ac_ext
20579 cat >>conftest.$ac_ext <<_ACEOF
20580 /* end confdefs.h. */
20586 int x = KRB_VERIFY_NOT_SECURE
20591 rm -f conftest.$ac_objext
20592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20593 (eval $ac_compile) 2>conftest.er1
20595 grep -v '^ *+' conftest.er1 >conftest.err
20597 cat conftest.err >&5
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); } &&
20600 { ac_try='test -z "$ac_c_werror_flag"
20601 || test ! -s conftest.err'
20602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20603 (eval $ac_try) 2>&5
20605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606 (exit $ac_status); }; } &&
20607 { ac_try='test -s conftest.$ac_objext'
20608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20609 (eval $ac_try) 2>&5
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); }; }; then
20613 ac_cv_func_krb_verify_not_secure=yes
20615 echo "$as_me: failed program was:" >&5
20616 sed 's/^/| /' conftest.$ac_ext >&5
20618 ac_cv_func_krb_verify_not_secure=no
20620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20623 echo "$as_me:$LINENO: result: $ac_cv_func_krb_verify_not_secure" >&5
20624 echo "${ECHO_T}$ac_cv_func_krb_verify_not_secure" >&6
20625 if test "$ac_cv_func_krb_verify_not_secure" != yes; then
20627 cat >>confdefs.h <<\_ACEOF
20628 #define KRB_VERIFY_NOT_SECURE 0
20636 echo "$as_me:$LINENO: checking for krb_enable_debug" >&5
20637 echo $ECHO_N "checking for krb_enable_debug... $ECHO_C" >&6
20638 if test "${ac_cv_funclib_krb_enable_debug+set}" = set; then
20639 echo $ECHO_N "(cached) $ECHO_C" >&6
20642 if eval "test \"\$ac_cv_func_krb_enable_debug\" != yes" ; then
20643 ac_save_LIBS="$LIBS"
20644 for ac_lib in "" ; do
20650 *) ac_lib="-l$ac_lib" ;;
20652 LIBS=" $ac_lib $ac_save_LIBS"
20653 cat >conftest.$ac_ext <<_ACEOF
20656 cat confdefs.h >>conftest.$ac_ext
20657 cat >>conftest.$ac_ext <<_ACEOF
20658 /* end confdefs.h. */
20668 rm -f conftest.$ac_objext conftest$ac_exeext
20669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20670 (eval $ac_link) 2>conftest.er1
20672 grep -v '^ *+' conftest.er1 >conftest.err
20674 cat conftest.err >&5
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); } &&
20677 { ac_try='test -z "$ac_c_werror_flag"
20678 || test ! -s conftest.err'
20679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20680 (eval $ac_try) 2>&5
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); }; } &&
20684 { ac_try='test -s conftest$ac_exeext'
20685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686 (eval $ac_try) 2>&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; }; then
20690 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_enable_debug=$ac_lib; else ac_cv_funclib_krb_enable_debug=yes; fi";break
20692 echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20696 rm -f conftest.err conftest.$ac_objext \
20697 conftest$ac_exeext conftest.$ac_ext
20699 eval "ac_cv_funclib_krb_enable_debug=\${ac_cv_funclib_krb_enable_debug-no}"
20700 LIBS="$ac_save_LIBS"
20706 eval "ac_res=\$ac_cv_funclib_krb_enable_debug"
20710 for ac_func in krb_enable_debug
20712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20713 echo "$as_me:$LINENO: checking for $ac_func" >&5
20714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20715 if eval "test \"\${$as_ac_var+set}\" = set"; then
20716 echo $ECHO_N "(cached) $ECHO_C" >&6
20718 cat >conftest.$ac_ext <<_ACEOF
20721 cat confdefs.h >>conftest.$ac_ext
20722 cat >>conftest.$ac_ext <<_ACEOF
20723 /* end confdefs.h. */
20724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20726 #define $ac_func innocuous_$ac_func
20728 /* System header to define __stub macros and hopefully few prototypes,
20729 which can conflict with char $ac_func (); below.
20730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20731 <limits.h> exists even on freestanding compilers. */
20734 # include <limits.h>
20736 # include <assert.h>
20741 /* Override any gcc2 internal prototype to avoid an error. */
20746 /* We use char because int might match the return type of a gcc2
20747 builtin and then its argument prototype would still apply. */
20749 /* The GNU C library defines this for functions which it implements
20750 to always fail with ENOSYS. Some functions are actually named
20751 something starting with __ and the normal name is an alias. */
20752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20755 char (*f) () = $ac_func;
20764 return f != $ac_func;
20769 rm -f conftest.$ac_objext conftest$ac_exeext
20770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20771 (eval $ac_link) 2>conftest.er1
20773 grep -v '^ *+' conftest.er1 >conftest.err
20775 cat conftest.err >&5
20776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777 (exit $ac_status); } &&
20778 { ac_try='test -z "$ac_c_werror_flag"
20779 || test ! -s conftest.err'
20780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20781 (eval $ac_try) 2>&5
20783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784 (exit $ac_status); }; } &&
20785 { ac_try='test -s conftest$ac_exeext'
20786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20787 (eval $ac_try) 2>&5
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); }; }; then
20791 eval "$as_ac_var=yes"
20793 echo "$as_me: failed program was:" >&5
20794 sed 's/^/| /' conftest.$ac_ext >&5
20796 eval "$as_ac_var=no"
20798 rm -f conftest.err conftest.$ac_objext \
20799 conftest$ac_exeext conftest.$ac_ext
20801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20803 if test `eval echo '${'$as_ac_var'}'` = yes; then
20804 cat >>confdefs.h <<_ACEOF
20805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20813 eval "ac_tr_func=HAVE_`echo krb_enable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
20814 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
20815 eval "LIB_krb_enable_debug=$ac_res"
20819 eval "ac_cv_func_krb_enable_debug=yes"
20820 eval "LIB_krb_enable_debug="
20821 cat >>confdefs.h <<_ACEOF
20822 #define $ac_tr_func 1
20825 echo "$as_me:$LINENO: result: yes" >&5
20826 echo "${ECHO_T}yes" >&6
20829 eval "ac_cv_func_krb_enable_debug=no"
20830 eval "LIB_krb_enable_debug="
20831 echo "$as_me:$LINENO: result: no" >&5
20832 echo "${ECHO_T}no" >&6
20835 eval "ac_cv_func_krb_enable_debug=yes"
20836 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
20837 cat >>confdefs.h <<_ACEOF
20838 #define $ac_tr_func 1
20841 cat >>confdefs.h <<_ACEOF
20842 #define $ac_tr_lib 1
20845 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
20846 echo "${ECHO_T}yes, in $ac_res" >&6
20851 if test -n "$LIB_krb_enable_debug"; then
20852 LIBS="$LIB_krb_enable_debug $LIBS"
20859 echo "$as_me:$LINENO: checking for krb_disable_debug" >&5
20860 echo $ECHO_N "checking for krb_disable_debug... $ECHO_C" >&6
20861 if test "${ac_cv_funclib_krb_disable_debug+set}" = set; then
20862 echo $ECHO_N "(cached) $ECHO_C" >&6
20865 if eval "test \"\$ac_cv_func_krb_disable_debug\" != yes" ; then
20866 ac_save_LIBS="$LIBS"
20867 for ac_lib in "" ; do
20873 *) ac_lib="-l$ac_lib" ;;
20875 LIBS=" $ac_lib $ac_save_LIBS"
20876 cat >conftest.$ac_ext <<_ACEOF
20879 cat confdefs.h >>conftest.$ac_ext
20880 cat >>conftest.$ac_ext <<_ACEOF
20881 /* end confdefs.h. */
20886 krb_disable_debug()
20891 rm -f conftest.$ac_objext conftest$ac_exeext
20892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20893 (eval $ac_link) 2>conftest.er1
20895 grep -v '^ *+' conftest.er1 >conftest.err
20897 cat conftest.err >&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } &&
20900 { ac_try='test -z "$ac_c_werror_flag"
20901 || test ! -s conftest.err'
20902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20903 (eval $ac_try) 2>&5
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); }; } &&
20907 { ac_try='test -s conftest$ac_exeext'
20908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20909 (eval $ac_try) 2>&5
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); }; }; then
20913 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_disable_debug=$ac_lib; else ac_cv_funclib_krb_disable_debug=yes; fi";break
20915 echo "$as_me: failed program was:" >&5
20916 sed 's/^/| /' conftest.$ac_ext >&5
20919 rm -f conftest.err conftest.$ac_objext \
20920 conftest$ac_exeext conftest.$ac_ext
20922 eval "ac_cv_funclib_krb_disable_debug=\${ac_cv_funclib_krb_disable_debug-no}"
20923 LIBS="$ac_save_LIBS"
20929 eval "ac_res=\$ac_cv_funclib_krb_disable_debug"
20933 for ac_func in krb_disable_debug
20935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20936 echo "$as_me:$LINENO: checking for $ac_func" >&5
20937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20938 if eval "test \"\${$as_ac_var+set}\" = set"; then
20939 echo $ECHO_N "(cached) $ECHO_C" >&6
20941 cat >conftest.$ac_ext <<_ACEOF
20944 cat confdefs.h >>conftest.$ac_ext
20945 cat >>conftest.$ac_ext <<_ACEOF
20946 /* end confdefs.h. */
20947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20949 #define $ac_func innocuous_$ac_func
20951 /* System header to define __stub macros and hopefully few prototypes,
20952 which can conflict with char $ac_func (); below.
20953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20954 <limits.h> exists even on freestanding compilers. */
20957 # include <limits.h>
20959 # include <assert.h>
20964 /* Override any gcc2 internal prototype to avoid an error. */
20969 /* We use char because int might match the return type of a gcc2
20970 builtin and then its argument prototype would still apply. */
20972 /* The GNU C library defines this for functions which it implements
20973 to always fail with ENOSYS. Some functions are actually named
20974 something starting with __ and the normal name is an alias. */
20975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20978 char (*f) () = $ac_func;
20987 return f != $ac_func;
20992 rm -f conftest.$ac_objext conftest$ac_exeext
20993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20994 (eval $ac_link) 2>conftest.er1
20996 grep -v '^ *+' conftest.er1 >conftest.err
20998 cat conftest.err >&5
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); } &&
21001 { ac_try='test -z "$ac_c_werror_flag"
21002 || test ! -s conftest.err'
21003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004 (eval $ac_try) 2>&5
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); }; } &&
21008 { ac_try='test -s conftest$ac_exeext'
21009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010 (eval $ac_try) 2>&5
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); }; }; then
21014 eval "$as_ac_var=yes"
21016 echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21019 eval "$as_ac_var=no"
21021 rm -f conftest.err conftest.$ac_objext \
21022 conftest$ac_exeext conftest.$ac_ext
21024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21025 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21026 if test `eval echo '${'$as_ac_var'}'` = yes; then
21027 cat >>confdefs.h <<_ACEOF
21028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21035 # krb_disable_debug
21036 eval "ac_tr_func=HAVE_`echo krb_disable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21037 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21038 eval "LIB_krb_disable_debug=$ac_res"
21042 eval "ac_cv_func_krb_disable_debug=yes"
21043 eval "LIB_krb_disable_debug="
21044 cat >>confdefs.h <<_ACEOF
21045 #define $ac_tr_func 1
21048 echo "$as_me:$LINENO: result: yes" >&5
21049 echo "${ECHO_T}yes" >&6
21052 eval "ac_cv_func_krb_disable_debug=no"
21053 eval "LIB_krb_disable_debug="
21054 echo "$as_me:$LINENO: result: no" >&5
21055 echo "${ECHO_T}no" >&6
21058 eval "ac_cv_func_krb_disable_debug=yes"
21059 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
21060 cat >>confdefs.h <<_ACEOF
21061 #define $ac_tr_func 1
21064 cat >>confdefs.h <<_ACEOF
21065 #define $ac_tr_lib 1
21068 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
21069 echo "${ECHO_T}yes, in $ac_res" >&6
21074 if test -n "$LIB_krb_disable_debug"; then
21075 LIBS="$LIB_krb_disable_debug $LIBS"
21082 echo "$as_me:$LINENO: checking for krb_get_our_ip_for_realm" >&5
21083 echo $ECHO_N "checking for krb_get_our_ip_for_realm... $ECHO_C" >&6
21084 if test "${ac_cv_funclib_krb_get_our_ip_for_realm+set}" = set; then
21085 echo $ECHO_N "(cached) $ECHO_C" >&6
21088 if eval "test \"\$ac_cv_func_krb_get_our_ip_for_realm\" != yes" ; then
21089 ac_save_LIBS="$LIBS"
21090 for ac_lib in "" ; do
21096 *) ac_lib="-l$ac_lib" ;;
21098 LIBS=" $ac_lib $ac_save_LIBS"
21099 cat >conftest.$ac_ext <<_ACEOF
21102 cat confdefs.h >>conftest.$ac_ext
21103 cat >>conftest.$ac_ext <<_ACEOF
21104 /* end confdefs.h. */
21109 krb_get_our_ip_for_realm()
21114 rm -f conftest.$ac_objext conftest$ac_exeext
21115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21116 (eval $ac_link) 2>conftest.er1
21118 grep -v '^ *+' conftest.er1 >conftest.err
21120 cat conftest.err >&5
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); } &&
21123 { ac_try='test -z "$ac_c_werror_flag"
21124 || test ! -s conftest.err'
21125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21126 (eval $ac_try) 2>&5
21128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); }; } &&
21130 { ac_try='test -s conftest$ac_exeext'
21131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21132 (eval $ac_try) 2>&5
21134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135 (exit $ac_status); }; }; then
21136 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_our_ip_for_realm=$ac_lib; else ac_cv_funclib_krb_get_our_ip_for_realm=yes; fi";break
21138 echo "$as_me: failed program was:" >&5
21139 sed 's/^/| /' conftest.$ac_ext >&5
21142 rm -f conftest.err conftest.$ac_objext \
21143 conftest$ac_exeext conftest.$ac_ext
21145 eval "ac_cv_funclib_krb_get_our_ip_for_realm=\${ac_cv_funclib_krb_get_our_ip_for_realm-no}"
21146 LIBS="$ac_save_LIBS"
21152 eval "ac_res=\$ac_cv_funclib_krb_get_our_ip_for_realm"
21156 for ac_func in krb_get_our_ip_for_realm
21158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21159 echo "$as_me:$LINENO: checking for $ac_func" >&5
21160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21161 if eval "test \"\${$as_ac_var+set}\" = set"; then
21162 echo $ECHO_N "(cached) $ECHO_C" >&6
21164 cat >conftest.$ac_ext <<_ACEOF
21167 cat confdefs.h >>conftest.$ac_ext
21168 cat >>conftest.$ac_ext <<_ACEOF
21169 /* end confdefs.h. */
21170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21172 #define $ac_func innocuous_$ac_func
21174 /* System header to define __stub macros and hopefully few prototypes,
21175 which can conflict with char $ac_func (); below.
21176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21177 <limits.h> exists even on freestanding compilers. */
21180 # include <limits.h>
21182 # include <assert.h>
21187 /* Override any gcc2 internal prototype to avoid an error. */
21192 /* We use char because int might match the return type of a gcc2
21193 builtin and then its argument prototype would still apply. */
21195 /* The GNU C library defines this for functions which it implements
21196 to always fail with ENOSYS. Some functions are actually named
21197 something starting with __ and the normal name is an alias. */
21198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21201 char (*f) () = $ac_func;
21210 return f != $ac_func;
21215 rm -f conftest.$ac_objext conftest$ac_exeext
21216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21217 (eval $ac_link) 2>conftest.er1
21219 grep -v '^ *+' conftest.er1 >conftest.err
21221 cat conftest.err >&5
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); } &&
21224 { ac_try='test -z "$ac_c_werror_flag"
21225 || test ! -s conftest.err'
21226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21227 (eval $ac_try) 2>&5
21229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230 (exit $ac_status); }; } &&
21231 { ac_try='test -s conftest$ac_exeext'
21232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21233 (eval $ac_try) 2>&5
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); }; }; then
21237 eval "$as_ac_var=yes"
21239 echo "$as_me: failed program was:" >&5
21240 sed 's/^/| /' conftest.$ac_ext >&5
21242 eval "$as_ac_var=no"
21244 rm -f conftest.err conftest.$ac_objext \
21245 conftest$ac_exeext conftest.$ac_ext
21247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21249 if test `eval echo '${'$as_ac_var'}'` = yes; then
21250 cat >>confdefs.h <<_ACEOF
21251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21258 # krb_get_our_ip_for_realm
21259 eval "ac_tr_func=HAVE_`echo krb_get_our_ip_for_realm | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21260 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21261 eval "LIB_krb_get_our_ip_for_realm=$ac_res"
21265 eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
21266 eval "LIB_krb_get_our_ip_for_realm="
21267 cat >>confdefs.h <<_ACEOF
21268 #define $ac_tr_func 1
21271 echo "$as_me:$LINENO: result: yes" >&5
21272 echo "${ECHO_T}yes" >&6
21275 eval "ac_cv_func_krb_get_our_ip_for_realm=no"
21276 eval "LIB_krb_get_our_ip_for_realm="
21277 echo "$as_me:$LINENO: result: no" >&5
21278 echo "${ECHO_T}no" >&6
21281 eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
21282 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
21283 cat >>confdefs.h <<_ACEOF
21284 #define $ac_tr_func 1
21287 cat >>confdefs.h <<_ACEOF
21288 #define $ac_tr_lib 1
21291 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
21292 echo "${ECHO_T}yes, in $ac_res" >&6
21297 if test -n "$LIB_krb_get_our_ip_for_realm"; then
21298 LIBS="$LIB_krb_get_our_ip_for_realm $LIBS"
21305 echo "$as_me:$LINENO: checking for krb_kdctimeofday" >&5
21306 echo $ECHO_N "checking for krb_kdctimeofday... $ECHO_C" >&6
21307 if test "${ac_cv_funclib_krb_kdctimeofday+set}" = set; then
21308 echo $ECHO_N "(cached) $ECHO_C" >&6
21311 if eval "test \"\$ac_cv_func_krb_kdctimeofday\" != yes" ; then
21312 ac_save_LIBS="$LIBS"
21313 for ac_lib in "" ; do
21319 *) ac_lib="-l$ac_lib" ;;
21321 LIBS=" $ac_lib $ac_save_LIBS"
21322 cat >conftest.$ac_ext <<_ACEOF
21325 cat confdefs.h >>conftest.$ac_ext
21326 cat >>conftest.$ac_ext <<_ACEOF
21327 /* end confdefs.h. */
21337 rm -f conftest.$ac_objext conftest$ac_exeext
21338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21339 (eval $ac_link) 2>conftest.er1
21341 grep -v '^ *+' conftest.er1 >conftest.err
21343 cat conftest.err >&5
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); } &&
21346 { ac_try='test -z "$ac_c_werror_flag"
21347 || test ! -s conftest.err'
21348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21349 (eval $ac_try) 2>&5
21351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); }; } &&
21353 { ac_try='test -s conftest$ac_exeext'
21354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21355 (eval $ac_try) 2>&5
21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); }; }; then
21359 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_kdctimeofday=$ac_lib; else ac_cv_funclib_krb_kdctimeofday=yes; fi";break
21361 echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.$ac_ext >&5
21365 rm -f conftest.err conftest.$ac_objext \
21366 conftest$ac_exeext conftest.$ac_ext
21368 eval "ac_cv_funclib_krb_kdctimeofday=\${ac_cv_funclib_krb_kdctimeofday-no}"
21369 LIBS="$ac_save_LIBS"
21375 eval "ac_res=\$ac_cv_funclib_krb_kdctimeofday"
21379 for ac_func in krb_kdctimeofday
21381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21382 echo "$as_me:$LINENO: checking for $ac_func" >&5
21383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21384 if eval "test \"\${$as_ac_var+set}\" = set"; then
21385 echo $ECHO_N "(cached) $ECHO_C" >&6
21387 cat >conftest.$ac_ext <<_ACEOF
21390 cat confdefs.h >>conftest.$ac_ext
21391 cat >>conftest.$ac_ext <<_ACEOF
21392 /* end confdefs.h. */
21393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21395 #define $ac_func innocuous_$ac_func
21397 /* System header to define __stub macros and hopefully few prototypes,
21398 which can conflict with char $ac_func (); below.
21399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21400 <limits.h> exists even on freestanding compilers. */
21403 # include <limits.h>
21405 # include <assert.h>
21410 /* Override any gcc2 internal prototype to avoid an error. */
21415 /* We use char because int might match the return type of a gcc2
21416 builtin and then its argument prototype would still apply. */
21418 /* The GNU C library defines this for functions which it implements
21419 to always fail with ENOSYS. Some functions are actually named
21420 something starting with __ and the normal name is an alias. */
21421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21424 char (*f) () = $ac_func;
21433 return f != $ac_func;
21438 rm -f conftest.$ac_objext conftest$ac_exeext
21439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21440 (eval $ac_link) 2>conftest.er1
21442 grep -v '^ *+' conftest.er1 >conftest.err
21444 cat conftest.err >&5
21445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); } &&
21447 { ac_try='test -z "$ac_c_werror_flag"
21448 || test ! -s conftest.err'
21449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450 (eval $ac_try) 2>&5
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); }; } &&
21454 { ac_try='test -s conftest$ac_exeext'
21455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21456 (eval $ac_try) 2>&5
21458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459 (exit $ac_status); }; }; then
21460 eval "$as_ac_var=yes"
21462 echo "$as_me: failed program was:" >&5
21463 sed 's/^/| /' conftest.$ac_ext >&5
21465 eval "$as_ac_var=no"
21467 rm -f conftest.err conftest.$ac_objext \
21468 conftest$ac_exeext conftest.$ac_ext
21470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21471 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21472 if test `eval echo '${'$as_ac_var'}'` = yes; then
21473 cat >>confdefs.h <<_ACEOF
21474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21482 eval "ac_tr_func=HAVE_`echo krb_kdctimeofday | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21483 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21484 eval "LIB_krb_kdctimeofday=$ac_res"
21488 eval "ac_cv_func_krb_kdctimeofday=yes"
21489 eval "LIB_krb_kdctimeofday="
21490 cat >>confdefs.h <<_ACEOF
21491 #define $ac_tr_func 1
21494 echo "$as_me:$LINENO: result: yes" >&5
21495 echo "${ECHO_T}yes" >&6
21498 eval "ac_cv_func_krb_kdctimeofday=no"
21499 eval "LIB_krb_kdctimeofday="
21500 echo "$as_me:$LINENO: result: no" >&5
21501 echo "${ECHO_T}no" >&6
21504 eval "ac_cv_func_krb_kdctimeofday=yes"
21505 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
21506 cat >>confdefs.h <<_ACEOF
21507 #define $ac_tr_func 1
21510 cat >>confdefs.h <<_ACEOF
21511 #define $ac_tr_lib 1
21514 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
21515 echo "${ECHO_T}yes, in $ac_res" >&6
21520 if test -n "$LIB_krb_kdctimeofday"; then
21521 LIBS="$LIB_krb_kdctimeofday $LIBS"
21530 echo "$as_me:$LINENO: checking for krb_get_kdc_time_diff" >&5
21531 echo $ECHO_N "checking for krb_get_kdc_time_diff... $ECHO_C" >&6
21532 if test "${ac_cv_funclib_krb_get_kdc_time_diff+set}" = set; then
21533 echo $ECHO_N "(cached) $ECHO_C" >&6
21536 if eval "test \"\$ac_cv_func_krb_get_kdc_time_diff\" != yes" ; then
21537 ac_save_LIBS="$LIBS"
21538 for ac_lib in "" ; do
21544 *) ac_lib="-l$ac_lib" ;;
21546 LIBS=" $ac_lib $ac_save_LIBS"
21547 cat >conftest.$ac_ext <<_ACEOF
21550 cat confdefs.h >>conftest.$ac_ext
21551 cat >>conftest.$ac_ext <<_ACEOF
21552 /* end confdefs.h. */
21557 krb_get_kdc_time_diff()
21562 rm -f conftest.$ac_objext conftest$ac_exeext
21563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21564 (eval $ac_link) 2>conftest.er1
21566 grep -v '^ *+' conftest.er1 >conftest.err
21568 cat conftest.err >&5
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); } &&
21571 { ac_try='test -z "$ac_c_werror_flag"
21572 || test ! -s conftest.err'
21573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21574 (eval $ac_try) 2>&5
21576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); }; } &&
21578 { ac_try='test -s conftest$ac_exeext'
21579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21580 (eval $ac_try) 2>&5
21582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583 (exit $ac_status); }; }; then
21584 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_kdc_time_diff=$ac_lib; else ac_cv_funclib_krb_get_kdc_time_diff=yes; fi";break
21586 echo "$as_me: failed program was:" >&5
21587 sed 's/^/| /' conftest.$ac_ext >&5
21590 rm -f conftest.err conftest.$ac_objext \
21591 conftest$ac_exeext conftest.$ac_ext
21593 eval "ac_cv_funclib_krb_get_kdc_time_diff=\${ac_cv_funclib_krb_get_kdc_time_diff-no}"
21594 LIBS="$ac_save_LIBS"
21600 eval "ac_res=\$ac_cv_funclib_krb_get_kdc_time_diff"
21604 for ac_func in krb_get_kdc_time_diff
21606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21607 echo "$as_me:$LINENO: checking for $ac_func" >&5
21608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21609 if eval "test \"\${$as_ac_var+set}\" = set"; then
21610 echo $ECHO_N "(cached) $ECHO_C" >&6
21612 cat >conftest.$ac_ext <<_ACEOF
21615 cat confdefs.h >>conftest.$ac_ext
21616 cat >>conftest.$ac_ext <<_ACEOF
21617 /* end confdefs.h. */
21618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21620 #define $ac_func innocuous_$ac_func
21622 /* System header to define __stub macros and hopefully few prototypes,
21623 which can conflict with char $ac_func (); below.
21624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21625 <limits.h> exists even on freestanding compilers. */
21628 # include <limits.h>
21630 # include <assert.h>
21635 /* Override any gcc2 internal prototype to avoid an error. */
21640 /* We use char because int might match the return type of a gcc2
21641 builtin and then its argument prototype would still apply. */
21643 /* The GNU C library defines this for functions which it implements
21644 to always fail with ENOSYS. Some functions are actually named
21645 something starting with __ and the normal name is an alias. */
21646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21649 char (*f) () = $ac_func;
21658 return f != $ac_func;
21663 rm -f conftest.$ac_objext conftest$ac_exeext
21664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21665 (eval $ac_link) 2>conftest.er1
21667 grep -v '^ *+' conftest.er1 >conftest.err
21669 cat conftest.err >&5
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); } &&
21672 { ac_try='test -z "$ac_c_werror_flag"
21673 || test ! -s conftest.err'
21674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21675 (eval $ac_try) 2>&5
21677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678 (exit $ac_status); }; } &&
21679 { ac_try='test -s conftest$ac_exeext'
21680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21681 (eval $ac_try) 2>&5
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); }; }; then
21685 eval "$as_ac_var=yes"
21687 echo "$as_me: failed program was:" >&5
21688 sed 's/^/| /' conftest.$ac_ext >&5
21690 eval "$as_ac_var=no"
21692 rm -f conftest.err conftest.$ac_objext \
21693 conftest$ac_exeext conftest.$ac_ext
21695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21697 if test `eval echo '${'$as_ac_var'}'` = yes; then
21698 cat >>confdefs.h <<_ACEOF
21699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21706 # krb_get_kdc_time_diff
21707 eval "ac_tr_func=HAVE_`echo krb_get_kdc_time_diff | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21708 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21709 eval "LIB_krb_get_kdc_time_diff=$ac_res"
21713 eval "ac_cv_func_krb_get_kdc_time_diff=yes"
21714 eval "LIB_krb_get_kdc_time_diff="
21715 cat >>confdefs.h <<_ACEOF
21716 #define $ac_tr_func 1
21719 echo "$as_me:$LINENO: result: yes" >&5
21720 echo "${ECHO_T}yes" >&6
21723 eval "ac_cv_func_krb_get_kdc_time_diff=no"
21724 eval "LIB_krb_get_kdc_time_diff="
21725 echo "$as_me:$LINENO: result: no" >&5
21726 echo "${ECHO_T}no" >&6
21729 eval "ac_cv_func_krb_get_kdc_time_diff=yes"
21730 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
21731 cat >>confdefs.h <<_ACEOF
21732 #define $ac_tr_func 1
21735 cat >>confdefs.h <<_ACEOF
21736 #define $ac_tr_lib 1
21739 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
21740 echo "${ECHO_T}yes, in $ac_res" >&6
21745 if test -n "$LIB_krb_get_kdc_time_diff"; then
21746 LIBS="$LIB_krb_get_kdc_time_diff $LIBS"
21751 echo "$as_me:$LINENO: checking for KRB_SENDAUTH_VERS" >&5
21752 echo $ECHO_N "checking for KRB_SENDAUTH_VERS... $ECHO_C" >&6
21753 if test "${ac_cv_func_krb_sendauth_vers+set}" = set; then
21754 echo $ECHO_N "(cached) $ECHO_C" >&6
21756 cat >conftest.$ac_ext <<_ACEOF
21759 cat confdefs.h >>conftest.$ac_ext
21760 cat >>conftest.$ac_ext <<_ACEOF
21761 /* end confdefs.h. */
21768 char *x = KRB_SENDAUTH_VERS
21773 rm -f conftest.$ac_objext
21774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21775 (eval $ac_compile) 2>conftest.er1
21777 grep -v '^ *+' conftest.er1 >conftest.err
21779 cat conftest.err >&5
21780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781 (exit $ac_status); } &&
21782 { ac_try='test -z "$ac_c_werror_flag"
21783 || test ! -s conftest.err'
21784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21785 (eval $ac_try) 2>&5
21787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788 (exit $ac_status); }; } &&
21789 { ac_try='test -s conftest.$ac_objext'
21790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21791 (eval $ac_try) 2>&5
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); }; }; then
21795 ac_cv_func_krb_sendauth_vers=yes
21797 echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21800 ac_cv_func_krb_sendauth_vers=no
21802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21805 echo "$as_me:$LINENO: result: $ac_cv_func_krb_sendauth_vers" >&5
21806 echo "${ECHO_T}$ac_cv_func_krb_sendauth_vers" >&6
21807 if test "$ac_cv_func_krb_sendauth_vers" != yes; then
21809 cat >>confdefs.h <<\_ACEOF
21810 #define KRB_SENDAUTH_VERS "AUTHV0.1"
21814 echo "$as_me:$LINENO: checking for krb_mk_req with const arguments" >&5
21815 echo $ECHO_N "checking for krb_mk_req with const arguments... $ECHO_C" >&6
21816 if test "${ac_cv_func_krb_mk_req_const+set}" = set; then
21817 echo $ECHO_N "(cached) $ECHO_C" >&6
21819 cat >conftest.$ac_ext <<_ACEOF
21822 cat confdefs.h >>conftest.$ac_ext
21823 cat >>conftest.$ac_ext <<_ACEOF
21824 /* end confdefs.h. */
21826 int krb_mk_req(KTEXT a, const char *s, const char *i,
21827 const char *r, int32_t checksum)
21837 rm -f conftest.$ac_objext
21838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21839 (eval $ac_compile) 2>conftest.er1
21841 grep -v '^ *+' conftest.er1 >conftest.err
21843 cat conftest.err >&5
21844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21845 (exit $ac_status); } &&
21846 { ac_try='test -z "$ac_c_werror_flag"
21847 || test ! -s conftest.err'
21848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21849 (eval $ac_try) 2>&5
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); }; } &&
21853 { ac_try='test -s conftest.$ac_objext'
21854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21855 (eval $ac_try) 2>&5
21857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858 (exit $ac_status); }; }; then
21859 ac_cv_func_krb_mk_req_const=yes
21861 echo "$as_me: failed program was:" >&5
21862 sed 's/^/| /' conftest.$ac_ext >&5
21864 ac_cv_func_krb_mk_req_const=no
21866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21869 echo "$as_me:$LINENO: result: $ac_cv_func_krb_mk_req_const" >&5
21870 echo "${ECHO_T}$ac_cv_func_krb_mk_req_const" >&6
21871 if test "$ac_cv_func_krb_mk_req_const" = "yes"; then
21873 cat >>confdefs.h <<\_ACEOF
21874 #define KRB_MK_REQ_CONST 1
21880 CFLAGS="$save_CFLAGS"
21881 LIB_kdb="-lkdb -lkrb"
21885 if test "$with_krb4" != "no"; then
21906 do_roken_rename_TRUE=
21907 do_roken_rename_FALSE='#'
21909 do_roken_rename_TRUE='#'
21910 do_roken_rename_FALSE=
21915 cat >>confdefs.h <<\_ACEOF
21923 # Check whether --with-openssl or --without-openssl was given.
21924 if test "${with_openssl+set}" = set; then
21925 withval="$with_openssl"
21930 # Check whether --with-openssl-lib or --without-openssl-lib was given.
21931 if test "${with_openssl_lib+set}" = set; then
21932 withval="$with_openssl_lib"
21933 if test "$withval" = "yes" -o "$withval" = "no"; then
21934 { { echo "$as_me:$LINENO: error: No argument for --with-openssl-lib" >&5
21935 echo "$as_me: error: No argument for --with-openssl-lib" >&2;}
21936 { (exit 1); exit 1; }; }
21937 elif test "X$with_openssl" = "X"; then
21943 # Check whether --with-openssl-include or --without-openssl-include was given.
21944 if test "${with_openssl_include+set}" = set; then
21945 withval="$with_openssl_include"
21946 if test "$withval" = "yes" -o "$withval" = "no"; then
21947 { { echo "$as_me:$LINENO: error: No argument for --with-openssl-include" >&5
21948 echo "$as_me: error: No argument for --with-openssl-include" >&2;}
21949 { (exit 1); exit 1; }; }
21950 elif test "X$with_openssl" = "X"; then
21955 case "$with_openssl" in
21959 *) if test "$with_openssl_include" = ""; then
21960 with_openssl_include="$with_openssl/include"
21962 if test "$with_openssl_lib" = ""; then
21963 with_openssl_lib="$with_openssl/lib$abilibdirext"
21971 echo "$as_me:$LINENO: checking for crypto library" >&5
21972 echo $ECHO_N "checking for crypto library... $ECHO_C" >&6
21977 if test "$crypto_lib" = "unknown" -a "$with_krb4" != "no"; then
21978 save_CPPFLAGS="$CPPFLAGS"
21982 for i in $LIB_krb4; do
21984 -L*) cdirs="$cdirs $i";;
21985 -l*) clibs="$clibs $i";;
21990 for i in $INCLUDE_krb4; do
21991 CFLAGS="-DHAVE_OPENSSL $i $save_CFLAGS"
21992 for j in $cdirs; do
21993 for k in $clibs; do
21994 LIBS="$j $k $save_LIBS"
21995 cat >conftest.$ac_ext <<_ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h. */
22002 #undef KRB5 /* makes md4.h et al unhappy */
22003 #ifdef HAVE_OPENSSL
22004 #include <openssl/md4.h>
22005 #include <openssl/md5.h>
22006 #include <openssl/sha.h>
22007 #define OPENSSL_DES_LIBDES_COMPATIBILITY
22008 #include <openssl/des.h>
22009 #include <openssl/rc4.h>
22010 #include <openssl/rand.h>
22018 #ifdef OLD_HASH_NAMES
22019 typedef struct md4 MD4_CTX;
22020 #define MD4_Init(C) md4_init((C))
22021 #define MD4_Update(C, D, L) md4_update((C), (D), (L))
22022 #define MD4_Final(D, C) md4_finito((C), (D))
22023 typedef struct md5 MD5_CTX;
22024 #define MD5_Init(C) md5_init((C))
22025 #define MD5_Update(C, D, L) md5_update((C), (D), (L))
22026 #define MD5_Final(D, C) md5_finito((C), (D))
22027 typedef struct sha SHA_CTX;
22028 #define SHA1_Init(C) sha_init((C))
22029 #define SHA1_Update(C, D, L) sha_update((C), (D), (L))
22030 #define SHA1_Final(D, C) sha_finito((C), (D))
22037 void *schedule = 0;
22045 #ifdef HAVE_OPENSSL
22049 des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
22055 rm -f conftest.$ac_objext conftest$ac_exeext
22056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22057 (eval $ac_link) 2>conftest.er1
22059 grep -v '^ *+' conftest.er1 >conftest.err
22061 cat conftest.err >&5
22062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063 (exit $ac_status); } &&
22064 { ac_try='test -z "$ac_c_werror_flag"
22065 || test ! -s conftest.err'
22066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22067 (eval $ac_try) 2>&5
22069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070 (exit $ac_status); }; } &&
22071 { ac_try='test -s conftest$ac_exeext'
22072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22073 (eval $ac_try) 2>&5
22075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076 (exit $ac_status); }; }; then
22077 openssl=yes ires="$i" lres="$j $k"; break 3
22079 echo "$as_me: failed program was:" >&5
22080 sed 's/^/| /' conftest.$ac_ext >&5
22083 rm -f conftest.err conftest.$ac_objext \
22084 conftest$ac_exeext conftest.$ac_ext
22087 CFLAGS="$i $save_CFLAGS"
22088 for j in $cdirs; do
22089 for k in $clibs; do
22090 LIBS="$j $k $save_LIBS"
22091 cat >conftest.$ac_ext <<_ACEOF
22094 cat confdefs.h >>conftest.$ac_ext
22095 cat >>conftest.$ac_ext <<_ACEOF
22096 /* end confdefs.h. */
22098 #undef KRB5 /* makes md4.h et al unhappy */
22099 #ifdef HAVE_OPENSSL
22100 #include <openssl/md4.h>
22101 #include <openssl/md5.h>
22102 #include <openssl/sha.h>
22103 #define OPENSSL_DES_LIBDES_COMPATIBILITY
22104 #include <openssl/des.h>
22105 #include <openssl/rc4.h>
22106 #include <openssl/rand.h>
22114 #ifdef OLD_HASH_NAMES
22115 typedef struct md4 MD4_CTX;
22116 #define MD4_Init(C) md4_init((C))
22117 #define MD4_Update(C, D, L) md4_update((C), (D), (L))
22118 #define MD4_Final(D, C) md4_finito((C), (D))
22119 typedef struct md5 MD5_CTX;
22120 #define MD5_Init(C) md5_init((C))
22121 #define MD5_Update(C, D, L) md5_update((C), (D), (L))
22122 #define MD5_Final(D, C) md5_finito((C), (D))
22123 typedef struct sha SHA_CTX;
22124 #define SHA1_Init(C) sha_init((C))
22125 #define SHA1_Update(C, D, L) sha_update((C), (D), (L))
22126 #define SHA1_Final(D, C) sha_finito((C), (D))
22133 void *schedule = 0;
22141 #ifdef HAVE_OPENSSL
22145 des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
22151 rm -f conftest.$ac_objext conftest$ac_exeext
22152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22153 (eval $ac_link) 2>conftest.er1
22155 grep -v '^ *+' conftest.er1 >conftest.err
22157 cat conftest.err >&5
22158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159 (exit $ac_status); } &&
22160 { ac_try='test -z "$ac_c_werror_flag"
22161 || test ! -s conftest.err'
22162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22163 (eval $ac_try) 2>&5
22165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166 (exit $ac_status); }; } &&
22167 { ac_try='test -s conftest$ac_exeext'
22168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22169 (eval $ac_try) 2>&5
22171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); }; }; then
22173 openssl=no ires="$i" lres="$j $k"; break 3
22175 echo "$as_me: failed program was:" >&5
22176 sed 's/^/| /' conftest.$ac_ext >&5
22179 rm -f conftest.err conftest.$ac_objext \
22180 conftest$ac_exeext conftest.$ac_ext
22183 CFLAGS="-DHAVE_OLD_HASH_NAMES $i $save_CFLAGS"
22184 for j in $cdirs; do
22185 for k in $clibs; do
22186 LIBS="$j $k $save_LIBS"
22187 cat >conftest.$ac_ext <<_ACEOF
22190 cat confdefs.h >>conftest.$ac_ext
22191 cat >>conftest.$ac_ext <<_ACEOF
22192 /* end confdefs.h. */
22194 #undef KRB5 /* makes md4.h et al unhappy */
22195 #ifdef HAVE_OPENSSL
22196 #include <openssl/md4.h>
22197 #include <openssl/md5.h>
22198 #include <openssl/sha.h>
22199 #define OPENSSL_DES_LIBDES_COMPATIBILITY
22200 #include <openssl/des.h>
22201 #include <openssl/rc4.h>
22202 #include <openssl/rand.h>
22210 #ifdef OLD_HASH_NAMES
22211 typedef struct md4 MD4_CTX;
22212 #define MD4_Init(C) md4_init((C))
22213 #define MD4_Update(C, D, L) md4_update((C), (D), (L))
22214 #define MD4_Final(D, C) md4_finito((C), (D))
22215 typedef struct md5 MD5_CTX;
22216 #define MD5_Init(C) md5_init((C))
22217 #define MD5_Update(C, D, L) md5_update((C), (D), (L))
22218 #define MD5_Final(D, C) md5_finito((C), (D))
22219 typedef struct sha SHA_CTX;
22220 #define SHA1_Init(C) sha_init((C))
22221 #define SHA1_Update(C, D, L) sha_update((C), (D), (L))
22222 #define SHA1_Final(D, C) sha_finito((C), (D))
22229 void *schedule = 0;
22237 #ifdef HAVE_OPENSSL
22241 des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
22247 rm -f conftest.$ac_objext conftest$ac_exeext
22248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22249 (eval $ac_link) 2>conftest.er1
22251 grep -v '^ *+' conftest.er1 >conftest.err
22253 cat conftest.err >&5
22254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255 (exit $ac_status); } &&
22256 { ac_try='test -z "$ac_c_werror_flag"
22257 || test ! -s conftest.err'
22258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22259 (eval $ac_try) 2>&5
22261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262 (exit $ac_status); }; } &&
22263 { ac_try='test -s conftest$ac_exeext'
22264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22265 (eval $ac_try) 2>&5
22267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268 (exit $ac_status); }; }; then
22269 openssl=no ires="$i" lres="$j $k"; break 3
22271 echo "$as_me: failed program was:" >&5
22272 sed 's/^/| /' conftest.$ac_ext >&5
22275 rm -f conftest.err conftest.$ac_objext \
22276 conftest$ac_exeext conftest.$ac_ext
22281 CFLAGS="$save_CFLAGS"
22283 if test "$ires" -a "$lres"; then
22284 INCLUDE_des="$ires"
22287 echo "$as_me:$LINENO: result: same as krb4" >&5
22288 echo "${ECHO_T}same as krb4" >&6
22289 LIB_des_a='$(LIB_des)'
22290 LIB_des_so='$(LIB_des)'
22291 LIB_des_appl='$(LIB_des)'
22295 if test "$crypto_lib" = "unknown" -a "$with_openssl" != "no"; then
22296 save_CFLAGS="$CFLAGS"
22300 if test "$with_openssl_include" != ""; then
22301 INCLUDE_des="-I${with_openssl_include}"
22303 if test "$with_openssl_lib" != ""; then
22304 LIB_des="-L${with_openssl_lib}"
22306 CFLAGS="-DHAVE_OPENSSL ${INCLUDE_des} ${CFLAGS}"
22307 saved_LIB_des="$LIB_des"
22308 for lres in "" "-lnsl -lsocket"; do
22309 LIB_des="${saved_LIB_des} -lcrypto $lres"
22310 LIB_des_a="$LIB_des"
22311 LIB_des_so="$LIB_des"
22312 LIB_des_appl="$LIB_des"
22313 LIBS="${LIBS} ${LIB_des}"
22314 cat >conftest.$ac_ext <<_ACEOF
22317 cat confdefs.h >>conftest.$ac_ext
22318 cat >>conftest.$ac_ext <<_ACEOF
22319 /* end confdefs.h. */
22321 #undef KRB5 /* makes md4.h et al unhappy */
22322 #ifdef HAVE_OPENSSL
22323 #include <openssl/md4.h>
22324 #include <openssl/md5.h>
22325 #include <openssl/sha.h>
22326 #define OPENSSL_DES_LIBDES_COMPATIBILITY
22327 #include <openssl/des.h>
22328 #include <openssl/rc4.h>
22329 #include <openssl/rand.h>
22337 #ifdef OLD_HASH_NAMES
22338 typedef struct md4 MD4_CTX;
22339 #define MD4_Init(C) md4_init((C))
22340 #define MD4_Update(C, D, L) md4_update((C), (D), (L))
22341 #define MD4_Final(D, C) md4_finito((C), (D))
22342 typedef struct md5 MD5_CTX;
22343 #define MD5_Init(C) md5_init((C))
22344 #define MD5_Update(C, D, L) md5_update((C), (D), (L))
22345 #define MD5_Final(D, C) md5_finito((C), (D))
22346 typedef struct sha SHA_CTX;
22347 #define SHA1_Init(C) sha_init((C))
22348 #define SHA1_Update(C, D, L) sha_update((C), (D), (L))
22349 #define SHA1_Final(D, C) sha_finito((C), (D))
22356 void *schedule = 0;
22364 #ifdef HAVE_OPENSSL
22368 des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
22374 rm -f conftest.$ac_objext conftest$ac_exeext
22375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22376 (eval $ac_link) 2>conftest.er1
22378 grep -v '^ *+' conftest.er1 >conftest.err
22380 cat conftest.err >&5
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); } &&
22383 { ac_try='test -z "$ac_c_werror_flag"
22384 || test ! -s conftest.err'
22385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22386 (eval $ac_try) 2>&5
22388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389 (exit $ac_status); }; } &&
22390 { ac_try='test -s conftest$ac_exeext'
22391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22392 (eval $ac_try) 2>&5
22394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395 (exit $ac_status); }; }; then
22397 crypto_lib=libcrypto openssl=yes
22398 echo "$as_me:$LINENO: result: libcrypto" >&5
22399 echo "${ECHO_T}libcrypto" >&6
22402 echo "$as_me: failed program was:" >&5
22403 sed 's/^/| /' conftest.$ac_ext >&5
22406 rm -f conftest.err conftest.$ac_objext \
22407 conftest$ac_exeext conftest.$ac_ext
22408 if test "$crypto_lib" = libcrypto ; then
22412 CFLAGS="$save_CFLAGS"
22416 if test "$crypto_lib" = "unknown"; then
22419 LIB_des='$(top_builddir)/lib/des/libdes.la'
22420 LIB_des_a='$(top_builddir)/lib/des/.libs/libdes.a'
22421 LIB_des_so='$(top_builddir)/lib/des/.libs/libdes.so'
22422 LIB_des_appl="-ldes"
22424 echo "$as_me:$LINENO: result: included libdes" >&5
22425 echo "${ECHO_T}included libdes" >&6
22429 if test "$with_krb4" != no -a "$crypto_lib" != krb4; then
22430 { { echo "$as_me:$LINENO: error: the crypto library used by krb4 lacks features
22431 required by Kerberos 5; to continue, you need to install a newer
22432 Kerberos 4 or configure --without-krb4" >&5
22433 echo "$as_me: error: the crypto library used by krb4 lacks features
22434 required by Kerberos 5; to continue, you need to install a newer
22435 Kerberos 4 or configure --without-krb4" >&2;}
22436 { (exit 1); exit 1; }; }
22439 if test "$openssl" = "yes"; then
22441 cat >>confdefs.h <<\_ACEOF
22442 #define HAVE_OPENSSL 1
22446 if test "$old_hash" = yes; then
22448 cat >>confdefs.h <<\_ACEOF
22449 #define HAVE_OLD_HASH_NAMES 1
22455 if test "$openssl" = yes; then
22457 HAVE_OPENSSL_FALSE='#'
22459 HAVE_OPENSSL_TRUE='#'
22460 HAVE_OPENSSL_FALSE=
22471 # Check whether --enable-dce or --disable-dce was given.
22472 if test "${enable_dce+set}" = set; then
22473 enableval="$enable_dce"
22476 if test "$enable_dce" = yes; then
22478 cat >>confdefs.h <<\_ACEOF
22485 if test "$enable_dce" = yes; then
22494 ## XXX quite horrible:
22495 if test -f /etc/ibmcxx.cfg; then
22496 dpagaix_ldadd=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'`
22497 dpagaix_cflags=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'`
22500 dpagaix_cflags="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce"
22501 dpagaix_ldadd="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r"
22502 dpagaix_ldflags="-Wl,-bI:dfspag.exp"
22509 # Check whether --enable-berkeley-db or --disable-berkeley-db was given.
22510 if test "${enable_berkeley_db+set}" = set; then
22511 enableval="$enable_berkeley_db"
22519 if test "$enable_berkeley_db" != no; then
22532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22534 echo "$as_me:$LINENO: checking for $ac_header" >&5
22535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22537 echo $ECHO_N "(cached) $ECHO_C" >&6
22539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22542 # Is the header compilable?
22543 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22544 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22545 cat >conftest.$ac_ext <<_ACEOF
22548 cat confdefs.h >>conftest.$ac_ext
22549 cat >>conftest.$ac_ext <<_ACEOF
22550 /* end confdefs.h. */
22551 $ac_includes_default
22552 #include <$ac_header>
22554 rm -f conftest.$ac_objext
22555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22556 (eval $ac_compile) 2>conftest.er1
22558 grep -v '^ *+' conftest.er1 >conftest.err
22560 cat conftest.err >&5
22561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562 (exit $ac_status); } &&
22563 { ac_try='test -z "$ac_c_werror_flag"
22564 || test ! -s conftest.err'
22565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22566 (eval $ac_try) 2>&5
22568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569 (exit $ac_status); }; } &&
22570 { ac_try='test -s conftest.$ac_objext'
22571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22572 (eval $ac_try) 2>&5
22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); }; }; then
22576 ac_header_compiler=yes
22578 echo "$as_me: failed program was:" >&5
22579 sed 's/^/| /' conftest.$ac_ext >&5
22581 ac_header_compiler=no
22583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22584 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22585 echo "${ECHO_T}$ac_header_compiler" >&6
22587 # Is the header present?
22588 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22589 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22590 cat >conftest.$ac_ext <<_ACEOF
22593 cat confdefs.h >>conftest.$ac_ext
22594 cat >>conftest.$ac_ext <<_ACEOF
22595 /* end confdefs.h. */
22596 #include <$ac_header>
22598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22601 grep -v '^ *+' conftest.er1 >conftest.err
22603 cat conftest.err >&5
22604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22605 (exit $ac_status); } >/dev/null; then
22606 if test -s conftest.err; then
22607 ac_cpp_err=$ac_c_preproc_warn_flag
22608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22615 if test -z "$ac_cpp_err"; then
22616 ac_header_preproc=yes
22618 echo "$as_me: failed program was:" >&5
22619 sed 's/^/| /' conftest.$ac_ext >&5
22621 ac_header_preproc=no
22623 rm -f conftest.err conftest.$ac_ext
22624 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22625 echo "${ECHO_T}$ac_header_preproc" >&6
22627 # So? What about this header?
22628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22630 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22631 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22633 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22634 ac_header_preproc=yes
22637 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22639 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22640 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22641 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22642 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22643 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22644 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22647 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22648 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22651 ## -------------------------------------- ##
22652 ## Report this to heimdal-bugs@pdc.kth.se ##
22653 ## -------------------------------------- ##
22656 sed "s/^/$as_me: WARNING: /" >&2
22659 echo "$as_me:$LINENO: checking for $ac_header" >&5
22660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22662 echo $ECHO_N "(cached) $ECHO_C" >&6
22664 eval "$as_ac_Header=\$ac_header_preproc"
22666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22671 cat >>confdefs.h <<_ACEOF
22672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22684 echo "$as_me:$LINENO: checking for db_create" >&5
22685 echo $ECHO_N "checking for db_create... $ECHO_C" >&6
22686 if test "${ac_cv_funclib_db_create+set}" = set; then
22687 echo $ECHO_N "(cached) $ECHO_C" >&6
22690 if eval "test \"\$ac_cv_func_db_create\" != yes" ; then
22691 ac_save_LIBS="$LIBS"
22692 for ac_lib in "" db4 db3 db; do
22698 *) ac_lib="-l$ac_lib" ;;
22700 LIBS=" $ac_lib $ac_save_LIBS"
22701 cat >conftest.$ac_ext <<_ACEOF
22704 cat confdefs.h >>conftest.$ac_ext
22705 cat >>conftest.$ac_ext <<_ACEOF
22706 /* end confdefs.h. */
22709 #ifdef HAVE_DB4_DB_H
22710 #include <db4/db.h>
22711 #elif defined(HAVE_DB3_DB_H)
22712 #include <db3/db.h>
22720 db_create(NULL, NULL, 0)
22725 rm -f conftest.$ac_objext conftest$ac_exeext
22726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22727 (eval $ac_link) 2>conftest.er1
22729 grep -v '^ *+' conftest.er1 >conftest.err
22731 cat conftest.err >&5
22732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733 (exit $ac_status); } &&
22734 { ac_try='test -z "$ac_c_werror_flag"
22735 || test ! -s conftest.err'
22736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22737 (eval $ac_try) 2>&5
22739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740 (exit $ac_status); }; } &&
22741 { ac_try='test -s conftest$ac_exeext'
22742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22743 (eval $ac_try) 2>&5
22745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746 (exit $ac_status); }; }; then
22747 eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break
22749 echo "$as_me: failed program was:" >&5
22750 sed 's/^/| /' conftest.$ac_ext >&5
22753 rm -f conftest.err conftest.$ac_objext \
22754 conftest$ac_exeext conftest.$ac_ext
22756 eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}"
22757 LIBS="$ac_save_LIBS"
22763 eval "ac_res=\$ac_cv_funclib_db_create"
22767 for ac_func in db_create
22769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22770 echo "$as_me:$LINENO: checking for $ac_func" >&5
22771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22772 if eval "test \"\${$as_ac_var+set}\" = set"; then
22773 echo $ECHO_N "(cached) $ECHO_C" >&6
22775 cat >conftest.$ac_ext <<_ACEOF
22778 cat confdefs.h >>conftest.$ac_ext
22779 cat >>conftest.$ac_ext <<_ACEOF
22780 /* end confdefs.h. */
22781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22783 #define $ac_func innocuous_$ac_func
22785 /* System header to define __stub macros and hopefully few prototypes,
22786 which can conflict with char $ac_func (); below.
22787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22788 <limits.h> exists even on freestanding compilers. */
22791 # include <limits.h>
22793 # include <assert.h>
22798 /* Override any gcc2 internal prototype to avoid an error. */
22803 /* We use char because int might match the return type of a gcc2
22804 builtin and then its argument prototype would still apply. */
22806 /* The GNU C library defines this for functions which it implements
22807 to always fail with ENOSYS. Some functions are actually named
22808 something starting with __ and the normal name is an alias. */
22809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22812 char (*f) () = $ac_func;
22821 return f != $ac_func;
22826 rm -f conftest.$ac_objext conftest$ac_exeext
22827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22828 (eval $ac_link) 2>conftest.er1
22830 grep -v '^ *+' conftest.er1 >conftest.err
22832 cat conftest.err >&5
22833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834 (exit $ac_status); } &&
22835 { ac_try='test -z "$ac_c_werror_flag"
22836 || test ! -s conftest.err'
22837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22838 (eval $ac_try) 2>&5
22840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22841 (exit $ac_status); }; } &&
22842 { ac_try='test -s conftest$ac_exeext'
22843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22844 (eval $ac_try) 2>&5
22846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847 (exit $ac_status); }; }; then
22848 eval "$as_ac_var=yes"
22850 echo "$as_me: failed program was:" >&5
22851 sed 's/^/| /' conftest.$ac_ext >&5
22853 eval "$as_ac_var=no"
22855 rm -f conftest.err conftest.$ac_objext \
22856 conftest$ac_exeext conftest.$ac_ext
22858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22859 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22860 if test `eval echo '${'$as_ac_var'}'` = yes; then
22861 cat >>confdefs.h <<_ACEOF
22862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22870 eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
22871 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
22872 eval "LIB_db_create=$ac_res"
22876 eval "ac_cv_func_db_create=yes"
22877 eval "LIB_db_create="
22878 cat >>confdefs.h <<_ACEOF
22879 #define $ac_tr_func 1
22882 echo "$as_me:$LINENO: result: yes" >&5
22883 echo "${ECHO_T}yes" >&6
22886 eval "ac_cv_func_db_create=no"
22887 eval "LIB_db_create="
22888 echo "$as_me:$LINENO: result: no" >&5
22889 echo "${ECHO_T}no" >&6
22892 eval "ac_cv_func_db_create=yes"
22893 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
22894 cat >>confdefs.h <<_ACEOF
22895 #define $ac_tr_func 1
22898 cat >>confdefs.h <<_ACEOF
22899 #define $ac_tr_lib 1
22902 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
22903 echo "${ECHO_T}yes, in $ac_res" >&6
22909 if test "$ac_cv_func_db_create" = "yes"; then
22911 if test "$ac_cv_funclib_db_create" != "yes"; then
22912 DBLIB="$ac_cv_funclib_db_create"
22917 cat >>confdefs.h <<\_ACEOF
22927 echo "$as_me:$LINENO: checking for dbopen" >&5
22928 echo $ECHO_N "checking for dbopen... $ECHO_C" >&6
22929 if test "${ac_cv_funclib_dbopen+set}" = set; then
22930 echo $ECHO_N "(cached) $ECHO_C" >&6
22933 if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then
22934 ac_save_LIBS="$LIBS"
22935 for ac_lib in "" db2 db; do
22941 *) ac_lib="-l$ac_lib" ;;
22943 LIBS=" $ac_lib $ac_save_LIBS"
22944 cat >conftest.$ac_ext <<_ACEOF
22947 cat confdefs.h >>conftest.$ac_ext
22948 cat >>conftest.$ac_ext <<_ACEOF
22949 /* end confdefs.h. */
22952 #if defined(HAVE_DB2_DB_H)
22953 #include <db2/db.h>
22954 #elif defined(HAVE_DB_185_H)
22955 #include <db_185.h>
22956 #elif defined(HAVE_DB_H)
22965 dbopen(NULL, 0, 0, 0, NULL)
22970 rm -f conftest.$ac_objext conftest$ac_exeext
22971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22972 (eval $ac_link) 2>conftest.er1
22974 grep -v '^ *+' conftest.er1 >conftest.err
22976 cat conftest.err >&5
22977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978 (exit $ac_status); } &&
22979 { ac_try='test -z "$ac_c_werror_flag"
22980 || test ! -s conftest.err'
22981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22982 (eval $ac_try) 2>&5
22984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985 (exit $ac_status); }; } &&
22986 { ac_try='test -s conftest$ac_exeext'
22987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22988 (eval $ac_try) 2>&5
22990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991 (exit $ac_status); }; }; then
22992 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break
22994 echo "$as_me: failed program was:" >&5
22995 sed 's/^/| /' conftest.$ac_ext >&5
22998 rm -f conftest.err conftest.$ac_objext \
22999 conftest$ac_exeext conftest.$ac_ext
23001 eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
23002 LIBS="$ac_save_LIBS"
23008 eval "ac_res=\$ac_cv_funclib_dbopen"
23012 for ac_func in dbopen
23014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23015 echo "$as_me:$LINENO: checking for $ac_func" >&5
23016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23017 if eval "test \"\${$as_ac_var+set}\" = set"; then
23018 echo $ECHO_N "(cached) $ECHO_C" >&6
23020 cat >conftest.$ac_ext <<_ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h. */
23026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23028 #define $ac_func innocuous_$ac_func
23030 /* System header to define __stub macros and hopefully few prototypes,
23031 which can conflict with char $ac_func (); below.
23032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23033 <limits.h> exists even on freestanding compilers. */
23036 # include <limits.h>
23038 # include <assert.h>
23043 /* Override any gcc2 internal prototype to avoid an error. */
23048 /* We use char because int might match the return type of a gcc2
23049 builtin and then its argument prototype would still apply. */
23051 /* The GNU C library defines this for functions which it implements
23052 to always fail with ENOSYS. Some functions are actually named
23053 something starting with __ and the normal name is an alias. */
23054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23057 char (*f) () = $ac_func;
23066 return f != $ac_func;
23071 rm -f conftest.$ac_objext conftest$ac_exeext
23072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23073 (eval $ac_link) 2>conftest.er1
23075 grep -v '^ *+' conftest.er1 >conftest.err
23077 cat conftest.err >&5
23078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); } &&
23080 { ac_try='test -z "$ac_c_werror_flag"
23081 || test ! -s conftest.err'
23082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23083 (eval $ac_try) 2>&5
23085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086 (exit $ac_status); }; } &&
23087 { ac_try='test -s conftest$ac_exeext'
23088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23089 (eval $ac_try) 2>&5
23091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092 (exit $ac_status); }; }; then
23093 eval "$as_ac_var=yes"
23095 echo "$as_me: failed program was:" >&5
23096 sed 's/^/| /' conftest.$ac_ext >&5
23098 eval "$as_ac_var=no"
23100 rm -f conftest.err conftest.$ac_objext \
23101 conftest$ac_exeext conftest.$ac_ext
23103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23104 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23105 if test `eval echo '${'$as_ac_var'}'` = yes; then
23106 cat >>confdefs.h <<_ACEOF
23107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23115 eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
23116 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
23117 eval "LIB_dbopen=$ac_res"
23121 eval "ac_cv_func_dbopen=yes"
23123 cat >>confdefs.h <<_ACEOF
23124 #define $ac_tr_func 1
23127 echo "$as_me:$LINENO: result: yes" >&5
23128 echo "${ECHO_T}yes" >&6
23131 eval "ac_cv_func_dbopen=no"
23133 echo "$as_me:$LINENO: result: no" >&5
23134 echo "${ECHO_T}no" >&6
23137 eval "ac_cv_func_dbopen=yes"
23138 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
23139 cat >>confdefs.h <<_ACEOF
23140 #define $ac_tr_func 1
23143 cat >>confdefs.h <<_ACEOF
23144 #define $ac_tr_lib 1
23147 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
23148 echo "${ECHO_T}yes, in $ac_res" >&6
23154 if test "$ac_cv_func_dbopen" = "yes"; then
23156 if test "$ac_cv_funclib_dbopen" != "yes"; then
23157 DBLIB="$ac_cv_funclib_dbopen"
23162 cat >>confdefs.h <<\_ACEOF
23170 if test "$ac_cv_func_dbm_firstkey" != yes; then
23173 echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
23174 echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
23175 if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
23176 echo $ECHO_N "(cached) $ECHO_C" >&6
23179 if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
23180 ac_save_LIBS="$LIBS"
23181 for ac_lib in $ac_cv_funclib_dbopen $ac_cv_funclib_db_create; do
23187 *) ac_lib="-l$ac_lib" ;;
23189 LIBS=" $ac_lib $ac_save_LIBS"
23190 cat >conftest.$ac_ext <<_ACEOF
23193 cat confdefs.h >>conftest.$ac_ext
23194 cat >>conftest.$ac_ext <<_ACEOF
23195 /* end confdefs.h. */
23198 #define DB_DBM_HSEARCH 1
23210 rm -f conftest.$ac_objext conftest$ac_exeext
23211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23212 (eval $ac_link) 2>conftest.er1
23214 grep -v '^ *+' conftest.er1 >conftest.err
23216 cat conftest.err >&5
23217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218 (exit $ac_status); } &&
23219 { ac_try='test -z "$ac_c_werror_flag"
23220 || test ! -s conftest.err'
23221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23222 (eval $ac_try) 2>&5
23224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225 (exit $ac_status); }; } &&
23226 { ac_try='test -s conftest$ac_exeext'
23227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23228 (eval $ac_try) 2>&5
23230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231 (exit $ac_status); }; }; then
23232 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
23234 echo "$as_me: failed program was:" >&5
23235 sed 's/^/| /' conftest.$ac_ext >&5
23238 rm -f conftest.err conftest.$ac_objext \
23239 conftest$ac_exeext conftest.$ac_ext
23241 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
23242 LIBS="$ac_save_LIBS"
23248 eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
23252 for ac_func in dbm_firstkey
23254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23255 echo "$as_me:$LINENO: checking for $ac_func" >&5
23256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23257 if eval "test \"\${$as_ac_var+set}\" = set"; then
23258 echo $ECHO_N "(cached) $ECHO_C" >&6
23260 cat >conftest.$ac_ext <<_ACEOF
23263 cat confdefs.h >>conftest.$ac_ext
23264 cat >>conftest.$ac_ext <<_ACEOF
23265 /* end confdefs.h. */
23266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23268 #define $ac_func innocuous_$ac_func
23270 /* System header to define __stub macros and hopefully few prototypes,
23271 which can conflict with char $ac_func (); below.
23272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23273 <limits.h> exists even on freestanding compilers. */
23276 # include <limits.h>
23278 # include <assert.h>
23283 /* Override any gcc2 internal prototype to avoid an error. */
23288 /* We use char because int might match the return type of a gcc2
23289 builtin and then its argument prototype would still apply. */
23291 /* The GNU C library defines this for functions which it implements
23292 to always fail with ENOSYS. Some functions are actually named
23293 something starting with __ and the normal name is an alias. */
23294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23297 char (*f) () = $ac_func;
23306 return f != $ac_func;
23311 rm -f conftest.$ac_objext conftest$ac_exeext
23312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23313 (eval $ac_link) 2>conftest.er1
23315 grep -v '^ *+' conftest.er1 >conftest.err
23317 cat conftest.err >&5
23318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319 (exit $ac_status); } &&
23320 { ac_try='test -z "$ac_c_werror_flag"
23321 || test ! -s conftest.err'
23322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23323 (eval $ac_try) 2>&5
23325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326 (exit $ac_status); }; } &&
23327 { ac_try='test -s conftest$ac_exeext'
23328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23329 (eval $ac_try) 2>&5
23331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332 (exit $ac_status); }; }; then
23333 eval "$as_ac_var=yes"
23335 echo "$as_me: failed program was:" >&5
23336 sed 's/^/| /' conftest.$ac_ext >&5
23338 eval "$as_ac_var=no"
23340 rm -f conftest.err conftest.$ac_objext \
23341 conftest$ac_exeext conftest.$ac_ext
23343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23344 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23345 if test `eval echo '${'$as_ac_var'}'` = yes; then
23346 cat >>confdefs.h <<_ACEOF
23347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23355 eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
23356 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
23357 eval "LIB_dbm_firstkey=$ac_res"
23361 eval "ac_cv_func_dbm_firstkey=yes"
23362 eval "LIB_dbm_firstkey="
23363 cat >>confdefs.h <<_ACEOF
23364 #define $ac_tr_func 1
23367 echo "$as_me:$LINENO: result: yes" >&5
23368 echo "${ECHO_T}yes" >&6
23371 eval "ac_cv_func_dbm_firstkey=no"
23372 eval "LIB_dbm_firstkey="
23373 echo "$as_me:$LINENO: result: no" >&5
23374 echo "${ECHO_T}no" >&6
23377 eval "ac_cv_func_dbm_firstkey=yes"
23378 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
23379 cat >>confdefs.h <<_ACEOF
23380 #define $ac_tr_func 1
23383 cat >>confdefs.h <<_ACEOF
23384 #define $ac_tr_lib 1
23387 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
23388 echo "${ECHO_T}yes, in $ac_res" >&6
23394 if test "$ac_cv_func_dbm_firstkey" = "yes"; then
23395 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
23396 LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
23401 cat >>confdefs.h <<\_ACEOF
23402 #define HAVE_DB_NDBM 1
23406 cat >>confdefs.h <<\_ACEOF
23407 #define HAVE_NEW_DB 1
23411 $as_unset ac_cv_func_dbm_firstkey
23412 $as_unset ac_cv_funclib_dbm_firstkey
23418 if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then
23427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23429 echo "$as_me:$LINENO: checking for $ac_header" >&5
23430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23432 echo $ECHO_N "(cached) $ECHO_C" >&6
23434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23437 # Is the header compilable?
23438 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23440 cat >conftest.$ac_ext <<_ACEOF
23443 cat confdefs.h >>conftest.$ac_ext
23444 cat >>conftest.$ac_ext <<_ACEOF
23445 /* end confdefs.h. */
23446 $ac_includes_default
23447 #include <$ac_header>
23449 rm -f conftest.$ac_objext
23450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23451 (eval $ac_compile) 2>conftest.er1
23453 grep -v '^ *+' conftest.er1 >conftest.err
23455 cat conftest.err >&5
23456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457 (exit $ac_status); } &&
23458 { ac_try='test -z "$ac_c_werror_flag"
23459 || test ! -s conftest.err'
23460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23461 (eval $ac_try) 2>&5
23463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464 (exit $ac_status); }; } &&
23465 { ac_try='test -s conftest.$ac_objext'
23466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23467 (eval $ac_try) 2>&5
23469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 (exit $ac_status); }; }; then
23471 ac_header_compiler=yes
23473 echo "$as_me: failed program was:" >&5
23474 sed 's/^/| /' conftest.$ac_ext >&5
23476 ac_header_compiler=no
23478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23479 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23480 echo "${ECHO_T}$ac_header_compiler" >&6
23482 # Is the header present?
23483 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23485 cat >conftest.$ac_ext <<_ACEOF
23488 cat confdefs.h >>conftest.$ac_ext
23489 cat >>conftest.$ac_ext <<_ACEOF
23490 /* end confdefs.h. */
23491 #include <$ac_header>
23493 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23494 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23496 grep -v '^ *+' conftest.er1 >conftest.err
23498 cat conftest.err >&5
23499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23500 (exit $ac_status); } >/dev/null; then
23501 if test -s conftest.err; then
23502 ac_cpp_err=$ac_c_preproc_warn_flag
23503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23510 if test -z "$ac_cpp_err"; then
23511 ac_header_preproc=yes
23513 echo "$as_me: failed program was:" >&5
23514 sed 's/^/| /' conftest.$ac_ext >&5
23516 ac_header_preproc=no
23518 rm -f conftest.err conftest.$ac_ext
23519 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23520 echo "${ECHO_T}$ac_header_preproc" >&6
23522 # So? What about this header?
23523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23529 ac_header_preproc=yes
23532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23536 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23538 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23539 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23542 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23546 ## -------------------------------------- ##
23547 ## Report this to heimdal-bugs@pdc.kth.se ##
23548 ## -------------------------------------- ##
23551 sed "s/^/$as_me: WARNING: /" >&2
23554 echo "$as_me:$LINENO: checking for $ac_header" >&5
23555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23557 echo $ECHO_N "(cached) $ECHO_C" >&6
23559 eval "$as_ac_Header=\$ac_header_preproc"
23561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23566 cat >>confdefs.h <<_ACEOF
23567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23578 echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
23579 echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
23580 if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
23581 echo $ECHO_N "(cached) $ECHO_C" >&6
23584 if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
23585 ac_save_LIBS="$LIBS"
23586 for ac_lib in "" ndbm; do
23592 *) ac_lib="-l$ac_lib" ;;
23594 LIBS=" $ac_lib $ac_save_LIBS"
23595 cat >conftest.$ac_ext <<_ACEOF
23598 cat confdefs.h >>conftest.$ac_ext
23599 cat >>conftest.$ac_ext <<_ACEOF
23600 /* end confdefs.h. */
23603 #if defined(HAVE_NDBM_H)
23605 #elif defined(HAVE_DBM_H)
23618 rm -f conftest.$ac_objext conftest$ac_exeext
23619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23620 (eval $ac_link) 2>conftest.er1
23622 grep -v '^ *+' conftest.er1 >conftest.err
23624 cat conftest.err >&5
23625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626 (exit $ac_status); } &&
23627 { ac_try='test -z "$ac_c_werror_flag"
23628 || test ! -s conftest.err'
23629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23630 (eval $ac_try) 2>&5
23632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633 (exit $ac_status); }; } &&
23634 { ac_try='test -s conftest$ac_exeext'
23635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23636 (eval $ac_try) 2>&5
23638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639 (exit $ac_status); }; }; then
23640 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
23642 echo "$as_me: failed program was:" >&5
23643 sed 's/^/| /' conftest.$ac_ext >&5
23646 rm -f conftest.err conftest.$ac_objext \
23647 conftest$ac_exeext conftest.$ac_ext
23649 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
23650 LIBS="$ac_save_LIBS"
23656 eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
23660 for ac_func in dbm_firstkey
23662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23663 echo "$as_me:$LINENO: checking for $ac_func" >&5
23664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23665 if eval "test \"\${$as_ac_var+set}\" = set"; then
23666 echo $ECHO_N "(cached) $ECHO_C" >&6
23668 cat >conftest.$ac_ext <<_ACEOF
23671 cat confdefs.h >>conftest.$ac_ext
23672 cat >>conftest.$ac_ext <<_ACEOF
23673 /* end confdefs.h. */
23674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23676 #define $ac_func innocuous_$ac_func
23678 /* System header to define __stub macros and hopefully few prototypes,
23679 which can conflict with char $ac_func (); below.
23680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23681 <limits.h> exists even on freestanding compilers. */
23684 # include <limits.h>
23686 # include <assert.h>
23691 /* Override any gcc2 internal prototype to avoid an error. */
23696 /* We use char because int might match the return type of a gcc2
23697 builtin and then its argument prototype would still apply. */
23699 /* The GNU C library defines this for functions which it implements
23700 to always fail with ENOSYS. Some functions are actually named
23701 something starting with __ and the normal name is an alias. */
23702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23705 char (*f) () = $ac_func;
23714 return f != $ac_func;
23719 rm -f conftest.$ac_objext conftest$ac_exeext
23720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23721 (eval $ac_link) 2>conftest.er1
23723 grep -v '^ *+' conftest.er1 >conftest.err
23725 cat conftest.err >&5
23726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727 (exit $ac_status); } &&
23728 { ac_try='test -z "$ac_c_werror_flag"
23729 || test ! -s conftest.err'
23730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23731 (eval $ac_try) 2>&5
23733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734 (exit $ac_status); }; } &&
23735 { ac_try='test -s conftest$ac_exeext'
23736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23737 (eval $ac_try) 2>&5
23739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740 (exit $ac_status); }; }; then
23741 eval "$as_ac_var=yes"
23743 echo "$as_me: failed program was:" >&5
23744 sed 's/^/| /' conftest.$ac_ext >&5
23746 eval "$as_ac_var=no"
23748 rm -f conftest.err conftest.$ac_objext \
23749 conftest$ac_exeext conftest.$ac_ext
23751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23752 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23753 if test `eval echo '${'$as_ac_var'}'` = yes; then
23754 cat >>confdefs.h <<_ACEOF
23755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23763 eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
23764 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
23765 eval "LIB_dbm_firstkey=$ac_res"
23769 eval "ac_cv_func_dbm_firstkey=yes"
23770 eval "LIB_dbm_firstkey="
23771 cat >>confdefs.h <<_ACEOF
23772 #define $ac_tr_func 1
23775 echo "$as_me:$LINENO: result: yes" >&5
23776 echo "${ECHO_T}yes" >&6
23779 eval "ac_cv_func_dbm_firstkey=no"
23780 eval "LIB_dbm_firstkey="
23781 echo "$as_me:$LINENO: result: no" >&5
23782 echo "${ECHO_T}no" >&6
23785 eval "ac_cv_func_dbm_firstkey=yes"
23786 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
23787 cat >>confdefs.h <<_ACEOF
23788 #define $ac_tr_func 1
23791 cat >>confdefs.h <<_ACEOF
23792 #define $ac_tr_lib 1
23795 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
23796 echo "${ECHO_T}yes, in $ac_res" >&6
23802 if test "$ac_cv_func_dbm_firstkey" = "yes"; then
23803 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
23804 LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
23809 cat >>confdefs.h <<\_ACEOF
23810 #define HAVE_NDBM 1
23813 if test "$db_type" = "unknown"; then
23819 $as_unset ac_cv_func_dbm_firstkey
23820 $as_unset ac_cv_funclib_dbm_firstkey
23827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23829 echo "$as_me:$LINENO: checking for $ac_header" >&5
23830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23832 echo $ECHO_N "(cached) $ECHO_C" >&6
23834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23837 # Is the header compilable?
23838 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23839 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23840 cat >conftest.$ac_ext <<_ACEOF
23843 cat confdefs.h >>conftest.$ac_ext
23844 cat >>conftest.$ac_ext <<_ACEOF
23845 /* end confdefs.h. */
23846 $ac_includes_default
23847 #include <$ac_header>
23849 rm -f conftest.$ac_objext
23850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23851 (eval $ac_compile) 2>conftest.er1
23853 grep -v '^ *+' conftest.er1 >conftest.err
23855 cat conftest.err >&5
23856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857 (exit $ac_status); } &&
23858 { ac_try='test -z "$ac_c_werror_flag"
23859 || test ! -s conftest.err'
23860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23861 (eval $ac_try) 2>&5
23863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864 (exit $ac_status); }; } &&
23865 { ac_try='test -s conftest.$ac_objext'
23866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23867 (eval $ac_try) 2>&5
23869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870 (exit $ac_status); }; }; then
23871 ac_header_compiler=yes
23873 echo "$as_me: failed program was:" >&5
23874 sed 's/^/| /' conftest.$ac_ext >&5
23876 ac_header_compiler=no
23878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23879 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23880 echo "${ECHO_T}$ac_header_compiler" >&6
23882 # Is the header present?
23883 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23884 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23885 cat >conftest.$ac_ext <<_ACEOF
23888 cat confdefs.h >>conftest.$ac_ext
23889 cat >>conftest.$ac_ext <<_ACEOF
23890 /* end confdefs.h. */
23891 #include <$ac_header>
23893 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23896 grep -v '^ *+' conftest.er1 >conftest.err
23898 cat conftest.err >&5
23899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900 (exit $ac_status); } >/dev/null; then
23901 if test -s conftest.err; then
23902 ac_cpp_err=$ac_c_preproc_warn_flag
23903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23910 if test -z "$ac_cpp_err"; then
23911 ac_header_preproc=yes
23913 echo "$as_me: failed program was:" >&5
23914 sed 's/^/| /' conftest.$ac_ext >&5
23916 ac_header_preproc=no
23918 rm -f conftest.err conftest.$ac_ext
23919 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23920 echo "${ECHO_T}$ac_header_preproc" >&6
23922 # So? What about this header?
23923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23929 ac_header_preproc=yes
23932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23935 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23936 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23938 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23939 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23942 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23946 ## -------------------------------------- ##
23947 ## Report this to heimdal-bugs@pdc.kth.se ##
23948 ## -------------------------------------- ##
23951 sed "s/^/$as_me: WARNING: /" >&2
23954 echo "$as_me:$LINENO: checking for $ac_header" >&5
23955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23957 echo $ECHO_N "(cached) $ECHO_C" >&6
23959 eval "$as_ac_Header=\$ac_header_preproc"
23961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23966 cat >>confdefs.h <<_ACEOF
23967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23978 echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
23979 echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
23980 if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
23981 echo $ECHO_N "(cached) $ECHO_C" >&6
23984 if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
23985 ac_save_LIBS="$LIBS"
23986 for ac_lib in "" gdbm; do
23992 *) ac_lib="-l$ac_lib" ;;
23994 LIBS=" $ac_lib $ac_save_LIBS"
23995 cat >conftest.$ac_ext <<_ACEOF
23998 cat confdefs.h >>conftest.$ac_ext
23999 cat >>conftest.$ac_ext <<_ACEOF
24000 /* end confdefs.h. */
24003 #include <gdbm/ndbm.h>
24014 rm -f conftest.$ac_objext conftest$ac_exeext
24015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24016 (eval $ac_link) 2>conftest.er1
24018 grep -v '^ *+' conftest.er1 >conftest.err
24020 cat conftest.err >&5
24021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022 (exit $ac_status); } &&
24023 { ac_try='test -z "$ac_c_werror_flag"
24024 || test ! -s conftest.err'
24025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24026 (eval $ac_try) 2>&5
24028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24029 (exit $ac_status); }; } &&
24030 { ac_try='test -s conftest$ac_exeext'
24031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24032 (eval $ac_try) 2>&5
24034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035 (exit $ac_status); }; }; then
24036 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
24038 echo "$as_me: failed program was:" >&5
24039 sed 's/^/| /' conftest.$ac_ext >&5
24042 rm -f conftest.err conftest.$ac_objext \
24043 conftest$ac_exeext conftest.$ac_ext
24045 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
24046 LIBS="$ac_save_LIBS"
24052 eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
24056 for ac_func in dbm_firstkey
24058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24059 echo "$as_me:$LINENO: checking for $ac_func" >&5
24060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24061 if eval "test \"\${$as_ac_var+set}\" = set"; then
24062 echo $ECHO_N "(cached) $ECHO_C" >&6
24064 cat >conftest.$ac_ext <<_ACEOF
24067 cat confdefs.h >>conftest.$ac_ext
24068 cat >>conftest.$ac_ext <<_ACEOF
24069 /* end confdefs.h. */
24070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24072 #define $ac_func innocuous_$ac_func
24074 /* System header to define __stub macros and hopefully few prototypes,
24075 which can conflict with char $ac_func (); below.
24076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24077 <limits.h> exists even on freestanding compilers. */
24080 # include <limits.h>
24082 # include <assert.h>
24087 /* Override any gcc2 internal prototype to avoid an error. */
24092 /* We use char because int might match the return type of a gcc2
24093 builtin and then its argument prototype would still apply. */
24095 /* The GNU C library defines this for functions which it implements
24096 to always fail with ENOSYS. Some functions are actually named
24097 something starting with __ and the normal name is an alias. */
24098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24101 char (*f) () = $ac_func;
24110 return f != $ac_func;
24115 rm -f conftest.$ac_objext conftest$ac_exeext
24116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24117 (eval $ac_link) 2>conftest.er1
24119 grep -v '^ *+' conftest.er1 >conftest.err
24121 cat conftest.err >&5
24122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123 (exit $ac_status); } &&
24124 { ac_try='test -z "$ac_c_werror_flag"
24125 || test ! -s conftest.err'
24126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24127 (eval $ac_try) 2>&5
24129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130 (exit $ac_status); }; } &&
24131 { ac_try='test -s conftest$ac_exeext'
24132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24133 (eval $ac_try) 2>&5
24135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24136 (exit $ac_status); }; }; then
24137 eval "$as_ac_var=yes"
24139 echo "$as_me: failed program was:" >&5
24140 sed 's/^/| /' conftest.$ac_ext >&5
24142 eval "$as_ac_var=no"
24144 rm -f conftest.err conftest.$ac_objext \
24145 conftest$ac_exeext conftest.$ac_ext
24147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24148 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24149 if test `eval echo '${'$as_ac_var'}'` = yes; then
24150 cat >>confdefs.h <<_ACEOF
24151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24159 eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
24160 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
24161 eval "LIB_dbm_firstkey=$ac_res"
24165 eval "ac_cv_func_dbm_firstkey=yes"
24166 eval "LIB_dbm_firstkey="
24167 cat >>confdefs.h <<_ACEOF
24168 #define $ac_tr_func 1
24171 echo "$as_me:$LINENO: result: yes" >&5
24172 echo "${ECHO_T}yes" >&6
24175 eval "ac_cv_func_dbm_firstkey=no"
24176 eval "LIB_dbm_firstkey="
24177 echo "$as_me:$LINENO: result: no" >&5
24178 echo "${ECHO_T}no" >&6
24181 eval "ac_cv_func_dbm_firstkey=yes"
24182 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
24183 cat >>confdefs.h <<_ACEOF
24184 #define $ac_tr_func 1
24187 cat >>confdefs.h <<_ACEOF
24188 #define $ac_tr_lib 1
24191 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
24192 echo "${ECHO_T}yes, in $ac_res" >&6
24198 if test "$ac_cv_func_dbm_firstkey" = "yes"; then
24199 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
24200 LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
24205 cat >>confdefs.h <<\_ACEOF
24206 #define HAVE_NDBM 1
24209 if test "$db_type" = "unknown"; then
24218 if test "$have_ndbm" = "yes"; then
24219 echo "$as_me:$LINENO: checking if ndbm is implemented with db" >&5
24220 echo $ECHO_N "checking if ndbm is implemented with db... $ECHO_C" >&6
24221 if test "$cross_compiling" = yes; then
24222 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24223 See \`config.log' for more details." >&5
24224 echo "$as_me: error: cannot run test program while cross compiling
24225 See \`config.log' for more details." >&2;}
24226 { (exit 1); exit 1; }; }
24228 cat >conftest.$ac_ext <<_ACEOF
24231 cat confdefs.h >>conftest.$ac_ext
24232 cat >>conftest.$ac_ext <<_ACEOF
24233 /* end confdefs.h. */
24235 #include <unistd.h>
24237 #if defined(HAVE_GDBM_NDBM_H)
24238 #include <gdbm/ndbm.h>
24239 #elif defined(HAVE_NDBM_H)
24241 #elif defined(HAVE_DBM_H)
24248 d = dbm_open("conftest", O_RDWR | O_CREAT, 0666);
24255 rm -f conftest$ac_exeext
24256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24257 (eval $ac_link) 2>&5
24259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24262 (eval $ac_try) 2>&5
24264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24265 (exit $ac_status); }; }; then
24267 if test -f conftest.db; then
24268 echo "$as_me:$LINENO: result: yes" >&5
24269 echo "${ECHO_T}yes" >&6
24271 cat >>confdefs.h <<\_ACEOF
24272 #define HAVE_NEW_DB 1
24276 echo "$as_me:$LINENO: result: no" >&5
24277 echo "${ECHO_T}no" >&6
24280 echo "$as_me: program exited with status $ac_status" >&5
24281 echo "$as_me: failed program was:" >&5
24282 sed 's/^/| /' conftest.$ac_ext >&5
24284 ( exit $ac_status )
24285 echo "$as_me:$LINENO: result: no" >&5
24286 echo "${ECHO_T}no" >&6
24288 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24294 if test "$db_type" = db1; then
24303 if test "$db_type" = db3; then
24312 if test "$db_type" = ndbm; then
24314 HAVE_NDBM_FALSE='#'
24320 ## it's probably not correct to include LDFLAGS here, but we might
24321 ## need it, for now just add any possible -L
24323 for i in $LDFLAGS; do
24334 echo "$as_me:$LINENO: checking for inline" >&5
24335 echo $ECHO_N "checking for inline... $ECHO_C" >&6
24336 if test "${ac_cv_c_inline+set}" = set; then
24337 echo $ECHO_N "(cached) $ECHO_C" >&6
24340 for ac_kw in inline __inline__ __inline; do
24341 cat >conftest.$ac_ext <<_ACEOF
24344 cat confdefs.h >>conftest.$ac_ext
24345 cat >>conftest.$ac_ext <<_ACEOF
24346 /* end confdefs.h. */
24347 #ifndef __cplusplus
24349 static $ac_kw foo_t static_foo () {return 0; }
24350 $ac_kw foo_t foo () {return 0; }
24354 rm -f conftest.$ac_objext
24355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24356 (eval $ac_compile) 2>conftest.er1
24358 grep -v '^ *+' conftest.er1 >conftest.err
24360 cat conftest.err >&5
24361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24362 (exit $ac_status); } &&
24363 { ac_try='test -z "$ac_c_werror_flag"
24364 || test ! -s conftest.err'
24365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24366 (eval $ac_try) 2>&5
24368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24369 (exit $ac_status); }; } &&
24370 { ac_try='test -s conftest.$ac_objext'
24371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24372 (eval $ac_try) 2>&5
24374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24375 (exit $ac_status); }; }; then
24376 ac_cv_c_inline=$ac_kw; break
24378 echo "$as_me: failed program was:" >&5
24379 sed 's/^/| /' conftest.$ac_ext >&5
24382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24386 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24387 echo "${ECHO_T}$ac_cv_c_inline" >&6
24390 case $ac_cv_c_inline in
24393 case $ac_cv_c_inline in
24395 *) ac_val=$ac_cv_c_inline;;
24397 cat >>confdefs.h <<_ACEOF
24398 #ifndef __cplusplus
24399 #define inline $ac_val
24405 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24406 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
24407 if test "${ac_cv_c_const+set}" = set; then
24408 echo $ECHO_N "(cached) $ECHO_C" >&6
24410 cat >conftest.$ac_ext <<_ACEOF
24413 cat confdefs.h >>conftest.$ac_ext
24414 cat >>conftest.$ac_ext <<_ACEOF
24415 /* end confdefs.h. */
24420 /* FIXME: Include the comments suggested by Paul. */
24421 #ifndef __cplusplus
24422 /* Ultrix mips cc rejects this. */
24423 typedef int charset[2];
24425 /* SunOS 4.1.1 cc rejects this. */
24426 char const *const *ccp;
24428 /* NEC SVR4.0.2 mips cc rejects this. */
24429 struct point {int x, y;};
24430 static struct point const zero = {0,0};
24431 /* AIX XL C 1.02.0.0 rejects this.
24432 It does not let you subtract one const X* pointer from another in
24433 an arm of an if-expression whose if-part is not a constant
24435 const char *g = "string";
24436 ccp = &g + (g ? g-g : 0);
24437 /* HPUX 7.0 cc rejects these. */
24440 ccp = (char const *const *) p;
24441 { /* SCO 3.2v4 cc rejects this. */
24443 char const *s = 0 ? (char *) 0 : (char const *) 0;
24447 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24448 int x[] = {25, 17};
24449 const int *foo = &x[0];
24452 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24453 typedef const int *iptr;
24457 { /* AIX XL C 1.02.0.0 rejects this saying
24458 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24459 struct s { int j; const int *ap[3]; };
24460 struct s *b; b->j = 5;
24462 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24463 const int foo = 10;
24471 rm -f conftest.$ac_objext
24472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24473 (eval $ac_compile) 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_objext'
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
24495 echo "$as_me: failed program was:" >&5
24496 sed 's/^/| /' conftest.$ac_ext >&5
24500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24502 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24503 echo "${ECHO_T}$ac_cv_c_const" >&6
24504 if test $ac_cv_c_const = no; then
24506 cat >>confdefs.h <<\_ACEOF
24512 echo "$as_me:$LINENO: checking for size_t" >&5
24513 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
24514 if test "${ac_cv_type_size_t+set}" = set; then
24515 echo $ECHO_N "(cached) $ECHO_C" >&6
24517 cat >conftest.$ac_ext <<_ACEOF
24520 cat confdefs.h >>conftest.$ac_ext
24521 cat >>conftest.$ac_ext <<_ACEOF
24522 /* end confdefs.h. */
24523 $ac_includes_default
24529 if (sizeof (size_t))
24535 rm -f conftest.$ac_objext
24536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24537 (eval $ac_compile) 2>conftest.er1
24539 grep -v '^ *+' conftest.er1 >conftest.err
24541 cat conftest.err >&5
24542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543 (exit $ac_status); } &&
24544 { ac_try='test -z "$ac_c_werror_flag"
24545 || test ! -s conftest.err'
24546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24547 (eval $ac_try) 2>&5
24549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550 (exit $ac_status); }; } &&
24551 { ac_try='test -s conftest.$ac_objext'
24552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24553 (eval $ac_try) 2>&5
24555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24556 (exit $ac_status); }; }; then
24557 ac_cv_type_size_t=yes
24559 echo "$as_me: failed program was:" >&5
24560 sed 's/^/| /' conftest.$ac_ext >&5
24562 ac_cv_type_size_t=no
24564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24566 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24567 echo "${ECHO_T}$ac_cv_type_size_t" >&6
24568 if test $ac_cv_type_size_t = yes; then
24572 cat >>confdefs.h <<_ACEOF
24573 #define size_t unsigned
24578 echo "$as_me:$LINENO: checking for pid_t" >&5
24579 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
24580 if test "${ac_cv_type_pid_t+set}" = set; then
24581 echo $ECHO_N "(cached) $ECHO_C" >&6
24583 cat >conftest.$ac_ext <<_ACEOF
24586 cat confdefs.h >>conftest.$ac_ext
24587 cat >>conftest.$ac_ext <<_ACEOF
24588 /* end confdefs.h. */
24589 $ac_includes_default
24595 if (sizeof (pid_t))
24601 rm -f conftest.$ac_objext
24602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24603 (eval $ac_compile) 2>conftest.er1
24605 grep -v '^ *+' conftest.er1 >conftest.err
24607 cat conftest.err >&5
24608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24609 (exit $ac_status); } &&
24610 { ac_try='test -z "$ac_c_werror_flag"
24611 || test ! -s conftest.err'
24612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24613 (eval $ac_try) 2>&5
24615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616 (exit $ac_status); }; } &&
24617 { ac_try='test -s conftest.$ac_objext'
24618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24619 (eval $ac_try) 2>&5
24621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24622 (exit $ac_status); }; }; then
24623 ac_cv_type_pid_t=yes
24625 echo "$as_me: failed program was:" >&5
24626 sed 's/^/| /' conftest.$ac_ext >&5
24628 ac_cv_type_pid_t=no
24630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24632 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24633 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
24634 if test $ac_cv_type_pid_t = yes; then
24638 cat >>confdefs.h <<_ACEOF
24644 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24645 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
24646 if test "${ac_cv_type_uid_t+set}" = set; then
24647 echo $ECHO_N "(cached) $ECHO_C" >&6
24649 cat >conftest.$ac_ext <<_ACEOF
24652 cat confdefs.h >>conftest.$ac_ext
24653 cat >>conftest.$ac_ext <<_ACEOF
24654 /* end confdefs.h. */
24655 #include <sys/types.h>
24658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24659 $EGREP "uid_t" >/dev/null 2>&1; then
24660 ac_cv_type_uid_t=yes
24662 ac_cv_type_uid_t=no
24667 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24668 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
24669 if test $ac_cv_type_uid_t = no; then
24671 cat >>confdefs.h <<\_ACEOF
24676 cat >>confdefs.h <<\_ACEOF
24683 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24684 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
24685 if test "${ac_cv_type_signal+set}" = set; then
24686 echo $ECHO_N "(cached) $ECHO_C" >&6
24688 cat >conftest.$ac_ext <<_ACEOF
24691 cat confdefs.h >>conftest.$ac_ext
24692 cat >>conftest.$ac_ext <<_ACEOF
24693 /* end confdefs.h. */
24694 #include <sys/types.h>
24695 #include <signal.h>
24700 extern "C" void (*signal (int, void (*)(int)))(int);
24702 void (*signal ()) ();
24713 rm -f conftest.$ac_objext
24714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24715 (eval $ac_compile) 2>conftest.er1
24717 grep -v '^ *+' conftest.er1 >conftest.err
24719 cat conftest.err >&5
24720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721 (exit $ac_status); } &&
24722 { ac_try='test -z "$ac_c_werror_flag"
24723 || test ! -s conftest.err'
24724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24725 (eval $ac_try) 2>&5
24727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728 (exit $ac_status); }; } &&
24729 { ac_try='test -s conftest.$ac_objext'
24730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24731 (eval $ac_try) 2>&5
24733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734 (exit $ac_status); }; }; then
24735 ac_cv_type_signal=void
24737 echo "$as_me: failed program was:" >&5
24738 sed 's/^/| /' conftest.$ac_ext >&5
24740 ac_cv_type_signal=int
24742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24744 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24745 echo "${ECHO_T}$ac_cv_type_signal" >&6
24747 cat >>confdefs.h <<_ACEOF
24748 #define RETSIGTYPE $ac_cv_type_signal
24752 if test "$ac_cv_type_signal" = "void" ; then
24754 cat >>confdefs.h <<\_ACEOF
24755 #define VOID_RETSIGTYPE 1
24763 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24764 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
24765 if test "${ac_cv_header_time+set}" = set; then
24766 echo $ECHO_N "(cached) $ECHO_C" >&6
24768 cat >conftest.$ac_ext <<_ACEOF
24771 cat confdefs.h >>conftest.$ac_ext
24772 cat >>conftest.$ac_ext <<_ACEOF
24773 /* end confdefs.h. */
24774 #include <sys/types.h>
24775 #include <sys/time.h>
24781 if ((struct tm *) 0)
24787 rm -f conftest.$ac_objext
24788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24789 (eval $ac_compile) 2>conftest.er1
24791 grep -v '^ *+' conftest.er1 >conftest.err
24793 cat conftest.err >&5
24794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795 (exit $ac_status); } &&
24796 { ac_try='test -z "$ac_c_werror_flag"
24797 || test ! -s conftest.err'
24798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24799 (eval $ac_try) 2>&5
24801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802 (exit $ac_status); }; } &&
24803 { ac_try='test -s conftest.$ac_objext'
24804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24805 (eval $ac_try) 2>&5
24807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808 (exit $ac_status); }; }; then
24809 ac_cv_header_time=yes
24811 echo "$as_me: failed program was:" >&5
24812 sed 's/^/| /' conftest.$ac_ext >&5
24814 ac_cv_header_time=no
24816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24818 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24819 echo "${ECHO_T}$ac_cv_header_time" >&6
24820 if test $ac_cv_header_time = yes; then
24822 cat >>confdefs.h <<\_ACEOF
24823 #define TIME_WITH_SYS_TIME 1
24830 for ac_header in standards.h
24832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24834 echo "$as_me:$LINENO: checking for $ac_header" >&5
24835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24837 echo $ECHO_N "(cached) $ECHO_C" >&6
24839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24842 # Is the header compilable?
24843 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24845 cat >conftest.$ac_ext <<_ACEOF
24848 cat confdefs.h >>conftest.$ac_ext
24849 cat >>conftest.$ac_ext <<_ACEOF
24850 /* end confdefs.h. */
24851 $ac_includes_default
24852 #include <$ac_header>
24854 rm -f conftest.$ac_objext
24855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24856 (eval $ac_compile) 2>conftest.er1
24858 grep -v '^ *+' conftest.er1 >conftest.err
24860 cat conftest.err >&5
24861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24862 (exit $ac_status); } &&
24863 { ac_try='test -z "$ac_c_werror_flag"
24864 || test ! -s conftest.err'
24865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24866 (eval $ac_try) 2>&5
24868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869 (exit $ac_status); }; } &&
24870 { ac_try='test -s conftest.$ac_objext'
24871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24872 (eval $ac_try) 2>&5
24874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24875 (exit $ac_status); }; }; then
24876 ac_header_compiler=yes
24878 echo "$as_me: failed program was:" >&5
24879 sed 's/^/| /' conftest.$ac_ext >&5
24881 ac_header_compiler=no
24883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24885 echo "${ECHO_T}$ac_header_compiler" >&6
24887 # Is the header present?
24888 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24890 cat >conftest.$ac_ext <<_ACEOF
24893 cat confdefs.h >>conftest.$ac_ext
24894 cat >>conftest.$ac_ext <<_ACEOF
24895 /* end confdefs.h. */
24896 #include <$ac_header>
24898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24901 grep -v '^ *+' conftest.er1 >conftest.err
24903 cat conftest.err >&5
24904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905 (exit $ac_status); } >/dev/null; then
24906 if test -s conftest.err; then
24907 ac_cpp_err=$ac_c_preproc_warn_flag
24908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24915 if test -z "$ac_cpp_err"; then
24916 ac_header_preproc=yes
24918 echo "$as_me: failed program was:" >&5
24919 sed 's/^/| /' conftest.$ac_ext >&5
24921 ac_header_preproc=no
24923 rm -f conftest.err conftest.$ac_ext
24924 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24925 echo "${ECHO_T}$ac_header_preproc" >&6
24927 # So? What about this header?
24928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24934 ac_header_preproc=yes
24937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24940 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24941 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24942 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24943 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24944 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24947 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24948 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24951 ## -------------------------------------- ##
24952 ## Report this to heimdal-bugs@pdc.kth.se ##
24953 ## -------------------------------------- ##
24956 sed "s/^/$as_me: WARNING: /" >&2
24959 echo "$as_me:$LINENO: checking for $ac_header" >&5
24960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24962 echo $ECHO_N "(cached) $ECHO_C" >&6
24964 eval "$as_ac_Header=\$ac_header_preproc"
24966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24971 cat >>confdefs.h <<_ACEOF
24972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24979 for i in netinet/ip.h netinet/tcp.h; do
24981 cv=`echo "$i" | sed 'y%./+-%__p_%'`
24983 echo "$as_me:$LINENO: checking for $i" >&5
24984 echo $ECHO_N "checking for $i... $ECHO_C" >&6
24985 if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then
24986 echo $ECHO_N "(cached) $ECHO_C" >&6
24988 cat >conftest.$ac_ext <<_ACEOF
24991 cat confdefs.h >>conftest.$ac_ext
24992 cat >>conftest.$ac_ext <<_ACEOF
24993 /* end confdefs.h. */
24995 #ifdef HAVE_STANDARDS_H
24996 #include <standards.h>
25001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25004 grep -v '^ *+' conftest.er1 >conftest.err
25006 cat conftest.err >&5
25007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008 (exit $ac_status); } >/dev/null; then
25009 if test -s conftest.err; then
25010 ac_cpp_err=$ac_c_preproc_warn_flag
25011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25018 if test -z "$ac_cpp_err"; then
25019 eval "ac_cv_header_$cv=yes"
25021 echo "$as_me: failed program was:" >&5
25022 sed 's/^/| /' conftest.$ac_ext >&5
25024 eval "ac_cv_header_$cv=no"
25026 rm -f conftest.err conftest.$ac_ext
25028 echo "$as_me:$LINENO: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5
25029 echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6
25030 ac_res=`eval echo \\$ac_cv_header_$cv`
25031 if test "$ac_res" = yes; then
25032 ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
25033 cat >>confdefs.h <<_ACEOF
25034 #define $ac_tr_hdr 1
25042 for ac_header in netinet/ip.h netinet/tcp.h
25044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25046 echo "$as_me:$LINENO: checking for $ac_header" >&5
25047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25049 echo $ECHO_N "(cached) $ECHO_C" >&6
25051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25054 # Is the header compilable?
25055 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25057 cat >conftest.$ac_ext <<_ACEOF
25060 cat confdefs.h >>conftest.$ac_ext
25061 cat >>conftest.$ac_ext <<_ACEOF
25062 /* end confdefs.h. */
25063 $ac_includes_default
25064 #include <$ac_header>
25066 rm -f conftest.$ac_objext
25067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25068 (eval $ac_compile) 2>conftest.er1
25070 grep -v '^ *+' conftest.er1 >conftest.err
25072 cat conftest.err >&5
25073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074 (exit $ac_status); } &&
25075 { ac_try='test -z "$ac_c_werror_flag"
25076 || test ! -s conftest.err'
25077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25078 (eval $ac_try) 2>&5
25080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25081 (exit $ac_status); }; } &&
25082 { ac_try='test -s conftest.$ac_objext'
25083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25084 (eval $ac_try) 2>&5
25086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087 (exit $ac_status); }; }; then
25088 ac_header_compiler=yes
25090 echo "$as_me: failed program was:" >&5
25091 sed 's/^/| /' conftest.$ac_ext >&5
25093 ac_header_compiler=no
25095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25096 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25097 echo "${ECHO_T}$ac_header_compiler" >&6
25099 # Is the header present?
25100 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25101 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25102 cat >conftest.$ac_ext <<_ACEOF
25105 cat confdefs.h >>conftest.$ac_ext
25106 cat >>conftest.$ac_ext <<_ACEOF
25107 /* end confdefs.h. */
25108 #include <$ac_header>
25110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25113 grep -v '^ *+' conftest.er1 >conftest.err
25115 cat conftest.err >&5
25116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25117 (exit $ac_status); } >/dev/null; then
25118 if test -s conftest.err; then
25119 ac_cpp_err=$ac_c_preproc_warn_flag
25120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25127 if test -z "$ac_cpp_err"; then
25128 ac_header_preproc=yes
25130 echo "$as_me: failed program was:" >&5
25131 sed 's/^/| /' conftest.$ac_ext >&5
25133 ac_header_preproc=no
25135 rm -f conftest.err conftest.$ac_ext
25136 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25137 echo "${ECHO_T}$ac_header_preproc" >&6
25139 # So? What about this header?
25140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25146 ac_header_preproc=yes
25149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25152 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25156 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25163 ## -------------------------------------- ##
25164 ## Report this to heimdal-bugs@pdc.kth.se ##
25165 ## -------------------------------------- ##
25168 sed "s/^/$as_me: WARNING: /" >&2
25171 echo "$as_me:$LINENO: checking for $ac_header" >&5
25172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25174 echo $ECHO_N "(cached) $ECHO_C" >&6
25176 eval "$as_ac_Header=\$ac_header_preproc"
25178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25183 cat >>confdefs.h <<_ACEOF
25184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25196 for ac_func in getlogin setlogin
25198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25199 echo "$as_me:$LINENO: checking for $ac_func" >&5
25200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25201 if eval "test \"\${$as_ac_var+set}\" = set"; then
25202 echo $ECHO_N "(cached) $ECHO_C" >&6
25204 cat >conftest.$ac_ext <<_ACEOF
25207 cat confdefs.h >>conftest.$ac_ext
25208 cat >>conftest.$ac_ext <<_ACEOF
25209 /* end confdefs.h. */
25210 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25212 #define $ac_func innocuous_$ac_func
25214 /* System header to define __stub macros and hopefully few prototypes,
25215 which can conflict with char $ac_func (); below.
25216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25217 <limits.h> exists even on freestanding compilers. */
25220 # include <limits.h>
25222 # include <assert.h>
25227 /* Override any gcc2 internal prototype to avoid an error. */
25232 /* We use char because int might match the return type of a gcc2
25233 builtin and then its argument prototype would still apply. */
25235 /* The GNU C library defines this for functions which it implements
25236 to always fail with ENOSYS. Some functions are actually named
25237 something starting with __ and the normal name is an alias. */
25238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25241 char (*f) () = $ac_func;
25250 return f != $ac_func;
25255 rm -f conftest.$ac_objext conftest$ac_exeext
25256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25257 (eval $ac_link) 2>conftest.er1
25259 grep -v '^ *+' conftest.er1 >conftest.err
25261 cat conftest.err >&5
25262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25263 (exit $ac_status); } &&
25264 { ac_try='test -z "$ac_c_werror_flag"
25265 || test ! -s conftest.err'
25266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25267 (eval $ac_try) 2>&5
25269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270 (exit $ac_status); }; } &&
25271 { ac_try='test -s conftest$ac_exeext'
25272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25273 (eval $ac_try) 2>&5
25275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276 (exit $ac_status); }; }; then
25277 eval "$as_ac_var=yes"
25279 echo "$as_me: failed program was:" >&5
25280 sed 's/^/| /' conftest.$ac_ext >&5
25282 eval "$as_ac_var=no"
25284 rm -f conftest.err conftest.$ac_objext \
25285 conftest$ac_exeext conftest.$ac_ext
25287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25288 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25289 if test `eval echo '${'$as_ac_var'}'` = yes; then
25290 cat >>confdefs.h <<_ACEOF
25291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25297 if test "$ac_cv_func_getlogin" = yes; then
25298 echo "$as_me:$LINENO: checking if getlogin is posix" >&5
25299 echo $ECHO_N "checking if getlogin is posix... $ECHO_C" >&6
25300 if test "${ac_cv_func_getlogin_posix+set}" = set; then
25301 echo $ECHO_N "(cached) $ECHO_C" >&6
25304 if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
25305 ac_cv_func_getlogin_posix=no
25307 ac_cv_func_getlogin_posix=yes
25311 echo "$as_me:$LINENO: result: $ac_cv_func_getlogin_posix" >&5
25312 echo "${ECHO_T}$ac_cv_func_getlogin_posix" >&6
25313 if test "$ac_cv_func_getlogin_posix" = yes; then
25315 cat >>confdefs.h <<\_ACEOF
25316 #define POSIX_GETLOGIN 1
25324 for ac_header in stdlib.h unistd.h
25326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25328 echo "$as_me:$LINENO: checking for $ac_header" >&5
25329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25331 echo $ECHO_N "(cached) $ECHO_C" >&6
25333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25336 # Is the header compilable?
25337 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25339 cat >conftest.$ac_ext <<_ACEOF
25342 cat confdefs.h >>conftest.$ac_ext
25343 cat >>conftest.$ac_ext <<_ACEOF
25344 /* end confdefs.h. */
25345 $ac_includes_default
25346 #include <$ac_header>
25348 rm -f conftest.$ac_objext
25349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25350 (eval $ac_compile) 2>conftest.er1
25352 grep -v '^ *+' conftest.er1 >conftest.err
25354 cat conftest.err >&5
25355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356 (exit $ac_status); } &&
25357 { ac_try='test -z "$ac_c_werror_flag"
25358 || test ! -s conftest.err'
25359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25360 (eval $ac_try) 2>&5
25362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363 (exit $ac_status); }; } &&
25364 { ac_try='test -s conftest.$ac_objext'
25365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25366 (eval $ac_try) 2>&5
25368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25369 (exit $ac_status); }; }; then
25370 ac_header_compiler=yes
25372 echo "$as_me: failed program was:" >&5
25373 sed 's/^/| /' conftest.$ac_ext >&5
25375 ac_header_compiler=no
25377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25379 echo "${ECHO_T}$ac_header_compiler" >&6
25381 # Is the header present?
25382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25384 cat >conftest.$ac_ext <<_ACEOF
25387 cat confdefs.h >>conftest.$ac_ext
25388 cat >>conftest.$ac_ext <<_ACEOF
25389 /* end confdefs.h. */
25390 #include <$ac_header>
25392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25395 grep -v '^ *+' conftest.er1 >conftest.err
25397 cat conftest.err >&5
25398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25399 (exit $ac_status); } >/dev/null; then
25400 if test -s conftest.err; then
25401 ac_cpp_err=$ac_c_preproc_warn_flag
25402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25409 if test -z "$ac_cpp_err"; then
25410 ac_header_preproc=yes
25412 echo "$as_me: failed program was:" >&5
25413 sed 's/^/| /' conftest.$ac_ext >&5
25415 ac_header_preproc=no
25417 rm -f conftest.err conftest.$ac_ext
25418 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25419 echo "${ECHO_T}$ac_header_preproc" >&6
25421 # So? What about this header?
25422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25428 ac_header_preproc=yes
25431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25434 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25438 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25445 ## -------------------------------------- ##
25446 ## Report this to heimdal-bugs@pdc.kth.se ##
25447 ## -------------------------------------- ##
25450 sed "s/^/$as_me: WARNING: /" >&2
25453 echo "$as_me:$LINENO: checking for $ac_header" >&5
25454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25456 echo $ECHO_N "(cached) $ECHO_C" >&6
25458 eval "$as_ac_Header=\$ac_header_preproc"
25460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25465 cat >>confdefs.h <<_ACEOF
25466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25474 for ac_func in getpagesize
25476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25477 echo "$as_me:$LINENO: checking for $ac_func" >&5
25478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25479 if eval "test \"\${$as_ac_var+set}\" = set"; then
25480 echo $ECHO_N "(cached) $ECHO_C" >&6
25482 cat >conftest.$ac_ext <<_ACEOF
25485 cat confdefs.h >>conftest.$ac_ext
25486 cat >>conftest.$ac_ext <<_ACEOF
25487 /* end confdefs.h. */
25488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25490 #define $ac_func innocuous_$ac_func
25492 /* System header to define __stub macros and hopefully few prototypes,
25493 which can conflict with char $ac_func (); below.
25494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25495 <limits.h> exists even on freestanding compilers. */
25498 # include <limits.h>
25500 # include <assert.h>
25505 /* Override any gcc2 internal prototype to avoid an error. */
25510 /* We use char because int might match the return type of a gcc2
25511 builtin and then its argument prototype would still apply. */
25513 /* The GNU C library defines this for functions which it implements
25514 to always fail with ENOSYS. Some functions are actually named
25515 something starting with __ and the normal name is an alias. */
25516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25519 char (*f) () = $ac_func;
25528 return f != $ac_func;
25533 rm -f conftest.$ac_objext conftest$ac_exeext
25534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25535 (eval $ac_link) 2>conftest.er1
25537 grep -v '^ *+' conftest.er1 >conftest.err
25539 cat conftest.err >&5
25540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541 (exit $ac_status); } &&
25542 { ac_try='test -z "$ac_c_werror_flag"
25543 || test ! -s conftest.err'
25544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25545 (eval $ac_try) 2>&5
25547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25548 (exit $ac_status); }; } &&
25549 { ac_try='test -s conftest$ac_exeext'
25550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25551 (eval $ac_try) 2>&5
25553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554 (exit $ac_status); }; }; then
25555 eval "$as_ac_var=yes"
25557 echo "$as_me: failed program was:" >&5
25558 sed 's/^/| /' conftest.$ac_ext >&5
25560 eval "$as_ac_var=no"
25562 rm -f conftest.err conftest.$ac_objext \
25563 conftest$ac_exeext conftest.$ac_ext
25565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25566 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25567 if test `eval echo '${'$as_ac_var'}'` = yes; then
25568 cat >>confdefs.h <<_ACEOF
25569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25575 echo "$as_me:$LINENO: checking for working mmap" >&5
25576 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
25577 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
25578 echo $ECHO_N "(cached) $ECHO_C" >&6
25580 if test "$cross_compiling" = yes; then
25581 ac_cv_func_mmap_fixed_mapped=no
25583 cat >conftest.$ac_ext <<_ACEOF
25586 cat confdefs.h >>conftest.$ac_ext
25587 cat >>conftest.$ac_ext <<_ACEOF
25588 /* end confdefs.h. */
25589 $ac_includes_default
25590 /* malloc might have been renamed as rpl_malloc. */
25593 /* Thanks to Mike Haertel and Jim Avera for this test.
25594 Here is a matrix of mmap possibilities:
25595 mmap private not fixed
25596 mmap private fixed at somewhere currently unmapped
25597 mmap private fixed at somewhere already mapped
25598 mmap shared not fixed
25599 mmap shared fixed at somewhere currently unmapped
25600 mmap shared fixed at somewhere already mapped
25601 For private mappings, we should verify that changes cannot be read()
25602 back from the file, nor mmap's back from the file at a different
25603 address. (There have been systems where private was not correctly
25604 implemented like the infamous i386 svr4.0, and systems where the
25605 VM page cache was not coherent with the file system buffer cache
25606 like early versions of FreeBSD and possibly contemporary NetBSD.)
25607 For shared mappings, we should conversely verify that changes get
25608 propagated back to all the places they're supposed to be.
25610 Grep wants private fixed already mapped.
25611 The main things grep needs to know about mmap are:
25612 * does it exist and is it safe to write into the mmap'd area
25613 * how to use it (BSD variants) */
25616 #include <sys/mman.h>
25618 #if !STDC_HEADERS && !HAVE_STDLIB_H
25622 /* This mess was copied from the GNU getpagesize.h. */
25623 #if !HAVE_GETPAGESIZE
25624 /* Assume that all systems that can run configure have sys/param.h. */
25625 # if !HAVE_SYS_PARAM_H
25626 # define HAVE_SYS_PARAM_H 1
25629 # ifdef _SC_PAGESIZE
25630 # define getpagesize() sysconf(_SC_PAGESIZE)
25631 # else /* no _SC_PAGESIZE */
25632 # if HAVE_SYS_PARAM_H
25633 # include <sys/param.h>
25634 # ifdef EXEC_PAGESIZE
25635 # define getpagesize() EXEC_PAGESIZE
25636 # else /* no EXEC_PAGESIZE */
25638 # define getpagesize() NBPG * CLSIZE
25641 # endif /* no CLSIZE */
25642 # else /* no NBPG */
25644 # define getpagesize() NBPC
25645 # else /* no NBPC */
25647 # define getpagesize() PAGESIZE
25648 # endif /* PAGESIZE */
25649 # endif /* no NBPC */
25650 # endif /* no NBPG */
25651 # endif /* no EXEC_PAGESIZE */
25652 # else /* no HAVE_SYS_PARAM_H */
25653 # define getpagesize() 8192 /* punt totally */
25654 # endif /* no HAVE_SYS_PARAM_H */
25655 # endif /* no _SC_PAGESIZE */
25657 #endif /* no HAVE_GETPAGESIZE */
25662 char *data, *data2, *data3;
25666 pagesize = getpagesize ();
25668 /* First, make a file with some known garbage in it. */
25669 data = (char *) malloc (pagesize);
25672 for (i = 0; i < pagesize; ++i)
25673 *(data + i) = rand ();
25675 fd = creat ("conftest.mmap", 0600);
25678 if (write (fd, data, pagesize) != pagesize)
25682 /* Next, try to mmap the file at a fixed address which already has
25683 something else allocated at it. If we can, also make sure that
25684 we see the same garbage. */
25685 fd = open ("conftest.mmap", O_RDWR);
25688 data2 = (char *) malloc (2 * pagesize);
25691 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
25692 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
25693 MAP_PRIVATE | MAP_FIXED, fd, 0L))
25695 for (i = 0; i < pagesize; ++i)
25696 if (*(data + i) != *(data2 + i))
25699 /* Finally, make sure that changes to the mapped area do not
25700 percolate back to the file as seen by read(). (This is a bug on
25701 some variants of i386 svr4.0.) */
25702 for (i = 0; i < pagesize; ++i)
25703 *(data2 + i) = *(data2 + i) + 1;
25704 data3 = (char *) malloc (pagesize);
25707 if (read (fd, data3, pagesize) != pagesize)
25709 for (i = 0; i < pagesize; ++i)
25710 if (*(data + i) != *(data3 + i))
25716 rm -f conftest$ac_exeext
25717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25718 (eval $ac_link) 2>&5
25720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25723 (eval $ac_try) 2>&5
25725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25726 (exit $ac_status); }; }; then
25727 ac_cv_func_mmap_fixed_mapped=yes
25729 echo "$as_me: program exited with status $ac_status" >&5
25730 echo "$as_me: failed program was:" >&5
25731 sed 's/^/| /' conftest.$ac_ext >&5
25733 ( exit $ac_status )
25734 ac_cv_func_mmap_fixed_mapped=no
25736 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25739 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
25740 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
25741 if test $ac_cv_func_mmap_fixed_mapped = yes; then
25743 cat >>confdefs.h <<\_ACEOF
25744 #define HAVE_MMAP 1
25748 rm -f conftest.mmap
25751 echo "$as_me:$LINENO: checking if realloc if broken" >&5
25752 echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6
25753 if test "${ac_cv_func_realloc_broken+set}" = set; then
25754 echo $ECHO_N "(cached) $ECHO_C" >&6
25757 ac_cv_func_realloc_broken=no
25758 if test "$cross_compiling" = yes; then
25761 cat >conftest.$ac_ext <<_ACEOF
25764 cat confdefs.h >>conftest.$ac_ext
25765 cat >>conftest.$ac_ext <<_ACEOF
25766 /* end confdefs.h. */
25768 #include <stddef.h>
25769 #include <stdlib.h>
25773 return realloc(NULL, 17) == NULL;
25777 rm -f conftest$ac_exeext
25778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25779 (eval $ac_link) 2>&5
25781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25784 (eval $ac_try) 2>&5
25786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787 (exit $ac_status); }; }; then
25790 echo "$as_me: program exited with status $ac_status" >&5
25791 echo "$as_me: failed program was:" >&5
25792 sed 's/^/| /' conftest.$ac_ext >&5
25794 ( exit $ac_status )
25795 ac_cv_func_realloc_broken=yes
25797 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25801 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_broken" >&5
25802 echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6
25803 if test "$ac_cv_func_realloc_broken" = yes ; then
25805 cat >>confdefs.h <<\_ACEOF
25806 #define BROKEN_REALLOC 1
25818 LIB_roken='$(top_builddir)/lib/roken/libroken.la'
25819 INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken'
25835 WFLAGS_NOIMPLICITINT=""
25836 if test -z "$WFLAGS" -a "$GCC" = "yes"; then
25837 # -Wno-implicit-int for broken X11 headers
25838 # leave these out for now:
25839 # -Wcast-align doesn't work well on alpha osf/1
25840 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
25841 # -Wmissing-declarations -Wnested-externs
25842 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
25843 WFLAGS_NOUNUSED="-Wno-unused"
25844 WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
25854 cv=`echo "ssize_t" | sed 'y%./+- %__p__%'`
25855 echo "$as_me:$LINENO: checking for ssize_t" >&5
25856 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
25857 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
25858 echo $ECHO_N "(cached) $ECHO_C" >&6
25860 cat >conftest.$ac_ext <<_ACEOF
25863 cat confdefs.h >>conftest.$ac_ext
25864 cat >>conftest.$ac_ext <<_ACEOF
25865 /* end confdefs.h. */
25866 #include <sys/types.h>
25868 #include <stdlib.h>
25869 #include <stddef.h>
25871 #include <unistd.h>
25880 rm -f conftest.$ac_objext
25881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25882 (eval $ac_compile) 2>conftest.er1
25884 grep -v '^ *+' conftest.er1 >conftest.err
25886 cat conftest.err >&5
25887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888 (exit $ac_status); } &&
25889 { ac_try='test -z "$ac_c_werror_flag"
25890 || test ! -s conftest.err'
25891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25892 (eval $ac_try) 2>&5
25894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895 (exit $ac_status); }; } &&
25896 { ac_try='test -s conftest.$ac_objext'
25897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25898 (eval $ac_try) 2>&5
25900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901 (exit $ac_status); }; }; then
25902 eval "ac_cv_type_$cv=yes"
25904 echo "$as_me: failed program was:" >&5
25905 sed 's/^/| /' conftest.$ac_ext >&5
25907 eval "ac_cv_type_$cv=no"
25909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25911 ac_foo=`eval echo \\$ac_cv_type_$cv`
25912 echo "$as_me:$LINENO: result: $ac_foo" >&5
25913 echo "${ECHO_T}$ac_foo" >&6
25914 if test "$ac_foo" = yes; then
25915 ac_tr_hdr=HAVE_`echo ssize_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
25917 echo "$as_me:$LINENO: checking for ssize_t" >&5
25918 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
25919 if test "${ac_cv_type_ssize_t+set}" = set; then
25920 echo $ECHO_N "(cached) $ECHO_C" >&6
25922 cat >conftest.$ac_ext <<_ACEOF
25925 cat confdefs.h >>conftest.$ac_ext
25926 cat >>conftest.$ac_ext <<_ACEOF
25927 /* end confdefs.h. */
25928 $ac_includes_default
25934 if (sizeof (ssize_t))
25940 rm -f conftest.$ac_objext
25941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25942 (eval $ac_compile) 2>conftest.er1
25944 grep -v '^ *+' conftest.er1 >conftest.err
25946 cat conftest.err >&5
25947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25948 (exit $ac_status); } &&
25949 { ac_try='test -z "$ac_c_werror_flag"
25950 || test ! -s conftest.err'
25951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25952 (eval $ac_try) 2>&5
25954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955 (exit $ac_status); }; } &&
25956 { ac_try='test -s conftest.$ac_objext'
25957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25958 (eval $ac_try) 2>&5
25960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25961 (exit $ac_status); }; }; then
25962 ac_cv_type_ssize_t=yes
25964 echo "$as_me: failed program was:" >&5
25965 sed 's/^/| /' conftest.$ac_ext >&5
25967 ac_cv_type_ssize_t=no
25969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25971 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
25972 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
25973 if test $ac_cv_type_ssize_t = yes; then
25975 cat >>confdefs.h <<_ACEOF
25976 #define HAVE_SSIZE_T 1
25984 cat >>confdefs.h <<_ACEOF
25985 #define $ac_tr_hdr 1
25994 cv=`echo "long long" | sed 'y%./+- %__p__%'`
25995 echo "$as_me:$LINENO: checking for long long" >&5
25996 echo $ECHO_N "checking for long long... $ECHO_C" >&6
25997 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
25998 echo $ECHO_N "(cached) $ECHO_C" >&6
26000 cat >conftest.$ac_ext <<_ACEOF
26003 cat confdefs.h >>conftest.$ac_ext
26004 cat >>conftest.$ac_ext <<_ACEOF
26005 /* end confdefs.h. */
26006 #include <sys/types.h>
26008 #include <stdlib.h>
26009 #include <stddef.h>
26020 rm -f conftest.$ac_objext
26021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26022 (eval $ac_compile) 2>conftest.er1
26024 grep -v '^ *+' conftest.er1 >conftest.err
26026 cat conftest.err >&5
26027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26028 (exit $ac_status); } &&
26029 { ac_try='test -z "$ac_c_werror_flag"
26030 || test ! -s conftest.err'
26031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26032 (eval $ac_try) 2>&5
26034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26035 (exit $ac_status); }; } &&
26036 { ac_try='test -s conftest.$ac_objext'
26037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26038 (eval $ac_try) 2>&5
26040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26041 (exit $ac_status); }; }; then
26042 eval "ac_cv_type_$cv=yes"
26044 echo "$as_me: failed program was:" >&5
26045 sed 's/^/| /' conftest.$ac_ext >&5
26047 eval "ac_cv_type_$cv=no"
26049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26051 ac_foo=`eval echo \\$ac_cv_type_$cv`
26052 echo "$as_me:$LINENO: result: $ac_foo" >&5
26053 echo "${ECHO_T}$ac_foo" >&6
26054 if test "$ac_foo" = yes; then
26055 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
26057 echo "$as_me:$LINENO: checking for long long" >&5
26058 echo $ECHO_N "checking for long long... $ECHO_C" >&6
26059 if test "${ac_cv_type_long_long+set}" = set; then
26060 echo $ECHO_N "(cached) $ECHO_C" >&6
26062 cat >conftest.$ac_ext <<_ACEOF
26065 cat confdefs.h >>conftest.$ac_ext
26066 cat >>conftest.$ac_ext <<_ACEOF
26067 /* end confdefs.h. */
26068 $ac_includes_default
26072 if ((long long *) 0)
26074 if (sizeof (long long))
26080 rm -f conftest.$ac_objext
26081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26082 (eval $ac_compile) 2>conftest.er1
26084 grep -v '^ *+' conftest.er1 >conftest.err
26086 cat conftest.err >&5
26087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26088 (exit $ac_status); } &&
26089 { ac_try='test -z "$ac_c_werror_flag"
26090 || test ! -s conftest.err'
26091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26092 (eval $ac_try) 2>&5
26094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095 (exit $ac_status); }; } &&
26096 { ac_try='test -s conftest.$ac_objext'
26097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26098 (eval $ac_try) 2>&5
26100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26101 (exit $ac_status); }; }; then
26102 ac_cv_type_long_long=yes
26104 echo "$as_me: failed program was:" >&5
26105 sed 's/^/| /' conftest.$ac_ext >&5
26107 ac_cv_type_long_long=no
26109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26111 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
26112 echo "${ECHO_T}$ac_cv_type_long_long" >&6
26113 if test $ac_cv_type_long_long = yes; then
26115 cat >>confdefs.h <<_ACEOF
26116 #define HAVE_LONG_LONG 1
26124 cat >>confdefs.h <<_ACEOF
26125 #define $ac_tr_hdr 1
26196 netinet/in_systm.h \
26198 netinet6/in6_var.h \
26229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26231 echo "$as_me:$LINENO: checking for $ac_header" >&5
26232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26234 echo $ECHO_N "(cached) $ECHO_C" >&6
26236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26239 # Is the header compilable?
26240 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26242 cat >conftest.$ac_ext <<_ACEOF
26245 cat confdefs.h >>conftest.$ac_ext
26246 cat >>conftest.$ac_ext <<_ACEOF
26247 /* end confdefs.h. */
26248 $ac_includes_default
26249 #include <$ac_header>
26251 rm -f conftest.$ac_objext
26252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26253 (eval $ac_compile) 2>conftest.er1
26255 grep -v '^ *+' conftest.er1 >conftest.err
26257 cat conftest.err >&5
26258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259 (exit $ac_status); } &&
26260 { ac_try='test -z "$ac_c_werror_flag"
26261 || test ! -s conftest.err'
26262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26263 (eval $ac_try) 2>&5
26265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26266 (exit $ac_status); }; } &&
26267 { ac_try='test -s conftest.$ac_objext'
26268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26269 (eval $ac_try) 2>&5
26271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26272 (exit $ac_status); }; }; then
26273 ac_header_compiler=yes
26275 echo "$as_me: failed program was:" >&5
26276 sed 's/^/| /' conftest.$ac_ext >&5
26278 ac_header_compiler=no
26280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26281 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26282 echo "${ECHO_T}$ac_header_compiler" >&6
26284 # Is the header present?
26285 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26287 cat >conftest.$ac_ext <<_ACEOF
26290 cat confdefs.h >>conftest.$ac_ext
26291 cat >>conftest.$ac_ext <<_ACEOF
26292 /* end confdefs.h. */
26293 #include <$ac_header>
26295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26298 grep -v '^ *+' conftest.er1 >conftest.err
26300 cat conftest.err >&5
26301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26302 (exit $ac_status); } >/dev/null; then
26303 if test -s conftest.err; then
26304 ac_cpp_err=$ac_c_preproc_warn_flag
26305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26312 if test -z "$ac_cpp_err"; then
26313 ac_header_preproc=yes
26315 echo "$as_me: failed program was:" >&5
26316 sed 's/^/| /' conftest.$ac_ext >&5
26318 ac_header_preproc=no
26320 rm -f conftest.err conftest.$ac_ext
26321 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26322 echo "${ECHO_T}$ac_header_preproc" >&6
26324 # So? What about this header?
26325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26331 ac_header_preproc=yes
26334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26337 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26338 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26339 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26340 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26341 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26344 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26345 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26348 ## -------------------------------------- ##
26349 ## Report this to heimdal-bugs@pdc.kth.se ##
26350 ## -------------------------------------- ##
26353 sed "s/^/$as_me: WARNING: /" >&2
26356 echo "$as_me:$LINENO: checking for $ac_header" >&5
26357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26359 echo $ECHO_N "(cached) $ECHO_C" >&6
26361 eval "$as_ac_Header=\$ac_header_preproc"
26363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26368 cat >>confdefs.h <<_ACEOF
26369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26381 if test "$ac_cv_header_err_h" = yes; then
26383 have_err_h_FALSE='#'
26385 have_err_h_TRUE='#'
26391 if test "$ac_cv_header_fnmatch_h" = yes; then
26392 have_fnmatch_h_TRUE=
26393 have_fnmatch_h_FALSE='#'
26395 have_fnmatch_h_TRUE='#'
26396 have_fnmatch_h_FALSE=
26401 if test "$ac_cv_header_ifaddrs_h" = yes; then
26402 have_ifaddrs_h_TRUE=
26403 have_ifaddrs_h_FALSE='#'
26405 have_ifaddrs_h_TRUE='#'
26406 have_ifaddrs_h_FALSE=
26411 if test "$ac_cv_header_vis_h" = yes; then
26413 have_vis_h_FALSE='#'
26415 have_vis_h_TRUE='#'
26425 echo "$as_me:$LINENO: checking for socket" >&5
26426 echo $ECHO_N "checking for socket... $ECHO_C" >&6
26427 if test "${ac_cv_funclib_socket+set}" = set; then
26428 echo $ECHO_N "(cached) $ECHO_C" >&6
26431 if eval "test \"\$ac_cv_func_socket\" != yes" ; then
26432 ac_save_LIBS="$LIBS"
26433 for ac_lib in "" socket; do
26439 *) ac_lib="-l$ac_lib" ;;
26441 LIBS=" $ac_lib $ac_save_LIBS"
26442 cat >conftest.$ac_ext <<_ACEOF
26445 cat confdefs.h >>conftest.$ac_ext
26446 cat >>conftest.$ac_ext <<_ACEOF
26447 /* end confdefs.h. */
26457 rm -f conftest.$ac_objext conftest$ac_exeext
26458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26459 (eval $ac_link) 2>conftest.er1
26461 grep -v '^ *+' conftest.er1 >conftest.err
26463 cat conftest.err >&5
26464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26465 (exit $ac_status); } &&
26466 { ac_try='test -z "$ac_c_werror_flag"
26467 || test ! -s conftest.err'
26468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26469 (eval $ac_try) 2>&5
26471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26472 (exit $ac_status); }; } &&
26473 { ac_try='test -s conftest$ac_exeext'
26474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26475 (eval $ac_try) 2>&5
26477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478 (exit $ac_status); }; }; then
26479 eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
26481 echo "$as_me: failed program was:" >&5
26482 sed 's/^/| /' conftest.$ac_ext >&5
26485 rm -f conftest.err conftest.$ac_objext \
26486 conftest$ac_exeext conftest.$ac_ext
26488 eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
26489 LIBS="$ac_save_LIBS"
26495 eval "ac_res=\$ac_cv_funclib_socket"
26499 for ac_func in socket
26501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26502 echo "$as_me:$LINENO: checking for $ac_func" >&5
26503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26504 if eval "test \"\${$as_ac_var+set}\" = set"; then
26505 echo $ECHO_N "(cached) $ECHO_C" >&6
26507 cat >conftest.$ac_ext <<_ACEOF
26510 cat confdefs.h >>conftest.$ac_ext
26511 cat >>conftest.$ac_ext <<_ACEOF
26512 /* end confdefs.h. */
26513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26515 #define $ac_func innocuous_$ac_func
26517 /* System header to define __stub macros and hopefully few prototypes,
26518 which can conflict with char $ac_func (); below.
26519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26520 <limits.h> exists even on freestanding compilers. */
26523 # include <limits.h>
26525 # include <assert.h>
26530 /* Override any gcc2 internal prototype to avoid an error. */
26535 /* We use char because int might match the return type of a gcc2
26536 builtin and then its argument prototype would still apply. */
26538 /* The GNU C library defines this for functions which it implements
26539 to always fail with ENOSYS. Some functions are actually named
26540 something starting with __ and the normal name is an alias. */
26541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26544 char (*f) () = $ac_func;
26553 return f != $ac_func;
26558 rm -f conftest.$ac_objext conftest$ac_exeext
26559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26560 (eval $ac_link) 2>conftest.er1
26562 grep -v '^ *+' conftest.er1 >conftest.err
26564 cat conftest.err >&5
26565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26566 (exit $ac_status); } &&
26567 { ac_try='test -z "$ac_c_werror_flag"
26568 || test ! -s conftest.err'
26569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26570 (eval $ac_try) 2>&5
26572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26573 (exit $ac_status); }; } &&
26574 { ac_try='test -s conftest$ac_exeext'
26575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26576 (eval $ac_try) 2>&5
26578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26579 (exit $ac_status); }; }; then
26580 eval "$as_ac_var=yes"
26582 echo "$as_me: failed program was:" >&5
26583 sed 's/^/| /' conftest.$ac_ext >&5
26585 eval "$as_ac_var=no"
26587 rm -f conftest.err conftest.$ac_objext \
26588 conftest$ac_exeext conftest.$ac_ext
26590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26591 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26592 if test `eval echo '${'$as_ac_var'}'` = yes; then
26593 cat >>confdefs.h <<_ACEOF
26594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26602 eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26603 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26604 eval "LIB_socket=$ac_res"
26608 eval "ac_cv_func_socket=yes"
26610 cat >>confdefs.h <<_ACEOF
26611 #define $ac_tr_func 1
26614 echo "$as_me:$LINENO: result: yes" >&5
26615 echo "${ECHO_T}yes" >&6
26618 eval "ac_cv_func_socket=no"
26620 echo "$as_me:$LINENO: result: no" >&5
26621 echo "${ECHO_T}no" >&6
26624 eval "ac_cv_func_socket=yes"
26625 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
26626 cat >>confdefs.h <<_ACEOF
26627 #define $ac_tr_func 1
26630 cat >>confdefs.h <<_ACEOF
26631 #define $ac_tr_lib 1
26634 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
26635 echo "${ECHO_T}yes, in $ac_res" >&6
26640 if test -n "$LIB_socket"; then
26641 LIBS="$LIB_socket $LIBS"
26648 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26649 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26650 if test "${ac_cv_funclib_gethostbyname+set}" = set; then
26651 echo $ECHO_N "(cached) $ECHO_C" >&6
26654 if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
26655 ac_save_LIBS="$LIBS"
26656 for ac_lib in "" nsl; do
26662 *) ac_lib="-l$ac_lib" ;;
26664 LIBS=" $ac_lib $ac_save_LIBS"
26665 cat >conftest.$ac_ext <<_ACEOF
26668 cat confdefs.h >>conftest.$ac_ext
26669 cat >>conftest.$ac_ext <<_ACEOF
26670 /* end confdefs.h. */
26680 rm -f conftest.$ac_objext conftest$ac_exeext
26681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26682 (eval $ac_link) 2>conftest.er1
26684 grep -v '^ *+' conftest.er1 >conftest.err
26686 cat conftest.err >&5
26687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688 (exit $ac_status); } &&
26689 { ac_try='test -z "$ac_c_werror_flag"
26690 || test ! -s conftest.err'
26691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26692 (eval $ac_try) 2>&5
26694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695 (exit $ac_status); }; } &&
26696 { ac_try='test -s conftest$ac_exeext'
26697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26698 (eval $ac_try) 2>&5
26700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701 (exit $ac_status); }; }; then
26702 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
26704 echo "$as_me: failed program was:" >&5
26705 sed 's/^/| /' conftest.$ac_ext >&5
26708 rm -f conftest.err conftest.$ac_objext \
26709 conftest$ac_exeext conftest.$ac_ext
26711 eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
26712 LIBS="$ac_save_LIBS"
26718 eval "ac_res=\$ac_cv_funclib_gethostbyname"
26722 for ac_func in gethostbyname
26724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26725 echo "$as_me:$LINENO: checking for $ac_func" >&5
26726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26727 if eval "test \"\${$as_ac_var+set}\" = set"; then
26728 echo $ECHO_N "(cached) $ECHO_C" >&6
26730 cat >conftest.$ac_ext <<_ACEOF
26733 cat confdefs.h >>conftest.$ac_ext
26734 cat >>conftest.$ac_ext <<_ACEOF
26735 /* end confdefs.h. */
26736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26738 #define $ac_func innocuous_$ac_func
26740 /* System header to define __stub macros and hopefully few prototypes,
26741 which can conflict with char $ac_func (); below.
26742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26743 <limits.h> exists even on freestanding compilers. */
26746 # include <limits.h>
26748 # include <assert.h>
26753 /* Override any gcc2 internal prototype to avoid an error. */
26758 /* We use char because int might match the return type of a gcc2
26759 builtin and then its argument prototype would still apply. */
26761 /* The GNU C library defines this for functions which it implements
26762 to always fail with ENOSYS. Some functions are actually named
26763 something starting with __ and the normal name is an alias. */
26764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26767 char (*f) () = $ac_func;
26776 return f != $ac_func;
26781 rm -f conftest.$ac_objext conftest$ac_exeext
26782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26783 (eval $ac_link) 2>conftest.er1
26785 grep -v '^ *+' conftest.er1 >conftest.err
26787 cat conftest.err >&5
26788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789 (exit $ac_status); } &&
26790 { ac_try='test -z "$ac_c_werror_flag"
26791 || test ! -s conftest.err'
26792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26793 (eval $ac_try) 2>&5
26795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796 (exit $ac_status); }; } &&
26797 { ac_try='test -s conftest$ac_exeext'
26798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26799 (eval $ac_try) 2>&5
26801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26802 (exit $ac_status); }; }; then
26803 eval "$as_ac_var=yes"
26805 echo "$as_me: failed program was:" >&5
26806 sed 's/^/| /' conftest.$ac_ext >&5
26808 eval "$as_ac_var=no"
26810 rm -f conftest.err conftest.$ac_objext \
26811 conftest$ac_exeext conftest.$ac_ext
26813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26815 if test `eval echo '${'$as_ac_var'}'` = yes; then
26816 cat >>confdefs.h <<_ACEOF
26817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26825 eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26826 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26827 eval "LIB_gethostbyname=$ac_res"
26831 eval "ac_cv_func_gethostbyname=yes"
26832 eval "LIB_gethostbyname="
26833 cat >>confdefs.h <<_ACEOF
26834 #define $ac_tr_func 1
26837 echo "$as_me:$LINENO: result: yes" >&5
26838 echo "${ECHO_T}yes" >&6
26841 eval "ac_cv_func_gethostbyname=no"
26842 eval "LIB_gethostbyname="
26843 echo "$as_me:$LINENO: result: no" >&5
26844 echo "${ECHO_T}no" >&6
26847 eval "ac_cv_func_gethostbyname=yes"
26848 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
26849 cat >>confdefs.h <<_ACEOF
26850 #define $ac_tr_func 1
26853 cat >>confdefs.h <<_ACEOF
26854 #define $ac_tr_lib 1
26857 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
26858 echo "${ECHO_T}yes, in $ac_res" >&6
26863 if test -n "$LIB_gethostbyname"; then
26864 LIBS="$LIB_gethostbyname $LIBS"
26871 echo "$as_me:$LINENO: checking for syslog" >&5
26872 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
26873 if test "${ac_cv_funclib_syslog+set}" = set; then
26874 echo $ECHO_N "(cached) $ECHO_C" >&6
26877 if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
26878 ac_save_LIBS="$LIBS"
26879 for ac_lib in "" syslog; do
26885 *) ac_lib="-l$ac_lib" ;;
26887 LIBS=" $ac_lib $ac_save_LIBS"
26888 cat >conftest.$ac_ext <<_ACEOF
26891 cat confdefs.h >>conftest.$ac_ext
26892 cat >>conftest.$ac_ext <<_ACEOF
26893 /* end confdefs.h. */
26903 rm -f conftest.$ac_objext conftest$ac_exeext
26904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26905 (eval $ac_link) 2>conftest.er1
26907 grep -v '^ *+' conftest.er1 >conftest.err
26909 cat conftest.err >&5
26910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911 (exit $ac_status); } &&
26912 { ac_try='test -z "$ac_c_werror_flag"
26913 || test ! -s conftest.err'
26914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26915 (eval $ac_try) 2>&5
26917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26918 (exit $ac_status); }; } &&
26919 { ac_try='test -s conftest$ac_exeext'
26920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26921 (eval $ac_try) 2>&5
26923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924 (exit $ac_status); }; }; then
26925 eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
26927 echo "$as_me: failed program was:" >&5
26928 sed 's/^/| /' conftest.$ac_ext >&5
26931 rm -f conftest.err conftest.$ac_objext \
26932 conftest$ac_exeext conftest.$ac_ext
26934 eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
26935 LIBS="$ac_save_LIBS"
26941 eval "ac_res=\$ac_cv_funclib_syslog"
26945 for ac_func in syslog
26947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26948 echo "$as_me:$LINENO: checking for $ac_func" >&5
26949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26950 if eval "test \"\${$as_ac_var+set}\" = set"; then
26951 echo $ECHO_N "(cached) $ECHO_C" >&6
26953 cat >conftest.$ac_ext <<_ACEOF
26956 cat confdefs.h >>conftest.$ac_ext
26957 cat >>conftest.$ac_ext <<_ACEOF
26958 /* end confdefs.h. */
26959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26961 #define $ac_func innocuous_$ac_func
26963 /* System header to define __stub macros and hopefully few prototypes,
26964 which can conflict with char $ac_func (); below.
26965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26966 <limits.h> exists even on freestanding compilers. */
26969 # include <limits.h>
26971 # include <assert.h>
26976 /* Override any gcc2 internal prototype to avoid an error. */
26981 /* We use char because int might match the return type of a gcc2
26982 builtin and then its argument prototype would still apply. */
26984 /* The GNU C library defines this for functions which it implements
26985 to always fail with ENOSYS. Some functions are actually named
26986 something starting with __ and the normal name is an alias. */
26987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26990 char (*f) () = $ac_func;
26999 return f != $ac_func;
27004 rm -f conftest.$ac_objext conftest$ac_exeext
27005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27006 (eval $ac_link) 2>conftest.er1
27008 grep -v '^ *+' conftest.er1 >conftest.err
27010 cat conftest.err >&5
27011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27012 (exit $ac_status); } &&
27013 { ac_try='test -z "$ac_c_werror_flag"
27014 || test ! -s conftest.err'
27015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27016 (eval $ac_try) 2>&5
27018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019 (exit $ac_status); }; } &&
27020 { ac_try='test -s conftest$ac_exeext'
27021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27022 (eval $ac_try) 2>&5
27024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025 (exit $ac_status); }; }; then
27026 eval "$as_ac_var=yes"
27028 echo "$as_me: failed program was:" >&5
27029 sed 's/^/| /' conftest.$ac_ext >&5
27031 eval "$as_ac_var=no"
27033 rm -f conftest.err conftest.$ac_objext \
27034 conftest$ac_exeext conftest.$ac_ext
27036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27038 if test `eval echo '${'$as_ac_var'}'` = yes; then
27039 cat >>confdefs.h <<_ACEOF
27040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27048 eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27049 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27050 eval "LIB_syslog=$ac_res"
27054 eval "ac_cv_func_syslog=yes"
27056 cat >>confdefs.h <<_ACEOF
27057 #define $ac_tr_func 1
27060 echo "$as_me:$LINENO: result: yes" >&5
27061 echo "${ECHO_T}yes" >&6
27064 eval "ac_cv_func_syslog=no"
27066 echo "$as_me:$LINENO: result: no" >&5
27067 echo "${ECHO_T}no" >&6
27070 eval "ac_cv_func_syslog=yes"
27071 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
27072 cat >>confdefs.h <<_ACEOF
27073 #define $ac_tr_func 1
27076 cat >>confdefs.h <<_ACEOF
27077 #define $ac_tr_lib 1
27080 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
27081 echo "${ECHO_T}yes, in $ac_res" >&6
27086 if test -n "$LIB_syslog"; then
27087 LIBS="$LIB_syslog $LIBS"
27093 # Check whether --with-ipv6 or --without-ipv6 was given.
27094 if test "${with_ipv6+set}" = set; then
27095 withval="$with_ipv6"
27097 if test "$withval" = "no"; then
27101 save_CFLAGS="${CFLAGS}"
27102 echo "$as_me:$LINENO: checking for IPv6 stack type" >&5
27103 echo $ECHO_N "checking for IPv6 stack type... $ECHO_C" >&6
27104 if test "${v6type+set}" = set; then
27105 echo $ECHO_N "(cached) $ECHO_C" >&6
27110 for i in v6d toshiba kame inria zeta linux; do
27113 cat >conftest.$ac_ext <<_ACEOF
27116 cat confdefs.h >>conftest.$ac_ext
27117 cat >>conftest.$ac_ext <<_ACEOF
27118 /* end confdefs.h. */
27120 #include </usr/local/v6/include/sys/types.h>
27125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27126 $EGREP "yes" >/dev/null 2>&1; then
27127 v6type=$i; v6lib=v6;
27128 v6libdir=/usr/local/v6/lib;
27129 CFLAGS="-I/usr/local/v6/include $CFLAGS"
27135 cat >conftest.$ac_ext <<_ACEOF
27138 cat confdefs.h >>conftest.$ac_ext
27139 cat >>conftest.$ac_ext <<_ACEOF
27140 /* end confdefs.h. */
27142 #include <sys/param.h>
27143 #ifdef _TOSHIBA_INET6
27147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27148 $EGREP "yes" >/dev/null 2>&1; then
27149 v6type=$i; v6lib=inet6;
27150 v6libdir=/usr/local/v6/lib;
27151 CFLAGS="-DINET6 $CFLAGS"
27157 cat >conftest.$ac_ext <<_ACEOF
27160 cat confdefs.h >>conftest.$ac_ext
27161 cat >>conftest.$ac_ext <<_ACEOF
27162 /* end confdefs.h. */
27164 #include <netinet/in.h>
27169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27170 $EGREP "yes" >/dev/null 2>&1; then
27171 v6type=$i; v6lib=inet6;
27172 v6libdir=/usr/local/v6/lib;
27173 CFLAGS="-DINET6 $CFLAGS"
27179 cat >conftest.$ac_ext <<_ACEOF
27182 cat confdefs.h >>conftest.$ac_ext
27183 cat >>conftest.$ac_ext <<_ACEOF
27184 /* end confdefs.h. */
27186 #include <netinet/in.h>
27187 #ifdef IPV6_INRIA_VERSION
27191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27192 $EGREP "yes" >/dev/null 2>&1; then
27193 v6type=$i; CFLAGS="-DINET6 $CFLAGS"
27199 cat >conftest.$ac_ext <<_ACEOF
27202 cat confdefs.h >>conftest.$ac_ext
27203 cat >>conftest.$ac_ext <<_ACEOF
27204 /* end confdefs.h. */
27206 #include <sys/param.h>
27207 #ifdef _ZETA_MINAMI_INET6
27211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27212 $EGREP "yes" >/dev/null 2>&1; then
27213 v6type=$i; v6lib=inet6;
27214 v6libdir=/usr/local/v6/lib;
27215 CFLAGS="-DINET6 $CFLAGS"
27221 if test -d /usr/inet6; then
27224 v6libdir=/usr/inet6
27225 CFLAGS="-DINET6 $CFLAGS"
27229 if test "$v6type" != "unknown"; then
27234 if test "$v6lib" != "none"; then
27235 for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
27236 if test -d $dir -a -f $dir/lib$v6lib.a; then
27237 LIBS="-L$dir -l$v6lib $LIBS"
27244 echo "$as_me:$LINENO: result: $v6type" >&5
27245 echo "${ECHO_T}$v6type" >&6
27247 echo "$as_me:$LINENO: checking for IPv6" >&5
27248 echo $ECHO_N "checking for IPv6... $ECHO_C" >&6
27249 if test "${ac_cv_lib_ipv6+set}" = set; then
27250 echo $ECHO_N "(cached) $ECHO_C" >&6
27253 cat >conftest.$ac_ext <<_ACEOF
27256 cat confdefs.h >>conftest.$ac_ext
27257 cat >>conftest.$ac_ext <<_ACEOF
27258 /* end confdefs.h. */
27260 #ifdef HAVE_SYS_TYPES_H
27261 #include <sys/types.h>
27263 #ifdef HAVE_SYS_SOCKET_H
27264 #include <sys/socket.h>
27266 #ifdef HAVE_NETINET_IN_H
27267 #include <netinet/in.h>
27269 #ifdef HAVE_NETINET_IN6_H
27270 #include <netinet/in6.h>
27277 struct sockaddr_in6 sin6;
27280 s = socket(AF_INET6, SOCK_DGRAM, 0);
27282 sin6.sin6_family = AF_INET6;
27283 sin6.sin6_port = htons(17);
27284 sin6.sin6_addr = in6addr_any;
27285 bind(s, (struct sockaddr *)&sin6, sizeof(sin6));
27291 rm -f conftest.$ac_objext conftest$ac_exeext
27292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27293 (eval $ac_link) 2>conftest.er1
27295 grep -v '^ *+' conftest.er1 >conftest.err
27297 cat conftest.err >&5
27298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27299 (exit $ac_status); } &&
27300 { ac_try='test -z "$ac_c_werror_flag"
27301 || test ! -s conftest.err'
27302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27303 (eval $ac_try) 2>&5
27305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306 (exit $ac_status); }; } &&
27307 { ac_try='test -s conftest$ac_exeext'
27308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27309 (eval $ac_try) 2>&5
27311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312 (exit $ac_status); }; }; then
27315 echo "$as_me: failed program was:" >&5
27316 sed 's/^/| /' conftest.$ac_ext >&5
27320 rm -f conftest.err conftest.$ac_objext \
27321 conftest$ac_exeext conftest.$ac_ext
27323 echo "$as_me:$LINENO: result: $ac_cv_lib_ipv6" >&5
27324 echo "${ECHO_T}$ac_cv_lib_ipv6" >&6
27325 if test "$ac_cv_lib_ipv6" = yes; then
27327 cat >>confdefs.h <<\_ACEOF
27328 #define HAVE_IPV6 1
27332 CFLAGS="${save_CFLAGS}"
27335 ## test for AIX missing in6addr_loopback
27336 if test "$ac_cv_lib_ipv6" = yes; then
27337 echo "$as_me:$LINENO: checking for in6addr_loopback" >&5
27338 echo $ECHO_N "checking for in6addr_loopback... $ECHO_C" >&6
27339 if test "${ac_cv_var_in6addr_loopback+set}" = set; then
27340 echo $ECHO_N "(cached) $ECHO_C" >&6
27343 cat >conftest.$ac_ext <<_ACEOF
27346 cat confdefs.h >>conftest.$ac_ext
27347 cat >>conftest.$ac_ext <<_ACEOF
27348 /* end confdefs.h. */
27350 #ifdef HAVE_SYS_TYPES_H
27351 #include <sys/types.h>
27353 #ifdef HAVE_SYS_SOCKET_H
27354 #include <sys/socket.h>
27356 #ifdef HAVE_NETINET_IN_H
27357 #include <netinet/in.h>
27359 #ifdef HAVE_NETINET_IN6_H
27360 #include <netinet/in6.h>
27366 struct sockaddr_in6 sin6;
27367 sin6.sin6_addr = in6addr_loopback;
27373 rm -f conftest.$ac_objext conftest$ac_exeext
27374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27375 (eval $ac_link) 2>conftest.er1
27377 grep -v '^ *+' conftest.er1 >conftest.err
27379 cat conftest.err >&5
27380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27381 (exit $ac_status); } &&
27382 { ac_try='test -z "$ac_c_werror_flag"
27383 || test ! -s conftest.err'
27384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27385 (eval $ac_try) 2>&5
27387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27388 (exit $ac_status); }; } &&
27389 { ac_try='test -s conftest$ac_exeext'
27390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27391 (eval $ac_try) 2>&5
27393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27394 (exit $ac_status); }; }; then
27395 ac_cv_var_in6addr_loopback=yes
27397 echo "$as_me: failed program was:" >&5
27398 sed 's/^/| /' conftest.$ac_ext >&5
27400 ac_cv_var_in6addr_loopback=no
27402 rm -f conftest.err conftest.$ac_objext \
27403 conftest$ac_exeext conftest.$ac_ext
27405 echo "$as_me:$LINENO: result: $ac_cv_var_in6addr_loopback" >&5
27406 echo "${ECHO_T}$ac_cv_var_in6addr_loopback" >&6
27407 if test "$ac_cv_var_in6addr_loopback" = yes; then
27409 cat >>confdefs.h <<\_ACEOF
27410 #define HAVE_IN6ADDR_LOOPBACK 1
27421 echo "$as_me:$LINENO: checking for gethostbyname2" >&5
27422 echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6
27423 if test "${ac_cv_funclib_gethostbyname2+set}" = set; then
27424 echo $ECHO_N "(cached) $ECHO_C" >&6
27427 if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
27428 ac_save_LIBS="$LIBS"
27429 for ac_lib in "" inet6 ip6; do
27435 *) ac_lib="-l$ac_lib" ;;
27437 LIBS=" $ac_lib $ac_save_LIBS"
27438 cat >conftest.$ac_ext <<_ACEOF
27441 cat confdefs.h >>conftest.$ac_ext
27442 cat >>conftest.$ac_ext <<_ACEOF
27443 /* end confdefs.h. */
27453 rm -f conftest.$ac_objext conftest$ac_exeext
27454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27455 (eval $ac_link) 2>conftest.er1
27457 grep -v '^ *+' conftest.er1 >conftest.err
27459 cat conftest.err >&5
27460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27461 (exit $ac_status); } &&
27462 { ac_try='test -z "$ac_c_werror_flag"
27463 || test ! -s conftest.err'
27464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27465 (eval $ac_try) 2>&5
27467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27468 (exit $ac_status); }; } &&
27469 { ac_try='test -s conftest$ac_exeext'
27470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27471 (eval $ac_try) 2>&5
27473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474 (exit $ac_status); }; }; then
27475 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
27477 echo "$as_me: failed program was:" >&5
27478 sed 's/^/| /' conftest.$ac_ext >&5
27481 rm -f conftest.err conftest.$ac_objext \
27482 conftest$ac_exeext conftest.$ac_ext
27484 eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
27485 LIBS="$ac_save_LIBS"
27491 eval "ac_res=\$ac_cv_funclib_gethostbyname2"
27495 for ac_func in gethostbyname2
27497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27498 echo "$as_me:$LINENO: checking for $ac_func" >&5
27499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27500 if eval "test \"\${$as_ac_var+set}\" = set"; then
27501 echo $ECHO_N "(cached) $ECHO_C" >&6
27503 cat >conftest.$ac_ext <<_ACEOF
27506 cat confdefs.h >>conftest.$ac_ext
27507 cat >>conftest.$ac_ext <<_ACEOF
27508 /* end confdefs.h. */
27509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27511 #define $ac_func innocuous_$ac_func
27513 /* System header to define __stub macros and hopefully few prototypes,
27514 which can conflict with char $ac_func (); below.
27515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27516 <limits.h> exists even on freestanding compilers. */
27519 # include <limits.h>
27521 # include <assert.h>
27526 /* Override any gcc2 internal prototype to avoid an error. */
27531 /* We use char because int might match the return type of a gcc2
27532 builtin and then its argument prototype would still apply. */
27534 /* The GNU C library defines this for functions which it implements
27535 to always fail with ENOSYS. Some functions are actually named
27536 something starting with __ and the normal name is an alias. */
27537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27540 char (*f) () = $ac_func;
27549 return f != $ac_func;
27554 rm -f conftest.$ac_objext conftest$ac_exeext
27555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27556 (eval $ac_link) 2>conftest.er1
27558 grep -v '^ *+' conftest.er1 >conftest.err
27560 cat conftest.err >&5
27561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562 (exit $ac_status); } &&
27563 { ac_try='test -z "$ac_c_werror_flag"
27564 || test ! -s conftest.err'
27565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27566 (eval $ac_try) 2>&5
27568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27569 (exit $ac_status); }; } &&
27570 { ac_try='test -s conftest$ac_exeext'
27571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27572 (eval $ac_try) 2>&5
27574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575 (exit $ac_status); }; }; then
27576 eval "$as_ac_var=yes"
27578 echo "$as_me: failed program was:" >&5
27579 sed 's/^/| /' conftest.$ac_ext >&5
27581 eval "$as_ac_var=no"
27583 rm -f conftest.err conftest.$ac_objext \
27584 conftest$ac_exeext conftest.$ac_ext
27586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27587 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27588 if test `eval echo '${'$as_ac_var'}'` = yes; then
27589 cat >>confdefs.h <<_ACEOF
27590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27598 eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27599 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27600 eval "LIB_gethostbyname2=$ac_res"
27604 eval "ac_cv_func_gethostbyname2=yes"
27605 eval "LIB_gethostbyname2="
27606 cat >>confdefs.h <<_ACEOF
27607 #define $ac_tr_func 1
27610 echo "$as_me:$LINENO: result: yes" >&5
27611 echo "${ECHO_T}yes" >&6
27614 eval "ac_cv_func_gethostbyname2=no"
27615 eval "LIB_gethostbyname2="
27616 echo "$as_me:$LINENO: result: no" >&5
27617 echo "${ECHO_T}no" >&6
27620 eval "ac_cv_func_gethostbyname2=yes"
27621 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
27622 cat >>confdefs.h <<_ACEOF
27623 #define $ac_tr_func 1
27626 cat >>confdefs.h <<_ACEOF
27627 #define $ac_tr_lib 1
27630 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
27631 echo "${ECHO_T}yes, in $ac_res" >&6
27636 if test -n "$LIB_gethostbyname2"; then
27637 LIBS="$LIB_gethostbyname2 $LIBS"
27645 echo "$as_me:$LINENO: checking for res_search" >&5
27646 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
27647 if test "${ac_cv_funclib_res_search+set}" = set; then
27648 echo $ECHO_N "(cached) $ECHO_C" >&6
27651 if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
27652 ac_save_LIBS="$LIBS"
27653 for ac_lib in "" resolv; do
27659 *) ac_lib="-l$ac_lib" ;;
27661 LIBS=" $ac_lib $ac_save_LIBS"
27662 cat >conftest.$ac_ext <<_ACEOF
27665 cat confdefs.h >>conftest.$ac_ext
27666 cat >>conftest.$ac_ext <<_ACEOF
27667 /* end confdefs.h. */
27670 #ifdef HAVE_SYS_TYPES_H
27671 #include <sys/types.h>
27673 #ifdef HAVE_NETINET_IN_H
27674 #include <netinet/in.h>
27676 #ifdef HAVE_ARPA_NAMESER_H
27677 #include <arpa/nameser.h>
27679 #ifdef HAVE_RESOLV_H
27680 #include <resolv.h>
27686 res_search(0,0,0,0,0)
27691 rm -f conftest.$ac_objext conftest$ac_exeext
27692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27693 (eval $ac_link) 2>conftest.er1
27695 grep -v '^ *+' conftest.er1 >conftest.err
27697 cat conftest.err >&5
27698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699 (exit $ac_status); } &&
27700 { ac_try='test -z "$ac_c_werror_flag"
27701 || test ! -s conftest.err'
27702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27703 (eval $ac_try) 2>&5
27705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27706 (exit $ac_status); }; } &&
27707 { ac_try='test -s conftest$ac_exeext'
27708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27709 (eval $ac_try) 2>&5
27711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712 (exit $ac_status); }; }; then
27713 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
27715 echo "$as_me: failed program was:" >&5
27716 sed 's/^/| /' conftest.$ac_ext >&5
27719 rm -f conftest.err conftest.$ac_objext \
27720 conftest$ac_exeext conftest.$ac_ext
27722 eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
27723 LIBS="$ac_save_LIBS"
27729 eval "ac_res=\$ac_cv_funclib_res_search"
27733 for ac_func in res_search
27735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27736 echo "$as_me:$LINENO: checking for $ac_func" >&5
27737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27738 if eval "test \"\${$as_ac_var+set}\" = set"; then
27739 echo $ECHO_N "(cached) $ECHO_C" >&6
27741 cat >conftest.$ac_ext <<_ACEOF
27744 cat confdefs.h >>conftest.$ac_ext
27745 cat >>conftest.$ac_ext <<_ACEOF
27746 /* end confdefs.h. */
27747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27749 #define $ac_func innocuous_$ac_func
27751 /* System header to define __stub macros and hopefully few prototypes,
27752 which can conflict with char $ac_func (); below.
27753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27754 <limits.h> exists even on freestanding compilers. */
27757 # include <limits.h>
27759 # include <assert.h>
27764 /* Override any gcc2 internal prototype to avoid an error. */
27769 /* We use char because int might match the return type of a gcc2
27770 builtin and then its argument prototype would still apply. */
27772 /* The GNU C library defines this for functions which it implements
27773 to always fail with ENOSYS. Some functions are actually named
27774 something starting with __ and the normal name is an alias. */
27775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27778 char (*f) () = $ac_func;
27787 return f != $ac_func;
27792 rm -f conftest.$ac_objext conftest$ac_exeext
27793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27794 (eval $ac_link) 2>conftest.er1
27796 grep -v '^ *+' conftest.er1 >conftest.err
27798 cat conftest.err >&5
27799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800 (exit $ac_status); } &&
27801 { ac_try='test -z "$ac_c_werror_flag"
27802 || test ! -s conftest.err'
27803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27804 (eval $ac_try) 2>&5
27806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807 (exit $ac_status); }; } &&
27808 { ac_try='test -s conftest$ac_exeext'
27809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27810 (eval $ac_try) 2>&5
27812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27813 (exit $ac_status); }; }; then
27814 eval "$as_ac_var=yes"
27816 echo "$as_me: failed program was:" >&5
27817 sed 's/^/| /' conftest.$ac_ext >&5
27819 eval "$as_ac_var=no"
27821 rm -f conftest.err conftest.$ac_objext \
27822 conftest$ac_exeext conftest.$ac_ext
27824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27825 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27826 if test `eval echo '${'$as_ac_var'}'` = yes; then
27827 cat >>confdefs.h <<_ACEOF
27828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27836 eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27837 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27838 eval "LIB_res_search=$ac_res"
27842 eval "ac_cv_func_res_search=yes"
27843 eval "LIB_res_search="
27844 cat >>confdefs.h <<_ACEOF
27845 #define $ac_tr_func 1
27848 echo "$as_me:$LINENO: result: yes" >&5
27849 echo "${ECHO_T}yes" >&6
27852 eval "ac_cv_func_res_search=no"
27853 eval "LIB_res_search="
27854 echo "$as_me:$LINENO: result: no" >&5
27855 echo "${ECHO_T}no" >&6
27858 eval "ac_cv_func_res_search=yes"
27859 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
27860 cat >>confdefs.h <<_ACEOF
27861 #define $ac_tr_func 1
27864 cat >>confdefs.h <<_ACEOF
27865 #define $ac_tr_lib 1
27868 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
27869 echo "${ECHO_T}yes, in $ac_res" >&6
27874 if test -n "$LIB_res_search"; then
27875 LIBS="$LIB_res_search $LIBS"
27883 echo "$as_me:$LINENO: checking for res_nsearch" >&5
27884 echo $ECHO_N "checking for res_nsearch... $ECHO_C" >&6
27885 if test "${ac_cv_funclib_res_nsearch+set}" = set; then
27886 echo $ECHO_N "(cached) $ECHO_C" >&6
27889 if eval "test \"\$ac_cv_func_res_nsearch\" != yes" ; then
27890 ac_save_LIBS="$LIBS"
27891 for ac_lib in "" resolv; do
27897 *) ac_lib="-l$ac_lib" ;;
27899 LIBS=" $ac_lib $ac_save_LIBS"
27900 cat >conftest.$ac_ext <<_ACEOF
27903 cat confdefs.h >>conftest.$ac_ext
27904 cat >>conftest.$ac_ext <<_ACEOF
27905 /* end confdefs.h. */
27908 #ifdef HAVE_SYS_TYPES_H
27909 #include <sys/types.h>
27911 #ifdef HAVE_NETINET_IN_H
27912 #include <netinet/in.h>
27914 #ifdef HAVE_ARPA_NAMESER_H
27915 #include <arpa/nameser.h>
27917 #ifdef HAVE_RESOLV_H
27918 #include <resolv.h>
27924 res_nsearch(0,0,0,0,0,0)
27929 rm -f conftest.$ac_objext conftest$ac_exeext
27930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27931 (eval $ac_link) 2>conftest.er1
27933 grep -v '^ *+' conftest.er1 >conftest.err
27935 cat conftest.err >&5
27936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27937 (exit $ac_status); } &&
27938 { ac_try='test -z "$ac_c_werror_flag"
27939 || test ! -s conftest.err'
27940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27941 (eval $ac_try) 2>&5
27943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944 (exit $ac_status); }; } &&
27945 { ac_try='test -s conftest$ac_exeext'
27946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27947 (eval $ac_try) 2>&5
27949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27950 (exit $ac_status); }; }; then
27951 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_nsearch=$ac_lib; else ac_cv_funclib_res_nsearch=yes; fi";break
27953 echo "$as_me: failed program was:" >&5
27954 sed 's/^/| /' conftest.$ac_ext >&5
27957 rm -f conftest.err conftest.$ac_objext \
27958 conftest$ac_exeext conftest.$ac_ext
27960 eval "ac_cv_funclib_res_nsearch=\${ac_cv_funclib_res_nsearch-no}"
27961 LIBS="$ac_save_LIBS"
27967 eval "ac_res=\$ac_cv_funclib_res_nsearch"
27971 for ac_func in res_nsearch
27973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27974 echo "$as_me:$LINENO: checking for $ac_func" >&5
27975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27976 if eval "test \"\${$as_ac_var+set}\" = set"; then
27977 echo $ECHO_N "(cached) $ECHO_C" >&6
27979 cat >conftest.$ac_ext <<_ACEOF
27982 cat confdefs.h >>conftest.$ac_ext
27983 cat >>conftest.$ac_ext <<_ACEOF
27984 /* end confdefs.h. */
27985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27987 #define $ac_func innocuous_$ac_func
27989 /* System header to define __stub macros and hopefully few prototypes,
27990 which can conflict with char $ac_func (); below.
27991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27992 <limits.h> exists even on freestanding compilers. */
27995 # include <limits.h>
27997 # include <assert.h>
28002 /* Override any gcc2 internal prototype to avoid an error. */
28007 /* We use char because int might match the return type of a gcc2
28008 builtin and then its argument prototype would still apply. */
28010 /* The GNU C library defines this for functions which it implements
28011 to always fail with ENOSYS. Some functions are actually named
28012 something starting with __ and the normal name is an alias. */
28013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28016 char (*f) () = $ac_func;
28025 return f != $ac_func;
28030 rm -f conftest.$ac_objext conftest$ac_exeext
28031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28032 (eval $ac_link) 2>conftest.er1
28034 grep -v '^ *+' conftest.er1 >conftest.err
28036 cat conftest.err >&5
28037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28038 (exit $ac_status); } &&
28039 { ac_try='test -z "$ac_c_werror_flag"
28040 || test ! -s conftest.err'
28041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28042 (eval $ac_try) 2>&5
28044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28045 (exit $ac_status); }; } &&
28046 { ac_try='test -s conftest$ac_exeext'
28047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28048 (eval $ac_try) 2>&5
28050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051 (exit $ac_status); }; }; then
28052 eval "$as_ac_var=yes"
28054 echo "$as_me: failed program was:" >&5
28055 sed 's/^/| /' conftest.$ac_ext >&5
28057 eval "$as_ac_var=no"
28059 rm -f conftest.err conftest.$ac_objext \
28060 conftest$ac_exeext conftest.$ac_ext
28062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28064 if test `eval echo '${'$as_ac_var'}'` = yes; then
28065 cat >>confdefs.h <<_ACEOF
28066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28074 eval "ac_tr_func=HAVE_`echo res_nsearch | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
28075 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
28076 eval "LIB_res_nsearch=$ac_res"
28080 eval "ac_cv_func_res_nsearch=yes"
28081 eval "LIB_res_nsearch="
28082 cat >>confdefs.h <<_ACEOF
28083 #define $ac_tr_func 1
28086 echo "$as_me:$LINENO: result: yes" >&5
28087 echo "${ECHO_T}yes" >&6
28090 eval "ac_cv_func_res_nsearch=no"
28091 eval "LIB_res_nsearch="
28092 echo "$as_me:$LINENO: result: no" >&5
28093 echo "${ECHO_T}no" >&6
28096 eval "ac_cv_func_res_nsearch=yes"
28097 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
28098 cat >>confdefs.h <<_ACEOF
28099 #define $ac_tr_func 1
28102 cat >>confdefs.h <<_ACEOF
28103 #define $ac_tr_lib 1
28106 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
28107 echo "${ECHO_T}yes, in $ac_res" >&6
28112 if test -n "$LIB_res_nsearch"; then
28113 LIBS="$LIB_res_nsearch $LIBS"
28121 echo "$as_me:$LINENO: checking for dn_expand" >&5
28122 echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6
28123 if test "${ac_cv_funclib_dn_expand+set}" = set; then
28124 echo $ECHO_N "(cached) $ECHO_C" >&6
28127 if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
28128 ac_save_LIBS="$LIBS"
28129 for ac_lib in "" resolv; do
28135 *) ac_lib="-l$ac_lib" ;;
28137 LIBS=" $ac_lib $ac_save_LIBS"
28138 cat >conftest.$ac_ext <<_ACEOF
28141 cat confdefs.h >>conftest.$ac_ext
28142 cat >>conftest.$ac_ext <<_ACEOF
28143 /* end confdefs.h. */
28146 #ifdef HAVE_SYS_TYPES_H
28147 #include <sys/types.h>
28149 #ifdef HAVE_NETINET_IN_H
28150 #include <netinet/in.h>
28152 #ifdef HAVE_ARPA_NAMESER_H
28153 #include <arpa/nameser.h>
28155 #ifdef HAVE_RESOLV_H
28156 #include <resolv.h>
28162 dn_expand(0,0,0,0,0)
28167 rm -f conftest.$ac_objext conftest$ac_exeext
28168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28169 (eval $ac_link) 2>conftest.er1
28171 grep -v '^ *+' conftest.er1 >conftest.err
28173 cat conftest.err >&5
28174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28175 (exit $ac_status); } &&
28176 { ac_try='test -z "$ac_c_werror_flag"
28177 || test ! -s conftest.err'
28178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28179 (eval $ac_try) 2>&5
28181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182 (exit $ac_status); }; } &&
28183 { ac_try='test -s conftest$ac_exeext'
28184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28185 (eval $ac_try) 2>&5
28187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28188 (exit $ac_status); }; }; then
28189 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
28191 echo "$as_me: failed program was:" >&5
28192 sed 's/^/| /' conftest.$ac_ext >&5
28195 rm -f conftest.err conftest.$ac_objext \
28196 conftest$ac_exeext conftest.$ac_ext
28198 eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
28199 LIBS="$ac_save_LIBS"
28205 eval "ac_res=\$ac_cv_funclib_dn_expand"
28209 for ac_func in dn_expand
28211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28212 echo "$as_me:$LINENO: checking for $ac_func" >&5
28213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28214 if eval "test \"\${$as_ac_var+set}\" = set"; then
28215 echo $ECHO_N "(cached) $ECHO_C" >&6
28217 cat >conftest.$ac_ext <<_ACEOF
28220 cat confdefs.h >>conftest.$ac_ext
28221 cat >>conftest.$ac_ext <<_ACEOF
28222 /* end confdefs.h. */
28223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28225 #define $ac_func innocuous_$ac_func
28227 /* System header to define __stub macros and hopefully few prototypes,
28228 which can conflict with char $ac_func (); below.
28229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28230 <limits.h> exists even on freestanding compilers. */
28233 # include <limits.h>
28235 # include <assert.h>
28240 /* Override any gcc2 internal prototype to avoid an error. */
28245 /* We use char because int might match the return type of a gcc2
28246 builtin and then its argument prototype would still apply. */
28248 /* The GNU C library defines this for functions which it implements
28249 to always fail with ENOSYS. Some functions are actually named
28250 something starting with __ and the normal name is an alias. */
28251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28254 char (*f) () = $ac_func;
28263 return f != $ac_func;
28268 rm -f conftest.$ac_objext conftest$ac_exeext
28269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28270 (eval $ac_link) 2>conftest.er1
28272 grep -v '^ *+' conftest.er1 >conftest.err
28274 cat conftest.err >&5
28275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28276 (exit $ac_status); } &&
28277 { ac_try='test -z "$ac_c_werror_flag"
28278 || test ! -s conftest.err'
28279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28280 (eval $ac_try) 2>&5
28282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28283 (exit $ac_status); }; } &&
28284 { ac_try='test -s conftest$ac_exeext'
28285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28286 (eval $ac_try) 2>&5
28288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289 (exit $ac_status); }; }; then
28290 eval "$as_ac_var=yes"
28292 echo "$as_me: failed program was:" >&5
28293 sed 's/^/| /' conftest.$ac_ext >&5
28295 eval "$as_ac_var=no"
28297 rm -f conftest.err conftest.$ac_objext \
28298 conftest$ac_exeext conftest.$ac_ext
28300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28301 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28302 if test `eval echo '${'$as_ac_var'}'` = yes; then
28303 cat >>confdefs.h <<_ACEOF
28304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28312 eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
28313 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
28314 eval "LIB_dn_expand=$ac_res"
28318 eval "ac_cv_func_dn_expand=yes"
28319 eval "LIB_dn_expand="
28320 cat >>confdefs.h <<_ACEOF
28321 #define $ac_tr_func 1
28324 echo "$as_me:$LINENO: result: yes" >&5
28325 echo "${ECHO_T}yes" >&6
28328 eval "ac_cv_func_dn_expand=no"
28329 eval "LIB_dn_expand="
28330 echo "$as_me:$LINENO: result: no" >&5
28331 echo "${ECHO_T}no" >&6
28334 eval "ac_cv_func_dn_expand=yes"
28335 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
28336 cat >>confdefs.h <<_ACEOF
28337 #define $ac_tr_func 1
28340 cat >>confdefs.h <<_ACEOF
28341 #define $ac_tr_lib 1
28344 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
28345 echo "${ECHO_T}yes, in $ac_res" >&6
28350 if test -n "$LIB_dn_expand"; then
28351 LIBS="$LIB_dn_expand $LIBS"
28356 echo "$as_me:$LINENO: checking for _res" >&5
28357 echo $ECHO_N "checking for _res... $ECHO_C" >&6
28358 if test "${ac_cv_var__res+set}" = set; then
28359 echo $ECHO_N "(cached) $ECHO_C" >&6
28363 cat >conftest.$ac_ext <<_ACEOF
28366 cat confdefs.h >>conftest.$ac_ext
28367 cat >>conftest.$ac_ext <<_ACEOF
28368 /* end confdefs.h. */
28370 #ifdef HAVE_SYS_TYPES_H
28371 #include <sys/types.h>
28373 #ifdef HAVE_NETINET_IN_H
28374 #include <netinet/in.h>
28376 #ifdef HAVE_ARPA_NAMESER_H
28377 #include <arpa/nameser.h>
28379 #ifdef HAVE_RESOLV_H
28380 #include <resolv.h>
28382 void * foo() { return &_res; }
28391 rm -f conftest.$ac_objext conftest$ac_exeext
28392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28393 (eval $ac_link) 2>conftest.er1
28395 grep -v '^ *+' conftest.er1 >conftest.err
28397 cat conftest.err >&5
28398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 (exit $ac_status); } &&
28400 { ac_try='test -z "$ac_c_werror_flag"
28401 || test ! -s conftest.err'
28402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28403 (eval $ac_try) 2>&5
28405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28406 (exit $ac_status); }; } &&
28407 { ac_try='test -s conftest$ac_exeext'
28408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28409 (eval $ac_try) 2>&5
28411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28412 (exit $ac_status); }; }; then
28415 echo "$as_me: failed program was:" >&5
28416 sed 's/^/| /' conftest.$ac_ext >&5
28420 rm -f conftest.err conftest.$ac_objext \
28421 conftest$ac_exeext conftest.$ac_ext
28422 if test "$ac_cv_var__res" != yes ; then
28423 cat >conftest.$ac_ext <<_ACEOF
28426 cat confdefs.h >>conftest.$ac_ext
28427 cat >>conftest.$ac_ext <<_ACEOF
28428 /* end confdefs.h. */
28430 int foo() { return _res; }
28439 rm -f conftest.$ac_objext conftest$ac_exeext
28440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28441 (eval $ac_link) 2>conftest.er1
28443 grep -v '^ *+' conftest.er1 >conftest.err
28445 cat conftest.err >&5
28446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28447 (exit $ac_status); } &&
28448 { ac_try='test -z "$ac_c_werror_flag"
28449 || test ! -s conftest.err'
28450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28451 (eval $ac_try) 2>&5
28453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454 (exit $ac_status); }; } &&
28455 { ac_try='test -s conftest$ac_exeext'
28456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28457 (eval $ac_try) 2>&5
28459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460 (exit $ac_status); }; }; then
28463 echo "$as_me: failed program was:" >&5
28464 sed 's/^/| /' conftest.$ac_ext >&5
28468 rm -f conftest.err conftest.$ac_objext \
28469 conftest$ac_exeext conftest.$ac_ext
28474 ac_foo=`eval echo \\$ac_cv_var__res`
28475 echo "$as_me:$LINENO: result: $ac_foo" >&5
28476 echo "${ECHO_T}$ac_foo" >&6
28477 if test "$ac_foo" = yes; then
28479 cat >>confdefs.h <<_ACEOF
28480 #define HAVE__RES 1
28484 echo "$as_me:$LINENO: checking if _res is properly declared" >&5
28485 echo $ECHO_N "checking if _res is properly declared... $ECHO_C" >&6
28486 if test "${ac_cv_var__res_declaration+set}" = set; then
28487 echo $ECHO_N "(cached) $ECHO_C" >&6
28490 cat >conftest.$ac_ext <<_ACEOF
28493 cat confdefs.h >>conftest.$ac_ext
28494 cat >>conftest.$ac_ext <<_ACEOF
28495 /* end confdefs.h. */
28497 #ifdef HAVE_SYS_TYPES_H
28498 #include <sys/types.h>
28500 #ifdef HAVE_NETINET_IN_H
28501 #include <netinet/in.h>
28503 #ifdef HAVE_ARPA_NAMESER_H
28504 #include <arpa/nameser.h>
28506 #ifdef HAVE_RESOLV_H
28507 #include <resolv.h>
28509 extern struct { int foo; } _res;
28518 rm -f conftest.$ac_objext
28519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28520 (eval $ac_compile) 2>conftest.er1
28522 grep -v '^ *+' conftest.er1 >conftest.err
28524 cat conftest.err >&5
28525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28526 (exit $ac_status); } &&
28527 { ac_try='test -z "$ac_c_werror_flag"
28528 || test ! -s conftest.err'
28529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28530 (eval $ac_try) 2>&5
28532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533 (exit $ac_status); }; } &&
28534 { ac_try='test -s conftest.$ac_objext'
28535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28536 (eval $ac_try) 2>&5
28538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539 (exit $ac_status); }; }; then
28540 eval "ac_cv_var__res_declaration=no"
28542 echo "$as_me: failed program was:" >&5
28543 sed 's/^/| /' conftest.$ac_ext >&5
28545 eval "ac_cv_var__res_declaration=yes"
28547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28554 echo "$as_me:$LINENO: result: $ac_cv_var__res_declaration" >&5
28555 echo "${ECHO_T}$ac_cv_var__res_declaration" >&6
28556 if eval "test \"\$ac_cv_var__res_declaration\" = yes"; then
28558 cat >>confdefs.h <<\_ACEOF
28559 #define HAVE__RES_DECLARATION 1
28570 echo "$as_me:$LINENO: checking for working snprintf" >&5
28571 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
28572 if test "${ac_cv_func_snprintf_working+set}" = set; then
28573 echo $ECHO_N "(cached) $ECHO_C" >&6
28575 ac_cv_func_snprintf_working=yes
28576 if test "$cross_compiling" = yes; then
28579 cat >conftest.$ac_ext <<_ACEOF
28582 cat confdefs.h >>conftest.$ac_ext
28583 cat >>conftest.$ac_ext <<_ACEOF
28584 /* end confdefs.h. */
28587 #include <string.h>
28591 snprintf(foo, 2, "12");
28592 return strcmp(foo, "1");
28595 rm -f conftest$ac_exeext
28596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28597 (eval $ac_link) 2>&5
28599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28602 (eval $ac_try) 2>&5
28604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605 (exit $ac_status); }; }; then
28608 echo "$as_me: program exited with status $ac_status" >&5
28609 echo "$as_me: failed program was:" >&5
28610 sed 's/^/| /' conftest.$ac_ext >&5
28612 ( exit $ac_status )
28613 ac_cv_func_snprintf_working=no
28615 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28618 echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_working" >&5
28619 echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6
28621 if test "$ac_cv_func_snprintf_working" = yes; then
28623 cat >>confdefs.h <<_ACEOF
28624 #define HAVE_SNPRINTF 1
28628 if test "$ac_cv_func_snprintf_working" = yes; then
28630 if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
28631 echo "$as_me:$LINENO: checking if snprintf needs a prototype" >&5
28632 echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6
28633 if test "${ac_cv_func_snprintf_noproto+set}" = set; then
28634 echo $ECHO_N "(cached) $ECHO_C" >&6
28636 cat >conftest.$ac_ext <<_ACEOF
28639 cat confdefs.h >>conftest.$ac_ext
28640 cat >>conftest.$ac_ext <<_ACEOF
28641 /* end confdefs.h. */
28646 struct foo { int foo; } xx;
28647 extern int snprintf (struct foo*);
28654 rm -f conftest.$ac_objext
28655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28656 (eval $ac_compile) 2>conftest.er1
28658 grep -v '^ *+' conftest.er1 >conftest.err
28660 cat conftest.err >&5
28661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662 (exit $ac_status); } &&
28663 { ac_try='test -z "$ac_c_werror_flag"
28664 || test ! -s conftest.err'
28665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28666 (eval $ac_try) 2>&5
28668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28669 (exit $ac_status); }; } &&
28670 { ac_try='test -s conftest.$ac_objext'
28671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28672 (eval $ac_try) 2>&5
28674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675 (exit $ac_status); }; }; then
28676 eval "ac_cv_func_snprintf_noproto=yes"
28678 echo "$as_me: failed program was:" >&5
28679 sed 's/^/| /' conftest.$ac_ext >&5
28681 eval "ac_cv_func_snprintf_noproto=no"
28683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28685 echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_noproto" >&5
28686 echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6
28687 if test "$ac_cv_func_snprintf_noproto" = yes; then
28689 cat >>confdefs.h <<\_ACEOF
28690 #define NEED_SNPRINTF_PROTO 1
28699 echo "$as_me:$LINENO: checking for working vsnprintf" >&5
28700 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
28701 if test "${ac_cv_func_vsnprintf_working+set}" = set; then
28702 echo $ECHO_N "(cached) $ECHO_C" >&6
28704 ac_cv_func_vsnprintf_working=yes
28705 if test "$cross_compiling" = yes; then
28708 cat >conftest.$ac_ext <<_ACEOF
28711 cat confdefs.h >>conftest.$ac_ext
28712 cat >>conftest.$ac_ext <<_ACEOF
28713 /* end confdefs.h. */
28716 #include <string.h>
28717 #include <stdarg.h>
28719 int foo(int num, ...)
28723 va_start(arg, num);
28724 vsnprintf(bar, 2, "%s", arg);
28726 return strcmp(bar, "1");
28732 return foo(0, "12");
28735 rm -f conftest$ac_exeext
28736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28737 (eval $ac_link) 2>&5
28739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28742 (eval $ac_try) 2>&5
28744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745 (exit $ac_status); }; }; then
28748 echo "$as_me: program exited with status $ac_status" >&5
28749 echo "$as_me: failed program was:" >&5
28750 sed 's/^/| /' conftest.$ac_ext >&5
28752 ( exit $ac_status )
28753 ac_cv_func_vsnprintf_working=no
28755 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28758 echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_working" >&5
28759 echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6
28761 if test "$ac_cv_func_vsnprintf_working" = yes; then
28763 cat >>confdefs.h <<_ACEOF
28764 #define HAVE_VSNPRINTF 1
28768 if test "$ac_cv_func_vsnprintf_working" = yes; then
28770 if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
28771 echo "$as_me:$LINENO: checking if vsnprintf needs a prototype" >&5
28772 echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6
28773 if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then
28774 echo $ECHO_N "(cached) $ECHO_C" >&6
28776 cat >conftest.$ac_ext <<_ACEOF
28779 cat confdefs.h >>conftest.$ac_ext
28780 cat >>conftest.$ac_ext <<_ACEOF
28781 /* end confdefs.h. */
28786 struct foo { int foo; } xx;
28787 extern int vsnprintf (struct foo*);
28794 rm -f conftest.$ac_objext
28795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28796 (eval $ac_compile) 2>conftest.er1
28798 grep -v '^ *+' conftest.er1 >conftest.err
28800 cat conftest.err >&5
28801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28802 (exit $ac_status); } &&
28803 { ac_try='test -z "$ac_c_werror_flag"
28804 || test ! -s conftest.err'
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); }; } &&
28810 { ac_try='test -s conftest.$ac_objext'
28811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28812 (eval $ac_try) 2>&5
28814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28815 (exit $ac_status); }; }; then
28816 eval "ac_cv_func_vsnprintf_noproto=yes"
28818 echo "$as_me: failed program was:" >&5
28819 sed 's/^/| /' conftest.$ac_ext >&5
28821 eval "ac_cv_func_vsnprintf_noproto=no"
28823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28825 echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_noproto" >&5
28826 echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6
28827 if test "$ac_cv_func_vsnprintf_noproto" = yes; then
28829 cat >>confdefs.h <<\_ACEOF
28830 #define NEED_VSNPRINTF_PROTO 1
28840 echo "$as_me:$LINENO: checking for working glob" >&5
28841 echo $ECHO_N "checking for working glob... $ECHO_C" >&6
28842 if test "${ac_cv_func_glob_working+set}" = set; then
28843 echo $ECHO_N "(cached) $ECHO_C" >&6
28845 ac_cv_func_glob_working=yes
28846 cat >conftest.$ac_ext <<_ACEOF
28849 cat confdefs.h >>conftest.$ac_ext
28850 cat >>conftest.$ac_ext <<_ACEOF
28851 /* end confdefs.h. */
28859 glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
28860 #ifdef GLOB_MAXPATH
28872 rm -f conftest.$ac_objext conftest$ac_exeext
28873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28874 (eval $ac_link) 2>conftest.er1
28876 grep -v '^ *+' conftest.er1 >conftest.err
28878 cat conftest.err >&5
28879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28880 (exit $ac_status); } &&
28881 { ac_try='test -z "$ac_c_werror_flag"
28882 || test ! -s conftest.err'
28883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28884 (eval $ac_try) 2>&5
28886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887 (exit $ac_status); }; } &&
28888 { ac_try='test -s conftest$ac_exeext'
28889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28890 (eval $ac_try) 2>&5
28892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28893 (exit $ac_status); }; }; then
28896 echo "$as_me: failed program was:" >&5
28897 sed 's/^/| /' conftest.$ac_ext >&5
28899 ac_cv_func_glob_working=no
28901 rm -f conftest.err conftest.$ac_objext \
28902 conftest$ac_exeext conftest.$ac_ext
28904 echo "$as_me:$LINENO: result: $ac_cv_func_glob_working" >&5
28905 echo "${ECHO_T}$ac_cv_func_glob_working" >&6
28907 if test "$ac_cv_func_glob_working" = yes; then
28909 cat >>confdefs.h <<\_ACEOF
28910 #define HAVE_GLOB 1
28914 if test "$ac_cv_func_glob_working" = yes; then
28916 if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then
28917 echo "$as_me:$LINENO: checking if glob needs a prototype" >&5
28918 echo $ECHO_N "checking if glob needs a prototype... $ECHO_C" >&6
28919 if test "${ac_cv_func_glob_noproto+set}" = set; then
28920 echo $ECHO_N "(cached) $ECHO_C" >&6
28922 cat >conftest.$ac_ext <<_ACEOF
28925 cat confdefs.h >>conftest.$ac_ext
28926 cat >>conftest.$ac_ext <<_ACEOF
28927 /* end confdefs.h. */
28933 struct foo { int foo; } xx;
28934 extern int glob (struct foo*);
28941 rm -f conftest.$ac_objext
28942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28943 (eval $ac_compile) 2>conftest.er1
28945 grep -v '^ *+' conftest.er1 >conftest.err
28947 cat conftest.err >&5
28948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28949 (exit $ac_status); } &&
28950 { ac_try='test -z "$ac_c_werror_flag"
28951 || test ! -s conftest.err'
28952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28953 (eval $ac_try) 2>&5
28955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956 (exit $ac_status); }; } &&
28957 { ac_try='test -s conftest.$ac_objext'
28958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28959 (eval $ac_try) 2>&5
28961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962 (exit $ac_status); }; }; then
28963 eval "ac_cv_func_glob_noproto=yes"
28965 echo "$as_me: failed program was:" >&5
28966 sed 's/^/| /' conftest.$ac_ext >&5
28968 eval "ac_cv_func_glob_noproto=no"
28970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28972 echo "$as_me:$LINENO: result: $ac_cv_func_glob_noproto" >&5
28973 echo "${ECHO_T}$ac_cv_func_glob_noproto" >&6
28974 if test "$ac_cv_func_glob_noproto" = yes; then
28976 cat >>confdefs.h <<\_ACEOF
28977 #define NEED_GLOB_PROTO 1
28985 if test "$ac_cv_func_glob_working" != yes; then
28987 "glob.$ac_objext" | \
28988 *" glob.$ac_objext" | \
28989 "glob.$ac_objext "* | \
28990 *" glob.$ac_objext "* ) ;;
28991 *) LIBOBJS="$LIBOBJS glob.$ac_objext" ;;
28997 if test "$ac_cv_func_glob_working" = yes; then
28999 have_glob_h_FALSE='#'
29001 have_glob_h_TRUE='#'
29062 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29063 echo "$as_me:$LINENO: checking for $ac_func" >&5
29064 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29065 if eval "test \"\${$as_ac_var+set}\" = set"; then
29066 echo $ECHO_N "(cached) $ECHO_C" >&6
29068 cat >conftest.$ac_ext <<_ACEOF
29071 cat confdefs.h >>conftest.$ac_ext
29072 cat >>conftest.$ac_ext <<_ACEOF
29073 /* end confdefs.h. */
29074 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29076 #define $ac_func innocuous_$ac_func
29078 /* System header to define __stub macros and hopefully few prototypes,
29079 which can conflict with char $ac_func (); below.
29080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29081 <limits.h> exists even on freestanding compilers. */
29084 # include <limits.h>
29086 # include <assert.h>
29091 /* Override any gcc2 internal prototype to avoid an error. */
29096 /* We use char because int might match the return type of a gcc2
29097 builtin and then its argument prototype would still apply. */
29099 /* The GNU C library defines this for functions which it implements
29100 to always fail with ENOSYS. Some functions are actually named
29101 something starting with __ and the normal name is an alias. */
29102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29105 char (*f) () = $ac_func;
29114 return f != $ac_func;
29119 rm -f conftest.$ac_objext conftest$ac_exeext
29120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29121 (eval $ac_link) 2>conftest.er1
29123 grep -v '^ *+' conftest.er1 >conftest.err
29125 cat conftest.err >&5
29126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29127 (exit $ac_status); } &&
29128 { ac_try='test -z "$ac_c_werror_flag"
29129 || test ! -s conftest.err'
29130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29131 (eval $ac_try) 2>&5
29133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134 (exit $ac_status); }; } &&
29135 { ac_try='test -s conftest$ac_exeext'
29136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29137 (eval $ac_try) 2>&5
29139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29140 (exit $ac_status); }; }; then
29141 eval "$as_ac_var=yes"
29143 echo "$as_me: failed program was:" >&5
29144 sed 's/^/| /' conftest.$ac_ext >&5
29146 eval "$as_ac_var=no"
29148 rm -f conftest.err conftest.$ac_objext \
29149 conftest$ac_exeext conftest.$ac_ext
29151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29152 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29153 if test `eval echo '${'$as_ac_var'}'` = yes; then
29154 cat >>confdefs.h <<_ACEOF
29155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29162 if test "$ac_cv_func_cgetent" = no; then
29164 "getcap.$ac_objext" | \
29165 *" getcap.$ac_objext" | \
29166 "getcap.$ac_objext "* | \
29167 *" getcap.$ac_objext "* ) ;;
29168 *) LIBOBJS="$LIBOBJS getcap.$ac_objext" ;;
29180 echo "$as_me:$LINENO: checking for getsockopt" >&5
29181 echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6
29182 if test "${ac_cv_funclib_getsockopt+set}" = set; then
29183 echo $ECHO_N "(cached) $ECHO_C" >&6
29186 if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
29187 ac_save_LIBS="$LIBS"
29188 for ac_lib in "" ; do
29194 *) ac_lib="-l$ac_lib" ;;
29196 LIBS=" $ac_lib $ac_save_LIBS"
29197 cat >conftest.$ac_ext <<_ACEOF
29200 cat confdefs.h >>conftest.$ac_ext
29201 cat >>conftest.$ac_ext <<_ACEOF
29202 /* end confdefs.h. */
29203 #ifdef HAVE_SYS_TYPES_H
29204 #include <sys/types.h>
29206 #ifdef HAVE_SYS_SOCKET_H
29207 #include <sys/socket.h>
29212 getsockopt(0,0,0,0,0)
29217 rm -f conftest.$ac_objext conftest$ac_exeext
29218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29219 (eval $ac_link) 2>conftest.er1
29221 grep -v '^ *+' conftest.er1 >conftest.err
29223 cat conftest.err >&5
29224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225 (exit $ac_status); } &&
29226 { ac_try='test -z "$ac_c_werror_flag"
29227 || test ! -s conftest.err'
29228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29229 (eval $ac_try) 2>&5
29231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29232 (exit $ac_status); }; } &&
29233 { ac_try='test -s conftest$ac_exeext'
29234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29235 (eval $ac_try) 2>&5
29237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238 (exit $ac_status); }; }; then
29239 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
29241 echo "$as_me: failed program was:" >&5
29242 sed 's/^/| /' conftest.$ac_ext >&5
29245 rm -f conftest.err conftest.$ac_objext \
29246 conftest$ac_exeext conftest.$ac_ext
29248 eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
29249 LIBS="$ac_save_LIBS"
29255 eval "ac_res=\$ac_cv_funclib_getsockopt"
29259 for ac_func in getsockopt
29261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29262 echo "$as_me:$LINENO: checking for $ac_func" >&5
29263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29264 if eval "test \"\${$as_ac_var+set}\" = set"; then
29265 echo $ECHO_N "(cached) $ECHO_C" >&6
29267 cat >conftest.$ac_ext <<_ACEOF
29270 cat confdefs.h >>conftest.$ac_ext
29271 cat >>conftest.$ac_ext <<_ACEOF
29272 /* end confdefs.h. */
29273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29275 #define $ac_func innocuous_$ac_func
29277 /* System header to define __stub macros and hopefully few prototypes,
29278 which can conflict with char $ac_func (); below.
29279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29280 <limits.h> exists even on freestanding compilers. */
29283 # include <limits.h>
29285 # include <assert.h>
29290 /* Override any gcc2 internal prototype to avoid an error. */
29295 /* We use char because int might match the return type of a gcc2
29296 builtin and then its argument prototype would still apply. */
29298 /* The GNU C library defines this for functions which it implements
29299 to always fail with ENOSYS. Some functions are actually named
29300 something starting with __ and the normal name is an alias. */
29301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29304 char (*f) () = $ac_func;
29313 return f != $ac_func;
29318 rm -f conftest.$ac_objext conftest$ac_exeext
29319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29320 (eval $ac_link) 2>conftest.er1
29322 grep -v '^ *+' conftest.er1 >conftest.err
29324 cat conftest.err >&5
29325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326 (exit $ac_status); } &&
29327 { ac_try='test -z "$ac_c_werror_flag"
29328 || test ! -s conftest.err'
29329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29330 (eval $ac_try) 2>&5
29332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333 (exit $ac_status); }; } &&
29334 { ac_try='test -s conftest$ac_exeext'
29335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29336 (eval $ac_try) 2>&5
29338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29339 (exit $ac_status); }; }; then
29340 eval "$as_ac_var=yes"
29342 echo "$as_me: failed program was:" >&5
29343 sed 's/^/| /' conftest.$ac_ext >&5
29345 eval "$as_ac_var=no"
29347 rm -f conftest.err conftest.$ac_objext \
29348 conftest$ac_exeext conftest.$ac_ext
29350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29352 if test `eval echo '${'$as_ac_var'}'` = yes; then
29353 cat >>confdefs.h <<_ACEOF
29354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29362 eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29363 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29364 eval "LIB_getsockopt=$ac_res"
29368 eval "ac_cv_func_getsockopt=yes"
29369 eval "LIB_getsockopt="
29370 cat >>confdefs.h <<_ACEOF
29371 #define $ac_tr_func 1
29374 echo "$as_me:$LINENO: result: yes" >&5
29375 echo "${ECHO_T}yes" >&6
29378 eval "ac_cv_func_getsockopt=no"
29379 eval "LIB_getsockopt="
29380 echo "$as_me:$LINENO: result: no" >&5
29381 echo "${ECHO_T}no" >&6
29384 eval "ac_cv_func_getsockopt=yes"
29385 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
29386 cat >>confdefs.h <<_ACEOF
29387 #define $ac_tr_func 1
29390 cat >>confdefs.h <<_ACEOF
29391 #define $ac_tr_lib 1
29394 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
29395 echo "${ECHO_T}yes, in $ac_res" >&6
29403 echo "$as_me:$LINENO: checking for setsockopt" >&5
29404 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
29405 if test "${ac_cv_funclib_setsockopt+set}" = set; then
29406 echo $ECHO_N "(cached) $ECHO_C" >&6
29409 if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
29410 ac_save_LIBS="$LIBS"
29411 for ac_lib in "" ; do
29417 *) ac_lib="-l$ac_lib" ;;
29419 LIBS=" $ac_lib $ac_save_LIBS"
29420 cat >conftest.$ac_ext <<_ACEOF
29423 cat confdefs.h >>conftest.$ac_ext
29424 cat >>conftest.$ac_ext <<_ACEOF
29425 /* end confdefs.h. */
29426 #ifdef HAVE_SYS_TYPES_H
29427 #include <sys/types.h>
29429 #ifdef HAVE_SYS_SOCKET_H
29430 #include <sys/socket.h>
29435 setsockopt(0,0,0,0,0)
29440 rm -f conftest.$ac_objext conftest$ac_exeext
29441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29442 (eval $ac_link) 2>conftest.er1
29444 grep -v '^ *+' conftest.er1 >conftest.err
29446 cat conftest.err >&5
29447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448 (exit $ac_status); } &&
29449 { ac_try='test -z "$ac_c_werror_flag"
29450 || test ! -s conftest.err'
29451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29452 (eval $ac_try) 2>&5
29454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29455 (exit $ac_status); }; } &&
29456 { ac_try='test -s conftest$ac_exeext'
29457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29458 (eval $ac_try) 2>&5
29460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29461 (exit $ac_status); }; }; then
29462 eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
29464 echo "$as_me: failed program was:" >&5
29465 sed 's/^/| /' conftest.$ac_ext >&5
29468 rm -f conftest.err conftest.$ac_objext \
29469 conftest$ac_exeext conftest.$ac_ext
29471 eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
29472 LIBS="$ac_save_LIBS"
29478 eval "ac_res=\$ac_cv_funclib_setsockopt"
29482 for ac_func in setsockopt
29484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29485 echo "$as_me:$LINENO: checking for $ac_func" >&5
29486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29487 if eval "test \"\${$as_ac_var+set}\" = set"; then
29488 echo $ECHO_N "(cached) $ECHO_C" >&6
29490 cat >conftest.$ac_ext <<_ACEOF
29493 cat confdefs.h >>conftest.$ac_ext
29494 cat >>conftest.$ac_ext <<_ACEOF
29495 /* end confdefs.h. */
29496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29498 #define $ac_func innocuous_$ac_func
29500 /* System header to define __stub macros and hopefully few prototypes,
29501 which can conflict with char $ac_func (); below.
29502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29503 <limits.h> exists even on freestanding compilers. */
29506 # include <limits.h>
29508 # include <assert.h>
29513 /* Override any gcc2 internal prototype to avoid an error. */
29518 /* We use char because int might match the return type of a gcc2
29519 builtin and then its argument prototype would still apply. */
29521 /* The GNU C library defines this for functions which it implements
29522 to always fail with ENOSYS. Some functions are actually named
29523 something starting with __ and the normal name is an alias. */
29524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29527 char (*f) () = $ac_func;
29536 return f != $ac_func;
29541 rm -f conftest.$ac_objext conftest$ac_exeext
29542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29543 (eval $ac_link) 2>conftest.er1
29545 grep -v '^ *+' conftest.er1 >conftest.err
29547 cat conftest.err >&5
29548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549 (exit $ac_status); } &&
29550 { ac_try='test -z "$ac_c_werror_flag"
29551 || test ! -s conftest.err'
29552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29553 (eval $ac_try) 2>&5
29555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556 (exit $ac_status); }; } &&
29557 { ac_try='test -s conftest$ac_exeext'
29558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29559 (eval $ac_try) 2>&5
29561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29562 (exit $ac_status); }; }; then
29563 eval "$as_ac_var=yes"
29565 echo "$as_me: failed program was:" >&5
29566 sed 's/^/| /' conftest.$ac_ext >&5
29568 eval "$as_ac_var=no"
29570 rm -f conftest.err conftest.$ac_objext \
29571 conftest$ac_exeext conftest.$ac_ext
29573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29575 if test `eval echo '${'$as_ac_var'}'` = yes; then
29576 cat >>confdefs.h <<_ACEOF
29577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29585 eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29586 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29587 eval "LIB_setsockopt=$ac_res"
29591 eval "ac_cv_func_setsockopt=yes"
29592 eval "LIB_setsockopt="
29593 cat >>confdefs.h <<_ACEOF
29594 #define $ac_tr_func 1
29597 echo "$as_me:$LINENO: result: yes" >&5
29598 echo "${ECHO_T}yes" >&6
29601 eval "ac_cv_func_setsockopt=no"
29602 eval "LIB_setsockopt="
29603 echo "$as_me:$LINENO: result: no" >&5
29604 echo "${ECHO_T}no" >&6
29607 eval "ac_cv_func_setsockopt=yes"
29608 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
29609 cat >>confdefs.h <<_ACEOF
29610 #define $ac_tr_func 1
29613 cat >>confdefs.h <<_ACEOF
29614 #define $ac_tr_lib 1
29617 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
29618 echo "${ECHO_T}yes, in $ac_res" >&6
29628 echo "$as_me:$LINENO: checking for hstrerror" >&5
29629 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
29630 if test "${ac_cv_funclib_hstrerror+set}" = set; then
29631 echo $ECHO_N "(cached) $ECHO_C" >&6
29634 if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
29635 ac_save_LIBS="$LIBS"
29636 for ac_lib in "" resolv; do
29642 *) ac_lib="-l$ac_lib" ;;
29644 LIBS=" $ac_lib $ac_save_LIBS"
29645 cat >conftest.$ac_ext <<_ACEOF
29648 cat confdefs.h >>conftest.$ac_ext
29649 cat >>conftest.$ac_ext <<_ACEOF
29650 /* end confdefs.h. */
29651 #ifdef HAVE_NETDB_H
29662 rm -f conftest.$ac_objext conftest$ac_exeext
29663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29664 (eval $ac_link) 2>conftest.er1
29666 grep -v '^ *+' conftest.er1 >conftest.err
29668 cat conftest.err >&5
29669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670 (exit $ac_status); } &&
29671 { ac_try='test -z "$ac_c_werror_flag"
29672 || test ! -s conftest.err'
29673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29674 (eval $ac_try) 2>&5
29676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29677 (exit $ac_status); }; } &&
29678 { ac_try='test -s conftest$ac_exeext'
29679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29680 (eval $ac_try) 2>&5
29682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29683 (exit $ac_status); }; }; then
29684 eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
29686 echo "$as_me: failed program was:" >&5
29687 sed 's/^/| /' conftest.$ac_ext >&5
29690 rm -f conftest.err conftest.$ac_objext \
29691 conftest$ac_exeext conftest.$ac_ext
29693 eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
29694 LIBS="$ac_save_LIBS"
29700 eval "ac_res=\$ac_cv_funclib_hstrerror"
29704 for ac_func in hstrerror
29706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29707 echo "$as_me:$LINENO: checking for $ac_func" >&5
29708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29709 if eval "test \"\${$as_ac_var+set}\" = set"; then
29710 echo $ECHO_N "(cached) $ECHO_C" >&6
29712 cat >conftest.$ac_ext <<_ACEOF
29715 cat confdefs.h >>conftest.$ac_ext
29716 cat >>conftest.$ac_ext <<_ACEOF
29717 /* end confdefs.h. */
29718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29720 #define $ac_func innocuous_$ac_func
29722 /* System header to define __stub macros and hopefully few prototypes,
29723 which can conflict with char $ac_func (); below.
29724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29725 <limits.h> exists even on freestanding compilers. */
29728 # include <limits.h>
29730 # include <assert.h>
29735 /* Override any gcc2 internal prototype to avoid an error. */
29740 /* We use char because int might match the return type of a gcc2
29741 builtin and then its argument prototype would still apply. */
29743 /* The GNU C library defines this for functions which it implements
29744 to always fail with ENOSYS. Some functions are actually named
29745 something starting with __ and the normal name is an alias. */
29746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29749 char (*f) () = $ac_func;
29758 return f != $ac_func;
29763 rm -f conftest.$ac_objext conftest$ac_exeext
29764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29765 (eval $ac_link) 2>conftest.er1
29767 grep -v '^ *+' conftest.er1 >conftest.err
29769 cat conftest.err >&5
29770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29771 (exit $ac_status); } &&
29772 { ac_try='test -z "$ac_c_werror_flag"
29773 || test ! -s conftest.err'
29774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29775 (eval $ac_try) 2>&5
29777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29778 (exit $ac_status); }; } &&
29779 { ac_try='test -s conftest$ac_exeext'
29780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29781 (eval $ac_try) 2>&5
29783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29784 (exit $ac_status); }; }; then
29785 eval "$as_ac_var=yes"
29787 echo "$as_me: failed program was:" >&5
29788 sed 's/^/| /' conftest.$ac_ext >&5
29790 eval "$as_ac_var=no"
29792 rm -f conftest.err conftest.$ac_objext \
29793 conftest$ac_exeext conftest.$ac_ext
29795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29796 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29797 if test `eval echo '${'$as_ac_var'}'` = yes; then
29798 cat >>confdefs.h <<_ACEOF
29799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29807 eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29808 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29809 eval "LIB_hstrerror=$ac_res"
29813 eval "ac_cv_func_hstrerror=yes"
29814 eval "LIB_hstrerror="
29815 cat >>confdefs.h <<_ACEOF
29816 #define $ac_tr_func 1
29819 echo "$as_me:$LINENO: result: yes" >&5
29820 echo "${ECHO_T}yes" >&6
29823 eval "ac_cv_func_hstrerror=no"
29824 eval "LIB_hstrerror="
29825 echo "$as_me:$LINENO: result: no" >&5
29826 echo "${ECHO_T}no" >&6
29829 eval "ac_cv_func_hstrerror=yes"
29830 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
29831 cat >>confdefs.h <<_ACEOF
29832 #define $ac_tr_func 1
29835 cat >>confdefs.h <<_ACEOF
29836 #define $ac_tr_lib 1
29839 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
29840 echo "${ECHO_T}yes, in $ac_res" >&6
29845 if test -n "$LIB_hstrerror"; then
29846 LIBS="$LIB_hstrerror $LIBS"
29849 if eval "test \"$ac_cv_func_hstrerror\" != yes"; then
29851 "hstrerror.$ac_objext" | \
29852 *" hstrerror.$ac_objext" | \
29853 "hstrerror.$ac_objext "* | \
29854 *" hstrerror.$ac_objext "* ) ;;
29855 *) LIBOBJS="$LIBOBJS hstrerror.$ac_objext" ;;
29861 if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then
29862 echo "$as_me:$LINENO: checking if hstrerror needs a prototype" >&5
29863 echo $ECHO_N "checking if hstrerror needs a prototype... $ECHO_C" >&6
29864 if test "${ac_cv_func_hstrerror_noproto+set}" = set; then
29865 echo $ECHO_N "(cached) $ECHO_C" >&6
29867 cat >conftest.$ac_ext <<_ACEOF
29870 cat confdefs.h >>conftest.$ac_ext
29871 cat >>conftest.$ac_ext <<_ACEOF
29872 /* end confdefs.h. */
29874 #ifdef HAVE_NETDB_H
29880 struct foo { int foo; } xx;
29881 extern int hstrerror (struct foo*);
29888 rm -f conftest.$ac_objext
29889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29890 (eval $ac_compile) 2>conftest.er1
29892 grep -v '^ *+' conftest.er1 >conftest.err
29894 cat conftest.err >&5
29895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29896 (exit $ac_status); } &&
29897 { ac_try='test -z "$ac_c_werror_flag"
29898 || test ! -s conftest.err'
29899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29900 (eval $ac_try) 2>&5
29902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903 (exit $ac_status); }; } &&
29904 { ac_try='test -s conftest.$ac_objext'
29905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29906 (eval $ac_try) 2>&5
29908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29909 (exit $ac_status); }; }; then
29910 eval "ac_cv_func_hstrerror_noproto=yes"
29912 echo "$as_me: failed program was:" >&5
29913 sed 's/^/| /' conftest.$ac_ext >&5
29915 eval "ac_cv_func_hstrerror_noproto=no"
29917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29919 echo "$as_me:$LINENO: result: $ac_cv_func_hstrerror_noproto" >&5
29920 echo "${ECHO_T}$ac_cv_func_hstrerror_noproto" >&6
29921 if test "$ac_cv_func_hstrerror_noproto" = yes; then
29923 cat >>confdefs.h <<\_ACEOF
29924 #define NEED_HSTRERROR_PROTO 1
29932 if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then
29933 echo "$as_me:$LINENO: checking if asprintf needs a prototype" >&5
29934 echo $ECHO_N "checking if asprintf needs a prototype... $ECHO_C" >&6
29935 if test "${ac_cv_func_asprintf_noproto+set}" = set; then
29936 echo $ECHO_N "(cached) $ECHO_C" >&6
29938 cat >conftest.$ac_ext <<_ACEOF
29941 cat confdefs.h >>conftest.$ac_ext
29942 cat >>conftest.$ac_ext <<_ACEOF
29943 /* end confdefs.h. */
29946 #include <string.h>
29950 struct foo { int foo; } xx;
29951 extern int asprintf (struct foo*);
29958 rm -f conftest.$ac_objext
29959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29960 (eval $ac_compile) 2>conftest.er1
29962 grep -v '^ *+' conftest.er1 >conftest.err
29964 cat conftest.err >&5
29965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29966 (exit $ac_status); } &&
29967 { ac_try='test -z "$ac_c_werror_flag"
29968 || test ! -s conftest.err'
29969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29970 (eval $ac_try) 2>&5
29972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29973 (exit $ac_status); }; } &&
29974 { ac_try='test -s conftest.$ac_objext'
29975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29976 (eval $ac_try) 2>&5
29978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29979 (exit $ac_status); }; }; then
29980 eval "ac_cv_func_asprintf_noproto=yes"
29982 echo "$as_me: failed program was:" >&5
29983 sed 's/^/| /' conftest.$ac_ext >&5
29985 eval "ac_cv_func_asprintf_noproto=no"
29987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29989 echo "$as_me:$LINENO: result: $ac_cv_func_asprintf_noproto" >&5
29990 echo "${ECHO_T}$ac_cv_func_asprintf_noproto" >&6
29991 if test "$ac_cv_func_asprintf_noproto" = yes; then
29993 cat >>confdefs.h <<\_ACEOF
29994 #define NEED_ASPRINTF_PROTO 1
30000 if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then
30001 echo "$as_me:$LINENO: checking if vasprintf needs a prototype" >&5
30002 echo $ECHO_N "checking if vasprintf needs a prototype... $ECHO_C" >&6
30003 if test "${ac_cv_func_vasprintf_noproto+set}" = set; then
30004 echo $ECHO_N "(cached) $ECHO_C" >&6
30006 cat >conftest.$ac_ext <<_ACEOF
30009 cat confdefs.h >>conftest.$ac_ext
30010 cat >>conftest.$ac_ext <<_ACEOF
30011 /* end confdefs.h. */
30014 #include <string.h>
30018 struct foo { int foo; } xx;
30019 extern int vasprintf (struct foo*);
30026 rm -f conftest.$ac_objext
30027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30028 (eval $ac_compile) 2>conftest.er1
30030 grep -v '^ *+' conftest.er1 >conftest.err
30032 cat conftest.err >&5
30033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30034 (exit $ac_status); } &&
30035 { ac_try='test -z "$ac_c_werror_flag"
30036 || test ! -s conftest.err'
30037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30038 (eval $ac_try) 2>&5
30040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30041 (exit $ac_status); }; } &&
30042 { ac_try='test -s conftest.$ac_objext'
30043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30044 (eval $ac_try) 2>&5
30046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30047 (exit $ac_status); }; }; then
30048 eval "ac_cv_func_vasprintf_noproto=yes"
30050 echo "$as_me: failed program was:" >&5
30051 sed 's/^/| /' conftest.$ac_ext >&5
30053 eval "ac_cv_func_vasprintf_noproto=no"
30055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30057 echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf_noproto" >&5
30058 echo "${ECHO_T}$ac_cv_func_vasprintf_noproto" >&6
30059 if test "$ac_cv_func_vasprintf_noproto" = yes; then
30061 cat >>confdefs.h <<\_ACEOF
30062 #define NEED_VASPRINTF_PROTO 1
30068 if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then
30069 echo "$as_me:$LINENO: checking if asnprintf needs a prototype" >&5
30070 echo $ECHO_N "checking if asnprintf needs a prototype... $ECHO_C" >&6
30071 if test "${ac_cv_func_asnprintf_noproto+set}" = set; then
30072 echo $ECHO_N "(cached) $ECHO_C" >&6
30074 cat >conftest.$ac_ext <<_ACEOF
30077 cat confdefs.h >>conftest.$ac_ext
30078 cat >>conftest.$ac_ext <<_ACEOF
30079 /* end confdefs.h. */
30082 #include <string.h>
30086 struct foo { int foo; } xx;
30087 extern int asnprintf (struct foo*);
30094 rm -f conftest.$ac_objext
30095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30096 (eval $ac_compile) 2>conftest.er1
30098 grep -v '^ *+' conftest.er1 >conftest.err
30100 cat conftest.err >&5
30101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102 (exit $ac_status); } &&
30103 { ac_try='test -z "$ac_c_werror_flag"
30104 || test ! -s conftest.err'
30105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30106 (eval $ac_try) 2>&5
30108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30109 (exit $ac_status); }; } &&
30110 { ac_try='test -s conftest.$ac_objext'
30111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30112 (eval $ac_try) 2>&5
30114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30115 (exit $ac_status); }; }; then
30116 eval "ac_cv_func_asnprintf_noproto=yes"
30118 echo "$as_me: failed program was:" >&5
30119 sed 's/^/| /' conftest.$ac_ext >&5
30121 eval "ac_cv_func_asnprintf_noproto=no"
30123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30125 echo "$as_me:$LINENO: result: $ac_cv_func_asnprintf_noproto" >&5
30126 echo "${ECHO_T}$ac_cv_func_asnprintf_noproto" >&6
30127 if test "$ac_cv_func_asnprintf_noproto" = yes; then
30129 cat >>confdefs.h <<\_ACEOF
30130 #define NEED_ASNPRINTF_PROTO 1
30136 if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then
30137 echo "$as_me:$LINENO: checking if vasnprintf needs a prototype" >&5
30138 echo $ECHO_N "checking if vasnprintf needs a prototype... $ECHO_C" >&6
30139 if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then
30140 echo $ECHO_N "(cached) $ECHO_C" >&6
30142 cat >conftest.$ac_ext <<_ACEOF
30145 cat confdefs.h >>conftest.$ac_ext
30146 cat >>conftest.$ac_ext <<_ACEOF
30147 /* end confdefs.h. */
30150 #include <string.h>
30154 struct foo { int foo; } xx;
30155 extern int vasnprintf (struct foo*);
30162 rm -f conftest.$ac_objext
30163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30164 (eval $ac_compile) 2>conftest.er1
30166 grep -v '^ *+' conftest.er1 >conftest.err
30168 cat conftest.err >&5
30169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30170 (exit $ac_status); } &&
30171 { ac_try='test -z "$ac_c_werror_flag"
30172 || test ! -s conftest.err'
30173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30174 (eval $ac_try) 2>&5
30176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30177 (exit $ac_status); }; } &&
30178 { ac_try='test -s conftest.$ac_objext'
30179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30180 (eval $ac_try) 2>&5
30182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30183 (exit $ac_status); }; }; then
30184 eval "ac_cv_func_vasnprintf_noproto=yes"
30186 echo "$as_me: failed program was:" >&5
30187 sed 's/^/| /' conftest.$ac_ext >&5
30189 eval "ac_cv_func_vasnprintf_noproto=no"
30191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30193 echo "$as_me:$LINENO: result: $ac_cv_func_vasnprintf_noproto" >&5
30194 echo "${ECHO_T}$ac_cv_func_vasnprintf_noproto" >&6
30195 if test "$ac_cv_func_vasnprintf_noproto" = yes; then
30197 cat >>confdefs.h <<\_ACEOF
30198 #define NEED_VASNPRINTF_PROTO 1
30208 echo "$as_me:$LINENO: checking for bswap16" >&5
30209 echo $ECHO_N "checking for bswap16... $ECHO_C" >&6
30210 if test "${ac_cv_funclib_bswap16+set}" = set; then
30211 echo $ECHO_N "(cached) $ECHO_C" >&6
30214 if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then
30215 ac_save_LIBS="$LIBS"
30216 for ac_lib in "" ; do
30222 *) ac_lib="-l$ac_lib" ;;
30224 LIBS=" $ac_lib $ac_save_LIBS"
30225 cat >conftest.$ac_ext <<_ACEOF
30228 cat confdefs.h >>conftest.$ac_ext
30229 cat >>conftest.$ac_ext <<_ACEOF
30230 /* end confdefs.h. */
30231 #ifdef HAVE_SYS_BSWAP_H
30232 #include <sys/bswap.h>
30242 rm -f conftest.$ac_objext conftest$ac_exeext
30243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30244 (eval $ac_link) 2>conftest.er1
30246 grep -v '^ *+' conftest.er1 >conftest.err
30248 cat conftest.err >&5
30249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30250 (exit $ac_status); } &&
30251 { ac_try='test -z "$ac_c_werror_flag"
30252 || test ! -s conftest.err'
30253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30254 (eval $ac_try) 2>&5
30256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30257 (exit $ac_status); }; } &&
30258 { ac_try='test -s conftest$ac_exeext'
30259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30260 (eval $ac_try) 2>&5
30262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30263 (exit $ac_status); }; }; then
30264 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break
30266 echo "$as_me: failed program was:" >&5
30267 sed 's/^/| /' conftest.$ac_ext >&5
30270 rm -f conftest.err conftest.$ac_objext \
30271 conftest$ac_exeext conftest.$ac_ext
30273 eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}"
30274 LIBS="$ac_save_LIBS"
30280 eval "ac_res=\$ac_cv_funclib_bswap16"
30284 for ac_func in bswap16
30286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30287 echo "$as_me:$LINENO: checking for $ac_func" >&5
30288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30289 if eval "test \"\${$as_ac_var+set}\" = set"; then
30290 echo $ECHO_N "(cached) $ECHO_C" >&6
30292 cat >conftest.$ac_ext <<_ACEOF
30295 cat confdefs.h >>conftest.$ac_ext
30296 cat >>conftest.$ac_ext <<_ACEOF
30297 /* end confdefs.h. */
30298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30300 #define $ac_func innocuous_$ac_func
30302 /* System header to define __stub macros and hopefully few prototypes,
30303 which can conflict with char $ac_func (); below.
30304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30305 <limits.h> exists even on freestanding compilers. */
30308 # include <limits.h>
30310 # include <assert.h>
30315 /* Override any gcc2 internal prototype to avoid an error. */
30320 /* We use char because int might match the return type of a gcc2
30321 builtin and then its argument prototype would still apply. */
30323 /* The GNU C library defines this for functions which it implements
30324 to always fail with ENOSYS. Some functions are actually named
30325 something starting with __ and the normal name is an alias. */
30326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30329 char (*f) () = $ac_func;
30338 return f != $ac_func;
30343 rm -f conftest.$ac_objext conftest$ac_exeext
30344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30345 (eval $ac_link) 2>conftest.er1
30347 grep -v '^ *+' conftest.er1 >conftest.err
30349 cat conftest.err >&5
30350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351 (exit $ac_status); } &&
30352 { ac_try='test -z "$ac_c_werror_flag"
30353 || test ! -s conftest.err'
30354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30355 (eval $ac_try) 2>&5
30357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30358 (exit $ac_status); }; } &&
30359 { ac_try='test -s conftest$ac_exeext'
30360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30361 (eval $ac_try) 2>&5
30363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30364 (exit $ac_status); }; }; then
30365 eval "$as_ac_var=yes"
30367 echo "$as_me: failed program was:" >&5
30368 sed 's/^/| /' conftest.$ac_ext >&5
30370 eval "$as_ac_var=no"
30372 rm -f conftest.err conftest.$ac_objext \
30373 conftest$ac_exeext conftest.$ac_ext
30375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30376 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30377 if test `eval echo '${'$as_ac_var'}'` = yes; then
30378 cat >>confdefs.h <<_ACEOF
30379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30387 eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30388 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30389 eval "LIB_bswap16=$ac_res"
30393 eval "ac_cv_func_bswap16=yes"
30394 eval "LIB_bswap16="
30395 cat >>confdefs.h <<_ACEOF
30396 #define $ac_tr_func 1
30399 echo "$as_me:$LINENO: result: yes" >&5
30400 echo "${ECHO_T}yes" >&6
30403 eval "ac_cv_func_bswap16=no"
30404 eval "LIB_bswap16="
30405 echo "$as_me:$LINENO: result: no" >&5
30406 echo "${ECHO_T}no" >&6
30409 eval "ac_cv_func_bswap16=yes"
30410 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30411 cat >>confdefs.h <<_ACEOF
30412 #define $ac_tr_func 1
30415 cat >>confdefs.h <<_ACEOF
30416 #define $ac_tr_lib 1
30419 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
30420 echo "${ECHO_T}yes, in $ac_res" >&6
30429 echo "$as_me:$LINENO: checking for bswap32" >&5
30430 echo $ECHO_N "checking for bswap32... $ECHO_C" >&6
30431 if test "${ac_cv_funclib_bswap32+set}" = set; then
30432 echo $ECHO_N "(cached) $ECHO_C" >&6
30435 if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then
30436 ac_save_LIBS="$LIBS"
30437 for ac_lib in "" ; do
30443 *) ac_lib="-l$ac_lib" ;;
30445 LIBS=" $ac_lib $ac_save_LIBS"
30446 cat >conftest.$ac_ext <<_ACEOF
30449 cat confdefs.h >>conftest.$ac_ext
30450 cat >>conftest.$ac_ext <<_ACEOF
30451 /* end confdefs.h. */
30452 #ifdef HAVE_SYS_BSWAP_H
30453 #include <sys/bswap.h>
30463 rm -f conftest.$ac_objext conftest$ac_exeext
30464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30465 (eval $ac_link) 2>conftest.er1
30467 grep -v '^ *+' conftest.er1 >conftest.err
30469 cat conftest.err >&5
30470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30471 (exit $ac_status); } &&
30472 { ac_try='test -z "$ac_c_werror_flag"
30473 || test ! -s conftest.err'
30474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30475 (eval $ac_try) 2>&5
30477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30478 (exit $ac_status); }; } &&
30479 { ac_try='test -s conftest$ac_exeext'
30480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30481 (eval $ac_try) 2>&5
30483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30484 (exit $ac_status); }; }; then
30485 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break
30487 echo "$as_me: failed program was:" >&5
30488 sed 's/^/| /' conftest.$ac_ext >&5
30491 rm -f conftest.err conftest.$ac_objext \
30492 conftest$ac_exeext conftest.$ac_ext
30494 eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}"
30495 LIBS="$ac_save_LIBS"
30501 eval "ac_res=\$ac_cv_funclib_bswap32"
30505 for ac_func in bswap32
30507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30508 echo "$as_me:$LINENO: checking for $ac_func" >&5
30509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30510 if eval "test \"\${$as_ac_var+set}\" = set"; then
30511 echo $ECHO_N "(cached) $ECHO_C" >&6
30513 cat >conftest.$ac_ext <<_ACEOF
30516 cat confdefs.h >>conftest.$ac_ext
30517 cat >>conftest.$ac_ext <<_ACEOF
30518 /* end confdefs.h. */
30519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30521 #define $ac_func innocuous_$ac_func
30523 /* System header to define __stub macros and hopefully few prototypes,
30524 which can conflict with char $ac_func (); below.
30525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30526 <limits.h> exists even on freestanding compilers. */
30529 # include <limits.h>
30531 # include <assert.h>
30536 /* Override any gcc2 internal prototype to avoid an error. */
30541 /* We use char because int might match the return type of a gcc2
30542 builtin and then its argument prototype would still apply. */
30544 /* The GNU C library defines this for functions which it implements
30545 to always fail with ENOSYS. Some functions are actually named
30546 something starting with __ and the normal name is an alias. */
30547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30550 char (*f) () = $ac_func;
30559 return f != $ac_func;
30564 rm -f conftest.$ac_objext conftest$ac_exeext
30565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30566 (eval $ac_link) 2>conftest.er1
30568 grep -v '^ *+' conftest.er1 >conftest.err
30570 cat conftest.err >&5
30571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30572 (exit $ac_status); } &&
30573 { ac_try='test -z "$ac_c_werror_flag"
30574 || test ! -s conftest.err'
30575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30576 (eval $ac_try) 2>&5
30578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30579 (exit $ac_status); }; } &&
30580 { ac_try='test -s conftest$ac_exeext'
30581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30582 (eval $ac_try) 2>&5
30584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30585 (exit $ac_status); }; }; then
30586 eval "$as_ac_var=yes"
30588 echo "$as_me: failed program was:" >&5
30589 sed 's/^/| /' conftest.$ac_ext >&5
30591 eval "$as_ac_var=no"
30593 rm -f conftest.err conftest.$ac_objext \
30594 conftest$ac_exeext conftest.$ac_ext
30596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30598 if test `eval echo '${'$as_ac_var'}'` = yes; then
30599 cat >>confdefs.h <<_ACEOF
30600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30608 eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30609 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30610 eval "LIB_bswap32=$ac_res"
30614 eval "ac_cv_func_bswap32=yes"
30615 eval "LIB_bswap32="
30616 cat >>confdefs.h <<_ACEOF
30617 #define $ac_tr_func 1
30620 echo "$as_me:$LINENO: result: yes" >&5
30621 echo "${ECHO_T}yes" >&6
30624 eval "ac_cv_func_bswap32=no"
30625 eval "LIB_bswap32="
30626 echo "$as_me:$LINENO: result: no" >&5
30627 echo "${ECHO_T}no" >&6
30630 eval "ac_cv_func_bswap32=yes"
30631 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30632 cat >>confdefs.h <<_ACEOF
30633 #define $ac_tr_func 1
30636 cat >>confdefs.h <<_ACEOF
30637 #define $ac_tr_lib 1
30640 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
30641 echo "${ECHO_T}yes, in $ac_res" >&6
30650 echo "$as_me:$LINENO: checking for pidfile" >&5
30651 echo $ECHO_N "checking for pidfile... $ECHO_C" >&6
30652 if test "${ac_cv_funclib_pidfile+set}" = set; then
30653 echo $ECHO_N "(cached) $ECHO_C" >&6
30656 if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then
30657 ac_save_LIBS="$LIBS"
30658 for ac_lib in "" util; do
30664 *) ac_lib="-l$ac_lib" ;;
30666 LIBS=" $ac_lib $ac_save_LIBS"
30667 cat >conftest.$ac_ext <<_ACEOF
30670 cat confdefs.h >>conftest.$ac_ext
30671 cat >>conftest.$ac_ext <<_ACEOF
30672 /* end confdefs.h. */
30684 rm -f conftest.$ac_objext conftest$ac_exeext
30685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30686 (eval $ac_link) 2>conftest.er1
30688 grep -v '^ *+' conftest.er1 >conftest.err
30690 cat conftest.err >&5
30691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30692 (exit $ac_status); } &&
30693 { ac_try='test -z "$ac_c_werror_flag"
30694 || test ! -s conftest.err'
30695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30696 (eval $ac_try) 2>&5
30698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30699 (exit $ac_status); }; } &&
30700 { ac_try='test -s conftest$ac_exeext'
30701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30702 (eval $ac_try) 2>&5
30704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705 (exit $ac_status); }; }; then
30706 eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break
30708 echo "$as_me: failed program was:" >&5
30709 sed 's/^/| /' conftest.$ac_ext >&5
30712 rm -f conftest.err conftest.$ac_objext \
30713 conftest$ac_exeext conftest.$ac_ext
30715 eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}"
30716 LIBS="$ac_save_LIBS"
30722 eval "ac_res=\$ac_cv_funclib_pidfile"
30726 for ac_func in pidfile
30728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30729 echo "$as_me:$LINENO: checking for $ac_func" >&5
30730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30731 if eval "test \"\${$as_ac_var+set}\" = set"; then
30732 echo $ECHO_N "(cached) $ECHO_C" >&6
30734 cat >conftest.$ac_ext <<_ACEOF
30737 cat confdefs.h >>conftest.$ac_ext
30738 cat >>conftest.$ac_ext <<_ACEOF
30739 /* end confdefs.h. */
30740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30742 #define $ac_func innocuous_$ac_func
30744 /* System header to define __stub macros and hopefully few prototypes,
30745 which can conflict with char $ac_func (); below.
30746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30747 <limits.h> exists even on freestanding compilers. */
30750 # include <limits.h>
30752 # include <assert.h>
30757 /* Override any gcc2 internal prototype to avoid an error. */
30762 /* We use char because int might match the return type of a gcc2
30763 builtin and then its argument prototype would still apply. */
30765 /* The GNU C library defines this for functions which it implements
30766 to always fail with ENOSYS. Some functions are actually named
30767 something starting with __ and the normal name is an alias. */
30768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30771 char (*f) () = $ac_func;
30780 return f != $ac_func;
30785 rm -f conftest.$ac_objext conftest$ac_exeext
30786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30787 (eval $ac_link) 2>conftest.er1
30789 grep -v '^ *+' conftest.er1 >conftest.err
30791 cat conftest.err >&5
30792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30793 (exit $ac_status); } &&
30794 { ac_try='test -z "$ac_c_werror_flag"
30795 || test ! -s conftest.err'
30796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30797 (eval $ac_try) 2>&5
30799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30800 (exit $ac_status); }; } &&
30801 { ac_try='test -s conftest$ac_exeext'
30802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30803 (eval $ac_try) 2>&5
30805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30806 (exit $ac_status); }; }; then
30807 eval "$as_ac_var=yes"
30809 echo "$as_me: failed program was:" >&5
30810 sed 's/^/| /' conftest.$ac_ext >&5
30812 eval "$as_ac_var=no"
30814 rm -f conftest.err conftest.$ac_objext \
30815 conftest$ac_exeext conftest.$ac_ext
30817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30818 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30819 if test `eval echo '${'$as_ac_var'}'` = yes; then
30820 cat >>confdefs.h <<_ACEOF
30821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30829 eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30830 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30831 eval "LIB_pidfile=$ac_res"
30835 eval "ac_cv_func_pidfile=yes"
30836 eval "LIB_pidfile="
30837 cat >>confdefs.h <<_ACEOF
30838 #define $ac_tr_func 1
30841 echo "$as_me:$LINENO: result: yes" >&5
30842 echo "${ECHO_T}yes" >&6
30845 eval "ac_cv_func_pidfile=no"
30846 eval "LIB_pidfile="
30847 echo "$as_me:$LINENO: result: no" >&5
30848 echo "${ECHO_T}no" >&6
30851 eval "ac_cv_func_pidfile=yes"
30852 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30853 cat >>confdefs.h <<_ACEOF
30854 #define $ac_tr_func 1
30857 cat >>confdefs.h <<_ACEOF
30858 #define $ac_tr_lib 1
30861 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
30862 echo "${ECHO_T}yes, in $ac_res" >&6
30872 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
30873 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
30874 if test "${ac_cv_funclib_getaddrinfo+set}" = set; then
30875 echo $ECHO_N "(cached) $ECHO_C" >&6
30878 if eval "test \"\$ac_cv_func_getaddrinfo\" != yes" ; then
30879 ac_save_LIBS="$LIBS"
30880 for ac_lib in "" ; do
30886 *) ac_lib="-l$ac_lib" ;;
30888 LIBS=" $ac_lib $ac_save_LIBS"
30889 cat >conftest.$ac_ext <<_ACEOF
30892 cat confdefs.h >>conftest.$ac_ext
30893 cat >>conftest.$ac_ext <<_ACEOF
30894 /* end confdefs.h. */
30895 #ifdef HAVE_NETDB_H
30901 getaddrinfo(0,0,0,0)
30906 rm -f conftest.$ac_objext conftest$ac_exeext
30907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30908 (eval $ac_link) 2>conftest.er1
30910 grep -v '^ *+' conftest.er1 >conftest.err
30912 cat conftest.err >&5
30913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30914 (exit $ac_status); } &&
30915 { ac_try='test -z "$ac_c_werror_flag"
30916 || test ! -s conftest.err'
30917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30918 (eval $ac_try) 2>&5
30920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30921 (exit $ac_status); }; } &&
30922 { ac_try='test -s conftest$ac_exeext'
30923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30924 (eval $ac_try) 2>&5
30926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30927 (exit $ac_status); }; }; then
30928 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getaddrinfo=$ac_lib; else ac_cv_funclib_getaddrinfo=yes; fi";break
30930 echo "$as_me: failed program was:" >&5
30931 sed 's/^/| /' conftest.$ac_ext >&5
30934 rm -f conftest.err conftest.$ac_objext \
30935 conftest$ac_exeext conftest.$ac_ext
30937 eval "ac_cv_funclib_getaddrinfo=\${ac_cv_funclib_getaddrinfo-no}"
30938 LIBS="$ac_save_LIBS"
30944 eval "ac_res=\$ac_cv_funclib_getaddrinfo"
30948 for ac_func in getaddrinfo
30950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30951 echo "$as_me:$LINENO: checking for $ac_func" >&5
30952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30953 if eval "test \"\${$as_ac_var+set}\" = set"; then
30954 echo $ECHO_N "(cached) $ECHO_C" >&6
30956 cat >conftest.$ac_ext <<_ACEOF
30959 cat confdefs.h >>conftest.$ac_ext
30960 cat >>conftest.$ac_ext <<_ACEOF
30961 /* end confdefs.h. */
30962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30964 #define $ac_func innocuous_$ac_func
30966 /* System header to define __stub macros and hopefully few prototypes,
30967 which can conflict with char $ac_func (); below.
30968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30969 <limits.h> exists even on freestanding compilers. */
30972 # include <limits.h>
30974 # include <assert.h>
30979 /* Override any gcc2 internal prototype to avoid an error. */
30984 /* We use char because int might match the return type of a gcc2
30985 builtin and then its argument prototype would still apply. */
30987 /* The GNU C library defines this for functions which it implements
30988 to always fail with ENOSYS. Some functions are actually named
30989 something starting with __ and the normal name is an alias. */
30990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30993 char (*f) () = $ac_func;
31002 return f != $ac_func;
31007 rm -f conftest.$ac_objext conftest$ac_exeext
31008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31009 (eval $ac_link) 2>conftest.er1
31011 grep -v '^ *+' conftest.er1 >conftest.err
31013 cat conftest.err >&5
31014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31015 (exit $ac_status); } &&
31016 { ac_try='test -z "$ac_c_werror_flag"
31017 || test ! -s conftest.err'
31018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31019 (eval $ac_try) 2>&5
31021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31022 (exit $ac_status); }; } &&
31023 { ac_try='test -s conftest$ac_exeext'
31024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31025 (eval $ac_try) 2>&5
31027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31028 (exit $ac_status); }; }; then
31029 eval "$as_ac_var=yes"
31031 echo "$as_me: failed program was:" >&5
31032 sed 's/^/| /' conftest.$ac_ext >&5
31034 eval "$as_ac_var=no"
31036 rm -f conftest.err conftest.$ac_objext \
31037 conftest$ac_exeext conftest.$ac_ext
31039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31040 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31041 if test `eval echo '${'$as_ac_var'}'` = yes; then
31042 cat >>confdefs.h <<_ACEOF
31043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31051 eval "ac_tr_func=HAVE_`echo getaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31052 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31053 eval "LIB_getaddrinfo=$ac_res"
31057 eval "ac_cv_func_getaddrinfo=yes"
31058 eval "LIB_getaddrinfo="
31059 cat >>confdefs.h <<_ACEOF
31060 #define $ac_tr_func 1
31063 echo "$as_me:$LINENO: result: yes" >&5
31064 echo "${ECHO_T}yes" >&6
31067 eval "ac_cv_func_getaddrinfo=no"
31068 eval "LIB_getaddrinfo="
31069 echo "$as_me:$LINENO: result: no" >&5
31070 echo "${ECHO_T}no" >&6
31073 eval "ac_cv_func_getaddrinfo=yes"
31074 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
31075 cat >>confdefs.h <<_ACEOF
31076 #define $ac_tr_func 1
31079 cat >>confdefs.h <<_ACEOF
31080 #define $ac_tr_lib 1
31083 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
31084 echo "${ECHO_T}yes, in $ac_res" >&6
31089 if test -n "$LIB_getaddrinfo"; then
31090 LIBS="$LIB_getaddrinfo $LIBS"
31093 if eval "test \"$ac_cv_func_getaddrinfo\" != yes"; then
31095 "getaddrinfo.$ac_objext" | \
31096 *" getaddrinfo.$ac_objext" | \
31097 "getaddrinfo.$ac_objext "* | \
31098 *" getaddrinfo.$ac_objext "* ) ;;
31099 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
31109 echo "$as_me:$LINENO: checking for getnameinfo" >&5
31110 echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6
31111 if test "${ac_cv_funclib_getnameinfo+set}" = set; then
31112 echo $ECHO_N "(cached) $ECHO_C" >&6
31115 if eval "test \"\$ac_cv_func_getnameinfo\" != yes" ; then
31116 ac_save_LIBS="$LIBS"
31117 for ac_lib in "" ; do
31123 *) ac_lib="-l$ac_lib" ;;
31125 LIBS=" $ac_lib $ac_save_LIBS"
31126 cat >conftest.$ac_ext <<_ACEOF
31129 cat confdefs.h >>conftest.$ac_ext
31130 cat >>conftest.$ac_ext <<_ACEOF
31131 /* end confdefs.h. */
31132 #ifdef HAVE_NETDB_H
31138 getnameinfo(0,0,0,0,0,0,0)
31143 rm -f conftest.$ac_objext conftest$ac_exeext
31144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31145 (eval $ac_link) 2>conftest.er1
31147 grep -v '^ *+' conftest.er1 >conftest.err
31149 cat conftest.err >&5
31150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31151 (exit $ac_status); } &&
31152 { ac_try='test -z "$ac_c_werror_flag"
31153 || test ! -s conftest.err'
31154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31155 (eval $ac_try) 2>&5
31157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31158 (exit $ac_status); }; } &&
31159 { ac_try='test -s conftest$ac_exeext'
31160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31161 (eval $ac_try) 2>&5
31163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31164 (exit $ac_status); }; }; then
31165 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getnameinfo=$ac_lib; else ac_cv_funclib_getnameinfo=yes; fi";break
31167 echo "$as_me: failed program was:" >&5
31168 sed 's/^/| /' conftest.$ac_ext >&5
31171 rm -f conftest.err conftest.$ac_objext \
31172 conftest$ac_exeext conftest.$ac_ext
31174 eval "ac_cv_funclib_getnameinfo=\${ac_cv_funclib_getnameinfo-no}"
31175 LIBS="$ac_save_LIBS"
31181 eval "ac_res=\$ac_cv_funclib_getnameinfo"
31185 for ac_func in getnameinfo
31187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31188 echo "$as_me:$LINENO: checking for $ac_func" >&5
31189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31190 if eval "test \"\${$as_ac_var+set}\" = set"; then
31191 echo $ECHO_N "(cached) $ECHO_C" >&6
31193 cat >conftest.$ac_ext <<_ACEOF
31196 cat confdefs.h >>conftest.$ac_ext
31197 cat >>conftest.$ac_ext <<_ACEOF
31198 /* end confdefs.h. */
31199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31201 #define $ac_func innocuous_$ac_func
31203 /* System header to define __stub macros and hopefully few prototypes,
31204 which can conflict with char $ac_func (); below.
31205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31206 <limits.h> exists even on freestanding compilers. */
31209 # include <limits.h>
31211 # include <assert.h>
31216 /* Override any gcc2 internal prototype to avoid an error. */
31221 /* We use char because int might match the return type of a gcc2
31222 builtin and then its argument prototype would still apply. */
31224 /* The GNU C library defines this for functions which it implements
31225 to always fail with ENOSYS. Some functions are actually named
31226 something starting with __ and the normal name is an alias. */
31227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31230 char (*f) () = $ac_func;
31239 return f != $ac_func;
31244 rm -f conftest.$ac_objext conftest$ac_exeext
31245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31246 (eval $ac_link) 2>conftest.er1
31248 grep -v '^ *+' conftest.er1 >conftest.err
31250 cat conftest.err >&5
31251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31252 (exit $ac_status); } &&
31253 { ac_try='test -z "$ac_c_werror_flag"
31254 || test ! -s conftest.err'
31255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31256 (eval $ac_try) 2>&5
31258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31259 (exit $ac_status); }; } &&
31260 { ac_try='test -s conftest$ac_exeext'
31261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31262 (eval $ac_try) 2>&5
31264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31265 (exit $ac_status); }; }; then
31266 eval "$as_ac_var=yes"
31268 echo "$as_me: failed program was:" >&5
31269 sed 's/^/| /' conftest.$ac_ext >&5
31271 eval "$as_ac_var=no"
31273 rm -f conftest.err conftest.$ac_objext \
31274 conftest$ac_exeext conftest.$ac_ext
31276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31277 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31278 if test `eval echo '${'$as_ac_var'}'` = yes; then
31279 cat >>confdefs.h <<_ACEOF
31280 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31288 eval "ac_tr_func=HAVE_`echo getnameinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31289 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31290 eval "LIB_getnameinfo=$ac_res"
31294 eval "ac_cv_func_getnameinfo=yes"
31295 eval "LIB_getnameinfo="
31296 cat >>confdefs.h <<_ACEOF
31297 #define $ac_tr_func 1
31300 echo "$as_me:$LINENO: result: yes" >&5
31301 echo "${ECHO_T}yes" >&6
31304 eval "ac_cv_func_getnameinfo=no"
31305 eval "LIB_getnameinfo="
31306 echo "$as_me:$LINENO: result: no" >&5
31307 echo "${ECHO_T}no" >&6
31310 eval "ac_cv_func_getnameinfo=yes"
31311 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
31312 cat >>confdefs.h <<_ACEOF
31313 #define $ac_tr_func 1
31316 cat >>confdefs.h <<_ACEOF
31317 #define $ac_tr_lib 1
31320 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
31321 echo "${ECHO_T}yes, in $ac_res" >&6
31326 if test -n "$LIB_getnameinfo"; then
31327 LIBS="$LIB_getnameinfo $LIBS"
31330 if eval "test \"$ac_cv_func_getnameinfo\" != yes"; then
31332 "getnameinfo.$ac_objext" | \
31333 *" getnameinfo.$ac_objext" | \
31334 "getnameinfo.$ac_objext "* | \
31335 *" getnameinfo.$ac_objext "* ) ;;
31336 *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext" ;;
31346 echo "$as_me:$LINENO: checking for freeaddrinfo" >&5
31347 echo $ECHO_N "checking for freeaddrinfo... $ECHO_C" >&6
31348 if test "${ac_cv_funclib_freeaddrinfo+set}" = set; then
31349 echo $ECHO_N "(cached) $ECHO_C" >&6
31352 if eval "test \"\$ac_cv_func_freeaddrinfo\" != yes" ; then
31353 ac_save_LIBS="$LIBS"
31354 for ac_lib in "" ; do
31360 *) ac_lib="-l$ac_lib" ;;
31362 LIBS=" $ac_lib $ac_save_LIBS"
31363 cat >conftest.$ac_ext <<_ACEOF
31366 cat confdefs.h >>conftest.$ac_ext
31367 cat >>conftest.$ac_ext <<_ACEOF
31368 /* end confdefs.h. */
31369 #ifdef HAVE_NETDB_H
31380 rm -f conftest.$ac_objext conftest$ac_exeext
31381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31382 (eval $ac_link) 2>conftest.er1
31384 grep -v '^ *+' conftest.er1 >conftest.err
31386 cat conftest.err >&5
31387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31388 (exit $ac_status); } &&
31389 { ac_try='test -z "$ac_c_werror_flag"
31390 || test ! -s conftest.err'
31391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31392 (eval $ac_try) 2>&5
31394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31395 (exit $ac_status); }; } &&
31396 { ac_try='test -s conftest$ac_exeext'
31397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31398 (eval $ac_try) 2>&5
31400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401 (exit $ac_status); }; }; then
31402 eval "if test -n \"$ac_lib\";then ac_cv_funclib_freeaddrinfo=$ac_lib; else ac_cv_funclib_freeaddrinfo=yes; fi";break
31404 echo "$as_me: failed program was:" >&5
31405 sed 's/^/| /' conftest.$ac_ext >&5
31408 rm -f conftest.err conftest.$ac_objext \
31409 conftest$ac_exeext conftest.$ac_ext
31411 eval "ac_cv_funclib_freeaddrinfo=\${ac_cv_funclib_freeaddrinfo-no}"
31412 LIBS="$ac_save_LIBS"
31418 eval "ac_res=\$ac_cv_funclib_freeaddrinfo"
31422 for ac_func in freeaddrinfo
31424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31425 echo "$as_me:$LINENO: checking for $ac_func" >&5
31426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31427 if eval "test \"\${$as_ac_var+set}\" = set"; then
31428 echo $ECHO_N "(cached) $ECHO_C" >&6
31430 cat >conftest.$ac_ext <<_ACEOF
31433 cat confdefs.h >>conftest.$ac_ext
31434 cat >>conftest.$ac_ext <<_ACEOF
31435 /* end confdefs.h. */
31436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31438 #define $ac_func innocuous_$ac_func
31440 /* System header to define __stub macros and hopefully few prototypes,
31441 which can conflict with char $ac_func (); below.
31442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31443 <limits.h> exists even on freestanding compilers. */
31446 # include <limits.h>
31448 # include <assert.h>
31453 /* Override any gcc2 internal prototype to avoid an error. */
31458 /* We use char because int might match the return type of a gcc2
31459 builtin and then its argument prototype would still apply. */
31461 /* The GNU C library defines this for functions which it implements
31462 to always fail with ENOSYS. Some functions are actually named
31463 something starting with __ and the normal name is an alias. */
31464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31467 char (*f) () = $ac_func;
31476 return f != $ac_func;
31481 rm -f conftest.$ac_objext conftest$ac_exeext
31482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31483 (eval $ac_link) 2>conftest.er1
31485 grep -v '^ *+' conftest.er1 >conftest.err
31487 cat conftest.err >&5
31488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31489 (exit $ac_status); } &&
31490 { ac_try='test -z "$ac_c_werror_flag"
31491 || test ! -s conftest.err'
31492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31493 (eval $ac_try) 2>&5
31495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31496 (exit $ac_status); }; } &&
31497 { ac_try='test -s conftest$ac_exeext'
31498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31499 (eval $ac_try) 2>&5
31501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31502 (exit $ac_status); }; }; then
31503 eval "$as_ac_var=yes"
31505 echo "$as_me: failed program was:" >&5
31506 sed 's/^/| /' conftest.$ac_ext >&5
31508 eval "$as_ac_var=no"
31510 rm -f conftest.err conftest.$ac_objext \
31511 conftest$ac_exeext conftest.$ac_ext
31513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31514 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31515 if test `eval echo '${'$as_ac_var'}'` = yes; then
31516 cat >>confdefs.h <<_ACEOF
31517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31525 eval "ac_tr_func=HAVE_`echo freeaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31526 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31527 eval "LIB_freeaddrinfo=$ac_res"
31531 eval "ac_cv_func_freeaddrinfo=yes"
31532 eval "LIB_freeaddrinfo="
31533 cat >>confdefs.h <<_ACEOF
31534 #define $ac_tr_func 1
31537 echo "$as_me:$LINENO: result: yes" >&5
31538 echo "${ECHO_T}yes" >&6
31541 eval "ac_cv_func_freeaddrinfo=no"
31542 eval "LIB_freeaddrinfo="
31543 echo "$as_me:$LINENO: result: no" >&5
31544 echo "${ECHO_T}no" >&6
31547 eval "ac_cv_func_freeaddrinfo=yes"
31548 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
31549 cat >>confdefs.h <<_ACEOF
31550 #define $ac_tr_func 1
31553 cat >>confdefs.h <<_ACEOF
31554 #define $ac_tr_lib 1
31557 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
31558 echo "${ECHO_T}yes, in $ac_res" >&6
31563 if test -n "$LIB_freeaddrinfo"; then
31564 LIBS="$LIB_freeaddrinfo $LIBS"
31567 if eval "test \"$ac_cv_func_freeaddrinfo\" != yes"; then
31569 "freeaddrinfo.$ac_objext" | \
31570 *" freeaddrinfo.$ac_objext" | \
31571 "freeaddrinfo.$ac_objext "* | \
31572 *" freeaddrinfo.$ac_objext "* ) ;;
31573 *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext" ;;
31583 echo "$as_me:$LINENO: checking for gai_strerror" >&5
31584 echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6
31585 if test "${ac_cv_funclib_gai_strerror+set}" = set; then
31586 echo $ECHO_N "(cached) $ECHO_C" >&6
31589 if eval "test \"\$ac_cv_func_gai_strerror\" != yes" ; then
31590 ac_save_LIBS="$LIBS"
31591 for ac_lib in "" ; do
31597 *) ac_lib="-l$ac_lib" ;;
31599 LIBS=" $ac_lib $ac_save_LIBS"
31600 cat >conftest.$ac_ext <<_ACEOF
31603 cat confdefs.h >>conftest.$ac_ext
31604 cat >>conftest.$ac_ext <<_ACEOF
31605 /* end confdefs.h. */
31606 #ifdef HAVE_NETDB_H
31617 rm -f conftest.$ac_objext conftest$ac_exeext
31618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31619 (eval $ac_link) 2>conftest.er1
31621 grep -v '^ *+' conftest.er1 >conftest.err
31623 cat conftest.err >&5
31624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31625 (exit $ac_status); } &&
31626 { ac_try='test -z "$ac_c_werror_flag"
31627 || test ! -s conftest.err'
31628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31629 (eval $ac_try) 2>&5
31631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31632 (exit $ac_status); }; } &&
31633 { ac_try='test -s conftest$ac_exeext'
31634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31635 (eval $ac_try) 2>&5
31637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31638 (exit $ac_status); }; }; then
31639 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gai_strerror=$ac_lib; else ac_cv_funclib_gai_strerror=yes; fi";break
31641 echo "$as_me: failed program was:" >&5
31642 sed 's/^/| /' conftest.$ac_ext >&5
31645 rm -f conftest.err conftest.$ac_objext \
31646 conftest$ac_exeext conftest.$ac_ext
31648 eval "ac_cv_funclib_gai_strerror=\${ac_cv_funclib_gai_strerror-no}"
31649 LIBS="$ac_save_LIBS"
31655 eval "ac_res=\$ac_cv_funclib_gai_strerror"
31659 for ac_func in gai_strerror
31661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31662 echo "$as_me:$LINENO: checking for $ac_func" >&5
31663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31664 if eval "test \"\${$as_ac_var+set}\" = set"; then
31665 echo $ECHO_N "(cached) $ECHO_C" >&6
31667 cat >conftest.$ac_ext <<_ACEOF
31670 cat confdefs.h >>conftest.$ac_ext
31671 cat >>conftest.$ac_ext <<_ACEOF
31672 /* end confdefs.h. */
31673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31675 #define $ac_func innocuous_$ac_func
31677 /* System header to define __stub macros and hopefully few prototypes,
31678 which can conflict with char $ac_func (); below.
31679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31680 <limits.h> exists even on freestanding compilers. */
31683 # include <limits.h>
31685 # include <assert.h>
31690 /* Override any gcc2 internal prototype to avoid an error. */
31695 /* We use char because int might match the return type of a gcc2
31696 builtin and then its argument prototype would still apply. */
31698 /* The GNU C library defines this for functions which it implements
31699 to always fail with ENOSYS. Some functions are actually named
31700 something starting with __ and the normal name is an alias. */
31701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31704 char (*f) () = $ac_func;
31713 return f != $ac_func;
31718 rm -f conftest.$ac_objext conftest$ac_exeext
31719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31720 (eval $ac_link) 2>conftest.er1
31722 grep -v '^ *+' conftest.er1 >conftest.err
31724 cat conftest.err >&5
31725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31726 (exit $ac_status); } &&
31727 { ac_try='test -z "$ac_c_werror_flag"
31728 || test ! -s conftest.err'
31729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31730 (eval $ac_try) 2>&5
31732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31733 (exit $ac_status); }; } &&
31734 { ac_try='test -s conftest$ac_exeext'
31735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31736 (eval $ac_try) 2>&5
31738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739 (exit $ac_status); }; }; then
31740 eval "$as_ac_var=yes"
31742 echo "$as_me: failed program was:" >&5
31743 sed 's/^/| /' conftest.$ac_ext >&5
31745 eval "$as_ac_var=no"
31747 rm -f conftest.err conftest.$ac_objext \
31748 conftest$ac_exeext conftest.$ac_ext
31750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31752 if test `eval echo '${'$as_ac_var'}'` = yes; then
31753 cat >>confdefs.h <<_ACEOF
31754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31762 eval "ac_tr_func=HAVE_`echo gai_strerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31763 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31764 eval "LIB_gai_strerror=$ac_res"
31768 eval "ac_cv_func_gai_strerror=yes"
31769 eval "LIB_gai_strerror="
31770 cat >>confdefs.h <<_ACEOF
31771 #define $ac_tr_func 1
31774 echo "$as_me:$LINENO: result: yes" >&5
31775 echo "${ECHO_T}yes" >&6
31778 eval "ac_cv_func_gai_strerror=no"
31779 eval "LIB_gai_strerror="
31780 echo "$as_me:$LINENO: result: no" >&5
31781 echo "${ECHO_T}no" >&6
31784 eval "ac_cv_func_gai_strerror=yes"
31785 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
31786 cat >>confdefs.h <<_ACEOF
31787 #define $ac_tr_func 1
31790 cat >>confdefs.h <<_ACEOF
31791 #define $ac_tr_lib 1
31794 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
31795 echo "${ECHO_T}yes, in $ac_res" >&6
31800 if test -n "$LIB_gai_strerror"; then
31801 LIBS="$LIB_gai_strerror $LIBS"
31804 if eval "test \"$ac_cv_func_gai_strerror\" != yes"; then
31806 "gai_strerror.$ac_objext" | \
31807 *" gai_strerror.$ac_objext" | \
31808 "gai_strerror.$ac_objext "* | \
31809 *" gai_strerror.$ac_objext "* ) ;;
31810 *) LIBOBJS="$LIBOBJS gai_strerror.$ac_objext" ;;
31816 echo "$as_me:$LINENO: checking for chown" >&5
31817 echo $ECHO_N "checking for chown... $ECHO_C" >&6
31818 if test "${ac_cv_func_chown+set}" = set; then
31819 echo $ECHO_N "(cached) $ECHO_C" >&6
31821 cat >conftest.$ac_ext <<_ACEOF
31824 cat confdefs.h >>conftest.$ac_ext
31825 cat >>conftest.$ac_ext <<_ACEOF
31826 /* end confdefs.h. */
31827 /* Define chown to an innocuous variant, in case <limits.h> declares chown.
31828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31829 #define chown innocuous_chown
31831 /* System header to define __stub macros and hopefully few prototypes,
31832 which can conflict with char chown (); below.
31833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31834 <limits.h> exists even on freestanding compilers. */
31837 # include <limits.h>
31839 # include <assert.h>
31844 /* Override any gcc2 internal prototype to avoid an error. */
31849 /* We use char because int might match the return type of a gcc2
31850 builtin and then its argument prototype would still apply. */
31852 /* The GNU C library defines this for functions which it implements
31853 to always fail with ENOSYS. Some functions are actually named
31854 something starting with __ and the normal name is an alias. */
31855 #if defined (__stub_chown) || defined (__stub___chown)
31858 char (*f) () = chown;
31872 rm -f conftest.$ac_objext conftest$ac_exeext
31873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31874 (eval $ac_link) 2>conftest.er1
31876 grep -v '^ *+' conftest.er1 >conftest.err
31878 cat conftest.err >&5
31879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31880 (exit $ac_status); } &&
31881 { ac_try='test -z "$ac_c_werror_flag"
31882 || test ! -s conftest.err'
31883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31884 (eval $ac_try) 2>&5
31886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31887 (exit $ac_status); }; } &&
31888 { ac_try='test -s conftest$ac_exeext'
31889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31890 (eval $ac_try) 2>&5
31892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31893 (exit $ac_status); }; }; then
31894 ac_cv_func_chown=yes
31896 echo "$as_me: failed program was:" >&5
31897 sed 's/^/| /' conftest.$ac_ext >&5
31899 ac_cv_func_chown=no
31901 rm -f conftest.err conftest.$ac_objext \
31902 conftest$ac_exeext conftest.$ac_ext
31904 echo "$as_me:$LINENO: result: $ac_cv_func_chown" >&5
31905 echo "${ECHO_T}$ac_cv_func_chown" >&6
31906 if test $ac_cv_func_chown = yes; then
31908 cat >>confdefs.h <<_ACEOF
31909 #define HAVE_CHOWN 1
31914 "chown.$ac_objext" | \
31915 *" chown.$ac_objext" | \
31916 "chown.$ac_objext "* | \
31917 *" chown.$ac_objext "* ) ;;
31918 *) LIBOBJS="$LIBOBJS chown.$ac_objext" ;;
31922 echo "$as_me:$LINENO: checking for copyhostent" >&5
31923 echo $ECHO_N "checking for copyhostent... $ECHO_C" >&6
31924 if test "${ac_cv_func_copyhostent+set}" = set; then
31925 echo $ECHO_N "(cached) $ECHO_C" >&6
31927 cat >conftest.$ac_ext <<_ACEOF
31930 cat confdefs.h >>conftest.$ac_ext
31931 cat >>conftest.$ac_ext <<_ACEOF
31932 /* end confdefs.h. */
31933 /* Define copyhostent to an innocuous variant, in case <limits.h> declares copyhostent.
31934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31935 #define copyhostent innocuous_copyhostent
31937 /* System header to define __stub macros and hopefully few prototypes,
31938 which can conflict with char copyhostent (); below.
31939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31940 <limits.h> exists even on freestanding compilers. */
31943 # include <limits.h>
31945 # include <assert.h>
31950 /* Override any gcc2 internal prototype to avoid an error. */
31955 /* We use char because int might match the return type of a gcc2
31956 builtin and then its argument prototype would still apply. */
31957 char copyhostent ();
31958 /* The GNU C library defines this for functions which it implements
31959 to always fail with ENOSYS. Some functions are actually named
31960 something starting with __ and the normal name is an alias. */
31961 #if defined (__stub_copyhostent) || defined (__stub___copyhostent)
31964 char (*f) () = copyhostent;
31973 return f != copyhostent;
31978 rm -f conftest.$ac_objext conftest$ac_exeext
31979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31980 (eval $ac_link) 2>conftest.er1
31982 grep -v '^ *+' conftest.er1 >conftest.err
31984 cat conftest.err >&5
31985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31986 (exit $ac_status); } &&
31987 { ac_try='test -z "$ac_c_werror_flag"
31988 || test ! -s conftest.err'
31989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31990 (eval $ac_try) 2>&5
31992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31993 (exit $ac_status); }; } &&
31994 { ac_try='test -s conftest$ac_exeext'
31995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31996 (eval $ac_try) 2>&5
31998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31999 (exit $ac_status); }; }; then
32000 ac_cv_func_copyhostent=yes
32002 echo "$as_me: failed program was:" >&5
32003 sed 's/^/| /' conftest.$ac_ext >&5
32005 ac_cv_func_copyhostent=no
32007 rm -f conftest.err conftest.$ac_objext \
32008 conftest$ac_exeext conftest.$ac_ext
32010 echo "$as_me:$LINENO: result: $ac_cv_func_copyhostent" >&5
32011 echo "${ECHO_T}$ac_cv_func_copyhostent" >&6
32012 if test $ac_cv_func_copyhostent = yes; then
32014 cat >>confdefs.h <<_ACEOF
32015 #define HAVE_COPYHOSTENT 1
32020 "copyhostent.$ac_objext" | \
32021 *" copyhostent.$ac_objext" | \
32022 "copyhostent.$ac_objext "* | \
32023 *" copyhostent.$ac_objext "* ) ;;
32024 *) LIBOBJS="$LIBOBJS copyhostent.$ac_objext" ;;
32028 echo "$as_me:$LINENO: checking for daemon" >&5
32029 echo $ECHO_N "checking for daemon... $ECHO_C" >&6
32030 if test "${ac_cv_func_daemon+set}" = set; then
32031 echo $ECHO_N "(cached) $ECHO_C" >&6
32033 cat >conftest.$ac_ext <<_ACEOF
32036 cat confdefs.h >>conftest.$ac_ext
32037 cat >>conftest.$ac_ext <<_ACEOF
32038 /* end confdefs.h. */
32039 /* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
32040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32041 #define daemon innocuous_daemon
32043 /* System header to define __stub macros and hopefully few prototypes,
32044 which can conflict with char daemon (); below.
32045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32046 <limits.h> exists even on freestanding compilers. */
32049 # include <limits.h>
32051 # include <assert.h>
32056 /* Override any gcc2 internal prototype to avoid an error. */
32061 /* We use char because int might match the return type of a gcc2
32062 builtin and then its argument prototype would still apply. */
32064 /* The GNU C library defines this for functions which it implements
32065 to always fail with ENOSYS. Some functions are actually named
32066 something starting with __ and the normal name is an alias. */
32067 #if defined (__stub_daemon) || defined (__stub___daemon)
32070 char (*f) () = daemon;
32079 return f != daemon;
32084 rm -f conftest.$ac_objext conftest$ac_exeext
32085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32086 (eval $ac_link) 2>conftest.er1
32088 grep -v '^ *+' conftest.er1 >conftest.err
32090 cat conftest.err >&5
32091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32092 (exit $ac_status); } &&
32093 { ac_try='test -z "$ac_c_werror_flag"
32094 || test ! -s conftest.err'
32095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32096 (eval $ac_try) 2>&5
32098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32099 (exit $ac_status); }; } &&
32100 { ac_try='test -s conftest$ac_exeext'
32101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32102 (eval $ac_try) 2>&5
32104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32105 (exit $ac_status); }; }; then
32106 ac_cv_func_daemon=yes
32108 echo "$as_me: failed program was:" >&5
32109 sed 's/^/| /' conftest.$ac_ext >&5
32111 ac_cv_func_daemon=no
32113 rm -f conftest.err conftest.$ac_objext \
32114 conftest$ac_exeext conftest.$ac_ext
32116 echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
32117 echo "${ECHO_T}$ac_cv_func_daemon" >&6
32118 if test $ac_cv_func_daemon = yes; then
32120 cat >>confdefs.h <<_ACEOF
32121 #define HAVE_DAEMON 1
32126 "daemon.$ac_objext" | \
32127 *" daemon.$ac_objext" | \
32128 "daemon.$ac_objext "* | \
32129 *" daemon.$ac_objext "* ) ;;
32130 *) LIBOBJS="$LIBOBJS daemon.$ac_objext" ;;
32134 echo "$as_me:$LINENO: checking for ecalloc" >&5
32135 echo $ECHO_N "checking for ecalloc... $ECHO_C" >&6
32136 if test "${ac_cv_func_ecalloc+set}" = set; then
32137 echo $ECHO_N "(cached) $ECHO_C" >&6
32139 cat >conftest.$ac_ext <<_ACEOF
32142 cat confdefs.h >>conftest.$ac_ext
32143 cat >>conftest.$ac_ext <<_ACEOF
32144 /* end confdefs.h. */
32145 /* Define ecalloc to an innocuous variant, in case <limits.h> declares ecalloc.
32146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32147 #define ecalloc innocuous_ecalloc
32149 /* System header to define __stub macros and hopefully few prototypes,
32150 which can conflict with char ecalloc (); below.
32151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32152 <limits.h> exists even on freestanding compilers. */
32155 # include <limits.h>
32157 # include <assert.h>
32162 /* Override any gcc2 internal prototype to avoid an error. */
32167 /* We use char because int might match the return type of a gcc2
32168 builtin and then its argument prototype would still apply. */
32170 /* The GNU C library defines this for functions which it implements
32171 to always fail with ENOSYS. Some functions are actually named
32172 something starting with __ and the normal name is an alias. */
32173 #if defined (__stub_ecalloc) || defined (__stub___ecalloc)
32176 char (*f) () = ecalloc;
32185 return f != ecalloc;
32190 rm -f conftest.$ac_objext conftest$ac_exeext
32191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32192 (eval $ac_link) 2>conftest.er1
32194 grep -v '^ *+' conftest.er1 >conftest.err
32196 cat conftest.err >&5
32197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32198 (exit $ac_status); } &&
32199 { ac_try='test -z "$ac_c_werror_flag"
32200 || test ! -s conftest.err'
32201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32202 (eval $ac_try) 2>&5
32204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32205 (exit $ac_status); }; } &&
32206 { ac_try='test -s conftest$ac_exeext'
32207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32208 (eval $ac_try) 2>&5
32210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32211 (exit $ac_status); }; }; then
32212 ac_cv_func_ecalloc=yes
32214 echo "$as_me: failed program was:" >&5
32215 sed 's/^/| /' conftest.$ac_ext >&5
32217 ac_cv_func_ecalloc=no
32219 rm -f conftest.err conftest.$ac_objext \
32220 conftest$ac_exeext conftest.$ac_ext
32222 echo "$as_me:$LINENO: result: $ac_cv_func_ecalloc" >&5
32223 echo "${ECHO_T}$ac_cv_func_ecalloc" >&6
32224 if test $ac_cv_func_ecalloc = yes; then
32226 cat >>confdefs.h <<_ACEOF
32227 #define HAVE_ECALLOC 1
32232 "ecalloc.$ac_objext" | \
32233 *" ecalloc.$ac_objext" | \
32234 "ecalloc.$ac_objext "* | \
32235 *" ecalloc.$ac_objext "* ) ;;
32236 *) LIBOBJS="$LIBOBJS ecalloc.$ac_objext" ;;
32240 echo "$as_me:$LINENO: checking for emalloc" >&5
32241 echo $ECHO_N "checking for emalloc... $ECHO_C" >&6
32242 if test "${ac_cv_func_emalloc+set}" = set; then
32243 echo $ECHO_N "(cached) $ECHO_C" >&6
32245 cat >conftest.$ac_ext <<_ACEOF
32248 cat confdefs.h >>conftest.$ac_ext
32249 cat >>conftest.$ac_ext <<_ACEOF
32250 /* end confdefs.h. */
32251 /* Define emalloc to an innocuous variant, in case <limits.h> declares emalloc.
32252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32253 #define emalloc innocuous_emalloc
32255 /* System header to define __stub macros and hopefully few prototypes,
32256 which can conflict with char emalloc (); below.
32257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32258 <limits.h> exists even on freestanding compilers. */
32261 # include <limits.h>
32263 # include <assert.h>
32268 /* Override any gcc2 internal prototype to avoid an error. */
32273 /* We use char because int might match the return type of a gcc2
32274 builtin and then its argument prototype would still apply. */
32276 /* The GNU C library defines this for functions which it implements
32277 to always fail with ENOSYS. Some functions are actually named
32278 something starting with __ and the normal name is an alias. */
32279 #if defined (__stub_emalloc) || defined (__stub___emalloc)
32282 char (*f) () = emalloc;
32291 return f != emalloc;
32296 rm -f conftest.$ac_objext conftest$ac_exeext
32297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32298 (eval $ac_link) 2>conftest.er1
32300 grep -v '^ *+' conftest.er1 >conftest.err
32302 cat conftest.err >&5
32303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32304 (exit $ac_status); } &&
32305 { ac_try='test -z "$ac_c_werror_flag"
32306 || test ! -s conftest.err'
32307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32308 (eval $ac_try) 2>&5
32310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32311 (exit $ac_status); }; } &&
32312 { ac_try='test -s conftest$ac_exeext'
32313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32314 (eval $ac_try) 2>&5
32316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32317 (exit $ac_status); }; }; then
32318 ac_cv_func_emalloc=yes
32320 echo "$as_me: failed program was:" >&5
32321 sed 's/^/| /' conftest.$ac_ext >&5
32323 ac_cv_func_emalloc=no
32325 rm -f conftest.err conftest.$ac_objext \
32326 conftest$ac_exeext conftest.$ac_ext
32328 echo "$as_me:$LINENO: result: $ac_cv_func_emalloc" >&5
32329 echo "${ECHO_T}$ac_cv_func_emalloc" >&6
32330 if test $ac_cv_func_emalloc = yes; then
32332 cat >>confdefs.h <<_ACEOF
32333 #define HAVE_EMALLOC 1
32338 "emalloc.$ac_objext" | \
32339 *" emalloc.$ac_objext" | \
32340 "emalloc.$ac_objext "* | \
32341 *" emalloc.$ac_objext "* ) ;;
32342 *) LIBOBJS="$LIBOBJS emalloc.$ac_objext" ;;
32346 echo "$as_me:$LINENO: checking for erealloc" >&5
32347 echo $ECHO_N "checking for erealloc... $ECHO_C" >&6
32348 if test "${ac_cv_func_erealloc+set}" = set; then
32349 echo $ECHO_N "(cached) $ECHO_C" >&6
32351 cat >conftest.$ac_ext <<_ACEOF
32354 cat confdefs.h >>conftest.$ac_ext
32355 cat >>conftest.$ac_ext <<_ACEOF
32356 /* end confdefs.h. */
32357 /* Define erealloc to an innocuous variant, in case <limits.h> declares erealloc.
32358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32359 #define erealloc innocuous_erealloc
32361 /* System header to define __stub macros and hopefully few prototypes,
32362 which can conflict with char erealloc (); below.
32363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32364 <limits.h> exists even on freestanding compilers. */
32367 # include <limits.h>
32369 # include <assert.h>
32374 /* Override any gcc2 internal prototype to avoid an error. */
32379 /* We use char because int might match the return type of a gcc2
32380 builtin and then its argument prototype would still apply. */
32382 /* The GNU C library defines this for functions which it implements
32383 to always fail with ENOSYS. Some functions are actually named
32384 something starting with __ and the normal name is an alias. */
32385 #if defined (__stub_erealloc) || defined (__stub___erealloc)
32388 char (*f) () = erealloc;
32397 return f != erealloc;
32402 rm -f conftest.$ac_objext conftest$ac_exeext
32403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32404 (eval $ac_link) 2>conftest.er1
32406 grep -v '^ *+' conftest.er1 >conftest.err
32408 cat conftest.err >&5
32409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32410 (exit $ac_status); } &&
32411 { ac_try='test -z "$ac_c_werror_flag"
32412 || test ! -s conftest.err'
32413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32414 (eval $ac_try) 2>&5
32416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32417 (exit $ac_status); }; } &&
32418 { ac_try='test -s conftest$ac_exeext'
32419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32420 (eval $ac_try) 2>&5
32422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32423 (exit $ac_status); }; }; then
32424 ac_cv_func_erealloc=yes
32426 echo "$as_me: failed program was:" >&5
32427 sed 's/^/| /' conftest.$ac_ext >&5
32429 ac_cv_func_erealloc=no
32431 rm -f conftest.err conftest.$ac_objext \
32432 conftest$ac_exeext conftest.$ac_ext
32434 echo "$as_me:$LINENO: result: $ac_cv_func_erealloc" >&5
32435 echo "${ECHO_T}$ac_cv_func_erealloc" >&6
32436 if test $ac_cv_func_erealloc = yes; then
32438 cat >>confdefs.h <<_ACEOF
32439 #define HAVE_EREALLOC 1
32444 "erealloc.$ac_objext" | \
32445 *" erealloc.$ac_objext" | \
32446 "erealloc.$ac_objext "* | \
32447 *" erealloc.$ac_objext "* ) ;;
32448 *) LIBOBJS="$LIBOBJS erealloc.$ac_objext" ;;
32452 echo "$as_me:$LINENO: checking for estrdup" >&5
32453 echo $ECHO_N "checking for estrdup... $ECHO_C" >&6
32454 if test "${ac_cv_func_estrdup+set}" = set; then
32455 echo $ECHO_N "(cached) $ECHO_C" >&6
32457 cat >conftest.$ac_ext <<_ACEOF
32460 cat confdefs.h >>conftest.$ac_ext
32461 cat >>conftest.$ac_ext <<_ACEOF
32462 /* end confdefs.h. */
32463 /* Define estrdup to an innocuous variant, in case <limits.h> declares estrdup.
32464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32465 #define estrdup innocuous_estrdup
32467 /* System header to define __stub macros and hopefully few prototypes,
32468 which can conflict with char estrdup (); below.
32469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32470 <limits.h> exists even on freestanding compilers. */
32473 # include <limits.h>
32475 # include <assert.h>
32480 /* Override any gcc2 internal prototype to avoid an error. */
32485 /* We use char because int might match the return type of a gcc2
32486 builtin and then its argument prototype would still apply. */
32488 /* The GNU C library defines this for functions which it implements
32489 to always fail with ENOSYS. Some functions are actually named
32490 something starting with __ and the normal name is an alias. */
32491 #if defined (__stub_estrdup) || defined (__stub___estrdup)
32494 char (*f) () = estrdup;
32503 return f != estrdup;
32508 rm -f conftest.$ac_objext conftest$ac_exeext
32509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32510 (eval $ac_link) 2>conftest.er1
32512 grep -v '^ *+' conftest.er1 >conftest.err
32514 cat conftest.err >&5
32515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32516 (exit $ac_status); } &&
32517 { ac_try='test -z "$ac_c_werror_flag"
32518 || test ! -s conftest.err'
32519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32520 (eval $ac_try) 2>&5
32522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32523 (exit $ac_status); }; } &&
32524 { ac_try='test -s conftest$ac_exeext'
32525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32526 (eval $ac_try) 2>&5
32528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32529 (exit $ac_status); }; }; then
32530 ac_cv_func_estrdup=yes
32532 echo "$as_me: failed program was:" >&5
32533 sed 's/^/| /' conftest.$ac_ext >&5
32535 ac_cv_func_estrdup=no
32537 rm -f conftest.err conftest.$ac_objext \
32538 conftest$ac_exeext conftest.$ac_ext
32540 echo "$as_me:$LINENO: result: $ac_cv_func_estrdup" >&5
32541 echo "${ECHO_T}$ac_cv_func_estrdup" >&6
32542 if test $ac_cv_func_estrdup = yes; then
32544 cat >>confdefs.h <<_ACEOF
32545 #define HAVE_ESTRDUP 1
32550 "estrdup.$ac_objext" | \
32551 *" estrdup.$ac_objext" | \
32552 "estrdup.$ac_objext "* | \
32553 *" estrdup.$ac_objext "* ) ;;
32554 *) LIBOBJS="$LIBOBJS estrdup.$ac_objext" ;;
32558 echo "$as_me:$LINENO: checking for err" >&5
32559 echo $ECHO_N "checking for err... $ECHO_C" >&6
32560 if test "${ac_cv_func_err+set}" = set; then
32561 echo $ECHO_N "(cached) $ECHO_C" >&6
32563 cat >conftest.$ac_ext <<_ACEOF
32566 cat confdefs.h >>conftest.$ac_ext
32567 cat >>conftest.$ac_ext <<_ACEOF
32568 /* end confdefs.h. */
32569 /* Define err to an innocuous variant, in case <limits.h> declares err.
32570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32571 #define err innocuous_err
32573 /* System header to define __stub macros and hopefully few prototypes,
32574 which can conflict with char err (); below.
32575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32576 <limits.h> exists even on freestanding compilers. */
32579 # include <limits.h>
32581 # include <assert.h>
32586 /* Override any gcc2 internal prototype to avoid an error. */
32591 /* We use char because int might match the return type of a gcc2
32592 builtin and then its argument prototype would still apply. */
32594 /* The GNU C library defines this for functions which it implements
32595 to always fail with ENOSYS. Some functions are actually named
32596 something starting with __ and the normal name is an alias. */
32597 #if defined (__stub_err) || defined (__stub___err)
32600 char (*f) () = err;
32614 rm -f conftest.$ac_objext conftest$ac_exeext
32615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32616 (eval $ac_link) 2>conftest.er1
32618 grep -v '^ *+' conftest.er1 >conftest.err
32620 cat conftest.err >&5
32621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32622 (exit $ac_status); } &&
32623 { ac_try='test -z "$ac_c_werror_flag"
32624 || test ! -s conftest.err'
32625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32626 (eval $ac_try) 2>&5
32628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32629 (exit $ac_status); }; } &&
32630 { ac_try='test -s conftest$ac_exeext'
32631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32632 (eval $ac_try) 2>&5
32634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32635 (exit $ac_status); }; }; then
32638 echo "$as_me: failed program was:" >&5
32639 sed 's/^/| /' conftest.$ac_ext >&5
32643 rm -f conftest.err conftest.$ac_objext \
32644 conftest$ac_exeext conftest.$ac_ext
32646 echo "$as_me:$LINENO: result: $ac_cv_func_err" >&5
32647 echo "${ECHO_T}$ac_cv_func_err" >&6
32648 if test $ac_cv_func_err = yes; then
32650 cat >>confdefs.h <<_ACEOF
32656 "err.$ac_objext" | \
32657 *" err.$ac_objext" | \
32658 "err.$ac_objext "* | \
32659 *" err.$ac_objext "* ) ;;
32660 *) LIBOBJS="$LIBOBJS err.$ac_objext" ;;
32664 echo "$as_me:$LINENO: checking for errx" >&5
32665 echo $ECHO_N "checking for errx... $ECHO_C" >&6
32666 if test "${ac_cv_func_errx+set}" = set; then
32667 echo $ECHO_N "(cached) $ECHO_C" >&6
32669 cat >conftest.$ac_ext <<_ACEOF
32672 cat confdefs.h >>conftest.$ac_ext
32673 cat >>conftest.$ac_ext <<_ACEOF
32674 /* end confdefs.h. */
32675 /* Define errx to an innocuous variant, in case <limits.h> declares errx.
32676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32677 #define errx innocuous_errx
32679 /* System header to define __stub macros and hopefully few prototypes,
32680 which can conflict with char errx (); below.
32681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32682 <limits.h> exists even on freestanding compilers. */
32685 # include <limits.h>
32687 # include <assert.h>
32692 /* Override any gcc2 internal prototype to avoid an error. */
32697 /* We use char because int might match the return type of a gcc2
32698 builtin and then its argument prototype would still apply. */
32700 /* The GNU C library defines this for functions which it implements
32701 to always fail with ENOSYS. Some functions are actually named
32702 something starting with __ and the normal name is an alias. */
32703 #if defined (__stub_errx) || defined (__stub___errx)
32706 char (*f) () = errx;
32720 rm -f conftest.$ac_objext conftest$ac_exeext
32721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32722 (eval $ac_link) 2>conftest.er1
32724 grep -v '^ *+' conftest.er1 >conftest.err
32726 cat conftest.err >&5
32727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32728 (exit $ac_status); } &&
32729 { ac_try='test -z "$ac_c_werror_flag"
32730 || test ! -s conftest.err'
32731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32732 (eval $ac_try) 2>&5
32734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32735 (exit $ac_status); }; } &&
32736 { ac_try='test -s conftest$ac_exeext'
32737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32738 (eval $ac_try) 2>&5
32740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32741 (exit $ac_status); }; }; then
32742 ac_cv_func_errx=yes
32744 echo "$as_me: failed program was:" >&5
32745 sed 's/^/| /' conftest.$ac_ext >&5
32749 rm -f conftest.err conftest.$ac_objext \
32750 conftest$ac_exeext conftest.$ac_ext
32752 echo "$as_me:$LINENO: result: $ac_cv_func_errx" >&5
32753 echo "${ECHO_T}$ac_cv_func_errx" >&6
32754 if test $ac_cv_func_errx = yes; then
32756 cat >>confdefs.h <<_ACEOF
32757 #define HAVE_ERRX 1
32762 "errx.$ac_objext" | \
32763 *" errx.$ac_objext" | \
32764 "errx.$ac_objext "* | \
32765 *" errx.$ac_objext "* ) ;;
32766 *) LIBOBJS="$LIBOBJS errx.$ac_objext" ;;
32770 echo "$as_me:$LINENO: checking for fchown" >&5
32771 echo $ECHO_N "checking for fchown... $ECHO_C" >&6
32772 if test "${ac_cv_func_fchown+set}" = set; then
32773 echo $ECHO_N "(cached) $ECHO_C" >&6
32775 cat >conftest.$ac_ext <<_ACEOF
32778 cat confdefs.h >>conftest.$ac_ext
32779 cat >>conftest.$ac_ext <<_ACEOF
32780 /* end confdefs.h. */
32781 /* Define fchown to an innocuous variant, in case <limits.h> declares fchown.
32782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32783 #define fchown innocuous_fchown
32785 /* System header to define __stub macros and hopefully few prototypes,
32786 which can conflict with char fchown (); below.
32787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32788 <limits.h> exists even on freestanding compilers. */
32791 # include <limits.h>
32793 # include <assert.h>
32798 /* Override any gcc2 internal prototype to avoid an error. */
32803 /* We use char because int might match the return type of a gcc2
32804 builtin and then its argument prototype would still apply. */
32806 /* The GNU C library defines this for functions which it implements
32807 to always fail with ENOSYS. Some functions are actually named
32808 something starting with __ and the normal name is an alias. */
32809 #if defined (__stub_fchown) || defined (__stub___fchown)
32812 char (*f) () = fchown;
32821 return f != fchown;
32826 rm -f conftest.$ac_objext conftest$ac_exeext
32827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32828 (eval $ac_link) 2>conftest.er1
32830 grep -v '^ *+' conftest.er1 >conftest.err
32832 cat conftest.err >&5
32833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32834 (exit $ac_status); } &&
32835 { ac_try='test -z "$ac_c_werror_flag"
32836 || test ! -s conftest.err'
32837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32838 (eval $ac_try) 2>&5
32840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32841 (exit $ac_status); }; } &&
32842 { ac_try='test -s conftest$ac_exeext'
32843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32844 (eval $ac_try) 2>&5
32846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32847 (exit $ac_status); }; }; then
32848 ac_cv_func_fchown=yes
32850 echo "$as_me: failed program was:" >&5
32851 sed 's/^/| /' conftest.$ac_ext >&5
32853 ac_cv_func_fchown=no
32855 rm -f conftest.err conftest.$ac_objext \
32856 conftest$ac_exeext conftest.$ac_ext
32858 echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
32859 echo "${ECHO_T}$ac_cv_func_fchown" >&6
32860 if test $ac_cv_func_fchown = yes; then
32862 cat >>confdefs.h <<_ACEOF
32863 #define HAVE_FCHOWN 1
32868 "fchown.$ac_objext" | \
32869 *" fchown.$ac_objext" | \
32870 "fchown.$ac_objext "* | \
32871 *" fchown.$ac_objext "* ) ;;
32872 *) LIBOBJS="$LIBOBJS fchown.$ac_objext" ;;
32876 echo "$as_me:$LINENO: checking for flock" >&5
32877 echo $ECHO_N "checking for flock... $ECHO_C" >&6
32878 if test "${ac_cv_func_flock+set}" = set; then
32879 echo $ECHO_N "(cached) $ECHO_C" >&6
32881 cat >conftest.$ac_ext <<_ACEOF
32884 cat confdefs.h >>conftest.$ac_ext
32885 cat >>conftest.$ac_ext <<_ACEOF
32886 /* end confdefs.h. */
32887 /* Define flock to an innocuous variant, in case <limits.h> declares flock.
32888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32889 #define flock innocuous_flock
32891 /* System header to define __stub macros and hopefully few prototypes,
32892 which can conflict with char flock (); below.
32893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32894 <limits.h> exists even on freestanding compilers. */
32897 # include <limits.h>
32899 # include <assert.h>
32904 /* Override any gcc2 internal prototype to avoid an error. */
32909 /* We use char because int might match the return type of a gcc2
32910 builtin and then its argument prototype would still apply. */
32912 /* The GNU C library defines this for functions which it implements
32913 to always fail with ENOSYS. Some functions are actually named
32914 something starting with __ and the normal name is an alias. */
32915 #if defined (__stub_flock) || defined (__stub___flock)
32918 char (*f) () = flock;
32932 rm -f conftest.$ac_objext conftest$ac_exeext
32933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32934 (eval $ac_link) 2>conftest.er1
32936 grep -v '^ *+' conftest.er1 >conftest.err
32938 cat conftest.err >&5
32939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32940 (exit $ac_status); } &&
32941 { ac_try='test -z "$ac_c_werror_flag"
32942 || test ! -s conftest.err'
32943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32944 (eval $ac_try) 2>&5
32946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32947 (exit $ac_status); }; } &&
32948 { ac_try='test -s conftest$ac_exeext'
32949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32950 (eval $ac_try) 2>&5
32952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32953 (exit $ac_status); }; }; then
32954 ac_cv_func_flock=yes
32956 echo "$as_me: failed program was:" >&5
32957 sed 's/^/| /' conftest.$ac_ext >&5
32959 ac_cv_func_flock=no
32961 rm -f conftest.err conftest.$ac_objext \
32962 conftest$ac_exeext conftest.$ac_ext
32964 echo "$as_me:$LINENO: result: $ac_cv_func_flock" >&5
32965 echo "${ECHO_T}$ac_cv_func_flock" >&6
32966 if test $ac_cv_func_flock = yes; then
32968 cat >>confdefs.h <<_ACEOF
32969 #define HAVE_FLOCK 1
32974 "flock.$ac_objext" | \
32975 *" flock.$ac_objext" | \
32976 "flock.$ac_objext "* | \
32977 *" flock.$ac_objext "* ) ;;
32978 *) LIBOBJS="$LIBOBJS flock.$ac_objext" ;;
32982 echo "$as_me:$LINENO: checking for fnmatch" >&5
32983 echo $ECHO_N "checking for fnmatch... $ECHO_C" >&6
32984 if test "${ac_cv_func_fnmatch+set}" = set; then
32985 echo $ECHO_N "(cached) $ECHO_C" >&6
32987 cat >conftest.$ac_ext <<_ACEOF
32990 cat confdefs.h >>conftest.$ac_ext
32991 cat >>conftest.$ac_ext <<_ACEOF
32992 /* end confdefs.h. */
32993 /* Define fnmatch to an innocuous variant, in case <limits.h> declares fnmatch.
32994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32995 #define fnmatch innocuous_fnmatch
32997 /* System header to define __stub macros and hopefully few prototypes,
32998 which can conflict with char fnmatch (); below.
32999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33000 <limits.h> exists even on freestanding compilers. */
33003 # include <limits.h>
33005 # include <assert.h>
33010 /* Override any gcc2 internal prototype to avoid an error. */
33015 /* We use char because int might match the return type of a gcc2
33016 builtin and then its argument prototype would still apply. */
33018 /* The GNU C library defines this for functions which it implements
33019 to always fail with ENOSYS. Some functions are actually named
33020 something starting with __ and the normal name is an alias. */
33021 #if defined (__stub_fnmatch) || defined (__stub___fnmatch)
33024 char (*f) () = fnmatch;
33033 return f != fnmatch;
33038 rm -f conftest.$ac_objext conftest$ac_exeext
33039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33040 (eval $ac_link) 2>conftest.er1
33042 grep -v '^ *+' conftest.er1 >conftest.err
33044 cat conftest.err >&5
33045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33046 (exit $ac_status); } &&
33047 { ac_try='test -z "$ac_c_werror_flag"
33048 || test ! -s conftest.err'
33049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33050 (eval $ac_try) 2>&5
33052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33053 (exit $ac_status); }; } &&
33054 { ac_try='test -s conftest$ac_exeext'
33055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33056 (eval $ac_try) 2>&5
33058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33059 (exit $ac_status); }; }; then
33060 ac_cv_func_fnmatch=yes
33062 echo "$as_me: failed program was:" >&5
33063 sed 's/^/| /' conftest.$ac_ext >&5
33065 ac_cv_func_fnmatch=no
33067 rm -f conftest.err conftest.$ac_objext \
33068 conftest$ac_exeext conftest.$ac_ext
33070 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch" >&5
33071 echo "${ECHO_T}$ac_cv_func_fnmatch" >&6
33072 if test $ac_cv_func_fnmatch = yes; then
33074 cat >>confdefs.h <<_ACEOF
33075 #define HAVE_FNMATCH 1
33080 "fnmatch.$ac_objext" | \
33081 *" fnmatch.$ac_objext" | \
33082 "fnmatch.$ac_objext "* | \
33083 *" fnmatch.$ac_objext "* ) ;;
33084 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" ;;
33088 echo "$as_me:$LINENO: checking for freehostent" >&5
33089 echo $ECHO_N "checking for freehostent... $ECHO_C" >&6
33090 if test "${ac_cv_func_freehostent+set}" = set; then
33091 echo $ECHO_N "(cached) $ECHO_C" >&6
33093 cat >conftest.$ac_ext <<_ACEOF
33096 cat confdefs.h >>conftest.$ac_ext
33097 cat >>conftest.$ac_ext <<_ACEOF
33098 /* end confdefs.h. */
33099 /* Define freehostent to an innocuous variant, in case <limits.h> declares freehostent.
33100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33101 #define freehostent innocuous_freehostent
33103 /* System header to define __stub macros and hopefully few prototypes,
33104 which can conflict with char freehostent (); below.
33105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33106 <limits.h> exists even on freestanding compilers. */
33109 # include <limits.h>
33111 # include <assert.h>
33116 /* Override any gcc2 internal prototype to avoid an error. */
33121 /* We use char because int might match the return type of a gcc2
33122 builtin and then its argument prototype would still apply. */
33123 char freehostent ();
33124 /* The GNU C library defines this for functions which it implements
33125 to always fail with ENOSYS. Some functions are actually named
33126 something starting with __ and the normal name is an alias. */
33127 #if defined (__stub_freehostent) || defined (__stub___freehostent)
33130 char (*f) () = freehostent;
33139 return f != freehostent;
33144 rm -f conftest.$ac_objext conftest$ac_exeext
33145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33146 (eval $ac_link) 2>conftest.er1
33148 grep -v '^ *+' conftest.er1 >conftest.err
33150 cat conftest.err >&5
33151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33152 (exit $ac_status); } &&
33153 { ac_try='test -z "$ac_c_werror_flag"
33154 || test ! -s conftest.err'
33155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33156 (eval $ac_try) 2>&5
33158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33159 (exit $ac_status); }; } &&
33160 { ac_try='test -s conftest$ac_exeext'
33161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33162 (eval $ac_try) 2>&5
33164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33165 (exit $ac_status); }; }; then
33166 ac_cv_func_freehostent=yes
33168 echo "$as_me: failed program was:" >&5
33169 sed 's/^/| /' conftest.$ac_ext >&5
33171 ac_cv_func_freehostent=no
33173 rm -f conftest.err conftest.$ac_objext \
33174 conftest$ac_exeext conftest.$ac_ext
33176 echo "$as_me:$LINENO: result: $ac_cv_func_freehostent" >&5
33177 echo "${ECHO_T}$ac_cv_func_freehostent" >&6
33178 if test $ac_cv_func_freehostent = yes; then
33180 cat >>confdefs.h <<_ACEOF
33181 #define HAVE_FREEHOSTENT 1
33186 "freehostent.$ac_objext" | \
33187 *" freehostent.$ac_objext" | \
33188 "freehostent.$ac_objext "* | \
33189 *" freehostent.$ac_objext "* ) ;;
33190 *) LIBOBJS="$LIBOBJS freehostent.$ac_objext" ;;
33194 echo "$as_me:$LINENO: checking for getcwd" >&5
33195 echo $ECHO_N "checking for getcwd... $ECHO_C" >&6
33196 if test "${ac_cv_func_getcwd+set}" = set; then
33197 echo $ECHO_N "(cached) $ECHO_C" >&6
33199 cat >conftest.$ac_ext <<_ACEOF
33202 cat confdefs.h >>conftest.$ac_ext
33203 cat >>conftest.$ac_ext <<_ACEOF
33204 /* end confdefs.h. */
33205 /* Define getcwd to an innocuous variant, in case <limits.h> declares getcwd.
33206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33207 #define getcwd innocuous_getcwd
33209 /* System header to define __stub macros and hopefully few prototypes,
33210 which can conflict with char getcwd (); below.
33211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33212 <limits.h> exists even on freestanding compilers. */
33215 # include <limits.h>
33217 # include <assert.h>
33222 /* Override any gcc2 internal prototype to avoid an error. */
33227 /* We use char because int might match the return type of a gcc2
33228 builtin and then its argument prototype would still apply. */
33230 /* The GNU C library defines this for functions which it implements
33231 to always fail with ENOSYS. Some functions are actually named
33232 something starting with __ and the normal name is an alias. */
33233 #if defined (__stub_getcwd) || defined (__stub___getcwd)
33236 char (*f) () = getcwd;
33245 return f != getcwd;
33250 rm -f conftest.$ac_objext conftest$ac_exeext
33251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33252 (eval $ac_link) 2>conftest.er1
33254 grep -v '^ *+' conftest.er1 >conftest.err
33256 cat conftest.err >&5
33257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33258 (exit $ac_status); } &&
33259 { ac_try='test -z "$ac_c_werror_flag"
33260 || test ! -s conftest.err'
33261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33262 (eval $ac_try) 2>&5
33264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33265 (exit $ac_status); }; } &&
33266 { ac_try='test -s conftest$ac_exeext'
33267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33268 (eval $ac_try) 2>&5
33270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33271 (exit $ac_status); }; }; then
33272 ac_cv_func_getcwd=yes
33274 echo "$as_me: failed program was:" >&5
33275 sed 's/^/| /' conftest.$ac_ext >&5
33277 ac_cv_func_getcwd=no
33279 rm -f conftest.err conftest.$ac_objext \
33280 conftest$ac_exeext conftest.$ac_ext
33282 echo "$as_me:$LINENO: result: $ac_cv_func_getcwd" >&5
33283 echo "${ECHO_T}$ac_cv_func_getcwd" >&6
33284 if test $ac_cv_func_getcwd = yes; then
33286 cat >>confdefs.h <<_ACEOF
33287 #define HAVE_GETCWD 1
33292 "getcwd.$ac_objext" | \
33293 *" getcwd.$ac_objext" | \
33294 "getcwd.$ac_objext "* | \
33295 *" getcwd.$ac_objext "* ) ;;
33296 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" ;;
33300 echo "$as_me:$LINENO: checking for getdtablesize" >&5
33301 echo $ECHO_N "checking for getdtablesize... $ECHO_C" >&6
33302 if test "${ac_cv_func_getdtablesize+set}" = set; then
33303 echo $ECHO_N "(cached) $ECHO_C" >&6
33305 cat >conftest.$ac_ext <<_ACEOF
33308 cat confdefs.h >>conftest.$ac_ext
33309 cat >>conftest.$ac_ext <<_ACEOF
33310 /* end confdefs.h. */
33311 /* Define getdtablesize to an innocuous variant, in case <limits.h> declares getdtablesize.
33312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33313 #define getdtablesize innocuous_getdtablesize
33315 /* System header to define __stub macros and hopefully few prototypes,
33316 which can conflict with char getdtablesize (); below.
33317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33318 <limits.h> exists even on freestanding compilers. */
33321 # include <limits.h>
33323 # include <assert.h>
33326 #undef getdtablesize
33328 /* Override any gcc2 internal prototype to avoid an error. */
33333 /* We use char because int might match the return type of a gcc2
33334 builtin and then its argument prototype would still apply. */
33335 char getdtablesize ();
33336 /* The GNU C library defines this for functions which it implements
33337 to always fail with ENOSYS. Some functions are actually named
33338 something starting with __ and the normal name is an alias. */
33339 #if defined (__stub_getdtablesize) || defined (__stub___getdtablesize)
33342 char (*f) () = getdtablesize;
33351 return f != getdtablesize;
33356 rm -f conftest.$ac_objext conftest$ac_exeext
33357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33358 (eval $ac_link) 2>conftest.er1
33360 grep -v '^ *+' conftest.er1 >conftest.err
33362 cat conftest.err >&5
33363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33364 (exit $ac_status); } &&
33365 { ac_try='test -z "$ac_c_werror_flag"
33366 || test ! -s conftest.err'
33367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33368 (eval $ac_try) 2>&5
33370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33371 (exit $ac_status); }; } &&
33372 { ac_try='test -s conftest$ac_exeext'
33373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33374 (eval $ac_try) 2>&5
33376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377 (exit $ac_status); }; }; then
33378 ac_cv_func_getdtablesize=yes
33380 echo "$as_me: failed program was:" >&5
33381 sed 's/^/| /' conftest.$ac_ext >&5
33383 ac_cv_func_getdtablesize=no
33385 rm -f conftest.err conftest.$ac_objext \
33386 conftest$ac_exeext conftest.$ac_ext
33388 echo "$as_me:$LINENO: result: $ac_cv_func_getdtablesize" >&5
33389 echo "${ECHO_T}$ac_cv_func_getdtablesize" >&6
33390 if test $ac_cv_func_getdtablesize = yes; then
33392 cat >>confdefs.h <<_ACEOF
33393 #define HAVE_GETDTABLESIZE 1
33398 "getdtablesize.$ac_objext" | \
33399 *" getdtablesize.$ac_objext" | \
33400 "getdtablesize.$ac_objext "* | \
33401 *" getdtablesize.$ac_objext "* ) ;;
33402 *) LIBOBJS="$LIBOBJS getdtablesize.$ac_objext" ;;
33406 echo "$as_me:$LINENO: checking for getegid" >&5
33407 echo $ECHO_N "checking for getegid... $ECHO_C" >&6
33408 if test "${ac_cv_func_getegid+set}" = set; then
33409 echo $ECHO_N "(cached) $ECHO_C" >&6
33411 cat >conftest.$ac_ext <<_ACEOF
33414 cat confdefs.h >>conftest.$ac_ext
33415 cat >>conftest.$ac_ext <<_ACEOF
33416 /* end confdefs.h. */
33417 /* Define getegid to an innocuous variant, in case <limits.h> declares getegid.
33418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33419 #define getegid innocuous_getegid
33421 /* System header to define __stub macros and hopefully few prototypes,
33422 which can conflict with char getegid (); below.
33423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33424 <limits.h> exists even on freestanding compilers. */
33427 # include <limits.h>
33429 # include <assert.h>
33434 /* Override any gcc2 internal prototype to avoid an error. */
33439 /* We use char because int might match the return type of a gcc2
33440 builtin and then its argument prototype would still apply. */
33442 /* The GNU C library defines this for functions which it implements
33443 to always fail with ENOSYS. Some functions are actually named
33444 something starting with __ and the normal name is an alias. */
33445 #if defined (__stub_getegid) || defined (__stub___getegid)
33448 char (*f) () = getegid;
33457 return f != getegid;
33462 rm -f conftest.$ac_objext conftest$ac_exeext
33463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33464 (eval $ac_link) 2>conftest.er1
33466 grep -v '^ *+' conftest.er1 >conftest.err
33468 cat conftest.err >&5
33469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33470 (exit $ac_status); } &&
33471 { ac_try='test -z "$ac_c_werror_flag"
33472 || test ! -s conftest.err'
33473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33474 (eval $ac_try) 2>&5
33476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33477 (exit $ac_status); }; } &&
33478 { ac_try='test -s conftest$ac_exeext'
33479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33480 (eval $ac_try) 2>&5
33482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33483 (exit $ac_status); }; }; then
33484 ac_cv_func_getegid=yes
33486 echo "$as_me: failed program was:" >&5
33487 sed 's/^/| /' conftest.$ac_ext >&5
33489 ac_cv_func_getegid=no
33491 rm -f conftest.err conftest.$ac_objext \
33492 conftest$ac_exeext conftest.$ac_ext
33494 echo "$as_me:$LINENO: result: $ac_cv_func_getegid" >&5
33495 echo "${ECHO_T}$ac_cv_func_getegid" >&6
33496 if test $ac_cv_func_getegid = yes; then
33498 cat >>confdefs.h <<_ACEOF
33499 #define HAVE_GETEGID 1
33504 "getegid.$ac_objext" | \
33505 *" getegid.$ac_objext" | \
33506 "getegid.$ac_objext "* | \
33507 *" getegid.$ac_objext "* ) ;;
33508 *) LIBOBJS="$LIBOBJS getegid.$ac_objext" ;;
33512 echo "$as_me:$LINENO: checking for geteuid" >&5
33513 echo $ECHO_N "checking for geteuid... $ECHO_C" >&6
33514 if test "${ac_cv_func_geteuid+set}" = set; then
33515 echo $ECHO_N "(cached) $ECHO_C" >&6
33517 cat >conftest.$ac_ext <<_ACEOF
33520 cat confdefs.h >>conftest.$ac_ext
33521 cat >>conftest.$ac_ext <<_ACEOF
33522 /* end confdefs.h. */
33523 /* Define geteuid to an innocuous variant, in case <limits.h> declares geteuid.
33524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33525 #define geteuid innocuous_geteuid
33527 /* System header to define __stub macros and hopefully few prototypes,
33528 which can conflict with char geteuid (); below.
33529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33530 <limits.h> exists even on freestanding compilers. */
33533 # include <limits.h>
33535 # include <assert.h>
33540 /* Override any gcc2 internal prototype to avoid an error. */
33545 /* We use char because int might match the return type of a gcc2
33546 builtin and then its argument prototype would still apply. */
33548 /* The GNU C library defines this for functions which it implements
33549 to always fail with ENOSYS. Some functions are actually named
33550 something starting with __ and the normal name is an alias. */
33551 #if defined (__stub_geteuid) || defined (__stub___geteuid)
33554 char (*f) () = geteuid;
33563 return f != geteuid;
33568 rm -f conftest.$ac_objext conftest$ac_exeext
33569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33570 (eval $ac_link) 2>conftest.er1
33572 grep -v '^ *+' conftest.er1 >conftest.err
33574 cat conftest.err >&5
33575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33576 (exit $ac_status); } &&
33577 { ac_try='test -z "$ac_c_werror_flag"
33578 || test ! -s conftest.err'
33579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33580 (eval $ac_try) 2>&5
33582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33583 (exit $ac_status); }; } &&
33584 { ac_try='test -s conftest$ac_exeext'
33585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33586 (eval $ac_try) 2>&5
33588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33589 (exit $ac_status); }; }; then
33590 ac_cv_func_geteuid=yes
33592 echo "$as_me: failed program was:" >&5
33593 sed 's/^/| /' conftest.$ac_ext >&5
33595 ac_cv_func_geteuid=no
33597 rm -f conftest.err conftest.$ac_objext \
33598 conftest$ac_exeext conftest.$ac_ext
33600 echo "$as_me:$LINENO: result: $ac_cv_func_geteuid" >&5
33601 echo "${ECHO_T}$ac_cv_func_geteuid" >&6
33602 if test $ac_cv_func_geteuid = yes; then
33604 cat >>confdefs.h <<_ACEOF
33605 #define HAVE_GETEUID 1
33610 "geteuid.$ac_objext" | \
33611 *" geteuid.$ac_objext" | \
33612 "geteuid.$ac_objext "* | \
33613 *" geteuid.$ac_objext "* ) ;;
33614 *) LIBOBJS="$LIBOBJS geteuid.$ac_objext" ;;
33618 echo "$as_me:$LINENO: checking for getgid" >&5
33619 echo $ECHO_N "checking for getgid... $ECHO_C" >&6
33620 if test "${ac_cv_func_getgid+set}" = set; then
33621 echo $ECHO_N "(cached) $ECHO_C" >&6
33623 cat >conftest.$ac_ext <<_ACEOF
33626 cat confdefs.h >>conftest.$ac_ext
33627 cat >>conftest.$ac_ext <<_ACEOF
33628 /* end confdefs.h. */
33629 /* Define getgid to an innocuous variant, in case <limits.h> declares getgid.
33630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33631 #define getgid innocuous_getgid
33633 /* System header to define __stub macros and hopefully few prototypes,
33634 which can conflict with char getgid (); below.
33635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33636 <limits.h> exists even on freestanding compilers. */
33639 # include <limits.h>
33641 # include <assert.h>
33646 /* Override any gcc2 internal prototype to avoid an error. */
33651 /* We use char because int might match the return type of a gcc2
33652 builtin and then its argument prototype would still apply. */
33654 /* The GNU C library defines this for functions which it implements
33655 to always fail with ENOSYS. Some functions are actually named
33656 something starting with __ and the normal name is an alias. */
33657 #if defined (__stub_getgid) || defined (__stub___getgid)
33660 char (*f) () = getgid;
33669 return f != getgid;
33674 rm -f conftest.$ac_objext conftest$ac_exeext
33675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33676 (eval $ac_link) 2>conftest.er1
33678 grep -v '^ *+' conftest.er1 >conftest.err
33680 cat conftest.err >&5
33681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33682 (exit $ac_status); } &&
33683 { ac_try='test -z "$ac_c_werror_flag"
33684 || test ! -s conftest.err'
33685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33686 (eval $ac_try) 2>&5
33688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33689 (exit $ac_status); }; } &&
33690 { ac_try='test -s conftest$ac_exeext'
33691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33692 (eval $ac_try) 2>&5
33694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33695 (exit $ac_status); }; }; then
33696 ac_cv_func_getgid=yes
33698 echo "$as_me: failed program was:" >&5
33699 sed 's/^/| /' conftest.$ac_ext >&5
33701 ac_cv_func_getgid=no
33703 rm -f conftest.err conftest.$ac_objext \
33704 conftest$ac_exeext conftest.$ac_ext
33706 echo "$as_me:$LINENO: result: $ac_cv_func_getgid" >&5
33707 echo "${ECHO_T}$ac_cv_func_getgid" >&6
33708 if test $ac_cv_func_getgid = yes; then
33710 cat >>confdefs.h <<_ACEOF
33711 #define HAVE_GETGID 1
33716 "getgid.$ac_objext" | \
33717 *" getgid.$ac_objext" | \
33718 "getgid.$ac_objext "* | \
33719 *" getgid.$ac_objext "* ) ;;
33720 *) LIBOBJS="$LIBOBJS getgid.$ac_objext" ;;
33724 echo "$as_me:$LINENO: checking for gethostname" >&5
33725 echo $ECHO_N "checking for gethostname... $ECHO_C" >&6
33726 if test "${ac_cv_func_gethostname+set}" = set; then
33727 echo $ECHO_N "(cached) $ECHO_C" >&6
33729 cat >conftest.$ac_ext <<_ACEOF
33732 cat confdefs.h >>conftest.$ac_ext
33733 cat >>conftest.$ac_ext <<_ACEOF
33734 /* end confdefs.h. */
33735 /* Define gethostname to an innocuous variant, in case <limits.h> declares gethostname.
33736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33737 #define gethostname innocuous_gethostname
33739 /* System header to define __stub macros and hopefully few prototypes,
33740 which can conflict with char gethostname (); below.
33741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33742 <limits.h> exists even on freestanding compilers. */
33745 # include <limits.h>
33747 # include <assert.h>
33752 /* Override any gcc2 internal prototype to avoid an error. */
33757 /* We use char because int might match the return type of a gcc2
33758 builtin and then its argument prototype would still apply. */
33759 char gethostname ();
33760 /* The GNU C library defines this for functions which it implements
33761 to always fail with ENOSYS. Some functions are actually named
33762 something starting with __ and the normal name is an alias. */
33763 #if defined (__stub_gethostname) || defined (__stub___gethostname)
33766 char (*f) () = gethostname;
33775 return f != gethostname;
33780 rm -f conftest.$ac_objext conftest$ac_exeext
33781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33782 (eval $ac_link) 2>conftest.er1
33784 grep -v '^ *+' conftest.er1 >conftest.err
33786 cat conftest.err >&5
33787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33788 (exit $ac_status); } &&
33789 { ac_try='test -z "$ac_c_werror_flag"
33790 || test ! -s conftest.err'
33791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33792 (eval $ac_try) 2>&5
33794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33795 (exit $ac_status); }; } &&
33796 { ac_try='test -s conftest$ac_exeext'
33797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33798 (eval $ac_try) 2>&5
33800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801 (exit $ac_status); }; }; then
33802 ac_cv_func_gethostname=yes
33804 echo "$as_me: failed program was:" >&5
33805 sed 's/^/| /' conftest.$ac_ext >&5
33807 ac_cv_func_gethostname=no
33809 rm -f conftest.err conftest.$ac_objext \
33810 conftest$ac_exeext conftest.$ac_ext
33812 echo "$as_me:$LINENO: result: $ac_cv_func_gethostname" >&5
33813 echo "${ECHO_T}$ac_cv_func_gethostname" >&6
33814 if test $ac_cv_func_gethostname = yes; then
33816 cat >>confdefs.h <<_ACEOF
33817 #define HAVE_GETHOSTNAME 1
33822 "gethostname.$ac_objext" | \
33823 *" gethostname.$ac_objext" | \
33824 "gethostname.$ac_objext "* | \
33825 *" gethostname.$ac_objext "* ) ;;
33826 *) LIBOBJS="$LIBOBJS gethostname.$ac_objext" ;;
33830 echo "$as_me:$LINENO: checking for getifaddrs" >&5
33831 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6
33832 if test "${ac_cv_func_getifaddrs+set}" = set; then
33833 echo $ECHO_N "(cached) $ECHO_C" >&6
33835 cat >conftest.$ac_ext <<_ACEOF
33838 cat confdefs.h >>conftest.$ac_ext
33839 cat >>conftest.$ac_ext <<_ACEOF
33840 /* end confdefs.h. */
33841 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
33842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33843 #define getifaddrs innocuous_getifaddrs
33845 /* System header to define __stub macros and hopefully few prototypes,
33846 which can conflict with char getifaddrs (); below.
33847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33848 <limits.h> exists even on freestanding compilers. */
33851 # include <limits.h>
33853 # include <assert.h>
33858 /* Override any gcc2 internal prototype to avoid an error. */
33863 /* We use char because int might match the return type of a gcc2
33864 builtin and then its argument prototype would still apply. */
33865 char getifaddrs ();
33866 /* The GNU C library defines this for functions which it implements
33867 to always fail with ENOSYS. Some functions are actually named
33868 something starting with __ and the normal name is an alias. */
33869 #if defined (__stub_getifaddrs) || defined (__stub___getifaddrs)
33872 char (*f) () = getifaddrs;
33881 return f != getifaddrs;
33886 rm -f conftest.$ac_objext conftest$ac_exeext
33887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33888 (eval $ac_link) 2>conftest.er1
33890 grep -v '^ *+' conftest.er1 >conftest.err
33892 cat conftest.err >&5
33893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33894 (exit $ac_status); } &&
33895 { ac_try='test -z "$ac_c_werror_flag"
33896 || test ! -s conftest.err'
33897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33898 (eval $ac_try) 2>&5
33900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33901 (exit $ac_status); }; } &&
33902 { ac_try='test -s conftest$ac_exeext'
33903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33904 (eval $ac_try) 2>&5
33906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33907 (exit $ac_status); }; }; then
33908 ac_cv_func_getifaddrs=yes
33910 echo "$as_me: failed program was:" >&5
33911 sed 's/^/| /' conftest.$ac_ext >&5
33913 ac_cv_func_getifaddrs=no
33915 rm -f conftest.err conftest.$ac_objext \
33916 conftest$ac_exeext conftest.$ac_ext
33918 echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
33919 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6
33920 if test $ac_cv_func_getifaddrs = yes; then
33922 cat >>confdefs.h <<_ACEOF
33923 #define HAVE_GETIFADDRS 1
33928 "getifaddrs.$ac_objext" | \
33929 *" getifaddrs.$ac_objext" | \
33930 "getifaddrs.$ac_objext "* | \
33931 *" getifaddrs.$ac_objext "* ) ;;
33932 *) LIBOBJS="$LIBOBJS getifaddrs.$ac_objext" ;;
33936 echo "$as_me:$LINENO: checking for getipnodebyaddr" >&5
33937 echo $ECHO_N "checking for getipnodebyaddr... $ECHO_C" >&6
33938 if test "${ac_cv_func_getipnodebyaddr+set}" = set; then
33939 echo $ECHO_N "(cached) $ECHO_C" >&6
33941 cat >conftest.$ac_ext <<_ACEOF
33944 cat confdefs.h >>conftest.$ac_ext
33945 cat >>conftest.$ac_ext <<_ACEOF
33946 /* end confdefs.h. */
33947 /* Define getipnodebyaddr to an innocuous variant, in case <limits.h> declares getipnodebyaddr.
33948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33949 #define getipnodebyaddr innocuous_getipnodebyaddr
33951 /* System header to define __stub macros and hopefully few prototypes,
33952 which can conflict with char getipnodebyaddr (); below.
33953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33954 <limits.h> exists even on freestanding compilers. */
33957 # include <limits.h>
33959 # include <assert.h>
33962 #undef getipnodebyaddr
33964 /* Override any gcc2 internal prototype to avoid an error. */
33969 /* We use char because int might match the return type of a gcc2
33970 builtin and then its argument prototype would still apply. */
33971 char getipnodebyaddr ();
33972 /* The GNU C library defines this for functions which it implements
33973 to always fail with ENOSYS. Some functions are actually named
33974 something starting with __ and the normal name is an alias. */
33975 #if defined (__stub_getipnodebyaddr) || defined (__stub___getipnodebyaddr)
33978 char (*f) () = getipnodebyaddr;
33987 return f != getipnodebyaddr;
33992 rm -f conftest.$ac_objext conftest$ac_exeext
33993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33994 (eval $ac_link) 2>conftest.er1
33996 grep -v '^ *+' conftest.er1 >conftest.err
33998 cat conftest.err >&5
33999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34000 (exit $ac_status); } &&
34001 { ac_try='test -z "$ac_c_werror_flag"
34002 || test ! -s conftest.err'
34003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34004 (eval $ac_try) 2>&5
34006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34007 (exit $ac_status); }; } &&
34008 { ac_try='test -s conftest$ac_exeext'
34009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34010 (eval $ac_try) 2>&5
34012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34013 (exit $ac_status); }; }; then
34014 ac_cv_func_getipnodebyaddr=yes
34016 echo "$as_me: failed program was:" >&5
34017 sed 's/^/| /' conftest.$ac_ext >&5
34019 ac_cv_func_getipnodebyaddr=no
34021 rm -f conftest.err conftest.$ac_objext \
34022 conftest$ac_exeext conftest.$ac_ext
34024 echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyaddr" >&5
34025 echo "${ECHO_T}$ac_cv_func_getipnodebyaddr" >&6
34026 if test $ac_cv_func_getipnodebyaddr = yes; then
34028 cat >>confdefs.h <<_ACEOF
34029 #define HAVE_GETIPNODEBYADDR 1
34034 "getipnodebyaddr.$ac_objext" | \
34035 *" getipnodebyaddr.$ac_objext" | \
34036 "getipnodebyaddr.$ac_objext "* | \
34037 *" getipnodebyaddr.$ac_objext "* ) ;;
34038 *) LIBOBJS="$LIBOBJS getipnodebyaddr.$ac_objext" ;;
34042 echo "$as_me:$LINENO: checking for getipnodebyname" >&5
34043 echo $ECHO_N "checking for getipnodebyname... $ECHO_C" >&6
34044 if test "${ac_cv_func_getipnodebyname+set}" = set; then
34045 echo $ECHO_N "(cached) $ECHO_C" >&6
34047 cat >conftest.$ac_ext <<_ACEOF
34050 cat confdefs.h >>conftest.$ac_ext
34051 cat >>conftest.$ac_ext <<_ACEOF
34052 /* end confdefs.h. */
34053 /* Define getipnodebyname to an innocuous variant, in case <limits.h> declares getipnodebyname.
34054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34055 #define getipnodebyname innocuous_getipnodebyname
34057 /* System header to define __stub macros and hopefully few prototypes,
34058 which can conflict with char getipnodebyname (); below.
34059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34060 <limits.h> exists even on freestanding compilers. */
34063 # include <limits.h>
34065 # include <assert.h>
34068 #undef getipnodebyname
34070 /* Override any gcc2 internal prototype to avoid an error. */
34075 /* We use char because int might match the return type of a gcc2
34076 builtin and then its argument prototype would still apply. */
34077 char getipnodebyname ();
34078 /* The GNU C library defines this for functions which it implements
34079 to always fail with ENOSYS. Some functions are actually named
34080 something starting with __ and the normal name is an alias. */
34081 #if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname)
34084 char (*f) () = getipnodebyname;
34093 return f != getipnodebyname;
34098 rm -f conftest.$ac_objext conftest$ac_exeext
34099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34100 (eval $ac_link) 2>conftest.er1
34102 grep -v '^ *+' conftest.er1 >conftest.err
34104 cat conftest.err >&5
34105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34106 (exit $ac_status); } &&
34107 { ac_try='test -z "$ac_c_werror_flag"
34108 || test ! -s conftest.err'
34109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34110 (eval $ac_try) 2>&5
34112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34113 (exit $ac_status); }; } &&
34114 { ac_try='test -s conftest$ac_exeext'
34115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34116 (eval $ac_try) 2>&5
34118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34119 (exit $ac_status); }; }; then
34120 ac_cv_func_getipnodebyname=yes
34122 echo "$as_me: failed program was:" >&5
34123 sed 's/^/| /' conftest.$ac_ext >&5
34125 ac_cv_func_getipnodebyname=no
34127 rm -f conftest.err conftest.$ac_objext \
34128 conftest$ac_exeext conftest.$ac_ext
34130 echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyname" >&5
34131 echo "${ECHO_T}$ac_cv_func_getipnodebyname" >&6
34132 if test $ac_cv_func_getipnodebyname = yes; then
34134 cat >>confdefs.h <<_ACEOF
34135 #define HAVE_GETIPNODEBYNAME 1
34140 "getipnodebyname.$ac_objext" | \
34141 *" getipnodebyname.$ac_objext" | \
34142 "getipnodebyname.$ac_objext "* | \
34143 *" getipnodebyname.$ac_objext "* ) ;;
34144 *) LIBOBJS="$LIBOBJS getipnodebyname.$ac_objext" ;;
34148 echo "$as_me:$LINENO: checking for getopt" >&5
34149 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
34150 if test "${ac_cv_func_getopt+set}" = set; then
34151 echo $ECHO_N "(cached) $ECHO_C" >&6
34153 cat >conftest.$ac_ext <<_ACEOF
34156 cat confdefs.h >>conftest.$ac_ext
34157 cat >>conftest.$ac_ext <<_ACEOF
34158 /* end confdefs.h. */
34159 /* Define getopt to an innocuous variant, in case <limits.h> declares getopt.
34160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34161 #define getopt innocuous_getopt
34163 /* System header to define __stub macros and hopefully few prototypes,
34164 which can conflict with char getopt (); below.
34165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34166 <limits.h> exists even on freestanding compilers. */
34169 # include <limits.h>
34171 # include <assert.h>
34176 /* Override any gcc2 internal prototype to avoid an error. */
34181 /* We use char because int might match the return type of a gcc2
34182 builtin and then its argument prototype would still apply. */
34184 /* The GNU C library defines this for functions which it implements
34185 to always fail with ENOSYS. Some functions are actually named
34186 something starting with __ and the normal name is an alias. */
34187 #if defined (__stub_getopt) || defined (__stub___getopt)
34190 char (*f) () = getopt;
34199 return f != getopt;
34204 rm -f conftest.$ac_objext conftest$ac_exeext
34205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34206 (eval $ac_link) 2>conftest.er1
34208 grep -v '^ *+' conftest.er1 >conftest.err
34210 cat conftest.err >&5
34211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34212 (exit $ac_status); } &&
34213 { ac_try='test -z "$ac_c_werror_flag"
34214 || test ! -s conftest.err'
34215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34216 (eval $ac_try) 2>&5
34218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34219 (exit $ac_status); }; } &&
34220 { ac_try='test -s conftest$ac_exeext'
34221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34222 (eval $ac_try) 2>&5
34224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34225 (exit $ac_status); }; }; then
34226 ac_cv_func_getopt=yes
34228 echo "$as_me: failed program was:" >&5
34229 sed 's/^/| /' conftest.$ac_ext >&5
34231 ac_cv_func_getopt=no
34233 rm -f conftest.err conftest.$ac_objext \
34234 conftest$ac_exeext conftest.$ac_ext
34236 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
34237 echo "${ECHO_T}$ac_cv_func_getopt" >&6
34238 if test $ac_cv_func_getopt = yes; then
34240 cat >>confdefs.h <<_ACEOF
34241 #define HAVE_GETOPT 1
34246 "getopt.$ac_objext" | \
34247 *" getopt.$ac_objext" | \
34248 "getopt.$ac_objext "* | \
34249 *" getopt.$ac_objext "* ) ;;
34250 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;;
34254 echo "$as_me:$LINENO: checking for gettimeofday" >&5
34255 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
34256 if test "${ac_cv_func_gettimeofday+set}" = set; then
34257 echo $ECHO_N "(cached) $ECHO_C" >&6
34259 cat >conftest.$ac_ext <<_ACEOF
34262 cat confdefs.h >>conftest.$ac_ext
34263 cat >>conftest.$ac_ext <<_ACEOF
34264 /* end confdefs.h. */
34265 /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
34266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34267 #define gettimeofday innocuous_gettimeofday
34269 /* System header to define __stub macros and hopefully few prototypes,
34270 which can conflict with char gettimeofday (); below.
34271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34272 <limits.h> exists even on freestanding compilers. */
34275 # include <limits.h>
34277 # include <assert.h>
34280 #undef gettimeofday
34282 /* Override any gcc2 internal prototype to avoid an error. */
34287 /* We use char because int might match the return type of a gcc2
34288 builtin and then its argument prototype would still apply. */
34289 char gettimeofday ();
34290 /* The GNU C library defines this for functions which it implements
34291 to always fail with ENOSYS. Some functions are actually named
34292 something starting with __ and the normal name is an alias. */
34293 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
34296 char (*f) () = gettimeofday;
34305 return f != gettimeofday;
34310 rm -f conftest.$ac_objext conftest$ac_exeext
34311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34312 (eval $ac_link) 2>conftest.er1
34314 grep -v '^ *+' conftest.er1 >conftest.err
34316 cat conftest.err >&5
34317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34318 (exit $ac_status); } &&
34319 { ac_try='test -z "$ac_c_werror_flag"
34320 || test ! -s conftest.err'
34321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34322 (eval $ac_try) 2>&5
34324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34325 (exit $ac_status); }; } &&
34326 { ac_try='test -s conftest$ac_exeext'
34327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34328 (eval $ac_try) 2>&5
34330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34331 (exit $ac_status); }; }; then
34332 ac_cv_func_gettimeofday=yes
34334 echo "$as_me: failed program was:" >&5
34335 sed 's/^/| /' conftest.$ac_ext >&5
34337 ac_cv_func_gettimeofday=no
34339 rm -f conftest.err conftest.$ac_objext \
34340 conftest$ac_exeext conftest.$ac_ext
34342 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
34343 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
34344 if test $ac_cv_func_gettimeofday = yes; then
34346 cat >>confdefs.h <<_ACEOF
34347 #define HAVE_GETTIMEOFDAY 1
34352 "gettimeofday.$ac_objext" | \
34353 *" gettimeofday.$ac_objext" | \
34354 "gettimeofday.$ac_objext "* | \
34355 *" gettimeofday.$ac_objext "* ) ;;
34356 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
34360 echo "$as_me:$LINENO: checking for getuid" >&5
34361 echo $ECHO_N "checking for getuid... $ECHO_C" >&6
34362 if test "${ac_cv_func_getuid+set}" = set; then
34363 echo $ECHO_N "(cached) $ECHO_C" >&6
34365 cat >conftest.$ac_ext <<_ACEOF
34368 cat confdefs.h >>conftest.$ac_ext
34369 cat >>conftest.$ac_ext <<_ACEOF
34370 /* end confdefs.h. */
34371 /* Define getuid to an innocuous variant, in case <limits.h> declares getuid.
34372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34373 #define getuid innocuous_getuid
34375 /* System header to define __stub macros and hopefully few prototypes,
34376 which can conflict with char getuid (); below.
34377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34378 <limits.h> exists even on freestanding compilers. */
34381 # include <limits.h>
34383 # include <assert.h>
34388 /* Override any gcc2 internal prototype to avoid an error. */
34393 /* We use char because int might match the return type of a gcc2
34394 builtin and then its argument prototype would still apply. */
34396 /* The GNU C library defines this for functions which it implements
34397 to always fail with ENOSYS. Some functions are actually named
34398 something starting with __ and the normal name is an alias. */
34399 #if defined (__stub_getuid) || defined (__stub___getuid)
34402 char (*f) () = getuid;
34411 return f != getuid;
34416 rm -f conftest.$ac_objext conftest$ac_exeext
34417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34418 (eval $ac_link) 2>conftest.er1
34420 grep -v '^ *+' conftest.er1 >conftest.err
34422 cat conftest.err >&5
34423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34424 (exit $ac_status); } &&
34425 { ac_try='test -z "$ac_c_werror_flag"
34426 || test ! -s conftest.err'
34427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34428 (eval $ac_try) 2>&5
34430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34431 (exit $ac_status); }; } &&
34432 { ac_try='test -s conftest$ac_exeext'
34433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34434 (eval $ac_try) 2>&5
34436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34437 (exit $ac_status); }; }; then
34438 ac_cv_func_getuid=yes
34440 echo "$as_me: failed program was:" >&5
34441 sed 's/^/| /' conftest.$ac_ext >&5
34443 ac_cv_func_getuid=no
34445 rm -f conftest.err conftest.$ac_objext \
34446 conftest$ac_exeext conftest.$ac_ext
34448 echo "$as_me:$LINENO: result: $ac_cv_func_getuid" >&5
34449 echo "${ECHO_T}$ac_cv_func_getuid" >&6
34450 if test $ac_cv_func_getuid = yes; then
34452 cat >>confdefs.h <<_ACEOF
34453 #define HAVE_GETUID 1
34458 "getuid.$ac_objext" | \
34459 *" getuid.$ac_objext" | \
34460 "getuid.$ac_objext "* | \
34461 *" getuid.$ac_objext "* ) ;;
34462 *) LIBOBJS="$LIBOBJS getuid.$ac_objext" ;;
34466 echo "$as_me:$LINENO: checking for getusershell" >&5
34467 echo $ECHO_N "checking for getusershell... $ECHO_C" >&6
34468 if test "${ac_cv_func_getusershell+set}" = set; then
34469 echo $ECHO_N "(cached) $ECHO_C" >&6
34471 cat >conftest.$ac_ext <<_ACEOF
34474 cat confdefs.h >>conftest.$ac_ext
34475 cat >>conftest.$ac_ext <<_ACEOF
34476 /* end confdefs.h. */
34477 /* Define getusershell to an innocuous variant, in case <limits.h> declares getusershell.
34478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34479 #define getusershell innocuous_getusershell
34481 /* System header to define __stub macros and hopefully few prototypes,
34482 which can conflict with char getusershell (); below.
34483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34484 <limits.h> exists even on freestanding compilers. */
34487 # include <limits.h>
34489 # include <assert.h>
34492 #undef getusershell
34494 /* Override any gcc2 internal prototype to avoid an error. */
34499 /* We use char because int might match the return type of a gcc2
34500 builtin and then its argument prototype would still apply. */
34501 char getusershell ();
34502 /* The GNU C library defines this for functions which it implements
34503 to always fail with ENOSYS. Some functions are actually named
34504 something starting with __ and the normal name is an alias. */
34505 #if defined (__stub_getusershell) || defined (__stub___getusershell)
34508 char (*f) () = getusershell;
34517 return f != getusershell;
34522 rm -f conftest.$ac_objext conftest$ac_exeext
34523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34524 (eval $ac_link) 2>conftest.er1
34526 grep -v '^ *+' conftest.er1 >conftest.err
34528 cat conftest.err >&5
34529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34530 (exit $ac_status); } &&
34531 { ac_try='test -z "$ac_c_werror_flag"
34532 || test ! -s conftest.err'
34533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34534 (eval $ac_try) 2>&5
34536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34537 (exit $ac_status); }; } &&
34538 { ac_try='test -s conftest$ac_exeext'
34539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34540 (eval $ac_try) 2>&5
34542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34543 (exit $ac_status); }; }; then
34544 ac_cv_func_getusershell=yes
34546 echo "$as_me: failed program was:" >&5
34547 sed 's/^/| /' conftest.$ac_ext >&5
34549 ac_cv_func_getusershell=no
34551 rm -f conftest.err conftest.$ac_objext \
34552 conftest$ac_exeext conftest.$ac_ext
34554 echo "$as_me:$LINENO: result: $ac_cv_func_getusershell" >&5
34555 echo "${ECHO_T}$ac_cv_func_getusershell" >&6
34556 if test $ac_cv_func_getusershell = yes; then
34558 cat >>confdefs.h <<_ACEOF
34559 #define HAVE_GETUSERSHELL 1
34564 "getusershell.$ac_objext" | \
34565 *" getusershell.$ac_objext" | \
34566 "getusershell.$ac_objext "* | \
34567 *" getusershell.$ac_objext "* ) ;;
34568 *) LIBOBJS="$LIBOBJS getusershell.$ac_objext" ;;
34572 echo "$as_me:$LINENO: checking for initgroups" >&5
34573 echo $ECHO_N "checking for initgroups... $ECHO_C" >&6
34574 if test "${ac_cv_func_initgroups+set}" = set; then
34575 echo $ECHO_N "(cached) $ECHO_C" >&6
34577 cat >conftest.$ac_ext <<_ACEOF
34580 cat confdefs.h >>conftest.$ac_ext
34581 cat >>conftest.$ac_ext <<_ACEOF
34582 /* end confdefs.h. */
34583 /* Define initgroups to an innocuous variant, in case <limits.h> declares initgroups.
34584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34585 #define initgroups innocuous_initgroups
34587 /* System header to define __stub macros and hopefully few prototypes,
34588 which can conflict with char initgroups (); below.
34589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34590 <limits.h> exists even on freestanding compilers. */
34593 # include <limits.h>
34595 # include <assert.h>
34600 /* Override any gcc2 internal prototype to avoid an error. */
34605 /* We use char because int might match the return type of a gcc2
34606 builtin and then its argument prototype would still apply. */
34607 char initgroups ();
34608 /* The GNU C library defines this for functions which it implements
34609 to always fail with ENOSYS. Some functions are actually named
34610 something starting with __ and the normal name is an alias. */
34611 #if defined (__stub_initgroups) || defined (__stub___initgroups)
34614 char (*f) () = initgroups;
34623 return f != initgroups;
34628 rm -f conftest.$ac_objext conftest$ac_exeext
34629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34630 (eval $ac_link) 2>conftest.er1
34632 grep -v '^ *+' conftest.er1 >conftest.err
34634 cat conftest.err >&5
34635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34636 (exit $ac_status); } &&
34637 { ac_try='test -z "$ac_c_werror_flag"
34638 || test ! -s conftest.err'
34639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34640 (eval $ac_try) 2>&5
34642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34643 (exit $ac_status); }; } &&
34644 { ac_try='test -s conftest$ac_exeext'
34645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34646 (eval $ac_try) 2>&5
34648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34649 (exit $ac_status); }; }; then
34650 ac_cv_func_initgroups=yes
34652 echo "$as_me: failed program was:" >&5
34653 sed 's/^/| /' conftest.$ac_ext >&5
34655 ac_cv_func_initgroups=no
34657 rm -f conftest.err conftest.$ac_objext \
34658 conftest$ac_exeext conftest.$ac_ext
34660 echo "$as_me:$LINENO: result: $ac_cv_func_initgroups" >&5
34661 echo "${ECHO_T}$ac_cv_func_initgroups" >&6
34662 if test $ac_cv_func_initgroups = yes; then
34664 cat >>confdefs.h <<_ACEOF
34665 #define HAVE_INITGROUPS 1
34670 "initgroups.$ac_objext" | \
34671 *" initgroups.$ac_objext" | \
34672 "initgroups.$ac_objext "* | \
34673 *" initgroups.$ac_objext "* ) ;;
34674 *) LIBOBJS="$LIBOBJS initgroups.$ac_objext" ;;
34678 echo "$as_me:$LINENO: checking for innetgr" >&5
34679 echo $ECHO_N "checking for innetgr... $ECHO_C" >&6
34680 if test "${ac_cv_func_innetgr+set}" = set; then
34681 echo $ECHO_N "(cached) $ECHO_C" >&6
34683 cat >conftest.$ac_ext <<_ACEOF
34686 cat confdefs.h >>conftest.$ac_ext
34687 cat >>conftest.$ac_ext <<_ACEOF
34688 /* end confdefs.h. */
34689 /* Define innetgr to an innocuous variant, in case <limits.h> declares innetgr.
34690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34691 #define innetgr innocuous_innetgr
34693 /* System header to define __stub macros and hopefully few prototypes,
34694 which can conflict with char innetgr (); below.
34695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34696 <limits.h> exists even on freestanding compilers. */
34699 # include <limits.h>
34701 # include <assert.h>
34706 /* Override any gcc2 internal prototype to avoid an error. */
34711 /* We use char because int might match the return type of a gcc2
34712 builtin and then its argument prototype would still apply. */
34714 /* The GNU C library defines this for functions which it implements
34715 to always fail with ENOSYS. Some functions are actually named
34716 something starting with __ and the normal name is an alias. */
34717 #if defined (__stub_innetgr) || defined (__stub___innetgr)
34720 char (*f) () = innetgr;
34729 return f != innetgr;
34734 rm -f conftest.$ac_objext conftest$ac_exeext
34735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34736 (eval $ac_link) 2>conftest.er1
34738 grep -v '^ *+' conftest.er1 >conftest.err
34740 cat conftest.err >&5
34741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34742 (exit $ac_status); } &&
34743 { ac_try='test -z "$ac_c_werror_flag"
34744 || test ! -s conftest.err'
34745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34746 (eval $ac_try) 2>&5
34748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34749 (exit $ac_status); }; } &&
34750 { ac_try='test -s conftest$ac_exeext'
34751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34752 (eval $ac_try) 2>&5
34754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34755 (exit $ac_status); }; }; then
34756 ac_cv_func_innetgr=yes
34758 echo "$as_me: failed program was:" >&5
34759 sed 's/^/| /' conftest.$ac_ext >&5
34761 ac_cv_func_innetgr=no
34763 rm -f conftest.err conftest.$ac_objext \
34764 conftest$ac_exeext conftest.$ac_ext
34766 echo "$as_me:$LINENO: result: $ac_cv_func_innetgr" >&5
34767 echo "${ECHO_T}$ac_cv_func_innetgr" >&6
34768 if test $ac_cv_func_innetgr = yes; then
34770 cat >>confdefs.h <<_ACEOF
34771 #define HAVE_INNETGR 1
34776 "innetgr.$ac_objext" | \
34777 *" innetgr.$ac_objext" | \
34778 "innetgr.$ac_objext "* | \
34779 *" innetgr.$ac_objext "* ) ;;
34780 *) LIBOBJS="$LIBOBJS innetgr.$ac_objext" ;;
34784 echo "$as_me:$LINENO: checking for iruserok" >&5
34785 echo $ECHO_N "checking for iruserok... $ECHO_C" >&6
34786 if test "${ac_cv_func_iruserok+set}" = set; then
34787 echo $ECHO_N "(cached) $ECHO_C" >&6
34789 cat >conftest.$ac_ext <<_ACEOF
34792 cat confdefs.h >>conftest.$ac_ext
34793 cat >>conftest.$ac_ext <<_ACEOF
34794 /* end confdefs.h. */
34795 /* Define iruserok to an innocuous variant, in case <limits.h> declares iruserok.
34796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34797 #define iruserok innocuous_iruserok
34799 /* System header to define __stub macros and hopefully few prototypes,
34800 which can conflict with char iruserok (); below.
34801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34802 <limits.h> exists even on freestanding compilers. */
34805 # include <limits.h>
34807 # include <assert.h>
34812 /* Override any gcc2 internal prototype to avoid an error. */
34817 /* We use char because int might match the return type of a gcc2
34818 builtin and then its argument prototype would still apply. */
34820 /* The GNU C library defines this for functions which it implements
34821 to always fail with ENOSYS. Some functions are actually named
34822 something starting with __ and the normal name is an alias. */
34823 #if defined (__stub_iruserok) || defined (__stub___iruserok)
34826 char (*f) () = iruserok;
34835 return f != iruserok;
34840 rm -f conftest.$ac_objext conftest$ac_exeext
34841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34842 (eval $ac_link) 2>conftest.er1
34844 grep -v '^ *+' conftest.er1 >conftest.err
34846 cat conftest.err >&5
34847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34848 (exit $ac_status); } &&
34849 { ac_try='test -z "$ac_c_werror_flag"
34850 || test ! -s conftest.err'
34851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34852 (eval $ac_try) 2>&5
34854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34855 (exit $ac_status); }; } &&
34856 { ac_try='test -s conftest$ac_exeext'
34857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34858 (eval $ac_try) 2>&5
34860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34861 (exit $ac_status); }; }; then
34862 ac_cv_func_iruserok=yes
34864 echo "$as_me: failed program was:" >&5
34865 sed 's/^/| /' conftest.$ac_ext >&5
34867 ac_cv_func_iruserok=no
34869 rm -f conftest.err conftest.$ac_objext \
34870 conftest$ac_exeext conftest.$ac_ext
34872 echo "$as_me:$LINENO: result: $ac_cv_func_iruserok" >&5
34873 echo "${ECHO_T}$ac_cv_func_iruserok" >&6
34874 if test $ac_cv_func_iruserok = yes; then
34876 cat >>confdefs.h <<_ACEOF
34877 #define HAVE_IRUSEROK 1
34882 "iruserok.$ac_objext" | \
34883 *" iruserok.$ac_objext" | \
34884 "iruserok.$ac_objext "* | \
34885 *" iruserok.$ac_objext "* ) ;;
34886 *) LIBOBJS="$LIBOBJS iruserok.$ac_objext" ;;
34890 echo "$as_me:$LINENO: checking for localtime_r" >&5
34891 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
34892 if test "${ac_cv_func_localtime_r+set}" = set; then
34893 echo $ECHO_N "(cached) $ECHO_C" >&6
34895 cat >conftest.$ac_ext <<_ACEOF
34898 cat confdefs.h >>conftest.$ac_ext
34899 cat >>conftest.$ac_ext <<_ACEOF
34900 /* end confdefs.h. */
34901 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
34902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34903 #define localtime_r innocuous_localtime_r
34905 /* System header to define __stub macros and hopefully few prototypes,
34906 which can conflict with char localtime_r (); below.
34907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34908 <limits.h> exists even on freestanding compilers. */
34911 # include <limits.h>
34913 # include <assert.h>
34918 /* Override any gcc2 internal prototype to avoid an error. */
34923 /* We use char because int might match the return type of a gcc2
34924 builtin and then its argument prototype would still apply. */
34925 char localtime_r ();
34926 /* The GNU C library defines this for functions which it implements
34927 to always fail with ENOSYS. Some functions are actually named
34928 something starting with __ and the normal name is an alias. */
34929 #if defined (__stub_localtime_r) || defined (__stub___localtime_r)
34932 char (*f) () = localtime_r;
34941 return f != localtime_r;
34946 rm -f conftest.$ac_objext conftest$ac_exeext
34947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34948 (eval $ac_link) 2>conftest.er1
34950 grep -v '^ *+' conftest.er1 >conftest.err
34952 cat conftest.err >&5
34953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34954 (exit $ac_status); } &&
34955 { ac_try='test -z "$ac_c_werror_flag"
34956 || test ! -s conftest.err'
34957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34958 (eval $ac_try) 2>&5
34960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34961 (exit $ac_status); }; } &&
34962 { ac_try='test -s conftest$ac_exeext'
34963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34964 (eval $ac_try) 2>&5
34966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34967 (exit $ac_status); }; }; then
34968 ac_cv_func_localtime_r=yes
34970 echo "$as_me: failed program was:" >&5
34971 sed 's/^/| /' conftest.$ac_ext >&5
34973 ac_cv_func_localtime_r=no
34975 rm -f conftest.err conftest.$ac_objext \
34976 conftest$ac_exeext conftest.$ac_ext
34978 echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
34979 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
34980 if test $ac_cv_func_localtime_r = yes; then
34982 cat >>confdefs.h <<_ACEOF
34983 #define HAVE_LOCALTIME_R 1
34988 "localtime_r.$ac_objext" | \
34989 *" localtime_r.$ac_objext" | \
34990 "localtime_r.$ac_objext "* | \
34991 *" localtime_r.$ac_objext "* ) ;;
34992 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext" ;;
34996 echo "$as_me:$LINENO: checking for lstat" >&5
34997 echo $ECHO_N "checking for lstat... $ECHO_C" >&6
34998 if test "${ac_cv_func_lstat+set}" = set; then
34999 echo $ECHO_N "(cached) $ECHO_C" >&6
35001 cat >conftest.$ac_ext <<_ACEOF
35004 cat confdefs.h >>conftest.$ac_ext
35005 cat >>conftest.$ac_ext <<_ACEOF
35006 /* end confdefs.h. */
35007 /* Define lstat to an innocuous variant, in case <limits.h> declares lstat.
35008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35009 #define lstat innocuous_lstat
35011 /* System header to define __stub macros and hopefully few prototypes,
35012 which can conflict with char lstat (); below.
35013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35014 <limits.h> exists even on freestanding compilers. */
35017 # include <limits.h>
35019 # include <assert.h>
35024 /* Override any gcc2 internal prototype to avoid an error. */
35029 /* We use char because int might match the return type of a gcc2
35030 builtin and then its argument prototype would still apply. */
35032 /* The GNU C library defines this for functions which it implements
35033 to always fail with ENOSYS. Some functions are actually named
35034 something starting with __ and the normal name is an alias. */
35035 #if defined (__stub_lstat) || defined (__stub___lstat)
35038 char (*f) () = lstat;
35052 rm -f conftest.$ac_objext conftest$ac_exeext
35053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35054 (eval $ac_link) 2>conftest.er1
35056 grep -v '^ *+' conftest.er1 >conftest.err
35058 cat conftest.err >&5
35059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35060 (exit $ac_status); } &&
35061 { ac_try='test -z "$ac_c_werror_flag"
35062 || test ! -s conftest.err'
35063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35064 (eval $ac_try) 2>&5
35066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35067 (exit $ac_status); }; } &&
35068 { ac_try='test -s conftest$ac_exeext'
35069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35070 (eval $ac_try) 2>&5
35072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35073 (exit $ac_status); }; }; then
35074 ac_cv_func_lstat=yes
35076 echo "$as_me: failed program was:" >&5
35077 sed 's/^/| /' conftest.$ac_ext >&5
35079 ac_cv_func_lstat=no
35081 rm -f conftest.err conftest.$ac_objext \
35082 conftest$ac_exeext conftest.$ac_ext
35084 echo "$as_me:$LINENO: result: $ac_cv_func_lstat" >&5
35085 echo "${ECHO_T}$ac_cv_func_lstat" >&6
35086 if test $ac_cv_func_lstat = yes; then
35088 cat >>confdefs.h <<_ACEOF
35089 #define HAVE_LSTAT 1
35094 "lstat.$ac_objext" | \
35095 *" lstat.$ac_objext" | \
35096 "lstat.$ac_objext "* | \
35097 *" lstat.$ac_objext "* ) ;;
35098 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
35102 echo "$as_me:$LINENO: checking for memmove" >&5
35103 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
35104 if test "${ac_cv_func_memmove+set}" = set; then
35105 echo $ECHO_N "(cached) $ECHO_C" >&6
35107 cat >conftest.$ac_ext <<_ACEOF
35110 cat confdefs.h >>conftest.$ac_ext
35111 cat >>conftest.$ac_ext <<_ACEOF
35112 /* end confdefs.h. */
35113 /* Define memmove to an innocuous variant, in case <limits.h> declares memmove.
35114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35115 #define memmove innocuous_memmove
35117 /* System header to define __stub macros and hopefully few prototypes,
35118 which can conflict with char memmove (); below.
35119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35120 <limits.h> exists even on freestanding compilers. */
35123 # include <limits.h>
35125 # include <assert.h>
35130 /* Override any gcc2 internal prototype to avoid an error. */
35135 /* We use char because int might match the return type of a gcc2
35136 builtin and then its argument prototype would still apply. */
35138 /* The GNU C library defines this for functions which it implements
35139 to always fail with ENOSYS. Some functions are actually named
35140 something starting with __ and the normal name is an alias. */
35141 #if defined (__stub_memmove) || defined (__stub___memmove)
35144 char (*f) () = memmove;
35153 return f != memmove;
35158 rm -f conftest.$ac_objext conftest$ac_exeext
35159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35160 (eval $ac_link) 2>conftest.er1
35162 grep -v '^ *+' conftest.er1 >conftest.err
35164 cat conftest.err >&5
35165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35166 (exit $ac_status); } &&
35167 { ac_try='test -z "$ac_c_werror_flag"
35168 || test ! -s conftest.err'
35169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35170 (eval $ac_try) 2>&5
35172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35173 (exit $ac_status); }; } &&
35174 { ac_try='test -s conftest$ac_exeext'
35175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35176 (eval $ac_try) 2>&5
35178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35179 (exit $ac_status); }; }; then
35180 ac_cv_func_memmove=yes
35182 echo "$as_me: failed program was:" >&5
35183 sed 's/^/| /' conftest.$ac_ext >&5
35185 ac_cv_func_memmove=no
35187 rm -f conftest.err conftest.$ac_objext \
35188 conftest$ac_exeext conftest.$ac_ext
35190 echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5
35191 echo "${ECHO_T}$ac_cv_func_memmove" >&6
35192 if test $ac_cv_func_memmove = yes; then
35194 cat >>confdefs.h <<_ACEOF
35195 #define HAVE_MEMMOVE 1
35200 "memmove.$ac_objext" | \
35201 *" memmove.$ac_objext" | \
35202 "memmove.$ac_objext "* | \
35203 *" memmove.$ac_objext "* ) ;;
35204 *) LIBOBJS="$LIBOBJS memmove.$ac_objext" ;;
35208 echo "$as_me:$LINENO: checking for mkstemp" >&5
35209 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
35210 if test "${ac_cv_func_mkstemp+set}" = set; then
35211 echo $ECHO_N "(cached) $ECHO_C" >&6
35213 cat >conftest.$ac_ext <<_ACEOF
35216 cat confdefs.h >>conftest.$ac_ext
35217 cat >>conftest.$ac_ext <<_ACEOF
35218 /* end confdefs.h. */
35219 /* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
35220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35221 #define mkstemp innocuous_mkstemp
35223 /* System header to define __stub macros and hopefully few prototypes,
35224 which can conflict with char mkstemp (); below.
35225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35226 <limits.h> exists even on freestanding compilers. */
35229 # include <limits.h>
35231 # include <assert.h>
35236 /* Override any gcc2 internal prototype to avoid an error. */
35241 /* We use char because int might match the return type of a gcc2
35242 builtin and then its argument prototype would still apply. */
35244 /* The GNU C library defines this for functions which it implements
35245 to always fail with ENOSYS. Some functions are actually named
35246 something starting with __ and the normal name is an alias. */
35247 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
35250 char (*f) () = mkstemp;
35259 return f != mkstemp;
35264 rm -f conftest.$ac_objext conftest$ac_exeext
35265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35266 (eval $ac_link) 2>conftest.er1
35268 grep -v '^ *+' conftest.er1 >conftest.err
35270 cat conftest.err >&5
35271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35272 (exit $ac_status); } &&
35273 { ac_try='test -z "$ac_c_werror_flag"
35274 || test ! -s conftest.err'
35275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35276 (eval $ac_try) 2>&5
35278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35279 (exit $ac_status); }; } &&
35280 { ac_try='test -s conftest$ac_exeext'
35281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35282 (eval $ac_try) 2>&5
35284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35285 (exit $ac_status); }; }; then
35286 ac_cv_func_mkstemp=yes
35288 echo "$as_me: failed program was:" >&5
35289 sed 's/^/| /' conftest.$ac_ext >&5
35291 ac_cv_func_mkstemp=no
35293 rm -f conftest.err conftest.$ac_objext \
35294 conftest$ac_exeext conftest.$ac_ext
35296 echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
35297 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
35298 if test $ac_cv_func_mkstemp = yes; then
35300 cat >>confdefs.h <<_ACEOF
35301 #define HAVE_MKSTEMP 1
35306 "mkstemp.$ac_objext" | \
35307 *" mkstemp.$ac_objext" | \
35308 "mkstemp.$ac_objext "* | \
35309 *" mkstemp.$ac_objext "* ) ;;
35310 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
35314 echo "$as_me:$LINENO: checking for putenv" >&5
35315 echo $ECHO_N "checking for putenv... $ECHO_C" >&6
35316 if test "${ac_cv_func_putenv+set}" = set; then
35317 echo $ECHO_N "(cached) $ECHO_C" >&6
35319 cat >conftest.$ac_ext <<_ACEOF
35322 cat confdefs.h >>conftest.$ac_ext
35323 cat >>conftest.$ac_ext <<_ACEOF
35324 /* end confdefs.h. */
35325 /* Define putenv to an innocuous variant, in case <limits.h> declares putenv.
35326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35327 #define putenv innocuous_putenv
35329 /* System header to define __stub macros and hopefully few prototypes,
35330 which can conflict with char putenv (); below.
35331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35332 <limits.h> exists even on freestanding compilers. */
35335 # include <limits.h>
35337 # include <assert.h>
35342 /* Override any gcc2 internal prototype to avoid an error. */
35347 /* We use char because int might match the return type of a gcc2
35348 builtin and then its argument prototype would still apply. */
35350 /* The GNU C library defines this for functions which it implements
35351 to always fail with ENOSYS. Some functions are actually named
35352 something starting with __ and the normal name is an alias. */
35353 #if defined (__stub_putenv) || defined (__stub___putenv)
35356 char (*f) () = putenv;
35365 return f != putenv;
35370 rm -f conftest.$ac_objext conftest$ac_exeext
35371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35372 (eval $ac_link) 2>conftest.er1
35374 grep -v '^ *+' conftest.er1 >conftest.err
35376 cat conftest.err >&5
35377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35378 (exit $ac_status); } &&
35379 { ac_try='test -z "$ac_c_werror_flag"
35380 || test ! -s conftest.err'
35381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35382 (eval $ac_try) 2>&5
35384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35385 (exit $ac_status); }; } &&
35386 { ac_try='test -s conftest$ac_exeext'
35387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35388 (eval $ac_try) 2>&5
35390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35391 (exit $ac_status); }; }; then
35392 ac_cv_func_putenv=yes
35394 echo "$as_me: failed program was:" >&5
35395 sed 's/^/| /' conftest.$ac_ext >&5
35397 ac_cv_func_putenv=no
35399 rm -f conftest.err conftest.$ac_objext \
35400 conftest$ac_exeext conftest.$ac_ext
35402 echo "$as_me:$LINENO: result: $ac_cv_func_putenv" >&5
35403 echo "${ECHO_T}$ac_cv_func_putenv" >&6
35404 if test $ac_cv_func_putenv = yes; then
35406 cat >>confdefs.h <<_ACEOF
35407 #define HAVE_PUTENV 1
35412 "putenv.$ac_objext" | \
35413 *" putenv.$ac_objext" | \
35414 "putenv.$ac_objext "* | \
35415 *" putenv.$ac_objext "* ) ;;
35416 *) LIBOBJS="$LIBOBJS putenv.$ac_objext" ;;
35420 echo "$as_me:$LINENO: checking for rcmd" >&5
35421 echo $ECHO_N "checking for rcmd... $ECHO_C" >&6
35422 if test "${ac_cv_func_rcmd+set}" = set; then
35423 echo $ECHO_N "(cached) $ECHO_C" >&6
35425 cat >conftest.$ac_ext <<_ACEOF
35428 cat confdefs.h >>conftest.$ac_ext
35429 cat >>conftest.$ac_ext <<_ACEOF
35430 /* end confdefs.h. */
35431 /* Define rcmd to an innocuous variant, in case <limits.h> declares rcmd.
35432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35433 #define rcmd innocuous_rcmd
35435 /* System header to define __stub macros and hopefully few prototypes,
35436 which can conflict with char rcmd (); below.
35437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35438 <limits.h> exists even on freestanding compilers. */
35441 # include <limits.h>
35443 # include <assert.h>
35448 /* Override any gcc2 internal prototype to avoid an error. */
35453 /* We use char because int might match the return type of a gcc2
35454 builtin and then its argument prototype would still apply. */
35456 /* The GNU C library defines this for functions which it implements
35457 to always fail with ENOSYS. Some functions are actually named
35458 something starting with __ and the normal name is an alias. */
35459 #if defined (__stub_rcmd) || defined (__stub___rcmd)
35462 char (*f) () = rcmd;
35476 rm -f conftest.$ac_objext conftest$ac_exeext
35477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35478 (eval $ac_link) 2>conftest.er1
35480 grep -v '^ *+' conftest.er1 >conftest.err
35482 cat conftest.err >&5
35483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35484 (exit $ac_status); } &&
35485 { ac_try='test -z "$ac_c_werror_flag"
35486 || test ! -s conftest.err'
35487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35488 (eval $ac_try) 2>&5
35490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35491 (exit $ac_status); }; } &&
35492 { ac_try='test -s conftest$ac_exeext'
35493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35494 (eval $ac_try) 2>&5
35496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35497 (exit $ac_status); }; }; then
35498 ac_cv_func_rcmd=yes
35500 echo "$as_me: failed program was:" >&5
35501 sed 's/^/| /' conftest.$ac_ext >&5
35505 rm -f conftest.err conftest.$ac_objext \
35506 conftest$ac_exeext conftest.$ac_ext
35508 echo "$as_me:$LINENO: result: $ac_cv_func_rcmd" >&5
35509 echo "${ECHO_T}$ac_cv_func_rcmd" >&6
35510 if test $ac_cv_func_rcmd = yes; then
35512 cat >>confdefs.h <<_ACEOF
35513 #define HAVE_RCMD 1
35518 "rcmd.$ac_objext" | \
35519 *" rcmd.$ac_objext" | \
35520 "rcmd.$ac_objext "* | \
35521 *" rcmd.$ac_objext "* ) ;;
35522 *) LIBOBJS="$LIBOBJS rcmd.$ac_objext" ;;
35526 echo "$as_me:$LINENO: checking for readv" >&5
35527 echo $ECHO_N "checking for readv... $ECHO_C" >&6
35528 if test "${ac_cv_func_readv+set}" = set; then
35529 echo $ECHO_N "(cached) $ECHO_C" >&6
35531 cat >conftest.$ac_ext <<_ACEOF
35534 cat confdefs.h >>conftest.$ac_ext
35535 cat >>conftest.$ac_ext <<_ACEOF
35536 /* end confdefs.h. */
35537 /* Define readv to an innocuous variant, in case <limits.h> declares readv.
35538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35539 #define readv innocuous_readv
35541 /* System header to define __stub macros and hopefully few prototypes,
35542 which can conflict with char readv (); below.
35543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35544 <limits.h> exists even on freestanding compilers. */
35547 # include <limits.h>
35549 # include <assert.h>
35554 /* Override any gcc2 internal prototype to avoid an error. */
35559 /* We use char because int might match the return type of a gcc2
35560 builtin and then its argument prototype would still apply. */
35562 /* The GNU C library defines this for functions which it implements
35563 to always fail with ENOSYS. Some functions are actually named
35564 something starting with __ and the normal name is an alias. */
35565 #if defined (__stub_readv) || defined (__stub___readv)
35568 char (*f) () = readv;
35582 rm -f conftest.$ac_objext conftest$ac_exeext
35583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35584 (eval $ac_link) 2>conftest.er1
35586 grep -v '^ *+' conftest.er1 >conftest.err
35588 cat conftest.err >&5
35589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35590 (exit $ac_status); } &&
35591 { ac_try='test -z "$ac_c_werror_flag"
35592 || test ! -s conftest.err'
35593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35594 (eval $ac_try) 2>&5
35596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35597 (exit $ac_status); }; } &&
35598 { ac_try='test -s conftest$ac_exeext'
35599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35600 (eval $ac_try) 2>&5
35602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35603 (exit $ac_status); }; }; then
35604 ac_cv_func_readv=yes
35606 echo "$as_me: failed program was:" >&5
35607 sed 's/^/| /' conftest.$ac_ext >&5
35609 ac_cv_func_readv=no
35611 rm -f conftest.err conftest.$ac_objext \
35612 conftest$ac_exeext conftest.$ac_ext
35614 echo "$as_me:$LINENO: result: $ac_cv_func_readv" >&5
35615 echo "${ECHO_T}$ac_cv_func_readv" >&6
35616 if test $ac_cv_func_readv = yes; then
35618 cat >>confdefs.h <<_ACEOF
35619 #define HAVE_READV 1
35624 "readv.$ac_objext" | \
35625 *" readv.$ac_objext" | \
35626 "readv.$ac_objext "* | \
35627 *" readv.$ac_objext "* ) ;;
35628 *) LIBOBJS="$LIBOBJS readv.$ac_objext" ;;
35632 echo "$as_me:$LINENO: checking for recvmsg" >&5
35633 echo $ECHO_N "checking for recvmsg... $ECHO_C" >&6
35634 if test "${ac_cv_func_recvmsg+set}" = set; then
35635 echo $ECHO_N "(cached) $ECHO_C" >&6
35637 cat >conftest.$ac_ext <<_ACEOF
35640 cat confdefs.h >>conftest.$ac_ext
35641 cat >>conftest.$ac_ext <<_ACEOF
35642 /* end confdefs.h. */
35643 /* Define recvmsg to an innocuous variant, in case <limits.h> declares recvmsg.
35644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35645 #define recvmsg innocuous_recvmsg
35647 /* System header to define __stub macros and hopefully few prototypes,
35648 which can conflict with char recvmsg (); below.
35649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35650 <limits.h> exists even on freestanding compilers. */
35653 # include <limits.h>
35655 # include <assert.h>
35660 /* Override any gcc2 internal prototype to avoid an error. */
35665 /* We use char because int might match the return type of a gcc2
35666 builtin and then its argument prototype would still apply. */
35668 /* The GNU C library defines this for functions which it implements
35669 to always fail with ENOSYS. Some functions are actually named
35670 something starting with __ and the normal name is an alias. */
35671 #if defined (__stub_recvmsg) || defined (__stub___recvmsg)
35674 char (*f) () = recvmsg;
35683 return f != recvmsg;
35688 rm -f conftest.$ac_objext conftest$ac_exeext
35689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35690 (eval $ac_link) 2>conftest.er1
35692 grep -v '^ *+' conftest.er1 >conftest.err
35694 cat conftest.err >&5
35695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35696 (exit $ac_status); } &&
35697 { ac_try='test -z "$ac_c_werror_flag"
35698 || test ! -s conftest.err'
35699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35700 (eval $ac_try) 2>&5
35702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35703 (exit $ac_status); }; } &&
35704 { ac_try='test -s conftest$ac_exeext'
35705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35706 (eval $ac_try) 2>&5
35708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35709 (exit $ac_status); }; }; then
35710 ac_cv_func_recvmsg=yes
35712 echo "$as_me: failed program was:" >&5
35713 sed 's/^/| /' conftest.$ac_ext >&5
35715 ac_cv_func_recvmsg=no
35717 rm -f conftest.err conftest.$ac_objext \
35718 conftest$ac_exeext conftest.$ac_ext
35720 echo "$as_me:$LINENO: result: $ac_cv_func_recvmsg" >&5
35721 echo "${ECHO_T}$ac_cv_func_recvmsg" >&6
35722 if test $ac_cv_func_recvmsg = yes; then
35724 cat >>confdefs.h <<_ACEOF
35725 #define HAVE_RECVMSG 1
35730 "recvmsg.$ac_objext" | \
35731 *" recvmsg.$ac_objext" | \
35732 "recvmsg.$ac_objext "* | \
35733 *" recvmsg.$ac_objext "* ) ;;
35734 *) LIBOBJS="$LIBOBJS recvmsg.$ac_objext" ;;
35738 echo "$as_me:$LINENO: checking for sendmsg" >&5
35739 echo $ECHO_N "checking for sendmsg... $ECHO_C" >&6
35740 if test "${ac_cv_func_sendmsg+set}" = set; then
35741 echo $ECHO_N "(cached) $ECHO_C" >&6
35743 cat >conftest.$ac_ext <<_ACEOF
35746 cat confdefs.h >>conftest.$ac_ext
35747 cat >>conftest.$ac_ext <<_ACEOF
35748 /* end confdefs.h. */
35749 /* Define sendmsg to an innocuous variant, in case <limits.h> declares sendmsg.
35750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35751 #define sendmsg innocuous_sendmsg
35753 /* System header to define __stub macros and hopefully few prototypes,
35754 which can conflict with char sendmsg (); below.
35755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35756 <limits.h> exists even on freestanding compilers. */
35759 # include <limits.h>
35761 # include <assert.h>
35766 /* Override any gcc2 internal prototype to avoid an error. */
35771 /* We use char because int might match the return type of a gcc2
35772 builtin and then its argument prototype would still apply. */
35774 /* The GNU C library defines this for functions which it implements
35775 to always fail with ENOSYS. Some functions are actually named
35776 something starting with __ and the normal name is an alias. */
35777 #if defined (__stub_sendmsg) || defined (__stub___sendmsg)
35780 char (*f) () = sendmsg;
35789 return f != sendmsg;
35794 rm -f conftest.$ac_objext conftest$ac_exeext
35795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35796 (eval $ac_link) 2>conftest.er1
35798 grep -v '^ *+' conftest.er1 >conftest.err
35800 cat conftest.err >&5
35801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35802 (exit $ac_status); } &&
35803 { ac_try='test -z "$ac_c_werror_flag"
35804 || test ! -s conftest.err'
35805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35806 (eval $ac_try) 2>&5
35808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35809 (exit $ac_status); }; } &&
35810 { ac_try='test -s conftest$ac_exeext'
35811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35812 (eval $ac_try) 2>&5
35814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35815 (exit $ac_status); }; }; then
35816 ac_cv_func_sendmsg=yes
35818 echo "$as_me: failed program was:" >&5
35819 sed 's/^/| /' conftest.$ac_ext >&5
35821 ac_cv_func_sendmsg=no
35823 rm -f conftest.err conftest.$ac_objext \
35824 conftest$ac_exeext conftest.$ac_ext
35826 echo "$as_me:$LINENO: result: $ac_cv_func_sendmsg" >&5
35827 echo "${ECHO_T}$ac_cv_func_sendmsg" >&6
35828 if test $ac_cv_func_sendmsg = yes; then
35830 cat >>confdefs.h <<_ACEOF
35831 #define HAVE_SENDMSG 1
35836 "sendmsg.$ac_objext" | \
35837 *" sendmsg.$ac_objext" | \
35838 "sendmsg.$ac_objext "* | \
35839 *" sendmsg.$ac_objext "* ) ;;
35840 *) LIBOBJS="$LIBOBJS sendmsg.$ac_objext" ;;
35844 echo "$as_me:$LINENO: checking for setegid" >&5
35845 echo $ECHO_N "checking for setegid... $ECHO_C" >&6
35846 if test "${ac_cv_func_setegid+set}" = set; then
35847 echo $ECHO_N "(cached) $ECHO_C" >&6
35849 cat >conftest.$ac_ext <<_ACEOF
35852 cat confdefs.h >>conftest.$ac_ext
35853 cat >>conftest.$ac_ext <<_ACEOF
35854 /* end confdefs.h. */
35855 /* Define setegid to an innocuous variant, in case <limits.h> declares setegid.
35856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35857 #define setegid innocuous_setegid
35859 /* System header to define __stub macros and hopefully few prototypes,
35860 which can conflict with char setegid (); below.
35861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35862 <limits.h> exists even on freestanding compilers. */
35865 # include <limits.h>
35867 # include <assert.h>
35872 /* Override any gcc2 internal prototype to avoid an error. */
35877 /* We use char because int might match the return type of a gcc2
35878 builtin and then its argument prototype would still apply. */
35880 /* The GNU C library defines this for functions which it implements
35881 to always fail with ENOSYS. Some functions are actually named
35882 something starting with __ and the normal name is an alias. */
35883 #if defined (__stub_setegid) || defined (__stub___setegid)
35886 char (*f) () = setegid;
35895 return f != setegid;
35900 rm -f conftest.$ac_objext conftest$ac_exeext
35901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35902 (eval $ac_link) 2>conftest.er1
35904 grep -v '^ *+' conftest.er1 >conftest.err
35906 cat conftest.err >&5
35907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35908 (exit $ac_status); } &&
35909 { ac_try='test -z "$ac_c_werror_flag"
35910 || test ! -s conftest.err'
35911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35912 (eval $ac_try) 2>&5
35914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35915 (exit $ac_status); }; } &&
35916 { ac_try='test -s conftest$ac_exeext'
35917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35918 (eval $ac_try) 2>&5
35920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35921 (exit $ac_status); }; }; then
35922 ac_cv_func_setegid=yes
35924 echo "$as_me: failed program was:" >&5
35925 sed 's/^/| /' conftest.$ac_ext >&5
35927 ac_cv_func_setegid=no
35929 rm -f conftest.err conftest.$ac_objext \
35930 conftest$ac_exeext conftest.$ac_ext
35932 echo "$as_me:$LINENO: result: $ac_cv_func_setegid" >&5
35933 echo "${ECHO_T}$ac_cv_func_setegid" >&6
35934 if test $ac_cv_func_setegid = yes; then
35936 cat >>confdefs.h <<_ACEOF
35937 #define HAVE_SETEGID 1
35942 "setegid.$ac_objext" | \
35943 *" setegid.$ac_objext" | \
35944 "setegid.$ac_objext "* | \
35945 *" setegid.$ac_objext "* ) ;;
35946 *) LIBOBJS="$LIBOBJS setegid.$ac_objext" ;;
35950 echo "$as_me:$LINENO: checking for setenv" >&5
35951 echo $ECHO_N "checking for setenv... $ECHO_C" >&6
35952 if test "${ac_cv_func_setenv+set}" = set; then
35953 echo $ECHO_N "(cached) $ECHO_C" >&6
35955 cat >conftest.$ac_ext <<_ACEOF
35958 cat confdefs.h >>conftest.$ac_ext
35959 cat >>conftest.$ac_ext <<_ACEOF
35960 /* end confdefs.h. */
35961 /* Define setenv to an innocuous variant, in case <limits.h> declares setenv.
35962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35963 #define setenv innocuous_setenv
35965 /* System header to define __stub macros and hopefully few prototypes,
35966 which can conflict with char setenv (); below.
35967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35968 <limits.h> exists even on freestanding compilers. */
35971 # include <limits.h>
35973 # include <assert.h>
35978 /* Override any gcc2 internal prototype to avoid an error. */
35983 /* We use char because int might match the return type of a gcc2
35984 builtin and then its argument prototype would still apply. */
35986 /* The GNU C library defines this for functions which it implements
35987 to always fail with ENOSYS. Some functions are actually named
35988 something starting with __ and the normal name is an alias. */
35989 #if defined (__stub_setenv) || defined (__stub___setenv)
35992 char (*f) () = setenv;
36001 return f != setenv;
36006 rm -f conftest.$ac_objext conftest$ac_exeext
36007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36008 (eval $ac_link) 2>conftest.er1
36010 grep -v '^ *+' conftest.er1 >conftest.err
36012 cat conftest.err >&5
36013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36014 (exit $ac_status); } &&
36015 { ac_try='test -z "$ac_c_werror_flag"
36016 || test ! -s conftest.err'
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); }; } &&
36022 { ac_try='test -s conftest$ac_exeext'
36023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36024 (eval $ac_try) 2>&5
36026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36027 (exit $ac_status); }; }; then
36028 ac_cv_func_setenv=yes
36030 echo "$as_me: failed program was:" >&5
36031 sed 's/^/| /' conftest.$ac_ext >&5
36033 ac_cv_func_setenv=no
36035 rm -f conftest.err conftest.$ac_objext \
36036 conftest$ac_exeext conftest.$ac_ext
36038 echo "$as_me:$LINENO: result: $ac_cv_func_setenv" >&5
36039 echo "${ECHO_T}$ac_cv_func_setenv" >&6
36040 if test $ac_cv_func_setenv = yes; then
36042 cat >>confdefs.h <<_ACEOF
36043 #define HAVE_SETENV 1
36048 "setenv.$ac_objext" | \
36049 *" setenv.$ac_objext" | \
36050 "setenv.$ac_objext "* | \
36051 *" setenv.$ac_objext "* ) ;;
36052 *) LIBOBJS="$LIBOBJS setenv.$ac_objext" ;;
36056 echo "$as_me:$LINENO: checking for seteuid" >&5
36057 echo $ECHO_N "checking for seteuid... $ECHO_C" >&6
36058 if test "${ac_cv_func_seteuid+set}" = set; then
36059 echo $ECHO_N "(cached) $ECHO_C" >&6
36061 cat >conftest.$ac_ext <<_ACEOF
36064 cat confdefs.h >>conftest.$ac_ext
36065 cat >>conftest.$ac_ext <<_ACEOF
36066 /* end confdefs.h. */
36067 /* Define seteuid to an innocuous variant, in case <limits.h> declares seteuid.
36068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36069 #define seteuid innocuous_seteuid
36071 /* System header to define __stub macros and hopefully few prototypes,
36072 which can conflict with char seteuid (); below.
36073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36074 <limits.h> exists even on freestanding compilers. */
36077 # include <limits.h>
36079 # include <assert.h>
36084 /* Override any gcc2 internal prototype to avoid an error. */
36089 /* We use char because int might match the return type of a gcc2
36090 builtin and then its argument prototype would still apply. */
36092 /* The GNU C library defines this for functions which it implements
36093 to always fail with ENOSYS. Some functions are actually named
36094 something starting with __ and the normal name is an alias. */
36095 #if defined (__stub_seteuid) || defined (__stub___seteuid)
36098 char (*f) () = seteuid;
36107 return f != seteuid;
36112 rm -f conftest.$ac_objext conftest$ac_exeext
36113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36114 (eval $ac_link) 2>conftest.er1
36116 grep -v '^ *+' conftest.er1 >conftest.err
36118 cat conftest.err >&5
36119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36120 (exit $ac_status); } &&
36121 { ac_try='test -z "$ac_c_werror_flag"
36122 || test ! -s conftest.err'
36123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36124 (eval $ac_try) 2>&5
36126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36127 (exit $ac_status); }; } &&
36128 { ac_try='test -s conftest$ac_exeext'
36129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36130 (eval $ac_try) 2>&5
36132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36133 (exit $ac_status); }; }; then
36134 ac_cv_func_seteuid=yes
36136 echo "$as_me: failed program was:" >&5
36137 sed 's/^/| /' conftest.$ac_ext >&5
36139 ac_cv_func_seteuid=no
36141 rm -f conftest.err conftest.$ac_objext \
36142 conftest$ac_exeext conftest.$ac_ext
36144 echo "$as_me:$LINENO: result: $ac_cv_func_seteuid" >&5
36145 echo "${ECHO_T}$ac_cv_func_seteuid" >&6
36146 if test $ac_cv_func_seteuid = yes; then
36148 cat >>confdefs.h <<_ACEOF
36149 #define HAVE_SETEUID 1
36154 "seteuid.$ac_objext" | \
36155 *" seteuid.$ac_objext" | \
36156 "seteuid.$ac_objext "* | \
36157 *" seteuid.$ac_objext "* ) ;;
36158 *) LIBOBJS="$LIBOBJS seteuid.$ac_objext" ;;
36162 echo "$as_me:$LINENO: checking for strcasecmp" >&5
36163 echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
36164 if test "${ac_cv_func_strcasecmp+set}" = set; then
36165 echo $ECHO_N "(cached) $ECHO_C" >&6
36167 cat >conftest.$ac_ext <<_ACEOF
36170 cat confdefs.h >>conftest.$ac_ext
36171 cat >>conftest.$ac_ext <<_ACEOF
36172 /* end confdefs.h. */
36173 /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
36174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36175 #define strcasecmp innocuous_strcasecmp
36177 /* System header to define __stub macros and hopefully few prototypes,
36178 which can conflict with char strcasecmp (); below.
36179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36180 <limits.h> exists even on freestanding compilers. */
36183 # include <limits.h>
36185 # include <assert.h>
36190 /* Override any gcc2 internal prototype to avoid an error. */
36195 /* We use char because int might match the return type of a gcc2
36196 builtin and then its argument prototype would still apply. */
36197 char strcasecmp ();
36198 /* The GNU C library defines this for functions which it implements
36199 to always fail with ENOSYS. Some functions are actually named
36200 something starting with __ and the normal name is an alias. */
36201 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
36204 char (*f) () = strcasecmp;
36213 return f != strcasecmp;
36218 rm -f conftest.$ac_objext conftest$ac_exeext
36219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36220 (eval $ac_link) 2>conftest.er1
36222 grep -v '^ *+' conftest.er1 >conftest.err
36224 cat conftest.err >&5
36225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36226 (exit $ac_status); } &&
36227 { ac_try='test -z "$ac_c_werror_flag"
36228 || test ! -s conftest.err'
36229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36230 (eval $ac_try) 2>&5
36232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36233 (exit $ac_status); }; } &&
36234 { ac_try='test -s conftest$ac_exeext'
36235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36236 (eval $ac_try) 2>&5
36238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36239 (exit $ac_status); }; }; then
36240 ac_cv_func_strcasecmp=yes
36242 echo "$as_me: failed program was:" >&5
36243 sed 's/^/| /' conftest.$ac_ext >&5
36245 ac_cv_func_strcasecmp=no
36247 rm -f conftest.err conftest.$ac_objext \
36248 conftest$ac_exeext conftest.$ac_ext
36250 echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
36251 echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
36252 if test $ac_cv_func_strcasecmp = yes; then
36254 cat >>confdefs.h <<_ACEOF
36255 #define HAVE_STRCASECMP 1
36260 "strcasecmp.$ac_objext" | \
36261 *" strcasecmp.$ac_objext" | \
36262 "strcasecmp.$ac_objext "* | \
36263 *" strcasecmp.$ac_objext "* ) ;;
36264 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" ;;
36268 echo "$as_me:$LINENO: checking for strdup" >&5
36269 echo $ECHO_N "checking for strdup... $ECHO_C" >&6
36270 if test "${ac_cv_func_strdup+set}" = set; then
36271 echo $ECHO_N "(cached) $ECHO_C" >&6
36273 cat >conftest.$ac_ext <<_ACEOF
36276 cat confdefs.h >>conftest.$ac_ext
36277 cat >>conftest.$ac_ext <<_ACEOF
36278 /* end confdefs.h. */
36279 /* Define strdup to an innocuous variant, in case <limits.h> declares strdup.
36280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36281 #define strdup innocuous_strdup
36283 /* System header to define __stub macros and hopefully few prototypes,
36284 which can conflict with char strdup (); below.
36285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36286 <limits.h> exists even on freestanding compilers. */
36289 # include <limits.h>
36291 # include <assert.h>
36296 /* Override any gcc2 internal prototype to avoid an error. */
36301 /* We use char because int might match the return type of a gcc2
36302 builtin and then its argument prototype would still apply. */
36304 /* The GNU C library defines this for functions which it implements
36305 to always fail with ENOSYS. Some functions are actually named
36306 something starting with __ and the normal name is an alias. */
36307 #if defined (__stub_strdup) || defined (__stub___strdup)
36310 char (*f) () = strdup;
36319 return f != strdup;
36324 rm -f conftest.$ac_objext conftest$ac_exeext
36325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36326 (eval $ac_link) 2>conftest.er1
36328 grep -v '^ *+' conftest.er1 >conftest.err
36330 cat conftest.err >&5
36331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36332 (exit $ac_status); } &&
36333 { ac_try='test -z "$ac_c_werror_flag"
36334 || test ! -s conftest.err'
36335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36336 (eval $ac_try) 2>&5
36338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36339 (exit $ac_status); }; } &&
36340 { ac_try='test -s conftest$ac_exeext'
36341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36342 (eval $ac_try) 2>&5
36344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36345 (exit $ac_status); }; }; then
36346 ac_cv_func_strdup=yes
36348 echo "$as_me: failed program was:" >&5
36349 sed 's/^/| /' conftest.$ac_ext >&5
36351 ac_cv_func_strdup=no
36353 rm -f conftest.err conftest.$ac_objext \
36354 conftest$ac_exeext conftest.$ac_ext
36356 echo "$as_me:$LINENO: result: $ac_cv_func_strdup" >&5
36357 echo "${ECHO_T}$ac_cv_func_strdup" >&6
36358 if test $ac_cv_func_strdup = yes; then
36360 cat >>confdefs.h <<_ACEOF
36361 #define HAVE_STRDUP 1
36366 "strdup.$ac_objext" | \
36367 *" strdup.$ac_objext" | \
36368 "strdup.$ac_objext "* | \
36369 *" strdup.$ac_objext "* ) ;;
36370 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" ;;
36374 echo "$as_me:$LINENO: checking for strerror" >&5
36375 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
36376 if test "${ac_cv_func_strerror+set}" = set; then
36377 echo $ECHO_N "(cached) $ECHO_C" >&6
36379 cat >conftest.$ac_ext <<_ACEOF
36382 cat confdefs.h >>conftest.$ac_ext
36383 cat >>conftest.$ac_ext <<_ACEOF
36384 /* end confdefs.h. */
36385 /* Define strerror to an innocuous variant, in case <limits.h> declares strerror.
36386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36387 #define strerror innocuous_strerror
36389 /* System header to define __stub macros and hopefully few prototypes,
36390 which can conflict with char strerror (); below.
36391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36392 <limits.h> exists even on freestanding compilers. */
36395 # include <limits.h>
36397 # include <assert.h>
36402 /* Override any gcc2 internal prototype to avoid an error. */
36407 /* We use char because int might match the return type of a gcc2
36408 builtin and then its argument prototype would still apply. */
36410 /* The GNU C library defines this for functions which it implements
36411 to always fail with ENOSYS. Some functions are actually named
36412 something starting with __ and the normal name is an alias. */
36413 #if defined (__stub_strerror) || defined (__stub___strerror)
36416 char (*f) () = strerror;
36425 return f != strerror;
36430 rm -f conftest.$ac_objext conftest$ac_exeext
36431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36432 (eval $ac_link) 2>conftest.er1
36434 grep -v '^ *+' conftest.er1 >conftest.err
36436 cat conftest.err >&5
36437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36438 (exit $ac_status); } &&
36439 { ac_try='test -z "$ac_c_werror_flag"
36440 || test ! -s conftest.err'
36441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36442 (eval $ac_try) 2>&5
36444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36445 (exit $ac_status); }; } &&
36446 { ac_try='test -s conftest$ac_exeext'
36447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36448 (eval $ac_try) 2>&5
36450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36451 (exit $ac_status); }; }; then
36452 ac_cv_func_strerror=yes
36454 echo "$as_me: failed program was:" >&5
36455 sed 's/^/| /' conftest.$ac_ext >&5
36457 ac_cv_func_strerror=no
36459 rm -f conftest.err conftest.$ac_objext \
36460 conftest$ac_exeext conftest.$ac_ext
36462 echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
36463 echo "${ECHO_T}$ac_cv_func_strerror" >&6
36464 if test $ac_cv_func_strerror = yes; then
36466 cat >>confdefs.h <<_ACEOF
36467 #define HAVE_STRERROR 1
36472 "strerror.$ac_objext" | \
36473 *" strerror.$ac_objext" | \
36474 "strerror.$ac_objext "* | \
36475 *" strerror.$ac_objext "* ) ;;
36476 *) LIBOBJS="$LIBOBJS strerror.$ac_objext" ;;
36480 echo "$as_me:$LINENO: checking for strftime" >&5
36481 echo $ECHO_N "checking for strftime... $ECHO_C" >&6
36482 if test "${ac_cv_func_strftime+set}" = set; then
36483 echo $ECHO_N "(cached) $ECHO_C" >&6
36485 cat >conftest.$ac_ext <<_ACEOF
36488 cat confdefs.h >>conftest.$ac_ext
36489 cat >>conftest.$ac_ext <<_ACEOF
36490 /* end confdefs.h. */
36491 /* Define strftime to an innocuous variant, in case <limits.h> declares strftime.
36492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36493 #define strftime innocuous_strftime
36495 /* System header to define __stub macros and hopefully few prototypes,
36496 which can conflict with char strftime (); below.
36497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36498 <limits.h> exists even on freestanding compilers. */
36501 # include <limits.h>
36503 # include <assert.h>
36508 /* Override any gcc2 internal prototype to avoid an error. */
36513 /* We use char because int might match the return type of a gcc2
36514 builtin and then its argument prototype would still apply. */
36516 /* The GNU C library defines this for functions which it implements
36517 to always fail with ENOSYS. Some functions are actually named
36518 something starting with __ and the normal name is an alias. */
36519 #if defined (__stub_strftime) || defined (__stub___strftime)
36522 char (*f) () = strftime;
36531 return f != strftime;
36536 rm -f conftest.$ac_objext conftest$ac_exeext
36537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36538 (eval $ac_link) 2>conftest.er1
36540 grep -v '^ *+' conftest.er1 >conftest.err
36542 cat conftest.err >&5
36543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36544 (exit $ac_status); } &&
36545 { ac_try='test -z "$ac_c_werror_flag"
36546 || test ! -s conftest.err'
36547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36548 (eval $ac_try) 2>&5
36550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36551 (exit $ac_status); }; } &&
36552 { ac_try='test -s conftest$ac_exeext'
36553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36554 (eval $ac_try) 2>&5
36556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36557 (exit $ac_status); }; }; then
36558 ac_cv_func_strftime=yes
36560 echo "$as_me: failed program was:" >&5
36561 sed 's/^/| /' conftest.$ac_ext >&5
36563 ac_cv_func_strftime=no
36565 rm -f conftest.err conftest.$ac_objext \
36566 conftest$ac_exeext conftest.$ac_ext
36568 echo "$as_me:$LINENO: result: $ac_cv_func_strftime" >&5
36569 echo "${ECHO_T}$ac_cv_func_strftime" >&6
36570 if test $ac_cv_func_strftime = yes; then
36572 cat >>confdefs.h <<_ACEOF
36573 #define HAVE_STRFTIME 1
36578 "strftime.$ac_objext" | \
36579 *" strftime.$ac_objext" | \
36580 "strftime.$ac_objext "* | \
36581 *" strftime.$ac_objext "* ) ;;
36582 *) LIBOBJS="$LIBOBJS strftime.$ac_objext" ;;
36586 echo "$as_me:$LINENO: checking for strlcat" >&5
36587 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
36588 if test "${ac_cv_func_strlcat+set}" = set; then
36589 echo $ECHO_N "(cached) $ECHO_C" >&6
36591 cat >conftest.$ac_ext <<_ACEOF
36594 cat confdefs.h >>conftest.$ac_ext
36595 cat >>conftest.$ac_ext <<_ACEOF
36596 /* end confdefs.h. */
36597 /* Define strlcat to an innocuous variant, in case <limits.h> declares strlcat.
36598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36599 #define strlcat innocuous_strlcat
36601 /* System header to define __stub macros and hopefully few prototypes,
36602 which can conflict with char strlcat (); below.
36603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36604 <limits.h> exists even on freestanding compilers. */
36607 # include <limits.h>
36609 # include <assert.h>
36614 /* Override any gcc2 internal prototype to avoid an error. */
36619 /* We use char because int might match the return type of a gcc2
36620 builtin and then its argument prototype would still apply. */
36622 /* The GNU C library defines this for functions which it implements
36623 to always fail with ENOSYS. Some functions are actually named
36624 something starting with __ and the normal name is an alias. */
36625 #if defined (__stub_strlcat) || defined (__stub___strlcat)
36628 char (*f) () = strlcat;
36637 return f != strlcat;
36642 rm -f conftest.$ac_objext conftest$ac_exeext
36643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36644 (eval $ac_link) 2>conftest.er1
36646 grep -v '^ *+' conftest.er1 >conftest.err
36648 cat conftest.err >&5
36649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36650 (exit $ac_status); } &&
36651 { ac_try='test -z "$ac_c_werror_flag"
36652 || test ! -s conftest.err'
36653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36654 (eval $ac_try) 2>&5
36656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36657 (exit $ac_status); }; } &&
36658 { ac_try='test -s conftest$ac_exeext'
36659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36660 (eval $ac_try) 2>&5
36662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36663 (exit $ac_status); }; }; then
36664 ac_cv_func_strlcat=yes
36666 echo "$as_me: failed program was:" >&5
36667 sed 's/^/| /' conftest.$ac_ext >&5
36669 ac_cv_func_strlcat=no
36671 rm -f conftest.err conftest.$ac_objext \
36672 conftest$ac_exeext conftest.$ac_ext
36674 echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5
36675 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
36676 if test $ac_cv_func_strlcat = yes; then
36678 cat >>confdefs.h <<_ACEOF
36679 #define HAVE_STRLCAT 1
36684 "strlcat.$ac_objext" | \
36685 *" strlcat.$ac_objext" | \
36686 "strlcat.$ac_objext "* | \
36687 *" strlcat.$ac_objext "* ) ;;
36688 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" ;;
36692 echo "$as_me:$LINENO: checking for strlcpy" >&5
36693 echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
36694 if test "${ac_cv_func_strlcpy+set}" = set; then
36695 echo $ECHO_N "(cached) $ECHO_C" >&6
36697 cat >conftest.$ac_ext <<_ACEOF
36700 cat confdefs.h >>conftest.$ac_ext
36701 cat >>conftest.$ac_ext <<_ACEOF
36702 /* end confdefs.h. */
36703 /* Define strlcpy to an innocuous variant, in case <limits.h> declares strlcpy.
36704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36705 #define strlcpy innocuous_strlcpy
36707 /* System header to define __stub macros and hopefully few prototypes,
36708 which can conflict with char strlcpy (); below.
36709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36710 <limits.h> exists even on freestanding compilers. */
36713 # include <limits.h>
36715 # include <assert.h>
36720 /* Override any gcc2 internal prototype to avoid an error. */
36725 /* We use char because int might match the return type of a gcc2
36726 builtin and then its argument prototype would still apply. */
36728 /* The GNU C library defines this for functions which it implements
36729 to always fail with ENOSYS. Some functions are actually named
36730 something starting with __ and the normal name is an alias. */
36731 #if defined (__stub_strlcpy) || defined (__stub___strlcpy)
36734 char (*f) () = strlcpy;
36743 return f != strlcpy;
36748 rm -f conftest.$ac_objext conftest$ac_exeext
36749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36750 (eval $ac_link) 2>conftest.er1
36752 grep -v '^ *+' conftest.er1 >conftest.err
36754 cat conftest.err >&5
36755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36756 (exit $ac_status); } &&
36757 { ac_try='test -z "$ac_c_werror_flag"
36758 || test ! -s conftest.err'
36759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36760 (eval $ac_try) 2>&5
36762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36763 (exit $ac_status); }; } &&
36764 { ac_try='test -s conftest$ac_exeext'
36765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36766 (eval $ac_try) 2>&5
36768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36769 (exit $ac_status); }; }; then
36770 ac_cv_func_strlcpy=yes
36772 echo "$as_me: failed program was:" >&5
36773 sed 's/^/| /' conftest.$ac_ext >&5
36775 ac_cv_func_strlcpy=no
36777 rm -f conftest.err conftest.$ac_objext \
36778 conftest$ac_exeext conftest.$ac_ext
36780 echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
36781 echo "${ECHO_T}$ac_cv_func_strlcpy" >&6
36782 if test $ac_cv_func_strlcpy = yes; then
36784 cat >>confdefs.h <<_ACEOF
36785 #define HAVE_STRLCPY 1
36790 "strlcpy.$ac_objext" | \
36791 *" strlcpy.$ac_objext" | \
36792 "strlcpy.$ac_objext "* | \
36793 *" strlcpy.$ac_objext "* ) ;;
36794 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" ;;
36798 echo "$as_me:$LINENO: checking for strlwr" >&5
36799 echo $ECHO_N "checking for strlwr... $ECHO_C" >&6
36800 if test "${ac_cv_func_strlwr+set}" = set; then
36801 echo $ECHO_N "(cached) $ECHO_C" >&6
36803 cat >conftest.$ac_ext <<_ACEOF
36806 cat confdefs.h >>conftest.$ac_ext
36807 cat >>conftest.$ac_ext <<_ACEOF
36808 /* end confdefs.h. */
36809 /* Define strlwr to an innocuous variant, in case <limits.h> declares strlwr.
36810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36811 #define strlwr innocuous_strlwr
36813 /* System header to define __stub macros and hopefully few prototypes,
36814 which can conflict with char strlwr (); below.
36815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36816 <limits.h> exists even on freestanding compilers. */
36819 # include <limits.h>
36821 # include <assert.h>
36826 /* Override any gcc2 internal prototype to avoid an error. */
36831 /* We use char because int might match the return type of a gcc2
36832 builtin and then its argument prototype would still apply. */
36834 /* The GNU C library defines this for functions which it implements
36835 to always fail with ENOSYS. Some functions are actually named
36836 something starting with __ and the normal name is an alias. */
36837 #if defined (__stub_strlwr) || defined (__stub___strlwr)
36840 char (*f) () = strlwr;
36849 return f != strlwr;
36854 rm -f conftest.$ac_objext conftest$ac_exeext
36855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36856 (eval $ac_link) 2>conftest.er1
36858 grep -v '^ *+' conftest.er1 >conftest.err
36860 cat conftest.err >&5
36861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36862 (exit $ac_status); } &&
36863 { ac_try='test -z "$ac_c_werror_flag"
36864 || test ! -s conftest.err'
36865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36866 (eval $ac_try) 2>&5
36868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36869 (exit $ac_status); }; } &&
36870 { ac_try='test -s conftest$ac_exeext'
36871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36872 (eval $ac_try) 2>&5
36874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36875 (exit $ac_status); }; }; then
36876 ac_cv_func_strlwr=yes
36878 echo "$as_me: failed program was:" >&5
36879 sed 's/^/| /' conftest.$ac_ext >&5
36881 ac_cv_func_strlwr=no
36883 rm -f conftest.err conftest.$ac_objext \
36884 conftest$ac_exeext conftest.$ac_ext
36886 echo "$as_me:$LINENO: result: $ac_cv_func_strlwr" >&5
36887 echo "${ECHO_T}$ac_cv_func_strlwr" >&6
36888 if test $ac_cv_func_strlwr = yes; then
36890 cat >>confdefs.h <<_ACEOF
36891 #define HAVE_STRLWR 1
36896 "strlwr.$ac_objext" | \
36897 *" strlwr.$ac_objext" | \
36898 "strlwr.$ac_objext "* | \
36899 *" strlwr.$ac_objext "* ) ;;
36900 *) LIBOBJS="$LIBOBJS strlwr.$ac_objext" ;;
36904 echo "$as_me:$LINENO: checking for strncasecmp" >&5
36905 echo $ECHO_N "checking for strncasecmp... $ECHO_C" >&6
36906 if test "${ac_cv_func_strncasecmp+set}" = set; then
36907 echo $ECHO_N "(cached) $ECHO_C" >&6
36909 cat >conftest.$ac_ext <<_ACEOF
36912 cat confdefs.h >>conftest.$ac_ext
36913 cat >>conftest.$ac_ext <<_ACEOF
36914 /* end confdefs.h. */
36915 /* Define strncasecmp to an innocuous variant, in case <limits.h> declares strncasecmp.
36916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36917 #define strncasecmp innocuous_strncasecmp
36919 /* System header to define __stub macros and hopefully few prototypes,
36920 which can conflict with char strncasecmp (); below.
36921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36922 <limits.h> exists even on freestanding compilers. */
36925 # include <limits.h>
36927 # include <assert.h>
36932 /* Override any gcc2 internal prototype to avoid an error. */
36937 /* We use char because int might match the return type of a gcc2
36938 builtin and then its argument prototype would still apply. */
36939 char strncasecmp ();
36940 /* The GNU C library defines this for functions which it implements
36941 to always fail with ENOSYS. Some functions are actually named
36942 something starting with __ and the normal name is an alias. */
36943 #if defined (__stub_strncasecmp) || defined (__stub___strncasecmp)
36946 char (*f) () = strncasecmp;
36955 return f != strncasecmp;
36960 rm -f conftest.$ac_objext conftest$ac_exeext
36961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36962 (eval $ac_link) 2>conftest.er1
36964 grep -v '^ *+' conftest.er1 >conftest.err
36966 cat conftest.err >&5
36967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36968 (exit $ac_status); } &&
36969 { ac_try='test -z "$ac_c_werror_flag"
36970 || test ! -s conftest.err'
36971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36972 (eval $ac_try) 2>&5
36974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36975 (exit $ac_status); }; } &&
36976 { ac_try='test -s conftest$ac_exeext'
36977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36978 (eval $ac_try) 2>&5
36980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36981 (exit $ac_status); }; }; then
36982 ac_cv_func_strncasecmp=yes
36984 echo "$as_me: failed program was:" >&5
36985 sed 's/^/| /' conftest.$ac_ext >&5
36987 ac_cv_func_strncasecmp=no
36989 rm -f conftest.err conftest.$ac_objext \
36990 conftest$ac_exeext conftest.$ac_ext
36992 echo "$as_me:$LINENO: result: $ac_cv_func_strncasecmp" >&5
36993 echo "${ECHO_T}$ac_cv_func_strncasecmp" >&6
36994 if test $ac_cv_func_strncasecmp = yes; then
36996 cat >>confdefs.h <<_ACEOF
36997 #define HAVE_STRNCASECMP 1
37002 "strncasecmp.$ac_objext" | \
37003 *" strncasecmp.$ac_objext" | \
37004 "strncasecmp.$ac_objext "* | \
37005 *" strncasecmp.$ac_objext "* ) ;;
37006 *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" ;;
37010 echo "$as_me:$LINENO: checking for strndup" >&5
37011 echo $ECHO_N "checking for strndup... $ECHO_C" >&6
37012 if test "${ac_cv_func_strndup+set}" = set; then
37013 echo $ECHO_N "(cached) $ECHO_C" >&6
37015 cat >conftest.$ac_ext <<_ACEOF
37018 cat confdefs.h >>conftest.$ac_ext
37019 cat >>conftest.$ac_ext <<_ACEOF
37020 /* end confdefs.h. */
37021 /* Define strndup to an innocuous variant, in case <limits.h> declares strndup.
37022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37023 #define strndup innocuous_strndup
37025 /* System header to define __stub macros and hopefully few prototypes,
37026 which can conflict with char strndup (); below.
37027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37028 <limits.h> exists even on freestanding compilers. */
37031 # include <limits.h>
37033 # include <assert.h>
37038 /* Override any gcc2 internal prototype to avoid an error. */
37043 /* We use char because int might match the return type of a gcc2
37044 builtin and then its argument prototype would still apply. */
37046 /* The GNU C library defines this for functions which it implements
37047 to always fail with ENOSYS. Some functions are actually named
37048 something starting with __ and the normal name is an alias. */
37049 #if defined (__stub_strndup) || defined (__stub___strndup)
37052 char (*f) () = strndup;
37061 return f != strndup;
37066 rm -f conftest.$ac_objext conftest$ac_exeext
37067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37068 (eval $ac_link) 2>conftest.er1
37070 grep -v '^ *+' conftest.er1 >conftest.err
37072 cat conftest.err >&5
37073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37074 (exit $ac_status); } &&
37075 { ac_try='test -z "$ac_c_werror_flag"
37076 || test ! -s conftest.err'
37077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37078 (eval $ac_try) 2>&5
37080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37081 (exit $ac_status); }; } &&
37082 { ac_try='test -s conftest$ac_exeext'
37083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37084 (eval $ac_try) 2>&5
37086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37087 (exit $ac_status); }; }; then
37088 ac_cv_func_strndup=yes
37090 echo "$as_me: failed program was:" >&5
37091 sed 's/^/| /' conftest.$ac_ext >&5
37093 ac_cv_func_strndup=no
37095 rm -f conftest.err conftest.$ac_objext \
37096 conftest$ac_exeext conftest.$ac_ext
37098 echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
37099 echo "${ECHO_T}$ac_cv_func_strndup" >&6
37100 if test $ac_cv_func_strndup = yes; then
37102 cat >>confdefs.h <<_ACEOF
37103 #define HAVE_STRNDUP 1
37108 "strndup.$ac_objext" | \
37109 *" strndup.$ac_objext" | \
37110 "strndup.$ac_objext "* | \
37111 *" strndup.$ac_objext "* ) ;;
37112 *) LIBOBJS="$LIBOBJS strndup.$ac_objext" ;;
37116 echo "$as_me:$LINENO: checking for strnlen" >&5
37117 echo $ECHO_N "checking for strnlen... $ECHO_C" >&6
37118 if test "${ac_cv_func_strnlen+set}" = set; then
37119 echo $ECHO_N "(cached) $ECHO_C" >&6
37121 cat >conftest.$ac_ext <<_ACEOF
37124 cat confdefs.h >>conftest.$ac_ext
37125 cat >>conftest.$ac_ext <<_ACEOF
37126 /* end confdefs.h. */
37127 /* Define strnlen to an innocuous variant, in case <limits.h> declares strnlen.
37128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37129 #define strnlen innocuous_strnlen
37131 /* System header to define __stub macros and hopefully few prototypes,
37132 which can conflict with char strnlen (); below.
37133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37134 <limits.h> exists even on freestanding compilers. */
37137 # include <limits.h>
37139 # include <assert.h>
37144 /* Override any gcc2 internal prototype to avoid an error. */
37149 /* We use char because int might match the return type of a gcc2
37150 builtin and then its argument prototype would still apply. */
37152 /* The GNU C library defines this for functions which it implements
37153 to always fail with ENOSYS. Some functions are actually named
37154 something starting with __ and the normal name is an alias. */
37155 #if defined (__stub_strnlen) || defined (__stub___strnlen)
37158 char (*f) () = strnlen;
37167 return f != strnlen;
37172 rm -f conftest.$ac_objext conftest$ac_exeext
37173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37174 (eval $ac_link) 2>conftest.er1
37176 grep -v '^ *+' conftest.er1 >conftest.err
37178 cat conftest.err >&5
37179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37180 (exit $ac_status); } &&
37181 { ac_try='test -z "$ac_c_werror_flag"
37182 || test ! -s conftest.err'
37183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37184 (eval $ac_try) 2>&5
37186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37187 (exit $ac_status); }; } &&
37188 { ac_try='test -s conftest$ac_exeext'
37189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37190 (eval $ac_try) 2>&5
37192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37193 (exit $ac_status); }; }; then
37194 ac_cv_func_strnlen=yes
37196 echo "$as_me: failed program was:" >&5
37197 sed 's/^/| /' conftest.$ac_ext >&5
37199 ac_cv_func_strnlen=no
37201 rm -f conftest.err conftest.$ac_objext \
37202 conftest$ac_exeext conftest.$ac_ext
37204 echo "$as_me:$LINENO: result: $ac_cv_func_strnlen" >&5
37205 echo "${ECHO_T}$ac_cv_func_strnlen" >&6
37206 if test $ac_cv_func_strnlen = yes; then
37208 cat >>confdefs.h <<_ACEOF
37209 #define HAVE_STRNLEN 1
37214 "strnlen.$ac_objext" | \
37215 *" strnlen.$ac_objext" | \
37216 "strnlen.$ac_objext "* | \
37217 *" strnlen.$ac_objext "* ) ;;
37218 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" ;;
37222 echo "$as_me:$LINENO: checking for strptime" >&5
37223 echo $ECHO_N "checking for strptime... $ECHO_C" >&6
37224 if test "${ac_cv_func_strptime+set}" = set; then
37225 echo $ECHO_N "(cached) $ECHO_C" >&6
37227 cat >conftest.$ac_ext <<_ACEOF
37230 cat confdefs.h >>conftest.$ac_ext
37231 cat >>conftest.$ac_ext <<_ACEOF
37232 /* end confdefs.h. */
37233 /* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
37234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37235 #define strptime innocuous_strptime
37237 /* System header to define __stub macros and hopefully few prototypes,
37238 which can conflict with char strptime (); below.
37239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37240 <limits.h> exists even on freestanding compilers. */
37243 # include <limits.h>
37245 # include <assert.h>
37250 /* Override any gcc2 internal prototype to avoid an error. */
37255 /* We use char because int might match the return type of a gcc2
37256 builtin and then its argument prototype would still apply. */
37258 /* The GNU C library defines this for functions which it implements
37259 to always fail with ENOSYS. Some functions are actually named
37260 something starting with __ and the normal name is an alias. */
37261 #if defined (__stub_strptime) || defined (__stub___strptime)
37264 char (*f) () = strptime;
37273 return f != strptime;
37278 rm -f conftest.$ac_objext conftest$ac_exeext
37279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37280 (eval $ac_link) 2>conftest.er1
37282 grep -v '^ *+' conftest.er1 >conftest.err
37284 cat conftest.err >&5
37285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37286 (exit $ac_status); } &&
37287 { ac_try='test -z "$ac_c_werror_flag"
37288 || test ! -s conftest.err'
37289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37290 (eval $ac_try) 2>&5
37292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37293 (exit $ac_status); }; } &&
37294 { ac_try='test -s conftest$ac_exeext'
37295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37296 (eval $ac_try) 2>&5
37298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37299 (exit $ac_status); }; }; then
37300 ac_cv_func_strptime=yes
37302 echo "$as_me: failed program was:" >&5
37303 sed 's/^/| /' conftest.$ac_ext >&5
37305 ac_cv_func_strptime=no
37307 rm -f conftest.err conftest.$ac_objext \
37308 conftest$ac_exeext conftest.$ac_ext
37310 echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
37311 echo "${ECHO_T}$ac_cv_func_strptime" >&6
37312 if test $ac_cv_func_strptime = yes; then
37314 cat >>confdefs.h <<_ACEOF
37315 #define HAVE_STRPTIME 1
37320 "strptime.$ac_objext" | \
37321 *" strptime.$ac_objext" | \
37322 "strptime.$ac_objext "* | \
37323 *" strptime.$ac_objext "* ) ;;
37324 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" ;;
37328 echo "$as_me:$LINENO: checking for strsep" >&5
37329 echo $ECHO_N "checking for strsep... $ECHO_C" >&6
37330 if test "${ac_cv_func_strsep+set}" = set; then
37331 echo $ECHO_N "(cached) $ECHO_C" >&6
37333 cat >conftest.$ac_ext <<_ACEOF
37336 cat confdefs.h >>conftest.$ac_ext
37337 cat >>conftest.$ac_ext <<_ACEOF
37338 /* end confdefs.h. */
37339 /* Define strsep to an innocuous variant, in case <limits.h> declares strsep.
37340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37341 #define strsep innocuous_strsep
37343 /* System header to define __stub macros and hopefully few prototypes,
37344 which can conflict with char strsep (); below.
37345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37346 <limits.h> exists even on freestanding compilers. */
37349 # include <limits.h>
37351 # include <assert.h>
37356 /* Override any gcc2 internal prototype to avoid an error. */
37361 /* We use char because int might match the return type of a gcc2
37362 builtin and then its argument prototype would still apply. */
37364 /* The GNU C library defines this for functions which it implements
37365 to always fail with ENOSYS. Some functions are actually named
37366 something starting with __ and the normal name is an alias. */
37367 #if defined (__stub_strsep) || defined (__stub___strsep)
37370 char (*f) () = strsep;
37379 return f != strsep;
37384 rm -f conftest.$ac_objext conftest$ac_exeext
37385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37386 (eval $ac_link) 2>conftest.er1
37388 grep -v '^ *+' conftest.er1 >conftest.err
37390 cat conftest.err >&5
37391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37392 (exit $ac_status); } &&
37393 { ac_try='test -z "$ac_c_werror_flag"
37394 || test ! -s conftest.err'
37395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37396 (eval $ac_try) 2>&5
37398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37399 (exit $ac_status); }; } &&
37400 { ac_try='test -s conftest$ac_exeext'
37401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37402 (eval $ac_try) 2>&5
37404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37405 (exit $ac_status); }; }; then
37406 ac_cv_func_strsep=yes
37408 echo "$as_me: failed program was:" >&5
37409 sed 's/^/| /' conftest.$ac_ext >&5
37411 ac_cv_func_strsep=no
37413 rm -f conftest.err conftest.$ac_objext \
37414 conftest$ac_exeext conftest.$ac_ext
37416 echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
37417 echo "${ECHO_T}$ac_cv_func_strsep" >&6
37418 if test $ac_cv_func_strsep = yes; then
37420 cat >>confdefs.h <<_ACEOF
37421 #define HAVE_STRSEP 1
37426 "strsep.$ac_objext" | \
37427 *" strsep.$ac_objext" | \
37428 "strsep.$ac_objext "* | \
37429 *" strsep.$ac_objext "* ) ;;
37430 *) LIBOBJS="$LIBOBJS strsep.$ac_objext" ;;
37434 echo "$as_me:$LINENO: checking for strsep_copy" >&5
37435 echo $ECHO_N "checking for strsep_copy... $ECHO_C" >&6
37436 if test "${ac_cv_func_strsep_copy+set}" = set; then
37437 echo $ECHO_N "(cached) $ECHO_C" >&6
37439 cat >conftest.$ac_ext <<_ACEOF
37442 cat confdefs.h >>conftest.$ac_ext
37443 cat >>conftest.$ac_ext <<_ACEOF
37444 /* end confdefs.h. */
37445 /* Define strsep_copy to an innocuous variant, in case <limits.h> declares strsep_copy.
37446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37447 #define strsep_copy innocuous_strsep_copy
37449 /* System header to define __stub macros and hopefully few prototypes,
37450 which can conflict with char strsep_copy (); below.
37451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37452 <limits.h> exists even on freestanding compilers. */
37455 # include <limits.h>
37457 # include <assert.h>
37462 /* Override any gcc2 internal prototype to avoid an error. */
37467 /* We use char because int might match the return type of a gcc2
37468 builtin and then its argument prototype would still apply. */
37469 char strsep_copy ();
37470 /* The GNU C library defines this for functions which it implements
37471 to always fail with ENOSYS. Some functions are actually named
37472 something starting with __ and the normal name is an alias. */
37473 #if defined (__stub_strsep_copy) || defined (__stub___strsep_copy)
37476 char (*f) () = strsep_copy;
37485 return f != strsep_copy;
37490 rm -f conftest.$ac_objext conftest$ac_exeext
37491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37492 (eval $ac_link) 2>conftest.er1
37494 grep -v '^ *+' conftest.er1 >conftest.err
37496 cat conftest.err >&5
37497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37498 (exit $ac_status); } &&
37499 { ac_try='test -z "$ac_c_werror_flag"
37500 || test ! -s conftest.err'
37501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37502 (eval $ac_try) 2>&5
37504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37505 (exit $ac_status); }; } &&
37506 { ac_try='test -s conftest$ac_exeext'
37507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37508 (eval $ac_try) 2>&5
37510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37511 (exit $ac_status); }; }; then
37512 ac_cv_func_strsep_copy=yes
37514 echo "$as_me: failed program was:" >&5
37515 sed 's/^/| /' conftest.$ac_ext >&5
37517 ac_cv_func_strsep_copy=no
37519 rm -f conftest.err conftest.$ac_objext \
37520 conftest$ac_exeext conftest.$ac_ext
37522 echo "$as_me:$LINENO: result: $ac_cv_func_strsep_copy" >&5
37523 echo "${ECHO_T}$ac_cv_func_strsep_copy" >&6
37524 if test $ac_cv_func_strsep_copy = yes; then
37526 cat >>confdefs.h <<_ACEOF
37527 #define HAVE_STRSEP_COPY 1
37532 "strsep_copy.$ac_objext" | \
37533 *" strsep_copy.$ac_objext" | \
37534 "strsep_copy.$ac_objext "* | \
37535 *" strsep_copy.$ac_objext "* ) ;;
37536 *) LIBOBJS="$LIBOBJS strsep_copy.$ac_objext" ;;
37540 echo "$as_me:$LINENO: checking for strtok_r" >&5
37541 echo $ECHO_N "checking for strtok_r... $ECHO_C" >&6
37542 if test "${ac_cv_func_strtok_r+set}" = set; then
37543 echo $ECHO_N "(cached) $ECHO_C" >&6
37545 cat >conftest.$ac_ext <<_ACEOF
37548 cat confdefs.h >>conftest.$ac_ext
37549 cat >>conftest.$ac_ext <<_ACEOF
37550 /* end confdefs.h. */
37551 /* Define strtok_r to an innocuous variant, in case <limits.h> declares strtok_r.
37552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37553 #define strtok_r innocuous_strtok_r
37555 /* System header to define __stub macros and hopefully few prototypes,
37556 which can conflict with char strtok_r (); below.
37557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37558 <limits.h> exists even on freestanding compilers. */
37561 # include <limits.h>
37563 # include <assert.h>
37568 /* Override any gcc2 internal prototype to avoid an error. */
37573 /* We use char because int might match the return type of a gcc2
37574 builtin and then its argument prototype would still apply. */
37576 /* The GNU C library defines this for functions which it implements
37577 to always fail with ENOSYS. Some functions are actually named
37578 something starting with __ and the normal name is an alias. */
37579 #if defined (__stub_strtok_r) || defined (__stub___strtok_r)
37582 char (*f) () = strtok_r;
37591 return f != strtok_r;
37596 rm -f conftest.$ac_objext conftest$ac_exeext
37597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37598 (eval $ac_link) 2>conftest.er1
37600 grep -v '^ *+' conftest.er1 >conftest.err
37602 cat conftest.err >&5
37603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37604 (exit $ac_status); } &&
37605 { ac_try='test -z "$ac_c_werror_flag"
37606 || test ! -s conftest.err'
37607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37608 (eval $ac_try) 2>&5
37610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37611 (exit $ac_status); }; } &&
37612 { ac_try='test -s conftest$ac_exeext'
37613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37614 (eval $ac_try) 2>&5
37616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37617 (exit $ac_status); }; }; then
37618 ac_cv_func_strtok_r=yes
37620 echo "$as_me: failed program was:" >&5
37621 sed 's/^/| /' conftest.$ac_ext >&5
37623 ac_cv_func_strtok_r=no
37625 rm -f conftest.err conftest.$ac_objext \
37626 conftest$ac_exeext conftest.$ac_ext
37628 echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r" >&5
37629 echo "${ECHO_T}$ac_cv_func_strtok_r" >&6
37630 if test $ac_cv_func_strtok_r = yes; then
37632 cat >>confdefs.h <<_ACEOF
37633 #define HAVE_STRTOK_R 1
37638 "strtok_r.$ac_objext" | \
37639 *" strtok_r.$ac_objext" | \
37640 "strtok_r.$ac_objext "* | \
37641 *" strtok_r.$ac_objext "* ) ;;
37642 *) LIBOBJS="$LIBOBJS strtok_r.$ac_objext" ;;
37646 echo "$as_me:$LINENO: checking for strupr" >&5
37647 echo $ECHO_N "checking for strupr... $ECHO_C" >&6
37648 if test "${ac_cv_func_strupr+set}" = set; then
37649 echo $ECHO_N "(cached) $ECHO_C" >&6
37651 cat >conftest.$ac_ext <<_ACEOF
37654 cat confdefs.h >>conftest.$ac_ext
37655 cat >>conftest.$ac_ext <<_ACEOF
37656 /* end confdefs.h. */
37657 /* Define strupr to an innocuous variant, in case <limits.h> declares strupr.
37658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37659 #define strupr innocuous_strupr
37661 /* System header to define __stub macros and hopefully few prototypes,
37662 which can conflict with char strupr (); below.
37663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37664 <limits.h> exists even on freestanding compilers. */
37667 # include <limits.h>
37669 # include <assert.h>
37674 /* Override any gcc2 internal prototype to avoid an error. */
37679 /* We use char because int might match the return type of a gcc2
37680 builtin and then its argument prototype would still apply. */
37682 /* The GNU C library defines this for functions which it implements
37683 to always fail with ENOSYS. Some functions are actually named
37684 something starting with __ and the normal name is an alias. */
37685 #if defined (__stub_strupr) || defined (__stub___strupr)
37688 char (*f) () = strupr;
37697 return f != strupr;
37702 rm -f conftest.$ac_objext conftest$ac_exeext
37703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37704 (eval $ac_link) 2>conftest.er1
37706 grep -v '^ *+' conftest.er1 >conftest.err
37708 cat conftest.err >&5
37709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37710 (exit $ac_status); } &&
37711 { ac_try='test -z "$ac_c_werror_flag"
37712 || test ! -s conftest.err'
37713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37714 (eval $ac_try) 2>&5
37716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37717 (exit $ac_status); }; } &&
37718 { ac_try='test -s conftest$ac_exeext'
37719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37720 (eval $ac_try) 2>&5
37722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37723 (exit $ac_status); }; }; then
37724 ac_cv_func_strupr=yes
37726 echo "$as_me: failed program was:" >&5
37727 sed 's/^/| /' conftest.$ac_ext >&5
37729 ac_cv_func_strupr=no
37731 rm -f conftest.err conftest.$ac_objext \
37732 conftest$ac_exeext conftest.$ac_ext
37734 echo "$as_me:$LINENO: result: $ac_cv_func_strupr" >&5
37735 echo "${ECHO_T}$ac_cv_func_strupr" >&6
37736 if test $ac_cv_func_strupr = yes; then
37738 cat >>confdefs.h <<_ACEOF
37739 #define HAVE_STRUPR 1
37744 "strupr.$ac_objext" | \
37745 *" strupr.$ac_objext" | \
37746 "strupr.$ac_objext "* | \
37747 *" strupr.$ac_objext "* ) ;;
37748 *) LIBOBJS="$LIBOBJS strupr.$ac_objext" ;;
37752 echo "$as_me:$LINENO: checking for swab" >&5
37753 echo $ECHO_N "checking for swab... $ECHO_C" >&6
37754 if test "${ac_cv_func_swab+set}" = set; then
37755 echo $ECHO_N "(cached) $ECHO_C" >&6
37757 cat >conftest.$ac_ext <<_ACEOF
37760 cat confdefs.h >>conftest.$ac_ext
37761 cat >>conftest.$ac_ext <<_ACEOF
37762 /* end confdefs.h. */
37763 /* Define swab to an innocuous variant, in case <limits.h> declares swab.
37764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37765 #define swab innocuous_swab
37767 /* System header to define __stub macros and hopefully few prototypes,
37768 which can conflict with char swab (); below.
37769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37770 <limits.h> exists even on freestanding compilers. */
37773 # include <limits.h>
37775 # include <assert.h>
37780 /* Override any gcc2 internal prototype to avoid an error. */
37785 /* We use char because int might match the return type of a gcc2
37786 builtin and then its argument prototype would still apply. */
37788 /* The GNU C library defines this for functions which it implements
37789 to always fail with ENOSYS. Some functions are actually named
37790 something starting with __ and the normal name is an alias. */
37791 #if defined (__stub_swab) || defined (__stub___swab)
37794 char (*f) () = swab;
37808 rm -f conftest.$ac_objext conftest$ac_exeext
37809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37810 (eval $ac_link) 2>conftest.er1
37812 grep -v '^ *+' conftest.er1 >conftest.err
37814 cat conftest.err >&5
37815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37816 (exit $ac_status); } &&
37817 { ac_try='test -z "$ac_c_werror_flag"
37818 || test ! -s conftest.err'
37819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37820 (eval $ac_try) 2>&5
37822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37823 (exit $ac_status); }; } &&
37824 { ac_try='test -s conftest$ac_exeext'
37825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37826 (eval $ac_try) 2>&5
37828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37829 (exit $ac_status); }; }; then
37830 ac_cv_func_swab=yes
37832 echo "$as_me: failed program was:" >&5
37833 sed 's/^/| /' conftest.$ac_ext >&5
37837 rm -f conftest.err conftest.$ac_objext \
37838 conftest$ac_exeext conftest.$ac_ext
37840 echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5
37841 echo "${ECHO_T}$ac_cv_func_swab" >&6
37842 if test $ac_cv_func_swab = yes; then
37844 cat >>confdefs.h <<_ACEOF
37845 #define HAVE_SWAB 1
37850 "swab.$ac_objext" | \
37851 *" swab.$ac_objext" | \
37852 "swab.$ac_objext "* | \
37853 *" swab.$ac_objext "* ) ;;
37854 *) LIBOBJS="$LIBOBJS swab.$ac_objext" ;;
37858 echo "$as_me:$LINENO: checking for unsetenv" >&5
37859 echo $ECHO_N "checking for unsetenv... $ECHO_C" >&6
37860 if test "${ac_cv_func_unsetenv+set}" = set; then
37861 echo $ECHO_N "(cached) $ECHO_C" >&6
37863 cat >conftest.$ac_ext <<_ACEOF
37866 cat confdefs.h >>conftest.$ac_ext
37867 cat >>conftest.$ac_ext <<_ACEOF
37868 /* end confdefs.h. */
37869 /* Define unsetenv to an innocuous variant, in case <limits.h> declares unsetenv.
37870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37871 #define unsetenv innocuous_unsetenv
37873 /* System header to define __stub macros and hopefully few prototypes,
37874 which can conflict with char unsetenv (); below.
37875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37876 <limits.h> exists even on freestanding compilers. */
37879 # include <limits.h>
37881 # include <assert.h>
37886 /* Override any gcc2 internal prototype to avoid an error. */
37891 /* We use char because int might match the return type of a gcc2
37892 builtin and then its argument prototype would still apply. */
37894 /* The GNU C library defines this for functions which it implements
37895 to always fail with ENOSYS. Some functions are actually named
37896 something starting with __ and the normal name is an alias. */
37897 #if defined (__stub_unsetenv) || defined (__stub___unsetenv)
37900 char (*f) () = unsetenv;
37909 return f != unsetenv;
37914 rm -f conftest.$ac_objext conftest$ac_exeext
37915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37916 (eval $ac_link) 2>conftest.er1
37918 grep -v '^ *+' conftest.er1 >conftest.err
37920 cat conftest.err >&5
37921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37922 (exit $ac_status); } &&
37923 { ac_try='test -z "$ac_c_werror_flag"
37924 || test ! -s conftest.err'
37925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37926 (eval $ac_try) 2>&5
37928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37929 (exit $ac_status); }; } &&
37930 { ac_try='test -s conftest$ac_exeext'
37931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37932 (eval $ac_try) 2>&5
37934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37935 (exit $ac_status); }; }; then
37936 ac_cv_func_unsetenv=yes
37938 echo "$as_me: failed program was:" >&5
37939 sed 's/^/| /' conftest.$ac_ext >&5
37941 ac_cv_func_unsetenv=no
37943 rm -f conftest.err conftest.$ac_objext \
37944 conftest$ac_exeext conftest.$ac_ext
37946 echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv" >&5
37947 echo "${ECHO_T}$ac_cv_func_unsetenv" >&6
37948 if test $ac_cv_func_unsetenv = yes; then
37950 cat >>confdefs.h <<_ACEOF
37951 #define HAVE_UNSETENV 1
37956 "unsetenv.$ac_objext" | \
37957 *" unsetenv.$ac_objext" | \
37958 "unsetenv.$ac_objext "* | \
37959 *" unsetenv.$ac_objext "* ) ;;
37960 *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext" ;;
37964 echo "$as_me:$LINENO: checking for verr" >&5
37965 echo $ECHO_N "checking for verr... $ECHO_C" >&6
37966 if test "${ac_cv_func_verr+set}" = set; then
37967 echo $ECHO_N "(cached) $ECHO_C" >&6
37969 cat >conftest.$ac_ext <<_ACEOF
37972 cat confdefs.h >>conftest.$ac_ext
37973 cat >>conftest.$ac_ext <<_ACEOF
37974 /* end confdefs.h. */
37975 /* Define verr to an innocuous variant, in case <limits.h> declares verr.
37976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37977 #define verr innocuous_verr
37979 /* System header to define __stub macros and hopefully few prototypes,
37980 which can conflict with char verr (); below.
37981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37982 <limits.h> exists even on freestanding compilers. */
37985 # include <limits.h>
37987 # include <assert.h>
37992 /* Override any gcc2 internal prototype to avoid an error. */
37997 /* We use char because int might match the return type of a gcc2
37998 builtin and then its argument prototype would still apply. */
38000 /* The GNU C library defines this for functions which it implements
38001 to always fail with ENOSYS. Some functions are actually named
38002 something starting with __ and the normal name is an alias. */
38003 #if defined (__stub_verr) || defined (__stub___verr)
38006 char (*f) () = verr;
38020 rm -f conftest.$ac_objext conftest$ac_exeext
38021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38022 (eval $ac_link) 2>conftest.er1
38024 grep -v '^ *+' conftest.er1 >conftest.err
38026 cat conftest.err >&5
38027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38028 (exit $ac_status); } &&
38029 { ac_try='test -z "$ac_c_werror_flag"
38030 || test ! -s conftest.err'
38031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38032 (eval $ac_try) 2>&5
38034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38035 (exit $ac_status); }; } &&
38036 { ac_try='test -s conftest$ac_exeext'
38037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38038 (eval $ac_try) 2>&5
38040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38041 (exit $ac_status); }; }; then
38042 ac_cv_func_verr=yes
38044 echo "$as_me: failed program was:" >&5
38045 sed 's/^/| /' conftest.$ac_ext >&5
38049 rm -f conftest.err conftest.$ac_objext \
38050 conftest$ac_exeext conftest.$ac_ext
38052 echo "$as_me:$LINENO: result: $ac_cv_func_verr" >&5
38053 echo "${ECHO_T}$ac_cv_func_verr" >&6
38054 if test $ac_cv_func_verr = yes; then
38056 cat >>confdefs.h <<_ACEOF
38057 #define HAVE_VERR 1
38062 "verr.$ac_objext" | \
38063 *" verr.$ac_objext" | \
38064 "verr.$ac_objext "* | \
38065 *" verr.$ac_objext "* ) ;;
38066 *) LIBOBJS="$LIBOBJS verr.$ac_objext" ;;
38070 echo "$as_me:$LINENO: checking for verrx" >&5
38071 echo $ECHO_N "checking for verrx... $ECHO_C" >&6
38072 if test "${ac_cv_func_verrx+set}" = set; then
38073 echo $ECHO_N "(cached) $ECHO_C" >&6
38075 cat >conftest.$ac_ext <<_ACEOF
38078 cat confdefs.h >>conftest.$ac_ext
38079 cat >>conftest.$ac_ext <<_ACEOF
38080 /* end confdefs.h. */
38081 /* Define verrx to an innocuous variant, in case <limits.h> declares verrx.
38082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38083 #define verrx innocuous_verrx
38085 /* System header to define __stub macros and hopefully few prototypes,
38086 which can conflict with char verrx (); below.
38087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38088 <limits.h> exists even on freestanding compilers. */
38091 # include <limits.h>
38093 # include <assert.h>
38098 /* Override any gcc2 internal prototype to avoid an error. */
38103 /* We use char because int might match the return type of a gcc2
38104 builtin and then its argument prototype would still apply. */
38106 /* The GNU C library defines this for functions which it implements
38107 to always fail with ENOSYS. Some functions are actually named
38108 something starting with __ and the normal name is an alias. */
38109 #if defined (__stub_verrx) || defined (__stub___verrx)
38112 char (*f) () = verrx;
38126 rm -f conftest.$ac_objext conftest$ac_exeext
38127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38128 (eval $ac_link) 2>conftest.er1
38130 grep -v '^ *+' conftest.er1 >conftest.err
38132 cat conftest.err >&5
38133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38134 (exit $ac_status); } &&
38135 { ac_try='test -z "$ac_c_werror_flag"
38136 || test ! -s conftest.err'
38137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38138 (eval $ac_try) 2>&5
38140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38141 (exit $ac_status); }; } &&
38142 { ac_try='test -s conftest$ac_exeext'
38143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38144 (eval $ac_try) 2>&5
38146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38147 (exit $ac_status); }; }; then
38148 ac_cv_func_verrx=yes
38150 echo "$as_me: failed program was:" >&5
38151 sed 's/^/| /' conftest.$ac_ext >&5
38153 ac_cv_func_verrx=no
38155 rm -f conftest.err conftest.$ac_objext \
38156 conftest$ac_exeext conftest.$ac_ext
38158 echo "$as_me:$LINENO: result: $ac_cv_func_verrx" >&5
38159 echo "${ECHO_T}$ac_cv_func_verrx" >&6
38160 if test $ac_cv_func_verrx = yes; then
38162 cat >>confdefs.h <<_ACEOF
38163 #define HAVE_VERRX 1
38168 "verrx.$ac_objext" | \
38169 *" verrx.$ac_objext" | \
38170 "verrx.$ac_objext "* | \
38171 *" verrx.$ac_objext "* ) ;;
38172 *) LIBOBJS="$LIBOBJS verrx.$ac_objext" ;;
38176 echo "$as_me:$LINENO: checking for vsyslog" >&5
38177 echo $ECHO_N "checking for vsyslog... $ECHO_C" >&6
38178 if test "${ac_cv_func_vsyslog+set}" = set; then
38179 echo $ECHO_N "(cached) $ECHO_C" >&6
38181 cat >conftest.$ac_ext <<_ACEOF
38184 cat confdefs.h >>conftest.$ac_ext
38185 cat >>conftest.$ac_ext <<_ACEOF
38186 /* end confdefs.h. */
38187 /* Define vsyslog to an innocuous variant, in case <limits.h> declares vsyslog.
38188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38189 #define vsyslog innocuous_vsyslog
38191 /* System header to define __stub macros and hopefully few prototypes,
38192 which can conflict with char vsyslog (); below.
38193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38194 <limits.h> exists even on freestanding compilers. */
38197 # include <limits.h>
38199 # include <assert.h>
38204 /* Override any gcc2 internal prototype to avoid an error. */
38209 /* We use char because int might match the return type of a gcc2
38210 builtin and then its argument prototype would still apply. */
38212 /* The GNU C library defines this for functions which it implements
38213 to always fail with ENOSYS. Some functions are actually named
38214 something starting with __ and the normal name is an alias. */
38215 #if defined (__stub_vsyslog) || defined (__stub___vsyslog)
38218 char (*f) () = vsyslog;
38227 return f != vsyslog;
38232 rm -f conftest.$ac_objext conftest$ac_exeext
38233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38234 (eval $ac_link) 2>conftest.er1
38236 grep -v '^ *+' conftest.er1 >conftest.err
38238 cat conftest.err >&5
38239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38240 (exit $ac_status); } &&
38241 { ac_try='test -z "$ac_c_werror_flag"
38242 || test ! -s conftest.err'
38243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38244 (eval $ac_try) 2>&5
38246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38247 (exit $ac_status); }; } &&
38248 { ac_try='test -s conftest$ac_exeext'
38249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38250 (eval $ac_try) 2>&5
38252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38253 (exit $ac_status); }; }; then
38254 ac_cv_func_vsyslog=yes
38256 echo "$as_me: failed program was:" >&5
38257 sed 's/^/| /' conftest.$ac_ext >&5
38259 ac_cv_func_vsyslog=no
38261 rm -f conftest.err conftest.$ac_objext \
38262 conftest$ac_exeext conftest.$ac_ext
38264 echo "$as_me:$LINENO: result: $ac_cv_func_vsyslog" >&5
38265 echo "${ECHO_T}$ac_cv_func_vsyslog" >&6
38266 if test $ac_cv_func_vsyslog = yes; then
38268 cat >>confdefs.h <<_ACEOF
38269 #define HAVE_VSYSLOG 1
38274 "vsyslog.$ac_objext" | \
38275 *" vsyslog.$ac_objext" | \
38276 "vsyslog.$ac_objext "* | \
38277 *" vsyslog.$ac_objext "* ) ;;
38278 *) LIBOBJS="$LIBOBJS vsyslog.$ac_objext" ;;
38282 echo "$as_me:$LINENO: checking for vwarn" >&5
38283 echo $ECHO_N "checking for vwarn... $ECHO_C" >&6
38284 if test "${ac_cv_func_vwarn+set}" = set; then
38285 echo $ECHO_N "(cached) $ECHO_C" >&6
38287 cat >conftest.$ac_ext <<_ACEOF
38290 cat confdefs.h >>conftest.$ac_ext
38291 cat >>conftest.$ac_ext <<_ACEOF
38292 /* end confdefs.h. */
38293 /* Define vwarn to an innocuous variant, in case <limits.h> declares vwarn.
38294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38295 #define vwarn innocuous_vwarn
38297 /* System header to define __stub macros and hopefully few prototypes,
38298 which can conflict with char vwarn (); below.
38299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38300 <limits.h> exists even on freestanding compilers. */
38303 # include <limits.h>
38305 # include <assert.h>
38310 /* Override any gcc2 internal prototype to avoid an error. */
38315 /* We use char because int might match the return type of a gcc2
38316 builtin and then its argument prototype would still apply. */
38318 /* The GNU C library defines this for functions which it implements
38319 to always fail with ENOSYS. Some functions are actually named
38320 something starting with __ and the normal name is an alias. */
38321 #if defined (__stub_vwarn) || defined (__stub___vwarn)
38324 char (*f) () = vwarn;
38338 rm -f conftest.$ac_objext conftest$ac_exeext
38339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38340 (eval $ac_link) 2>conftest.er1
38342 grep -v '^ *+' conftest.er1 >conftest.err
38344 cat conftest.err >&5
38345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38346 (exit $ac_status); } &&
38347 { ac_try='test -z "$ac_c_werror_flag"
38348 || test ! -s conftest.err'
38349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38350 (eval $ac_try) 2>&5
38352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38353 (exit $ac_status); }; } &&
38354 { ac_try='test -s conftest$ac_exeext'
38355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38356 (eval $ac_try) 2>&5
38358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38359 (exit $ac_status); }; }; then
38360 ac_cv_func_vwarn=yes
38362 echo "$as_me: failed program was:" >&5
38363 sed 's/^/| /' conftest.$ac_ext >&5
38365 ac_cv_func_vwarn=no
38367 rm -f conftest.err conftest.$ac_objext \
38368 conftest$ac_exeext conftest.$ac_ext
38370 echo "$as_me:$LINENO: result: $ac_cv_func_vwarn" >&5
38371 echo "${ECHO_T}$ac_cv_func_vwarn" >&6
38372 if test $ac_cv_func_vwarn = yes; then
38374 cat >>confdefs.h <<_ACEOF
38375 #define HAVE_VWARN 1
38380 "vwarn.$ac_objext" | \
38381 *" vwarn.$ac_objext" | \
38382 "vwarn.$ac_objext "* | \
38383 *" vwarn.$ac_objext "* ) ;;
38384 *) LIBOBJS="$LIBOBJS vwarn.$ac_objext" ;;
38388 echo "$as_me:$LINENO: checking for vwarnx" >&5
38389 echo $ECHO_N "checking for vwarnx... $ECHO_C" >&6
38390 if test "${ac_cv_func_vwarnx+set}" = set; then
38391 echo $ECHO_N "(cached) $ECHO_C" >&6
38393 cat >conftest.$ac_ext <<_ACEOF
38396 cat confdefs.h >>conftest.$ac_ext
38397 cat >>conftest.$ac_ext <<_ACEOF
38398 /* end confdefs.h. */
38399 /* Define vwarnx to an innocuous variant, in case <limits.h> declares vwarnx.
38400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38401 #define vwarnx innocuous_vwarnx
38403 /* System header to define __stub macros and hopefully few prototypes,
38404 which can conflict with char vwarnx (); below.
38405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38406 <limits.h> exists even on freestanding compilers. */
38409 # include <limits.h>
38411 # include <assert.h>
38416 /* Override any gcc2 internal prototype to avoid an error. */
38421 /* We use char because int might match the return type of a gcc2
38422 builtin and then its argument prototype would still apply. */
38424 /* The GNU C library defines this for functions which it implements
38425 to always fail with ENOSYS. Some functions are actually named
38426 something starting with __ and the normal name is an alias. */
38427 #if defined (__stub_vwarnx) || defined (__stub___vwarnx)
38430 char (*f) () = vwarnx;
38439 return f != vwarnx;
38444 rm -f conftest.$ac_objext conftest$ac_exeext
38445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38446 (eval $ac_link) 2>conftest.er1
38448 grep -v '^ *+' conftest.er1 >conftest.err
38450 cat conftest.err >&5
38451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38452 (exit $ac_status); } &&
38453 { ac_try='test -z "$ac_c_werror_flag"
38454 || test ! -s conftest.err'
38455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38456 (eval $ac_try) 2>&5
38458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38459 (exit $ac_status); }; } &&
38460 { ac_try='test -s conftest$ac_exeext'
38461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38462 (eval $ac_try) 2>&5
38464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38465 (exit $ac_status); }; }; then
38466 ac_cv_func_vwarnx=yes
38468 echo "$as_me: failed program was:" >&5
38469 sed 's/^/| /' conftest.$ac_ext >&5
38471 ac_cv_func_vwarnx=no
38473 rm -f conftest.err conftest.$ac_objext \
38474 conftest$ac_exeext conftest.$ac_ext
38476 echo "$as_me:$LINENO: result: $ac_cv_func_vwarnx" >&5
38477 echo "${ECHO_T}$ac_cv_func_vwarnx" >&6
38478 if test $ac_cv_func_vwarnx = yes; then
38480 cat >>confdefs.h <<_ACEOF
38481 #define HAVE_VWARNX 1
38486 "vwarnx.$ac_objext" | \
38487 *" vwarnx.$ac_objext" | \
38488 "vwarnx.$ac_objext "* | \
38489 *" vwarnx.$ac_objext "* ) ;;
38490 *) LIBOBJS="$LIBOBJS vwarnx.$ac_objext" ;;
38494 echo "$as_me:$LINENO: checking for warn" >&5
38495 echo $ECHO_N "checking for warn... $ECHO_C" >&6
38496 if test "${ac_cv_func_warn+set}" = set; then
38497 echo $ECHO_N "(cached) $ECHO_C" >&6
38499 cat >conftest.$ac_ext <<_ACEOF
38502 cat confdefs.h >>conftest.$ac_ext
38503 cat >>conftest.$ac_ext <<_ACEOF
38504 /* end confdefs.h. */
38505 /* Define warn to an innocuous variant, in case <limits.h> declares warn.
38506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38507 #define warn innocuous_warn
38509 /* System header to define __stub macros and hopefully few prototypes,
38510 which can conflict with char warn (); below.
38511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38512 <limits.h> exists even on freestanding compilers. */
38515 # include <limits.h>
38517 # include <assert.h>
38522 /* Override any gcc2 internal prototype to avoid an error. */
38527 /* We use char because int might match the return type of a gcc2
38528 builtin and then its argument prototype would still apply. */
38530 /* The GNU C library defines this for functions which it implements
38531 to always fail with ENOSYS. Some functions are actually named
38532 something starting with __ and the normal name is an alias. */
38533 #if defined (__stub_warn) || defined (__stub___warn)
38536 char (*f) () = warn;
38550 rm -f conftest.$ac_objext conftest$ac_exeext
38551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38552 (eval $ac_link) 2>conftest.er1
38554 grep -v '^ *+' conftest.er1 >conftest.err
38556 cat conftest.err >&5
38557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38558 (exit $ac_status); } &&
38559 { ac_try='test -z "$ac_c_werror_flag"
38560 || test ! -s conftest.err'
38561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38562 (eval $ac_try) 2>&5
38564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38565 (exit $ac_status); }; } &&
38566 { ac_try='test -s conftest$ac_exeext'
38567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38568 (eval $ac_try) 2>&5
38570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38571 (exit $ac_status); }; }; then
38572 ac_cv_func_warn=yes
38574 echo "$as_me: failed program was:" >&5
38575 sed 's/^/| /' conftest.$ac_ext >&5
38579 rm -f conftest.err conftest.$ac_objext \
38580 conftest$ac_exeext conftest.$ac_ext
38582 echo "$as_me:$LINENO: result: $ac_cv_func_warn" >&5
38583 echo "${ECHO_T}$ac_cv_func_warn" >&6
38584 if test $ac_cv_func_warn = yes; then
38586 cat >>confdefs.h <<_ACEOF
38587 #define HAVE_WARN 1
38592 "warn.$ac_objext" | \
38593 *" warn.$ac_objext" | \
38594 "warn.$ac_objext "* | \
38595 *" warn.$ac_objext "* ) ;;
38596 *) LIBOBJS="$LIBOBJS warn.$ac_objext" ;;
38600 echo "$as_me:$LINENO: checking for warnx" >&5
38601 echo $ECHO_N "checking for warnx... $ECHO_C" >&6
38602 if test "${ac_cv_func_warnx+set}" = set; then
38603 echo $ECHO_N "(cached) $ECHO_C" >&6
38605 cat >conftest.$ac_ext <<_ACEOF
38608 cat confdefs.h >>conftest.$ac_ext
38609 cat >>conftest.$ac_ext <<_ACEOF
38610 /* end confdefs.h. */
38611 /* Define warnx to an innocuous variant, in case <limits.h> declares warnx.
38612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38613 #define warnx innocuous_warnx
38615 /* System header to define __stub macros and hopefully few prototypes,
38616 which can conflict with char warnx (); below.
38617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38618 <limits.h> exists even on freestanding compilers. */
38621 # include <limits.h>
38623 # include <assert.h>
38628 /* Override any gcc2 internal prototype to avoid an error. */
38633 /* We use char because int might match the return type of a gcc2
38634 builtin and then its argument prototype would still apply. */
38636 /* The GNU C library defines this for functions which it implements
38637 to always fail with ENOSYS. Some functions are actually named
38638 something starting with __ and the normal name is an alias. */
38639 #if defined (__stub_warnx) || defined (__stub___warnx)
38642 char (*f) () = warnx;
38656 rm -f conftest.$ac_objext conftest$ac_exeext
38657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38658 (eval $ac_link) 2>conftest.er1
38660 grep -v '^ *+' conftest.er1 >conftest.err
38662 cat conftest.err >&5
38663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38664 (exit $ac_status); } &&
38665 { ac_try='test -z "$ac_c_werror_flag"
38666 || test ! -s conftest.err'
38667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38668 (eval $ac_try) 2>&5
38670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38671 (exit $ac_status); }; } &&
38672 { ac_try='test -s conftest$ac_exeext'
38673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38674 (eval $ac_try) 2>&5
38676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38677 (exit $ac_status); }; }; then
38678 ac_cv_func_warnx=yes
38680 echo "$as_me: failed program was:" >&5
38681 sed 's/^/| /' conftest.$ac_ext >&5
38683 ac_cv_func_warnx=no
38685 rm -f conftest.err conftest.$ac_objext \
38686 conftest$ac_exeext conftest.$ac_ext
38688 echo "$as_me:$LINENO: result: $ac_cv_func_warnx" >&5
38689 echo "${ECHO_T}$ac_cv_func_warnx" >&6
38690 if test $ac_cv_func_warnx = yes; then
38692 cat >>confdefs.h <<_ACEOF
38693 #define HAVE_WARNX 1
38698 "warnx.$ac_objext" | \
38699 *" warnx.$ac_objext" | \
38700 "warnx.$ac_objext "* | \
38701 *" warnx.$ac_objext "* ) ;;
38702 *) LIBOBJS="$LIBOBJS warnx.$ac_objext" ;;
38706 echo "$as_me:$LINENO: checking for writev" >&5
38707 echo $ECHO_N "checking for writev... $ECHO_C" >&6
38708 if test "${ac_cv_func_writev+set}" = set; then
38709 echo $ECHO_N "(cached) $ECHO_C" >&6
38711 cat >conftest.$ac_ext <<_ACEOF
38714 cat confdefs.h >>conftest.$ac_ext
38715 cat >>conftest.$ac_ext <<_ACEOF
38716 /* end confdefs.h. */
38717 /* Define writev to an innocuous variant, in case <limits.h> declares writev.
38718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38719 #define writev innocuous_writev
38721 /* System header to define __stub macros and hopefully few prototypes,
38722 which can conflict with char writev (); below.
38723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38724 <limits.h> exists even on freestanding compilers. */
38727 # include <limits.h>
38729 # include <assert.h>
38734 /* Override any gcc2 internal prototype to avoid an error. */
38739 /* We use char because int might match the return type of a gcc2
38740 builtin and then its argument prototype would still apply. */
38742 /* The GNU C library defines this for functions which it implements
38743 to always fail with ENOSYS. Some functions are actually named
38744 something starting with __ and the normal name is an alias. */
38745 #if defined (__stub_writev) || defined (__stub___writev)
38748 char (*f) () = writev;
38757 return f != writev;
38762 rm -f conftest.$ac_objext conftest$ac_exeext
38763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38764 (eval $ac_link) 2>conftest.er1
38766 grep -v '^ *+' conftest.er1 >conftest.err
38768 cat conftest.err >&5
38769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38770 (exit $ac_status); } &&
38771 { ac_try='test -z "$ac_c_werror_flag"
38772 || test ! -s conftest.err'
38773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38774 (eval $ac_try) 2>&5
38776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38777 (exit $ac_status); }; } &&
38778 { ac_try='test -s conftest$ac_exeext'
38779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38780 (eval $ac_try) 2>&5
38782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38783 (exit $ac_status); }; }; then
38784 ac_cv_func_writev=yes
38786 echo "$as_me: failed program was:" >&5
38787 sed 's/^/| /' conftest.$ac_ext >&5
38789 ac_cv_func_writev=no
38791 rm -f conftest.err conftest.$ac_objext \
38792 conftest$ac_exeext conftest.$ac_ext
38794 echo "$as_me:$LINENO: result: $ac_cv_func_writev" >&5
38795 echo "${ECHO_T}$ac_cv_func_writev" >&6
38796 if test $ac_cv_func_writev = yes; then
38798 cat >>confdefs.h <<_ACEOF
38799 #define HAVE_WRITEV 1
38804 "writev.$ac_objext" | \
38805 *" writev.$ac_objext" | \
38806 "writev.$ac_objext "* | \
38807 *" writev.$ac_objext "* ) ;;
38808 *) LIBOBJS="$LIBOBJS writev.$ac_objext" ;;
38815 if test "$ac_cv_func_strndup+set" != set -o "$ac_cv_func_strndup" = yes; then
38816 echo "$as_me:$LINENO: checking if strndup needs a prototype" >&5
38817 echo $ECHO_N "checking if strndup needs a prototype... $ECHO_C" >&6
38818 if test "${ac_cv_func_strndup_noproto+set}" = set; then
38819 echo $ECHO_N "(cached) $ECHO_C" >&6
38821 cat >conftest.$ac_ext <<_ACEOF
38824 cat confdefs.h >>conftest.$ac_ext
38825 cat >>conftest.$ac_ext <<_ACEOF
38826 /* end confdefs.h. */
38827 #include <string.h>
38831 struct foo { int foo; } xx;
38832 extern int strndup (struct foo*);
38839 rm -f conftest.$ac_objext
38840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38841 (eval $ac_compile) 2>conftest.er1
38843 grep -v '^ *+' conftest.er1 >conftest.err
38845 cat conftest.err >&5
38846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38847 (exit $ac_status); } &&
38848 { ac_try='test -z "$ac_c_werror_flag"
38849 || test ! -s conftest.err'
38850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38851 (eval $ac_try) 2>&5
38853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38854 (exit $ac_status); }; } &&
38855 { ac_try='test -s conftest.$ac_objext'
38856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38857 (eval $ac_try) 2>&5
38859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38860 (exit $ac_status); }; }; then
38861 eval "ac_cv_func_strndup_noproto=yes"
38863 echo "$as_me: failed program was:" >&5
38864 sed 's/^/| /' conftest.$ac_ext >&5
38866 eval "ac_cv_func_strndup_noproto=no"
38868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38870 echo "$as_me:$LINENO: result: $ac_cv_func_strndup_noproto" >&5
38871 echo "${ECHO_T}$ac_cv_func_strndup_noproto" >&6
38872 if test "$ac_cv_func_strndup_noproto" = yes; then
38874 cat >>confdefs.h <<\_ACEOF
38875 #define NEED_STRNDUP_PROTO 1
38881 if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then
38882 echo "$as_me:$LINENO: checking if strsep needs a prototype" >&5
38883 echo $ECHO_N "checking if strsep needs a prototype... $ECHO_C" >&6
38884 if test "${ac_cv_func_strsep_noproto+set}" = set; then
38885 echo $ECHO_N "(cached) $ECHO_C" >&6
38887 cat >conftest.$ac_ext <<_ACEOF
38890 cat confdefs.h >>conftest.$ac_ext
38891 cat >>conftest.$ac_ext <<_ACEOF
38892 /* end confdefs.h. */
38893 #include <string.h>
38897 struct foo { int foo; } xx;
38898 extern int strsep (struct foo*);
38905 rm -f conftest.$ac_objext
38906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38907 (eval $ac_compile) 2>conftest.er1
38909 grep -v '^ *+' conftest.er1 >conftest.err
38911 cat conftest.err >&5
38912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38913 (exit $ac_status); } &&
38914 { ac_try='test -z "$ac_c_werror_flag"
38915 || test ! -s conftest.err'
38916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38917 (eval $ac_try) 2>&5
38919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38920 (exit $ac_status); }; } &&
38921 { ac_try='test -s conftest.$ac_objext'
38922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38923 (eval $ac_try) 2>&5
38925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38926 (exit $ac_status); }; }; then
38927 eval "ac_cv_func_strsep_noproto=yes"
38929 echo "$as_me: failed program was:" >&5
38930 sed 's/^/| /' conftest.$ac_ext >&5
38932 eval "ac_cv_func_strsep_noproto=no"
38934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38936 echo "$as_me:$LINENO: result: $ac_cv_func_strsep_noproto" >&5
38937 echo "${ECHO_T}$ac_cv_func_strsep_noproto" >&6
38938 if test "$ac_cv_func_strsep_noproto" = yes; then
38940 cat >>confdefs.h <<\_ACEOF
38941 #define NEED_STRSEP_PROTO 1
38947 if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then
38948 echo "$as_me:$LINENO: checking if strtok_r needs a prototype" >&5
38949 echo $ECHO_N "checking if strtok_r needs a prototype... $ECHO_C" >&6
38950 if test "${ac_cv_func_strtok_r_noproto+set}" = set; then
38951 echo $ECHO_N "(cached) $ECHO_C" >&6
38953 cat >conftest.$ac_ext <<_ACEOF
38956 cat confdefs.h >>conftest.$ac_ext
38957 cat >>conftest.$ac_ext <<_ACEOF
38958 /* end confdefs.h. */
38959 #include <string.h>
38963 struct foo { int foo; } xx;
38964 extern int strtok_r (struct foo*);
38971 rm -f conftest.$ac_objext
38972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38973 (eval $ac_compile) 2>conftest.er1
38975 grep -v '^ *+' conftest.er1 >conftest.err
38977 cat conftest.err >&5
38978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38979 (exit $ac_status); } &&
38980 { ac_try='test -z "$ac_c_werror_flag"
38981 || test ! -s conftest.err'
38982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38983 (eval $ac_try) 2>&5
38985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38986 (exit $ac_status); }; } &&
38987 { ac_try='test -s conftest.$ac_objext'
38988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38989 (eval $ac_try) 2>&5
38991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38992 (exit $ac_status); }; }; then
38993 eval "ac_cv_func_strtok_r_noproto=yes"
38995 echo "$as_me: failed program was:" >&5
38996 sed 's/^/| /' conftest.$ac_ext >&5
38998 eval "ac_cv_func_strtok_r_noproto=no"
39000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39002 echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r_noproto" >&5
39003 echo "${ECHO_T}$ac_cv_func_strtok_r_noproto" >&6
39004 if test "$ac_cv_func_strtok_r_noproto" = yes; then
39006 cat >>confdefs.h <<\_ACEOF
39007 #define NEED_STRTOK_R_PROTO 1
39015 if test "$ac_cv_func_strsvis+set" != set -o "$ac_cv_func_strsvis" = yes; then
39016 echo "$as_me:$LINENO: checking if strsvis needs a prototype" >&5
39017 echo $ECHO_N "checking if strsvis needs a prototype... $ECHO_C" >&6
39018 if test "${ac_cv_func_strsvis_noproto+set}" = set; then
39019 echo $ECHO_N "(cached) $ECHO_C" >&6
39021 cat >conftest.$ac_ext <<_ACEOF
39024 cat confdefs.h >>conftest.$ac_ext
39025 cat >>conftest.$ac_ext <<_ACEOF
39026 /* end confdefs.h. */
39033 struct foo { int foo; } xx;
39034 extern int strsvis (struct foo*);
39041 rm -f conftest.$ac_objext
39042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39043 (eval $ac_compile) 2>conftest.er1
39045 grep -v '^ *+' conftest.er1 >conftest.err
39047 cat conftest.err >&5
39048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39049 (exit $ac_status); } &&
39050 { ac_try='test -z "$ac_c_werror_flag"
39051 || test ! -s conftest.err'
39052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39053 (eval $ac_try) 2>&5
39055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39056 (exit $ac_status); }; } &&
39057 { ac_try='test -s conftest.$ac_objext'
39058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39059 (eval $ac_try) 2>&5
39061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39062 (exit $ac_status); }; }; then
39063 eval "ac_cv_func_strsvis_noproto=yes"
39065 echo "$as_me: failed program was:" >&5
39066 sed 's/^/| /' conftest.$ac_ext >&5
39068 eval "ac_cv_func_strsvis_noproto=no"
39070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39072 echo "$as_me:$LINENO: result: $ac_cv_func_strsvis_noproto" >&5
39073 echo "${ECHO_T}$ac_cv_func_strsvis_noproto" >&6
39074 if test "$ac_cv_func_strsvis_noproto" = yes; then
39076 cat >>confdefs.h <<\_ACEOF
39077 #define NEED_STRSVIS_PROTO 1
39083 if test "$ac_cv_func_strunvis+set" != set -o "$ac_cv_func_strunvis" = yes; then
39084 echo "$as_me:$LINENO: checking if strunvis needs a prototype" >&5
39085 echo $ECHO_N "checking if strunvis needs a prototype... $ECHO_C" >&6
39086 if test "${ac_cv_func_strunvis_noproto+set}" = set; then
39087 echo $ECHO_N "(cached) $ECHO_C" >&6
39089 cat >conftest.$ac_ext <<_ACEOF
39092 cat confdefs.h >>conftest.$ac_ext
39093 cat >>conftest.$ac_ext <<_ACEOF
39094 /* end confdefs.h. */
39101 struct foo { int foo; } xx;
39102 extern int strunvis (struct foo*);
39109 rm -f conftest.$ac_objext
39110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39111 (eval $ac_compile) 2>conftest.er1
39113 grep -v '^ *+' conftest.er1 >conftest.err
39115 cat conftest.err >&5
39116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39117 (exit $ac_status); } &&
39118 { ac_try='test -z "$ac_c_werror_flag"
39119 || test ! -s conftest.err'
39120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39121 (eval $ac_try) 2>&5
39123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39124 (exit $ac_status); }; } &&
39125 { ac_try='test -s conftest.$ac_objext'
39126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39127 (eval $ac_try) 2>&5
39129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39130 (exit $ac_status); }; }; then
39131 eval "ac_cv_func_strunvis_noproto=yes"
39133 echo "$as_me: failed program was:" >&5
39134 sed 's/^/| /' conftest.$ac_ext >&5
39136 eval "ac_cv_func_strunvis_noproto=no"
39138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39140 echo "$as_me:$LINENO: result: $ac_cv_func_strunvis_noproto" >&5
39141 echo "${ECHO_T}$ac_cv_func_strunvis_noproto" >&6
39142 if test "$ac_cv_func_strunvis_noproto" = yes; then
39144 cat >>confdefs.h <<\_ACEOF
39145 #define NEED_STRUNVIS_PROTO 1
39151 if test "$ac_cv_func_strvis+set" != set -o "$ac_cv_func_strvis" = yes; then
39152 echo "$as_me:$LINENO: checking if strvis needs a prototype" >&5
39153 echo $ECHO_N "checking if strvis needs a prototype... $ECHO_C" >&6
39154 if test "${ac_cv_func_strvis_noproto+set}" = set; then
39155 echo $ECHO_N "(cached) $ECHO_C" >&6
39157 cat >conftest.$ac_ext <<_ACEOF
39160 cat confdefs.h >>conftest.$ac_ext
39161 cat >>conftest.$ac_ext <<_ACEOF
39162 /* end confdefs.h. */
39169 struct foo { int foo; } xx;
39170 extern int strvis (struct foo*);
39177 rm -f conftest.$ac_objext
39178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39179 (eval $ac_compile) 2>conftest.er1
39181 grep -v '^ *+' conftest.er1 >conftest.err
39183 cat conftest.err >&5
39184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39185 (exit $ac_status); } &&
39186 { ac_try='test -z "$ac_c_werror_flag"
39187 || test ! -s conftest.err'
39188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39189 (eval $ac_try) 2>&5
39191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39192 (exit $ac_status); }; } &&
39193 { ac_try='test -s conftest.$ac_objext'
39194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39195 (eval $ac_try) 2>&5
39197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39198 (exit $ac_status); }; }; then
39199 eval "ac_cv_func_strvis_noproto=yes"
39201 echo "$as_me: failed program was:" >&5
39202 sed 's/^/| /' conftest.$ac_ext >&5
39204 eval "ac_cv_func_strvis_noproto=no"
39206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39208 echo "$as_me:$LINENO: result: $ac_cv_func_strvis_noproto" >&5
39209 echo "${ECHO_T}$ac_cv_func_strvis_noproto" >&6
39210 if test "$ac_cv_func_strvis_noproto" = yes; then
39212 cat >>confdefs.h <<\_ACEOF
39213 #define NEED_STRVIS_PROTO 1
39219 if test "$ac_cv_func_strvisx+set" != set -o "$ac_cv_func_strvisx" = yes; then
39220 echo "$as_me:$LINENO: checking if strvisx needs a prototype" >&5
39221 echo $ECHO_N "checking if strvisx needs a prototype... $ECHO_C" >&6
39222 if test "${ac_cv_func_strvisx_noproto+set}" = set; then
39223 echo $ECHO_N "(cached) $ECHO_C" >&6
39225 cat >conftest.$ac_ext <<_ACEOF
39228 cat confdefs.h >>conftest.$ac_ext
39229 cat >>conftest.$ac_ext <<_ACEOF
39230 /* end confdefs.h. */
39237 struct foo { int foo; } xx;
39238 extern int strvisx (struct foo*);
39245 rm -f conftest.$ac_objext
39246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39247 (eval $ac_compile) 2>conftest.er1
39249 grep -v '^ *+' conftest.er1 >conftest.err
39251 cat conftest.err >&5
39252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39253 (exit $ac_status); } &&
39254 { ac_try='test -z "$ac_c_werror_flag"
39255 || test ! -s conftest.err'
39256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39257 (eval $ac_try) 2>&5
39259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39260 (exit $ac_status); }; } &&
39261 { ac_try='test -s conftest.$ac_objext'
39262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39263 (eval $ac_try) 2>&5
39265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39266 (exit $ac_status); }; }; then
39267 eval "ac_cv_func_strvisx_noproto=yes"
39269 echo "$as_me: failed program was:" >&5
39270 sed 's/^/| /' conftest.$ac_ext >&5
39272 eval "ac_cv_func_strvisx_noproto=no"
39274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39276 echo "$as_me:$LINENO: result: $ac_cv_func_strvisx_noproto" >&5
39277 echo "${ECHO_T}$ac_cv_func_strvisx_noproto" >&6
39278 if test "$ac_cv_func_strvisx_noproto" = yes; then
39280 cat >>confdefs.h <<\_ACEOF
39281 #define NEED_STRVISX_PROTO 1
39287 if test "$ac_cv_func_svis+set" != set -o "$ac_cv_func_svis" = yes; then
39288 echo "$as_me:$LINENO: checking if svis needs a prototype" >&5
39289 echo $ECHO_N "checking if svis needs a prototype... $ECHO_C" >&6
39290 if test "${ac_cv_func_svis_noproto+set}" = set; then
39291 echo $ECHO_N "(cached) $ECHO_C" >&6
39293 cat >conftest.$ac_ext <<_ACEOF
39296 cat confdefs.h >>conftest.$ac_ext
39297 cat >>conftest.$ac_ext <<_ACEOF
39298 /* end confdefs.h. */
39305 struct foo { int foo; } xx;
39306 extern int svis (struct foo*);
39313 rm -f conftest.$ac_objext
39314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39315 (eval $ac_compile) 2>conftest.er1
39317 grep -v '^ *+' conftest.er1 >conftest.err
39319 cat conftest.err >&5
39320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39321 (exit $ac_status); } &&
39322 { ac_try='test -z "$ac_c_werror_flag"
39323 || test ! -s conftest.err'
39324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39325 (eval $ac_try) 2>&5
39327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39328 (exit $ac_status); }; } &&
39329 { ac_try='test -s conftest.$ac_objext'
39330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39331 (eval $ac_try) 2>&5
39333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39334 (exit $ac_status); }; }; then
39335 eval "ac_cv_func_svis_noproto=yes"
39337 echo "$as_me: failed program was:" >&5
39338 sed 's/^/| /' conftest.$ac_ext >&5
39340 eval "ac_cv_func_svis_noproto=no"
39342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39344 echo "$as_me:$LINENO: result: $ac_cv_func_svis_noproto" >&5
39345 echo "${ECHO_T}$ac_cv_func_svis_noproto" >&6
39346 if test "$ac_cv_func_svis_noproto" = yes; then
39348 cat >>confdefs.h <<\_ACEOF
39349 #define NEED_SVIS_PROTO 1
39355 if test "$ac_cv_func_unvis+set" != set -o "$ac_cv_func_unvis" = yes; then
39356 echo "$as_me:$LINENO: checking if unvis needs a prototype" >&5
39357 echo $ECHO_N "checking if unvis needs a prototype... $ECHO_C" >&6
39358 if test "${ac_cv_func_unvis_noproto+set}" = set; then
39359 echo $ECHO_N "(cached) $ECHO_C" >&6
39361 cat >conftest.$ac_ext <<_ACEOF
39364 cat confdefs.h >>conftest.$ac_ext
39365 cat >>conftest.$ac_ext <<_ACEOF
39366 /* end confdefs.h. */
39373 struct foo { int foo; } xx;
39374 extern int unvis (struct foo*);
39381 rm -f conftest.$ac_objext
39382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39383 (eval $ac_compile) 2>conftest.er1
39385 grep -v '^ *+' conftest.er1 >conftest.err
39387 cat conftest.err >&5
39388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39389 (exit $ac_status); } &&
39390 { ac_try='test -z "$ac_c_werror_flag"
39391 || test ! -s conftest.err'
39392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39393 (eval $ac_try) 2>&5
39395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39396 (exit $ac_status); }; } &&
39397 { ac_try='test -s conftest.$ac_objext'
39398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39399 (eval $ac_try) 2>&5
39401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39402 (exit $ac_status); }; }; then
39403 eval "ac_cv_func_unvis_noproto=yes"
39405 echo "$as_me: failed program was:" >&5
39406 sed 's/^/| /' conftest.$ac_ext >&5
39408 eval "ac_cv_func_unvis_noproto=no"
39410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39412 echo "$as_me:$LINENO: result: $ac_cv_func_unvis_noproto" >&5
39413 echo "${ECHO_T}$ac_cv_func_unvis_noproto" >&6
39414 if test "$ac_cv_func_unvis_noproto" = yes; then
39416 cat >>confdefs.h <<\_ACEOF
39417 #define NEED_UNVIS_PROTO 1
39423 if test "$ac_cv_func_vis+set" != set -o "$ac_cv_func_vis" = yes; then
39424 echo "$as_me:$LINENO: checking if vis needs a prototype" >&5
39425 echo $ECHO_N "checking if vis needs a prototype... $ECHO_C" >&6
39426 if test "${ac_cv_func_vis_noproto+set}" = set; then
39427 echo $ECHO_N "(cached) $ECHO_C" >&6
39429 cat >conftest.$ac_ext <<_ACEOF
39432 cat confdefs.h >>conftest.$ac_ext
39433 cat >>conftest.$ac_ext <<_ACEOF
39434 /* end confdefs.h. */
39441 struct foo { int foo; } xx;
39442 extern int vis (struct foo*);
39449 rm -f conftest.$ac_objext
39450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39451 (eval $ac_compile) 2>conftest.er1
39453 grep -v '^ *+' conftest.er1 >conftest.err
39455 cat conftest.err >&5
39456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39457 (exit $ac_status); } &&
39458 { ac_try='test -z "$ac_c_werror_flag"
39459 || test ! -s conftest.err'
39460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39461 (eval $ac_try) 2>&5
39463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39464 (exit $ac_status); }; } &&
39465 { ac_try='test -s conftest.$ac_objext'
39466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39467 (eval $ac_try) 2>&5
39469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39470 (exit $ac_status); }; }; then
39471 eval "ac_cv_func_vis_noproto=yes"
39473 echo "$as_me: failed program was:" >&5
39474 sed 's/^/| /' conftest.$ac_ext >&5
39476 eval "ac_cv_func_vis_noproto=no"
39478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39480 echo "$as_me:$LINENO: result: $ac_cv_func_vis_noproto" >&5
39481 echo "${ECHO_T}$ac_cv_func_vis_noproto" >&6
39482 if test "$ac_cv_func_vis_noproto" = yes; then
39484 cat >>confdefs.h <<\_ACEOF
39485 #define NEED_VIS_PROTO 1
39492 echo "$as_me:$LINENO: checking for inet_aton" >&5
39493 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
39494 if test "${ac_cv_func_inet_aton+set}" = set; then
39495 echo $ECHO_N "(cached) $ECHO_C" >&6
39497 cat >conftest.$ac_ext <<_ACEOF
39500 cat confdefs.h >>conftest.$ac_ext
39501 cat >>conftest.$ac_ext <<_ACEOF
39502 /* end confdefs.h. */
39503 #ifdef HAVE_SYS_TYPES_H
39504 #include <sys/types.h>
39506 #ifdef HAVE_SYS_SOCKET_H
39507 #include <sys/socket.h>
39509 #ifdef HAVE_NETINET_IN_H
39510 #include <netinet/in.h>
39512 #ifdef HAVE_ARPA_INET_H
39513 #include <arpa/inet.h>
39519 /* The GNU C library defines this for functions which it implements
39520 to always fail with ENOSYS. Some functions are actually named
39521 something starting with __ and the normal name is an alias. */
39522 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
39532 rm -f conftest.$ac_objext conftest$ac_exeext
39533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39534 (eval $ac_link) 2>conftest.er1
39536 grep -v '^ *+' conftest.er1 >conftest.err
39538 cat conftest.err >&5
39539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39540 (exit $ac_status); } &&
39541 { ac_try='test -z "$ac_c_werror_flag"
39542 || test ! -s conftest.err'
39543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39544 (eval $ac_try) 2>&5
39546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39547 (exit $ac_status); }; } &&
39548 { ac_try='test -s conftest$ac_exeext'
39549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39550 (eval $ac_try) 2>&5
39552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39553 (exit $ac_status); }; }; then
39554 eval "ac_cv_func_inet_aton=yes"
39556 echo "$as_me: failed program was:" >&5
39557 sed 's/^/| /' conftest.$ac_ext >&5
39559 eval "ac_cv_func_inet_aton=no"
39561 rm -f conftest.err conftest.$ac_objext \
39562 conftest$ac_exeext conftest.$ac_ext
39565 if eval "test \"\${ac_cv_func_inet_aton}\" = yes"; then
39567 cat >>confdefs.h <<_ACEOF
39568 #define HAVE_INET_ATON 1
39571 echo "$as_me:$LINENO: result: yes" >&5
39572 echo "${ECHO_T}yes" >&6
39574 echo "$as_me:$LINENO: result: no" >&5
39575 echo "${ECHO_T}no" >&6
39577 "inet_aton.$ac_objext" | \
39578 *" inet_aton.$ac_objext" | \
39579 "inet_aton.$ac_objext "* | \
39580 *" inet_aton.$ac_objext "* ) ;;
39581 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" ;;
39586 echo "$as_me:$LINENO: checking for inet_ntop" >&5
39587 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
39588 if test "${ac_cv_func_inet_ntop+set}" = set; then
39589 echo $ECHO_N "(cached) $ECHO_C" >&6
39591 cat >conftest.$ac_ext <<_ACEOF
39594 cat confdefs.h >>conftest.$ac_ext
39595 cat >>conftest.$ac_ext <<_ACEOF
39596 /* end confdefs.h. */
39597 #ifdef HAVE_SYS_TYPES_H
39598 #include <sys/types.h>
39600 #ifdef HAVE_SYS_SOCKET_H
39601 #include <sys/socket.h>
39603 #ifdef HAVE_NETINET_IN_H
39604 #include <netinet/in.h>
39606 #ifdef HAVE_ARPA_INET_H
39607 #include <arpa/inet.h>
39613 /* The GNU C library defines this for functions which it implements
39614 to always fail with ENOSYS. Some functions are actually named
39615 something starting with __ and the normal name is an alias. */
39616 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
39619 inet_ntop(0, 0, 0, 0)
39626 rm -f conftest.$ac_objext conftest$ac_exeext
39627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39628 (eval $ac_link) 2>conftest.er1
39630 grep -v '^ *+' conftest.er1 >conftest.err
39632 cat conftest.err >&5
39633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39634 (exit $ac_status); } &&
39635 { ac_try='test -z "$ac_c_werror_flag"
39636 || test ! -s conftest.err'
39637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39638 (eval $ac_try) 2>&5
39640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39641 (exit $ac_status); }; } &&
39642 { ac_try='test -s 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 eval "ac_cv_func_inet_ntop=yes"
39650 echo "$as_me: failed program was:" >&5
39651 sed 's/^/| /' conftest.$ac_ext >&5
39653 eval "ac_cv_func_inet_ntop=no"
39655 rm -f conftest.err conftest.$ac_objext \
39656 conftest$ac_exeext conftest.$ac_ext
39659 if eval "test \"\${ac_cv_func_inet_ntop}\" = yes"; then
39661 cat >>confdefs.h <<_ACEOF
39662 #define HAVE_INET_NTOP 1
39665 echo "$as_me:$LINENO: result: yes" >&5
39666 echo "${ECHO_T}yes" >&6
39668 echo "$as_me:$LINENO: result: no" >&5
39669 echo "${ECHO_T}no" >&6
39671 "inet_ntop.$ac_objext" | \
39672 *" inet_ntop.$ac_objext" | \
39673 "inet_ntop.$ac_objext "* | \
39674 *" inet_ntop.$ac_objext "* ) ;;
39675 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" ;;
39680 echo "$as_me:$LINENO: checking for inet_pton" >&5
39681 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
39682 if test "${ac_cv_func_inet_pton+set}" = set; then
39683 echo $ECHO_N "(cached) $ECHO_C" >&6
39685 cat >conftest.$ac_ext <<_ACEOF
39688 cat confdefs.h >>conftest.$ac_ext
39689 cat >>conftest.$ac_ext <<_ACEOF
39690 /* end confdefs.h. */
39691 #ifdef HAVE_SYS_TYPES_H
39692 #include <sys/types.h>
39694 #ifdef HAVE_SYS_SOCKET_H
39695 #include <sys/socket.h>
39697 #ifdef HAVE_NETINET_IN_H
39698 #include <netinet/in.h>
39700 #ifdef HAVE_ARPA_INET_H
39701 #include <arpa/inet.h>
39707 /* The GNU C library defines this for functions which it implements
39708 to always fail with ENOSYS. Some functions are actually named
39709 something starting with __ and the normal name is an alias. */
39710 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
39720 rm -f conftest.$ac_objext conftest$ac_exeext
39721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39722 (eval $ac_link) 2>conftest.er1
39724 grep -v '^ *+' conftest.er1 >conftest.err
39726 cat conftest.err >&5
39727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39728 (exit $ac_status); } &&
39729 { ac_try='test -z "$ac_c_werror_flag"
39730 || test ! -s conftest.err'
39731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39732 (eval $ac_try) 2>&5
39734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39735 (exit $ac_status); }; } &&
39736 { ac_try='test -s conftest$ac_exeext'
39737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39738 (eval $ac_try) 2>&5
39740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39741 (exit $ac_status); }; }; then
39742 eval "ac_cv_func_inet_pton=yes"
39744 echo "$as_me: failed program was:" >&5
39745 sed 's/^/| /' conftest.$ac_ext >&5
39747 eval "ac_cv_func_inet_pton=no"
39749 rm -f conftest.err conftest.$ac_objext \
39750 conftest$ac_exeext conftest.$ac_ext
39753 if eval "test \"\${ac_cv_func_inet_pton}\" = yes"; then
39755 cat >>confdefs.h <<_ACEOF
39756 #define HAVE_INET_PTON 1
39759 echo "$as_me:$LINENO: result: yes" >&5
39760 echo "${ECHO_T}yes" >&6
39762 echo "$as_me:$LINENO: result: no" >&5
39763 echo "${ECHO_T}no" >&6
39765 "inet_pton.$ac_objext" | \
39766 *" inet_pton.$ac_objext" | \
39767 "inet_pton.$ac_objext "* | \
39768 *" inet_pton.$ac_objext "* ) ;;
39769 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" ;;
39776 echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
39777 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
39778 if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then
39779 echo $ECHO_N "(cached) $ECHO_C" >&6
39782 cat >conftest.$ac_ext <<_ACEOF
39785 cat confdefs.h >>conftest.$ac_ext
39786 cat >>conftest.$ac_ext <<_ACEOF
39787 /* end confdefs.h. */
39788 #include <sys/types.h>
39789 #include <sys/socket.h>
39793 struct sockaddr x; x.sa_len;
39798 rm -f conftest.$ac_objext
39799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39800 (eval $ac_compile) 2>conftest.er1
39802 grep -v '^ *+' conftest.er1 >conftest.err
39804 cat conftest.err >&5
39805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39806 (exit $ac_status); } &&
39807 { ac_try='test -z "$ac_c_werror_flag"
39808 || test ! -s conftest.err'
39809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39810 (eval $ac_try) 2>&5
39812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39813 (exit $ac_status); }; } &&
39814 { ac_try='test -s conftest.$ac_objext'
39815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39816 (eval $ac_try) 2>&5
39818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39819 (exit $ac_status); }; }; then
39820 ac_cv_type_struct_sockaddr_sa_len=yes
39822 echo "$as_me: failed program was:" >&5
39823 sed 's/^/| /' conftest.$ac_ext >&5
39825 ac_cv_type_struct_sockaddr_sa_len=no
39827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39829 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
39830 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6
39831 if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
39834 cat >>confdefs.h <<\_ACEOF
39835 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
39843 if test "$ac_cv_func_getnameinfo" = "yes"; then
39845 echo "$as_me:$LINENO: checking if getnameinfo is broken" >&5
39846 echo $ECHO_N "checking if getnameinfo is broken... $ECHO_C" >&6
39847 if test "${ac_cv_func_getnameinfo_broken+set}" = set; then
39848 echo $ECHO_N "(cached) $ECHO_C" >&6
39850 if test "$cross_compiling" = yes; then
39851 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39852 See \`config.log' for more details." >&5
39853 echo "$as_me: error: cannot run test program while cross compiling
39854 See \`config.log' for more details." >&2;}
39855 { (exit 1); exit 1; }; }
39857 cat >conftest.$ac_ext <<_ACEOF
39860 cat confdefs.h >>conftest.$ac_ext
39861 cat >>conftest.$ac_ext <<_ACEOF
39862 /* end confdefs.h. */
39864 #include <sys/types.h>
39865 #include <sys/socket.h>
39866 #include <netinet/in.h>
39870 main(int argc, char **argv)
39872 struct sockaddr_in sin;
39874 memset(&sin, 0, sizeof(sin));
39875 #ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
39876 sin.sin_len = sizeof(sin);
39878 sin.sin_family = AF_INET;
39879 sin.sin_addr.s_addr = 0xffffffff;
39881 return getnameinfo((struct sockaddr*)&sin, sizeof(sin), host, sizeof(host),
39886 rm -f conftest$ac_exeext
39887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39888 (eval $ac_link) 2>&5
39890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39893 (eval $ac_try) 2>&5
39895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39896 (exit $ac_status); }; }; then
39897 ac_cv_func_getnameinfo_broken=no
39899 echo "$as_me: program exited with status $ac_status" >&5
39900 echo "$as_me: failed program was:" >&5
39901 sed 's/^/| /' conftest.$ac_ext >&5
39903 ( exit $ac_status )
39904 ac_cv_func_getnameinfo_broken=yes
39906 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39909 echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo_broken" >&5
39910 echo "${ECHO_T}$ac_cv_func_getnameinfo_broken" >&6
39911 if test "$ac_cv_func_getnameinfo_broken" = yes; then
39913 "getnameinfo.$ac_objext" | \
39914 *" getnameinfo.$ac_objext" | \
39915 "getnameinfo.$ac_objext "* | \
39916 *" getnameinfo.$ac_objext "* ) ;;
39917 *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext" ;;
39923 if test "$ac_cv_func_getaddrinfo" = "yes"; then
39925 echo "$as_me:$LINENO: checking if getaddrinfo handles numeric services" >&5
39926 echo $ECHO_N "checking if getaddrinfo handles numeric services... $ECHO_C" >&6
39927 if test "${ac_cv_func_getaddrinfo_numserv+set}" = set; then
39928 echo $ECHO_N "(cached) $ECHO_C" >&6
39930 if test "$cross_compiling" = yes; then
39931 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39932 See \`config.log' for more details." >&5
39933 echo "$as_me: error: cannot run test program while cross compiling
39934 See \`config.log' for more details." >&2;}
39935 { (exit 1); exit 1; }; }
39937 cat >conftest.$ac_ext <<_ACEOF
39940 cat confdefs.h >>conftest.$ac_ext
39941 cat >>conftest.$ac_ext <<_ACEOF
39942 /* end confdefs.h. */
39944 #include <sys/types.h>
39945 #include <sys/socket.h>
39949 main(int argc, char **argv)
39951 struct addrinfo hints, *ai;
39952 memset(&hints, 0, sizeof(hints));
39953 hints.ai_flags = AI_PASSIVE;
39954 hints.ai_socktype = SOCK_STREAM;
39955 hints.ai_family = PF_UNSPEC;
39956 if(getaddrinfo(NULL, "17", &hints, &ai) != 0)
39962 rm -f conftest$ac_exeext
39963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39964 (eval $ac_link) 2>&5
39966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39969 (eval $ac_try) 2>&5
39971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39972 (exit $ac_status); }; }; then
39973 ac_cv_func_getaddrinfo_numserv=yes
39975 echo "$as_me: program exited with status $ac_status" >&5
39976 echo "$as_me: failed program was:" >&5
39977 sed 's/^/| /' conftest.$ac_ext >&5
39979 ( exit $ac_status )
39980 ac_cv_func_getaddrinfo_numserv=no
39982 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39985 echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo_numserv" >&5
39986 echo "${ECHO_T}$ac_cv_func_getaddrinfo_numserv" >&6
39987 if test "$ac_cv_func_getaddrinfo_numserv" = no; then
39989 "getaddrinfo.$ac_objext" | \
39990 *" getaddrinfo.$ac_objext" | \
39991 "getaddrinfo.$ac_objext "* | \
39992 *" getaddrinfo.$ac_objext "* ) ;;
39993 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
39997 "freeaddrinfo.$ac_objext" | \
39998 *" freeaddrinfo.$ac_objext" | \
39999 "freeaddrinfo.$ac_objext "* | \
40000 *" freeaddrinfo.$ac_objext "* ) ;;
40001 *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext" ;;
40008 if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then
40009 echo "$as_me:$LINENO: checking if setenv needs a prototype" >&5
40010 echo $ECHO_N "checking if setenv needs a prototype... $ECHO_C" >&6
40011 if test "${ac_cv_func_setenv_noproto+set}" = set; then
40012 echo $ECHO_N "(cached) $ECHO_C" >&6
40014 cat >conftest.$ac_ext <<_ACEOF
40017 cat confdefs.h >>conftest.$ac_ext
40018 cat >>conftest.$ac_ext <<_ACEOF
40019 /* end confdefs.h. */
40020 #include <stdlib.h>
40024 struct foo { int foo; } xx;
40025 extern int setenv (struct foo*);
40032 rm -f conftest.$ac_objext
40033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40034 (eval $ac_compile) 2>conftest.er1
40036 grep -v '^ *+' conftest.er1 >conftest.err
40038 cat conftest.err >&5
40039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40040 (exit $ac_status); } &&
40041 { ac_try='test -z "$ac_c_werror_flag"
40042 || test ! -s conftest.err'
40043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40044 (eval $ac_try) 2>&5
40046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40047 (exit $ac_status); }; } &&
40048 { ac_try='test -s conftest.$ac_objext'
40049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40050 (eval $ac_try) 2>&5
40052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40053 (exit $ac_status); }; }; then
40054 eval "ac_cv_func_setenv_noproto=yes"
40056 echo "$as_me: failed program was:" >&5
40057 sed 's/^/| /' conftest.$ac_ext >&5
40059 eval "ac_cv_func_setenv_noproto=no"
40061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40063 echo "$as_me:$LINENO: result: $ac_cv_func_setenv_noproto" >&5
40064 echo "${ECHO_T}$ac_cv_func_setenv_noproto" >&6
40065 if test "$ac_cv_func_setenv_noproto" = yes; then
40067 cat >>confdefs.h <<\_ACEOF
40068 #define NEED_SETENV_PROTO 1
40075 if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then
40076 echo "$as_me:$LINENO: checking if unsetenv needs a prototype" >&5
40077 echo $ECHO_N "checking if unsetenv needs a prototype... $ECHO_C" >&6
40078 if test "${ac_cv_func_unsetenv_noproto+set}" = set; then
40079 echo $ECHO_N "(cached) $ECHO_C" >&6
40081 cat >conftest.$ac_ext <<_ACEOF
40084 cat confdefs.h >>conftest.$ac_ext
40085 cat >>conftest.$ac_ext <<_ACEOF
40086 /* end confdefs.h. */
40087 #include <stdlib.h>
40091 struct foo { int foo; } xx;
40092 extern int unsetenv (struct foo*);
40099 rm -f conftest.$ac_objext
40100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40101 (eval $ac_compile) 2>conftest.er1
40103 grep -v '^ *+' conftest.er1 >conftest.err
40105 cat conftest.err >&5
40106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40107 (exit $ac_status); } &&
40108 { ac_try='test -z "$ac_c_werror_flag"
40109 || test ! -s conftest.err'
40110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40111 (eval $ac_try) 2>&5
40113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40114 (exit $ac_status); }; } &&
40115 { ac_try='test -s conftest.$ac_objext'
40116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40117 (eval $ac_try) 2>&5
40119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40120 (exit $ac_status); }; }; then
40121 eval "ac_cv_func_unsetenv_noproto=yes"
40123 echo "$as_me: failed program was:" >&5
40124 sed 's/^/| /' conftest.$ac_ext >&5
40126 eval "ac_cv_func_unsetenv_noproto=no"
40128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40130 echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv_noproto" >&5
40131 echo "${ECHO_T}$ac_cv_func_unsetenv_noproto" >&6
40132 if test "$ac_cv_func_unsetenv_noproto" = yes; then
40134 cat >>confdefs.h <<\_ACEOF
40135 #define NEED_UNSETENV_PROTO 1
40142 if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then
40143 echo "$as_me:$LINENO: checking if gethostname needs a prototype" >&5
40144 echo $ECHO_N "checking if gethostname needs a prototype... $ECHO_C" >&6
40145 if test "${ac_cv_func_gethostname_noproto+set}" = set; then
40146 echo $ECHO_N "(cached) $ECHO_C" >&6
40148 cat >conftest.$ac_ext <<_ACEOF
40151 cat confdefs.h >>conftest.$ac_ext
40152 cat >>conftest.$ac_ext <<_ACEOF
40153 /* end confdefs.h. */
40154 #include <unistd.h>
40158 struct foo { int foo; } xx;
40159 extern int gethostname (struct foo*);
40166 rm -f conftest.$ac_objext
40167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40168 (eval $ac_compile) 2>conftest.er1
40170 grep -v '^ *+' conftest.er1 >conftest.err
40172 cat conftest.err >&5
40173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40174 (exit $ac_status); } &&
40175 { ac_try='test -z "$ac_c_werror_flag"
40176 || test ! -s conftest.err'
40177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40178 (eval $ac_try) 2>&5
40180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40181 (exit $ac_status); }; } &&
40182 { ac_try='test -s conftest.$ac_objext'
40183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40184 (eval $ac_try) 2>&5
40186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40187 (exit $ac_status); }; }; then
40188 eval "ac_cv_func_gethostname_noproto=yes"
40190 echo "$as_me: failed program was:" >&5
40191 sed 's/^/| /' conftest.$ac_ext >&5
40193 eval "ac_cv_func_gethostname_noproto=no"
40195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40197 echo "$as_me:$LINENO: result: $ac_cv_func_gethostname_noproto" >&5
40198 echo "${ECHO_T}$ac_cv_func_gethostname_noproto" >&6
40199 if test "$ac_cv_func_gethostname_noproto" = yes; then
40201 cat >>confdefs.h <<\_ACEOF
40202 #define NEED_GETHOSTNAME_PROTO 1
40209 if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
40210 echo "$as_me:$LINENO: checking if mkstemp needs a prototype" >&5
40211 echo $ECHO_N "checking if mkstemp needs a prototype... $ECHO_C" >&6
40212 if test "${ac_cv_func_mkstemp_noproto+set}" = set; then
40213 echo $ECHO_N "(cached) $ECHO_C" >&6
40215 cat >conftest.$ac_ext <<_ACEOF
40218 cat confdefs.h >>conftest.$ac_ext
40219 cat >>conftest.$ac_ext <<_ACEOF
40220 /* end confdefs.h. */
40221 #include <unistd.h>
40225 struct foo { int foo; } xx;
40226 extern int mkstemp (struct foo*);
40233 rm -f conftest.$ac_objext
40234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40235 (eval $ac_compile) 2>conftest.er1
40237 grep -v '^ *+' conftest.er1 >conftest.err
40239 cat conftest.err >&5
40240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40241 (exit $ac_status); } &&
40242 { ac_try='test -z "$ac_c_werror_flag"
40243 || test ! -s conftest.err'
40244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40245 (eval $ac_try) 2>&5
40247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40248 (exit $ac_status); }; } &&
40249 { ac_try='test -s conftest.$ac_objext'
40250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40251 (eval $ac_try) 2>&5
40253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40254 (exit $ac_status); }; }; then
40255 eval "ac_cv_func_mkstemp_noproto=yes"
40257 echo "$as_me: failed program was:" >&5
40258 sed 's/^/| /' conftest.$ac_ext >&5
40260 eval "ac_cv_func_mkstemp_noproto=no"
40262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40264 echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp_noproto" >&5
40265 echo "${ECHO_T}$ac_cv_func_mkstemp_noproto" >&6
40266 if test "$ac_cv_func_mkstemp_noproto" = yes; then
40268 cat >>confdefs.h <<\_ACEOF
40269 #define NEED_MKSTEMP_PROTO 1
40276 if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
40277 echo "$as_me:$LINENO: checking if getusershell needs a prototype" >&5
40278 echo $ECHO_N "checking if getusershell needs a prototype... $ECHO_C" >&6
40279 if test "${ac_cv_func_getusershell_noproto+set}" = set; then
40280 echo $ECHO_N "(cached) $ECHO_C" >&6
40282 cat >conftest.$ac_ext <<_ACEOF
40285 cat confdefs.h >>conftest.$ac_ext
40286 cat >>conftest.$ac_ext <<_ACEOF
40287 /* end confdefs.h. */
40288 #include <unistd.h>
40292 struct foo { int foo; } xx;
40293 extern int getusershell (struct foo*);
40300 rm -f conftest.$ac_objext
40301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40302 (eval $ac_compile) 2>conftest.er1
40304 grep -v '^ *+' conftest.er1 >conftest.err
40306 cat conftest.err >&5
40307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40308 (exit $ac_status); } &&
40309 { ac_try='test -z "$ac_c_werror_flag"
40310 || test ! -s conftest.err'
40311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40312 (eval $ac_try) 2>&5
40314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40315 (exit $ac_status); }; } &&
40316 { ac_try='test -s conftest.$ac_objext'
40317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40318 (eval $ac_try) 2>&5
40320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40321 (exit $ac_status); }; }; then
40322 eval "ac_cv_func_getusershell_noproto=yes"
40324 echo "$as_me: failed program was:" >&5
40325 sed 's/^/| /' conftest.$ac_ext >&5
40327 eval "ac_cv_func_getusershell_noproto=no"
40329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40331 echo "$as_me:$LINENO: result: $ac_cv_func_getusershell_noproto" >&5
40332 echo "${ECHO_T}$ac_cv_func_getusershell_noproto" >&6
40333 if test "$ac_cv_func_getusershell_noproto" = yes; then
40335 cat >>confdefs.h <<\_ACEOF
40336 #define NEED_GETUSERSHELL_PROTO 1
40344 if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then
40345 echo "$as_me:$LINENO: checking if inet_aton needs a prototype" >&5
40346 echo $ECHO_N "checking if inet_aton needs a prototype... $ECHO_C" >&6
40347 if test "${ac_cv_func_inet_aton_noproto+set}" = set; then
40348 echo $ECHO_N "(cached) $ECHO_C" >&6
40350 cat >conftest.$ac_ext <<_ACEOF
40353 cat confdefs.h >>conftest.$ac_ext
40354 cat >>conftest.$ac_ext <<_ACEOF
40355 /* end confdefs.h. */
40357 #ifdef HAVE_SYS_TYPES_H
40358 #include <sys/types.h>
40360 #ifdef HAVE_SYS_SOCKET_H
40361 #include <sys/socket.h>
40363 #ifdef HAVE_NETINET_IN_H
40364 #include <netinet/in.h>
40366 #ifdef HAVE_ARPA_INET_H
40367 #include <arpa/inet.h>
40372 struct foo { int foo; } xx;
40373 extern int inet_aton (struct foo*);
40380 rm -f conftest.$ac_objext
40381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40382 (eval $ac_compile) 2>conftest.er1
40384 grep -v '^ *+' conftest.er1 >conftest.err
40386 cat conftest.err >&5
40387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40388 (exit $ac_status); } &&
40389 { ac_try='test -z "$ac_c_werror_flag"
40390 || test ! -s conftest.err'
40391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40392 (eval $ac_try) 2>&5
40394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40395 (exit $ac_status); }; } &&
40396 { ac_try='test -s conftest.$ac_objext'
40397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40398 (eval $ac_try) 2>&5
40400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40401 (exit $ac_status); }; }; then
40402 eval "ac_cv_func_inet_aton_noproto=yes"
40404 echo "$as_me: failed program was:" >&5
40405 sed 's/^/| /' conftest.$ac_ext >&5
40407 eval "ac_cv_func_inet_aton_noproto=no"
40409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40411 echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton_noproto" >&5
40412 echo "${ECHO_T}$ac_cv_func_inet_aton_noproto" >&6
40413 if test "$ac_cv_func_inet_aton_noproto" = yes; then
40415 cat >>confdefs.h <<\_ACEOF
40416 #define NEED_INET_ATON_PROTO 1
40426 echo "$as_me:$LINENO: checking for crypt" >&5
40427 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
40428 if test "${ac_cv_funclib_crypt+set}" = set; then
40429 echo $ECHO_N "(cached) $ECHO_C" >&6
40432 if eval "test \"\$ac_cv_func_crypt\" != yes" ; then
40433 ac_save_LIBS="$LIBS"
40434 for ac_lib in "" crypt; do
40440 *) ac_lib="-l$ac_lib" ;;
40442 LIBS=" $ac_lib $ac_save_LIBS"
40443 cat >conftest.$ac_ext <<_ACEOF
40446 cat confdefs.h >>conftest.$ac_ext
40447 cat >>conftest.$ac_ext <<_ACEOF
40448 /* end confdefs.h. */
40458 rm -f conftest.$ac_objext conftest$ac_exeext
40459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40460 (eval $ac_link) 2>conftest.er1
40462 grep -v '^ *+' conftest.er1 >conftest.err
40464 cat conftest.err >&5
40465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40466 (exit $ac_status); } &&
40467 { ac_try='test -z "$ac_c_werror_flag"
40468 || test ! -s conftest.err'
40469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40470 (eval $ac_try) 2>&5
40472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40473 (exit $ac_status); }; } &&
40474 { ac_try='test -s conftest$ac_exeext'
40475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40476 (eval $ac_try) 2>&5
40478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40479 (exit $ac_status); }; }; then
40480 eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
40482 echo "$as_me: failed program was:" >&5
40483 sed 's/^/| /' conftest.$ac_ext >&5
40486 rm -f conftest.err conftest.$ac_objext \
40487 conftest$ac_exeext conftest.$ac_ext
40489 eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
40490 LIBS="$ac_save_LIBS"
40496 eval "ac_res=\$ac_cv_funclib_crypt"
40500 for ac_func in crypt
40502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40503 echo "$as_me:$LINENO: checking for $ac_func" >&5
40504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40505 if eval "test \"\${$as_ac_var+set}\" = set"; then
40506 echo $ECHO_N "(cached) $ECHO_C" >&6
40508 cat >conftest.$ac_ext <<_ACEOF
40511 cat confdefs.h >>conftest.$ac_ext
40512 cat >>conftest.$ac_ext <<_ACEOF
40513 /* end confdefs.h. */
40514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40516 #define $ac_func innocuous_$ac_func
40518 /* System header to define __stub macros and hopefully few prototypes,
40519 which can conflict with char $ac_func (); below.
40520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40521 <limits.h> exists even on freestanding compilers. */
40524 # include <limits.h>
40526 # include <assert.h>
40531 /* Override any gcc2 internal prototype to avoid an error. */
40536 /* We use char because int might match the return type of a gcc2
40537 builtin and then its argument prototype would still apply. */
40539 /* The GNU C library defines this for functions which it implements
40540 to always fail with ENOSYS. Some functions are actually named
40541 something starting with __ and the normal name is an alias. */
40542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40545 char (*f) () = $ac_func;
40554 return f != $ac_func;
40559 rm -f conftest.$ac_objext conftest$ac_exeext
40560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40561 (eval $ac_link) 2>conftest.er1
40563 grep -v '^ *+' conftest.er1 >conftest.err
40565 cat conftest.err >&5
40566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40567 (exit $ac_status); } &&
40568 { ac_try='test -z "$ac_c_werror_flag"
40569 || test ! -s conftest.err'
40570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40571 (eval $ac_try) 2>&5
40573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40574 (exit $ac_status); }; } &&
40575 { ac_try='test -s conftest$ac_exeext'
40576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40577 (eval $ac_try) 2>&5
40579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40580 (exit $ac_status); }; }; then
40581 eval "$as_ac_var=yes"
40583 echo "$as_me: failed program was:" >&5
40584 sed 's/^/| /' conftest.$ac_ext >&5
40586 eval "$as_ac_var=no"
40588 rm -f conftest.err conftest.$ac_objext \
40589 conftest$ac_exeext conftest.$ac_ext
40591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40592 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40593 if test `eval echo '${'$as_ac_var'}'` = yes; then
40594 cat >>confdefs.h <<_ACEOF
40595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40603 eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
40604 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
40605 eval "LIB_crypt=$ac_res"
40609 eval "ac_cv_func_crypt=yes"
40611 cat >>confdefs.h <<_ACEOF
40612 #define $ac_tr_func 1
40615 echo "$as_me:$LINENO: result: yes" >&5
40616 echo "${ECHO_T}yes" >&6
40619 eval "ac_cv_func_crypt=no"
40621 echo "$as_me:$LINENO: result: no" >&5
40622 echo "${ECHO_T}no" >&6
40625 eval "ac_cv_func_crypt=yes"
40626 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
40627 cat >>confdefs.h <<_ACEOF
40628 #define $ac_tr_func 1
40631 cat >>confdefs.h <<_ACEOF
40632 #define $ac_tr_lib 1
40635 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
40636 echo "${ECHO_T}yes, in $ac_res" >&6
40645 echo "$as_me:$LINENO: checking if gethostbyname is compatible with system prototype" >&5
40646 echo $ECHO_N "checking if gethostbyname is compatible with system prototype... $ECHO_C" >&6
40647 if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then
40648 echo $ECHO_N "(cached) $ECHO_C" >&6
40650 cat >conftest.$ac_ext <<_ACEOF
40653 cat confdefs.h >>conftest.$ac_ext
40654 cat >>conftest.$ac_ext <<_ACEOF
40655 /* end confdefs.h. */
40657 #ifdef HAVE_SYS_TYPES_H
40658 #include <sys/types.h>
40660 #ifdef HAVE_SYS_SOCKET_H
40661 #include <sys/socket.h>
40663 #ifdef HAVE_NETINET_IN_H
40664 #include <netinet/in.h>
40666 #ifdef HAVE_ARPA_INET_H
40667 #include <arpa/inet.h>
40669 #ifdef HAVE_NETDB_H
40676 struct hostent *gethostbyname(const char *);
40681 rm -f conftest.$ac_objext
40682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40683 (eval $ac_compile) 2>conftest.er1
40685 grep -v '^ *+' conftest.er1 >conftest.err
40687 cat conftest.err >&5
40688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40689 (exit $ac_status); } &&
40690 { ac_try='test -z "$ac_c_werror_flag"
40691 || test ! -s conftest.err'
40692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40693 (eval $ac_try) 2>&5
40695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40696 (exit $ac_status); }; } &&
40697 { ac_try='test -s conftest.$ac_objext'
40698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40699 (eval $ac_try) 2>&5
40701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40702 (exit $ac_status); }; }; then
40703 eval "ac_cv_func_gethostbyname_proto_compat=yes"
40705 echo "$as_me: failed program was:" >&5
40706 sed 's/^/| /' conftest.$ac_ext >&5
40708 eval "ac_cv_func_gethostbyname_proto_compat=no"
40710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40712 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_proto_compat" >&5
40713 echo "${ECHO_T}$ac_cv_func_gethostbyname_proto_compat" >&6
40715 if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then
40717 cat >>confdefs.h <<\_ACEOF
40718 #define GETHOSTBYNAME_PROTO_COMPATIBLE 1
40726 echo "$as_me:$LINENO: checking if gethostbyaddr is compatible with system prototype" >&5
40727 echo $ECHO_N "checking if gethostbyaddr is compatible with system prototype... $ECHO_C" >&6
40728 if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then
40729 echo $ECHO_N "(cached) $ECHO_C" >&6
40731 cat >conftest.$ac_ext <<_ACEOF
40734 cat confdefs.h >>conftest.$ac_ext
40735 cat >>conftest.$ac_ext <<_ACEOF
40736 /* end confdefs.h. */
40738 #ifdef HAVE_SYS_TYPES_H
40739 #include <sys/types.h>
40741 #ifdef HAVE_SYS_SOCKET_H
40742 #include <sys/socket.h>
40744 #ifdef HAVE_NETINET_IN_H
40745 #include <netinet/in.h>
40747 #ifdef HAVE_ARPA_INET_H
40748 #include <arpa/inet.h>
40750 #ifdef HAVE_NETDB_H
40757 struct hostent *gethostbyaddr(const void *, size_t, int);
40762 rm -f conftest.$ac_objext
40763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40764 (eval $ac_compile) 2>conftest.er1
40766 grep -v '^ *+' conftest.er1 >conftest.err
40768 cat conftest.err >&5
40769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40770 (exit $ac_status); } &&
40771 { ac_try='test -z "$ac_c_werror_flag"
40772 || test ! -s conftest.err'
40773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40774 (eval $ac_try) 2>&5
40776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40777 (exit $ac_status); }; } &&
40778 { ac_try='test -s conftest.$ac_objext'
40779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40780 (eval $ac_try) 2>&5
40782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40783 (exit $ac_status); }; }; then
40784 eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
40786 echo "$as_me: failed program was:" >&5
40787 sed 's/^/| /' conftest.$ac_ext >&5
40789 eval "ac_cv_func_gethostbyaddr_proto_compat=no"
40791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40793 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5
40794 echo "${ECHO_T}$ac_cv_func_gethostbyaddr_proto_compat" >&6
40796 if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then
40798 cat >>confdefs.h <<\_ACEOF
40799 #define GETHOSTBYADDR_PROTO_COMPATIBLE 1
40807 echo "$as_me:$LINENO: checking if getservbyname is compatible with system prototype" >&5
40808 echo $ECHO_N "checking if getservbyname is compatible with system prototype... $ECHO_C" >&6
40809 if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then
40810 echo $ECHO_N "(cached) $ECHO_C" >&6
40812 cat >conftest.$ac_ext <<_ACEOF
40815 cat confdefs.h >>conftest.$ac_ext
40816 cat >>conftest.$ac_ext <<_ACEOF
40817 /* end confdefs.h. */
40819 #ifdef HAVE_SYS_TYPES_H
40820 #include <sys/types.h>
40822 #ifdef HAVE_SYS_SOCKET_H
40823 #include <sys/socket.h>
40825 #ifdef HAVE_NETINET_IN_H
40826 #include <netinet/in.h>
40828 #ifdef HAVE_ARPA_INET_H
40829 #include <arpa/inet.h>
40831 #ifdef HAVE_NETDB_H
40838 struct servent *getservbyname(const char *, const char *);
40843 rm -f conftest.$ac_objext
40844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40845 (eval $ac_compile) 2>conftest.er1
40847 grep -v '^ *+' conftest.er1 >conftest.err
40849 cat conftest.err >&5
40850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40851 (exit $ac_status); } &&
40852 { ac_try='test -z "$ac_c_werror_flag"
40853 || test ! -s conftest.err'
40854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40855 (eval $ac_try) 2>&5
40857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40858 (exit $ac_status); }; } &&
40859 { ac_try='test -s conftest.$ac_objext'
40860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40861 (eval $ac_try) 2>&5
40863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40864 (exit $ac_status); }; }; then
40865 eval "ac_cv_func_getservbyname_proto_compat=yes"
40867 echo "$as_me: failed program was:" >&5
40868 sed 's/^/| /' conftest.$ac_ext >&5
40870 eval "ac_cv_func_getservbyname_proto_compat=no"
40872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40874 echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_proto_compat" >&5
40875 echo "${ECHO_T}$ac_cv_func_getservbyname_proto_compat" >&6
40877 if test "$ac_cv_func_getservbyname_proto_compat" = yes; then
40879 cat >>confdefs.h <<\_ACEOF
40880 #define GETSERVBYNAME_PROTO_COMPATIBLE 1
40888 echo "$as_me:$LINENO: checking if getsockname is compatible with system prototype" >&5
40889 echo $ECHO_N "checking if getsockname is compatible with system prototype... $ECHO_C" >&6
40890 if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then
40891 echo $ECHO_N "(cached) $ECHO_C" >&6
40893 cat >conftest.$ac_ext <<_ACEOF
40896 cat confdefs.h >>conftest.$ac_ext
40897 cat >>conftest.$ac_ext <<_ACEOF
40898 /* end confdefs.h. */
40900 #ifdef HAVE_SYS_TYPES_H
40901 #include <sys/types.h>
40903 #ifdef HAVE_SYS_SOCKET_H
40904 #include <sys/socket.h>
40910 int getsockname(int, struct sockaddr*, socklen_t*);
40915 rm -f conftest.$ac_objext
40916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40917 (eval $ac_compile) 2>conftest.er1
40919 grep -v '^ *+' conftest.er1 >conftest.err
40921 cat conftest.err >&5
40922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40923 (exit $ac_status); } &&
40924 { ac_try='test -z "$ac_c_werror_flag"
40925 || test ! -s conftest.err'
40926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40927 (eval $ac_try) 2>&5
40929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40930 (exit $ac_status); }; } &&
40931 { ac_try='test -s conftest.$ac_objext'
40932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40933 (eval $ac_try) 2>&5
40935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40936 (exit $ac_status); }; }; then
40937 eval "ac_cv_func_getsockname_proto_compat=yes"
40939 echo "$as_me: failed program was:" >&5
40940 sed 's/^/| /' conftest.$ac_ext >&5
40942 eval "ac_cv_func_getsockname_proto_compat=no"
40944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40946 echo "$as_me:$LINENO: result: $ac_cv_func_getsockname_proto_compat" >&5
40947 echo "${ECHO_T}$ac_cv_func_getsockname_proto_compat" >&6
40949 if test "$ac_cv_func_getsockname_proto_compat" = yes; then
40951 cat >>confdefs.h <<\_ACEOF
40952 #define GETSOCKNAME_PROTO_COMPATIBLE 1
40960 echo "$as_me:$LINENO: checking if openlog is compatible with system prototype" >&5
40961 echo $ECHO_N "checking if openlog is compatible with system prototype... $ECHO_C" >&6
40962 if test "${ac_cv_func_openlog_proto_compat+set}" = set; then
40963 echo $ECHO_N "(cached) $ECHO_C" >&6
40965 cat >conftest.$ac_ext <<_ACEOF
40968 cat confdefs.h >>conftest.$ac_ext
40969 cat >>conftest.$ac_ext <<_ACEOF
40970 /* end confdefs.h. */
40972 #ifdef HAVE_SYSLOG_H
40973 #include <syslog.h>
40979 void openlog(const char *, int, int);
40984 rm -f conftest.$ac_objext
40985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40986 (eval $ac_compile) 2>conftest.er1
40988 grep -v '^ *+' conftest.er1 >conftest.err
40990 cat conftest.err >&5
40991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40992 (exit $ac_status); } &&
40993 { ac_try='test -z "$ac_c_werror_flag"
40994 || test ! -s conftest.err'
40995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40996 (eval $ac_try) 2>&5
40998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40999 (exit $ac_status); }; } &&
41000 { ac_try='test -s conftest.$ac_objext'
41001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41002 (eval $ac_try) 2>&5
41004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41005 (exit $ac_status); }; }; then
41006 eval "ac_cv_func_openlog_proto_compat=yes"
41008 echo "$as_me: failed program was:" >&5
41009 sed 's/^/| /' conftest.$ac_ext >&5
41011 eval "ac_cv_func_openlog_proto_compat=no"
41013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41015 echo "$as_me:$LINENO: result: $ac_cv_func_openlog_proto_compat" >&5
41016 echo "${ECHO_T}$ac_cv_func_openlog_proto_compat" >&6
41018 if test "$ac_cv_func_openlog_proto_compat" = yes; then
41020 cat >>confdefs.h <<\_ACEOF
41021 #define OPENLOG_PROTO_COMPATIBLE 1
41029 if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then
41030 echo "$as_me:$LINENO: checking if crypt needs a prototype" >&5
41031 echo $ECHO_N "checking if crypt needs a prototype... $ECHO_C" >&6
41032 if test "${ac_cv_func_crypt_noproto+set}" = set; then
41033 echo $ECHO_N "(cached) $ECHO_C" >&6
41035 cat >conftest.$ac_ext <<_ACEOF
41038 cat confdefs.h >>conftest.$ac_ext
41039 cat >>conftest.$ac_ext <<_ACEOF
41040 /* end confdefs.h. */
41042 #ifdef HAVE_CRYPT_H
41045 #ifdef HAVE_UNISTD_H
41046 #include <unistd.h>
41052 struct foo { int foo; } xx;
41053 extern int crypt (struct foo*);
41060 rm -f conftest.$ac_objext
41061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41062 (eval $ac_compile) 2>conftest.er1
41064 grep -v '^ *+' conftest.er1 >conftest.err
41066 cat conftest.err >&5
41067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41068 (exit $ac_status); } &&
41069 { ac_try='test -z "$ac_c_werror_flag"
41070 || test ! -s conftest.err'
41071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41072 (eval $ac_try) 2>&5
41074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41075 (exit $ac_status); }; } &&
41076 { ac_try='test -s conftest.$ac_objext'
41077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41078 (eval $ac_try) 2>&5
41080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41081 (exit $ac_status); }; }; then
41082 eval "ac_cv_func_crypt_noproto=yes"
41084 echo "$as_me: failed program was:" >&5
41085 sed 's/^/| /' conftest.$ac_ext >&5
41087 eval "ac_cv_func_crypt_noproto=no"
41089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41091 echo "$as_me:$LINENO: result: $ac_cv_func_crypt_noproto" >&5
41092 echo "${ECHO_T}$ac_cv_func_crypt_noproto" >&6
41093 if test "$ac_cv_func_crypt_noproto" = yes; then
41095 cat >>confdefs.h <<\_ACEOF
41096 #define NEED_CRYPT_PROTO 1
41105 echo "$as_me:$LINENO: checking for h_errno" >&5
41106 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
41107 if test "${ac_cv_var_h_errno+set}" = set; then
41108 echo $ECHO_N "(cached) $ECHO_C" >&6
41112 cat >conftest.$ac_ext <<_ACEOF
41115 cat confdefs.h >>conftest.$ac_ext
41116 cat >>conftest.$ac_ext <<_ACEOF
41117 /* end confdefs.h. */
41118 #ifdef HAVE_SYS_TYPES_H
41119 #include <sys/types.h>
41121 #ifdef HAVE_NETDB_H
41124 void * foo() { return &h_errno; }
41133 rm -f conftest.$ac_objext conftest$ac_exeext
41134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41135 (eval $ac_link) 2>conftest.er1
41137 grep -v '^ *+' conftest.er1 >conftest.err
41139 cat conftest.err >&5
41140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41141 (exit $ac_status); } &&
41142 { ac_try='test -z "$ac_c_werror_flag"
41143 || test ! -s conftest.err'
41144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41145 (eval $ac_try) 2>&5
41147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41148 (exit $ac_status); }; } &&
41149 { ac_try='test -s conftest$ac_exeext'
41150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41151 (eval $ac_try) 2>&5
41153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41154 (exit $ac_status); }; }; then
41155 ac_cv_var_h_errno=yes
41157 echo "$as_me: failed program was:" >&5
41158 sed 's/^/| /' conftest.$ac_ext >&5
41160 ac_cv_var_h_errno=no
41162 rm -f conftest.err conftest.$ac_objext \
41163 conftest$ac_exeext conftest.$ac_ext
41164 if test "$ac_cv_var_h_errno" != yes ; then
41165 cat >conftest.$ac_ext <<_ACEOF
41168 cat confdefs.h >>conftest.$ac_ext
41169 cat >>conftest.$ac_ext <<_ACEOF
41170 /* end confdefs.h. */
41171 extern int h_errno;
41172 int foo() { return h_errno; }
41181 rm -f conftest.$ac_objext conftest$ac_exeext
41182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41183 (eval $ac_link) 2>conftest.er1
41185 grep -v '^ *+' conftest.er1 >conftest.err
41187 cat conftest.err >&5
41188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41189 (exit $ac_status); } &&
41190 { ac_try='test -z "$ac_c_werror_flag"
41191 || test ! -s conftest.err'
41192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41193 (eval $ac_try) 2>&5
41195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41196 (exit $ac_status); }; } &&
41197 { ac_try='test -s conftest$ac_exeext'
41198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41199 (eval $ac_try) 2>&5
41201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41202 (exit $ac_status); }; }; then
41203 ac_cv_var_h_errno=yes
41205 echo "$as_me: failed program was:" >&5
41206 sed 's/^/| /' conftest.$ac_ext >&5
41208 ac_cv_var_h_errno=no
41210 rm -f conftest.err conftest.$ac_objext \
41211 conftest$ac_exeext conftest.$ac_ext
41216 ac_foo=`eval echo \\$ac_cv_var_h_errno`
41217 echo "$as_me:$LINENO: result: $ac_foo" >&5
41218 echo "${ECHO_T}$ac_foo" >&6
41219 if test "$ac_foo" = yes; then
41221 cat >>confdefs.h <<_ACEOF
41222 #define HAVE_H_ERRNO 1
41226 echo "$as_me:$LINENO: checking if h_errno is properly declared" >&5
41227 echo $ECHO_N "checking if h_errno is properly declared... $ECHO_C" >&6
41228 if test "${ac_cv_var_h_errno_declaration+set}" = set; then
41229 echo $ECHO_N "(cached) $ECHO_C" >&6
41232 cat >conftest.$ac_ext <<_ACEOF
41235 cat confdefs.h >>conftest.$ac_ext
41236 cat >>conftest.$ac_ext <<_ACEOF
41237 /* end confdefs.h. */
41238 #ifdef HAVE_SYS_TYPES_H
41239 #include <sys/types.h>
41241 #ifdef HAVE_NETDB_H
41244 extern struct { int foo; } h_errno;
41253 rm -f conftest.$ac_objext
41254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41255 (eval $ac_compile) 2>conftest.er1
41257 grep -v '^ *+' conftest.er1 >conftest.err
41259 cat conftest.err >&5
41260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41261 (exit $ac_status); } &&
41262 { ac_try='test -z "$ac_c_werror_flag"
41263 || test ! -s conftest.err'
41264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41265 (eval $ac_try) 2>&5
41267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41268 (exit $ac_status); }; } &&
41269 { ac_try='test -s conftest.$ac_objext'
41270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41271 (eval $ac_try) 2>&5
41273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41274 (exit $ac_status); }; }; then
41275 eval "ac_cv_var_h_errno_declaration=no"
41277 echo "$as_me: failed program was:" >&5
41278 sed 's/^/| /' conftest.$ac_ext >&5
41280 eval "ac_cv_var_h_errno_declaration=yes"
41282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41289 echo "$as_me:$LINENO: result: $ac_cv_var_h_errno_declaration" >&5
41290 echo "${ECHO_T}$ac_cv_var_h_errno_declaration" >&6
41291 if eval "test \"\$ac_cv_var_h_errno_declaration\" = yes"; then
41293 cat >>confdefs.h <<\_ACEOF
41294 #define HAVE_H_ERRNO_DECLARATION 1
41304 echo "$as_me:$LINENO: checking for h_errlist" >&5
41305 echo $ECHO_N "checking for h_errlist... $ECHO_C" >&6
41306 if test "${ac_cv_var_h_errlist+set}" = set; then
41307 echo $ECHO_N "(cached) $ECHO_C" >&6
41311 cat >conftest.$ac_ext <<_ACEOF
41314 cat confdefs.h >>conftest.$ac_ext
41315 cat >>conftest.$ac_ext <<_ACEOF
41316 /* end confdefs.h. */
41317 #ifdef HAVE_NETDB_H
41320 void * foo() { return &h_errlist; }
41329 rm -f conftest.$ac_objext conftest$ac_exeext
41330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41331 (eval $ac_link) 2>conftest.er1
41333 grep -v '^ *+' conftest.er1 >conftest.err
41335 cat conftest.err >&5
41336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41337 (exit $ac_status); } &&
41338 { ac_try='test -z "$ac_c_werror_flag"
41339 || test ! -s conftest.err'
41340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41341 (eval $ac_try) 2>&5
41343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41344 (exit $ac_status); }; } &&
41345 { ac_try='test -s conftest$ac_exeext'
41346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41347 (eval $ac_try) 2>&5
41349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41350 (exit $ac_status); }; }; then
41351 ac_cv_var_h_errlist=yes
41353 echo "$as_me: failed program was:" >&5
41354 sed 's/^/| /' conftest.$ac_ext >&5
41356 ac_cv_var_h_errlist=no
41358 rm -f conftest.err conftest.$ac_objext \
41359 conftest$ac_exeext conftest.$ac_ext
41360 if test "$ac_cv_var_h_errlist" != yes ; then
41361 cat >conftest.$ac_ext <<_ACEOF
41364 cat confdefs.h >>conftest.$ac_ext
41365 cat >>conftest.$ac_ext <<_ACEOF
41366 /* end confdefs.h. */
41367 extern int h_errlist;
41368 int foo() { return h_errlist; }
41377 rm -f conftest.$ac_objext conftest$ac_exeext
41378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41379 (eval $ac_link) 2>conftest.er1
41381 grep -v '^ *+' conftest.er1 >conftest.err
41383 cat conftest.err >&5
41384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41385 (exit $ac_status); } &&
41386 { ac_try='test -z "$ac_c_werror_flag"
41387 || test ! -s conftest.err'
41388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41389 (eval $ac_try) 2>&5
41391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41392 (exit $ac_status); }; } &&
41393 { ac_try='test -s conftest$ac_exeext'
41394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41395 (eval $ac_try) 2>&5
41397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41398 (exit $ac_status); }; }; then
41399 ac_cv_var_h_errlist=yes
41401 echo "$as_me: failed program was:" >&5
41402 sed 's/^/| /' conftest.$ac_ext >&5
41404 ac_cv_var_h_errlist=no
41406 rm -f conftest.err conftest.$ac_objext \
41407 conftest$ac_exeext conftest.$ac_ext
41412 ac_foo=`eval echo \\$ac_cv_var_h_errlist`
41413 echo "$as_me:$LINENO: result: $ac_foo" >&5
41414 echo "${ECHO_T}$ac_foo" >&6
41415 if test "$ac_foo" = yes; then
41417 cat >>confdefs.h <<_ACEOF
41418 #define HAVE_H_ERRLIST 1
41422 echo "$as_me:$LINENO: checking if h_errlist is properly declared" >&5
41423 echo $ECHO_N "checking if h_errlist is properly declared... $ECHO_C" >&6
41424 if test "${ac_cv_var_h_errlist_declaration+set}" = set; then
41425 echo $ECHO_N "(cached) $ECHO_C" >&6
41428 cat >conftest.$ac_ext <<_ACEOF
41431 cat confdefs.h >>conftest.$ac_ext
41432 cat >>conftest.$ac_ext <<_ACEOF
41433 /* end confdefs.h. */
41434 #ifdef HAVE_NETDB_H
41437 extern struct { int foo; } h_errlist;
41446 rm -f conftest.$ac_objext
41447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41448 (eval $ac_compile) 2>conftest.er1
41450 grep -v '^ *+' conftest.er1 >conftest.err
41452 cat conftest.err >&5
41453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41454 (exit $ac_status); } &&
41455 { ac_try='test -z "$ac_c_werror_flag"
41456 || test ! -s conftest.err'
41457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41458 (eval $ac_try) 2>&5
41460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41461 (exit $ac_status); }; } &&
41462 { ac_try='test -s conftest.$ac_objext'
41463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41464 (eval $ac_try) 2>&5
41466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41467 (exit $ac_status); }; }; then
41468 eval "ac_cv_var_h_errlist_declaration=no"
41470 echo "$as_me: failed program was:" >&5
41471 sed 's/^/| /' conftest.$ac_ext >&5
41473 eval "ac_cv_var_h_errlist_declaration=yes"
41475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41482 echo "$as_me:$LINENO: result: $ac_cv_var_h_errlist_declaration" >&5
41483 echo "${ECHO_T}$ac_cv_var_h_errlist_declaration" >&6
41484 if eval "test \"\$ac_cv_var_h_errlist_declaration\" = yes"; then
41486 cat >>confdefs.h <<\_ACEOF
41487 #define HAVE_H_ERRLIST_DECLARATION 1
41497 echo "$as_me:$LINENO: checking for h_nerr" >&5
41498 echo $ECHO_N "checking for h_nerr... $ECHO_C" >&6
41499 if test "${ac_cv_var_h_nerr+set}" = set; then
41500 echo $ECHO_N "(cached) $ECHO_C" >&6
41504 cat >conftest.$ac_ext <<_ACEOF
41507 cat confdefs.h >>conftest.$ac_ext
41508 cat >>conftest.$ac_ext <<_ACEOF
41509 /* end confdefs.h. */
41510 #ifdef HAVE_NETDB_H
41513 void * foo() { return &h_nerr; }
41522 rm -f conftest.$ac_objext conftest$ac_exeext
41523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41524 (eval $ac_link) 2>conftest.er1
41526 grep -v '^ *+' conftest.er1 >conftest.err
41528 cat conftest.err >&5
41529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41530 (exit $ac_status); } &&
41531 { ac_try='test -z "$ac_c_werror_flag"
41532 || test ! -s conftest.err'
41533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41534 (eval $ac_try) 2>&5
41536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41537 (exit $ac_status); }; } &&
41538 { ac_try='test -s conftest$ac_exeext'
41539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41540 (eval $ac_try) 2>&5
41542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41543 (exit $ac_status); }; }; then
41544 ac_cv_var_h_nerr=yes
41546 echo "$as_me: failed program was:" >&5
41547 sed 's/^/| /' conftest.$ac_ext >&5
41549 ac_cv_var_h_nerr=no
41551 rm -f conftest.err conftest.$ac_objext \
41552 conftest$ac_exeext conftest.$ac_ext
41553 if test "$ac_cv_var_h_nerr" != yes ; then
41554 cat >conftest.$ac_ext <<_ACEOF
41557 cat confdefs.h >>conftest.$ac_ext
41558 cat >>conftest.$ac_ext <<_ACEOF
41559 /* end confdefs.h. */
41561 int foo() { return h_nerr; }
41570 rm -f conftest.$ac_objext conftest$ac_exeext
41571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41572 (eval $ac_link) 2>conftest.er1
41574 grep -v '^ *+' conftest.er1 >conftest.err
41576 cat conftest.err >&5
41577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41578 (exit $ac_status); } &&
41579 { ac_try='test -z "$ac_c_werror_flag"
41580 || test ! -s conftest.err'
41581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41582 (eval $ac_try) 2>&5
41584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41585 (exit $ac_status); }; } &&
41586 { ac_try='test -s conftest$ac_exeext'
41587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41588 (eval $ac_try) 2>&5
41590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41591 (exit $ac_status); }; }; then
41592 ac_cv_var_h_nerr=yes
41594 echo "$as_me: failed program was:" >&5
41595 sed 's/^/| /' conftest.$ac_ext >&5
41597 ac_cv_var_h_nerr=no
41599 rm -f conftest.err conftest.$ac_objext \
41600 conftest$ac_exeext conftest.$ac_ext
41605 ac_foo=`eval echo \\$ac_cv_var_h_nerr`
41606 echo "$as_me:$LINENO: result: $ac_foo" >&5
41607 echo "${ECHO_T}$ac_foo" >&6
41608 if test "$ac_foo" = yes; then
41610 cat >>confdefs.h <<_ACEOF
41611 #define HAVE_H_NERR 1
41615 echo "$as_me:$LINENO: checking if h_nerr is properly declared" >&5
41616 echo $ECHO_N "checking if h_nerr is properly declared... $ECHO_C" >&6
41617 if test "${ac_cv_var_h_nerr_declaration+set}" = set; then
41618 echo $ECHO_N "(cached) $ECHO_C" >&6
41621 cat >conftest.$ac_ext <<_ACEOF
41624 cat confdefs.h >>conftest.$ac_ext
41625 cat >>conftest.$ac_ext <<_ACEOF
41626 /* end confdefs.h. */
41627 #ifdef HAVE_NETDB_H
41630 extern struct { int foo; } h_nerr;
41639 rm -f conftest.$ac_objext
41640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41641 (eval $ac_compile) 2>conftest.er1
41643 grep -v '^ *+' conftest.er1 >conftest.err
41645 cat conftest.err >&5
41646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41647 (exit $ac_status); } &&
41648 { ac_try='test -z "$ac_c_werror_flag"
41649 || test ! -s conftest.err'
41650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41651 (eval $ac_try) 2>&5
41653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41654 (exit $ac_status); }; } &&
41655 { ac_try='test -s conftest.$ac_objext'
41656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41657 (eval $ac_try) 2>&5
41659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41660 (exit $ac_status); }; }; then
41661 eval "ac_cv_var_h_nerr_declaration=no"
41663 echo "$as_me: failed program was:" >&5
41664 sed 's/^/| /' conftest.$ac_ext >&5
41666 eval "ac_cv_var_h_nerr_declaration=yes"
41668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41675 echo "$as_me:$LINENO: result: $ac_cv_var_h_nerr_declaration" >&5
41676 echo "${ECHO_T}$ac_cv_var_h_nerr_declaration" >&6
41677 if eval "test \"\$ac_cv_var_h_nerr_declaration\" = yes"; then
41679 cat >>confdefs.h <<\_ACEOF
41680 #define HAVE_H_NERR_DECLARATION 1
41690 echo "$as_me:$LINENO: checking for __progname" >&5
41691 echo $ECHO_N "checking for __progname... $ECHO_C" >&6
41692 if test "${ac_cv_var___progname+set}" = set; then
41693 echo $ECHO_N "(cached) $ECHO_C" >&6
41697 cat >conftest.$ac_ext <<_ACEOF
41700 cat confdefs.h >>conftest.$ac_ext
41701 cat >>conftest.$ac_ext <<_ACEOF
41702 /* end confdefs.h. */
41706 void * foo() { return &__progname; }
41715 rm -f conftest.$ac_objext conftest$ac_exeext
41716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41717 (eval $ac_link) 2>conftest.er1
41719 grep -v '^ *+' conftest.er1 >conftest.err
41721 cat conftest.err >&5
41722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41723 (exit $ac_status); } &&
41724 { ac_try='test -z "$ac_c_werror_flag"
41725 || test ! -s conftest.err'
41726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41727 (eval $ac_try) 2>&5
41729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41730 (exit $ac_status); }; } &&
41731 { ac_try='test -s conftest$ac_exeext'
41732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41733 (eval $ac_try) 2>&5
41735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41736 (exit $ac_status); }; }; then
41737 ac_cv_var___progname=yes
41739 echo "$as_me: failed program was:" >&5
41740 sed 's/^/| /' conftest.$ac_ext >&5
41742 ac_cv_var___progname=no
41744 rm -f conftest.err conftest.$ac_objext \
41745 conftest$ac_exeext conftest.$ac_ext
41746 if test "$ac_cv_var___progname" != yes ; then
41747 cat >conftest.$ac_ext <<_ACEOF
41750 cat confdefs.h >>conftest.$ac_ext
41751 cat >>conftest.$ac_ext <<_ACEOF
41752 /* end confdefs.h. */
41753 extern int __progname;
41754 int foo() { return __progname; }
41763 rm -f conftest.$ac_objext conftest$ac_exeext
41764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41765 (eval $ac_link) 2>conftest.er1
41767 grep -v '^ *+' conftest.er1 >conftest.err
41769 cat conftest.err >&5
41770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41771 (exit $ac_status); } &&
41772 { ac_try='test -z "$ac_c_werror_flag"
41773 || test ! -s conftest.err'
41774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41775 (eval $ac_try) 2>&5
41777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41778 (exit $ac_status); }; } &&
41779 { ac_try='test -s conftest$ac_exeext'
41780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41781 (eval $ac_try) 2>&5
41783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41784 (exit $ac_status); }; }; then
41785 ac_cv_var___progname=yes
41787 echo "$as_me: failed program was:" >&5
41788 sed 's/^/| /' conftest.$ac_ext >&5
41790 ac_cv_var___progname=no
41792 rm -f conftest.err conftest.$ac_objext \
41793 conftest$ac_exeext conftest.$ac_ext
41798 ac_foo=`eval echo \\$ac_cv_var___progname`
41799 echo "$as_me:$LINENO: result: $ac_foo" >&5
41800 echo "${ECHO_T}$ac_foo" >&6
41801 if test "$ac_foo" = yes; then
41803 cat >>confdefs.h <<_ACEOF
41804 #define HAVE___PROGNAME 1
41808 echo "$as_me:$LINENO: checking if __progname is properly declared" >&5
41809 echo $ECHO_N "checking if __progname is properly declared... $ECHO_C" >&6
41810 if test "${ac_cv_var___progname_declaration+set}" = set; then
41811 echo $ECHO_N "(cached) $ECHO_C" >&6
41814 cat >conftest.$ac_ext <<_ACEOF
41817 cat confdefs.h >>conftest.$ac_ext
41818 cat >>conftest.$ac_ext <<_ACEOF
41819 /* end confdefs.h. */
41823 extern struct { int foo; } __progname;
41827 __progname.foo = 1;
41832 rm -f conftest.$ac_objext
41833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41834 (eval $ac_compile) 2>conftest.er1
41836 grep -v '^ *+' conftest.er1 >conftest.err
41838 cat conftest.err >&5
41839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41840 (exit $ac_status); } &&
41841 { ac_try='test -z "$ac_c_werror_flag"
41842 || test ! -s conftest.err'
41843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41844 (eval $ac_try) 2>&5
41846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41847 (exit $ac_status); }; } &&
41848 { ac_try='test -s conftest.$ac_objext'
41849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41850 (eval $ac_try) 2>&5
41852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41853 (exit $ac_status); }; }; then
41854 eval "ac_cv_var___progname_declaration=no"
41856 echo "$as_me: failed program was:" >&5
41857 sed 's/^/| /' conftest.$ac_ext >&5
41859 eval "ac_cv_var___progname_declaration=yes"
41861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41868 echo "$as_me:$LINENO: result: $ac_cv_var___progname_declaration" >&5
41869 echo "${ECHO_T}$ac_cv_var___progname_declaration" >&6
41870 if eval "test \"\$ac_cv_var___progname_declaration\" = yes"; then
41872 cat >>confdefs.h <<\_ACEOF
41873 #define HAVE___PROGNAME_DECLARATION 1
41883 echo "$as_me:$LINENO: checking if optarg is properly declared" >&5
41884 echo $ECHO_N "checking if optarg is properly declared... $ECHO_C" >&6
41885 if test "${ac_cv_var_optarg_declaration+set}" = set; then
41886 echo $ECHO_N "(cached) $ECHO_C" >&6
41889 cat >conftest.$ac_ext <<_ACEOF
41892 cat confdefs.h >>conftest.$ac_ext
41893 cat >>conftest.$ac_ext <<_ACEOF
41894 /* end confdefs.h. */
41895 #include <stdlib.h>
41896 #ifdef HAVE_UNISTD_H
41897 #include <unistd.h>
41899 extern struct { int foo; } optarg;
41908 rm -f conftest.$ac_objext
41909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41910 (eval $ac_compile) 2>conftest.er1
41912 grep -v '^ *+' conftest.er1 >conftest.err
41914 cat conftest.err >&5
41915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41916 (exit $ac_status); } &&
41917 { ac_try='test -z "$ac_c_werror_flag"
41918 || test ! -s conftest.err'
41919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41920 (eval $ac_try) 2>&5
41922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41923 (exit $ac_status); }; } &&
41924 { ac_try='test -s conftest.$ac_objext'
41925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41926 (eval $ac_try) 2>&5
41928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41929 (exit $ac_status); }; }; then
41930 eval "ac_cv_var_optarg_declaration=no"
41932 echo "$as_me: failed program was:" >&5
41933 sed 's/^/| /' conftest.$ac_ext >&5
41935 eval "ac_cv_var_optarg_declaration=yes"
41937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41944 echo "$as_me:$LINENO: result: $ac_cv_var_optarg_declaration" >&5
41945 echo "${ECHO_T}$ac_cv_var_optarg_declaration" >&6
41946 if eval "test \"\$ac_cv_var_optarg_declaration\" = yes"; then
41948 cat >>confdefs.h <<\_ACEOF
41949 #define HAVE_OPTARG_DECLARATION 1
41956 echo "$as_me:$LINENO: checking if optind is properly declared" >&5
41957 echo $ECHO_N "checking if optind is properly declared... $ECHO_C" >&6
41958 if test "${ac_cv_var_optind_declaration+set}" = set; then
41959 echo $ECHO_N "(cached) $ECHO_C" >&6
41962 cat >conftest.$ac_ext <<_ACEOF
41965 cat confdefs.h >>conftest.$ac_ext
41966 cat >>conftest.$ac_ext <<_ACEOF
41967 /* end confdefs.h. */
41968 #include <stdlib.h>
41969 #ifdef HAVE_UNISTD_H
41970 #include <unistd.h>
41972 extern struct { int foo; } optind;
41981 rm -f conftest.$ac_objext
41982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41983 (eval $ac_compile) 2>conftest.er1
41985 grep -v '^ *+' conftest.er1 >conftest.err
41987 cat conftest.err >&5
41988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41989 (exit $ac_status); } &&
41990 { ac_try='test -z "$ac_c_werror_flag"
41991 || test ! -s conftest.err'
41992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41993 (eval $ac_try) 2>&5
41995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41996 (exit $ac_status); }; } &&
41997 { ac_try='test -s conftest.$ac_objext'
41998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41999 (eval $ac_try) 2>&5
42001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42002 (exit $ac_status); }; }; then
42003 eval "ac_cv_var_optind_declaration=no"
42005 echo "$as_me: failed program was:" >&5
42006 sed 's/^/| /' conftest.$ac_ext >&5
42008 eval "ac_cv_var_optind_declaration=yes"
42010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42017 echo "$as_me:$LINENO: result: $ac_cv_var_optind_declaration" >&5
42018 echo "${ECHO_T}$ac_cv_var_optind_declaration" >&6
42019 if eval "test \"\$ac_cv_var_optind_declaration\" = yes"; then
42021 cat >>confdefs.h <<\_ACEOF
42022 #define HAVE_OPTIND_DECLARATION 1
42029 echo "$as_me:$LINENO: checking if opterr is properly declared" >&5
42030 echo $ECHO_N "checking if opterr is properly declared... $ECHO_C" >&6
42031 if test "${ac_cv_var_opterr_declaration+set}" = set; then
42032 echo $ECHO_N "(cached) $ECHO_C" >&6
42035 cat >conftest.$ac_ext <<_ACEOF
42038 cat confdefs.h >>conftest.$ac_ext
42039 cat >>conftest.$ac_ext <<_ACEOF
42040 /* end confdefs.h. */
42041 #include <stdlib.h>
42042 #ifdef HAVE_UNISTD_H
42043 #include <unistd.h>
42045 extern struct { int foo; } opterr;
42054 rm -f conftest.$ac_objext
42055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42056 (eval $ac_compile) 2>conftest.er1
42058 grep -v '^ *+' conftest.er1 >conftest.err
42060 cat conftest.err >&5
42061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42062 (exit $ac_status); } &&
42063 { ac_try='test -z "$ac_c_werror_flag"
42064 || test ! -s conftest.err'
42065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42066 (eval $ac_try) 2>&5
42068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42069 (exit $ac_status); }; } &&
42070 { ac_try='test -s conftest.$ac_objext'
42071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42072 (eval $ac_try) 2>&5
42074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42075 (exit $ac_status); }; }; then
42076 eval "ac_cv_var_opterr_declaration=no"
42078 echo "$as_me: failed program was:" >&5
42079 sed 's/^/| /' conftest.$ac_ext >&5
42081 eval "ac_cv_var_opterr_declaration=yes"
42083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42090 echo "$as_me:$LINENO: result: $ac_cv_var_opterr_declaration" >&5
42091 echo "${ECHO_T}$ac_cv_var_opterr_declaration" >&6
42092 if eval "test \"\$ac_cv_var_opterr_declaration\" = yes"; then
42094 cat >>confdefs.h <<\_ACEOF
42095 #define HAVE_OPTERR_DECLARATION 1
42102 echo "$as_me:$LINENO: checking if optopt is properly declared" >&5
42103 echo $ECHO_N "checking if optopt is properly declared... $ECHO_C" >&6
42104 if test "${ac_cv_var_optopt_declaration+set}" = set; then
42105 echo $ECHO_N "(cached) $ECHO_C" >&6
42108 cat >conftest.$ac_ext <<_ACEOF
42111 cat confdefs.h >>conftest.$ac_ext
42112 cat >>conftest.$ac_ext <<_ACEOF
42113 /* end confdefs.h. */
42114 #include <stdlib.h>
42115 #ifdef HAVE_UNISTD_H
42116 #include <unistd.h>
42118 extern struct { int foo; } optopt;
42127 rm -f conftest.$ac_objext
42128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42129 (eval $ac_compile) 2>conftest.er1
42131 grep -v '^ *+' conftest.er1 >conftest.err
42133 cat conftest.err >&5
42134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42135 (exit $ac_status); } &&
42136 { ac_try='test -z "$ac_c_werror_flag"
42137 || test ! -s conftest.err'
42138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42139 (eval $ac_try) 2>&5
42141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42142 (exit $ac_status); }; } &&
42143 { ac_try='test -s conftest.$ac_objext'
42144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42145 (eval $ac_try) 2>&5
42147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42148 (exit $ac_status); }; }; then
42149 eval "ac_cv_var_optopt_declaration=no"
42151 echo "$as_me: failed program was:" >&5
42152 sed 's/^/| /' conftest.$ac_ext >&5
42154 eval "ac_cv_var_optopt_declaration=yes"
42156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42163 echo "$as_me:$LINENO: result: $ac_cv_var_optopt_declaration" >&5
42164 echo "${ECHO_T}$ac_cv_var_optopt_declaration" >&6
42165 if eval "test \"\$ac_cv_var_optopt_declaration\" = yes"; then
42167 cat >>confdefs.h <<\_ACEOF
42168 #define HAVE_OPTOPT_DECLARATION 1
42176 echo "$as_me:$LINENO: checking if environ is properly declared" >&5
42177 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
42178 if test "${ac_cv_var_environ_declaration+set}" = set; then
42179 echo $ECHO_N "(cached) $ECHO_C" >&6
42182 cat >conftest.$ac_ext <<_ACEOF
42185 cat confdefs.h >>conftest.$ac_ext
42186 cat >>conftest.$ac_ext <<_ACEOF
42187 /* end confdefs.h. */
42188 #include <stdlib.h>
42189 extern struct { int foo; } environ;
42198 rm -f conftest.$ac_objext
42199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42200 (eval $ac_compile) 2>conftest.er1
42202 grep -v '^ *+' conftest.er1 >conftest.err
42204 cat conftest.err >&5
42205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42206 (exit $ac_status); } &&
42207 { ac_try='test -z "$ac_c_werror_flag"
42208 || test ! -s conftest.err'
42209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42210 (eval $ac_try) 2>&5
42212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42213 (exit $ac_status); }; } &&
42214 { ac_try='test -s conftest.$ac_objext'
42215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42216 (eval $ac_try) 2>&5
42218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42219 (exit $ac_status); }; }; then
42220 eval "ac_cv_var_environ_declaration=no"
42222 echo "$as_me: failed program was:" >&5
42223 sed 's/^/| /' conftest.$ac_ext >&5
42225 eval "ac_cv_var_environ_declaration=yes"
42227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42234 echo "$as_me:$LINENO: result: $ac_cv_var_environ_declaration" >&5
42235 echo "${ECHO_T}$ac_cv_var_environ_declaration" >&6
42236 if eval "test \"\$ac_cv_var_environ_declaration\" = yes"; then
42238 cat >>confdefs.h <<\_ACEOF
42239 #define HAVE_ENVIRON_DECLARATION 1
42249 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
42250 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
42251 if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then
42252 echo $ECHO_N "(cached) $ECHO_C" >&6
42255 cat >conftest.$ac_ext <<_ACEOF
42258 cat confdefs.h >>conftest.$ac_ext
42259 cat >>conftest.$ac_ext <<_ACEOF
42260 /* end confdefs.h. */
42265 struct tm x; x.tm_gmtoff;
42270 rm -f conftest.$ac_objext
42271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42272 (eval $ac_compile) 2>conftest.er1
42274 grep -v '^ *+' conftest.er1 >conftest.err
42276 cat conftest.err >&5
42277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42278 (exit $ac_status); } &&
42279 { ac_try='test -z "$ac_c_werror_flag"
42280 || test ! -s conftest.err'
42281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42282 (eval $ac_try) 2>&5
42284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42285 (exit $ac_status); }; } &&
42286 { ac_try='test -s conftest.$ac_objext'
42287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42288 (eval $ac_try) 2>&5
42290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42291 (exit $ac_status); }; }; then
42292 ac_cv_type_struct_tm_tm_gmtoff=yes
42294 echo "$as_me: failed program was:" >&5
42295 sed 's/^/| /' conftest.$ac_ext >&5
42297 ac_cv_type_struct_tm_tm_gmtoff=no
42299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42301 echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
42302 echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6
42303 if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then
42306 cat >>confdefs.h <<\_ACEOF
42307 #define HAVE_STRUCT_TM_TM_GMTOFF 1
42316 echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
42317 echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
42318 if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then
42319 echo $ECHO_N "(cached) $ECHO_C" >&6
42322 cat >conftest.$ac_ext <<_ACEOF
42325 cat confdefs.h >>conftest.$ac_ext
42326 cat >>conftest.$ac_ext <<_ACEOF
42327 /* end confdefs.h. */
42332 struct tm x; x.tm_zone;
42337 rm -f conftest.$ac_objext
42338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42339 (eval $ac_compile) 2>conftest.er1
42341 grep -v '^ *+' conftest.er1 >conftest.err
42343 cat conftest.err >&5
42344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42345 (exit $ac_status); } &&
42346 { ac_try='test -z "$ac_c_werror_flag"
42347 || test ! -s conftest.err'
42348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42349 (eval $ac_try) 2>&5
42351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42352 (exit $ac_status); }; } &&
42353 { ac_try='test -s conftest.$ac_objext'
42354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42355 (eval $ac_try) 2>&5
42357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42358 (exit $ac_status); }; }; then
42359 ac_cv_type_struct_tm_tm_zone=yes
42361 echo "$as_me: failed program was:" >&5
42362 sed 's/^/| /' conftest.$ac_ext >&5
42364 ac_cv_type_struct_tm_tm_zone=no
42366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42368 echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_zone" >&5
42369 echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6
42370 if test "$ac_cv_type_struct_tm_tm_zone" = yes; then
42373 cat >>confdefs.h <<\_ACEOF
42374 #define HAVE_STRUCT_TM_TM_ZONE 1
42384 echo "$as_me:$LINENO: checking for timezone" >&5
42385 echo $ECHO_N "checking for timezone... $ECHO_C" >&6
42386 if test "${ac_cv_var_timezone+set}" = set; then
42387 echo $ECHO_N "(cached) $ECHO_C" >&6
42391 cat >conftest.$ac_ext <<_ACEOF
42394 cat confdefs.h >>conftest.$ac_ext
42395 cat >>conftest.$ac_ext <<_ACEOF
42396 /* end confdefs.h. */
42398 void * foo() { return &timezone; }
42407 rm -f conftest.$ac_objext conftest$ac_exeext
42408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42409 (eval $ac_link) 2>conftest.er1
42411 grep -v '^ *+' conftest.er1 >conftest.err
42413 cat conftest.err >&5
42414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42415 (exit $ac_status); } &&
42416 { ac_try='test -z "$ac_c_werror_flag"
42417 || test ! -s conftest.err'
42418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42419 (eval $ac_try) 2>&5
42421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42422 (exit $ac_status); }; } &&
42423 { ac_try='test -s conftest$ac_exeext'
42424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42425 (eval $ac_try) 2>&5
42427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42428 (exit $ac_status); }; }; then
42429 ac_cv_var_timezone=yes
42431 echo "$as_me: failed program was:" >&5
42432 sed 's/^/| /' conftest.$ac_ext >&5
42434 ac_cv_var_timezone=no
42436 rm -f conftest.err conftest.$ac_objext \
42437 conftest$ac_exeext conftest.$ac_ext
42438 if test "$ac_cv_var_timezone" != yes ; then
42439 cat >conftest.$ac_ext <<_ACEOF
42442 cat confdefs.h >>conftest.$ac_ext
42443 cat >>conftest.$ac_ext <<_ACEOF
42444 /* end confdefs.h. */
42445 extern int timezone;
42446 int foo() { return timezone; }
42455 rm -f conftest.$ac_objext conftest$ac_exeext
42456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42457 (eval $ac_link) 2>conftest.er1
42459 grep -v '^ *+' conftest.er1 >conftest.err
42461 cat conftest.err >&5
42462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42463 (exit $ac_status); } &&
42464 { ac_try='test -z "$ac_c_werror_flag"
42465 || test ! -s conftest.err'
42466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42467 (eval $ac_try) 2>&5
42469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42470 (exit $ac_status); }; } &&
42471 { ac_try='test -s conftest$ac_exeext'
42472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42473 (eval $ac_try) 2>&5
42475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42476 (exit $ac_status); }; }; then
42477 ac_cv_var_timezone=yes
42479 echo "$as_me: failed program was:" >&5
42480 sed 's/^/| /' conftest.$ac_ext >&5
42482 ac_cv_var_timezone=no
42484 rm -f conftest.err conftest.$ac_objext \
42485 conftest$ac_exeext conftest.$ac_ext
42490 ac_foo=`eval echo \\$ac_cv_var_timezone`
42491 echo "$as_me:$LINENO: result: $ac_foo" >&5
42492 echo "${ECHO_T}$ac_foo" >&6
42493 if test "$ac_foo" = yes; then
42495 cat >>confdefs.h <<_ACEOF
42496 #define HAVE_TIMEZONE 1
42500 echo "$as_me:$LINENO: checking if timezone is properly declared" >&5
42501 echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6
42502 if test "${ac_cv_var_timezone_declaration+set}" = set; then
42503 echo $ECHO_N "(cached) $ECHO_C" >&6
42506 cat >conftest.$ac_ext <<_ACEOF
42509 cat confdefs.h >>conftest.$ac_ext
42510 cat >>conftest.$ac_ext <<_ACEOF
42511 /* end confdefs.h. */
42513 extern struct { int foo; } timezone;
42522 rm -f conftest.$ac_objext
42523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42524 (eval $ac_compile) 2>conftest.er1
42526 grep -v '^ *+' conftest.er1 >conftest.err
42528 cat conftest.err >&5
42529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42530 (exit $ac_status); } &&
42531 { ac_try='test -z "$ac_c_werror_flag"
42532 || test ! -s conftest.err'
42533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42534 (eval $ac_try) 2>&5
42536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42537 (exit $ac_status); }; } &&
42538 { ac_try='test -s conftest.$ac_objext'
42539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42540 (eval $ac_try) 2>&5
42542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42543 (exit $ac_status); }; }; then
42544 eval "ac_cv_var_timezone_declaration=no"
42546 echo "$as_me: failed program was:" >&5
42547 sed 's/^/| /' conftest.$ac_ext >&5
42549 eval "ac_cv_var_timezone_declaration=yes"
42551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42558 echo "$as_me:$LINENO: result: $ac_cv_var_timezone_declaration" >&5
42559 echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6
42560 if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then
42562 cat >>confdefs.h <<\_ACEOF
42563 #define HAVE_TIMEZONE_DECLARATION 1
42572 echo "$as_me:$LINENO: checking for altzone" >&5
42573 echo $ECHO_N "checking for altzone... $ECHO_C" >&6
42574 if test "${ac_cv_var_altzone+set}" = set; then
42575 echo $ECHO_N "(cached) $ECHO_C" >&6
42579 cat >conftest.$ac_ext <<_ACEOF
42582 cat confdefs.h >>conftest.$ac_ext
42583 cat >>conftest.$ac_ext <<_ACEOF
42584 /* end confdefs.h. */
42586 void * foo() { return &altzone; }
42595 rm -f conftest.$ac_objext conftest$ac_exeext
42596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42597 (eval $ac_link) 2>conftest.er1
42599 grep -v '^ *+' conftest.er1 >conftest.err
42601 cat conftest.err >&5
42602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42603 (exit $ac_status); } &&
42604 { ac_try='test -z "$ac_c_werror_flag"
42605 || test ! -s conftest.err'
42606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42607 (eval $ac_try) 2>&5
42609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42610 (exit $ac_status); }; } &&
42611 { ac_try='test -s conftest$ac_exeext'
42612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42613 (eval $ac_try) 2>&5
42615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42616 (exit $ac_status); }; }; then
42617 ac_cv_var_altzone=yes
42619 echo "$as_me: failed program was:" >&5
42620 sed 's/^/| /' conftest.$ac_ext >&5
42622 ac_cv_var_altzone=no
42624 rm -f conftest.err conftest.$ac_objext \
42625 conftest$ac_exeext conftest.$ac_ext
42626 if test "$ac_cv_var_altzone" != yes ; then
42627 cat >conftest.$ac_ext <<_ACEOF
42630 cat confdefs.h >>conftest.$ac_ext
42631 cat >>conftest.$ac_ext <<_ACEOF
42632 /* end confdefs.h. */
42633 extern int altzone;
42634 int foo() { return altzone; }
42643 rm -f conftest.$ac_objext conftest$ac_exeext
42644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42645 (eval $ac_link) 2>conftest.er1
42647 grep -v '^ *+' conftest.er1 >conftest.err
42649 cat conftest.err >&5
42650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42651 (exit $ac_status); } &&
42652 { ac_try='test -z "$ac_c_werror_flag"
42653 || test ! -s conftest.err'
42654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42655 (eval $ac_try) 2>&5
42657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42658 (exit $ac_status); }; } &&
42659 { ac_try='test -s conftest$ac_exeext'
42660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42661 (eval $ac_try) 2>&5
42663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42664 (exit $ac_status); }; }; then
42665 ac_cv_var_altzone=yes
42667 echo "$as_me: failed program was:" >&5
42668 sed 's/^/| /' conftest.$ac_ext >&5
42670 ac_cv_var_altzone=no
42672 rm -f conftest.err conftest.$ac_objext \
42673 conftest$ac_exeext conftest.$ac_ext
42678 ac_foo=`eval echo \\$ac_cv_var_altzone`
42679 echo "$as_me:$LINENO: result: $ac_foo" >&5
42680 echo "${ECHO_T}$ac_foo" >&6
42681 if test "$ac_foo" = yes; then
42683 cat >>confdefs.h <<_ACEOF
42684 #define HAVE_ALTZONE 1
42688 echo "$as_me:$LINENO: checking if altzone is properly declared" >&5
42689 echo $ECHO_N "checking if altzone is properly declared... $ECHO_C" >&6
42690 if test "${ac_cv_var_altzone_declaration+set}" = set; then
42691 echo $ECHO_N "(cached) $ECHO_C" >&6
42694 cat >conftest.$ac_ext <<_ACEOF
42697 cat confdefs.h >>conftest.$ac_ext
42698 cat >>conftest.$ac_ext <<_ACEOF
42699 /* end confdefs.h. */
42701 extern struct { int foo; } altzone;
42710 rm -f conftest.$ac_objext
42711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42712 (eval $ac_compile) 2>conftest.er1
42714 grep -v '^ *+' conftest.er1 >conftest.err
42716 cat conftest.err >&5
42717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42718 (exit $ac_status); } &&
42719 { ac_try='test -z "$ac_c_werror_flag"
42720 || test ! -s conftest.err'
42721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42722 (eval $ac_try) 2>&5
42724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42725 (exit $ac_status); }; } &&
42726 { ac_try='test -s conftest.$ac_objext'
42727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42728 (eval $ac_try) 2>&5
42730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42731 (exit $ac_status); }; }; then
42732 eval "ac_cv_var_altzone_declaration=no"
42734 echo "$as_me: failed program was:" >&5
42735 sed 's/^/| /' conftest.$ac_ext >&5
42737 eval "ac_cv_var_altzone_declaration=yes"
42739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42746 echo "$as_me:$LINENO: result: $ac_cv_var_altzone_declaration" >&5
42747 echo "${ECHO_T}$ac_cv_var_altzone_declaration" >&6
42748 if eval "test \"\$ac_cv_var_altzone_declaration\" = yes"; then
42750 cat >>confdefs.h <<\_ACEOF
42751 #define HAVE_ALTZONE_DECLARATION 1
42762 cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
42763 echo "$as_me:$LINENO: checking for sa_family_t" >&5
42764 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
42765 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
42766 echo $ECHO_N "(cached) $ECHO_C" >&6
42768 cat >conftest.$ac_ext <<_ACEOF
42771 cat confdefs.h >>conftest.$ac_ext
42772 cat >>conftest.$ac_ext <<_ACEOF
42773 /* end confdefs.h. */
42774 #include <sys/types.h>
42776 #include <stdlib.h>
42777 #include <stddef.h>
42779 #include <sys/socket.h>
42788 rm -f conftest.$ac_objext
42789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42790 (eval $ac_compile) 2>conftest.er1
42792 grep -v '^ *+' conftest.er1 >conftest.err
42794 cat conftest.err >&5
42795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42796 (exit $ac_status); } &&
42797 { ac_try='test -z "$ac_c_werror_flag"
42798 || test ! -s conftest.err'
42799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42800 (eval $ac_try) 2>&5
42802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42803 (exit $ac_status); }; } &&
42804 { ac_try='test -s conftest.$ac_objext'
42805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42806 (eval $ac_try) 2>&5
42808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42809 (exit $ac_status); }; }; then
42810 eval "ac_cv_type_$cv=yes"
42812 echo "$as_me: failed program was:" >&5
42813 sed 's/^/| /' conftest.$ac_ext >&5
42815 eval "ac_cv_type_$cv=no"
42817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42819 ac_foo=`eval echo \\$ac_cv_type_$cv`
42820 echo "$as_me:$LINENO: result: $ac_foo" >&5
42821 echo "${ECHO_T}$ac_foo" >&6
42822 if test "$ac_foo" = yes; then
42823 ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
42825 echo "$as_me:$LINENO: checking for sa_family_t" >&5
42826 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
42827 if test "${ac_cv_type_sa_family_t+set}" = set; then
42828 echo $ECHO_N "(cached) $ECHO_C" >&6
42830 cat >conftest.$ac_ext <<_ACEOF
42833 cat confdefs.h >>conftest.$ac_ext
42834 cat >>conftest.$ac_ext <<_ACEOF
42835 /* end confdefs.h. */
42836 $ac_includes_default
42840 if ((sa_family_t *) 0)
42842 if (sizeof (sa_family_t))
42848 rm -f conftest.$ac_objext
42849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42850 (eval $ac_compile) 2>conftest.er1
42852 grep -v '^ *+' conftest.er1 >conftest.err
42854 cat conftest.err >&5
42855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42856 (exit $ac_status); } &&
42857 { ac_try='test -z "$ac_c_werror_flag"
42858 || test ! -s conftest.err'
42859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42860 (eval $ac_try) 2>&5
42862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42863 (exit $ac_status); }; } &&
42864 { ac_try='test -s conftest.$ac_objext'
42865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42866 (eval $ac_try) 2>&5
42868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42869 (exit $ac_status); }; }; then
42870 ac_cv_type_sa_family_t=yes
42872 echo "$as_me: failed program was:" >&5
42873 sed 's/^/| /' conftest.$ac_ext >&5
42875 ac_cv_type_sa_family_t=no
42877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42879 echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
42880 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
42881 if test $ac_cv_type_sa_family_t = yes; then
42883 cat >>confdefs.h <<_ACEOF
42884 #define HAVE_SA_FAMILY_T 1
42892 cat >>confdefs.h <<_ACEOF
42893 #define $ac_tr_hdr 1
42900 cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
42901 echo "$as_me:$LINENO: checking for socklen_t" >&5
42902 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
42903 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
42904 echo $ECHO_N "(cached) $ECHO_C" >&6
42906 cat >conftest.$ac_ext <<_ACEOF
42909 cat confdefs.h >>conftest.$ac_ext
42910 cat >>conftest.$ac_ext <<_ACEOF
42911 /* end confdefs.h. */
42912 #include <sys/types.h>
42914 #include <stdlib.h>
42915 #include <stddef.h>
42917 #include <sys/socket.h>
42926 rm -f conftest.$ac_objext
42927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42928 (eval $ac_compile) 2>conftest.er1
42930 grep -v '^ *+' conftest.er1 >conftest.err
42932 cat conftest.err >&5
42933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42934 (exit $ac_status); } &&
42935 { ac_try='test -z "$ac_c_werror_flag"
42936 || test ! -s conftest.err'
42937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42938 (eval $ac_try) 2>&5
42940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42941 (exit $ac_status); }; } &&
42942 { ac_try='test -s conftest.$ac_objext'
42943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42944 (eval $ac_try) 2>&5
42946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42947 (exit $ac_status); }; }; then
42948 eval "ac_cv_type_$cv=yes"
42950 echo "$as_me: failed program was:" >&5
42951 sed 's/^/| /' conftest.$ac_ext >&5
42953 eval "ac_cv_type_$cv=no"
42955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42957 ac_foo=`eval echo \\$ac_cv_type_$cv`
42958 echo "$as_me:$LINENO: result: $ac_foo" >&5
42959 echo "${ECHO_T}$ac_foo" >&6
42960 if test "$ac_foo" = yes; then
42961 ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
42963 echo "$as_me:$LINENO: checking for socklen_t" >&5
42964 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
42965 if test "${ac_cv_type_socklen_t+set}" = set; then
42966 echo $ECHO_N "(cached) $ECHO_C" >&6
42968 cat >conftest.$ac_ext <<_ACEOF
42971 cat confdefs.h >>conftest.$ac_ext
42972 cat >>conftest.$ac_ext <<_ACEOF
42973 /* end confdefs.h. */
42974 $ac_includes_default
42978 if ((socklen_t *) 0)
42980 if (sizeof (socklen_t))
42986 rm -f conftest.$ac_objext
42987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42988 (eval $ac_compile) 2>conftest.er1
42990 grep -v '^ *+' conftest.er1 >conftest.err
42992 cat conftest.err >&5
42993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42994 (exit $ac_status); } &&
42995 { ac_try='test -z "$ac_c_werror_flag"
42996 || test ! -s conftest.err'
42997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42998 (eval $ac_try) 2>&5
43000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43001 (exit $ac_status); }; } &&
43002 { ac_try='test -s conftest.$ac_objext'
43003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43004 (eval $ac_try) 2>&5
43006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43007 (exit $ac_status); }; }; then
43008 ac_cv_type_socklen_t=yes
43010 echo "$as_me: failed program was:" >&5
43011 sed 's/^/| /' conftest.$ac_ext >&5
43013 ac_cv_type_socklen_t=no
43015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43017 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
43018 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
43019 if test $ac_cv_type_socklen_t = yes; then
43021 cat >>confdefs.h <<_ACEOF
43022 #define HAVE_SOCKLEN_T 1
43030 cat >>confdefs.h <<_ACEOF
43031 #define $ac_tr_hdr 1
43038 cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
43039 echo "$as_me:$LINENO: checking for struct sockaddr" >&5
43040 echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
43041 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
43042 echo $ECHO_N "(cached) $ECHO_C" >&6
43044 cat >conftest.$ac_ext <<_ACEOF
43047 cat confdefs.h >>conftest.$ac_ext
43048 cat >>conftest.$ac_ext <<_ACEOF
43049 /* end confdefs.h. */
43050 #include <sys/types.h>
43052 #include <stdlib.h>
43053 #include <stddef.h>
43055 #include <sys/socket.h>
43059 struct sockaddr foo;
43064 rm -f conftest.$ac_objext
43065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43066 (eval $ac_compile) 2>conftest.er1
43068 grep -v '^ *+' conftest.er1 >conftest.err
43070 cat conftest.err >&5
43071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43072 (exit $ac_status); } &&
43073 { ac_try='test -z "$ac_c_werror_flag"
43074 || test ! -s conftest.err'
43075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43076 (eval $ac_try) 2>&5
43078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43079 (exit $ac_status); }; } &&
43080 { ac_try='test -s conftest.$ac_objext'
43081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43082 (eval $ac_try) 2>&5
43084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43085 (exit $ac_status); }; }; then
43086 eval "ac_cv_type_$cv=yes"
43088 echo "$as_me: failed program was:" >&5
43089 sed 's/^/| /' conftest.$ac_ext >&5
43091 eval "ac_cv_type_$cv=no"
43093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43095 ac_foo=`eval echo \\$ac_cv_type_$cv`
43096 echo "$as_me:$LINENO: result: $ac_foo" >&5
43097 echo "${ECHO_T}$ac_foo" >&6
43098 if test "$ac_foo" = yes; then
43099 ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
43101 echo "$as_me:$LINENO: checking for struct sockaddr" >&5
43102 echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
43103 if test "${ac_cv_type_struct_sockaddr+set}" = set; then
43104 echo $ECHO_N "(cached) $ECHO_C" >&6
43106 cat >conftest.$ac_ext <<_ACEOF
43109 cat confdefs.h >>conftest.$ac_ext
43110 cat >>conftest.$ac_ext <<_ACEOF
43111 /* end confdefs.h. */
43112 $ac_includes_default
43116 if ((struct sockaddr *) 0)
43118 if (sizeof (struct sockaddr))
43124 rm -f conftest.$ac_objext
43125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43126 (eval $ac_compile) 2>conftest.er1
43128 grep -v '^ *+' conftest.er1 >conftest.err
43130 cat conftest.err >&5
43131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43132 (exit $ac_status); } &&
43133 { ac_try='test -z "$ac_c_werror_flag"
43134 || test ! -s conftest.err'
43135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43136 (eval $ac_try) 2>&5
43138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43139 (exit $ac_status); }; } &&
43140 { ac_try='test -s conftest.$ac_objext'
43141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43142 (eval $ac_try) 2>&5
43144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43145 (exit $ac_status); }; }; then
43146 ac_cv_type_struct_sockaddr=yes
43148 echo "$as_me: failed program was:" >&5
43149 sed 's/^/| /' conftest.$ac_ext >&5
43151 ac_cv_type_struct_sockaddr=no
43153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43155 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr" >&5
43156 echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6
43157 if test $ac_cv_type_struct_sockaddr = yes; then
43159 cat >>confdefs.h <<_ACEOF
43160 #define HAVE_STRUCT_SOCKADDR 1
43168 cat >>confdefs.h <<_ACEOF
43169 #define $ac_tr_hdr 1
43176 cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
43177 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
43178 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
43179 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
43180 echo $ECHO_N "(cached) $ECHO_C" >&6
43182 cat >conftest.$ac_ext <<_ACEOF
43185 cat confdefs.h >>conftest.$ac_ext
43186 cat >>conftest.$ac_ext <<_ACEOF
43187 /* end confdefs.h. */
43188 #include <sys/types.h>
43190 #include <stdlib.h>
43191 #include <stddef.h>
43193 #include <sys/socket.h>
43197 struct sockaddr_storage foo;
43202 rm -f conftest.$ac_objext
43203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43204 (eval $ac_compile) 2>conftest.er1
43206 grep -v '^ *+' conftest.er1 >conftest.err
43208 cat conftest.err >&5
43209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43210 (exit $ac_status); } &&
43211 { ac_try='test -z "$ac_c_werror_flag"
43212 || test ! -s conftest.err'
43213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43214 (eval $ac_try) 2>&5
43216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43217 (exit $ac_status); }; } &&
43218 { ac_try='test -s conftest.$ac_objext'
43219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43220 (eval $ac_try) 2>&5
43222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43223 (exit $ac_status); }; }; then
43224 eval "ac_cv_type_$cv=yes"
43226 echo "$as_me: failed program was:" >&5
43227 sed 's/^/| /' conftest.$ac_ext >&5
43229 eval "ac_cv_type_$cv=no"
43231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43233 ac_foo=`eval echo \\$ac_cv_type_$cv`
43234 echo "$as_me:$LINENO: result: $ac_foo" >&5
43235 echo "${ECHO_T}$ac_foo" >&6
43236 if test "$ac_foo" = yes; then
43237 ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
43239 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
43240 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
43241 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
43242 echo $ECHO_N "(cached) $ECHO_C" >&6
43244 cat >conftest.$ac_ext <<_ACEOF
43247 cat confdefs.h >>conftest.$ac_ext
43248 cat >>conftest.$ac_ext <<_ACEOF
43249 /* end confdefs.h. */
43250 $ac_includes_default
43254 if ((struct sockaddr_storage *) 0)
43256 if (sizeof (struct sockaddr_storage))
43262 rm -f conftest.$ac_objext
43263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43264 (eval $ac_compile) 2>conftest.er1
43266 grep -v '^ *+' conftest.er1 >conftest.err
43268 cat conftest.err >&5
43269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43270 (exit $ac_status); } &&
43271 { ac_try='test -z "$ac_c_werror_flag"
43272 || test ! -s conftest.err'
43273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43274 (eval $ac_try) 2>&5
43276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43277 (exit $ac_status); }; } &&
43278 { ac_try='test -s conftest.$ac_objext'
43279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43280 (eval $ac_try) 2>&5
43282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43283 (exit $ac_status); }; }; then
43284 ac_cv_type_struct_sockaddr_storage=yes
43286 echo "$as_me: failed program was:" >&5
43287 sed 's/^/| /' conftest.$ac_ext >&5
43289 ac_cv_type_struct_sockaddr_storage=no
43291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43293 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
43294 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
43295 if test $ac_cv_type_struct_sockaddr_storage = yes; then
43297 cat >>confdefs.h <<_ACEOF
43298 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
43306 cat >>confdefs.h <<_ACEOF
43307 #define $ac_tr_hdr 1
43314 cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
43315 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
43316 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
43317 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
43318 echo $ECHO_N "(cached) $ECHO_C" >&6
43320 cat >conftest.$ac_ext <<_ACEOF
43323 cat confdefs.h >>conftest.$ac_ext
43324 cat >>conftest.$ac_ext <<_ACEOF
43325 /* end confdefs.h. */
43326 #include <sys/types.h>
43328 #include <stdlib.h>
43329 #include <stddef.h>
43335 struct addrinfo foo;
43340 rm -f conftest.$ac_objext
43341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43342 (eval $ac_compile) 2>conftest.er1
43344 grep -v '^ *+' conftest.er1 >conftest.err
43346 cat conftest.err >&5
43347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43348 (exit $ac_status); } &&
43349 { ac_try='test -z "$ac_c_werror_flag"
43350 || test ! -s conftest.err'
43351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43352 (eval $ac_try) 2>&5
43354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43355 (exit $ac_status); }; } &&
43356 { ac_try='test -s conftest.$ac_objext'
43357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43358 (eval $ac_try) 2>&5
43360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43361 (exit $ac_status); }; }; then
43362 eval "ac_cv_type_$cv=yes"
43364 echo "$as_me: failed program was:" >&5
43365 sed 's/^/| /' conftest.$ac_ext >&5
43367 eval "ac_cv_type_$cv=no"
43369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43371 ac_foo=`eval echo \\$ac_cv_type_$cv`
43372 echo "$as_me:$LINENO: result: $ac_foo" >&5
43373 echo "${ECHO_T}$ac_foo" >&6
43374 if test "$ac_foo" = yes; then
43375 ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
43377 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
43378 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
43379 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
43380 echo $ECHO_N "(cached) $ECHO_C" >&6
43382 cat >conftest.$ac_ext <<_ACEOF
43385 cat confdefs.h >>conftest.$ac_ext
43386 cat >>conftest.$ac_ext <<_ACEOF
43387 /* end confdefs.h. */
43388 $ac_includes_default
43392 if ((struct addrinfo *) 0)
43394 if (sizeof (struct addrinfo))
43400 rm -f conftest.$ac_objext
43401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43402 (eval $ac_compile) 2>conftest.er1
43404 grep -v '^ *+' conftest.er1 >conftest.err
43406 cat conftest.err >&5
43407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43408 (exit $ac_status); } &&
43409 { ac_try='test -z "$ac_c_werror_flag"
43410 || test ! -s conftest.err'
43411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43412 (eval $ac_try) 2>&5
43414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43415 (exit $ac_status); }; } &&
43416 { ac_try='test -s conftest.$ac_objext'
43417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43418 (eval $ac_try) 2>&5
43420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43421 (exit $ac_status); }; }; then
43422 ac_cv_type_struct_addrinfo=yes
43424 echo "$as_me: failed program was:" >&5
43425 sed 's/^/| /' conftest.$ac_ext >&5
43427 ac_cv_type_struct_addrinfo=no
43429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43431 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
43432 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
43433 if test $ac_cv_type_struct_addrinfo = yes; then
43435 cat >>confdefs.h <<_ACEOF
43436 #define HAVE_STRUCT_ADDRINFO 1
43444 cat >>confdefs.h <<_ACEOF
43445 #define $ac_tr_hdr 1
43452 cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'`
43453 echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
43454 echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
43455 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
43456 echo $ECHO_N "(cached) $ECHO_C" >&6
43458 cat >conftest.$ac_ext <<_ACEOF
43461 cat confdefs.h >>conftest.$ac_ext
43462 cat >>conftest.$ac_ext <<_ACEOF
43463 /* end confdefs.h. */
43464 #include <sys/types.h>
43466 #include <stdlib.h>
43467 #include <stddef.h>
43469 #include <ifaddrs.h>
43473 struct ifaddrs foo;
43478 rm -f conftest.$ac_objext
43479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43480 (eval $ac_compile) 2>conftest.er1
43482 grep -v '^ *+' conftest.er1 >conftest.err
43484 cat conftest.err >&5
43485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43486 (exit $ac_status); } &&
43487 { ac_try='test -z "$ac_c_werror_flag"
43488 || test ! -s conftest.err'
43489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43490 (eval $ac_try) 2>&5
43492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43493 (exit $ac_status); }; } &&
43494 { ac_try='test -s conftest.$ac_objext'
43495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43496 (eval $ac_try) 2>&5
43498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43499 (exit $ac_status); }; }; then
43500 eval "ac_cv_type_$cv=yes"
43502 echo "$as_me: failed program was:" >&5
43503 sed 's/^/| /' conftest.$ac_ext >&5
43505 eval "ac_cv_type_$cv=no"
43507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43509 ac_foo=`eval echo \\$ac_cv_type_$cv`
43510 echo "$as_me:$LINENO: result: $ac_foo" >&5
43511 echo "${ECHO_T}$ac_foo" >&6
43512 if test "$ac_foo" = yes; then
43513 ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
43515 echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
43516 echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
43517 if test "${ac_cv_type_struct_ifaddrs+set}" = set; then
43518 echo $ECHO_N "(cached) $ECHO_C" >&6
43520 cat >conftest.$ac_ext <<_ACEOF
43523 cat confdefs.h >>conftest.$ac_ext
43524 cat >>conftest.$ac_ext <<_ACEOF
43525 /* end confdefs.h. */
43526 $ac_includes_default
43530 if ((struct ifaddrs *) 0)
43532 if (sizeof (struct ifaddrs))
43538 rm -f conftest.$ac_objext
43539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43540 (eval $ac_compile) 2>conftest.er1
43542 grep -v '^ *+' conftest.er1 >conftest.err
43544 cat conftest.err >&5
43545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43546 (exit $ac_status); } &&
43547 { ac_try='test -z "$ac_c_werror_flag"
43548 || test ! -s conftest.err'
43549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43550 (eval $ac_try) 2>&5
43552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43553 (exit $ac_status); }; } &&
43554 { ac_try='test -s conftest.$ac_objext'
43555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43556 (eval $ac_try) 2>&5
43558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43559 (exit $ac_status); }; }; then
43560 ac_cv_type_struct_ifaddrs=yes
43562 echo "$as_me: failed program was:" >&5
43563 sed 's/^/| /' conftest.$ac_ext >&5
43565 ac_cv_type_struct_ifaddrs=no
43567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43569 echo "$as_me:$LINENO: result: $ac_cv_type_struct_ifaddrs" >&5
43570 echo "${ECHO_T}$ac_cv_type_struct_ifaddrs" >&6
43571 if test $ac_cv_type_struct_ifaddrs = yes; then
43573 cat >>confdefs.h <<_ACEOF
43574 #define HAVE_STRUCT_IFADDRS 1
43582 cat >>confdefs.h <<_ACEOF
43583 #define $ac_tr_hdr 1
43590 cv=`echo "struct iovec" | sed 'y%./+- %__p__%'`
43591 echo "$as_me:$LINENO: checking for struct iovec" >&5
43592 echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6
43593 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
43594 echo $ECHO_N "(cached) $ECHO_C" >&6
43596 cat >conftest.$ac_ext <<_ACEOF
43599 cat confdefs.h >>conftest.$ac_ext
43600 cat >>conftest.$ac_ext <<_ACEOF
43601 /* end confdefs.h. */
43602 #include <sys/types.h>
43604 #include <stdlib.h>
43605 #include <stddef.h>
43608 #include <sys/types.h>
43609 #include <sys/uio.h>
43619 rm -f conftest.$ac_objext
43620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43621 (eval $ac_compile) 2>conftest.er1
43623 grep -v '^ *+' conftest.er1 >conftest.err
43625 cat conftest.err >&5
43626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43627 (exit $ac_status); } &&
43628 { ac_try='test -z "$ac_c_werror_flag"
43629 || test ! -s conftest.err'
43630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43631 (eval $ac_try) 2>&5
43633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43634 (exit $ac_status); }; } &&
43635 { ac_try='test -s conftest.$ac_objext'
43636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43637 (eval $ac_try) 2>&5
43639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43640 (exit $ac_status); }; }; then
43641 eval "ac_cv_type_$cv=yes"
43643 echo "$as_me: failed program was:" >&5
43644 sed 's/^/| /' conftest.$ac_ext >&5
43646 eval "ac_cv_type_$cv=no"
43648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43650 ac_foo=`eval echo \\$ac_cv_type_$cv`
43651 echo "$as_me:$LINENO: result: $ac_foo" >&5
43652 echo "${ECHO_T}$ac_foo" >&6
43653 if test "$ac_foo" = yes; then
43654 ac_tr_hdr=HAVE_`echo struct iovec | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
43656 echo "$as_me:$LINENO: checking for struct iovec" >&5
43657 echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6
43658 if test "${ac_cv_type_struct_iovec+set}" = set; then
43659 echo $ECHO_N "(cached) $ECHO_C" >&6
43661 cat >conftest.$ac_ext <<_ACEOF
43664 cat confdefs.h >>conftest.$ac_ext
43665 cat >>conftest.$ac_ext <<_ACEOF
43666 /* end confdefs.h. */
43667 $ac_includes_default
43671 if ((struct iovec *) 0)
43673 if (sizeof (struct iovec))
43679 rm -f conftest.$ac_objext
43680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43681 (eval $ac_compile) 2>conftest.er1
43683 grep -v '^ *+' conftest.er1 >conftest.err
43685 cat conftest.err >&5
43686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43687 (exit $ac_status); } &&
43688 { ac_try='test -z "$ac_c_werror_flag"
43689 || test ! -s conftest.err'
43690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43691 (eval $ac_try) 2>&5
43693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43694 (exit $ac_status); }; } &&
43695 { ac_try='test -s conftest.$ac_objext'
43696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43697 (eval $ac_try) 2>&5
43699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43700 (exit $ac_status); }; }; then
43701 ac_cv_type_struct_iovec=yes
43703 echo "$as_me: failed program was:" >&5
43704 sed 's/^/| /' conftest.$ac_ext >&5
43706 ac_cv_type_struct_iovec=no
43708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43710 echo "$as_me:$LINENO: result: $ac_cv_type_struct_iovec" >&5
43711 echo "${ECHO_T}$ac_cv_type_struct_iovec" >&6
43712 if test $ac_cv_type_struct_iovec = yes; then
43714 cat >>confdefs.h <<_ACEOF
43715 #define HAVE_STRUCT_IOVEC 1
43723 cat >>confdefs.h <<_ACEOF
43724 #define $ac_tr_hdr 1
43731 cv=`echo "struct msghdr" | sed 'y%./+- %__p__%'`
43732 echo "$as_me:$LINENO: checking for struct msghdr" >&5
43733 echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6
43734 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
43735 echo $ECHO_N "(cached) $ECHO_C" >&6
43737 cat >conftest.$ac_ext <<_ACEOF
43740 cat confdefs.h >>conftest.$ac_ext
43741 cat >>conftest.$ac_ext <<_ACEOF
43742 /* end confdefs.h. */
43743 #include <sys/types.h>
43745 #include <stdlib.h>
43746 #include <stddef.h>
43749 #include <sys/types.h>
43750 #include <sys/socket.h>
43760 rm -f conftest.$ac_objext
43761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43762 (eval $ac_compile) 2>conftest.er1
43764 grep -v '^ *+' conftest.er1 >conftest.err
43766 cat conftest.err >&5
43767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43768 (exit $ac_status); } &&
43769 { ac_try='test -z "$ac_c_werror_flag"
43770 || test ! -s conftest.err'
43771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43772 (eval $ac_try) 2>&5
43774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43775 (exit $ac_status); }; } &&
43776 { ac_try='test -s conftest.$ac_objext'
43777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43778 (eval $ac_try) 2>&5
43780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43781 (exit $ac_status); }; }; then
43782 eval "ac_cv_type_$cv=yes"
43784 echo "$as_me: failed program was:" >&5
43785 sed 's/^/| /' conftest.$ac_ext >&5
43787 eval "ac_cv_type_$cv=no"
43789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43791 ac_foo=`eval echo \\$ac_cv_type_$cv`
43792 echo "$as_me:$LINENO: result: $ac_foo" >&5
43793 echo "${ECHO_T}$ac_foo" >&6
43794 if test "$ac_foo" = yes; then
43795 ac_tr_hdr=HAVE_`echo struct msghdr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
43797 echo "$as_me:$LINENO: checking for struct msghdr" >&5
43798 echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6
43799 if test "${ac_cv_type_struct_msghdr+set}" = set; then
43800 echo $ECHO_N "(cached) $ECHO_C" >&6
43802 cat >conftest.$ac_ext <<_ACEOF
43805 cat confdefs.h >>conftest.$ac_ext
43806 cat >>conftest.$ac_ext <<_ACEOF
43807 /* end confdefs.h. */
43808 $ac_includes_default
43812 if ((struct msghdr *) 0)
43814 if (sizeof (struct msghdr))
43820 rm -f conftest.$ac_objext
43821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43822 (eval $ac_compile) 2>conftest.er1
43824 grep -v '^ *+' conftest.er1 >conftest.err
43826 cat conftest.err >&5
43827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43828 (exit $ac_status); } &&
43829 { ac_try='test -z "$ac_c_werror_flag"
43830 || test ! -s conftest.err'
43831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43832 (eval $ac_try) 2>&5
43834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43835 (exit $ac_status); }; } &&
43836 { ac_try='test -s conftest.$ac_objext'
43837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43838 (eval $ac_try) 2>&5
43840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43841 (exit $ac_status); }; }; then
43842 ac_cv_type_struct_msghdr=yes
43844 echo "$as_me: failed program was:" >&5
43845 sed 's/^/| /' conftest.$ac_ext >&5
43847 ac_cv_type_struct_msghdr=no
43849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43851 echo "$as_me:$LINENO: result: $ac_cv_type_struct_msghdr" >&5
43852 echo "${ECHO_T}$ac_cv_type_struct_msghdr" >&6
43853 if test $ac_cv_type_struct_msghdr = yes; then
43855 cat >>confdefs.h <<_ACEOF
43856 #define HAVE_STRUCT_MSGHDR 1
43864 cat >>confdefs.h <<_ACEOF
43865 #define $ac_tr_hdr 1
43873 echo "$as_me:$LINENO: checking for struct winsize" >&5
43874 echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6
43875 if test "${ac_cv_struct_winsize+set}" = set; then
43876 echo $ECHO_N "(cached) $ECHO_C" >&6
43879 ac_cv_struct_winsize=no
43880 for i in sys/termios.h sys/ioctl.h; do
43881 cat >conftest.$ac_ext <<_ACEOF
43884 cat confdefs.h >>conftest.$ac_ext
43885 cat >>conftest.$ac_ext <<_ACEOF
43886 /* end confdefs.h. */
43890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43891 $EGREP "struct[ ]*winsize" >/dev/null 2>&1; then
43892 ac_cv_struct_winsize=yes; break
43899 if test "$ac_cv_struct_winsize" = "yes"; then
43901 cat >>confdefs.h <<\_ACEOF
43902 #define HAVE_STRUCT_WINSIZE 1
43906 echo "$as_me:$LINENO: result: $ac_cv_struct_winsize" >&5
43907 echo "${ECHO_T}$ac_cv_struct_winsize" >&6
43908 cat >conftest.$ac_ext <<_ACEOF
43911 cat confdefs.h >>conftest.$ac_ext
43912 cat >>conftest.$ac_ext <<_ACEOF
43913 /* end confdefs.h. */
43914 #include <termios.h>
43917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43918 $EGREP "ws_xpixel" >/dev/null 2>&1; then
43920 cat >>confdefs.h <<\_ACEOF
43921 #define HAVE_WS_XPIXEL 1
43927 cat >conftest.$ac_ext <<_ACEOF
43930 cat confdefs.h >>conftest.$ac_ext
43931 cat >>conftest.$ac_ext <<_ACEOF
43932 /* end confdefs.h. */
43933 #include <termios.h>
43936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43937 $EGREP "ws_ypixel" >/dev/null 2>&1; then
43939 cat >>confdefs.h <<\_ACEOF
43940 #define HAVE_WS_YPIXEL 1
43950 echo "$as_me:$LINENO: checking for struct spwd" >&5
43951 echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6
43952 if test "${ac_cv_struct_spwd+set}" = set; then
43953 echo $ECHO_N "(cached) $ECHO_C" >&6
43956 cat >conftest.$ac_ext <<_ACEOF
43959 cat confdefs.h >>conftest.$ac_ext
43960 cat >>conftest.$ac_ext <<_ACEOF
43961 /* end confdefs.h. */
43963 #ifdef HAVE_SHADOW_H
43964 #include <shadow.h>
43974 rm -f conftest.$ac_objext
43975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43976 (eval $ac_compile) 2>conftest.er1
43978 grep -v '^ *+' conftest.er1 >conftest.err
43980 cat conftest.err >&5
43981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43982 (exit $ac_status); } &&
43983 { ac_try='test -z "$ac_c_werror_flag"
43984 || test ! -s conftest.err'
43985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43986 (eval $ac_try) 2>&5
43988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43989 (exit $ac_status); }; } &&
43990 { ac_try='test -s conftest.$ac_objext'
43991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43992 (eval $ac_try) 2>&5
43994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43995 (exit $ac_status); }; }; then
43996 ac_cv_struct_spwd=yes
43998 echo "$as_me: failed program was:" >&5
43999 sed 's/^/| /' conftest.$ac_ext >&5
44001 ac_cv_struct_spwd=no
44003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44007 echo "$as_me:$LINENO: result: $ac_cv_struct_spwd" >&5
44008 echo "${ECHO_T}$ac_cv_struct_spwd" >&6
44010 if test "$ac_cv_struct_spwd" = "yes"; then
44012 cat >>confdefs.h <<\_ACEOF
44013 #define HAVE_STRUCT_SPWD 1
44020 LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"
44023 LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken"
44026 # Check whether --enable-otp or --disable-otp was given.
44027 if test "${enable_otp+set}" = set; then
44028 enableval="$enable_otp"
44031 if test "$enable_otp" = yes -a "$db_type" = unknown; then
44032 { { echo "$as_me:$LINENO: error: OTP requires a NDBM/DB compatible library" >&5
44033 echo "$as_me: error: OTP requires a NDBM/DB compatible library" >&2;}
44034 { (exit 1); exit 1; }; }
44036 if test "$enable_otp" != no; then
44037 if test "$db_type" != unknown; then
44043 if test "$enable_otp" = yes; then
44045 cat >>confdefs.h <<\_ACEOF
44049 LIB_otp='$(top_builddir)/lib/otp/libotp.la'
44052 echo "$as_me:$LINENO: checking whether to enable OTP library" >&5
44053 echo $ECHO_N "checking whether to enable OTP library... $ECHO_C" >&6
44054 echo "$as_me:$LINENO: result: $enable_otp" >&5
44055 echo "${ECHO_T}$enable_otp" >&6
44058 if test "$enable_otp" = yes; then
44068 # Check whether --enable-osfc2 or --disable-osfc2 was given.
44069 if test "${enable_osfc2+set}" = set; then
44070 enableval="$enable_osfc2"
44074 if test "$enable_osfc2" = yes; then
44076 cat >>confdefs.h <<\_ACEOF
44077 #define HAVE_OSFC2 1
44080 LIB_security=-lsecurity
44085 # Check whether --enable-mmap or --disable-mmap was given.
44086 if test "${enable_mmap+set}" = set; then
44087 enableval="$enable_mmap"
44090 if test "$enable_mmap" = "no"; then
44092 cat >>confdefs.h <<\_ACEOF
44098 # Extract the first word of "nroff", so it can be a program name with args.
44099 set dummy nroff; ac_word=$2
44100 echo "$as_me:$LINENO: checking for $ac_word" >&5
44101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44102 if test "${ac_cv_path_NROFF+set}" = set; then
44103 echo $ECHO_N "(cached) $ECHO_C" >&6
44107 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
44110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44111 for as_dir in $PATH
44114 test -z "$as_dir" && as_dir=.
44115 for ac_exec_ext in '' $ac_executable_extensions; do
44116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44117 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
44118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44127 NROFF=$ac_cv_path_NROFF
44129 if test -n "$NROFF"; then
44130 echo "$as_me:$LINENO: result: $NROFF" >&5
44131 echo "${ECHO_T}$NROFF" >&6
44133 echo "$as_me:$LINENO: result: no" >&5
44134 echo "${ECHO_T}no" >&6
44137 # Extract the first word of "groff", so it can be a program name with args.
44138 set dummy groff; ac_word=$2
44139 echo "$as_me:$LINENO: checking for $ac_word" >&5
44140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44141 if test "${ac_cv_path_GROFF+set}" = set; then
44142 echo $ECHO_N "(cached) $ECHO_C" >&6
44146 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
44149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44150 for as_dir in $PATH
44153 test -z "$as_dir" && as_dir=.
44154 for ac_exec_ext in '' $ac_executable_extensions; do
44155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44156 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
44157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44166 GROFF=$ac_cv_path_GROFF
44168 if test -n "$GROFF"; then
44169 echo "$as_me:$LINENO: result: $GROFF" >&5
44170 echo "${ECHO_T}$GROFF" >&6
44172 echo "$as_me:$LINENO: result: no" >&5
44173 echo "${ECHO_T}no" >&6
44176 echo "$as_me:$LINENO: checking how to format man pages" >&5
44177 echo $ECHO_N "checking how to format man pages... $ECHO_C" >&6
44178 if test "${ac_cv_sys_man_format+set}" = set; then
44179 echo $ECHO_N "(cached) $ECHO_C" >&6
44181 cat > conftest.1 << END
44182 .Dd January 1, 1970
44190 if test "$NROFF" ; then
44191 for i in "-mdoc" "-mandoc"; do
44192 if "$NROFF" $i conftest.1 2> /dev/null | \
44193 grep Jan > /dev/null 2>&1 ; then
44194 ac_cv_sys_man_format="$NROFF $i"
44199 if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then
44200 for i in "-mdoc" "-mandoc"; do
44201 if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \
44202 grep Jan > /dev/null 2>&1 ; then
44203 ac_cv_sys_man_format="$GROFF -Tascii $i"
44208 if test "$ac_cv_sys_man_format"; then
44209 ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@"
44213 echo "$as_me:$LINENO: result: $ac_cv_sys_man_format" >&5
44214 echo "${ECHO_T}$ac_cv_sys_man_format" >&6
44215 if test "$ac_cv_sys_man_format"; then
44216 CATMAN="$ac_cv_sys_man_format"
44221 if test "$CATMAN"; then
44229 echo "$as_me:$LINENO: checking extension of pre-formatted manual pages" >&5
44230 echo $ECHO_N "checking extension of pre-formatted manual pages... $ECHO_C" >&6
44231 if test "${ac_cv_sys_catman_ext+set}" = set; then
44232 echo $ECHO_N "(cached) $ECHO_C" >&6
44234 if grep _suffix /etc/man.conf > /dev/null 2>&1; then
44235 ac_cv_sys_catman_ext=0
44237 ac_cv_sys_catman_ext=number
44241 echo "$as_me:$LINENO: result: $ac_cv_sys_catman_ext" >&5
44242 echo "${ECHO_T}$ac_cv_sys_catman_ext" >&6
44243 if test "$ac_cv_sys_catman_ext" = number; then
44244 CATMANEXT='$$section'
44253 # Check whether --with-readline or --without-readline was given.
44254 if test "${with_readline+set}" = set; then
44255 withval="$with_readline"
44259 # Check whether --with-readline-lib or --without-readline-lib was given.
44260 if test "${with_readline_lib+set}" = set; then
44261 withval="$with_readline_lib"
44262 if test "$withval" = "yes" -o "$withval" = "no"; then
44263 { { echo "$as_me:$LINENO: error: No argument for --with-readline-lib" >&5
44264 echo "$as_me: error: No argument for --with-readline-lib" >&2;}
44265 { (exit 1); exit 1; }; }
44266 elif test "X$with_readline" = "X"; then
44271 # Check whether --with-readline-include or --without-readline-include was given.
44272 if test "${with_readline_include+set}" = set; then
44273 withval="$with_readline_include"
44274 if test "$withval" = "yes" -o "$withval" = "no"; then
44275 { { echo "$as_me:$LINENO: error: No argument for --with-readline-include" >&5
44276 echo "$as_me: error: No argument for --with-readline-include" >&2;}
44277 { (exit 1); exit 1; }; }
44278 elif test "X$with_readline" = "X"; then
44283 # Check whether --with-readline-config or --without-readline-config was given.
44284 if test "${with_readline_config+set}" = set; then
44285 withval="$with_readline_config"
44291 echo "$as_me:$LINENO: checking for readline" >&5
44292 echo $ECHO_N "checking for readline... $ECHO_C" >&6
44294 case "$with_readline" in
44297 *) d="$with_readline" ;;
44303 if test "$with_readline_include" = ""; then
44304 if test -d "$i/include/readline"; then
44305 header_dirs="$header_dirs $i/include/readline"
44307 if test -d "$i/include"; then
44308 header_dirs="$header_dirs $i/include"
44311 if test "$with_readline_lib" = ""; then
44312 if test -d "$i/lib$abilibdirext"; then
44313 lib_dirs="$lib_dirs $i/lib$abilibdirext"
44318 if test "$with_readline_include"; then
44319 header_dirs="$with_readline_include $header_dirs"
44321 if test "$with_readline_lib"; then
44322 lib_dirs="$with_readline_lib $lib_dirs"
44325 if test "$with_readline_config" = ""; then
44326 with_readline_config=''
44332 case "$with_readline_config" in
44336 readline_cflags="`$with_readline_config --cflags 2>&1`"
44337 readline_libs="`$with_readline_config --libs 2>&1`"
44342 if test "$with_readline" != no; then
44343 save_CFLAGS="$CFLAGS"
44345 if test "$readline_cflags" -a "$readline_libs"; then
44346 CFLAGS="$readline_cflags $save_CFLAGS"
44347 LIBS="$readline_libs $save_LIBS"
44348 cat >conftest.$ac_ext <<_ACEOF
44351 cat confdefs.h >>conftest.$ac_ext
44352 cat >>conftest.$ac_ext <<_ACEOF
44353 /* end confdefs.h. */
44355 #include <readline.h>
44364 rm -f conftest.$ac_objext conftest$ac_exeext
44365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44366 (eval $ac_link) 2>conftest.er1
44368 grep -v '^ *+' conftest.er1 >conftest.err
44370 cat conftest.err >&5
44371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44372 (exit $ac_status); } &&
44373 { ac_try='test -z "$ac_c_werror_flag"
44374 || test ! -s conftest.err'
44375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44376 (eval $ac_try) 2>&5
44378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44379 (exit $ac_status); }; } &&
44380 { ac_try='test -s conftest$ac_exeext'
44381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44382 (eval $ac_try) 2>&5
44384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44385 (exit $ac_status); }; }; then
44387 INCLUDE_readline="$readline_cflags"
44388 LIB_readline="$readline_libs"
44389 echo "$as_me:$LINENO: result: from $with_readline_config" >&5
44390 echo "${ECHO_T}from $with_readline_config" >&6
44393 echo "$as_me: failed program was:" >&5
44394 sed 's/^/| /' conftest.$ac_ext >&5
44397 rm -f conftest.err conftest.$ac_objext \
44398 conftest$ac_exeext conftest.$ac_ext
44400 if test "$found" = no; then
44402 for i in $header_dirs; do
44403 CFLAGS="-I$i $save_CFLAGS"
44404 cat >conftest.$ac_ext <<_ACEOF
44407 cat confdefs.h >>conftest.$ac_ext
44408 cat >>conftest.$ac_ext <<_ACEOF
44409 /* end confdefs.h. */
44411 #include <readline.h>
44420 rm -f conftest.$ac_objext
44421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44422 (eval $ac_compile) 2>conftest.er1
44424 grep -v '^ *+' conftest.er1 >conftest.err
44426 cat conftest.err >&5
44427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44428 (exit $ac_status); } &&
44429 { ac_try='test -z "$ac_c_werror_flag"
44430 || test ! -s conftest.err'
44431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44432 (eval $ac_try) 2>&5
44434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44435 (exit $ac_status); }; } &&
44436 { ac_try='test -s conftest.$ac_objext'
44437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44438 (eval $ac_try) 2>&5
44440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44441 (exit $ac_status); }; }; then
44444 echo "$as_me: failed program was:" >&5
44445 sed 's/^/| /' conftest.$ac_ext >&5
44448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44450 for i in $lib_dirs; do
44451 LIBS="-L$i -lreadline $save_LIBS"
44452 cat >conftest.$ac_ext <<_ACEOF
44455 cat confdefs.h >>conftest.$ac_ext
44456 cat >>conftest.$ac_ext <<_ACEOF
44457 /* end confdefs.h. */
44459 #include <readline.h>
44468 rm -f conftest.$ac_objext conftest$ac_exeext
44469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44470 (eval $ac_link) 2>conftest.er1
44472 grep -v '^ *+' conftest.er1 >conftest.err
44474 cat conftest.err >&5
44475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44476 (exit $ac_status); } &&
44477 { ac_try='test -z "$ac_c_werror_flag"
44478 || test ! -s conftest.err'
44479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44480 (eval $ac_try) 2>&5
44482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44483 (exit $ac_status); }; } &&
44484 { ac_try='test -s conftest$ac_exeext'
44485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44486 (eval $ac_try) 2>&5
44488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44489 (exit $ac_status); }; }; then
44492 echo "$as_me: failed program was:" >&5
44493 sed 's/^/| /' conftest.$ac_ext >&5
44496 rm -f conftest.err conftest.$ac_objext \
44497 conftest$ac_exeext conftest.$ac_ext
44499 if test "$ires" -a "$lres" -a "$with_readline" != "no"; then
44500 INCLUDE_readline="-I$ires"
44501 LIB_readline="-L$lres -lreadline "
44503 echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
44504 echo "${ECHO_T}headers $ires, libraries $lres" >&6
44507 CFLAGS="$save_CFLAGS"
44511 if test "$found" = yes; then
44513 cat >>confdefs.h <<_ACEOF
44522 echo "$as_me:$LINENO: result: no" >&5
44523 echo "${ECHO_T}no" >&6
44532 # Check whether --with-hesiod or --without-hesiod was given.
44533 if test "${with_hesiod+set}" = set; then
44534 withval="$with_hesiod"
44538 # Check whether --with-hesiod-lib or --without-hesiod-lib was given.
44539 if test "${with_hesiod_lib+set}" = set; then
44540 withval="$with_hesiod_lib"
44541 if test "$withval" = "yes" -o "$withval" = "no"; then
44542 { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-lib" >&5
44543 echo "$as_me: error: No argument for --with-hesiod-lib" >&2;}
44544 { (exit 1); exit 1; }; }
44545 elif test "X$with_hesiod" = "X"; then
44550 # Check whether --with-hesiod-include or --without-hesiod-include was given.
44551 if test "${with_hesiod_include+set}" = set; then
44552 withval="$with_hesiod_include"
44553 if test "$withval" = "yes" -o "$withval" = "no"; then
44554 { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-include" >&5
44555 echo "$as_me: error: No argument for --with-hesiod-include" >&2;}
44556 { (exit 1); exit 1; }; }
44557 elif test "X$with_hesiod" = "X"; then
44562 # Check whether --with-hesiod-config or --without-hesiod-config was given.
44563 if test "${with_hesiod_config+set}" = set; then
44564 withval="$with_hesiod_config"
44570 echo "$as_me:$LINENO: checking for hesiod" >&5
44571 echo $ECHO_N "checking for hesiod... $ECHO_C" >&6
44573 case "$with_hesiod" in
44576 *) d="$with_hesiod" ;;
44582 if test "$with_hesiod_include" = ""; then
44583 if test -d "$i/include/hesiod"; then
44584 header_dirs="$header_dirs $i/include/hesiod"
44586 if test -d "$i/include"; then
44587 header_dirs="$header_dirs $i/include"
44590 if test "$with_hesiod_lib" = ""; then
44591 if test -d "$i/lib$abilibdirext"; then
44592 lib_dirs="$lib_dirs $i/lib$abilibdirext"
44597 if test "$with_hesiod_include"; then
44598 header_dirs="$with_hesiod_include $header_dirs"
44600 if test "$with_hesiod_lib"; then
44601 lib_dirs="$with_hesiod_lib $lib_dirs"
44604 if test "$with_hesiod_config" = ""; then
44605 with_hesiod_config=''
44611 case "$with_hesiod_config" in
44615 hesiod_cflags="`$with_hesiod_config --cflags 2>&1`"
44616 hesiod_libs="`$with_hesiod_config --libs 2>&1`"
44621 if test "$with_hesiod" != no; then
44622 save_CFLAGS="$CFLAGS"
44624 if test "$hesiod_cflags" -a "$hesiod_libs"; then
44625 CFLAGS="$hesiod_cflags $save_CFLAGS"
44626 LIBS="$hesiod_libs $save_LIBS"
44627 cat >conftest.$ac_ext <<_ACEOF
44630 cat confdefs.h >>conftest.$ac_ext
44631 cat >>conftest.$ac_ext <<_ACEOF
44632 /* end confdefs.h. */
44633 #include <hesiod.h>
44642 rm -f conftest.$ac_objext conftest$ac_exeext
44643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44644 (eval $ac_link) 2>conftest.er1
44646 grep -v '^ *+' conftest.er1 >conftest.err
44648 cat conftest.err >&5
44649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44650 (exit $ac_status); } &&
44651 { ac_try='test -z "$ac_c_werror_flag"
44652 || test ! -s conftest.err'
44653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44654 (eval $ac_try) 2>&5
44656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44657 (exit $ac_status); }; } &&
44658 { ac_try='test -s conftest$ac_exeext'
44659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44660 (eval $ac_try) 2>&5
44662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44663 (exit $ac_status); }; }; then
44665 INCLUDE_hesiod="$hesiod_cflags"
44666 LIB_hesiod="$hesiod_libs"
44667 echo "$as_me:$LINENO: result: from $with_hesiod_config" >&5
44668 echo "${ECHO_T}from $with_hesiod_config" >&6
44671 echo "$as_me: failed program was:" >&5
44672 sed 's/^/| /' conftest.$ac_ext >&5
44675 rm -f conftest.err conftest.$ac_objext \
44676 conftest$ac_exeext conftest.$ac_ext
44678 if test "$found" = no; then
44680 for i in $header_dirs; do
44681 CFLAGS="-I$i $save_CFLAGS"
44682 cat >conftest.$ac_ext <<_ACEOF
44685 cat confdefs.h >>conftest.$ac_ext
44686 cat >>conftest.$ac_ext <<_ACEOF
44687 /* end confdefs.h. */
44688 #include <hesiod.h>
44697 rm -f conftest.$ac_objext
44698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44699 (eval $ac_compile) 2>conftest.er1
44701 grep -v '^ *+' conftest.er1 >conftest.err
44703 cat conftest.err >&5
44704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44705 (exit $ac_status); } &&
44706 { ac_try='test -z "$ac_c_werror_flag"
44707 || test ! -s conftest.err'
44708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44709 (eval $ac_try) 2>&5
44711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44712 (exit $ac_status); }; } &&
44713 { ac_try='test -s conftest.$ac_objext'
44714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44715 (eval $ac_try) 2>&5
44717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44718 (exit $ac_status); }; }; then
44721 echo "$as_me: failed program was:" >&5
44722 sed 's/^/| /' conftest.$ac_ext >&5
44725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44727 for i in $lib_dirs; do
44728 LIBS="-L$i -lhesiod $save_LIBS"
44729 cat >conftest.$ac_ext <<_ACEOF
44732 cat confdefs.h >>conftest.$ac_ext
44733 cat >>conftest.$ac_ext <<_ACEOF
44734 /* end confdefs.h. */
44735 #include <hesiod.h>
44744 rm -f conftest.$ac_objext conftest$ac_exeext
44745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44746 (eval $ac_link) 2>conftest.er1
44748 grep -v '^ *+' conftest.er1 >conftest.err
44750 cat conftest.err >&5
44751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44752 (exit $ac_status); } &&
44753 { ac_try='test -z "$ac_c_werror_flag"
44754 || test ! -s conftest.err'
44755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44756 (eval $ac_try) 2>&5
44758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44759 (exit $ac_status); }; } &&
44760 { ac_try='test -s conftest$ac_exeext'
44761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44762 (eval $ac_try) 2>&5
44764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44765 (exit $ac_status); }; }; then
44768 echo "$as_me: failed program was:" >&5
44769 sed 's/^/| /' conftest.$ac_ext >&5
44772 rm -f conftest.err conftest.$ac_objext \
44773 conftest$ac_exeext conftest.$ac_ext
44775 if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then
44776 INCLUDE_hesiod="-I$ires"
44777 LIB_hesiod="-L$lres -lhesiod "
44779 echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
44780 echo "${ECHO_T}headers $ires, libraries $lres" >&6
44783 CFLAGS="$save_CFLAGS"
44787 if test "$found" = yes; then
44789 cat >>confdefs.h <<_ACEOF
44798 echo "$as_me:$LINENO: result: no" >&5
44799 echo "${ECHO_T}no" >&6
44807 # Check whether --enable-bigendian or --disable-bigendian was given.
44808 if test "${enable_bigendian+set}" = set; then
44809 enableval="$enable_bigendian"
44810 krb_cv_c_bigendian=yes
44812 # Check whether --enable-littleendian or --disable-littleendian was given.
44813 if test "${enable_littleendian+set}" = set; then
44814 enableval="$enable_littleendian"
44815 krb_cv_c_bigendian=no
44817 echo "$as_me:$LINENO: checking whether byte order is known at compile time" >&5
44818 echo $ECHO_N "checking whether byte order is known at compile time... $ECHO_C" >&6
44819 if test "${krb_cv_c_bigendian_compile+set}" = set; then
44820 echo $ECHO_N "(cached) $ECHO_C" >&6
44822 cat >conftest.$ac_ext <<_ACEOF
44825 cat confdefs.h >>conftest.$ac_ext
44826 cat >>conftest.$ac_ext <<_ACEOF
44827 /* end confdefs.h. */
44829 #include <sys/types.h>
44830 #include <sys/param.h>
44835 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
44836 bogus endian macros
44842 rm -f conftest.$ac_objext
44843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44844 (eval $ac_compile) 2>conftest.er1
44846 grep -v '^ *+' conftest.er1 >conftest.err
44848 cat conftest.err >&5
44849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44850 (exit $ac_status); } &&
44851 { ac_try='test -z "$ac_c_werror_flag"
44852 || test ! -s conftest.err'
44853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44854 (eval $ac_try) 2>&5
44856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44857 (exit $ac_status); }; } &&
44858 { ac_try='test -s conftest.$ac_objext'
44859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44860 (eval $ac_try) 2>&5
44862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44863 (exit $ac_status); }; }; then
44864 krb_cv_c_bigendian_compile=yes
44866 echo "$as_me: failed program was:" >&5
44867 sed 's/^/| /' conftest.$ac_ext >&5
44869 krb_cv_c_bigendian_compile=no
44871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44873 echo "$as_me:$LINENO: result: $krb_cv_c_bigendian_compile" >&5
44874 echo "${ECHO_T}$krb_cv_c_bigendian_compile" >&6
44875 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
44876 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
44877 if test "${krb_cv_c_bigendian+set}" = set; then
44878 echo $ECHO_N "(cached) $ECHO_C" >&6
44881 if test "$krb_cv_c_bigendian_compile" = "yes"; then
44882 cat >conftest.$ac_ext <<_ACEOF
44885 cat confdefs.h >>conftest.$ac_ext
44886 cat >>conftest.$ac_ext <<_ACEOF
44887 /* end confdefs.h. */
44889 #include <sys/types.h>
44890 #include <sys/param.h>
44895 #if BYTE_ORDER != BIG_ENDIAN
44902 rm -f conftest.$ac_objext
44903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44904 (eval $ac_compile) 2>conftest.er1
44906 grep -v '^ *+' conftest.er1 >conftest.err
44908 cat conftest.err >&5
44909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44910 (exit $ac_status); } &&
44911 { ac_try='test -z "$ac_c_werror_flag"
44912 || test ! -s conftest.err'
44913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44914 (eval $ac_try) 2>&5
44916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44917 (exit $ac_status); }; } &&
44918 { ac_try='test -s conftest.$ac_objext'
44919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44920 (eval $ac_try) 2>&5
44922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44923 (exit $ac_status); }; }; then
44924 krb_cv_c_bigendian=yes
44926 echo "$as_me: failed program was:" >&5
44927 sed 's/^/| /' conftest.$ac_ext >&5
44929 krb_cv_c_bigendian=no
44931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44933 if test "$cross_compiling" = yes; then
44934 { { echo "$as_me:$LINENO: error: specify either --enable-bigendian or --enable-littleendian" >&5
44935 echo "$as_me: error: specify either --enable-bigendian or --enable-littleendian" >&2;}
44936 { (exit 1); exit 1; }; }
44938 cat >conftest.$ac_ext <<_ACEOF
44941 cat confdefs.h >>conftest.$ac_ext
44942 cat >>conftest.$ac_ext <<_ACEOF
44943 /* end confdefs.h. */
44945 /* Are we little or big endian? From Harbison&Steele. */
44949 char c[sizeof (long)];
44952 exit (u.c[sizeof (long) - 1] == 1);
44955 rm -f conftest$ac_exeext
44956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44957 (eval $ac_link) 2>&5
44959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44962 (eval $ac_try) 2>&5
44964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44965 (exit $ac_status); }; }; then
44966 krb_cv_c_bigendian=no
44968 echo "$as_me: program exited with status $ac_status" >&5
44969 echo "$as_me: failed program was:" >&5
44970 sed 's/^/| /' conftest.$ac_ext >&5
44972 ( exit $ac_status )
44973 krb_cv_c_bigendian=yes
44975 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44980 echo "$as_me:$LINENO: result: $krb_cv_c_bigendian" >&5
44981 echo "${ECHO_T}$krb_cv_c_bigendian" >&6
44982 if test "$krb_cv_c_bigendian" = "yes"; then
44984 cat >>confdefs.h <<\_ACEOF
44985 #define WORDS_BIGENDIAN 1
44988 if test "$krb_cv_c_bigendian_compile" = "yes"; then
44990 cat >>confdefs.h <<\_ACEOF
44991 #define ENDIANESS_IN_SYS_PARAM_H 1
44997 echo "$as_me:$LINENO: checking for inline" >&5
44998 echo $ECHO_N "checking for inline... $ECHO_C" >&6
44999 if test "${ac_cv_c_inline+set}" = set; then
45000 echo $ECHO_N "(cached) $ECHO_C" >&6
45003 for ac_kw in inline __inline__ __inline; do
45004 cat >conftest.$ac_ext <<_ACEOF
45007 cat confdefs.h >>conftest.$ac_ext
45008 cat >>conftest.$ac_ext <<_ACEOF
45009 /* end confdefs.h. */
45010 #ifndef __cplusplus
45012 static $ac_kw foo_t static_foo () {return 0; }
45013 $ac_kw foo_t foo () {return 0; }
45017 rm -f conftest.$ac_objext
45018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45019 (eval $ac_compile) 2>conftest.er1
45021 grep -v '^ *+' conftest.er1 >conftest.err
45023 cat conftest.err >&5
45024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45025 (exit $ac_status); } &&
45026 { ac_try='test -z "$ac_c_werror_flag"
45027 || test ! -s conftest.err'
45028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45029 (eval $ac_try) 2>&5
45031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45032 (exit $ac_status); }; } &&
45033 { ac_try='test -s conftest.$ac_objext'
45034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45035 (eval $ac_try) 2>&5
45037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45038 (exit $ac_status); }; }; then
45039 ac_cv_c_inline=$ac_kw; break
45041 echo "$as_me: failed program was:" >&5
45042 sed 's/^/| /' conftest.$ac_ext >&5
45045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45049 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
45050 echo "${ECHO_T}$ac_cv_c_inline" >&6
45053 case $ac_cv_c_inline in
45056 case $ac_cv_c_inline in
45058 *) ac_val=$ac_cv_c_inline;;
45060 cat >>confdefs.h <<_ACEOF
45061 #ifndef __cplusplus
45062 #define inline $ac_val
45073 echo "$as_me:$LINENO: checking for dlopen" >&5
45074 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
45075 if test "${ac_cv_funclib_dlopen+set}" = set; then
45076 echo $ECHO_N "(cached) $ECHO_C" >&6
45079 if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then
45080 ac_save_LIBS="$LIBS"
45081 for ac_lib in "" dl; do
45087 *) ac_lib="-l$ac_lib" ;;
45089 LIBS=" $ac_lib $ac_save_LIBS"
45090 cat >conftest.$ac_ext <<_ACEOF
45093 cat confdefs.h >>conftest.$ac_ext
45094 cat >>conftest.$ac_ext <<_ACEOF
45095 /* end confdefs.h. */
45105 rm -f conftest.$ac_objext conftest$ac_exeext
45106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45107 (eval $ac_link) 2>conftest.er1
45109 grep -v '^ *+' conftest.er1 >conftest.err
45111 cat conftest.err >&5
45112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45113 (exit $ac_status); } &&
45114 { ac_try='test -z "$ac_c_werror_flag"
45115 || test ! -s conftest.err'
45116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45117 (eval $ac_try) 2>&5
45119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45120 (exit $ac_status); }; } &&
45121 { ac_try='test -s conftest$ac_exeext'
45122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45123 (eval $ac_try) 2>&5
45125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45126 (exit $ac_status); }; }; then
45127 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break
45129 echo "$as_me: failed program was:" >&5
45130 sed 's/^/| /' conftest.$ac_ext >&5
45133 rm -f conftest.err conftest.$ac_objext \
45134 conftest$ac_exeext conftest.$ac_ext
45136 eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}"
45137 LIBS="$ac_save_LIBS"
45143 eval "ac_res=\$ac_cv_funclib_dlopen"
45147 for ac_func in dlopen
45149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45150 echo "$as_me:$LINENO: checking for $ac_func" >&5
45151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45152 if eval "test \"\${$as_ac_var+set}\" = set"; then
45153 echo $ECHO_N "(cached) $ECHO_C" >&6
45155 cat >conftest.$ac_ext <<_ACEOF
45158 cat confdefs.h >>conftest.$ac_ext
45159 cat >>conftest.$ac_ext <<_ACEOF
45160 /* end confdefs.h. */
45161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45163 #define $ac_func innocuous_$ac_func
45165 /* System header to define __stub macros and hopefully few prototypes,
45166 which can conflict with char $ac_func (); below.
45167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45168 <limits.h> exists even on freestanding compilers. */
45171 # include <limits.h>
45173 # include <assert.h>
45178 /* Override any gcc2 internal prototype to avoid an error. */
45183 /* We use char because int might match the return type of a gcc2
45184 builtin and then its argument prototype would still apply. */
45186 /* The GNU C library defines this for functions which it implements
45187 to always fail with ENOSYS. Some functions are actually named
45188 something starting with __ and the normal name is an alias. */
45189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45192 char (*f) () = $ac_func;
45201 return f != $ac_func;
45206 rm -f conftest.$ac_objext conftest$ac_exeext
45207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45208 (eval $ac_link) 2>conftest.er1
45210 grep -v '^ *+' conftest.er1 >conftest.err
45212 cat conftest.err >&5
45213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45214 (exit $ac_status); } &&
45215 { ac_try='test -z "$ac_c_werror_flag"
45216 || test ! -s conftest.err'
45217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45218 (eval $ac_try) 2>&5
45220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45221 (exit $ac_status); }; } &&
45222 { ac_try='test -s conftest$ac_exeext'
45223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45224 (eval $ac_try) 2>&5
45226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45227 (exit $ac_status); }; }; then
45228 eval "$as_ac_var=yes"
45230 echo "$as_me: failed program was:" >&5
45231 sed 's/^/| /' conftest.$ac_ext >&5
45233 eval "$as_ac_var=no"
45235 rm -f conftest.err conftest.$ac_objext \
45236 conftest$ac_exeext conftest.$ac_ext
45238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45240 if test `eval echo '${'$as_ac_var'}'` = yes; then
45241 cat >>confdefs.h <<_ACEOF
45242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45250 eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
45251 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
45252 eval "LIB_dlopen=$ac_res"
45256 eval "ac_cv_func_dlopen=yes"
45258 cat >>confdefs.h <<_ACEOF
45259 #define $ac_tr_func 1
45262 echo "$as_me:$LINENO: result: yes" >&5
45263 echo "${ECHO_T}yes" >&6
45266 eval "ac_cv_func_dlopen=no"
45268 echo "$as_me:$LINENO: result: no" >&5
45269 echo "${ECHO_T}no" >&6
45272 eval "ac_cv_func_dlopen=yes"
45273 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
45274 cat >>confdefs.h <<_ACEOF
45275 #define $ac_tr_func 1
45278 cat >>confdefs.h <<_ACEOF
45279 #define $ac_tr_lib 1
45282 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
45283 echo "${ECHO_T}yes, in $ac_res" >&6
45290 if test "$ac_cv_funclib_dlopen" != no; then
45292 HAVE_DLOPEN_FALSE='#'
45294 HAVE_DLOPEN_TRUE='#'
45306 *-*-aix4*|*-*-aix5*)
45313 if test "$aix" != no; then
45322 if test "$aix" = 4; then
45332 # Check whether --enable-dynamic-afs or --disable-dynamic-afs was given.
45333 if test "${enable_dynamic_afs+set}" = set; then
45334 enableval="$enable_dynamic_afs"
45338 if test "$aix" != no; then
45339 if test "$enable_dynamic_afs" != no; then
45341 if test "$ac_cv_func_dlopen" = no; then
45345 echo "$as_me:$LINENO: checking for loadquery" >&5
45346 echo $ECHO_N "checking for loadquery... $ECHO_C" >&6
45347 if test "${ac_cv_funclib_loadquery+set}" = set; then
45348 echo $ECHO_N "(cached) $ECHO_C" >&6
45351 if eval "test \"\$ac_cv_func_loadquery\" != yes" ; then
45352 ac_save_LIBS="$LIBS"
45353 for ac_lib in "" ld; do
45359 *) ac_lib="-l$ac_lib" ;;
45361 LIBS=" $ac_lib $ac_save_LIBS"
45362 cat >conftest.$ac_ext <<_ACEOF
45365 cat confdefs.h >>conftest.$ac_ext
45366 cat >>conftest.$ac_ext <<_ACEOF
45367 /* end confdefs.h. */
45377 rm -f conftest.$ac_objext conftest$ac_exeext
45378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45379 (eval $ac_link) 2>conftest.er1
45381 grep -v '^ *+' conftest.er1 >conftest.err
45383 cat conftest.err >&5
45384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45385 (exit $ac_status); } &&
45386 { ac_try='test -z "$ac_c_werror_flag"
45387 || test ! -s conftest.err'
45388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45389 (eval $ac_try) 2>&5
45391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45392 (exit $ac_status); }; } &&
45393 { ac_try='test -s conftest$ac_exeext'
45394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45395 (eval $ac_try) 2>&5
45397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45398 (exit $ac_status); }; }; then
45399 eval "if test -n \"$ac_lib\";then ac_cv_funclib_loadquery=$ac_lib; else ac_cv_funclib_loadquery=yes; fi";break
45401 echo "$as_me: failed program was:" >&5
45402 sed 's/^/| /' conftest.$ac_ext >&5
45405 rm -f conftest.err conftest.$ac_objext \
45406 conftest$ac_exeext conftest.$ac_ext
45408 eval "ac_cv_funclib_loadquery=\${ac_cv_funclib_loadquery-no}"
45409 LIBS="$ac_save_LIBS"
45415 eval "ac_res=\$ac_cv_funclib_loadquery"
45419 for ac_func in loadquery
45421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45422 echo "$as_me:$LINENO: checking for $ac_func" >&5
45423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45424 if eval "test \"\${$as_ac_var+set}\" = set"; then
45425 echo $ECHO_N "(cached) $ECHO_C" >&6
45427 cat >conftest.$ac_ext <<_ACEOF
45430 cat confdefs.h >>conftest.$ac_ext
45431 cat >>conftest.$ac_ext <<_ACEOF
45432 /* end confdefs.h. */
45433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45435 #define $ac_func innocuous_$ac_func
45437 /* System header to define __stub macros and hopefully few prototypes,
45438 which can conflict with char $ac_func (); below.
45439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45440 <limits.h> exists even on freestanding compilers. */
45443 # include <limits.h>
45445 # include <assert.h>
45450 /* Override any gcc2 internal prototype to avoid an error. */
45455 /* We use char because int might match the return type of a gcc2
45456 builtin and then its argument prototype would still apply. */
45458 /* The GNU C library defines this for functions which it implements
45459 to always fail with ENOSYS. Some functions are actually named
45460 something starting with __ and the normal name is an alias. */
45461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45464 char (*f) () = $ac_func;
45473 return f != $ac_func;
45478 rm -f conftest.$ac_objext conftest$ac_exeext
45479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45480 (eval $ac_link) 2>conftest.er1
45482 grep -v '^ *+' conftest.er1 >conftest.err
45484 cat conftest.err >&5
45485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45486 (exit $ac_status); } &&
45487 { ac_try='test -z "$ac_c_werror_flag"
45488 || test ! -s conftest.err'
45489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45490 (eval $ac_try) 2>&5
45492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45493 (exit $ac_status); }; } &&
45494 { ac_try='test -s conftest$ac_exeext'
45495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45496 (eval $ac_try) 2>&5
45498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45499 (exit $ac_status); }; }; then
45500 eval "$as_ac_var=yes"
45502 echo "$as_me: failed program was:" >&5
45503 sed 's/^/| /' conftest.$ac_ext >&5
45505 eval "$as_ac_var=no"
45507 rm -f conftest.err conftest.$ac_objext \
45508 conftest$ac_exeext conftest.$ac_ext
45510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45511 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45512 if test `eval echo '${'$as_ac_var'}'` = yes; then
45513 cat >>confdefs.h <<_ACEOF
45514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45522 eval "ac_tr_func=HAVE_`echo loadquery | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
45523 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
45524 eval "LIB_loadquery=$ac_res"
45528 eval "ac_cv_func_loadquery=yes"
45529 eval "LIB_loadquery="
45530 cat >>confdefs.h <<_ACEOF
45531 #define $ac_tr_func 1
45534 echo "$as_me:$LINENO: result: yes" >&5
45535 echo "${ECHO_T}yes" >&6
45538 eval "ac_cv_func_loadquery=no"
45539 eval "LIB_loadquery="
45540 echo "$as_me:$LINENO: result: no" >&5
45541 echo "${ECHO_T}no" >&6
45544 eval "ac_cv_func_loadquery=yes"
45545 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
45546 cat >>confdefs.h <<_ACEOF
45547 #define $ac_tr_func 1
45550 cat >>confdefs.h <<_ACEOF
45551 #define $ac_tr_lib 1
45554 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
45555 echo "${ECHO_T}yes, in $ac_res" >&6
45561 if test "$ac_cv_func_dlopen" != no; then
45562 AIX_EXTRA_KAFS='$(LIB_dlopen)'
45563 elif test "$ac_cv_func_loadquery" != no; then
45564 AIX_EXTRA_KAFS='$(LIB_loadquery)'
45566 { echo "$as_me:$LINENO: not using dynloaded AFS library" >&5
45567 echo "$as_me: not using dynloaded AFS library" >&6;}
45569 enable_dynamic_afs=no
45578 if test "$enable_dynamic_afs" != no; then
45579 AIX_DYNAMIC_AFS_TRUE=
45580 AIX_DYNAMIC_AFS_FALSE='#'
45582 AIX_DYNAMIC_AFS_TRUE='#'
45583 AIX_DYNAMIC_AFS_FALSE=
45595 cat >>confdefs.h <<\_ACEOF
45607 if test "$irix" != no; then
45634 if test "$sunos" != no; then
45636 cat >>confdefs.h <<_ACEOF
45637 #define SunOS $sunos
45643 echo "$as_me:$LINENO: checking for X" >&5
45644 echo $ECHO_N "checking for X... $ECHO_C" >&6
45647 # Check whether --with-x or --without-x was given.
45648 if test "${with_x+set}" = set; then
45652 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
45653 if test "x$with_x" = xno; then
45654 # The user explicitly disabled X.
45657 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
45658 # Both variables are already set.
45661 if test "${ac_cv_have_x+set}" = set; then
45662 echo $ECHO_N "(cached) $ECHO_C" >&6
45664 # One or both of the vars are not set, and there is no cached value.
45665 ac_x_includes=no ac_x_libraries=no
45666 rm -fr conftest.dir
45667 if mkdir conftest.dir; then
45669 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
45670 cat >Imakefile <<'_ACEOF'
45672 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
45674 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
45675 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
45676 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
45677 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
45678 for ac_extension in a so sl; do
45679 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
45680 test -f $ac_im_libdir/libX11.$ac_extension; then
45681 ac_im_usrlibdir=$ac_im_libdir; break
45684 # Screen out bogus values from the imake configuration. They are
45685 # bogus both because they are the default anyway, and because
45686 # using them would break gcc on systems where it needs fixed includes.
45687 case $ac_im_incroot in
45689 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
45691 case $ac_im_usrlibdir in
45692 /usr/lib | /lib) ;;
45693 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
45697 rm -fr conftest.dir
45700 # Standard set of common directories for X headers.
45701 # Check X11 before X11Rn because it is often a symlink to the current release.
45713 /usr/local/X11/include
45714 /usr/local/X11R6/include
45715 /usr/local/X11R5/include
45716 /usr/local/X11R4/include
45718 /usr/local/include/X11
45719 /usr/local/include/X11R6
45720 /usr/local/include/X11R5
45721 /usr/local/include/X11R4
45725 /usr/XFree86/include/X11
45729 /usr/unsupported/include
45730 /usr/athena/include
45731 /usr/local/x11r5/include
45732 /usr/lpp/Xamples/include
45734 /usr/openwin/include
45735 /usr/openwin/share/include'
45737 if test "$ac_x_includes" = no; then
45738 # Guess where to find include files, by looking for Intrinsic.h.
45739 # First, try using that file with no special directory specified.
45740 cat >conftest.$ac_ext <<_ACEOF
45743 cat confdefs.h >>conftest.$ac_ext
45744 cat >>conftest.$ac_ext <<_ACEOF
45745 /* end confdefs.h. */
45746 #include <X11/Intrinsic.h>
45748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45751 grep -v '^ *+' conftest.er1 >conftest.err
45753 cat conftest.err >&5
45754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45755 (exit $ac_status); } >/dev/null; then
45756 if test -s conftest.err; then
45757 ac_cpp_err=$ac_c_preproc_warn_flag
45758 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45765 if test -z "$ac_cpp_err"; then
45766 # We can compile using X headers with no special include directory.
45769 echo "$as_me: failed program was:" >&5
45770 sed 's/^/| /' conftest.$ac_ext >&5
45772 for ac_dir in $ac_x_header_dirs; do
45773 if test -r "$ac_dir/X11/Intrinsic.h"; then
45774 ac_x_includes=$ac_dir
45779 rm -f conftest.err conftest.$ac_ext
45780 fi # $ac_x_includes = no
45782 if test "$ac_x_libraries" = no; then
45783 # Check for the libraries.
45784 # See if we find them without any special options.
45785 # Don't add to $LIBS permanently.
45788 cat >conftest.$ac_ext <<_ACEOF
45791 cat confdefs.h >>conftest.$ac_ext
45792 cat >>conftest.$ac_ext <<_ACEOF
45793 /* end confdefs.h. */
45794 #include <X11/Intrinsic.h>
45803 rm -f conftest.$ac_objext conftest$ac_exeext
45804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45805 (eval $ac_link) 2>conftest.er1
45807 grep -v '^ *+' conftest.er1 >conftest.err
45809 cat conftest.err >&5
45810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45811 (exit $ac_status); } &&
45812 { ac_try='test -z "$ac_c_werror_flag"
45813 || test ! -s conftest.err'
45814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45815 (eval $ac_try) 2>&5
45817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45818 (exit $ac_status); }; } &&
45819 { ac_try='test -s conftest$ac_exeext'
45820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45821 (eval $ac_try) 2>&5
45823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45824 (exit $ac_status); }; }; then
45826 # We can link X programs with no special library path.
45829 echo "$as_me: failed program was:" >&5
45830 sed 's/^/| /' conftest.$ac_ext >&5
45833 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
45835 # Don't even attempt the hair of trying to link an X program!
45836 for ac_extension in a so sl; do
45837 if test -r $ac_dir/libXt.$ac_extension; then
45838 ac_x_libraries=$ac_dir
45844 rm -f conftest.err conftest.$ac_objext \
45845 conftest$ac_exeext conftest.$ac_ext
45846 fi # $ac_x_libraries = no
45848 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
45849 # Didn't find X anywhere. Cache the known absence of X.
45850 ac_cv_have_x="have_x=no"
45852 # Record where we found X for the cache.
45853 ac_cv_have_x="have_x=yes \
45854 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
45859 eval "$ac_cv_have_x"
45862 if test "$have_x" != yes; then
45863 echo "$as_me:$LINENO: result: $have_x" >&5
45864 echo "${ECHO_T}$have_x" >&6
45867 # If each of the values was on the command line, it overrides each guess.
45868 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
45869 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
45870 # Update the cache value to reflect the command line values.
45871 ac_cv_have_x="have_x=yes \
45872 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
45873 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
45874 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
45878 if test "$no_x" = yes; then
45879 # Not all programs may use this symbol, but it does not hurt to define it.
45881 cat >>confdefs.h <<\_ACEOF
45882 #define X_DISPLAY_MISSING 1
45885 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
45887 if test -n "$x_includes"; then
45888 X_CFLAGS="$X_CFLAGS -I$x_includes"
45891 # It would also be nice to do this for all -L options, not just this one.
45892 if test -n "$x_libraries"; then
45893 X_LIBS="$X_LIBS -L$x_libraries"
45894 # For Solaris; some versions of Sun CC require a space after -R and
45895 # others require no space. Words are not sufficient . . . .
45896 case `(uname -sr) 2>/dev/null` in
45898 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
45899 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
45900 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
45901 cat >conftest.$ac_ext <<_ACEOF
45904 cat confdefs.h >>conftest.$ac_ext
45905 cat >>conftest.$ac_ext <<_ACEOF
45906 /* end confdefs.h. */
45916 rm -f conftest.$ac_objext conftest$ac_exeext
45917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45918 (eval $ac_link) 2>conftest.er1
45920 grep -v '^ *+' conftest.er1 >conftest.err
45922 cat conftest.err >&5
45923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45924 (exit $ac_status); } &&
45925 { ac_try='test -z "$ac_c_werror_flag"
45926 || test ! -s conftest.err'
45927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45928 (eval $ac_try) 2>&5
45930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45931 (exit $ac_status); }; } &&
45932 { ac_try='test -s conftest$ac_exeext'
45933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45934 (eval $ac_try) 2>&5
45936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45937 (exit $ac_status); }; }; then
45940 echo "$as_me: failed program was:" >&5
45941 sed 's/^/| /' conftest.$ac_ext >&5
45945 rm -f conftest.err conftest.$ac_objext \
45946 conftest$ac_exeext conftest.$ac_ext
45947 if test $ac_R_nospace = yes; then
45948 echo "$as_me:$LINENO: result: no" >&5
45949 echo "${ECHO_T}no" >&6
45950 X_LIBS="$X_LIBS -R$x_libraries"
45952 LIBS="$ac_xsave_LIBS -R $x_libraries"
45953 cat >conftest.$ac_ext <<_ACEOF
45956 cat confdefs.h >>conftest.$ac_ext
45957 cat >>conftest.$ac_ext <<_ACEOF
45958 /* end confdefs.h. */
45968 rm -f conftest.$ac_objext conftest$ac_exeext
45969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45970 (eval $ac_link) 2>conftest.er1
45972 grep -v '^ *+' conftest.er1 >conftest.err
45974 cat conftest.err >&5
45975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45976 (exit $ac_status); } &&
45977 { ac_try='test -z "$ac_c_werror_flag"
45978 || test ! -s conftest.err'
45979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45980 (eval $ac_try) 2>&5
45982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45983 (exit $ac_status); }; } &&
45984 { ac_try='test -s conftest$ac_exeext'
45985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45986 (eval $ac_try) 2>&5
45988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45989 (exit $ac_status); }; }; then
45992 echo "$as_me: failed program was:" >&5
45993 sed 's/^/| /' conftest.$ac_ext >&5
45997 rm -f conftest.err conftest.$ac_objext \
45998 conftest$ac_exeext conftest.$ac_ext
45999 if test $ac_R_space = yes; then
46000 echo "$as_me:$LINENO: result: yes" >&5
46001 echo "${ECHO_T}yes" >&6
46002 X_LIBS="$X_LIBS -R $x_libraries"
46004 echo "$as_me:$LINENO: result: neither works" >&5
46005 echo "${ECHO_T}neither works" >&6
46008 LIBS=$ac_xsave_LIBS
46012 # Check for system-dependent libraries X programs must link with.
46013 # Do this before checking for the system-independent R6 libraries
46014 # (-lICE), since we may need -lsocket or whatever for X linking.
46016 if test "$ISC" = yes; then
46017 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
46019 # Martyn Johnson says this is needed for Ultrix, if the X
46020 # libraries were built with DECnet support. And Karl Berry says
46021 # the Alpha needs dnet_stub (dnet does not exist).
46022 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
46023 cat >conftest.$ac_ext <<_ACEOF
46026 cat confdefs.h >>conftest.$ac_ext
46027 cat >>conftest.$ac_ext <<_ACEOF
46028 /* end confdefs.h. */
46030 /* Override any gcc2 internal prototype to avoid an error. */
46034 /* We use char because int might match the return type of a gcc2
46035 builtin and then its argument prototype would still apply. */
46036 char XOpenDisplay ();
46045 rm -f conftest.$ac_objext conftest$ac_exeext
46046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46047 (eval $ac_link) 2>conftest.er1
46049 grep -v '^ *+' conftest.er1 >conftest.err
46051 cat conftest.err >&5
46052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46053 (exit $ac_status); } &&
46054 { ac_try='test -z "$ac_c_werror_flag"
46055 || test ! -s conftest.err'
46056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46057 (eval $ac_try) 2>&5
46059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46060 (exit $ac_status); }; } &&
46061 { ac_try='test -s conftest$ac_exeext'
46062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46063 (eval $ac_try) 2>&5
46065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46066 (exit $ac_status); }; }; then
46069 echo "$as_me: failed program was:" >&5
46070 sed 's/^/| /' conftest.$ac_ext >&5
46072 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
46073 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
46074 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
46075 echo $ECHO_N "(cached) $ECHO_C" >&6
46077 ac_check_lib_save_LIBS=$LIBS
46078 LIBS="-ldnet $LIBS"
46079 cat >conftest.$ac_ext <<_ACEOF
46082 cat confdefs.h >>conftest.$ac_ext
46083 cat >>conftest.$ac_ext <<_ACEOF
46084 /* end confdefs.h. */
46086 /* Override any gcc2 internal prototype to avoid an error. */
46090 /* We use char because int might match the return type of a gcc2
46091 builtin and then its argument prototype would still apply. */
46101 rm -f conftest.$ac_objext conftest$ac_exeext
46102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46103 (eval $ac_link) 2>conftest.er1
46105 grep -v '^ *+' conftest.er1 >conftest.err
46107 cat conftest.err >&5
46108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46109 (exit $ac_status); } &&
46110 { ac_try='test -z "$ac_c_werror_flag"
46111 || test ! -s conftest.err'
46112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46113 (eval $ac_try) 2>&5
46115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46116 (exit $ac_status); }; } &&
46117 { ac_try='test -s conftest$ac_exeext'
46118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46119 (eval $ac_try) 2>&5
46121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46122 (exit $ac_status); }; }; then
46123 ac_cv_lib_dnet_dnet_ntoa=yes
46125 echo "$as_me: failed program was:" >&5
46126 sed 's/^/| /' conftest.$ac_ext >&5
46128 ac_cv_lib_dnet_dnet_ntoa=no
46130 rm -f conftest.err conftest.$ac_objext \
46131 conftest$ac_exeext conftest.$ac_ext
46132 LIBS=$ac_check_lib_save_LIBS
46134 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
46135 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
46136 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
46137 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
46140 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
46141 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
46142 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
46143 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
46144 echo $ECHO_N "(cached) $ECHO_C" >&6
46146 ac_check_lib_save_LIBS=$LIBS
46147 LIBS="-ldnet_stub $LIBS"
46148 cat >conftest.$ac_ext <<_ACEOF
46151 cat confdefs.h >>conftest.$ac_ext
46152 cat >>conftest.$ac_ext <<_ACEOF
46153 /* end confdefs.h. */
46155 /* Override any gcc2 internal prototype to avoid an error. */
46159 /* We use char because int might match the return type of a gcc2
46160 builtin and then its argument prototype would still apply. */
46170 rm -f conftest.$ac_objext conftest$ac_exeext
46171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46172 (eval $ac_link) 2>conftest.er1
46174 grep -v '^ *+' conftest.er1 >conftest.err
46176 cat conftest.err >&5
46177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46178 (exit $ac_status); } &&
46179 { ac_try='test -z "$ac_c_werror_flag"
46180 || test ! -s conftest.err'
46181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46182 (eval $ac_try) 2>&5
46184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46185 (exit $ac_status); }; } &&
46186 { ac_try='test -s conftest$ac_exeext'
46187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46188 (eval $ac_try) 2>&5
46190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46191 (exit $ac_status); }; }; then
46192 ac_cv_lib_dnet_stub_dnet_ntoa=yes
46194 echo "$as_me: failed program was:" >&5
46195 sed 's/^/| /' conftest.$ac_ext >&5
46197 ac_cv_lib_dnet_stub_dnet_ntoa=no
46199 rm -f conftest.err conftest.$ac_objext \
46200 conftest$ac_exeext conftest.$ac_ext
46201 LIBS=$ac_check_lib_save_LIBS
46203 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
46204 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
46205 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
46206 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
46211 rm -f conftest.err conftest.$ac_objext \
46212 conftest$ac_exeext conftest.$ac_ext
46213 LIBS="$ac_xsave_LIBS"
46215 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
46216 # to get the SysV transport functions.
46217 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
46219 # The nsl library prevents programs from opening the X display
46220 # on Irix 5.2, according to T.E. Dickey.
46221 # The functions gethostbyname, getservbyname, and inet_addr are
46222 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
46223 echo "$as_me:$LINENO: checking for gethostbyname" >&5
46224 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
46225 if test "${ac_cv_func_gethostbyname+set}" = set; then
46226 echo $ECHO_N "(cached) $ECHO_C" >&6
46228 cat >conftest.$ac_ext <<_ACEOF
46231 cat confdefs.h >>conftest.$ac_ext
46232 cat >>conftest.$ac_ext <<_ACEOF
46233 /* end confdefs.h. */
46234 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
46235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46236 #define gethostbyname innocuous_gethostbyname
46238 /* System header to define __stub macros and hopefully few prototypes,
46239 which can conflict with char gethostbyname (); below.
46240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46241 <limits.h> exists even on freestanding compilers. */
46244 # include <limits.h>
46246 # include <assert.h>
46249 #undef gethostbyname
46251 /* Override any gcc2 internal prototype to avoid an error. */
46256 /* We use char because int might match the return type of a gcc2
46257 builtin and then its argument prototype would still apply. */
46258 char gethostbyname ();
46259 /* The GNU C library defines this for functions which it implements
46260 to always fail with ENOSYS. Some functions are actually named
46261 something starting with __ and the normal name is an alias. */
46262 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
46265 char (*f) () = gethostbyname;
46274 return f != gethostbyname;
46279 rm -f conftest.$ac_objext conftest$ac_exeext
46280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46281 (eval $ac_link) 2>conftest.er1
46283 grep -v '^ *+' conftest.er1 >conftest.err
46285 cat conftest.err >&5
46286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46287 (exit $ac_status); } &&
46288 { ac_try='test -z "$ac_c_werror_flag"
46289 || test ! -s conftest.err'
46290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46291 (eval $ac_try) 2>&5
46293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46294 (exit $ac_status); }; } &&
46295 { ac_try='test -s conftest$ac_exeext'
46296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46297 (eval $ac_try) 2>&5
46299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46300 (exit $ac_status); }; }; then
46301 ac_cv_func_gethostbyname=yes
46303 echo "$as_me: failed program was:" >&5
46304 sed 's/^/| /' conftest.$ac_ext >&5
46306 ac_cv_func_gethostbyname=no
46308 rm -f conftest.err conftest.$ac_objext \
46309 conftest$ac_exeext conftest.$ac_ext
46311 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
46312 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
46314 if test $ac_cv_func_gethostbyname = no; then
46315 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
46316 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
46317 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
46318 echo $ECHO_N "(cached) $ECHO_C" >&6
46320 ac_check_lib_save_LIBS=$LIBS
46322 cat >conftest.$ac_ext <<_ACEOF
46325 cat confdefs.h >>conftest.$ac_ext
46326 cat >>conftest.$ac_ext <<_ACEOF
46327 /* end confdefs.h. */
46329 /* Override any gcc2 internal prototype to avoid an error. */
46333 /* We use char because int might match the return type of a gcc2
46334 builtin and then its argument prototype would still apply. */
46335 char gethostbyname ();
46344 rm -f conftest.$ac_objext conftest$ac_exeext
46345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46346 (eval $ac_link) 2>conftest.er1
46348 grep -v '^ *+' conftest.er1 >conftest.err
46350 cat conftest.err >&5
46351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46352 (exit $ac_status); } &&
46353 { ac_try='test -z "$ac_c_werror_flag"
46354 || test ! -s conftest.err'
46355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46356 (eval $ac_try) 2>&5
46358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46359 (exit $ac_status); }; } &&
46360 { ac_try='test -s conftest$ac_exeext'
46361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46362 (eval $ac_try) 2>&5
46364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46365 (exit $ac_status); }; }; then
46366 ac_cv_lib_nsl_gethostbyname=yes
46368 echo "$as_me: failed program was:" >&5
46369 sed 's/^/| /' conftest.$ac_ext >&5
46371 ac_cv_lib_nsl_gethostbyname=no
46373 rm -f conftest.err conftest.$ac_objext \
46374 conftest$ac_exeext conftest.$ac_ext
46375 LIBS=$ac_check_lib_save_LIBS
46377 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
46378 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
46379 if test $ac_cv_lib_nsl_gethostbyname = yes; then
46380 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
46383 if test $ac_cv_lib_nsl_gethostbyname = no; then
46384 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
46385 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
46386 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
46387 echo $ECHO_N "(cached) $ECHO_C" >&6
46389 ac_check_lib_save_LIBS=$LIBS
46391 cat >conftest.$ac_ext <<_ACEOF
46394 cat confdefs.h >>conftest.$ac_ext
46395 cat >>conftest.$ac_ext <<_ACEOF
46396 /* end confdefs.h. */
46398 /* Override any gcc2 internal prototype to avoid an error. */
46402 /* We use char because int might match the return type of a gcc2
46403 builtin and then its argument prototype would still apply. */
46404 char gethostbyname ();
46413 rm -f conftest.$ac_objext conftest$ac_exeext
46414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46415 (eval $ac_link) 2>conftest.er1
46417 grep -v '^ *+' conftest.er1 >conftest.err
46419 cat conftest.err >&5
46420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46421 (exit $ac_status); } &&
46422 { ac_try='test -z "$ac_c_werror_flag"
46423 || test ! -s conftest.err'
46424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46425 (eval $ac_try) 2>&5
46427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46428 (exit $ac_status); }; } &&
46429 { ac_try='test -s conftest$ac_exeext'
46430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46431 (eval $ac_try) 2>&5
46433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46434 (exit $ac_status); }; }; then
46435 ac_cv_lib_bsd_gethostbyname=yes
46437 echo "$as_me: failed program was:" >&5
46438 sed 's/^/| /' conftest.$ac_ext >&5
46440 ac_cv_lib_bsd_gethostbyname=no
46442 rm -f conftest.err conftest.$ac_objext \
46443 conftest$ac_exeext conftest.$ac_ext
46444 LIBS=$ac_check_lib_save_LIBS
46446 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
46447 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
46448 if test $ac_cv_lib_bsd_gethostbyname = yes; then
46449 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
46455 # lieder@skyler.mavd.honeywell.com says without -lsocket,
46456 # socket/setsockopt and other routines are undefined under SCO ODT
46457 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
46458 # on later versions), says Simon Leinen: it contains gethostby*
46459 # variants that don't use the name server (or something). -lsocket
46460 # must be given before -lnsl if both are needed. We assume that
46461 # if connect needs -lnsl, so does gethostbyname.
46462 echo "$as_me:$LINENO: checking for connect" >&5
46463 echo $ECHO_N "checking for connect... $ECHO_C" >&6
46464 if test "${ac_cv_func_connect+set}" = set; then
46465 echo $ECHO_N "(cached) $ECHO_C" >&6
46467 cat >conftest.$ac_ext <<_ACEOF
46470 cat confdefs.h >>conftest.$ac_ext
46471 cat >>conftest.$ac_ext <<_ACEOF
46472 /* end confdefs.h. */
46473 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
46474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46475 #define connect innocuous_connect
46477 /* System header to define __stub macros and hopefully few prototypes,
46478 which can conflict with char connect (); below.
46479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46480 <limits.h> exists even on freestanding compilers. */
46483 # include <limits.h>
46485 # include <assert.h>
46490 /* Override any gcc2 internal prototype to avoid an error. */
46495 /* We use char because int might match the return type of a gcc2
46496 builtin and then its argument prototype would still apply. */
46498 /* The GNU C library defines this for functions which it implements
46499 to always fail with ENOSYS. Some functions are actually named
46500 something starting with __ and the normal name is an alias. */
46501 #if defined (__stub_connect) || defined (__stub___connect)
46504 char (*f) () = connect;
46513 return f != connect;
46518 rm -f conftest.$ac_objext conftest$ac_exeext
46519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46520 (eval $ac_link) 2>conftest.er1
46522 grep -v '^ *+' conftest.er1 >conftest.err
46524 cat conftest.err >&5
46525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46526 (exit $ac_status); } &&
46527 { ac_try='test -z "$ac_c_werror_flag"
46528 || test ! -s conftest.err'
46529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46530 (eval $ac_try) 2>&5
46532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46533 (exit $ac_status); }; } &&
46534 { ac_try='test -s conftest$ac_exeext'
46535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46536 (eval $ac_try) 2>&5
46538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46539 (exit $ac_status); }; }; then
46540 ac_cv_func_connect=yes
46542 echo "$as_me: failed program was:" >&5
46543 sed 's/^/| /' conftest.$ac_ext >&5
46545 ac_cv_func_connect=no
46547 rm -f conftest.err conftest.$ac_objext \
46548 conftest$ac_exeext conftest.$ac_ext
46550 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
46551 echo "${ECHO_T}$ac_cv_func_connect" >&6
46553 if test $ac_cv_func_connect = no; then
46554 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
46555 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
46556 if test "${ac_cv_lib_socket_connect+set}" = set; then
46557 echo $ECHO_N "(cached) $ECHO_C" >&6
46559 ac_check_lib_save_LIBS=$LIBS
46560 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
46561 cat >conftest.$ac_ext <<_ACEOF
46564 cat confdefs.h >>conftest.$ac_ext
46565 cat >>conftest.$ac_ext <<_ACEOF
46566 /* end confdefs.h. */
46568 /* Override any gcc2 internal prototype to avoid an error. */
46572 /* We use char because int might match the return type of a gcc2
46573 builtin and then its argument prototype would still apply. */
46583 rm -f conftest.$ac_objext conftest$ac_exeext
46584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46585 (eval $ac_link) 2>conftest.er1
46587 grep -v '^ *+' conftest.er1 >conftest.err
46589 cat conftest.err >&5
46590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46591 (exit $ac_status); } &&
46592 { ac_try='test -z "$ac_c_werror_flag"
46593 || test ! -s conftest.err'
46594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46595 (eval $ac_try) 2>&5
46597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46598 (exit $ac_status); }; } &&
46599 { ac_try='test -s conftest$ac_exeext'
46600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46601 (eval $ac_try) 2>&5
46603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46604 (exit $ac_status); }; }; then
46605 ac_cv_lib_socket_connect=yes
46607 echo "$as_me: failed program was:" >&5
46608 sed 's/^/| /' conftest.$ac_ext >&5
46610 ac_cv_lib_socket_connect=no
46612 rm -f conftest.err conftest.$ac_objext \
46613 conftest$ac_exeext conftest.$ac_ext
46614 LIBS=$ac_check_lib_save_LIBS
46616 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
46617 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
46618 if test $ac_cv_lib_socket_connect = yes; then
46619 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
46624 # Guillermo Gomez says -lposix is necessary on A/UX.
46625 echo "$as_me:$LINENO: checking for remove" >&5
46626 echo $ECHO_N "checking for remove... $ECHO_C" >&6
46627 if test "${ac_cv_func_remove+set}" = set; then
46628 echo $ECHO_N "(cached) $ECHO_C" >&6
46630 cat >conftest.$ac_ext <<_ACEOF
46633 cat confdefs.h >>conftest.$ac_ext
46634 cat >>conftest.$ac_ext <<_ACEOF
46635 /* end confdefs.h. */
46636 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
46637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46638 #define remove innocuous_remove
46640 /* System header to define __stub macros and hopefully few prototypes,
46641 which can conflict with char remove (); below.
46642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46643 <limits.h> exists even on freestanding compilers. */
46646 # include <limits.h>
46648 # include <assert.h>
46653 /* Override any gcc2 internal prototype to avoid an error. */
46658 /* We use char because int might match the return type of a gcc2
46659 builtin and then its argument prototype would still apply. */
46661 /* The GNU C library defines this for functions which it implements
46662 to always fail with ENOSYS. Some functions are actually named
46663 something starting with __ and the normal name is an alias. */
46664 #if defined (__stub_remove) || defined (__stub___remove)
46667 char (*f) () = remove;
46676 return f != remove;
46681 rm -f conftest.$ac_objext conftest$ac_exeext
46682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46683 (eval $ac_link) 2>conftest.er1
46685 grep -v '^ *+' conftest.er1 >conftest.err
46687 cat conftest.err >&5
46688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46689 (exit $ac_status); } &&
46690 { ac_try='test -z "$ac_c_werror_flag"
46691 || test ! -s conftest.err'
46692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46693 (eval $ac_try) 2>&5
46695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46696 (exit $ac_status); }; } &&
46697 { ac_try='test -s conftest$ac_exeext'
46698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46699 (eval $ac_try) 2>&5
46701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46702 (exit $ac_status); }; }; then
46703 ac_cv_func_remove=yes
46705 echo "$as_me: failed program was:" >&5
46706 sed 's/^/| /' conftest.$ac_ext >&5
46708 ac_cv_func_remove=no
46710 rm -f conftest.err conftest.$ac_objext \
46711 conftest$ac_exeext conftest.$ac_ext
46713 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
46714 echo "${ECHO_T}$ac_cv_func_remove" >&6
46716 if test $ac_cv_func_remove = no; then
46717 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
46718 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
46719 if test "${ac_cv_lib_posix_remove+set}" = set; then
46720 echo $ECHO_N "(cached) $ECHO_C" >&6
46722 ac_check_lib_save_LIBS=$LIBS
46723 LIBS="-lposix $LIBS"
46724 cat >conftest.$ac_ext <<_ACEOF
46727 cat confdefs.h >>conftest.$ac_ext
46728 cat >>conftest.$ac_ext <<_ACEOF
46729 /* end confdefs.h. */
46731 /* Override any gcc2 internal prototype to avoid an error. */
46735 /* We use char because int might match the return type of a gcc2
46736 builtin and then its argument prototype would still apply. */
46746 rm -f conftest.$ac_objext conftest$ac_exeext
46747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46748 (eval $ac_link) 2>conftest.er1
46750 grep -v '^ *+' conftest.er1 >conftest.err
46752 cat conftest.err >&5
46753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46754 (exit $ac_status); } &&
46755 { ac_try='test -z "$ac_c_werror_flag"
46756 || test ! -s conftest.err'
46757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46758 (eval $ac_try) 2>&5
46760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46761 (exit $ac_status); }; } &&
46762 { ac_try='test -s conftest$ac_exeext'
46763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46764 (eval $ac_try) 2>&5
46766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46767 (exit $ac_status); }; }; then
46768 ac_cv_lib_posix_remove=yes
46770 echo "$as_me: failed program was:" >&5
46771 sed 's/^/| /' conftest.$ac_ext >&5
46773 ac_cv_lib_posix_remove=no
46775 rm -f conftest.err conftest.$ac_objext \
46776 conftest$ac_exeext conftest.$ac_ext
46777 LIBS=$ac_check_lib_save_LIBS
46779 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
46780 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
46781 if test $ac_cv_lib_posix_remove = yes; then
46782 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
46787 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
46788 echo "$as_me:$LINENO: checking for shmat" >&5
46789 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
46790 if test "${ac_cv_func_shmat+set}" = set; then
46791 echo $ECHO_N "(cached) $ECHO_C" >&6
46793 cat >conftest.$ac_ext <<_ACEOF
46796 cat confdefs.h >>conftest.$ac_ext
46797 cat >>conftest.$ac_ext <<_ACEOF
46798 /* end confdefs.h. */
46799 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
46800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46801 #define shmat innocuous_shmat
46803 /* System header to define __stub macros and hopefully few prototypes,
46804 which can conflict with char shmat (); below.
46805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46806 <limits.h> exists even on freestanding compilers. */
46809 # include <limits.h>
46811 # include <assert.h>
46816 /* Override any gcc2 internal prototype to avoid an error. */
46821 /* We use char because int might match the return type of a gcc2
46822 builtin and then its argument prototype would still apply. */
46824 /* The GNU C library defines this for functions which it implements
46825 to always fail with ENOSYS. Some functions are actually named
46826 something starting with __ and the normal name is an alias. */
46827 #if defined (__stub_shmat) || defined (__stub___shmat)
46830 char (*f) () = shmat;
46844 rm -f conftest.$ac_objext conftest$ac_exeext
46845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46846 (eval $ac_link) 2>conftest.er1
46848 grep -v '^ *+' conftest.er1 >conftest.err
46850 cat conftest.err >&5
46851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46852 (exit $ac_status); } &&
46853 { ac_try='test -z "$ac_c_werror_flag"
46854 || test ! -s conftest.err'
46855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46856 (eval $ac_try) 2>&5
46858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46859 (exit $ac_status); }; } &&
46860 { ac_try='test -s conftest$ac_exeext'
46861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46862 (eval $ac_try) 2>&5
46864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46865 (exit $ac_status); }; }; then
46866 ac_cv_func_shmat=yes
46868 echo "$as_me: failed program was:" >&5
46869 sed 's/^/| /' conftest.$ac_ext >&5
46871 ac_cv_func_shmat=no
46873 rm -f conftest.err conftest.$ac_objext \
46874 conftest$ac_exeext conftest.$ac_ext
46876 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
46877 echo "${ECHO_T}$ac_cv_func_shmat" >&6
46879 if test $ac_cv_func_shmat = no; then
46880 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
46881 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
46882 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
46883 echo $ECHO_N "(cached) $ECHO_C" >&6
46885 ac_check_lib_save_LIBS=$LIBS
46887 cat >conftest.$ac_ext <<_ACEOF
46890 cat confdefs.h >>conftest.$ac_ext
46891 cat >>conftest.$ac_ext <<_ACEOF
46892 /* end confdefs.h. */
46894 /* Override any gcc2 internal prototype to avoid an error. */
46898 /* We use char because int might match the return type of a gcc2
46899 builtin and then its argument prototype would still apply. */
46909 rm -f conftest.$ac_objext conftest$ac_exeext
46910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46911 (eval $ac_link) 2>conftest.er1
46913 grep -v '^ *+' conftest.er1 >conftest.err
46915 cat conftest.err >&5
46916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46917 (exit $ac_status); } &&
46918 { ac_try='test -z "$ac_c_werror_flag"
46919 || test ! -s conftest.err'
46920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46921 (eval $ac_try) 2>&5
46923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46924 (exit $ac_status); }; } &&
46925 { ac_try='test -s conftest$ac_exeext'
46926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46927 (eval $ac_try) 2>&5
46929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46930 (exit $ac_status); }; }; then
46931 ac_cv_lib_ipc_shmat=yes
46933 echo "$as_me: failed program was:" >&5
46934 sed 's/^/| /' conftest.$ac_ext >&5
46936 ac_cv_lib_ipc_shmat=no
46938 rm -f conftest.err conftest.$ac_objext \
46939 conftest$ac_exeext conftest.$ac_ext
46940 LIBS=$ac_check_lib_save_LIBS
46942 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
46943 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
46944 if test $ac_cv_lib_ipc_shmat = yes; then
46945 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
46951 # Check for libraries that X11R6 Xt/Xaw programs need.
46952 ac_save_LDFLAGS=$LDFLAGS
46953 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
46954 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
46955 # check for ICE first), but we must link in the order -lSM -lICE or
46956 # we get undefined symbols. So assume we have SM if we have ICE.
46957 # These have to be linked with before -lX11, unlike the other
46958 # libraries we check for below, so use a different variable.
46959 # John Interrante, Karl Berry
46960 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
46961 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
46962 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
46963 echo $ECHO_N "(cached) $ECHO_C" >&6
46965 ac_check_lib_save_LIBS=$LIBS
46966 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
46967 cat >conftest.$ac_ext <<_ACEOF
46970 cat confdefs.h >>conftest.$ac_ext
46971 cat >>conftest.$ac_ext <<_ACEOF
46972 /* end confdefs.h. */
46974 /* Override any gcc2 internal prototype to avoid an error. */
46978 /* We use char because int might match the return type of a gcc2
46979 builtin and then its argument prototype would still apply. */
46980 char IceConnectionNumber ();
46984 IceConnectionNumber ();
46989 rm -f conftest.$ac_objext conftest$ac_exeext
46990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46991 (eval $ac_link) 2>conftest.er1
46993 grep -v '^ *+' conftest.er1 >conftest.err
46995 cat conftest.err >&5
46996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46997 (exit $ac_status); } &&
46998 { ac_try='test -z "$ac_c_werror_flag"
46999 || test ! -s conftest.err'
47000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47001 (eval $ac_try) 2>&5
47003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47004 (exit $ac_status); }; } &&
47005 { ac_try='test -s conftest$ac_exeext'
47006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47007 (eval $ac_try) 2>&5
47009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47010 (exit $ac_status); }; }; then
47011 ac_cv_lib_ICE_IceConnectionNumber=yes
47013 echo "$as_me: failed program was:" >&5
47014 sed 's/^/| /' conftest.$ac_ext >&5
47016 ac_cv_lib_ICE_IceConnectionNumber=no
47018 rm -f conftest.err conftest.$ac_objext \
47019 conftest$ac_exeext conftest.$ac_ext
47020 LIBS=$ac_check_lib_save_LIBS
47022 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
47023 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
47024 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
47025 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
47028 LDFLAGS=$ac_save_LDFLAGS
47033 # try to figure out if we need any additional ld flags, like -R
47034 # and yes, the autoconf X test is utterly broken
47035 if test "$no_x" != yes; then
47036 echo "$as_me:$LINENO: checking for special X linker flags" >&5
47037 echo $ECHO_N "checking for special X linker flags... $ECHO_C" >&6
47038 if test "${krb_cv_sys_x_libs_rpath+set}" = set; then
47039 echo $ECHO_N "(cached) $ECHO_C" >&6
47042 ac_save_libs="$LIBS"
47043 ac_save_cflags="$CFLAGS"
47044 CFLAGS="$CFLAGS $X_CFLAGS"
47045 krb_cv_sys_x_libs_rpath=""
47046 krb_cv_sys_x_libs=""
47047 for rflag in "" "-R" "-R " "-rpath "; do
47048 if test "$rflag" = ""; then
47052 for flag in $X_LIBS; do
47055 foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`"
47063 LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
47064 if test "$cross_compiling" = yes; then
47065 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
47066 See \`config.log' for more details." >&5
47067 echo "$as_me: error: cannot run test program while cross compiling
47068 See \`config.log' for more details." >&2;}
47069 { (exit 1); exit 1; }; }
47071 cat >conftest.$ac_ext <<_ACEOF
47074 cat confdefs.h >>conftest.$ac_ext
47075 cat >>conftest.$ac_ext <<_ACEOF
47076 /* end confdefs.h. */
47078 #include <X11/Xlib.h>
47081 XOpenDisplay(NULL);
47089 rm -f conftest$ac_exeext
47090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47091 (eval $ac_link) 2>&5
47093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47096 (eval $ac_try) 2>&5
47098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47099 (exit $ac_status); }; }; then
47100 krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break
47102 echo "$as_me: program exited with status $ac_status" >&5
47103 echo "$as_me: failed program was:" >&5
47104 sed 's/^/| /' conftest.$ac_ext >&5
47106 ( exit $ac_status )
47109 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47112 LIBS="$ac_save_libs"
47113 CFLAGS="$ac_save_cflags"
47116 echo "$as_me:$LINENO: result: $krb_cv_sys_x_libs_rpath" >&5
47117 echo "${ECHO_T}$krb_cv_sys_x_libs_rpath" >&6
47118 X_LIBS="$krb_cv_sys_x_libs"
47124 if test "$no_x" != yes; then
47134 save_CFLAGS="$CFLAGS"
47135 CFLAGS="$X_CFLAGS $CFLAGS"
47137 LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS"
47138 save_LDFLAGS="$LDFLAGS"
47139 LDFLAGS="$LDFLAGS $X_LIBS"
47141 ## check for XauWriteAuth first, so we detect the case where
47142 ## XauReadAuth is in -lX11, but XauWriteAuth is only in -lXau this
47143 ## could be done by checking for XauReadAuth in -lXau first, but this
47144 ## breaks in IRIX 6.5
47149 echo "$as_me:$LINENO: checking for XauWriteAuth" >&5
47150 echo $ECHO_N "checking for XauWriteAuth... $ECHO_C" >&6
47151 if test "${ac_cv_funclib_XauWriteAuth+set}" = set; then
47152 echo $ECHO_N "(cached) $ECHO_C" >&6
47155 if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then
47156 ac_save_LIBS="$LIBS"
47157 for ac_lib in "" X11 Xau; do
47163 *) ac_lib="-l$ac_lib" ;;
47165 LIBS=" $ac_lib $ac_save_LIBS"
47166 cat >conftest.$ac_ext <<_ACEOF
47169 cat confdefs.h >>conftest.$ac_ext
47170 cat >>conftest.$ac_ext <<_ACEOF
47171 /* end confdefs.h. */
47181 rm -f conftest.$ac_objext conftest$ac_exeext
47182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47183 (eval $ac_link) 2>conftest.er1
47185 grep -v '^ *+' conftest.er1 >conftest.err
47187 cat conftest.err >&5
47188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47189 (exit $ac_status); } &&
47190 { ac_try='test -z "$ac_c_werror_flag"
47191 || test ! -s conftest.err'
47192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47193 (eval $ac_try) 2>&5
47195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47196 (exit $ac_status); }; } &&
47197 { ac_try='test -s conftest$ac_exeext'
47198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47199 (eval $ac_try) 2>&5
47201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47202 (exit $ac_status); }; }; then
47203 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break
47205 echo "$as_me: failed program was:" >&5
47206 sed 's/^/| /' conftest.$ac_ext >&5
47209 rm -f conftest.err conftest.$ac_objext \
47210 conftest$ac_exeext conftest.$ac_ext
47212 eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}"
47213 LIBS="$ac_save_LIBS"
47219 eval "ac_res=\$ac_cv_funclib_XauWriteAuth"
47223 for ac_func in XauWriteAuth
47225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47226 echo "$as_me:$LINENO: checking for $ac_func" >&5
47227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47228 if eval "test \"\${$as_ac_var+set}\" = set"; then
47229 echo $ECHO_N "(cached) $ECHO_C" >&6
47231 cat >conftest.$ac_ext <<_ACEOF
47234 cat confdefs.h >>conftest.$ac_ext
47235 cat >>conftest.$ac_ext <<_ACEOF
47236 /* end confdefs.h. */
47237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47239 #define $ac_func innocuous_$ac_func
47241 /* System header to define __stub macros and hopefully few prototypes,
47242 which can conflict with char $ac_func (); below.
47243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47244 <limits.h> exists even on freestanding compilers. */
47247 # include <limits.h>
47249 # include <assert.h>
47254 /* Override any gcc2 internal prototype to avoid an error. */
47259 /* We use char because int might match the return type of a gcc2
47260 builtin and then its argument prototype would still apply. */
47262 /* The GNU C library defines this for functions which it implements
47263 to always fail with ENOSYS. Some functions are actually named
47264 something starting with __ and the normal name is an alias. */
47265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47268 char (*f) () = $ac_func;
47277 return f != $ac_func;
47282 rm -f conftest.$ac_objext conftest$ac_exeext
47283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47284 (eval $ac_link) 2>conftest.er1
47286 grep -v '^ *+' conftest.er1 >conftest.err
47288 cat conftest.err >&5
47289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47290 (exit $ac_status); } &&
47291 { ac_try='test -z "$ac_c_werror_flag"
47292 || test ! -s conftest.err'
47293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47294 (eval $ac_try) 2>&5
47296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47297 (exit $ac_status); }; } &&
47298 { ac_try='test -s conftest$ac_exeext'
47299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47300 (eval $ac_try) 2>&5
47302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47303 (exit $ac_status); }; }; then
47304 eval "$as_ac_var=yes"
47306 echo "$as_me: failed program was:" >&5
47307 sed 's/^/| /' conftest.$ac_ext >&5
47309 eval "$as_ac_var=no"
47311 rm -f conftest.err conftest.$ac_objext \
47312 conftest$ac_exeext conftest.$ac_ext
47314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47315 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47316 if test `eval echo '${'$as_ac_var'}'` = yes; then
47317 cat >>confdefs.h <<_ACEOF
47318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47326 eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
47327 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
47328 eval "LIB_XauWriteAuth=$ac_res"
47332 eval "ac_cv_func_XauWriteAuth=yes"
47333 eval "LIB_XauWriteAuth="
47334 cat >>confdefs.h <<_ACEOF
47335 #define $ac_tr_func 1
47338 echo "$as_me:$LINENO: result: yes" >&5
47339 echo "${ECHO_T}yes" >&6
47342 eval "ac_cv_func_XauWriteAuth=no"
47343 eval "LIB_XauWriteAuth="
47344 echo "$as_me:$LINENO: result: no" >&5
47345 echo "${ECHO_T}no" >&6
47348 eval "ac_cv_func_XauWriteAuth=yes"
47349 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
47350 cat >>confdefs.h <<_ACEOF
47351 #define $ac_tr_func 1
47354 cat >>confdefs.h <<_ACEOF
47355 #define $ac_tr_lib 1
47358 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
47359 echo "${ECHO_T}yes, in $ac_res" >&6
47365 LIBS="$LIB_XauWriteAuth $LIBS"
47369 echo "$as_me:$LINENO: checking for XauReadAuth" >&5
47370 echo $ECHO_N "checking for XauReadAuth... $ECHO_C" >&6
47371 if test "${ac_cv_funclib_XauReadAuth+set}" = set; then
47372 echo $ECHO_N "(cached) $ECHO_C" >&6
47375 if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then
47376 ac_save_LIBS="$LIBS"
47377 for ac_lib in "" X11 Xau; do
47383 *) ac_lib="-l$ac_lib" ;;
47385 LIBS=" $ac_lib $ac_save_LIBS"
47386 cat >conftest.$ac_ext <<_ACEOF
47389 cat confdefs.h >>conftest.$ac_ext
47390 cat >>conftest.$ac_ext <<_ACEOF
47391 /* end confdefs.h. */
47401 rm -f conftest.$ac_objext conftest$ac_exeext
47402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47403 (eval $ac_link) 2>conftest.er1
47405 grep -v '^ *+' conftest.er1 >conftest.err
47407 cat conftest.err >&5
47408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47409 (exit $ac_status); } &&
47410 { ac_try='test -z "$ac_c_werror_flag"
47411 || test ! -s conftest.err'
47412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47413 (eval $ac_try) 2>&5
47415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47416 (exit $ac_status); }; } &&
47417 { ac_try='test -s conftest$ac_exeext'
47418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47419 (eval $ac_try) 2>&5
47421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47422 (exit $ac_status); }; }; then
47423 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break
47425 echo "$as_me: failed program was:" >&5
47426 sed 's/^/| /' conftest.$ac_ext >&5
47429 rm -f conftest.err conftest.$ac_objext \
47430 conftest$ac_exeext conftest.$ac_ext
47432 eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}"
47433 LIBS="$ac_save_LIBS"
47439 eval "ac_res=\$ac_cv_funclib_XauReadAuth"
47443 for ac_func in XauReadAuth
47445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47446 echo "$as_me:$LINENO: checking for $ac_func" >&5
47447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47448 if eval "test \"\${$as_ac_var+set}\" = set"; then
47449 echo $ECHO_N "(cached) $ECHO_C" >&6
47451 cat >conftest.$ac_ext <<_ACEOF
47454 cat confdefs.h >>conftest.$ac_ext
47455 cat >>conftest.$ac_ext <<_ACEOF
47456 /* end confdefs.h. */
47457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47459 #define $ac_func innocuous_$ac_func
47461 /* System header to define __stub macros and hopefully few prototypes,
47462 which can conflict with char $ac_func (); below.
47463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47464 <limits.h> exists even on freestanding compilers. */
47467 # include <limits.h>
47469 # include <assert.h>
47474 /* Override any gcc2 internal prototype to avoid an error. */
47479 /* We use char because int might match the return type of a gcc2
47480 builtin and then its argument prototype would still apply. */
47482 /* The GNU C library defines this for functions which it implements
47483 to always fail with ENOSYS. Some functions are actually named
47484 something starting with __ and the normal name is an alias. */
47485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47488 char (*f) () = $ac_func;
47497 return f != $ac_func;
47502 rm -f conftest.$ac_objext conftest$ac_exeext
47503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47504 (eval $ac_link) 2>conftest.er1
47506 grep -v '^ *+' conftest.er1 >conftest.err
47508 cat conftest.err >&5
47509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47510 (exit $ac_status); } &&
47511 { ac_try='test -z "$ac_c_werror_flag"
47512 || test ! -s conftest.err'
47513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47514 (eval $ac_try) 2>&5
47516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47517 (exit $ac_status); }; } &&
47518 { ac_try='test -s conftest$ac_exeext'
47519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47520 (eval $ac_try) 2>&5
47522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47523 (exit $ac_status); }; }; then
47524 eval "$as_ac_var=yes"
47526 echo "$as_me: failed program was:" >&5
47527 sed 's/^/| /' conftest.$ac_ext >&5
47529 eval "$as_ac_var=no"
47531 rm -f conftest.err conftest.$ac_objext \
47532 conftest$ac_exeext conftest.$ac_ext
47534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47535 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47536 if test `eval echo '${'$as_ac_var'}'` = yes; then
47537 cat >>confdefs.h <<_ACEOF
47538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47546 eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
47547 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
47548 eval "LIB_XauReadAuth=$ac_res"
47552 eval "ac_cv_func_XauReadAuth=yes"
47553 eval "LIB_XauReadAuth="
47554 cat >>confdefs.h <<_ACEOF
47555 #define $ac_tr_func 1
47558 echo "$as_me:$LINENO: result: yes" >&5
47559 echo "${ECHO_T}yes" >&6
47562 eval "ac_cv_func_XauReadAuth=no"
47563 eval "LIB_XauReadAuth="
47564 echo "$as_me:$LINENO: result: no" >&5
47565 echo "${ECHO_T}no" >&6
47568 eval "ac_cv_func_XauReadAuth=yes"
47569 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
47570 cat >>confdefs.h <<_ACEOF
47571 #define $ac_tr_func 1
47574 cat >>confdefs.h <<_ACEOF
47575 #define $ac_tr_lib 1
47578 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
47579 echo "${ECHO_T}yes, in $ac_res" >&6
47584 LIBS="$LIB_XauReadAauth $LIBS"
47588 echo "$as_me:$LINENO: checking for XauFileName" >&5
47589 echo $ECHO_N "checking for XauFileName... $ECHO_C" >&6
47590 if test "${ac_cv_funclib_XauFileName+set}" = set; then
47591 echo $ECHO_N "(cached) $ECHO_C" >&6
47594 if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then
47595 ac_save_LIBS="$LIBS"
47596 for ac_lib in "" X11 Xau; do
47602 *) ac_lib="-l$ac_lib" ;;
47604 LIBS=" $ac_lib $ac_save_LIBS"
47605 cat >conftest.$ac_ext <<_ACEOF
47608 cat confdefs.h >>conftest.$ac_ext
47609 cat >>conftest.$ac_ext <<_ACEOF
47610 /* end confdefs.h. */
47620 rm -f conftest.$ac_objext conftest$ac_exeext
47621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47622 (eval $ac_link) 2>conftest.er1
47624 grep -v '^ *+' conftest.er1 >conftest.err
47626 cat conftest.err >&5
47627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47628 (exit $ac_status); } &&
47629 { ac_try='test -z "$ac_c_werror_flag"
47630 || test ! -s conftest.err'
47631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47632 (eval $ac_try) 2>&5
47634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47635 (exit $ac_status); }; } &&
47636 { ac_try='test -s conftest$ac_exeext'
47637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47638 (eval $ac_try) 2>&5
47640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47641 (exit $ac_status); }; }; then
47642 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break
47644 echo "$as_me: failed program was:" >&5
47645 sed 's/^/| /' conftest.$ac_ext >&5
47648 rm -f conftest.err conftest.$ac_objext \
47649 conftest$ac_exeext conftest.$ac_ext
47651 eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}"
47652 LIBS="$ac_save_LIBS"
47658 eval "ac_res=\$ac_cv_funclib_XauFileName"
47662 for ac_func in XauFileName
47664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47665 echo "$as_me:$LINENO: checking for $ac_func" >&5
47666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47667 if eval "test \"\${$as_ac_var+set}\" = set"; then
47668 echo $ECHO_N "(cached) $ECHO_C" >&6
47670 cat >conftest.$ac_ext <<_ACEOF
47673 cat confdefs.h >>conftest.$ac_ext
47674 cat >>conftest.$ac_ext <<_ACEOF
47675 /* end confdefs.h. */
47676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47678 #define $ac_func innocuous_$ac_func
47680 /* System header to define __stub macros and hopefully few prototypes,
47681 which can conflict with char $ac_func (); below.
47682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47683 <limits.h> exists even on freestanding compilers. */
47686 # include <limits.h>
47688 # include <assert.h>
47693 /* Override any gcc2 internal prototype to avoid an error. */
47698 /* We use char because int might match the return type of a gcc2
47699 builtin and then its argument prototype would still apply. */
47701 /* The GNU C library defines this for functions which it implements
47702 to always fail with ENOSYS. Some functions are actually named
47703 something starting with __ and the normal name is an alias. */
47704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47707 char (*f) () = $ac_func;
47716 return f != $ac_func;
47721 rm -f conftest.$ac_objext conftest$ac_exeext
47722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47723 (eval $ac_link) 2>conftest.er1
47725 grep -v '^ *+' conftest.er1 >conftest.err
47727 cat conftest.err >&5
47728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47729 (exit $ac_status); } &&
47730 { ac_try='test -z "$ac_c_werror_flag"
47731 || test ! -s conftest.err'
47732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47733 (eval $ac_try) 2>&5
47735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47736 (exit $ac_status); }; } &&
47737 { ac_try='test -s conftest$ac_exeext'
47738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47739 (eval $ac_try) 2>&5
47741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47742 (exit $ac_status); }; }; then
47743 eval "$as_ac_var=yes"
47745 echo "$as_me: failed program was:" >&5
47746 sed 's/^/| /' conftest.$ac_ext >&5
47748 eval "$as_ac_var=no"
47750 rm -f conftest.err conftest.$ac_objext \
47751 conftest$ac_exeext conftest.$ac_ext
47753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47754 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47755 if test `eval echo '${'$as_ac_var'}'` = yes; then
47756 cat >>confdefs.h <<_ACEOF
47757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47765 eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
47766 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
47767 eval "LIB_XauFileName=$ac_res"
47771 eval "ac_cv_func_XauFileName=yes"
47772 eval "LIB_XauFileName="
47773 cat >>confdefs.h <<_ACEOF
47774 #define $ac_tr_func 1
47777 echo "$as_me:$LINENO: result: yes" >&5
47778 echo "${ECHO_T}yes" >&6
47781 eval "ac_cv_func_XauFileName=no"
47782 eval "LIB_XauFileName="
47783 echo "$as_me:$LINENO: result: no" >&5
47784 echo "${ECHO_T}no" >&6
47787 eval "ac_cv_func_XauFileName=yes"
47788 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
47789 cat >>confdefs.h <<_ACEOF
47790 #define $ac_tr_func 1
47793 cat >>confdefs.h <<_ACEOF
47794 #define $ac_tr_lib 1
47797 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
47798 echo "${ECHO_T}yes, in $ac_res" >&6
47805 ## set LIB_XauReadAuth to union of these tests, since this is what the
47806 ## Makefiles are using
47807 case "$ac_cv_funclib_XauWriteAuth" in
47810 *) if test "$ac_cv_funclib_XauReadAuth" = yes; then
47811 if test "$ac_cv_funclib_XauFileName" = yes; then
47812 LIB_XauReadAuth="$LIB_XauWriteAuth"
47814 LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName"
47817 if test "$ac_cv_funclib_XauFileName" = yes; then
47818 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth"
47820 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName"
47826 if test "$AUTOMAKE" != ""; then
47829 if test "$ac_cv_func_XauWriteAuth" != "yes"; then
47830 NEED_WRITEAUTH_TRUE=
47831 NEED_WRITEAUTH_FALSE='#'
47833 NEED_WRITEAUTH_TRUE='#'
47834 NEED_WRITEAUTH_FALSE=
47840 if test "$ac_cv_func_XauWriteAuth" != "yes"; then
47841 NEED_WRITEAUTH_TRUE=
47842 NEED_WRITEAUTH_FALSE='#'
47844 NEED_WRITEAUTH_TRUE='#'
47845 NEED_WRITEAUTH_FALSE=
47848 CFLAGS=$save_CFLAGS
47850 LDFLAGS=$save_LDFLAGS
47854 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
47855 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
47856 if test "${ac_cv_c_const+set}" = set; then
47857 echo $ECHO_N "(cached) $ECHO_C" >&6
47859 cat >conftest.$ac_ext <<_ACEOF
47862 cat confdefs.h >>conftest.$ac_ext
47863 cat >>conftest.$ac_ext <<_ACEOF
47864 /* end confdefs.h. */
47869 /* FIXME: Include the comments suggested by Paul. */
47870 #ifndef __cplusplus
47871 /* Ultrix mips cc rejects this. */
47872 typedef int charset[2];
47874 /* SunOS 4.1.1 cc rejects this. */
47875 char const *const *ccp;
47877 /* NEC SVR4.0.2 mips cc rejects this. */
47878 struct point {int x, y;};
47879 static struct point const zero = {0,0};
47880 /* AIX XL C 1.02.0.0 rejects this.
47881 It does not let you subtract one const X* pointer from another in
47882 an arm of an if-expression whose if-part is not a constant
47884 const char *g = "string";
47885 ccp = &g + (g ? g-g : 0);
47886 /* HPUX 7.0 cc rejects these. */
47889 ccp = (char const *const *) p;
47890 { /* SCO 3.2v4 cc rejects this. */
47892 char const *s = 0 ? (char *) 0 : (char const *) 0;
47896 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
47897 int x[] = {25, 17};
47898 const int *foo = &x[0];
47901 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
47902 typedef const int *iptr;
47906 { /* AIX XL C 1.02.0.0 rejects this saying
47907 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
47908 struct s { int j; const int *ap[3]; };
47909 struct s *b; b->j = 5;
47911 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
47912 const int foo = 10;
47920 rm -f conftest.$ac_objext
47921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47922 (eval $ac_compile) 2>conftest.er1
47924 grep -v '^ *+' conftest.er1 >conftest.err
47926 cat conftest.err >&5
47927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47928 (exit $ac_status); } &&
47929 { ac_try='test -z "$ac_c_werror_flag"
47930 || test ! -s conftest.err'
47931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47932 (eval $ac_try) 2>&5
47934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47935 (exit $ac_status); }; } &&
47936 { ac_try='test -s conftest.$ac_objext'
47937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47938 (eval $ac_try) 2>&5
47940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47941 (exit $ac_status); }; }; then
47944 echo "$as_me: failed program was:" >&5
47945 sed 's/^/| /' conftest.$ac_ext >&5
47949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47951 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
47952 echo "${ECHO_T}$ac_cv_c_const" >&6
47953 if test $ac_cv_c_const = no; then
47955 cat >>confdefs.h <<\_ACEOF
47961 echo "$as_me:$LINENO: checking for off_t" >&5
47962 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
47963 if test "${ac_cv_type_off_t+set}" = set; then
47964 echo $ECHO_N "(cached) $ECHO_C" >&6
47966 cat >conftest.$ac_ext <<_ACEOF
47969 cat confdefs.h >>conftest.$ac_ext
47970 cat >>conftest.$ac_ext <<_ACEOF
47971 /* end confdefs.h. */
47972 $ac_includes_default
47978 if (sizeof (off_t))
47984 rm -f conftest.$ac_objext
47985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47986 (eval $ac_compile) 2>conftest.er1
47988 grep -v '^ *+' conftest.er1 >conftest.err
47990 cat conftest.err >&5
47991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47992 (exit $ac_status); } &&
47993 { ac_try='test -z "$ac_c_werror_flag"
47994 || test ! -s conftest.err'
47995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47996 (eval $ac_try) 2>&5
47998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47999 (exit $ac_status); }; } &&
48000 { ac_try='test -s conftest.$ac_objext'
48001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48002 (eval $ac_try) 2>&5
48004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48005 (exit $ac_status); }; }; then
48006 ac_cv_type_off_t=yes
48008 echo "$as_me: failed program was:" >&5
48009 sed 's/^/| /' conftest.$ac_ext >&5
48011 ac_cv_type_off_t=no
48013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48015 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
48016 echo "${ECHO_T}$ac_cv_type_off_t" >&6
48017 if test $ac_cv_type_off_t = yes; then
48021 cat >>confdefs.h <<_ACEOF
48027 echo "$as_me:$LINENO: checking for mode_t" >&5
48028 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
48029 if test "${ac_cv_type_mode_t+set}" = set; then
48030 echo $ECHO_N "(cached) $ECHO_C" >&6
48032 cat >conftest.$ac_ext <<_ACEOF
48035 cat confdefs.h >>conftest.$ac_ext
48036 cat >>conftest.$ac_ext <<_ACEOF
48037 /* end confdefs.h. */
48038 #include <sys/types.h>
48040 #include <stdlib.h>
48041 #include <stddef.h>
48045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48046 $EGREP "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
48047 ac_cv_type_mode_t=yes
48049 ac_cv_type_mode_t=no
48054 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
48055 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
48056 if test $ac_cv_type_mode_t = no; then
48058 cat >>confdefs.h <<\_ACEOF
48059 #define mode_t unsigned short
48064 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
48065 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
48066 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
48067 echo $ECHO_N "(cached) $ECHO_C" >&6
48069 cat >conftest.$ac_ext <<_ACEOF
48072 cat confdefs.h >>conftest.$ac_ext
48073 cat >>conftest.$ac_ext <<_ACEOF
48074 /* end confdefs.h. */
48075 #include <sys/types.h>
48077 #include <stdlib.h>
48078 #include <stddef.h>
48080 #include <signal.h>
48082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48083 $EGREP "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
48084 ac_cv_type_sig_atomic_t=yes
48086 ac_cv_type_sig_atomic_t=no
48091 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
48092 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
48093 if test $ac_cv_type_sig_atomic_t = no; then
48095 cat >>confdefs.h <<\_ACEOF
48096 #define sig_atomic_t int
48103 cv=`echo "long long" | sed 'y%./+- %__p__%'`
48104 echo "$as_me:$LINENO: checking for long long" >&5
48105 echo $ECHO_N "checking for long long... $ECHO_C" >&6
48106 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
48107 echo $ECHO_N "(cached) $ECHO_C" >&6
48109 cat >conftest.$ac_ext <<_ACEOF
48112 cat confdefs.h >>conftest.$ac_ext
48113 cat >>conftest.$ac_ext <<_ACEOF
48114 /* end confdefs.h. */
48115 #include <sys/types.h>
48117 #include <stdlib.h>
48118 #include <stddef.h>
48129 rm -f conftest.$ac_objext
48130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48131 (eval $ac_compile) 2>conftest.er1
48133 grep -v '^ *+' conftest.er1 >conftest.err
48135 cat conftest.err >&5
48136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48137 (exit $ac_status); } &&
48138 { ac_try='test -z "$ac_c_werror_flag"
48139 || test ! -s conftest.err'
48140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48141 (eval $ac_try) 2>&5
48143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48144 (exit $ac_status); }; } &&
48145 { ac_try='test -s conftest.$ac_objext'
48146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48147 (eval $ac_try) 2>&5
48149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48150 (exit $ac_status); }; }; then
48151 eval "ac_cv_type_$cv=yes"
48153 echo "$as_me: failed program was:" >&5
48154 sed 's/^/| /' conftest.$ac_ext >&5
48156 eval "ac_cv_type_$cv=no"
48158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48160 ac_foo=`eval echo \\$ac_cv_type_$cv`
48161 echo "$as_me:$LINENO: result: $ac_foo" >&5
48162 echo "${ECHO_T}$ac_foo" >&6
48163 if test "$ac_foo" = yes; then
48164 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
48166 echo "$as_me:$LINENO: checking for long long" >&5
48167 echo $ECHO_N "checking for long long... $ECHO_C" >&6
48168 if test "${ac_cv_type_long_long+set}" = set; then
48169 echo $ECHO_N "(cached) $ECHO_C" >&6
48171 cat >conftest.$ac_ext <<_ACEOF
48174 cat confdefs.h >>conftest.$ac_ext
48175 cat >>conftest.$ac_ext <<_ACEOF
48176 /* end confdefs.h. */
48177 $ac_includes_default
48181 if ((long long *) 0)
48183 if (sizeof (long long))
48189 rm -f conftest.$ac_objext
48190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48191 (eval $ac_compile) 2>conftest.er1
48193 grep -v '^ *+' conftest.er1 >conftest.err
48195 cat conftest.err >&5
48196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48197 (exit $ac_status); } &&
48198 { ac_try='test -z "$ac_c_werror_flag"
48199 || test ! -s conftest.err'
48200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48201 (eval $ac_try) 2>&5
48203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48204 (exit $ac_status); }; } &&
48205 { ac_try='test -s conftest.$ac_objext'
48206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48207 (eval $ac_try) 2>&5
48209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48210 (exit $ac_status); }; }; then
48211 ac_cv_type_long_long=yes
48213 echo "$as_me: failed program was:" >&5
48214 sed 's/^/| /' conftest.$ac_ext >&5
48216 ac_cv_type_long_long=no
48218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48220 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
48221 echo "${ECHO_T}$ac_cv_type_long_long" >&6
48222 if test $ac_cv_type_long_long = yes; then
48224 cat >>confdefs.h <<_ACEOF
48225 #define HAVE_LONG_LONG 1
48233 cat >>confdefs.h <<_ACEOF
48234 #define $ac_tr_hdr 1
48239 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
48240 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
48241 if test "${ac_cv_header_time+set}" = set; then
48242 echo $ECHO_N "(cached) $ECHO_C" >&6
48244 cat >conftest.$ac_ext <<_ACEOF
48247 cat confdefs.h >>conftest.$ac_ext
48248 cat >>conftest.$ac_ext <<_ACEOF
48249 /* end confdefs.h. */
48250 #include <sys/types.h>
48251 #include <sys/time.h>
48257 if ((struct tm *) 0)
48263 rm -f conftest.$ac_objext
48264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48265 (eval $ac_compile) 2>conftest.er1
48267 grep -v '^ *+' conftest.er1 >conftest.err
48269 cat conftest.err >&5
48270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48271 (exit $ac_status); } &&
48272 { ac_try='test -z "$ac_c_werror_flag"
48273 || test ! -s conftest.err'
48274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48275 (eval $ac_try) 2>&5
48277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48278 (exit $ac_status); }; } &&
48279 { ac_try='test -s conftest.$ac_objext'
48280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48281 (eval $ac_try) 2>&5
48283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48284 (exit $ac_status); }; }; then
48285 ac_cv_header_time=yes
48287 echo "$as_me: failed program was:" >&5
48288 sed 's/^/| /' conftest.$ac_ext >&5
48290 ac_cv_header_time=no
48292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48294 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
48295 echo "${ECHO_T}$ac_cv_header_time" >&6
48296 if test $ac_cv_header_time = yes; then
48298 cat >>confdefs.h <<\_ACEOF
48299 #define TIME_WITH_SYS_TIME 1
48304 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
48305 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
48306 if test "${ac_cv_struct_tm+set}" = set; then
48307 echo $ECHO_N "(cached) $ECHO_C" >&6
48309 cat >conftest.$ac_ext <<_ACEOF
48312 cat confdefs.h >>conftest.$ac_ext
48313 cat >>conftest.$ac_ext <<_ACEOF
48314 /* end confdefs.h. */
48315 #include <sys/types.h>
48321 struct tm *tp; tp->tm_sec;
48326 rm -f conftest.$ac_objext
48327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48328 (eval $ac_compile) 2>conftest.er1
48330 grep -v '^ *+' conftest.er1 >conftest.err
48332 cat conftest.err >&5
48333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48334 (exit $ac_status); } &&
48335 { ac_try='test -z "$ac_c_werror_flag"
48336 || test ! -s conftest.err'
48337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48338 (eval $ac_try) 2>&5
48340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48341 (exit $ac_status); }; } &&
48342 { ac_try='test -s conftest.$ac_objext'
48343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48344 (eval $ac_try) 2>&5
48346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48347 (exit $ac_status); }; }; then
48348 ac_cv_struct_tm=time.h
48350 echo "$as_me: failed program was:" >&5
48351 sed 's/^/| /' conftest.$ac_ext >&5
48353 ac_cv_struct_tm=sys/time.h
48355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48357 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
48358 echo "${ECHO_T}$ac_cv_struct_tm" >&6
48359 if test $ac_cv_struct_tm = sys/time.h; then
48361 cat >>confdefs.h <<\_ACEOF
48362 #define TM_IN_SYS_TIME 1
48368 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
48369 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
48370 if test "${ac_cv_header_stdc+set}" = set; then
48371 echo $ECHO_N "(cached) $ECHO_C" >&6
48373 cat >conftest.$ac_ext <<_ACEOF
48376 cat confdefs.h >>conftest.$ac_ext
48377 cat >>conftest.$ac_ext <<_ACEOF
48378 /* end confdefs.h. */
48379 #include <stdlib.h>
48380 #include <stdarg.h>
48381 #include <string.h>
48392 rm -f conftest.$ac_objext
48393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48394 (eval $ac_compile) 2>conftest.er1
48396 grep -v '^ *+' conftest.er1 >conftest.err
48398 cat conftest.err >&5
48399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48400 (exit $ac_status); } &&
48401 { ac_try='test -z "$ac_c_werror_flag"
48402 || test ! -s conftest.err'
48403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48404 (eval $ac_try) 2>&5
48406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48407 (exit $ac_status); }; } &&
48408 { ac_try='test -s conftest.$ac_objext'
48409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48410 (eval $ac_try) 2>&5
48412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48413 (exit $ac_status); }; }; then
48414 ac_cv_header_stdc=yes
48416 echo "$as_me: failed program was:" >&5
48417 sed 's/^/| /' conftest.$ac_ext >&5
48419 ac_cv_header_stdc=no
48421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48423 if test $ac_cv_header_stdc = yes; then
48424 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
48425 cat >conftest.$ac_ext <<_ACEOF
48428 cat confdefs.h >>conftest.$ac_ext
48429 cat >>conftest.$ac_ext <<_ACEOF
48430 /* end confdefs.h. */
48431 #include <string.h>
48434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48435 $EGREP "memchr" >/dev/null 2>&1; then
48438 ac_cv_header_stdc=no
48444 if test $ac_cv_header_stdc = yes; then
48445 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
48446 cat >conftest.$ac_ext <<_ACEOF
48449 cat confdefs.h >>conftest.$ac_ext
48450 cat >>conftest.$ac_ext <<_ACEOF
48451 /* end confdefs.h. */
48452 #include <stdlib.h>
48455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48456 $EGREP "free" >/dev/null 2>&1; then
48459 ac_cv_header_stdc=no
48465 if test $ac_cv_header_stdc = yes; then
48466 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
48467 if test "$cross_compiling" = yes; then
48470 cat >conftest.$ac_ext <<_ACEOF
48473 cat confdefs.h >>conftest.$ac_ext
48474 cat >>conftest.$ac_ext <<_ACEOF
48475 /* end confdefs.h. */
48477 #if ((' ' & 0x0FF) == 0x020)
48478 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
48479 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
48481 # define ISLOWER(c) \
48482 (('a' <= (c) && (c) <= 'i') \
48483 || ('j' <= (c) && (c) <= 'r') \
48484 || ('s' <= (c) && (c) <= 'z'))
48485 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
48488 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
48493 for (i = 0; i < 256; i++)
48494 if (XOR (islower (i), ISLOWER (i))
48495 || toupper (i) != TOUPPER (i))
48500 rm -f conftest$ac_exeext
48501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48502 (eval $ac_link) 2>&5
48504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48507 (eval $ac_try) 2>&5
48509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48510 (exit $ac_status); }; }; then
48513 echo "$as_me: program exited with status $ac_status" >&5
48514 echo "$as_me: failed program was:" >&5
48515 sed 's/^/| /' conftest.$ac_ext >&5
48517 ( exit $ac_status )
48518 ac_cv_header_stdc=no
48520 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48524 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
48525 echo "${ECHO_T}$ac_cv_header_stdc" >&6
48526 if test $ac_cv_header_stdc = yes; then
48528 cat >>confdefs.h <<\_ACEOF
48529 #define STDC_HEADERS 1
48599 netinet/in6_machtypes.h \
48604 security/pam_modules.h \
48638 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
48639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
48640 echo "$as_me:$LINENO: checking for $ac_header" >&5
48641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
48642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
48643 echo $ECHO_N "(cached) $ECHO_C" >&6
48645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
48646 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
48648 # Is the header compilable?
48649 echo "$as_me:$LINENO: checking $ac_header usability" >&5
48650 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
48651 cat >conftest.$ac_ext <<_ACEOF
48654 cat confdefs.h >>conftest.$ac_ext
48655 cat >>conftest.$ac_ext <<_ACEOF
48656 /* end confdefs.h. */
48657 $ac_includes_default
48658 #include <$ac_header>
48660 rm -f conftest.$ac_objext
48661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48662 (eval $ac_compile) 2>conftest.er1
48664 grep -v '^ *+' conftest.er1 >conftest.err
48666 cat conftest.err >&5
48667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48668 (exit $ac_status); } &&
48669 { ac_try='test -z "$ac_c_werror_flag"
48670 || test ! -s conftest.err'
48671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48672 (eval $ac_try) 2>&5
48674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48675 (exit $ac_status); }; } &&
48676 { ac_try='test -s conftest.$ac_objext'
48677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48678 (eval $ac_try) 2>&5
48680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48681 (exit $ac_status); }; }; then
48682 ac_header_compiler=yes
48684 echo "$as_me: failed program was:" >&5
48685 sed 's/^/| /' conftest.$ac_ext >&5
48687 ac_header_compiler=no
48689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48690 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48691 echo "${ECHO_T}$ac_header_compiler" >&6
48693 # Is the header present?
48694 echo "$as_me:$LINENO: checking $ac_header presence" >&5
48695 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
48696 cat >conftest.$ac_ext <<_ACEOF
48699 cat confdefs.h >>conftest.$ac_ext
48700 cat >>conftest.$ac_ext <<_ACEOF
48701 /* end confdefs.h. */
48702 #include <$ac_header>
48704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48707 grep -v '^ *+' conftest.er1 >conftest.err
48709 cat conftest.err >&5
48710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48711 (exit $ac_status); } >/dev/null; then
48712 if test -s conftest.err; then
48713 ac_cpp_err=$ac_c_preproc_warn_flag
48714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
48721 if test -z "$ac_cpp_err"; then
48722 ac_header_preproc=yes
48724 echo "$as_me: failed program was:" >&5
48725 sed 's/^/| /' conftest.$ac_ext >&5
48727 ac_header_preproc=no
48729 rm -f conftest.err conftest.$ac_ext
48730 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48731 echo "${ECHO_T}$ac_header_preproc" >&6
48733 # So? What about this header?
48734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
48737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
48738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
48739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
48740 ac_header_preproc=yes
48743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
48744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
48745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
48746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
48747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
48748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
48749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
48750 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
48751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
48754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
48757 ## -------------------------------------- ##
48758 ## Report this to heimdal-bugs@pdc.kth.se ##
48759 ## -------------------------------------- ##
48762 sed "s/^/$as_me: WARNING: /" >&2
48765 echo "$as_me:$LINENO: checking for $ac_header" >&5
48766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
48767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
48768 echo $ECHO_N "(cached) $ECHO_C" >&6
48770 eval "$as_ac_Header=\$ac_header_preproc"
48772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
48773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
48776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
48777 cat >>confdefs.h <<_ACEOF
48778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
48786 # Check whether --enable-netinfo or --disable-netinfo was given.
48787 if test "${enable_netinfo+set}" = set; then
48788 enableval="$enable_netinfo"
48792 if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then
48794 cat >>confdefs.h <<\_ACEOF
48795 #define HAVE_NETINFO 1
48804 echo "$as_me:$LINENO: checking for logwtmp" >&5
48805 echo $ECHO_N "checking for logwtmp... $ECHO_C" >&6
48806 if test "${ac_cv_funclib_logwtmp+set}" = set; then
48807 echo $ECHO_N "(cached) $ECHO_C" >&6
48810 if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then
48811 ac_save_LIBS="$LIBS"
48812 for ac_lib in "" util; do
48818 *) ac_lib="-l$ac_lib" ;;
48820 LIBS=" $ac_lib $ac_save_LIBS"
48821 cat >conftest.$ac_ext <<_ACEOF
48824 cat confdefs.h >>conftest.$ac_ext
48825 cat >>conftest.$ac_ext <<_ACEOF
48826 /* end confdefs.h. */
48836 rm -f conftest.$ac_objext conftest$ac_exeext
48837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48838 (eval $ac_link) 2>conftest.er1
48840 grep -v '^ *+' conftest.er1 >conftest.err
48842 cat conftest.err >&5
48843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48844 (exit $ac_status); } &&
48845 { ac_try='test -z "$ac_c_werror_flag"
48846 || test ! -s conftest.err'
48847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48848 (eval $ac_try) 2>&5
48850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48851 (exit $ac_status); }; } &&
48852 { ac_try='test -s conftest$ac_exeext'
48853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48854 (eval $ac_try) 2>&5
48856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48857 (exit $ac_status); }; }; then
48858 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break
48860 echo "$as_me: failed program was:" >&5
48861 sed 's/^/| /' conftest.$ac_ext >&5
48864 rm -f conftest.err conftest.$ac_objext \
48865 conftest$ac_exeext conftest.$ac_ext
48867 eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}"
48868 LIBS="$ac_save_LIBS"
48874 eval "ac_res=\$ac_cv_funclib_logwtmp"
48878 for ac_func in logwtmp
48880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48881 echo "$as_me:$LINENO: checking for $ac_func" >&5
48882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48883 if eval "test \"\${$as_ac_var+set}\" = set"; then
48884 echo $ECHO_N "(cached) $ECHO_C" >&6
48886 cat >conftest.$ac_ext <<_ACEOF
48889 cat confdefs.h >>conftest.$ac_ext
48890 cat >>conftest.$ac_ext <<_ACEOF
48891 /* end confdefs.h. */
48892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48894 #define $ac_func innocuous_$ac_func
48896 /* System header to define __stub macros and hopefully few prototypes,
48897 which can conflict with char $ac_func (); below.
48898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48899 <limits.h> exists even on freestanding compilers. */
48902 # include <limits.h>
48904 # include <assert.h>
48909 /* Override any gcc2 internal prototype to avoid an error. */
48914 /* We use char because int might match the return type of a gcc2
48915 builtin and then its argument prototype would still apply. */
48917 /* The GNU C library defines this for functions which it implements
48918 to always fail with ENOSYS. Some functions are actually named
48919 something starting with __ and the normal name is an alias. */
48920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48923 char (*f) () = $ac_func;
48932 return f != $ac_func;
48937 rm -f conftest.$ac_objext conftest$ac_exeext
48938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48939 (eval $ac_link) 2>conftest.er1
48941 grep -v '^ *+' conftest.er1 >conftest.err
48943 cat conftest.err >&5
48944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48945 (exit $ac_status); } &&
48946 { ac_try='test -z "$ac_c_werror_flag"
48947 || test ! -s conftest.err'
48948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48949 (eval $ac_try) 2>&5
48951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48952 (exit $ac_status); }; } &&
48953 { ac_try='test -s conftest$ac_exeext'
48954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48955 (eval $ac_try) 2>&5
48957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48958 (exit $ac_status); }; }; then
48959 eval "$as_ac_var=yes"
48961 echo "$as_me: failed program was:" >&5
48962 sed 's/^/| /' conftest.$ac_ext >&5
48964 eval "$as_ac_var=no"
48966 rm -f conftest.err conftest.$ac_objext \
48967 conftest$ac_exeext conftest.$ac_ext
48969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48971 if test `eval echo '${'$as_ac_var'}'` = yes; then
48972 cat >>confdefs.h <<_ACEOF
48973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48981 eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
48982 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
48983 eval "LIB_logwtmp=$ac_res"
48987 eval "ac_cv_func_logwtmp=yes"
48988 eval "LIB_logwtmp="
48989 cat >>confdefs.h <<_ACEOF
48990 #define $ac_tr_func 1
48993 echo "$as_me:$LINENO: result: yes" >&5
48994 echo "${ECHO_T}yes" >&6
48997 eval "ac_cv_func_logwtmp=no"
48998 eval "LIB_logwtmp="
48999 echo "$as_me:$LINENO: result: no" >&5
49000 echo "${ECHO_T}no" >&6
49003 eval "ac_cv_func_logwtmp=yes"
49004 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
49005 cat >>confdefs.h <<_ACEOF
49006 #define $ac_tr_func 1
49009 cat >>confdefs.h <<_ACEOF
49010 #define $ac_tr_lib 1
49013 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
49014 echo "${ECHO_T}yes, in $ac_res" >&6
49022 echo "$as_me:$LINENO: checking for logout" >&5
49023 echo $ECHO_N "checking for logout... $ECHO_C" >&6
49024 if test "${ac_cv_funclib_logout+set}" = set; then
49025 echo $ECHO_N "(cached) $ECHO_C" >&6
49028 if eval "test \"\$ac_cv_func_logout\" != yes" ; then
49029 ac_save_LIBS="$LIBS"
49030 for ac_lib in "" util; do
49036 *) ac_lib="-l$ac_lib" ;;
49038 LIBS=" $ac_lib $ac_save_LIBS"
49039 cat >conftest.$ac_ext <<_ACEOF
49042 cat confdefs.h >>conftest.$ac_ext
49043 cat >>conftest.$ac_ext <<_ACEOF
49044 /* end confdefs.h. */
49054 rm -f conftest.$ac_objext conftest$ac_exeext
49055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49056 (eval $ac_link) 2>conftest.er1
49058 grep -v '^ *+' conftest.er1 >conftest.err
49060 cat conftest.err >&5
49061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49062 (exit $ac_status); } &&
49063 { ac_try='test -z "$ac_c_werror_flag"
49064 || test ! -s conftest.err'
49065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49066 (eval $ac_try) 2>&5
49068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49069 (exit $ac_status); }; } &&
49070 { ac_try='test -s conftest$ac_exeext'
49071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49072 (eval $ac_try) 2>&5
49074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49075 (exit $ac_status); }; }; then
49076 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logout=$ac_lib; else ac_cv_funclib_logout=yes; fi";break
49078 echo "$as_me: failed program was:" >&5
49079 sed 's/^/| /' conftest.$ac_ext >&5
49082 rm -f conftest.err conftest.$ac_objext \
49083 conftest$ac_exeext conftest.$ac_ext
49085 eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout-no}"
49086 LIBS="$ac_save_LIBS"
49092 eval "ac_res=\$ac_cv_funclib_logout"
49096 for ac_func in logout
49098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49099 echo "$as_me:$LINENO: checking for $ac_func" >&5
49100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49101 if eval "test \"\${$as_ac_var+set}\" = set"; then
49102 echo $ECHO_N "(cached) $ECHO_C" >&6
49104 cat >conftest.$ac_ext <<_ACEOF
49107 cat confdefs.h >>conftest.$ac_ext
49108 cat >>conftest.$ac_ext <<_ACEOF
49109 /* end confdefs.h. */
49110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49112 #define $ac_func innocuous_$ac_func
49114 /* System header to define __stub macros and hopefully few prototypes,
49115 which can conflict with char $ac_func (); below.
49116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49117 <limits.h> exists even on freestanding compilers. */
49120 # include <limits.h>
49122 # include <assert.h>
49127 /* Override any gcc2 internal prototype to avoid an error. */
49132 /* We use char because int might match the return type of a gcc2
49133 builtin and then its argument prototype would still apply. */
49135 /* The GNU C library defines this for functions which it implements
49136 to always fail with ENOSYS. Some functions are actually named
49137 something starting with __ and the normal name is an alias. */
49138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49141 char (*f) () = $ac_func;
49150 return f != $ac_func;
49155 rm -f conftest.$ac_objext conftest$ac_exeext
49156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49157 (eval $ac_link) 2>conftest.er1
49159 grep -v '^ *+' conftest.er1 >conftest.err
49161 cat conftest.err >&5
49162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49163 (exit $ac_status); } &&
49164 { ac_try='test -z "$ac_c_werror_flag"
49165 || test ! -s conftest.err'
49166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49167 (eval $ac_try) 2>&5
49169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49170 (exit $ac_status); }; } &&
49171 { ac_try='test -s conftest$ac_exeext'
49172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49173 (eval $ac_try) 2>&5
49175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49176 (exit $ac_status); }; }; then
49177 eval "$as_ac_var=yes"
49179 echo "$as_me: failed program was:" >&5
49180 sed 's/^/| /' conftest.$ac_ext >&5
49182 eval "$as_ac_var=no"
49184 rm -f conftest.err conftest.$ac_objext \
49185 conftest$ac_exeext conftest.$ac_ext
49187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49188 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49189 if test `eval echo '${'$as_ac_var'}'` = yes; then
49190 cat >>confdefs.h <<_ACEOF
49191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49199 eval "ac_tr_func=HAVE_`echo logout | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
49200 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
49201 eval "LIB_logout=$ac_res"
49205 eval "ac_cv_func_logout=yes"
49207 cat >>confdefs.h <<_ACEOF
49208 #define $ac_tr_func 1
49211 echo "$as_me:$LINENO: result: yes" >&5
49212 echo "${ECHO_T}yes" >&6
49215 eval "ac_cv_func_logout=no"
49217 echo "$as_me:$LINENO: result: no" >&5
49218 echo "${ECHO_T}no" >&6
49221 eval "ac_cv_func_logout=yes"
49222 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
49223 cat >>confdefs.h <<_ACEOF
49224 #define $ac_tr_func 1
49227 cat >>confdefs.h <<_ACEOF
49228 #define $ac_tr_lib 1
49231 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
49232 echo "${ECHO_T}yes, in $ac_res" >&6
49240 echo "$as_me:$LINENO: checking for openpty" >&5
49241 echo $ECHO_N "checking for openpty... $ECHO_C" >&6
49242 if test "${ac_cv_funclib_openpty+set}" = set; then
49243 echo $ECHO_N "(cached) $ECHO_C" >&6
49246 if eval "test \"\$ac_cv_func_openpty\" != yes" ; then
49247 ac_save_LIBS="$LIBS"
49248 for ac_lib in "" util; do
49254 *) ac_lib="-l$ac_lib" ;;
49256 LIBS=" $ac_lib $ac_save_LIBS"
49257 cat >conftest.$ac_ext <<_ACEOF
49260 cat confdefs.h >>conftest.$ac_ext
49261 cat >>conftest.$ac_ext <<_ACEOF
49262 /* end confdefs.h. */
49272 rm -f conftest.$ac_objext conftest$ac_exeext
49273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49274 (eval $ac_link) 2>conftest.er1
49276 grep -v '^ *+' conftest.er1 >conftest.err
49278 cat conftest.err >&5
49279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49280 (exit $ac_status); } &&
49281 { ac_try='test -z "$ac_c_werror_flag"
49282 || test ! -s conftest.err'
49283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49284 (eval $ac_try) 2>&5
49286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49287 (exit $ac_status); }; } &&
49288 { ac_try='test -s conftest$ac_exeext'
49289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49290 (eval $ac_try) 2>&5
49292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49293 (exit $ac_status); }; }; then
49294 eval "if test -n \"$ac_lib\";then ac_cv_funclib_openpty=$ac_lib; else ac_cv_funclib_openpty=yes; fi";break
49296 echo "$as_me: failed program was:" >&5
49297 sed 's/^/| /' conftest.$ac_ext >&5
49300 rm -f conftest.err conftest.$ac_objext \
49301 conftest$ac_exeext conftest.$ac_ext
49303 eval "ac_cv_funclib_openpty=\${ac_cv_funclib_openpty-no}"
49304 LIBS="$ac_save_LIBS"
49310 eval "ac_res=\$ac_cv_funclib_openpty"
49314 for ac_func in openpty
49316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49317 echo "$as_me:$LINENO: checking for $ac_func" >&5
49318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49319 if eval "test \"\${$as_ac_var+set}\" = set"; then
49320 echo $ECHO_N "(cached) $ECHO_C" >&6
49322 cat >conftest.$ac_ext <<_ACEOF
49325 cat confdefs.h >>conftest.$ac_ext
49326 cat >>conftest.$ac_ext <<_ACEOF
49327 /* end confdefs.h. */
49328 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49330 #define $ac_func innocuous_$ac_func
49332 /* System header to define __stub macros and hopefully few prototypes,
49333 which can conflict with char $ac_func (); below.
49334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49335 <limits.h> exists even on freestanding compilers. */
49338 # include <limits.h>
49340 # include <assert.h>
49345 /* Override any gcc2 internal prototype to avoid an error. */
49350 /* We use char because int might match the return type of a gcc2
49351 builtin and then its argument prototype would still apply. */
49353 /* The GNU C library defines this for functions which it implements
49354 to always fail with ENOSYS. Some functions are actually named
49355 something starting with __ and the normal name is an alias. */
49356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49359 char (*f) () = $ac_func;
49368 return f != $ac_func;
49373 rm -f conftest.$ac_objext conftest$ac_exeext
49374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49375 (eval $ac_link) 2>conftest.er1
49377 grep -v '^ *+' conftest.er1 >conftest.err
49379 cat conftest.err >&5
49380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49381 (exit $ac_status); } &&
49382 { ac_try='test -z "$ac_c_werror_flag"
49383 || test ! -s conftest.err'
49384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49385 (eval $ac_try) 2>&5
49387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49388 (exit $ac_status); }; } &&
49389 { ac_try='test -s conftest$ac_exeext'
49390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49391 (eval $ac_try) 2>&5
49393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49394 (exit $ac_status); }; }; then
49395 eval "$as_ac_var=yes"
49397 echo "$as_me: failed program was:" >&5
49398 sed 's/^/| /' conftest.$ac_ext >&5
49400 eval "$as_ac_var=no"
49402 rm -f conftest.err conftest.$ac_objext \
49403 conftest$ac_exeext conftest.$ac_ext
49405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49406 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49407 if test `eval echo '${'$as_ac_var'}'` = yes; then
49408 cat >>confdefs.h <<_ACEOF
49409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49417 eval "ac_tr_func=HAVE_`echo openpty | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
49418 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
49419 eval "LIB_openpty=$ac_res"
49423 eval "ac_cv_func_openpty=yes"
49424 eval "LIB_openpty="
49425 cat >>confdefs.h <<_ACEOF
49426 #define $ac_tr_func 1
49429 echo "$as_me:$LINENO: result: yes" >&5
49430 echo "${ECHO_T}yes" >&6
49433 eval "ac_cv_func_openpty=no"
49434 eval "LIB_openpty="
49435 echo "$as_me:$LINENO: result: no" >&5
49436 echo "${ECHO_T}no" >&6
49439 eval "ac_cv_func_openpty=yes"
49440 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
49441 cat >>confdefs.h <<_ACEOF
49442 #define $ac_tr_func 1
49445 cat >>confdefs.h <<_ACEOF
49446 #define $ac_tr_lib 1
49449 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
49450 echo "${ECHO_T}yes, in $ac_res" >&6
49458 echo "$as_me:$LINENO: checking for tgetent" >&5
49459 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
49460 if test "${ac_cv_funclib_tgetent+set}" = set; then
49461 echo $ECHO_N "(cached) $ECHO_C" >&6
49464 if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then
49465 ac_save_LIBS="$LIBS"
49466 for ac_lib in "" termcap ncurses curses; do
49472 *) ac_lib="-l$ac_lib" ;;
49474 LIBS=" $ac_lib $ac_save_LIBS"
49475 cat >conftest.$ac_ext <<_ACEOF
49478 cat confdefs.h >>conftest.$ac_ext
49479 cat >>conftest.$ac_ext <<_ACEOF
49480 /* end confdefs.h. */
49490 rm -f conftest.$ac_objext conftest$ac_exeext
49491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49492 (eval $ac_link) 2>conftest.er1
49494 grep -v '^ *+' conftest.er1 >conftest.err
49496 cat conftest.err >&5
49497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49498 (exit $ac_status); } &&
49499 { ac_try='test -z "$ac_c_werror_flag"
49500 || test ! -s conftest.err'
49501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49502 (eval $ac_try) 2>&5
49504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49505 (exit $ac_status); }; } &&
49506 { ac_try='test -s conftest$ac_exeext'
49507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49508 (eval $ac_try) 2>&5
49510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49511 (exit $ac_status); }; }; then
49512 eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break
49514 echo "$as_me: failed program was:" >&5
49515 sed 's/^/| /' conftest.$ac_ext >&5
49518 rm -f conftest.err conftest.$ac_objext \
49519 conftest$ac_exeext conftest.$ac_ext
49521 eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}"
49522 LIBS="$ac_save_LIBS"
49528 eval "ac_res=\$ac_cv_funclib_tgetent"
49532 for ac_func in tgetent
49534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49535 echo "$as_me:$LINENO: checking for $ac_func" >&5
49536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49537 if eval "test \"\${$as_ac_var+set}\" = set"; then
49538 echo $ECHO_N "(cached) $ECHO_C" >&6
49540 cat >conftest.$ac_ext <<_ACEOF
49543 cat confdefs.h >>conftest.$ac_ext
49544 cat >>conftest.$ac_ext <<_ACEOF
49545 /* end confdefs.h. */
49546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49548 #define $ac_func innocuous_$ac_func
49550 /* System header to define __stub macros and hopefully few prototypes,
49551 which can conflict with char $ac_func (); below.
49552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49553 <limits.h> exists even on freestanding compilers. */
49556 # include <limits.h>
49558 # include <assert.h>
49563 /* Override any gcc2 internal prototype to avoid an error. */
49568 /* We use char because int might match the return type of a gcc2
49569 builtin and then its argument prototype would still apply. */
49571 /* The GNU C library defines this for functions which it implements
49572 to always fail with ENOSYS. Some functions are actually named
49573 something starting with __ and the normal name is an alias. */
49574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49577 char (*f) () = $ac_func;
49586 return f != $ac_func;
49591 rm -f conftest.$ac_objext conftest$ac_exeext
49592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49593 (eval $ac_link) 2>conftest.er1
49595 grep -v '^ *+' conftest.er1 >conftest.err
49597 cat conftest.err >&5
49598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49599 (exit $ac_status); } &&
49600 { ac_try='test -z "$ac_c_werror_flag"
49601 || test ! -s conftest.err'
49602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49603 (eval $ac_try) 2>&5
49605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49606 (exit $ac_status); }; } &&
49607 { ac_try='test -s conftest$ac_exeext'
49608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49609 (eval $ac_try) 2>&5
49611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49612 (exit $ac_status); }; }; then
49613 eval "$as_ac_var=yes"
49615 echo "$as_me: failed program was:" >&5
49616 sed 's/^/| /' conftest.$ac_ext >&5
49618 eval "$as_ac_var=no"
49620 rm -f conftest.err conftest.$ac_objext \
49621 conftest$ac_exeext conftest.$ac_ext
49623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49624 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49625 if test `eval echo '${'$as_ac_var'}'` = yes; then
49626 cat >>confdefs.h <<_ACEOF
49627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49635 eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
49636 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
49637 eval "LIB_tgetent=$ac_res"
49641 eval "ac_cv_func_tgetent=yes"
49642 eval "LIB_tgetent="
49643 cat >>confdefs.h <<_ACEOF
49644 #define $ac_tr_func 1
49647 echo "$as_me:$LINENO: result: yes" >&5
49648 echo "${ECHO_T}yes" >&6
49651 eval "ac_cv_func_tgetent=no"
49652 eval "LIB_tgetent="
49653 echo "$as_me:$LINENO: result: no" >&5
49654 echo "${ECHO_T}no" >&6
49657 eval "ac_cv_func_tgetent=yes"
49658 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
49659 cat >>confdefs.h <<_ACEOF
49660 #define $ac_tr_func 1
49663 cat >>confdefs.h <<_ACEOF
49664 #define $ac_tr_lib 1
49667 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
49668 echo "${ECHO_T}yes, in $ac_res" >&6
49731 yp_get_default_domain \
49734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49735 echo "$as_me:$LINENO: checking for $ac_func" >&5
49736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49737 if eval "test \"\${$as_ac_var+set}\" = set"; then
49738 echo $ECHO_N "(cached) $ECHO_C" >&6
49740 cat >conftest.$ac_ext <<_ACEOF
49743 cat confdefs.h >>conftest.$ac_ext
49744 cat >>conftest.$ac_ext <<_ACEOF
49745 /* end confdefs.h. */
49746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49748 #define $ac_func innocuous_$ac_func
49750 /* System header to define __stub macros and hopefully few prototypes,
49751 which can conflict with char $ac_func (); below.
49752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49753 <limits.h> exists even on freestanding compilers. */
49756 # include <limits.h>
49758 # include <assert.h>
49763 /* Override any gcc2 internal prototype to avoid an error. */
49768 /* We use char because int might match the return type of a gcc2
49769 builtin and then its argument prototype would still apply. */
49771 /* The GNU C library defines this for functions which it implements
49772 to always fail with ENOSYS. Some functions are actually named
49773 something starting with __ and the normal name is an alias. */
49774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49777 char (*f) () = $ac_func;
49786 return f != $ac_func;
49791 rm -f conftest.$ac_objext conftest$ac_exeext
49792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49793 (eval $ac_link) 2>conftest.er1
49795 grep -v '^ *+' conftest.er1 >conftest.err
49797 cat conftest.err >&5
49798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49799 (exit $ac_status); } &&
49800 { ac_try='test -z "$ac_c_werror_flag"
49801 || test ! -s conftest.err'
49802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49803 (eval $ac_try) 2>&5
49805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49806 (exit $ac_status); }; } &&
49807 { ac_try='test -s conftest$ac_exeext'
49808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49809 (eval $ac_try) 2>&5
49811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49812 (exit $ac_status); }; }; then
49813 eval "$as_ac_var=yes"
49815 echo "$as_me: failed program was:" >&5
49816 sed 's/^/| /' conftest.$ac_ext >&5
49818 eval "$as_ac_var=no"
49820 rm -f conftest.err conftest.$ac_objext \
49821 conftest$ac_exeext conftest.$ac_ext
49823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49824 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49825 if test `eval echo '${'$as_ac_var'}'` = yes; then
49826 cat >>confdefs.h <<_ACEOF
49827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49836 for ac_header in stdlib.h unistd.h
49838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49840 echo "$as_me:$LINENO: checking for $ac_header" >&5
49841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49843 echo $ECHO_N "(cached) $ECHO_C" >&6
49845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49848 # Is the header compilable?
49849 echo "$as_me:$LINENO: checking $ac_header usability" >&5
49850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
49851 cat >conftest.$ac_ext <<_ACEOF
49854 cat confdefs.h >>conftest.$ac_ext
49855 cat >>conftest.$ac_ext <<_ACEOF
49856 /* end confdefs.h. */
49857 $ac_includes_default
49858 #include <$ac_header>
49860 rm -f conftest.$ac_objext
49861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49862 (eval $ac_compile) 2>conftest.er1
49864 grep -v '^ *+' conftest.er1 >conftest.err
49866 cat conftest.err >&5
49867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49868 (exit $ac_status); } &&
49869 { ac_try='test -z "$ac_c_werror_flag"
49870 || test ! -s conftest.err'
49871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49872 (eval $ac_try) 2>&5
49874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49875 (exit $ac_status); }; } &&
49876 { ac_try='test -s conftest.$ac_objext'
49877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49878 (eval $ac_try) 2>&5
49880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49881 (exit $ac_status); }; }; then
49882 ac_header_compiler=yes
49884 echo "$as_me: failed program was:" >&5
49885 sed 's/^/| /' conftest.$ac_ext >&5
49887 ac_header_compiler=no
49889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49890 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49891 echo "${ECHO_T}$ac_header_compiler" >&6
49893 # Is the header present?
49894 echo "$as_me:$LINENO: checking $ac_header presence" >&5
49895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
49896 cat >conftest.$ac_ext <<_ACEOF
49899 cat confdefs.h >>conftest.$ac_ext
49900 cat >>conftest.$ac_ext <<_ACEOF
49901 /* end confdefs.h. */
49902 #include <$ac_header>
49904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
49905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
49907 grep -v '^ *+' conftest.er1 >conftest.err
49909 cat conftest.err >&5
49910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49911 (exit $ac_status); } >/dev/null; then
49912 if test -s conftest.err; then
49913 ac_cpp_err=$ac_c_preproc_warn_flag
49914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
49921 if test -z "$ac_cpp_err"; then
49922 ac_header_preproc=yes
49924 echo "$as_me: failed program was:" >&5
49925 sed 's/^/| /' conftest.$ac_ext >&5
49927 ac_header_preproc=no
49929 rm -f conftest.err conftest.$ac_ext
49930 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49931 echo "${ECHO_T}$ac_header_preproc" >&6
49933 # So? What about this header?
49934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
49937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
49938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
49939 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
49940 ac_header_preproc=yes
49943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
49944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
49945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
49946 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
49947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
49948 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
49949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
49950 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
49951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
49954 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
49957 ## -------------------------------------- ##
49958 ## Report this to heimdal-bugs@pdc.kth.se ##
49959 ## -------------------------------------- ##
49962 sed "s/^/$as_me: WARNING: /" >&2
49965 echo "$as_me:$LINENO: checking for $ac_header" >&5
49966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49968 echo $ECHO_N "(cached) $ECHO_C" >&6
49970 eval "$as_ac_Header=\$ac_header_preproc"
49972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
49977 cat >>confdefs.h <<_ACEOF
49978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49986 for ac_func in getpagesize
49988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49989 echo "$as_me:$LINENO: checking for $ac_func" >&5
49990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49991 if eval "test \"\${$as_ac_var+set}\" = set"; then
49992 echo $ECHO_N "(cached) $ECHO_C" >&6
49994 cat >conftest.$ac_ext <<_ACEOF
49997 cat confdefs.h >>conftest.$ac_ext
49998 cat >>conftest.$ac_ext <<_ACEOF
49999 /* end confdefs.h. */
50000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50002 #define $ac_func innocuous_$ac_func
50004 /* System header to define __stub macros and hopefully few prototypes,
50005 which can conflict with char $ac_func (); below.
50006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50007 <limits.h> exists even on freestanding compilers. */
50010 # include <limits.h>
50012 # include <assert.h>
50017 /* Override any gcc2 internal prototype to avoid an error. */
50022 /* We use char because int might match the return type of a gcc2
50023 builtin and then its argument prototype would still apply. */
50025 /* The GNU C library defines this for functions which it implements
50026 to always fail with ENOSYS. Some functions are actually named
50027 something starting with __ and the normal name is an alias. */
50028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50031 char (*f) () = $ac_func;
50040 return f != $ac_func;
50045 rm -f conftest.$ac_objext conftest$ac_exeext
50046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50047 (eval $ac_link) 2>conftest.er1
50049 grep -v '^ *+' conftest.er1 >conftest.err
50051 cat conftest.err >&5
50052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50053 (exit $ac_status); } &&
50054 { ac_try='test -z "$ac_c_werror_flag"
50055 || test ! -s conftest.err'
50056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50057 (eval $ac_try) 2>&5
50059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50060 (exit $ac_status); }; } &&
50061 { ac_try='test -s conftest$ac_exeext'
50062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50063 (eval $ac_try) 2>&5
50065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50066 (exit $ac_status); }; }; then
50067 eval "$as_ac_var=yes"
50069 echo "$as_me: failed program was:" >&5
50070 sed 's/^/| /' conftest.$ac_ext >&5
50072 eval "$as_ac_var=no"
50074 rm -f conftest.err conftest.$ac_objext \
50075 conftest$ac_exeext conftest.$ac_ext
50077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50079 if test `eval echo '${'$as_ac_var'}'` = yes; then
50080 cat >>confdefs.h <<_ACEOF
50081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50087 echo "$as_me:$LINENO: checking for working mmap" >&5
50088 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
50089 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
50090 echo $ECHO_N "(cached) $ECHO_C" >&6
50092 if test "$cross_compiling" = yes; then
50093 ac_cv_func_mmap_fixed_mapped=no
50095 cat >conftest.$ac_ext <<_ACEOF
50098 cat confdefs.h >>conftest.$ac_ext
50099 cat >>conftest.$ac_ext <<_ACEOF
50100 /* end confdefs.h. */
50101 $ac_includes_default
50102 /* malloc might have been renamed as rpl_malloc. */
50105 /* Thanks to Mike Haertel and Jim Avera for this test.
50106 Here is a matrix of mmap possibilities:
50107 mmap private not fixed
50108 mmap private fixed at somewhere currently unmapped
50109 mmap private fixed at somewhere already mapped
50110 mmap shared not fixed
50111 mmap shared fixed at somewhere currently unmapped
50112 mmap shared fixed at somewhere already mapped
50113 For private mappings, we should verify that changes cannot be read()
50114 back from the file, nor mmap's back from the file at a different
50115 address. (There have been systems where private was not correctly
50116 implemented like the infamous i386 svr4.0, and systems where the
50117 VM page cache was not coherent with the file system buffer cache
50118 like early versions of FreeBSD and possibly contemporary NetBSD.)
50119 For shared mappings, we should conversely verify that changes get
50120 propagated back to all the places they're supposed to be.
50122 Grep wants private fixed already mapped.
50123 The main things grep needs to know about mmap are:
50124 * does it exist and is it safe to write into the mmap'd area
50125 * how to use it (BSD variants) */
50128 #include <sys/mman.h>
50130 #if !STDC_HEADERS && !HAVE_STDLIB_H
50134 /* This mess was copied from the GNU getpagesize.h. */
50135 #if !HAVE_GETPAGESIZE
50136 /* Assume that all systems that can run configure have sys/param.h. */
50137 # if !HAVE_SYS_PARAM_H
50138 # define HAVE_SYS_PARAM_H 1
50141 # ifdef _SC_PAGESIZE
50142 # define getpagesize() sysconf(_SC_PAGESIZE)
50143 # else /* no _SC_PAGESIZE */
50144 # if HAVE_SYS_PARAM_H
50145 # include <sys/param.h>
50146 # ifdef EXEC_PAGESIZE
50147 # define getpagesize() EXEC_PAGESIZE
50148 # else /* no EXEC_PAGESIZE */
50150 # define getpagesize() NBPG * CLSIZE
50153 # endif /* no CLSIZE */
50154 # else /* no NBPG */
50156 # define getpagesize() NBPC
50157 # else /* no NBPC */
50159 # define getpagesize() PAGESIZE
50160 # endif /* PAGESIZE */
50161 # endif /* no NBPC */
50162 # endif /* no NBPG */
50163 # endif /* no EXEC_PAGESIZE */
50164 # else /* no HAVE_SYS_PARAM_H */
50165 # define getpagesize() 8192 /* punt totally */
50166 # endif /* no HAVE_SYS_PARAM_H */
50167 # endif /* no _SC_PAGESIZE */
50169 #endif /* no HAVE_GETPAGESIZE */
50174 char *data, *data2, *data3;
50178 pagesize = getpagesize ();
50180 /* First, make a file with some known garbage in it. */
50181 data = (char *) malloc (pagesize);
50184 for (i = 0; i < pagesize; ++i)
50185 *(data + i) = rand ();
50187 fd = creat ("conftest.mmap", 0600);
50190 if (write (fd, data, pagesize) != pagesize)
50194 /* Next, try to mmap the file at a fixed address which already has
50195 something else allocated at it. If we can, also make sure that
50196 we see the same garbage. */
50197 fd = open ("conftest.mmap", O_RDWR);
50200 data2 = (char *) malloc (2 * pagesize);
50203 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
50204 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
50205 MAP_PRIVATE | MAP_FIXED, fd, 0L))
50207 for (i = 0; i < pagesize; ++i)
50208 if (*(data + i) != *(data2 + i))
50211 /* Finally, make sure that changes to the mapped area do not
50212 percolate back to the file as seen by read(). (This is a bug on
50213 some variants of i386 svr4.0.) */
50214 for (i = 0; i < pagesize; ++i)
50215 *(data2 + i) = *(data2 + i) + 1;
50216 data3 = (char *) malloc (pagesize);
50219 if (read (fd, data3, pagesize) != pagesize)
50221 for (i = 0; i < pagesize; ++i)
50222 if (*(data + i) != *(data3 + i))
50228 rm -f conftest$ac_exeext
50229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50230 (eval $ac_link) 2>&5
50232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50235 (eval $ac_try) 2>&5
50237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50238 (exit $ac_status); }; }; then
50239 ac_cv_func_mmap_fixed_mapped=yes
50241 echo "$as_me: program exited with status $ac_status" >&5
50242 echo "$as_me: failed program was:" >&5
50243 sed 's/^/| /' conftest.$ac_ext >&5
50245 ( exit $ac_status )
50246 ac_cv_func_mmap_fixed_mapped=no
50248 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50251 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
50252 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
50253 if test $ac_cv_func_mmap_fixed_mapped = yes; then
50255 cat >>confdefs.h <<\_ACEOF
50256 #define HAVE_MMAP 1
50260 rm -f conftest.mmap
50267 for ac_header in capability.h sys/capability.h
50269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
50270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50271 echo "$as_me:$LINENO: checking for $ac_header" >&5
50272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50274 echo $ECHO_N "(cached) $ECHO_C" >&6
50276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50279 # Is the header compilable?
50280 echo "$as_me:$LINENO: checking $ac_header usability" >&5
50281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
50282 cat >conftest.$ac_ext <<_ACEOF
50285 cat confdefs.h >>conftest.$ac_ext
50286 cat >>conftest.$ac_ext <<_ACEOF
50287 /* end confdefs.h. */
50288 $ac_includes_default
50289 #include <$ac_header>
50291 rm -f conftest.$ac_objext
50292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50293 (eval $ac_compile) 2>conftest.er1
50295 grep -v '^ *+' conftest.er1 >conftest.err
50297 cat conftest.err >&5
50298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50299 (exit $ac_status); } &&
50300 { ac_try='test -z "$ac_c_werror_flag"
50301 || test ! -s conftest.err'
50302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50303 (eval $ac_try) 2>&5
50305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50306 (exit $ac_status); }; } &&
50307 { ac_try='test -s conftest.$ac_objext'
50308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50309 (eval $ac_try) 2>&5
50311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50312 (exit $ac_status); }; }; then
50313 ac_header_compiler=yes
50315 echo "$as_me: failed program was:" >&5
50316 sed 's/^/| /' conftest.$ac_ext >&5
50318 ac_header_compiler=no
50320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50321 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50322 echo "${ECHO_T}$ac_header_compiler" >&6
50324 # Is the header present?
50325 echo "$as_me:$LINENO: checking $ac_header presence" >&5
50326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
50327 cat >conftest.$ac_ext <<_ACEOF
50330 cat confdefs.h >>conftest.$ac_ext
50331 cat >>conftest.$ac_ext <<_ACEOF
50332 /* end confdefs.h. */
50333 #include <$ac_header>
50335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50338 grep -v '^ *+' conftest.er1 >conftest.err
50340 cat conftest.err >&5
50341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50342 (exit $ac_status); } >/dev/null; then
50343 if test -s conftest.err; then
50344 ac_cpp_err=$ac_c_preproc_warn_flag
50345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
50352 if test -z "$ac_cpp_err"; then
50353 ac_header_preproc=yes
50355 echo "$as_me: failed program was:" >&5
50356 sed 's/^/| /' conftest.$ac_ext >&5
50358 ac_header_preproc=no
50360 rm -f conftest.err conftest.$ac_ext
50361 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50362 echo "${ECHO_T}$ac_header_preproc" >&6
50364 # So? What about this header?
50365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
50367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
50370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
50371 ac_header_preproc=yes
50374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
50377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
50378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
50379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
50380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
50381 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
50382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
50385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
50388 ## -------------------------------------- ##
50389 ## Report this to heimdal-bugs@pdc.kth.se ##
50390 ## -------------------------------------- ##
50393 sed "s/^/$as_me: WARNING: /" >&2
50396 echo "$as_me:$LINENO: checking for $ac_header" >&5
50397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50399 echo $ECHO_N "(cached) $ECHO_C" >&6
50401 eval "$as_ac_Header=\$ac_header_preproc"
50403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
50408 cat >>confdefs.h <<_ACEOF
50409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
50419 for ac_func in sgi_getcapabilitybyname cap_set_proc
50421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50422 echo "$as_me:$LINENO: checking for $ac_func" >&5
50423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50424 if eval "test \"\${$as_ac_var+set}\" = set"; then
50425 echo $ECHO_N "(cached) $ECHO_C" >&6
50427 cat >conftest.$ac_ext <<_ACEOF
50430 cat confdefs.h >>conftest.$ac_ext
50431 cat >>conftest.$ac_ext <<_ACEOF
50432 /* end confdefs.h. */
50433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50435 #define $ac_func innocuous_$ac_func
50437 /* System header to define __stub macros and hopefully few prototypes,
50438 which can conflict with char $ac_func (); below.
50439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50440 <limits.h> exists even on freestanding compilers. */
50443 # include <limits.h>
50445 # include <assert.h>
50450 /* Override any gcc2 internal prototype to avoid an error. */
50455 /* We use char because int might match the return type of a gcc2
50456 builtin and then its argument prototype would still apply. */
50458 /* The GNU C library defines this for functions which it implements
50459 to always fail with ENOSYS. Some functions are actually named
50460 something starting with __ and the normal name is an alias. */
50461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50464 char (*f) () = $ac_func;
50473 return f != $ac_func;
50478 rm -f conftest.$ac_objext conftest$ac_exeext
50479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50480 (eval $ac_link) 2>conftest.er1
50482 grep -v '^ *+' conftest.er1 >conftest.err
50484 cat conftest.err >&5
50485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50486 (exit $ac_status); } &&
50487 { ac_try='test -z "$ac_c_werror_flag"
50488 || test ! -s conftest.err'
50489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50490 (eval $ac_try) 2>&5
50492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50493 (exit $ac_status); }; } &&
50494 { ac_try='test -s conftest$ac_exeext'
50495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50496 (eval $ac_try) 2>&5
50498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50499 (exit $ac_status); }; }; then
50500 eval "$as_ac_var=yes"
50502 echo "$as_me: failed program was:" >&5
50503 sed 's/^/| /' conftest.$ac_ext >&5
50505 eval "$as_ac_var=no"
50507 rm -f conftest.err conftest.$ac_objext \
50508 conftest$ac_exeext conftest.$ac_ext
50510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50511 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50512 if test `eval echo '${'$as_ac_var'}'` = yes; then
50513 cat >>confdefs.h <<_ACEOF
50514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50526 echo "$as_me:$LINENO: checking for getpwnam_r" >&5
50527 echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6
50528 if test "${ac_cv_funclib_getpwnam_r+set}" = set; then
50529 echo $ECHO_N "(cached) $ECHO_C" >&6
50532 if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then
50533 ac_save_LIBS="$LIBS"
50534 for ac_lib in "" c_r; do
50540 *) ac_lib="-l$ac_lib" ;;
50542 LIBS=" $ac_lib $ac_save_LIBS"
50543 cat >conftest.$ac_ext <<_ACEOF
50546 cat confdefs.h >>conftest.$ac_ext
50547 cat >>conftest.$ac_ext <<_ACEOF
50548 /* end confdefs.h. */
50558 rm -f conftest.$ac_objext conftest$ac_exeext
50559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50560 (eval $ac_link) 2>conftest.er1
50562 grep -v '^ *+' conftest.er1 >conftest.err
50564 cat conftest.err >&5
50565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50566 (exit $ac_status); } &&
50567 { ac_try='test -z "$ac_c_werror_flag"
50568 || test ! -s conftest.err'
50569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50570 (eval $ac_try) 2>&5
50572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50573 (exit $ac_status); }; } &&
50574 { ac_try='test -s conftest$ac_exeext'
50575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50576 (eval $ac_try) 2>&5
50578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50579 (exit $ac_status); }; }; then
50580 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break
50582 echo "$as_me: failed program was:" >&5
50583 sed 's/^/| /' conftest.$ac_ext >&5
50586 rm -f conftest.err conftest.$ac_objext \
50587 conftest$ac_exeext conftest.$ac_ext
50589 eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}"
50590 LIBS="$ac_save_LIBS"
50596 eval "ac_res=\$ac_cv_funclib_getpwnam_r"
50600 for ac_func in getpwnam_r
50602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50603 echo "$as_me:$LINENO: checking for $ac_func" >&5
50604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50605 if eval "test \"\${$as_ac_var+set}\" = set"; then
50606 echo $ECHO_N "(cached) $ECHO_C" >&6
50608 cat >conftest.$ac_ext <<_ACEOF
50611 cat confdefs.h >>conftest.$ac_ext
50612 cat >>conftest.$ac_ext <<_ACEOF
50613 /* end confdefs.h. */
50614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50616 #define $ac_func innocuous_$ac_func
50618 /* System header to define __stub macros and hopefully few prototypes,
50619 which can conflict with char $ac_func (); below.
50620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50621 <limits.h> exists even on freestanding compilers. */
50624 # include <limits.h>
50626 # include <assert.h>
50631 /* Override any gcc2 internal prototype to avoid an error. */
50636 /* We use char because int might match the return type of a gcc2
50637 builtin and then its argument prototype would still apply. */
50639 /* The GNU C library defines this for functions which it implements
50640 to always fail with ENOSYS. Some functions are actually named
50641 something starting with __ and the normal name is an alias. */
50642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50645 char (*f) () = $ac_func;
50654 return f != $ac_func;
50659 rm -f conftest.$ac_objext conftest$ac_exeext
50660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50661 (eval $ac_link) 2>conftest.er1
50663 grep -v '^ *+' conftest.er1 >conftest.err
50665 cat conftest.err >&5
50666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50667 (exit $ac_status); } &&
50668 { ac_try='test -z "$ac_c_werror_flag"
50669 || test ! -s conftest.err'
50670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50671 (eval $ac_try) 2>&5
50673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50674 (exit $ac_status); }; } &&
50675 { ac_try='test -s conftest$ac_exeext'
50676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50677 (eval $ac_try) 2>&5
50679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50680 (exit $ac_status); }; }; then
50681 eval "$as_ac_var=yes"
50683 echo "$as_me: failed program was:" >&5
50684 sed 's/^/| /' conftest.$ac_ext >&5
50686 eval "$as_ac_var=no"
50688 rm -f conftest.err conftest.$ac_objext \
50689 conftest$ac_exeext conftest.$ac_ext
50691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50692 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50693 if test `eval echo '${'$as_ac_var'}'` = yes; then
50694 cat >>confdefs.h <<_ACEOF
50695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50703 eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
50704 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
50705 eval "LIB_getpwnam_r=$ac_res"
50709 eval "ac_cv_func_getpwnam_r=yes"
50710 eval "LIB_getpwnam_r="
50711 cat >>confdefs.h <<_ACEOF
50712 #define $ac_tr_func 1
50715 echo "$as_me:$LINENO: result: yes" >&5
50716 echo "${ECHO_T}yes" >&6
50719 eval "ac_cv_func_getpwnam_r=no"
50720 eval "LIB_getpwnam_r="
50721 echo "$as_me:$LINENO: result: no" >&5
50722 echo "${ECHO_T}no" >&6
50725 eval "ac_cv_func_getpwnam_r=yes"
50726 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
50727 cat >>confdefs.h <<_ACEOF
50728 #define $ac_tr_func 1
50731 cat >>confdefs.h <<_ACEOF
50732 #define $ac_tr_lib 1
50735 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
50736 echo "${ECHO_T}yes, in $ac_res" >&6
50741 if test "$ac_cv_func_getpwnam_r" = yes; then
50742 echo "$as_me:$LINENO: checking if getpwnam_r is posix" >&5
50743 echo $ECHO_N "checking if getpwnam_r is posix... $ECHO_C" >&6
50744 if test "${ac_cv_func_getpwnam_r_posix+set}" = set; then
50745 echo $ECHO_N "(cached) $ECHO_C" >&6
50748 LIBS="$LIBS $LIB_getpwnam_r"
50749 if test "$cross_compiling" = yes; then
50752 cat >conftest.$ac_ext <<_ACEOF
50755 cat confdefs.h >>conftest.$ac_ext
50756 cat >>conftest.$ac_ext <<_ACEOF
50757 /* end confdefs.h. */
50762 struct passwd pw, *pwd;
50763 return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
50767 rm -f conftest$ac_exeext
50768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50769 (eval $ac_link) 2>&5
50771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50774 (eval $ac_try) 2>&5
50776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50777 (exit $ac_status); }; }; then
50778 ac_cv_func_getpwnam_r_posix=yes
50780 echo "$as_me: program exited with status $ac_status" >&5
50781 echo "$as_me: failed program was:" >&5
50782 sed 's/^/| /' conftest.$ac_ext >&5
50784 ( exit $ac_status )
50785 ac_cv_func_getpwnam_r_posix=no
50787 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50791 echo "$as_me:$LINENO: result: $ac_cv_func_getpwnam_r_posix" >&5
50792 echo "${ECHO_T}$ac_cv_func_getpwnam_r_posix" >&6
50793 if test "$ac_cv_func_getpwnam_r_posix" = yes; then
50795 cat >>confdefs.h <<\_ACEOF
50796 #define POSIX_GETPWNAM_R 1
50805 for ac_func in getudbnam setlim
50807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50808 echo "$as_me:$LINENO: checking for $ac_func" >&5
50809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50810 if eval "test \"\${$as_ac_var+set}\" = set"; then
50811 echo $ECHO_N "(cached) $ECHO_C" >&6
50813 cat >conftest.$ac_ext <<_ACEOF
50816 cat confdefs.h >>conftest.$ac_ext
50817 cat >>conftest.$ac_ext <<_ACEOF
50818 /* end confdefs.h. */
50819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50821 #define $ac_func innocuous_$ac_func
50823 /* System header to define __stub macros and hopefully few prototypes,
50824 which can conflict with char $ac_func (); below.
50825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50826 <limits.h> exists even on freestanding compilers. */
50829 # include <limits.h>
50831 # include <assert.h>
50836 /* Override any gcc2 internal prototype to avoid an error. */
50841 /* We use char because int might match the return type of a gcc2
50842 builtin and then its argument prototype would still apply. */
50844 /* The GNU C library defines this for functions which it implements
50845 to always fail with ENOSYS. Some functions are actually named
50846 something starting with __ and the normal name is an alias. */
50847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50850 char (*f) () = $ac_func;
50859 return f != $ac_func;
50864 rm -f conftest.$ac_objext conftest$ac_exeext
50865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50866 (eval $ac_link) 2>conftest.er1
50868 grep -v '^ *+' conftest.er1 >conftest.err
50870 cat conftest.err >&5
50871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50872 (exit $ac_status); } &&
50873 { ac_try='test -z "$ac_c_werror_flag"
50874 || test ! -s conftest.err'
50875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50876 (eval $ac_try) 2>&5
50878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50879 (exit $ac_status); }; } &&
50880 { ac_try='test -s conftest$ac_exeext'
50881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50882 (eval $ac_try) 2>&5
50884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50885 (exit $ac_status); }; }; then
50886 eval "$as_ac_var=yes"
50888 echo "$as_me: failed program was:" >&5
50889 sed 's/^/| /' conftest.$ac_ext >&5
50891 eval "$as_ac_var=no"
50893 rm -f conftest.err conftest.$ac_objext \
50894 conftest$ac_exeext conftest.$ac_ext
50896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50897 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50898 if test `eval echo '${'$as_ac_var'}'` = yes; then
50899 cat >>confdefs.h <<_ACEOF
50900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50911 echo "$as_me:$LINENO: checking for ut_addr in struct utmp" >&5
50912 echo $ECHO_N "checking for ut_addr in struct utmp... $ECHO_C" >&6
50913 if test "${ac_cv_type_struct_utmp_ut_addr+set}" = set; then
50914 echo $ECHO_N "(cached) $ECHO_C" >&6
50917 cat >conftest.$ac_ext <<_ACEOF
50920 cat confdefs.h >>conftest.$ac_ext
50921 cat >>conftest.$ac_ext <<_ACEOF
50922 /* end confdefs.h. */
50927 struct utmp x; x.ut_addr;
50932 rm -f conftest.$ac_objext
50933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50934 (eval $ac_compile) 2>conftest.er1
50936 grep -v '^ *+' conftest.er1 >conftest.err
50938 cat conftest.err >&5
50939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50940 (exit $ac_status); } &&
50941 { ac_try='test -z "$ac_c_werror_flag"
50942 || test ! -s conftest.err'
50943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50944 (eval $ac_try) 2>&5
50946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50947 (exit $ac_status); }; } &&
50948 { ac_try='test -s conftest.$ac_objext'
50949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50950 (eval $ac_try) 2>&5
50952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50953 (exit $ac_status); }; }; then
50954 ac_cv_type_struct_utmp_ut_addr=yes
50956 echo "$as_me: failed program was:" >&5
50957 sed 's/^/| /' conftest.$ac_ext >&5
50959 ac_cv_type_struct_utmp_ut_addr=no
50961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50963 echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_addr" >&5
50964 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_addr" >&6
50965 if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then
50968 cat >>confdefs.h <<\_ACEOF
50969 #define HAVE_STRUCT_UTMP_UT_ADDR 1
50978 echo "$as_me:$LINENO: checking for ut_host in struct utmp" >&5
50979 echo $ECHO_N "checking for ut_host in struct utmp... $ECHO_C" >&6
50980 if test "${ac_cv_type_struct_utmp_ut_host+set}" = set; then
50981 echo $ECHO_N "(cached) $ECHO_C" >&6
50984 cat >conftest.$ac_ext <<_ACEOF
50987 cat confdefs.h >>conftest.$ac_ext
50988 cat >>conftest.$ac_ext <<_ACEOF
50989 /* end confdefs.h. */
50994 struct utmp x; x.ut_host;
50999 rm -f conftest.$ac_objext
51000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51001 (eval $ac_compile) 2>conftest.er1
51003 grep -v '^ *+' conftest.er1 >conftest.err
51005 cat conftest.err >&5
51006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51007 (exit $ac_status); } &&
51008 { ac_try='test -z "$ac_c_werror_flag"
51009 || test ! -s conftest.err'
51010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51011 (eval $ac_try) 2>&5
51013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51014 (exit $ac_status); }; } &&
51015 { ac_try='test -s conftest.$ac_objext'
51016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51017 (eval $ac_try) 2>&5
51019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51020 (exit $ac_status); }; }; then
51021 ac_cv_type_struct_utmp_ut_host=yes
51023 echo "$as_me: failed program was:" >&5
51024 sed 's/^/| /' conftest.$ac_ext >&5
51026 ac_cv_type_struct_utmp_ut_host=no
51028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51030 echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_host" >&5
51031 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_host" >&6
51032 if test "$ac_cv_type_struct_utmp_ut_host" = yes; then
51035 cat >>confdefs.h <<\_ACEOF
51036 #define HAVE_STRUCT_UTMP_UT_HOST 1
51045 echo "$as_me:$LINENO: checking for ut_id in struct utmp" >&5
51046 echo $ECHO_N "checking for ut_id in struct utmp... $ECHO_C" >&6
51047 if test "${ac_cv_type_struct_utmp_ut_id+set}" = set; then
51048 echo $ECHO_N "(cached) $ECHO_C" >&6
51051 cat >conftest.$ac_ext <<_ACEOF
51054 cat confdefs.h >>conftest.$ac_ext
51055 cat >>conftest.$ac_ext <<_ACEOF
51056 /* end confdefs.h. */
51061 struct utmp x; x.ut_id;
51066 rm -f conftest.$ac_objext
51067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51068 (eval $ac_compile) 2>conftest.er1
51070 grep -v '^ *+' conftest.er1 >conftest.err
51072 cat conftest.err >&5
51073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51074 (exit $ac_status); } &&
51075 { ac_try='test -z "$ac_c_werror_flag"
51076 || test ! -s conftest.err'
51077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51078 (eval $ac_try) 2>&5
51080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51081 (exit $ac_status); }; } &&
51082 { ac_try='test -s conftest.$ac_objext'
51083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51084 (eval $ac_try) 2>&5
51086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51087 (exit $ac_status); }; }; then
51088 ac_cv_type_struct_utmp_ut_id=yes
51090 echo "$as_me: failed program was:" >&5
51091 sed 's/^/| /' conftest.$ac_ext >&5
51093 ac_cv_type_struct_utmp_ut_id=no
51095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51097 echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_id" >&5
51098 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_id" >&6
51099 if test "$ac_cv_type_struct_utmp_ut_id" = yes; then
51102 cat >>confdefs.h <<\_ACEOF
51103 #define HAVE_STRUCT_UTMP_UT_ID 1
51112 echo "$as_me:$LINENO: checking for ut_pid in struct utmp" >&5
51113 echo $ECHO_N "checking for ut_pid in struct utmp... $ECHO_C" >&6
51114 if test "${ac_cv_type_struct_utmp_ut_pid+set}" = set; then
51115 echo $ECHO_N "(cached) $ECHO_C" >&6
51118 cat >conftest.$ac_ext <<_ACEOF
51121 cat confdefs.h >>conftest.$ac_ext
51122 cat >>conftest.$ac_ext <<_ACEOF
51123 /* end confdefs.h. */
51128 struct utmp x; x.ut_pid;
51133 rm -f conftest.$ac_objext
51134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51135 (eval $ac_compile) 2>conftest.er1
51137 grep -v '^ *+' conftest.er1 >conftest.err
51139 cat conftest.err >&5
51140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51141 (exit $ac_status); } &&
51142 { ac_try='test -z "$ac_c_werror_flag"
51143 || test ! -s conftest.err'
51144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51145 (eval $ac_try) 2>&5
51147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51148 (exit $ac_status); }; } &&
51149 { ac_try='test -s conftest.$ac_objext'
51150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51151 (eval $ac_try) 2>&5
51153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51154 (exit $ac_status); }; }; then
51155 ac_cv_type_struct_utmp_ut_pid=yes
51157 echo "$as_me: failed program was:" >&5
51158 sed 's/^/| /' conftest.$ac_ext >&5
51160 ac_cv_type_struct_utmp_ut_pid=no
51162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51164 echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_pid" >&5
51165 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_pid" >&6
51166 if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then
51169 cat >>confdefs.h <<\_ACEOF
51170 #define HAVE_STRUCT_UTMP_UT_PID 1
51179 echo "$as_me:$LINENO: checking for ut_type in struct utmp" >&5
51180 echo $ECHO_N "checking for ut_type in struct utmp... $ECHO_C" >&6
51181 if test "${ac_cv_type_struct_utmp_ut_type+set}" = set; then
51182 echo $ECHO_N "(cached) $ECHO_C" >&6
51185 cat >conftest.$ac_ext <<_ACEOF
51188 cat confdefs.h >>conftest.$ac_ext
51189 cat >>conftest.$ac_ext <<_ACEOF
51190 /* end confdefs.h. */
51195 struct utmp x; x.ut_type;
51200 rm -f conftest.$ac_objext
51201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51202 (eval $ac_compile) 2>conftest.er1
51204 grep -v '^ *+' conftest.er1 >conftest.err
51206 cat conftest.err >&5
51207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51208 (exit $ac_status); } &&
51209 { ac_try='test -z "$ac_c_werror_flag"
51210 || test ! -s conftest.err'
51211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51212 (eval $ac_try) 2>&5
51214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51215 (exit $ac_status); }; } &&
51216 { ac_try='test -s conftest.$ac_objext'
51217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51218 (eval $ac_try) 2>&5
51220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51221 (exit $ac_status); }; }; then
51222 ac_cv_type_struct_utmp_ut_type=yes
51224 echo "$as_me: failed program was:" >&5
51225 sed 's/^/| /' conftest.$ac_ext >&5
51227 ac_cv_type_struct_utmp_ut_type=no
51229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51231 echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_type" >&5
51232 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_type" >&6
51233 if test "$ac_cv_type_struct_utmp_ut_type" = yes; then
51236 cat >>confdefs.h <<\_ACEOF
51237 #define HAVE_STRUCT_UTMP_UT_TYPE 1
51246 echo "$as_me:$LINENO: checking for ut_user in struct utmp" >&5
51247 echo $ECHO_N "checking for ut_user in struct utmp... $ECHO_C" >&6
51248 if test "${ac_cv_type_struct_utmp_ut_user+set}" = set; then
51249 echo $ECHO_N "(cached) $ECHO_C" >&6
51252 cat >conftest.$ac_ext <<_ACEOF
51255 cat confdefs.h >>conftest.$ac_ext
51256 cat >>conftest.$ac_ext <<_ACEOF
51257 /* end confdefs.h. */
51262 struct utmp x; x.ut_user;
51267 rm -f conftest.$ac_objext
51268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51269 (eval $ac_compile) 2>conftest.er1
51271 grep -v '^ *+' conftest.er1 >conftest.err
51273 cat conftest.err >&5
51274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51275 (exit $ac_status); } &&
51276 { ac_try='test -z "$ac_c_werror_flag"
51277 || test ! -s conftest.err'
51278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51279 (eval $ac_try) 2>&5
51281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51282 (exit $ac_status); }; } &&
51283 { ac_try='test -s conftest.$ac_objext'
51284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51285 (eval $ac_try) 2>&5
51287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51288 (exit $ac_status); }; }; then
51289 ac_cv_type_struct_utmp_ut_user=yes
51291 echo "$as_me: failed program was:" >&5
51292 sed 's/^/| /' conftest.$ac_ext >&5
51294 ac_cv_type_struct_utmp_ut_user=no
51296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51298 echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_user" >&5
51299 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_user" >&6
51300 if test "$ac_cv_type_struct_utmp_ut_user" = yes; then
51303 cat >>confdefs.h <<\_ACEOF
51304 #define HAVE_STRUCT_UTMP_UT_USER 1
51313 echo "$as_me:$LINENO: checking for ut_exit in struct utmpx" >&5
51314 echo $ECHO_N "checking for ut_exit in struct utmpx... $ECHO_C" >&6
51315 if test "${ac_cv_type_struct_utmpx_ut_exit+set}" = set; then
51316 echo $ECHO_N "(cached) $ECHO_C" >&6
51319 cat >conftest.$ac_ext <<_ACEOF
51322 cat confdefs.h >>conftest.$ac_ext
51323 cat >>conftest.$ac_ext <<_ACEOF
51324 /* end confdefs.h. */
51329 struct utmpx x; x.ut_exit;
51334 rm -f conftest.$ac_objext
51335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51336 (eval $ac_compile) 2>conftest.er1
51338 grep -v '^ *+' conftest.er1 >conftest.err
51340 cat conftest.err >&5
51341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51342 (exit $ac_status); } &&
51343 { ac_try='test -z "$ac_c_werror_flag"
51344 || test ! -s conftest.err'
51345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51346 (eval $ac_try) 2>&5
51348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51349 (exit $ac_status); }; } &&
51350 { ac_try='test -s conftest.$ac_objext'
51351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51352 (eval $ac_try) 2>&5
51354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51355 (exit $ac_status); }; }; then
51356 ac_cv_type_struct_utmpx_ut_exit=yes
51358 echo "$as_me: failed program was:" >&5
51359 sed 's/^/| /' conftest.$ac_ext >&5
51361 ac_cv_type_struct_utmpx_ut_exit=no
51363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51365 echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_exit" >&5
51366 echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_exit" >&6
51367 if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then
51370 cat >>confdefs.h <<\_ACEOF
51371 #define HAVE_STRUCT_UTMPX_UT_EXIT 1
51380 echo "$as_me:$LINENO: checking for ut_syslen in struct utmpx" >&5
51381 echo $ECHO_N "checking for ut_syslen in struct utmpx... $ECHO_C" >&6
51382 if test "${ac_cv_type_struct_utmpx_ut_syslen+set}" = set; then
51383 echo $ECHO_N "(cached) $ECHO_C" >&6
51386 cat >conftest.$ac_ext <<_ACEOF
51389 cat confdefs.h >>conftest.$ac_ext
51390 cat >>conftest.$ac_ext <<_ACEOF
51391 /* end confdefs.h. */
51396 struct utmpx x; x.ut_syslen;
51401 rm -f conftest.$ac_objext
51402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51403 (eval $ac_compile) 2>conftest.er1
51405 grep -v '^ *+' conftest.er1 >conftest.err
51407 cat conftest.err >&5
51408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51409 (exit $ac_status); } &&
51410 { ac_try='test -z "$ac_c_werror_flag"
51411 || test ! -s conftest.err'
51412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51413 (eval $ac_try) 2>&5
51415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51416 (exit $ac_status); }; } &&
51417 { ac_try='test -s conftest.$ac_objext'
51418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51419 (eval $ac_try) 2>&5
51421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51422 (exit $ac_status); }; }; then
51423 ac_cv_type_struct_utmpx_ut_syslen=yes
51425 echo "$as_me: failed program was:" >&5
51426 sed 's/^/| /' conftest.$ac_ext >&5
51428 ac_cv_type_struct_utmpx_ut_syslen=no
51430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51432 echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5
51433 echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_syslen" >&6
51434 if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then
51437 cat >>confdefs.h <<\_ACEOF
51438 #define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
51446 echo "$as_me:$LINENO: checking for int8_t" >&5
51447 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
51448 if test "${ac_cv_type_int8_t+set}" = set; then
51449 echo $ECHO_N "(cached) $ECHO_C" >&6
51451 cat >conftest.$ac_ext <<_ACEOF
51454 cat confdefs.h >>conftest.$ac_ext
51455 cat >>conftest.$ac_ext <<_ACEOF
51456 /* end confdefs.h. */
51458 #ifdef HAVE_INTTYPES_H
51459 #include <inttypes.h>
51461 #ifdef HAVE_SYS_TYPES_H
51462 #include <sys/types.h>
51464 #ifdef HAVE_SYS_BITYPES_H
51465 #include <sys/bitypes.h>
51467 #ifdef HAVE_BIND_BITYPES_H
51468 #include <bind/bitypes.h>
51470 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
51471 #include <netinet/in6_machtypes.h>
51480 if (sizeof (int8_t))
51486 rm -f conftest.$ac_objext
51487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51488 (eval $ac_compile) 2>conftest.er1
51490 grep -v '^ *+' conftest.er1 >conftest.err
51492 cat conftest.err >&5
51493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51494 (exit $ac_status); } &&
51495 { ac_try='test -z "$ac_c_werror_flag"
51496 || test ! -s conftest.err'
51497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51498 (eval $ac_try) 2>&5
51500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51501 (exit $ac_status); }; } &&
51502 { ac_try='test -s conftest.$ac_objext'
51503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51504 (eval $ac_try) 2>&5
51506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51507 (exit $ac_status); }; }; then
51508 ac_cv_type_int8_t=yes
51510 echo "$as_me: failed program was:" >&5
51511 sed 's/^/| /' conftest.$ac_ext >&5
51513 ac_cv_type_int8_t=no
51515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51517 echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
51518 echo "${ECHO_T}$ac_cv_type_int8_t" >&6
51519 if test $ac_cv_type_int8_t = yes; then
51521 cat >>confdefs.h <<_ACEOF
51522 #define HAVE_INT8_T 1
51527 echo "$as_me:$LINENO: checking for int16_t" >&5
51528 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
51529 if test "${ac_cv_type_int16_t+set}" = set; then
51530 echo $ECHO_N "(cached) $ECHO_C" >&6
51532 cat >conftest.$ac_ext <<_ACEOF
51535 cat confdefs.h >>conftest.$ac_ext
51536 cat >>conftest.$ac_ext <<_ACEOF
51537 /* end confdefs.h. */
51539 #ifdef HAVE_INTTYPES_H
51540 #include <inttypes.h>
51542 #ifdef HAVE_SYS_TYPES_H
51543 #include <sys/types.h>
51545 #ifdef HAVE_SYS_BITYPES_H
51546 #include <sys/bitypes.h>
51548 #ifdef HAVE_BIND_BITYPES_H
51549 #include <bind/bitypes.h>
51551 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
51552 #include <netinet/in6_machtypes.h>
51561 if (sizeof (int16_t))
51567 rm -f conftest.$ac_objext
51568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51569 (eval $ac_compile) 2>conftest.er1
51571 grep -v '^ *+' conftest.er1 >conftest.err
51573 cat conftest.err >&5
51574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51575 (exit $ac_status); } &&
51576 { ac_try='test -z "$ac_c_werror_flag"
51577 || test ! -s conftest.err'
51578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51579 (eval $ac_try) 2>&5
51581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51582 (exit $ac_status); }; } &&
51583 { ac_try='test -s conftest.$ac_objext'
51584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51585 (eval $ac_try) 2>&5
51587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51588 (exit $ac_status); }; }; then
51589 ac_cv_type_int16_t=yes
51591 echo "$as_me: failed program was:" >&5
51592 sed 's/^/| /' conftest.$ac_ext >&5
51594 ac_cv_type_int16_t=no
51596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51598 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
51599 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
51600 if test $ac_cv_type_int16_t = yes; then
51602 cat >>confdefs.h <<_ACEOF
51603 #define HAVE_INT16_T 1
51608 echo "$as_me:$LINENO: checking for int32_t" >&5
51609 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
51610 if test "${ac_cv_type_int32_t+set}" = set; then
51611 echo $ECHO_N "(cached) $ECHO_C" >&6
51613 cat >conftest.$ac_ext <<_ACEOF
51616 cat confdefs.h >>conftest.$ac_ext
51617 cat >>conftest.$ac_ext <<_ACEOF
51618 /* end confdefs.h. */
51620 #ifdef HAVE_INTTYPES_H
51621 #include <inttypes.h>
51623 #ifdef HAVE_SYS_TYPES_H
51624 #include <sys/types.h>
51626 #ifdef HAVE_SYS_BITYPES_H
51627 #include <sys/bitypes.h>
51629 #ifdef HAVE_BIND_BITYPES_H
51630 #include <bind/bitypes.h>
51632 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
51633 #include <netinet/in6_machtypes.h>
51642 if (sizeof (int32_t))
51648 rm -f conftest.$ac_objext
51649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51650 (eval $ac_compile) 2>conftest.er1
51652 grep -v '^ *+' conftest.er1 >conftest.err
51654 cat conftest.err >&5
51655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51656 (exit $ac_status); } &&
51657 { ac_try='test -z "$ac_c_werror_flag"
51658 || test ! -s conftest.err'
51659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51660 (eval $ac_try) 2>&5
51662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51663 (exit $ac_status); }; } &&
51664 { ac_try='test -s conftest.$ac_objext'
51665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51666 (eval $ac_try) 2>&5
51668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51669 (exit $ac_status); }; }; then
51670 ac_cv_type_int32_t=yes
51672 echo "$as_me: failed program was:" >&5
51673 sed 's/^/| /' conftest.$ac_ext >&5
51675 ac_cv_type_int32_t=no
51677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51679 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
51680 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
51681 if test $ac_cv_type_int32_t = yes; then
51683 cat >>confdefs.h <<_ACEOF
51684 #define HAVE_INT32_T 1
51689 echo "$as_me:$LINENO: checking for int64_t" >&5
51690 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
51691 if test "${ac_cv_type_int64_t+set}" = set; then
51692 echo $ECHO_N "(cached) $ECHO_C" >&6
51694 cat >conftest.$ac_ext <<_ACEOF
51697 cat confdefs.h >>conftest.$ac_ext
51698 cat >>conftest.$ac_ext <<_ACEOF
51699 /* end confdefs.h. */
51701 #ifdef HAVE_INTTYPES_H
51702 #include <inttypes.h>
51704 #ifdef HAVE_SYS_TYPES_H
51705 #include <sys/types.h>
51707 #ifdef HAVE_SYS_BITYPES_H
51708 #include <sys/bitypes.h>
51710 #ifdef HAVE_BIND_BITYPES_H
51711 #include <bind/bitypes.h>
51713 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
51714 #include <netinet/in6_machtypes.h>
51723 if (sizeof (int64_t))
51729 rm -f conftest.$ac_objext
51730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51731 (eval $ac_compile) 2>conftest.er1
51733 grep -v '^ *+' conftest.er1 >conftest.err
51735 cat conftest.err >&5
51736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51737 (exit $ac_status); } &&
51738 { ac_try='test -z "$ac_c_werror_flag"
51739 || test ! -s conftest.err'
51740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51741 (eval $ac_try) 2>&5
51743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51744 (exit $ac_status); }; } &&
51745 { ac_try='test -s conftest.$ac_objext'
51746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51747 (eval $ac_try) 2>&5
51749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51750 (exit $ac_status); }; }; then
51751 ac_cv_type_int64_t=yes
51753 echo "$as_me: failed program was:" >&5
51754 sed 's/^/| /' conftest.$ac_ext >&5
51756 ac_cv_type_int64_t=no
51758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51760 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
51761 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
51762 if test $ac_cv_type_int64_t = yes; then
51764 cat >>confdefs.h <<_ACEOF
51765 #define HAVE_INT64_T 1
51770 echo "$as_me:$LINENO: checking for u_int8_t" >&5
51771 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
51772 if test "${ac_cv_type_u_int8_t+set}" = set; then
51773 echo $ECHO_N "(cached) $ECHO_C" >&6
51775 cat >conftest.$ac_ext <<_ACEOF
51778 cat confdefs.h >>conftest.$ac_ext
51779 cat >>conftest.$ac_ext <<_ACEOF
51780 /* end confdefs.h. */
51782 #ifdef HAVE_INTTYPES_H
51783 #include <inttypes.h>
51785 #ifdef HAVE_SYS_TYPES_H
51786 #include <sys/types.h>
51788 #ifdef HAVE_SYS_BITYPES_H
51789 #include <sys/bitypes.h>
51791 #ifdef HAVE_BIND_BITYPES_H
51792 #include <bind/bitypes.h>
51794 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
51795 #include <netinet/in6_machtypes.h>
51802 if ((u_int8_t *) 0)
51804 if (sizeof (u_int8_t))
51810 rm -f conftest.$ac_objext
51811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51812 (eval $ac_compile) 2>conftest.er1
51814 grep -v '^ *+' conftest.er1 >conftest.err
51816 cat conftest.err >&5
51817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51818 (exit $ac_status); } &&
51819 { ac_try='test -z "$ac_c_werror_flag"
51820 || test ! -s conftest.err'
51821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51822 (eval $ac_try) 2>&5
51824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51825 (exit $ac_status); }; } &&
51826 { ac_try='test -s conftest.$ac_objext'
51827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51828 (eval $ac_try) 2>&5
51830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51831 (exit $ac_status); }; }; then
51832 ac_cv_type_u_int8_t=yes
51834 echo "$as_me: failed program was:" >&5
51835 sed 's/^/| /' conftest.$ac_ext >&5
51837 ac_cv_type_u_int8_t=no
51839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51841 echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
51842 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
51843 if test $ac_cv_type_u_int8_t = yes; then
51845 cat >>confdefs.h <<_ACEOF
51846 #define HAVE_U_INT8_T 1
51851 echo "$as_me:$LINENO: checking for u_int16_t" >&5
51852 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
51853 if test "${ac_cv_type_u_int16_t+set}" = set; then
51854 echo $ECHO_N "(cached) $ECHO_C" >&6
51856 cat >conftest.$ac_ext <<_ACEOF
51859 cat confdefs.h >>conftest.$ac_ext
51860 cat >>conftest.$ac_ext <<_ACEOF
51861 /* end confdefs.h. */
51863 #ifdef HAVE_INTTYPES_H
51864 #include <inttypes.h>
51866 #ifdef HAVE_SYS_TYPES_H
51867 #include <sys/types.h>
51869 #ifdef HAVE_SYS_BITYPES_H
51870 #include <sys/bitypes.h>
51872 #ifdef HAVE_BIND_BITYPES_H
51873 #include <bind/bitypes.h>
51875 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
51876 #include <netinet/in6_machtypes.h>
51883 if ((u_int16_t *) 0)
51885 if (sizeof (u_int16_t))
51891 rm -f conftest.$ac_objext
51892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51893 (eval $ac_compile) 2>conftest.er1
51895 grep -v '^ *+' conftest.er1 >conftest.err
51897 cat conftest.err >&5
51898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51899 (exit $ac_status); } &&
51900 { ac_try='test -z "$ac_c_werror_flag"
51901 || test ! -s conftest.err'
51902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51903 (eval $ac_try) 2>&5
51905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51906 (exit $ac_status); }; } &&
51907 { ac_try='test -s conftest.$ac_objext'
51908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51909 (eval $ac_try) 2>&5
51911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51912 (exit $ac_status); }; }; then
51913 ac_cv_type_u_int16_t=yes
51915 echo "$as_me: failed program was:" >&5
51916 sed 's/^/| /' conftest.$ac_ext >&5
51918 ac_cv_type_u_int16_t=no
51920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51922 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
51923 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
51924 if test $ac_cv_type_u_int16_t = yes; then
51926 cat >>confdefs.h <<_ACEOF
51927 #define HAVE_U_INT16_T 1
51932 echo "$as_me:$LINENO: checking for u_int32_t" >&5
51933 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
51934 if test "${ac_cv_type_u_int32_t+set}" = set; then
51935 echo $ECHO_N "(cached) $ECHO_C" >&6
51937 cat >conftest.$ac_ext <<_ACEOF
51940 cat confdefs.h >>conftest.$ac_ext
51941 cat >>conftest.$ac_ext <<_ACEOF
51942 /* end confdefs.h. */
51944 #ifdef HAVE_INTTYPES_H
51945 #include <inttypes.h>
51947 #ifdef HAVE_SYS_TYPES_H
51948 #include <sys/types.h>
51950 #ifdef HAVE_SYS_BITYPES_H
51951 #include <sys/bitypes.h>
51953 #ifdef HAVE_BIND_BITYPES_H
51954 #include <bind/bitypes.h>
51956 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
51957 #include <netinet/in6_machtypes.h>
51964 if ((u_int32_t *) 0)
51966 if (sizeof (u_int32_t))
51972 rm -f conftest.$ac_objext
51973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51974 (eval $ac_compile) 2>conftest.er1
51976 grep -v '^ *+' conftest.er1 >conftest.err
51978 cat conftest.err >&5
51979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51980 (exit $ac_status); } &&
51981 { ac_try='test -z "$ac_c_werror_flag"
51982 || test ! -s conftest.err'
51983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51984 (eval $ac_try) 2>&5
51986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51987 (exit $ac_status); }; } &&
51988 { ac_try='test -s conftest.$ac_objext'
51989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51990 (eval $ac_try) 2>&5
51992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51993 (exit $ac_status); }; }; then
51994 ac_cv_type_u_int32_t=yes
51996 echo "$as_me: failed program was:" >&5
51997 sed 's/^/| /' conftest.$ac_ext >&5
51999 ac_cv_type_u_int32_t=no
52001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52003 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
52004 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
52005 if test $ac_cv_type_u_int32_t = yes; then
52007 cat >>confdefs.h <<_ACEOF
52008 #define HAVE_U_INT32_T 1
52013 echo "$as_me:$LINENO: checking for u_int64_t" >&5
52014 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
52015 if test "${ac_cv_type_u_int64_t+set}" = set; then
52016 echo $ECHO_N "(cached) $ECHO_C" >&6
52018 cat >conftest.$ac_ext <<_ACEOF
52021 cat confdefs.h >>conftest.$ac_ext
52022 cat >>conftest.$ac_ext <<_ACEOF
52023 /* end confdefs.h. */
52025 #ifdef HAVE_INTTYPES_H
52026 #include <inttypes.h>
52028 #ifdef HAVE_SYS_TYPES_H
52029 #include <sys/types.h>
52031 #ifdef HAVE_SYS_BITYPES_H
52032 #include <sys/bitypes.h>
52034 #ifdef HAVE_BIND_BITYPES_H
52035 #include <bind/bitypes.h>
52037 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
52038 #include <netinet/in6_machtypes.h>
52045 if ((u_int64_t *) 0)
52047 if (sizeof (u_int64_t))
52053 rm -f conftest.$ac_objext
52054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52055 (eval $ac_compile) 2>conftest.er1
52057 grep -v '^ *+' conftest.er1 >conftest.err
52059 cat conftest.err >&5
52060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52061 (exit $ac_status); } &&
52062 { ac_try='test -z "$ac_c_werror_flag"
52063 || test ! -s conftest.err'
52064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52065 (eval $ac_try) 2>&5
52067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52068 (exit $ac_status); }; } &&
52069 { ac_try='test -s conftest.$ac_objext'
52070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52071 (eval $ac_try) 2>&5
52073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52074 (exit $ac_status); }; }; then
52075 ac_cv_type_u_int64_t=yes
52077 echo "$as_me: failed program was:" >&5
52078 sed 's/^/| /' conftest.$ac_ext >&5
52080 ac_cv_type_u_int64_t=no
52082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52084 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
52085 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
52086 if test $ac_cv_type_u_int64_t = yes; then
52088 cat >>confdefs.h <<_ACEOF
52089 #define HAVE_U_INT64_T 1
52094 echo "$as_me:$LINENO: checking for uint8_t" >&5
52095 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
52096 if test "${ac_cv_type_uint8_t+set}" = set; then
52097 echo $ECHO_N "(cached) $ECHO_C" >&6
52099 cat >conftest.$ac_ext <<_ACEOF
52102 cat confdefs.h >>conftest.$ac_ext
52103 cat >>conftest.$ac_ext <<_ACEOF
52104 /* end confdefs.h. */
52106 #ifdef HAVE_INTTYPES_H
52107 #include <inttypes.h>
52109 #ifdef HAVE_SYS_TYPES_H
52110 #include <sys/types.h>
52112 #ifdef HAVE_SYS_BITYPES_H
52113 #include <sys/bitypes.h>
52115 #ifdef HAVE_BIND_BITYPES_H
52116 #include <bind/bitypes.h>
52118 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
52119 #include <netinet/in6_machtypes.h>
52128 if (sizeof (uint8_t))
52134 rm -f conftest.$ac_objext
52135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52136 (eval $ac_compile) 2>conftest.er1
52138 grep -v '^ *+' conftest.er1 >conftest.err
52140 cat conftest.err >&5
52141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52142 (exit $ac_status); } &&
52143 { ac_try='test -z "$ac_c_werror_flag"
52144 || test ! -s conftest.err'
52145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52146 (eval $ac_try) 2>&5
52148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52149 (exit $ac_status); }; } &&
52150 { ac_try='test -s conftest.$ac_objext'
52151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52152 (eval $ac_try) 2>&5
52154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52155 (exit $ac_status); }; }; then
52156 ac_cv_type_uint8_t=yes
52158 echo "$as_me: failed program was:" >&5
52159 sed 's/^/| /' conftest.$ac_ext >&5
52161 ac_cv_type_uint8_t=no
52163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52165 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
52166 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
52167 if test $ac_cv_type_uint8_t = yes; then
52169 cat >>confdefs.h <<_ACEOF
52170 #define HAVE_UINT8_T 1
52175 echo "$as_me:$LINENO: checking for uint16_t" >&5
52176 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
52177 if test "${ac_cv_type_uint16_t+set}" = set; then
52178 echo $ECHO_N "(cached) $ECHO_C" >&6
52180 cat >conftest.$ac_ext <<_ACEOF
52183 cat confdefs.h >>conftest.$ac_ext
52184 cat >>conftest.$ac_ext <<_ACEOF
52185 /* end confdefs.h. */
52187 #ifdef HAVE_INTTYPES_H
52188 #include <inttypes.h>
52190 #ifdef HAVE_SYS_TYPES_H
52191 #include <sys/types.h>
52193 #ifdef HAVE_SYS_BITYPES_H
52194 #include <sys/bitypes.h>
52196 #ifdef HAVE_BIND_BITYPES_H
52197 #include <bind/bitypes.h>
52199 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
52200 #include <netinet/in6_machtypes.h>
52207 if ((uint16_t *) 0)
52209 if (sizeof (uint16_t))
52215 rm -f conftest.$ac_objext
52216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52217 (eval $ac_compile) 2>conftest.er1
52219 grep -v '^ *+' conftest.er1 >conftest.err
52221 cat conftest.err >&5
52222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52223 (exit $ac_status); } &&
52224 { ac_try='test -z "$ac_c_werror_flag"
52225 || test ! -s conftest.err'
52226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52227 (eval $ac_try) 2>&5
52229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52230 (exit $ac_status); }; } &&
52231 { ac_try='test -s conftest.$ac_objext'
52232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52233 (eval $ac_try) 2>&5
52235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52236 (exit $ac_status); }; }; then
52237 ac_cv_type_uint16_t=yes
52239 echo "$as_me: failed program was:" >&5
52240 sed 's/^/| /' conftest.$ac_ext >&5
52242 ac_cv_type_uint16_t=no
52244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52246 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
52247 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
52248 if test $ac_cv_type_uint16_t = yes; then
52250 cat >>confdefs.h <<_ACEOF
52251 #define HAVE_UINT16_T 1
52256 echo "$as_me:$LINENO: checking for uint32_t" >&5
52257 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
52258 if test "${ac_cv_type_uint32_t+set}" = set; then
52259 echo $ECHO_N "(cached) $ECHO_C" >&6
52261 cat >conftest.$ac_ext <<_ACEOF
52264 cat confdefs.h >>conftest.$ac_ext
52265 cat >>conftest.$ac_ext <<_ACEOF
52266 /* end confdefs.h. */
52268 #ifdef HAVE_INTTYPES_H
52269 #include <inttypes.h>
52271 #ifdef HAVE_SYS_TYPES_H
52272 #include <sys/types.h>
52274 #ifdef HAVE_SYS_BITYPES_H
52275 #include <sys/bitypes.h>
52277 #ifdef HAVE_BIND_BITYPES_H
52278 #include <bind/bitypes.h>
52280 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
52281 #include <netinet/in6_machtypes.h>
52288 if ((uint32_t *) 0)
52290 if (sizeof (uint32_t))
52296 rm -f conftest.$ac_objext
52297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52298 (eval $ac_compile) 2>conftest.er1
52300 grep -v '^ *+' conftest.er1 >conftest.err
52302 cat conftest.err >&5
52303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52304 (exit $ac_status); } &&
52305 { ac_try='test -z "$ac_c_werror_flag"
52306 || test ! -s conftest.err'
52307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52308 (eval $ac_try) 2>&5
52310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52311 (exit $ac_status); }; } &&
52312 { ac_try='test -s conftest.$ac_objext'
52313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52314 (eval $ac_try) 2>&5
52316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52317 (exit $ac_status); }; }; then
52318 ac_cv_type_uint32_t=yes
52320 echo "$as_me: failed program was:" >&5
52321 sed 's/^/| /' conftest.$ac_ext >&5
52323 ac_cv_type_uint32_t=no
52325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52327 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
52328 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
52329 if test $ac_cv_type_uint32_t = yes; then
52331 cat >>confdefs.h <<_ACEOF
52332 #define HAVE_UINT32_T 1
52337 echo "$as_me:$LINENO: checking for uint64_t" >&5
52338 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
52339 if test "${ac_cv_type_uint64_t+set}" = set; then
52340 echo $ECHO_N "(cached) $ECHO_C" >&6
52342 cat >conftest.$ac_ext <<_ACEOF
52345 cat confdefs.h >>conftest.$ac_ext
52346 cat >>conftest.$ac_ext <<_ACEOF
52347 /* end confdefs.h. */
52349 #ifdef HAVE_INTTYPES_H
52350 #include <inttypes.h>
52352 #ifdef HAVE_SYS_TYPES_H
52353 #include <sys/types.h>
52355 #ifdef HAVE_SYS_BITYPES_H
52356 #include <sys/bitypes.h>
52358 #ifdef HAVE_BIND_BITYPES_H
52359 #include <bind/bitypes.h>
52361 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
52362 #include <netinet/in6_machtypes.h>
52369 if ((uint64_t *) 0)
52371 if (sizeof (uint64_t))
52377 rm -f conftest.$ac_objext
52378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52379 (eval $ac_compile) 2>conftest.er1
52381 grep -v '^ *+' conftest.er1 >conftest.err
52383 cat conftest.err >&5
52384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52385 (exit $ac_status); } &&
52386 { ac_try='test -z "$ac_c_werror_flag"
52387 || test ! -s conftest.err'
52388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52389 (eval $ac_try) 2>&5
52391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52392 (exit $ac_status); }; } &&
52393 { ac_try='test -s conftest.$ac_objext'
52394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52395 (eval $ac_try) 2>&5
52397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52398 (exit $ac_status); }; }; then
52399 ac_cv_type_uint64_t=yes
52401 echo "$as_me: failed program was:" >&5
52402 sed 's/^/| /' conftest.$ac_ext >&5
52404 ac_cv_type_uint64_t=no
52406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52408 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
52409 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
52410 if test $ac_cv_type_uint64_t = yes; then
52412 cat >>confdefs.h <<_ACEOF
52413 #define HAVE_UINT64_T 1
52424 echo "$as_me:$LINENO: checking for el_init" >&5
52425 echo $ECHO_N "checking for el_init... $ECHO_C" >&6
52426 if test "${ac_cv_funclib_el_init+set}" = set; then
52427 echo $ECHO_N "(cached) $ECHO_C" >&6
52430 if eval "test \"\$ac_cv_func_el_init\" != yes" ; then
52431 ac_save_LIBS="$LIBS"
52432 for ac_lib in "" edit; do
52438 *) ac_lib="-l$ac_lib" ;;
52440 LIBS=" $ac_lib $LIB_tgetent $ac_save_LIBS"
52441 cat >conftest.$ac_ext <<_ACEOF
52444 cat confdefs.h >>conftest.$ac_ext
52445 cat >>conftest.$ac_ext <<_ACEOF
52446 /* end confdefs.h. */
52456 rm -f conftest.$ac_objext conftest$ac_exeext
52457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52458 (eval $ac_link) 2>conftest.er1
52460 grep -v '^ *+' conftest.er1 >conftest.err
52462 cat conftest.err >&5
52463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52464 (exit $ac_status); } &&
52465 { ac_try='test -z "$ac_c_werror_flag"
52466 || test ! -s conftest.err'
52467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52468 (eval $ac_try) 2>&5
52470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52471 (exit $ac_status); }; } &&
52472 { ac_try='test -s conftest$ac_exeext'
52473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52474 (eval $ac_try) 2>&5
52476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52477 (exit $ac_status); }; }; then
52478 eval "if test -n \"$ac_lib\";then ac_cv_funclib_el_init=$ac_lib; else ac_cv_funclib_el_init=yes; fi";break
52480 echo "$as_me: failed program was:" >&5
52481 sed 's/^/| /' conftest.$ac_ext >&5
52484 rm -f conftest.err conftest.$ac_objext \
52485 conftest$ac_exeext conftest.$ac_ext
52487 eval "ac_cv_funclib_el_init=\${ac_cv_funclib_el_init-no}"
52488 LIBS="$ac_save_LIBS"
52494 eval "ac_res=\$ac_cv_funclib_el_init"
52498 for ac_func in el_init
52500 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52501 echo "$as_me:$LINENO: checking for $ac_func" >&5
52502 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52503 if eval "test \"\${$as_ac_var+set}\" = set"; then
52504 echo $ECHO_N "(cached) $ECHO_C" >&6
52506 cat >conftest.$ac_ext <<_ACEOF
52509 cat confdefs.h >>conftest.$ac_ext
52510 cat >>conftest.$ac_ext <<_ACEOF
52511 /* end confdefs.h. */
52512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52514 #define $ac_func innocuous_$ac_func
52516 /* System header to define __stub macros and hopefully few prototypes,
52517 which can conflict with char $ac_func (); below.
52518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52519 <limits.h> exists even on freestanding compilers. */
52522 # include <limits.h>
52524 # include <assert.h>
52529 /* Override any gcc2 internal prototype to avoid an error. */
52534 /* We use char because int might match the return type of a gcc2
52535 builtin and then its argument prototype would still apply. */
52537 /* The GNU C library defines this for functions which it implements
52538 to always fail with ENOSYS. Some functions are actually named
52539 something starting with __ and the normal name is an alias. */
52540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52543 char (*f) () = $ac_func;
52552 return f != $ac_func;
52557 rm -f conftest.$ac_objext conftest$ac_exeext
52558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52559 (eval $ac_link) 2>conftest.er1
52561 grep -v '^ *+' conftest.er1 >conftest.err
52563 cat conftest.err >&5
52564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52565 (exit $ac_status); } &&
52566 { ac_try='test -z "$ac_c_werror_flag"
52567 || test ! -s conftest.err'
52568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52569 (eval $ac_try) 2>&5
52571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52572 (exit $ac_status); }; } &&
52573 { ac_try='test -s conftest$ac_exeext'
52574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52575 (eval $ac_try) 2>&5
52577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52578 (exit $ac_status); }; }; then
52579 eval "$as_ac_var=yes"
52581 echo "$as_me: failed program was:" >&5
52582 sed 's/^/| /' conftest.$ac_ext >&5
52584 eval "$as_ac_var=no"
52586 rm -f conftest.err conftest.$ac_objext \
52587 conftest$ac_exeext conftest.$ac_ext
52589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52590 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52591 if test `eval echo '${'$as_ac_var'}'` = yes; then
52592 cat >>confdefs.h <<_ACEOF
52593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52601 eval "ac_tr_func=HAVE_`echo el_init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
52602 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
52603 eval "LIB_el_init=$ac_res"
52607 eval "ac_cv_func_el_init=yes"
52608 eval "LIB_el_init="
52609 cat >>confdefs.h <<_ACEOF
52610 #define $ac_tr_func 1
52613 echo "$as_me:$LINENO: result: yes" >&5
52614 echo "${ECHO_T}yes" >&6
52617 eval "ac_cv_func_el_init=no"
52618 eval "LIB_el_init="
52619 echo "$as_me:$LINENO: result: no" >&5
52620 echo "${ECHO_T}no" >&6
52623 eval "ac_cv_func_el_init=yes"
52624 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
52625 cat >>confdefs.h <<_ACEOF
52626 #define $ac_tr_func 1
52629 cat >>confdefs.h <<_ACEOF
52630 #define $ac_tr_lib 1
52633 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
52634 echo "${ECHO_T}yes, in $ac_res" >&6
52639 if test "$ac_cv_func_el_init" = yes ; then
52640 echo "$as_me:$LINENO: checking for four argument el_init" >&5
52641 echo $ECHO_N "checking for four argument el_init... $ECHO_C" >&6
52642 if test "${ac_cv_func_el_init_four+set}" = set; then
52643 echo $ECHO_N "(cached) $ECHO_C" >&6
52646 cat >conftest.$ac_ext <<_ACEOF
52649 cat confdefs.h >>conftest.$ac_ext
52650 cat >>conftest.$ac_ext <<_ACEOF
52651 /* end confdefs.h. */
52653 #include <histedit.h>
52657 el_init("", NULL, NULL, NULL);
52662 rm -f conftest.$ac_objext
52663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52664 (eval $ac_compile) 2>conftest.er1
52666 grep -v '^ *+' conftest.er1 >conftest.err
52668 cat conftest.err >&5
52669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52670 (exit $ac_status); } &&
52671 { ac_try='test -z "$ac_c_werror_flag"
52672 || test ! -s conftest.err'
52673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52674 (eval $ac_try) 2>&5
52676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52677 (exit $ac_status); }; } &&
52678 { ac_try='test -s conftest.$ac_objext'
52679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52680 (eval $ac_try) 2>&5
52682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52683 (exit $ac_status); }; }; then
52684 ac_cv_func_el_init_four=yes
52686 echo "$as_me: failed program was:" >&5
52687 sed 's/^/| /' conftest.$ac_ext >&5
52689 ac_cv_func_el_init_four=no
52691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52693 echo "$as_me:$LINENO: result: $ac_cv_func_el_init_four" >&5
52694 echo "${ECHO_T}$ac_cv_func_el_init_four" >&6
52695 if test "$ac_cv_func_el_init_four" = yes; then
52697 cat >>confdefs.h <<\_ACEOF
52698 #define HAVE_FOUR_VALUED_EL_INIT 1
52706 if test "$with_readline" = yes; then
52708 elif test "$ac_cv_func_readline" = yes; then
52710 elif test "$ac_cv_func_el_init" = yes; then
52712 LIB_readline="\$(top_builddir)/lib/editline/libel_compat.la \$(LIB_el_init) \$(LIB_tgetent)"
52714 LIB_readline="\$(top_builddir)/lib/editline/libeditline.la \$(LIB_tgetent)"
52718 if test "$ac_foo" = yes; then
52720 el_compat_FALSE='#'
52727 cat >>confdefs.h <<\_ACEOF
52728 #define HAVE_READLINE 1
52735 cat >>confdefs.h <<\_ACEOF
52736 #define AUTHENTICATION 1
52739 cat >>confdefs.h <<\_ACEOF
52740 #define ENCRYPTION 1
52743 cat >>confdefs.h <<\_ACEOF
52744 #define DES_ENCRYPTION 1
52747 cat >>confdefs.h <<\_ACEOF
52748 #define DIAGNOSTICS 1
52751 cat >>confdefs.h <<\_ACEOF
52752 #define OLD_ENVIRON 1
52756 cat >>confdefs.h <<\_ACEOF
52762 # Simple test for streamspty, based on the existance of getmsg(), alas
52763 # this breaks on SunOS4 which have streams but BSD-like ptys
52765 # And also something wierd has happend with dec-osf1, fallback to bsd-ptys
52768 *-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*)
52771 echo "$as_me:$LINENO: checking for getmsg" >&5
52772 echo $ECHO_N "checking for getmsg... $ECHO_C" >&6
52773 if test "${ac_cv_func_getmsg+set}" = set; then
52774 echo $ECHO_N "(cached) $ECHO_C" >&6
52776 cat >conftest.$ac_ext <<_ACEOF
52779 cat confdefs.h >>conftest.$ac_ext
52780 cat >>conftest.$ac_ext <<_ACEOF
52781 /* end confdefs.h. */
52782 /* Define getmsg to an innocuous variant, in case <limits.h> declares getmsg.
52783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52784 #define getmsg innocuous_getmsg
52786 /* System header to define __stub macros and hopefully few prototypes,
52787 which can conflict with char getmsg (); below.
52788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52789 <limits.h> exists even on freestanding compilers. */
52792 # include <limits.h>
52794 # include <assert.h>
52799 /* Override any gcc2 internal prototype to avoid an error. */
52804 /* We use char because int might match the return type of a gcc2
52805 builtin and then its argument prototype would still apply. */
52807 /* The GNU C library defines this for functions which it implements
52808 to always fail with ENOSYS. Some functions are actually named
52809 something starting with __ and the normal name is an alias. */
52810 #if defined (__stub_getmsg) || defined (__stub___getmsg)
52813 char (*f) () = getmsg;
52822 return f != getmsg;
52827 rm -f conftest.$ac_objext conftest$ac_exeext
52828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52829 (eval $ac_link) 2>conftest.er1
52831 grep -v '^ *+' conftest.er1 >conftest.err
52833 cat conftest.err >&5
52834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52835 (exit $ac_status); } &&
52836 { ac_try='test -z "$ac_c_werror_flag"
52837 || test ! -s conftest.err'
52838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52839 (eval $ac_try) 2>&5
52841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52842 (exit $ac_status); }; } &&
52843 { ac_try='test -s conftest$ac_exeext'
52844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52845 (eval $ac_try) 2>&5
52847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52848 (exit $ac_status); }; }; then
52849 ac_cv_func_getmsg=yes
52851 echo "$as_me: failed program was:" >&5
52852 sed 's/^/| /' conftest.$ac_ext >&5
52854 ac_cv_func_getmsg=no
52856 rm -f conftest.err conftest.$ac_objext \
52857 conftest$ac_exeext conftest.$ac_ext
52859 echo "$as_me:$LINENO: result: $ac_cv_func_getmsg" >&5
52860 echo "${ECHO_T}$ac_cv_func_getmsg" >&6
52862 if test "$ac_cv_func_getmsg" = "yes"; then
52863 echo "$as_me:$LINENO: checking if getmsg works" >&5
52864 echo $ECHO_N "checking if getmsg works... $ECHO_C" >&6
52865 if test "${ac_cv_func_getmsg_works+set}" = set; then
52866 echo $ECHO_N "(cached) $ECHO_C" >&6
52868 if test "$cross_compiling" = yes; then
52869 ac_cv_func_getmsg_works=no
52871 cat >conftest.$ac_ext <<_ACEOF
52874 cat confdefs.h >>conftest.$ac_ext
52875 cat >>conftest.$ac_ext <<_ACEOF
52876 /* end confdefs.h. */
52884 ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL);
52885 if(ret < 0 && errno == ENOSYS)
52891 rm -f conftest$ac_exeext
52892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52893 (eval $ac_link) 2>&5
52895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52898 (eval $ac_try) 2>&5
52900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52901 (exit $ac_status); }; }; then
52902 ac_cv_func_getmsg_works=yes
52904 echo "$as_me: program exited with status $ac_status" >&5
52905 echo "$as_me: failed program was:" >&5
52906 sed 's/^/| /' conftest.$ac_ext >&5
52908 ( exit $ac_status )
52909 ac_cv_func_getmsg_works=no
52911 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52914 echo "$as_me:$LINENO: result: $ac_cv_func_getmsg_works" >&5
52915 echo "${ECHO_T}$ac_cv_func_getmsg_works" >&6
52916 if test "$ac_cv_func_getmsg_works" = "yes"; then
52918 cat >>confdefs.h <<\_ACEOF
52919 #define HAVE_GETMSG 1
52923 cat >>confdefs.h <<\_ACEOF
52924 #define STREAMSPTY 1
52938 # Extract the first word of "compile_et", so it can be a program name with args.
52939 set dummy compile_et; ac_word=$2
52940 echo "$as_me:$LINENO: checking for $ac_word" >&5
52941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
52942 if test "${ac_cv_prog_COMPILE_ET+set}" = set; then
52943 echo $ECHO_N "(cached) $ECHO_C" >&6
52945 if test -n "$COMPILE_ET"; then
52946 ac_cv_prog_COMPILE_ET="$COMPILE_ET" # Let the user override the test.
52948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52949 for as_dir in $PATH
52952 test -z "$as_dir" && as_dir=.
52953 for ac_exec_ext in '' $ac_executable_extensions; do
52954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
52955 ac_cv_prog_COMPILE_ET="compile_et"
52956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52964 COMPILE_ET=$ac_cv_prog_COMPILE_ET
52965 if test -n "$COMPILE_ET"; then
52966 echo "$as_me:$LINENO: result: $COMPILE_ET" >&5
52967 echo "${ECHO_T}$COMPILE_ET" >&6
52969 echo "$as_me:$LINENO: result: no" >&5
52970 echo "${ECHO_T}no" >&6
52974 krb_cv_compile_et="no"
52975 krb_cv_com_err_need_r=""
52976 if test "${COMPILE_ET}" = "compile_et"; then
52978 echo "$as_me:$LINENO: checking whether compile_et has the features we need" >&5
52979 echo $ECHO_N "checking whether compile_et has the features we need... $ECHO_C" >&6
52980 cat > conftest_et.et <<'EOF'
52981 error_table test conf
52984 error_code CODE1, "CODE1"
52986 error_code CODE2, "CODE2"
52989 if ${COMPILE_ET} conftest_et.et >/dev/null 2>&1; then
52990 save_CPPFLAGS="${CPPFLAGS}"
52991 if test -d "/usr/include/et"; then
52992 CPPFLAGS="-I/usr/include/et ${CPPFLAGS}"
52994 if test "$cross_compiling" = yes; then
52995 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
52996 See \`config.log' for more details." >&5
52997 echo "$as_me: error: cannot run test program while cross compiling
52998 See \`config.log' for more details." >&2;}
52999 { (exit 1); exit 1; }; }
53001 cat >conftest.$ac_ext <<_ACEOF
53004 cat confdefs.h >>conftest.$ac_ext
53005 cat >>conftest.$ac_ext <<_ACEOF
53006 /* end confdefs.h. */
53008 #include <com_err.h>
53009 #include <string.h>
53010 #include "conftest_et.h"
53012 #ifndef ERROR_TABLE_BASE_conf
53013 #error compile_et does not handle error_table N M
53015 return (CONFTEST_CODE2 - CONFTEST_CODE1) != 127;}
53018 rm -f conftest$ac_exeext
53019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53020 (eval $ac_link) 2>&5
53022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53025 (eval $ac_try) 2>&5
53027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53028 (exit $ac_status); }; }; then
53029 krb_cv_compile_et="yes"
53031 echo "$as_me: program exited with status $ac_status" >&5
53032 echo "$as_me: failed program was:" >&5
53033 sed 's/^/| /' conftest.$ac_ext >&5
53035 ( exit $ac_status )
53036 CPPFLAGS="${save_CPPFLAGS}"
53038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53041 echo "$as_me:$LINENO: result: ${krb_cv_compile_et}" >&5
53042 echo "${ECHO_T}${krb_cv_compile_et}" >&6
53043 if test "${krb_cv_compile_et}" = "yes"; then
53044 echo "$as_me:$LINENO: checking for if com_err needs to have a initialize_error_table_r" >&5
53045 echo $ECHO_N "checking for if com_err needs to have a initialize_error_table_r... $ECHO_C" >&6
53046 cat >conftest.$ac_ext <<_ACEOF
53049 cat confdefs.h >>conftest.$ac_ext
53050 cat >>conftest.$ac_ext <<_ACEOF
53051 /* end confdefs.h. */
53052 #include "conftest_et.c"
53054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53055 $EGREP "initialize_error_table_r" >/dev/null 2>&1; then
53056 krb_cv_com_err_need_r="initialize_error_table_r(0,0,0,0);"
53060 if test X"$krb_cv_com_err_need_r" = X ; then
53061 echo "$as_me:$LINENO: result: no" >&5
53062 echo "${ECHO_T}no" >&6
53064 echo "$as_me:$LINENO: result: yes" >&5
53065 echo "${ECHO_T}yes" >&6
53071 if test "${krb_cv_compile_et}" = "yes"; then
53072 krb_cv_save_LIBS="${LIBS}"
53073 LIBS="${LIBS} -lcom_err"
53074 echo "$as_me:$LINENO: checking for com_err" >&5
53075 echo $ECHO_N "checking for com_err... $ECHO_C" >&6
53076 cat >conftest.$ac_ext <<_ACEOF
53079 cat confdefs.h >>conftest.$ac_ext
53080 cat >>conftest.$ac_ext <<_ACEOF
53081 /* end confdefs.h. */
53082 #include <com_err.h>
53088 p = error_message(0);
53089 $krb_cv_com_err_need_r
53095 rm -f conftest.$ac_objext conftest$ac_exeext
53096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53097 (eval $ac_link) 2>conftest.er1
53099 grep -v '^ *+' conftest.er1 >conftest.err
53101 cat conftest.err >&5
53102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53103 (exit $ac_status); } &&
53104 { ac_try='test -z "$ac_c_werror_flag"
53105 || test ! -s conftest.err'
53106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53107 (eval $ac_try) 2>&5
53109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53110 (exit $ac_status); }; } &&
53111 { ac_try='test -s conftest$ac_exeext'
53112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53113 (eval $ac_try) 2>&5
53115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53116 (exit $ac_status); }; }; then
53117 krb_cv_com_err="yes"
53119 echo "$as_me: failed program was:" >&5
53120 sed 's/^/| /' conftest.$ac_ext >&5
53122 krb_cv_com_err="no"; CPPFLAGS="${save_CPPFLAGS}"
53124 rm -f conftest.err conftest.$ac_objext \
53125 conftest$ac_exeext conftest.$ac_ext
53126 echo "$as_me:$LINENO: result: ${krb_cv_com_err}" >&5
53127 echo "${ECHO_T}${krb_cv_com_err}" >&6
53128 LIBS="${krb_cv_save_LIBS}"
53130 krb_cv_com_err="no"
53133 if test "${krb_cv_com_err}" = "yes"; then
53135 LIB_com_err="-lcom_err"
53138 { echo "$as_me:$LINENO: Using the already-installed com_err" >&5
53139 echo "$as_me: Using the already-installed com_err" >&6;}
53141 COMPILE_ET="\$(top_builddir)/lib/com_err/compile_et"
53142 DIR_com_err="com_err"
53143 LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la"
53144 LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a"
53145 LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so"
53146 { echo "$as_me:$LINENO: Using our own com_err" >&5
53147 echo "$as_me: Using our own com_err" >&6;}
53157 echo "$as_me:$LINENO: checking which authentication modules should be built" >&5
53158 echo $ECHO_N "checking which authentication modules should be built... $ECHO_C" >&6
53160 z='sia afskauthlib'
53165 if test "$ac_cv_header_siad_h" = yes; then
53166 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
53171 *-*-freebsd*) ac_cv_want_pam_krb4=no ;;
53172 *) ac_cv_want_pam_krb4=yes ;;
53175 if test "$ac_cv_want_pam_krb4" = yes -a \
53176 "$ac_cv_header_security_pam_modules_h" = yes -a \
53177 "$enable_shared" = yes; then
53178 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
53183 *-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
53188 if test "$LIB_AUTH_SUBDIRS"; then
53189 echo "$as_me:$LINENO: result: $LIB_AUTH_SUBDIRS" >&5
53190 echo "${ECHO_T}$LIB_AUTH_SUBDIRS" >&6
53192 echo "$as_me:$LINENO: result: none" >&5
53193 echo "${ECHO_T}none" >&6
53199 # This is done by AC_OUTPUT but we need the result here.
53200 test "x$prefix" = xNONE && prefix=$ac_default_prefix
53201 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53206 while test "x$y" != "x$x"; do
53211 cat >>confdefs.h <<_ACEOF
53212 #define BINDIR "$x"
53217 while test "x$y" != "x$x"; do
53222 cat >>confdefs.h <<_ACEOF
53223 #define LIBDIR "$x"
53228 while test "x$y" != "x$x"; do
53233 cat >>confdefs.h <<_ACEOF
53234 #define LIBEXECDIR "$x"
53237 x="${localstatedir}"
53239 while test "x$y" != "x$x"; do
53244 cat >>confdefs.h <<_ACEOF
53245 #define LOCALSTATEDIR "$x"
53250 while test "x$y" != "x$x"; do
53255 cat >>confdefs.h <<_ACEOF
53256 #define SBINDIR "$x"
53261 while test "x$y" != "x$x"; do
53266 cat >>confdefs.h <<_ACEOF
53267 #define SYSCONFDIR "$x"
53272 LTLIBOBJS=`echo "$LIBOBJS" |
53273 sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
53279 ac_config_files="$ac_config_files Makefile include/Makefile include/kadm5/Makefile lib/Makefile lib/45/Makefile lib/auth/Makefile lib/auth/afskauthlib/Makefile lib/auth/pam/Makefile lib/auth/sia/Makefile lib/asn1/Makefile lib/com_err/Makefile lib/des/Makefile lib/editline/Makefile lib/gssapi/Makefile lib/hdb/Makefile lib/kadm5/Makefile lib/kafs/Makefile lib/kdfs/Makefile lib/krb5/Makefile lib/otp/Makefile lib/roken/Makefile lib/sl/Makefile lib/vers/Makefile kuser/Makefile kpasswd/Makefile kadmin/Makefile admin/Makefile kdc/Makefile appl/Makefile appl/afsutil/Makefile appl/ftp/Makefile appl/ftp/common/Makefile appl/ftp/ftp/Makefile appl/ftp/ftpd/Makefile appl/kx/Makefile appl/login/Makefile appl/otp/Makefile appl/popper/Makefile appl/push/Makefile appl/rsh/Makefile appl/rcp/Makefile appl/su/Makefile appl/xnlock/Makefile appl/telnet/Makefile appl/telnet/libtelnet/Makefile appl/telnet/telnet/Makefile appl/telnet/telnetd/Makefile appl/test/Makefile appl/kf/Makefile appl/dceutils/Makefile doc/Makefile tools/Makefile"
53282 cat >confcache <<\_ACEOF
53283 # This file is a shell script that caches the results of configure
53284 # tests run on this system so they can be shared between configure
53285 # scripts and configure runs, see configure's option --config-cache.
53286 # It is not useful on other systems. If it contains results you don't
53287 # want to keep, you may remove or edit it.
53289 # config.status only pays attention to the cache file if you give it
53290 # the --recheck option to rerun configure.
53292 # `ac_cv_env_foo' variables (set or unset) will be overridden when
53293 # loading this file, other *unset* `ac_cv_foo' will be assigned the
53294 # following values.
53298 # The following way of writing the cache mishandles newlines in values,
53299 # but we know of no workaround that is simple, portable, and efficient.
53300 # So, don't put newlines in cache variables' values.
53301 # Ultrix sh set writes to stderr and can't be redirected directly,
53302 # and sets the high bit in the cache file unless we assign to the vars.
53305 case `(ac_space=' '; set | grep ac_space) 2>&1` in
53307 # `set' does not quote correctly, so add quotes (double-quote
53308 # substitution turns \\\\ into \\, and sed turns \\ into \).
53311 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
53314 # `set' quotes correctly as required by POSIX, so do not add quotes.
53316 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
53323 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
53325 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
53327 if diff $cache_file confcache >/dev/null 2>&1; then :; else
53328 if test -w $cache_file; then
53329 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
53330 cat confcache >$cache_file
53332 echo "not updating unwritable cache $cache_file"
53337 test "x$prefix" = xNONE && prefix=$ac_default_prefix
53338 # Let make expand exec_prefix.
53339 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53341 # VPATH may cause trouble with some makes, so we remove $(srcdir),
53342 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
53343 # trailing colons and then remove the whole line if VPATH becomes empty
53344 # (actually we leave an empty line to preserve line numbers).
53345 if test "x$srcdir" = x.; then
53346 ac_vpsub='/^[ ]*VPATH[ ]*=/{
53347 s/:*\$(srcdir):*/:/;
53348 s/:*\${srcdir}:*/:/;
53350 s/^\([^=]*=[ ]*\):*/\1/;
53356 DEFS=-DHAVE_CONFIG_H
53360 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
53361 # 1. Remove the extension, and $U if already installed.
53362 ac_i=`echo "$ac_i" |
53363 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
53365 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
53366 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
53368 LIBOBJS=$ac_libobjs
53370 LTLIBOBJS=$ac_ltlibobjs
53373 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
53374 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
53375 Usually this means the macro was only invoked conditionally." >&5
53376 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
53377 Usually this means the macro was only invoked conditionally." >&2;}
53378 { (exit 1); exit 1; }; }
53380 if test -z "${KRB4_TRUE}" && test -z "${KRB4_FALSE}"; then
53381 { { echo "$as_me:$LINENO: error: conditional \"KRB4\" was never defined.
53382 Usually this means the macro was only invoked conditionally." >&5
53383 echo "$as_me: error: conditional \"KRB4\" was never defined.
53384 Usually this means the macro was only invoked conditionally." >&2;}
53385 { (exit 1); exit 1; }; }
53387 if test -z "${KRB5_TRUE}" && test -z "${KRB5_FALSE}"; then
53388 { { echo "$as_me:$LINENO: error: conditional \"KRB5\" was never defined.
53389 Usually this means the macro was only invoked conditionally." >&5
53390 echo "$as_me: error: conditional \"KRB5\" was never defined.
53391 Usually this means the macro was only invoked conditionally." >&2;}
53392 { (exit 1); exit 1; }; }
53394 if test -z "${do_roken_rename_TRUE}" && test -z "${do_roken_rename_FALSE}"; then
53395 { { echo "$as_me:$LINENO: error: conditional \"do_roken_rename\" was never defined.
53396 Usually this means the macro was only invoked conditionally." >&5
53397 echo "$as_me: error: conditional \"do_roken_rename\" was never defined.
53398 Usually this means the macro was only invoked conditionally." >&2;}
53399 { (exit 1); exit 1; }; }
53401 if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then
53402 { { echo "$as_me:$LINENO: error: conditional \"HAVE_OPENSSL\" was never defined.
53403 Usually this means the macro was only invoked conditionally." >&5
53404 echo "$as_me: error: conditional \"HAVE_OPENSSL\" was never defined.
53405 Usually this means the macro was only invoked conditionally." >&2;}
53406 { (exit 1); exit 1; }; }
53408 if test -z "${DCE_TRUE}" && test -z "${DCE_FALSE}"; then
53409 { { echo "$as_me:$LINENO: error: conditional \"DCE\" was never defined.
53410 Usually this means the macro was only invoked conditionally." >&5
53411 echo "$as_me: error: conditional \"DCE\" was never defined.
53412 Usually this means the macro was only invoked conditionally." >&2;}
53413 { (exit 1); exit 1; }; }
53415 if test -z "${HAVE_DB1_TRUE}" && test -z "${HAVE_DB1_FALSE}"; then
53416 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB1\" was never defined.
53417 Usually this means the macro was only invoked conditionally." >&5
53418 echo "$as_me: error: conditional \"HAVE_DB1\" was never defined.
53419 Usually this means the macro was only invoked conditionally." >&2;}
53420 { (exit 1); exit 1; }; }
53422 if test -z "${HAVE_DB3_TRUE}" && test -z "${HAVE_DB3_FALSE}"; then
53423 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB3\" was never defined.
53424 Usually this means the macro was only invoked conditionally." >&5
53425 echo "$as_me: error: conditional \"HAVE_DB3\" was never defined.
53426 Usually this means the macro was only invoked conditionally." >&2;}
53427 { (exit 1); exit 1; }; }
53429 if test -z "${HAVE_NDBM_TRUE}" && test -z "${HAVE_NDBM_FALSE}"; then
53430 { { echo "$as_me:$LINENO: error: conditional \"HAVE_NDBM\" was never defined.
53431 Usually this means the macro was only invoked conditionally." >&5
53432 echo "$as_me: error: conditional \"HAVE_NDBM\" was never defined.
53433 Usually this means the macro was only invoked conditionally." >&2;}
53434 { (exit 1); exit 1; }; }
53436 if test -z "${have_err_h_TRUE}" && test -z "${have_err_h_FALSE}"; then
53437 { { echo "$as_me:$LINENO: error: conditional \"have_err_h\" was never defined.
53438 Usually this means the macro was only invoked conditionally." >&5
53439 echo "$as_me: error: conditional \"have_err_h\" was never defined.
53440 Usually this means the macro was only invoked conditionally." >&2;}
53441 { (exit 1); exit 1; }; }
53443 if test -z "${have_fnmatch_h_TRUE}" && test -z "${have_fnmatch_h_FALSE}"; then
53444 { { echo "$as_me:$LINENO: error: conditional \"have_fnmatch_h\" was never defined.
53445 Usually this means the macro was only invoked conditionally." >&5
53446 echo "$as_me: error: conditional \"have_fnmatch_h\" was never defined.
53447 Usually this means the macro was only invoked conditionally." >&2;}
53448 { (exit 1); exit 1; }; }
53450 if test -z "${have_ifaddrs_h_TRUE}" && test -z "${have_ifaddrs_h_FALSE}"; then
53451 { { echo "$as_me:$LINENO: error: conditional \"have_ifaddrs_h\" was never defined.
53452 Usually this means the macro was only invoked conditionally." >&5
53453 echo "$as_me: error: conditional \"have_ifaddrs_h\" was never defined.
53454 Usually this means the macro was only invoked conditionally." >&2;}
53455 { (exit 1); exit 1; }; }
53457 if test -z "${have_vis_h_TRUE}" && test -z "${have_vis_h_FALSE}"; then
53458 { { echo "$as_me:$LINENO: error: conditional \"have_vis_h\" was never defined.
53459 Usually this means the macro was only invoked conditionally." >&5
53460 echo "$as_me: error: conditional \"have_vis_h\" was never defined.
53461 Usually this means the macro was only invoked conditionally." >&2;}
53462 { (exit 1); exit 1; }; }
53464 if test -z "${have_glob_h_TRUE}" && test -z "${have_glob_h_FALSE}"; then
53465 { { echo "$as_me:$LINENO: error: conditional \"have_glob_h\" was never defined.
53466 Usually this means the macro was only invoked conditionally." >&5
53467 echo "$as_me: error: conditional \"have_glob_h\" was never defined.
53468 Usually this means the macro was only invoked conditionally." >&2;}
53469 { (exit 1); exit 1; }; }
53471 if test -z "${OTP_TRUE}" && test -z "${OTP_FALSE}"; then
53472 { { echo "$as_me:$LINENO: error: conditional \"OTP\" was never defined.
53473 Usually this means the macro was only invoked conditionally." >&5
53474 echo "$as_me: error: conditional \"OTP\" was never defined.
53475 Usually this means the macro was only invoked conditionally." >&2;}
53476 { (exit 1); exit 1; }; }
53478 if test -z "${CATMAN_TRUE}" && test -z "${CATMAN_FALSE}"; then
53479 { { echo "$as_me:$LINENO: error: conditional \"CATMAN\" was never defined.
53480 Usually this means the macro was only invoked conditionally." >&5
53481 echo "$as_me: error: conditional \"CATMAN\" was never defined.
53482 Usually this means the macro was only invoked conditionally." >&2;}
53483 { (exit 1); exit 1; }; }
53485 if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then
53486 { { echo "$as_me:$LINENO: error: conditional \"AIX\" was never defined.
53487 Usually this means the macro was only invoked conditionally." >&5
53488 echo "$as_me: error: conditional \"AIX\" was never defined.
53489 Usually this means the macro was only invoked conditionally." >&2;}
53490 { (exit 1); exit 1; }; }
53492 if test -z "${AIX4_TRUE}" && test -z "${AIX4_FALSE}"; then
53493 { { echo "$as_me:$LINENO: error: conditional \"AIX4\" was never defined.
53494 Usually this means the macro was only invoked conditionally." >&5
53495 echo "$as_me: error: conditional \"AIX4\" was never defined.
53496 Usually this means the macro was only invoked conditionally." >&2;}
53497 { (exit 1); exit 1; }; }
53499 if test -z "${HAVE_DLOPEN_TRUE}" && test -z "${HAVE_DLOPEN_FALSE}"; then
53500 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DLOPEN\" was never defined.
53501 Usually this means the macro was only invoked conditionally." >&5
53502 echo "$as_me: error: conditional \"HAVE_DLOPEN\" was never defined.
53503 Usually this means the macro was only invoked conditionally." >&2;}
53504 { (exit 1); exit 1; }; }
53506 if test -z "${AIX_DYNAMIC_AFS_TRUE}" && test -z "${AIX_DYNAMIC_AFS_FALSE}"; then
53507 { { echo "$as_me:$LINENO: error: conditional \"AIX_DYNAMIC_AFS\" was never defined.
53508 Usually this means the macro was only invoked conditionally." >&5
53509 echo "$as_me: error: conditional \"AIX_DYNAMIC_AFS\" was never defined.
53510 Usually this means the macro was only invoked conditionally." >&2;}
53511 { (exit 1); exit 1; }; }
53513 if test -z "${IRIX_TRUE}" && test -z "${IRIX_FALSE}"; then
53514 { { echo "$as_me:$LINENO: error: conditional \"IRIX\" was never defined.
53515 Usually this means the macro was only invoked conditionally." >&5
53516 echo "$as_me: error: conditional \"IRIX\" was never defined.
53517 Usually this means the macro was only invoked conditionally." >&2;}
53518 { (exit 1); exit 1; }; }
53520 if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then
53521 { { echo "$as_me:$LINENO: error: conditional \"HAVE_X\" was never defined.
53522 Usually this means the macro was only invoked conditionally." >&5
53523 echo "$as_me: error: conditional \"HAVE_X\" was never defined.
53524 Usually this means the macro was only invoked conditionally." >&2;}
53525 { (exit 1); exit 1; }; }
53527 if test -z "${NEED_WRITEAUTH_TRUE}" && test -z "${NEED_WRITEAUTH_FALSE}"; then
53528 { { echo "$as_me:$LINENO: error: conditional \"NEED_WRITEAUTH\" was never defined.
53529 Usually this means the macro was only invoked conditionally." >&5
53530 echo "$as_me: error: conditional \"NEED_WRITEAUTH\" was never defined.
53531 Usually this means the macro was only invoked conditionally." >&2;}
53532 { (exit 1); exit 1; }; }
53534 if test -z "${el_compat_TRUE}" && test -z "${el_compat_FALSE}"; then
53535 { { echo "$as_me:$LINENO: error: conditional \"el_compat\" was never defined.
53536 Usually this means the macro was only invoked conditionally." >&5
53537 echo "$as_me: error: conditional \"el_compat\" was never defined.
53538 Usually this means the macro was only invoked conditionally." >&2;}
53539 { (exit 1); exit 1; }; }
53542 : ${CONFIG_STATUS=./config.status}
53543 ac_clean_files_save=$ac_clean_files
53544 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
53545 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
53546 echo "$as_me: creating $CONFIG_STATUS" >&6;}
53547 cat >$CONFIG_STATUS <<_ACEOF
53549 # Generated by $as_me.
53550 # Run this file to recreate the current configuration.
53551 # Compiler output produced by configure, useful for debugging
53552 # configure, is in config.log if it exists.
53555 ac_cs_recheck=false
53557 SHELL=\${CONFIG_SHELL-$SHELL}
53560 cat >>$CONFIG_STATUS <<\_ACEOF
53561 ## --------------------- ##
53562 ## M4sh Initialization. ##
53563 ## --------------------- ##
53565 # Be Bourne compatible
53566 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53569 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53570 # is contrary to our usage. Disable this feature.
53571 alias -g '${1+"$@"}'='"$@"'
53572 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
53575 DUALCASE=1; export DUALCASE # for MKS sh
53577 # Support unset when possible.
53578 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53585 # Work around bugs in pre-3.0 UWIN ksh.
53586 $as_unset ENV MAIL MAILPATH
53593 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53594 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53595 LC_TELEPHONE LC_TIME
53597 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53598 eval $as_var=C; export $as_var
53604 # Required to use basename.
53605 if expr a : '\(a\)' >/dev/null 2>&1; then
53611 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
53612 as_basename=basename
53618 # Name of the executable.
53619 as_me=`$as_basename "$0" ||
53620 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53621 X"$0" : 'X\(//\)$' \| \
53622 X"$0" : 'X\(/\)$' \| \
53623 . : '\(.\)' 2>/dev/null ||
53625 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
53626 /^X\/\(\/\/\)$/{ s//\1/; q; }
53627 /^X\/\(\/\).*/{ s//\1/; q; }
53631 # PATH needs CR, and LINENO needs CR and PATH.
53632 # Avoid depending upon Character Ranges.
53633 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53634 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53635 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53636 as_cr_digits='0123456789'
53637 as_cr_alnum=$as_cr_Letters$as_cr_digits
53639 # The user is always right.
53640 if test "${PATH_SEPARATOR+set}" != set; then
53641 echo "#! /bin/sh" >conf$$.sh
53642 echo "exit 0" >>conf$$.sh
53644 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53653 as_lineno_1=$LINENO
53654 as_lineno_2=$LINENO
53655 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53656 test "x$as_lineno_1" != "x$as_lineno_2" &&
53657 test "x$as_lineno_3" = "x$as_lineno_2" || {
53658 # Find who we are. Look in the path if we contain no path at all
53661 *[\\/]* ) as_myself=$0 ;;
53662 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53663 for as_dir in $PATH
53666 test -z "$as_dir" && as_dir=.
53667 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53672 # We did not find ourselves, most probably we were run as `sh COMMAND'
53673 # in which case we are not to be found in the path.
53674 if test "x$as_myself" = x; then
53677 if test ! -f "$as_myself"; then
53678 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
53679 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
53680 { (exit 1); exit 1; }; }
53682 case $CONFIG_SHELL in
53684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53685 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
53688 test -z "$as_dir" && as_dir=.
53689 for as_base in sh bash ksh sh5; do
53692 if ("$as_dir/$as_base" -c '
53693 as_lineno_1=$LINENO
53694 as_lineno_2=$LINENO
53695 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53696 test "x$as_lineno_1" != "x$as_lineno_2" &&
53697 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
53698 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
53699 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
53700 CONFIG_SHELL=$as_dir/$as_base
53701 export CONFIG_SHELL
53702 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
53710 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53711 # uniformly replaced by the line number. The first 'sed' inserts a
53712 # line-number line before each line; the second 'sed' does the real
53713 # work. The second script uses 'N' to pair each line-number line
53714 # with the numbered line, and appends trailing '-' during
53715 # substitution so that $LINENO is not a special case at line end.
53716 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53717 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
53718 sed '=' <$as_myself |
53723 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
53726 s,^['$as_cr_digits']*\n,,
53727 ' >$as_me.lineno &&
53728 chmod +x $as_me.lineno ||
53729 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
53730 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
53731 { (exit 1); exit 1; }; }
53733 # Don't try to exec as it changes $[0], causing all sort of problems
53734 # (the dirname of $[0] is not the place where we might find the
53735 # original and so on. Autoconf is especially sensible to this).
53737 # Exit status is that of the last command.
53742 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
53743 *c*,-n*) ECHO_N= ECHO_C='
53745 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
53746 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
53749 if expr a : '\(a\)' >/dev/null 2>&1; then
53755 rm -f conf$$ conf$$.exe conf$$.file
53757 if ln -s conf$$.file conf$$ 2>/dev/null; then
53758 # We could just check for DJGPP; but this test a) works b) is more generic
53759 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
53760 if test -f conf$$.exe; then
53761 # Don't use ln at all; we don't have any links
53766 elif ln conf$$.file conf$$ 2>/dev/null; then
53771 rm -f conf$$ conf$$.exe conf$$.file
53773 if mkdir -p . 2>/dev/null; then
53776 test -d ./-p && rmdir ./-p
53780 as_executable_p="test -f"
53782 # Sed expression to map a string onto a valid CPP name.
53783 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53785 # Sed expression to map a string onto a valid variable name.
53786 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53790 # We need space, tab and new line, in precisely that order.
53800 # Open the log real soon, to keep \$[0] and so on meaningful, and to
53801 # report actual input values of CONFIG_FILES etc. instead of their
53802 # values after options handling. Logging --version etc. is OK.
53806 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53807 ## Running $as_me. ##
53812 This file was extended by Heimdal $as_me 0.6.3, which was
53813 generated by GNU Autoconf 2.59. Invocation command line was
53815 CONFIG_FILES = $CONFIG_FILES
53816 CONFIG_HEADERS = $CONFIG_HEADERS
53817 CONFIG_LINKS = $CONFIG_LINKS
53818 CONFIG_COMMANDS = $CONFIG_COMMANDS
53822 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
53826 # Files that config.status was made for.
53827 if test -n "$ac_config_files"; then
53828 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
53831 if test -n "$ac_config_headers"; then
53832 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
53835 if test -n "$ac_config_links"; then
53836 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
53839 if test -n "$ac_config_commands"; then
53840 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
53843 cat >>$CONFIG_STATUS <<\_ACEOF
53846 \`$as_me' instantiates files from templates according to the
53847 current configuration.
53849 Usage: $0 [OPTIONS] [FILE]...
53851 -h, --help print this help, then exit
53852 -V, --version print version number, then exit
53853 -q, --quiet do not print progress messages
53854 -d, --debug don't remove temporary files
53855 --recheck update $as_me by reconfiguring in the same conditions
53856 --file=FILE[:TEMPLATE]
53857 instantiate the configuration file FILE
53858 --header=FILE[:TEMPLATE]
53859 instantiate the configuration header FILE
53861 Configuration files:
53864 Configuration headers:
53867 Report bugs to <bug-autoconf@gnu.org>."
53870 cat >>$CONFIG_STATUS <<_ACEOF
53872 Heimdal config.status 0.6.3
53873 configured by $0, generated by GNU Autoconf 2.59,
53874 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
53876 Copyright (C) 2003 Free Software Foundation, Inc.
53877 This config.status script is free software; the Free Software Foundation
53878 gives unlimited permission to copy, distribute and modify it."
53883 cat >>$CONFIG_STATUS <<\_ACEOF
53884 # If no file are specified by the user, then we need to provide default
53885 # value. By we need to know if files were specified by the user.
53891 ac_option=`expr "x$1" : 'x\([^=]*\)='`
53892 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
53900 *) # This is not an option, so the user has probably given explicit
53903 ac_need_defaults=false;;
53907 # Handling of the options.
53909 cat >>$CONFIG_STATUS <<\_ACEOF
53910 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53912 --version | --vers* | -V )
53913 echo "$ac_cs_version"; exit 0 ;;
53915 # Conflict between --help and --header
53916 { { echo "$as_me:$LINENO: error: ambiguous option: $1
53917 Try \`$0 --help' for more information." >&5
53918 echo "$as_me: error: ambiguous option: $1
53919 Try \`$0 --help' for more information." >&2;}
53920 { (exit 1); exit 1; }; };;
53921 --help | --hel | -h )
53922 echo "$ac_cs_usage"; exit 0 ;;
53923 --debug | --d* | -d )
53925 --file | --fil | --fi | --f )
53927 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53928 ac_need_defaults=false;;
53929 --header | --heade | --head | --hea )
53931 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53932 ac_need_defaults=false;;
53933 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53934 | -silent | --silent | --silen | --sile | --sil | --si | --s)
53937 # This is an error.
53938 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
53939 Try \`$0 --help' for more information." >&5
53940 echo "$as_me: error: unrecognized option: $1
53941 Try \`$0 --help' for more information." >&2;}
53942 { (exit 1); exit 1; }; } ;;
53944 *) ac_config_targets="$ac_config_targets $1" ;;
53950 ac_configure_extra_args=
53952 if $ac_cs_silent; then
53954 ac_configure_extra_args="$ac_configure_extra_args --silent"
53958 cat >>$CONFIG_STATUS <<_ACEOF
53959 if \$ac_cs_recheck; then
53960 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53961 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53970 cat >>$CONFIG_STATUS <<\_ACEOF
53971 for ac_config_target in $ac_config_targets
53973 case "$ac_config_target" in
53974 # Handling of arguments.
53975 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
53976 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
53977 "include/kadm5/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;;
53978 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
53979 "lib/45/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/45/Makefile" ;;
53980 "lib/auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;;
53981 "lib/auth/afskauthlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/afskauthlib/Makefile" ;;
53982 "lib/auth/pam/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/pam/Makefile" ;;
53983 "lib/auth/sia/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/sia/Makefile" ;;
53984 "lib/asn1/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;;
53985 "lib/com_err/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;;
53986 "lib/des/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/des/Makefile" ;;
53987 "lib/editline/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/editline/Makefile" ;;
53988 "lib/gssapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;;
53989 "lib/hdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;;
53990 "lib/kadm5/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;;
53991 "lib/kafs/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;;
53992 "lib/kdfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;;
53993 "lib/krb5/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;;
53994 "lib/otp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;;
53995 "lib/roken/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;;
53996 "lib/sl/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;;
53997 "lib/vers/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;;
53998 "kuser/Makefile" ) CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;;
53999 "kpasswd/Makefile" ) CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;;
54000 "kadmin/Makefile" ) CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;;
54001 "admin/Makefile" ) CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
54002 "kdc/Makefile" ) CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;;
54003 "appl/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;;
54004 "appl/afsutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;;
54005 "appl/ftp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/Makefile" ;;
54006 "appl/ftp/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/common/Makefile" ;;
54007 "appl/ftp/ftp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftp/Makefile" ;;
54008 "appl/ftp/ftpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftpd/Makefile" ;;
54009 "appl/kx/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/kx/Makefile" ;;
54010 "appl/login/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/login/Makefile" ;;
54011 "appl/otp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;;
54012 "appl/popper/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/popper/Makefile" ;;
54013 "appl/push/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/push/Makefile" ;;
54014 "appl/rsh/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/rsh/Makefile" ;;
54015 "appl/rcp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/rcp/Makefile" ;;
54016 "appl/su/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;;
54017 "appl/xnlock/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/xnlock/Makefile" ;;
54018 "appl/telnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/Makefile" ;;
54019 "appl/telnet/libtelnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/libtelnet/Makefile" ;;
54020 "appl/telnet/telnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnet/Makefile" ;;
54021 "appl/telnet/telnetd/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnetd/Makefile" ;;
54022 "appl/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;;
54023 "appl/kf/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;;
54024 "appl/dceutils/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;;
54025 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
54026 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
54027 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
54028 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
54029 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
54030 { (exit 1); exit 1; }; };;
54034 # If the user did not use the arguments to specify the items to instantiate,
54035 # then the envvar interface is used. Set only those that are not.
54036 # We use the long form for the default assignment because of an extremely
54037 # bizarre bug on SunOS 4.1.3.
54038 if $ac_need_defaults; then
54039 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
54040 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
54043 # Have a temporary directory for convenience. Make it in the build tree
54044 # simply because there is no reason to put it here, and in addition,
54045 # creating and moving files from /tmp can sometimes cause problems.
54046 # Create a temporary directory, and hook for its removal unless debugging.
54049 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
54050 trap '{ (exit 1); exit 1; }' 1 2 13 15
54053 # Create a (secure) tmp directory for tmp files.
54056 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
54057 test -n "$tmp" && test -d "$tmp"
54060 tmp=./confstat$$-$RANDOM
54061 (umask 077 && mkdir $tmp)
54064 echo "$me: cannot create a temporary directory in ." >&2
54065 { (exit 1); exit 1; }
54070 cat >>$CONFIG_STATUS <<_ACEOF
54073 # CONFIG_FILES section.
54076 # No need to generate the scripts if there are no CONFIG_FILES.
54077 # This happens for instance when ./config.status config.h
54078 if test -n "\$CONFIG_FILES"; then
54079 # Protect against being on the right side of a sed subst in config.status.
54080 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
54081 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
54082 s,@SHELL@,$SHELL,;t t
54083 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
54084 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
54085 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
54086 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
54087 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
54088 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
54089 s,@exec_prefix@,$exec_prefix,;t t
54090 s,@prefix@,$prefix,;t t
54091 s,@program_transform_name@,$program_transform_name,;t t
54092 s,@bindir@,$bindir,;t t
54093 s,@sbindir@,$sbindir,;t t
54094 s,@libexecdir@,$libexecdir,;t t
54095 s,@datadir@,$datadir,;t t
54096 s,@sysconfdir@,$sysconfdir,;t t
54097 s,@sharedstatedir@,$sharedstatedir,;t t
54098 s,@localstatedir@,$localstatedir,;t t
54099 s,@libdir@,$libdir,;t t
54100 s,@includedir@,$includedir,;t t
54101 s,@oldincludedir@,$oldincludedir,;t t
54102 s,@infodir@,$infodir,;t t
54103 s,@mandir@,$mandir,;t t
54104 s,@build_alias@,$build_alias,;t t
54105 s,@host_alias@,$host_alias,;t t
54106 s,@target_alias@,$target_alias,;t t
54107 s,@DEFS@,$DEFS,;t t
54108 s,@ECHO_C@,$ECHO_C,;t t
54109 s,@ECHO_N@,$ECHO_N,;t t
54110 s,@ECHO_T@,$ECHO_T,;t t
54111 s,@LIBS@,$LIBS,;t t
54113 s,@CFLAGS@,$CFLAGS,;t t
54114 s,@LDFLAGS@,$LDFLAGS,;t t
54115 s,@CPPFLAGS@,$CPPFLAGS,;t t
54116 s,@ac_ct_CC@,$ac_ct_CC,;t t
54117 s,@EXEEXT@,$EXEEXT,;t t
54118 s,@OBJEXT@,$OBJEXT,;t t
54120 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
54121 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
54122 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
54123 s,@CYGPATH_W@,$CYGPATH_W,;t t
54124 s,@PACKAGE@,$PACKAGE,;t t
54125 s,@VERSION@,$VERSION,;t t
54126 s,@ACLOCAL@,$ACLOCAL,;t t
54127 s,@AUTOCONF@,$AUTOCONF,;t t
54128 s,@AUTOMAKE@,$AUTOMAKE,;t t
54129 s,@AUTOHEADER@,$AUTOHEADER,;t t
54130 s,@MAKEINFO@,$MAKEINFO,;t t
54131 s,@AMTAR@,$AMTAR,;t t
54132 s,@install_sh@,$install_sh,;t t
54133 s,@STRIP@,$STRIP,;t t
54134 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
54135 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
54136 s,@mkdir_p@,$mkdir_p,;t t
54138 s,@SET_MAKE@,$SET_MAKE,;t t
54139 s,@am__leading_dot@,$am__leading_dot,;t t
54140 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
54141 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
54142 s,@MAINT@,$MAINT,;t t
54143 s,@build@,$build,;t t
54144 s,@build_cpu@,$build_cpu,;t t
54145 s,@build_vendor@,$build_vendor,;t t
54146 s,@build_os@,$build_os,;t t
54147 s,@host@,$host,;t t
54148 s,@host_cpu@,$host_cpu,;t t
54149 s,@host_vendor@,$host_vendor,;t t
54150 s,@host_os@,$host_os,;t t
54151 s,@CANONICAL_HOST@,$CANONICAL_HOST,;t t
54152 s,@YACC@,$YACC,;t t
54154 s,@LEXLIB@,$LEXLIB,;t t
54155 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
54156 s,@LN_S@,$LN_S,;t t
54157 s,@EGREP@,$EGREP,;t t
54158 s,@ECHO@,$ECHO,;t t
54160 s,@ac_ct_AR@,$ac_ct_AR,;t t
54161 s,@RANLIB@,$RANLIB,;t t
54162 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
54164 s,@CXXFLAGS@,$CXXFLAGS,;t t
54165 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
54166 s,@CXXCPP@,$CXXCPP,;t t
54168 s,@FFLAGS@,$FFLAGS,;t t
54169 s,@ac_ct_F77@,$ac_ct_F77,;t t
54170 s,@LIBTOOL@,$LIBTOOL,;t t
54171 s,@WFLAGS@,$WFLAGS,;t t
54172 s,@WFLAGS_NOUNUSED@,$WFLAGS_NOUNUSED,;t t
54173 s,@WFLAGS_NOIMPLICITINT@,$WFLAGS_NOIMPLICITINT,;t t
54174 s,@INCLUDE_openldap@,$INCLUDE_openldap,;t t
54175 s,@LIB_openldap@,$LIB_openldap,;t t
54176 s,@INCLUDE_krb4@,$INCLUDE_krb4,;t t
54177 s,@LIB_krb4@,$LIB_krb4,;t t
54178 s,@EXTRA_LIB45@,$EXTRA_LIB45,;t t
54179 s,@LIB_krb_enable_debug@,$LIB_krb_enable_debug,;t t
54180 s,@LIB_krb_disable_debug@,$LIB_krb_disable_debug,;t t
54181 s,@LIB_krb_get_our_ip_for_realm@,$LIB_krb_get_our_ip_for_realm,;t t
54182 s,@LIB_krb_kdctimeofday@,$LIB_krb_kdctimeofday,;t t
54183 s,@LIB_krb_get_kdc_time_diff@,$LIB_krb_get_kdc_time_diff,;t t
54184 s,@KRB4_TRUE@,$KRB4_TRUE,;t t
54185 s,@KRB4_FALSE@,$KRB4_FALSE,;t t
54186 s,@KRB5_TRUE@,$KRB5_TRUE,;t t
54187 s,@KRB5_FALSE@,$KRB5_FALSE,;t t
54188 s,@do_roken_rename_TRUE@,$do_roken_rename_TRUE,;t t
54189 s,@do_roken_rename_FALSE@,$do_roken_rename_FALSE,;t t
54190 s,@LIB_kdb@,$LIB_kdb,;t t
54191 s,@HAVE_OPENSSL_TRUE@,$HAVE_OPENSSL_TRUE,;t t
54192 s,@HAVE_OPENSSL_FALSE@,$HAVE_OPENSSL_FALSE,;t t
54193 s,@DIR_des@,$DIR_des,;t t
54194 s,@INCLUDE_des@,$INCLUDE_des,;t t
54195 s,@LIB_des@,$LIB_des,;t t
54196 s,@LIB_des_a@,$LIB_des_a,;t t
54197 s,@LIB_des_so@,$LIB_des_so,;t t
54198 s,@LIB_des_appl@,$LIB_des_appl,;t t
54199 s,@DCE_TRUE@,$DCE_TRUE,;t t
54200 s,@DCE_FALSE@,$DCE_FALSE,;t t
54201 s,@dpagaix_cflags@,$dpagaix_cflags,;t t
54202 s,@dpagaix_ldadd@,$dpagaix_ldadd,;t t
54203 s,@dpagaix_ldflags@,$dpagaix_ldflags,;t t
54204 s,@LIB_db_create@,$LIB_db_create,;t t
54205 s,@LIB_dbopen@,$LIB_dbopen,;t t
54206 s,@LIB_dbm_firstkey@,$LIB_dbm_firstkey,;t t
54207 s,@HAVE_DB1_TRUE@,$HAVE_DB1_TRUE,;t t
54208 s,@HAVE_DB1_FALSE@,$HAVE_DB1_FALSE,;t t
54209 s,@HAVE_DB3_TRUE@,$HAVE_DB3_TRUE,;t t
54210 s,@HAVE_DB3_FALSE@,$HAVE_DB3_FALSE,;t t
54211 s,@HAVE_NDBM_TRUE@,$HAVE_NDBM_TRUE,;t t
54212 s,@HAVE_NDBM_FALSE@,$HAVE_NDBM_FALSE,;t t
54213 s,@DBLIB@,$DBLIB,;t t
54214 s,@LIB_NDBM@,$LIB_NDBM,;t t
54215 s,@VOID_RETSIGTYPE@,$VOID_RETSIGTYPE,;t t
54216 s,@have_err_h_TRUE@,$have_err_h_TRUE,;t t
54217 s,@have_err_h_FALSE@,$have_err_h_FALSE,;t t
54218 s,@have_fnmatch_h_TRUE@,$have_fnmatch_h_TRUE,;t t
54219 s,@have_fnmatch_h_FALSE@,$have_fnmatch_h_FALSE,;t t
54220 s,@have_ifaddrs_h_TRUE@,$have_ifaddrs_h_TRUE,;t t
54221 s,@have_ifaddrs_h_FALSE@,$have_ifaddrs_h_FALSE,;t t
54222 s,@have_vis_h_TRUE@,$have_vis_h_TRUE,;t t
54223 s,@have_vis_h_FALSE@,$have_vis_h_FALSE,;t t
54224 s,@LIB_socket@,$LIB_socket,;t t
54225 s,@LIB_gethostbyname@,$LIB_gethostbyname,;t t
54226 s,@LIB_syslog@,$LIB_syslog,;t t
54227 s,@LIB_gethostbyname2@,$LIB_gethostbyname2,;t t
54228 s,@LIB_res_search@,$LIB_res_search,;t t
54229 s,@LIB_res_nsearch@,$LIB_res_nsearch,;t t
54230 s,@LIB_dn_expand@,$LIB_dn_expand,;t t
54231 s,@LIBOBJS@,$LIBOBJS,;t t
54232 s,@have_glob_h_TRUE@,$have_glob_h_TRUE,;t t
54233 s,@have_glob_h_FALSE@,$have_glob_h_FALSE,;t t
54234 s,@LIB_getsockopt@,$LIB_getsockopt,;t t
54235 s,@LIB_setsockopt@,$LIB_setsockopt,;t t
54236 s,@LIB_hstrerror@,$LIB_hstrerror,;t t
54237 s,@LIB_bswap16@,$LIB_bswap16,;t t
54238 s,@LIB_bswap32@,$LIB_bswap32,;t t
54239 s,@LIB_pidfile@,$LIB_pidfile,;t t
54240 s,@LIB_getaddrinfo@,$LIB_getaddrinfo,;t t
54241 s,@LIB_getnameinfo@,$LIB_getnameinfo,;t t
54242 s,@LIB_freeaddrinfo@,$LIB_freeaddrinfo,;t t
54243 s,@LIB_gai_strerror@,$LIB_gai_strerror,;t t
54244 s,@LIB_crypt@,$LIB_crypt,;t t
54245 s,@DIR_roken@,$DIR_roken,;t t
54246 s,@LIB_roken@,$LIB_roken,;t t
54247 s,@INCLUDES_roken@,$INCLUDES_roken,;t t
54248 s,@LIB_otp@,$LIB_otp,;t t
54249 s,@OTP_TRUE@,$OTP_TRUE,;t t
54250 s,@OTP_FALSE@,$OTP_FALSE,;t t
54251 s,@LIB_security@,$LIB_security,;t t
54252 s,@NROFF@,$NROFF,;t t
54253 s,@GROFF@,$GROFF,;t t
54254 s,@CATMAN@,$CATMAN,;t t
54255 s,@CATMAN_TRUE@,$CATMAN_TRUE,;t t
54256 s,@CATMAN_FALSE@,$CATMAN_FALSE,;t t
54257 s,@CATMANEXT@,$CATMANEXT,;t t
54258 s,@INCLUDE_readline@,$INCLUDE_readline,;t t
54259 s,@LIB_readline@,$LIB_readline,;t t
54260 s,@INCLUDE_hesiod@,$INCLUDE_hesiod,;t t
54261 s,@LIB_hesiod@,$LIB_hesiod,;t t
54262 s,@AIX_TRUE@,$AIX_TRUE,;t t
54263 s,@AIX_FALSE@,$AIX_FALSE,;t t
54264 s,@AIX4_TRUE@,$AIX4_TRUE,;t t
54265 s,@AIX4_FALSE@,$AIX4_FALSE,;t t
54266 s,@LIB_dlopen@,$LIB_dlopen,;t t
54267 s,@HAVE_DLOPEN_TRUE@,$HAVE_DLOPEN_TRUE,;t t
54268 s,@HAVE_DLOPEN_FALSE@,$HAVE_DLOPEN_FALSE,;t t
54269 s,@LIB_loadquery@,$LIB_loadquery,;t t
54270 s,@AIX_DYNAMIC_AFS_TRUE@,$AIX_DYNAMIC_AFS_TRUE,;t t
54271 s,@AIX_DYNAMIC_AFS_FALSE@,$AIX_DYNAMIC_AFS_FALSE,;t t
54272 s,@AIX_EXTRA_KAFS@,$AIX_EXTRA_KAFS,;t t
54273 s,@IRIX_TRUE@,$IRIX_TRUE,;t t
54274 s,@IRIX_FALSE@,$IRIX_FALSE,;t t
54275 s,@X_CFLAGS@,$X_CFLAGS,;t t
54276 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
54277 s,@X_LIBS@,$X_LIBS,;t t
54278 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
54279 s,@HAVE_X_TRUE@,$HAVE_X_TRUE,;t t
54280 s,@HAVE_X_FALSE@,$HAVE_X_FALSE,;t t
54281 s,@LIB_XauWriteAuth@,$LIB_XauWriteAuth,;t t
54282 s,@LIB_XauReadAuth@,$LIB_XauReadAuth,;t t
54283 s,@LIB_XauFileName@,$LIB_XauFileName,;t t
54284 s,@NEED_WRITEAUTH_TRUE@,$NEED_WRITEAUTH_TRUE,;t t
54285 s,@NEED_WRITEAUTH_FALSE@,$NEED_WRITEAUTH_FALSE,;t t
54286 s,@LIB_logwtmp@,$LIB_logwtmp,;t t
54287 s,@LIB_logout@,$LIB_logout,;t t
54288 s,@LIB_openpty@,$LIB_openpty,;t t
54289 s,@LIB_tgetent@,$LIB_tgetent,;t t
54290 s,@LIB_getpwnam_r@,$LIB_getpwnam_r,;t t
54291 s,@LIB_el_init@,$LIB_el_init,;t t
54292 s,@el_compat_TRUE@,$el_compat_TRUE,;t t
54293 s,@el_compat_FALSE@,$el_compat_FALSE,;t t
54294 s,@COMPILE_ET@,$COMPILE_ET,;t t
54295 s,@DIR_com_err@,$DIR_com_err,;t t
54296 s,@LIB_com_err@,$LIB_com_err,;t t
54297 s,@LIB_com_err_a@,$LIB_com_err_a,;t t
54298 s,@LIB_com_err_so@,$LIB_com_err_so,;t t
54299 s,@LIB_AUTH_SUBDIRS@,$LIB_AUTH_SUBDIRS,;t t
54300 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
54305 cat >>$CONFIG_STATUS <<\_ACEOF
54306 # Split the substitutions into bite-sized pieces for seds with
54307 # small command number limits, like on Digital OSF/1 and HP-UX.
54308 ac_max_sed_lines=48
54309 ac_sed_frag=1 # Number of current file.
54310 ac_beg=1 # First line for current file.
54311 ac_end=$ac_max_sed_lines # Line after last line for current file.
54314 while $ac_more_lines; do
54315 if test $ac_beg -gt 1; then
54316 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
54318 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
54320 if test ! -s $tmp/subs.frag; then
54321 ac_more_lines=false
54323 # The purpose of the label and of the branching condition is to
54324 # speed up the sed processing (if there are no `@' at all, there
54325 # is no need to browse any of the substitutions).
54326 # These are the two extra sed commands mentioned above.
54328 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
54329 if test -z "$ac_sed_cmds"; then
54330 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
54332 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
54334 ac_sed_frag=`expr $ac_sed_frag + 1`
54336 ac_end=`expr $ac_end + $ac_max_sed_lines`
54339 if test -z "$ac_sed_cmds"; then
54342 fi # test -n "$CONFIG_FILES"
54345 cat >>$CONFIG_STATUS <<\_ACEOF
54346 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
54347 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
54349 - | *:- | *:-:* ) # input from stdin
54351 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54352 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54353 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54354 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54355 * ) ac_file_in=$ac_file.in ;;
54358 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
54359 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
54360 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54361 X"$ac_file" : 'X\(//\)[^/]' \| \
54362 X"$ac_file" : 'X\(//\)$' \| \
54363 X"$ac_file" : 'X\(/\)' \| \
54364 . : '\(.\)' 2>/dev/null ||
54366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54367 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54368 /^X\(\/\/\)$/{ s//\1/; q; }
54369 /^X\(\/\).*/{ s//\1/; q; }
54371 { if $as_mkdir_p; then
54376 while test ! -d "$as_dir"; do
54377 as_dirs="$as_dir $as_dirs"
54378 as_dir=`(dirname "$as_dir") 2>/dev/null ||
54379 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54380 X"$as_dir" : 'X\(//\)[^/]' \| \
54381 X"$as_dir" : 'X\(//\)$' \| \
54382 X"$as_dir" : 'X\(/\)' \| \
54383 . : '\(.\)' 2>/dev/null ||
54385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54386 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54387 /^X\(\/\/\)$/{ s//\1/; q; }
54388 /^X\(\/\).*/{ s//\1/; q; }
54391 test ! -n "$as_dirs" || mkdir $as_dirs
54392 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54393 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54394 { (exit 1); exit 1; }; }; }
54398 if test "$ac_dir" != .; then
54399 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54400 # A "../" for each directory in $ac_dir_suffix.
54401 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
54403 ac_dir_suffix= ac_top_builddir=
54407 .) # No --srcdir option. We are building in place.
54409 if test -z "$ac_top_builddir"; then
54412 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
54414 [\\/]* | ?:[\\/]* ) # Absolute path.
54415 ac_srcdir=$srcdir$ac_dir_suffix;
54416 ac_top_srcdir=$srcdir ;;
54417 *) # Relative path.
54418 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
54419 ac_top_srcdir=$ac_top_builddir$srcdir ;;
54422 # Do not use `cd foo && pwd` to compute absolute paths, because
54423 # the directories may not exist.
54425 .) ac_abs_builddir="$ac_dir";;
54428 .) ac_abs_builddir=`pwd`;;
54429 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
54430 *) ac_abs_builddir=`pwd`/"$ac_dir";;
54433 case $ac_abs_builddir in
54434 .) ac_abs_top_builddir=${ac_top_builddir}.;;
54436 case ${ac_top_builddir}. in
54437 .) ac_abs_top_builddir=$ac_abs_builddir;;
54438 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
54439 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
54442 case $ac_abs_builddir in
54443 .) ac_abs_srcdir=$ac_srcdir;;
54446 .) ac_abs_srcdir=$ac_abs_builddir;;
54447 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
54448 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
54451 case $ac_abs_builddir in
54452 .) ac_abs_top_srcdir=$ac_top_srcdir;;
54454 case $ac_top_srcdir in
54455 .) ac_abs_top_srcdir=$ac_abs_builddir;;
54456 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54457 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54463 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54464 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
54467 if test x"$ac_file" != x-; then
54468 { echo "$as_me:$LINENO: creating $ac_file" >&5
54469 echo "$as_me: creating $ac_file" >&6;}
54472 # Let's still pretend it is `configure' which instantiates (i.e., don't
54473 # use $as_me), people would be surprised to read:
54474 # /* config.h. Generated by config.status. */
54475 if test x"$ac_file" = x-; then
54478 configure_input="$ac_file. "
54480 configure_input=$configure_input"Generated from `echo $ac_file_in |
54481 sed 's,.*/,,'` by configure."
54483 # First look for the input files in the build tree, otherwise in the
54485 ac_file_inputs=`IFS=:
54486 for f in $ac_file_in; do
54488 -) echo $tmp/stdin ;;
54490 # Absolute (can't be DOS-style, as IFS=:)
54491 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54492 echo "$as_me: error: cannot find input file: $f" >&2;}
54493 { (exit 1); exit 1; }; }
54496 if test -f "$f"; then
54499 elif test -f "$srcdir/$f"; then
54504 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54505 echo "$as_me: error: cannot find input file: $f" >&2;}
54506 { (exit 1); exit 1; }; }
54509 done` || { (exit 1); exit 1; }
54511 cat >>$CONFIG_STATUS <<_ACEOF
54515 cat >>$CONFIG_STATUS <<\_ACEOF
54517 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54518 s,@configure_input@,$configure_input,;t t
54519 s,@srcdir@,$ac_srcdir,;t t
54520 s,@abs_srcdir@,$ac_abs_srcdir,;t t
54521 s,@top_srcdir@,$ac_top_srcdir,;t t
54522 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
54523 s,@builddir@,$ac_builddir,;t t
54524 s,@abs_builddir@,$ac_abs_builddir,;t t
54525 s,@top_builddir@,$ac_top_builddir,;t t
54526 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
54527 s,@INSTALL@,$ac_INSTALL,;t t
54528 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
54530 if test x"$ac_file" != x-; then
54531 mv $tmp/out $ac_file
54539 cat >>$CONFIG_STATUS <<\_ACEOF
54542 # CONFIG_HEADER section.
54545 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
54546 # NAME is the cpp macro being defined and VALUE is the value it is being given.
54548 # ac_d sets the value in "#define NAME VALUE" lines.
54549 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
54550 ac_dB='[ ].*$,\1#\2'
54553 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
54554 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
54555 ac_uB='$,\1#\2define\3'
54559 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
54560 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
54562 - | *:- | *:-:* ) # input from stdin
54564 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54565 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54566 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54567 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54568 * ) ac_file_in=$ac_file.in ;;
54571 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
54572 echo "$as_me: creating $ac_file" >&6;}
54574 # First look for the input files in the build tree, otherwise in the
54576 ac_file_inputs=`IFS=:
54577 for f in $ac_file_in; do
54579 -) echo $tmp/stdin ;;
54581 # Absolute (can't be DOS-style, as IFS=:)
54582 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54583 echo "$as_me: error: cannot find input file: $f" >&2;}
54584 { (exit 1); exit 1; }; }
54585 # Do quote $f, to prevent DOS paths from being IFS'd.
54588 if test -f "$f"; then
54591 elif test -f "$srcdir/$f"; then
54596 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54597 echo "$as_me: error: cannot find input file: $f" >&2;}
54598 { (exit 1); exit 1; }; }
54601 done` || { (exit 1); exit 1; }
54602 # Remove the trailing spaces.
54603 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
54607 # Transform confdefs.h into two sed scripts, `conftest.defines' and
54608 # `conftest.undefs', that substitutes the proper values into
54609 # config.h.in to produce config.h. The first handles `#define'
54610 # templates, and the second `#undef' templates.
54611 # And first: Protect against being on the right side of a sed subst in
54612 # config.status. Protect against being in an unquoted here document
54613 # in config.status.
54614 rm -f conftest.defines conftest.undefs
54615 # Using a here document instead of a string reduces the quoting nightmare.
54616 # Putting comments in sed scripts is not portable.
54618 # `end' is used to avoid that the second main sed command (meant for
54619 # 0-ary CPP macros) applies to n-ary macro definitions.
54620 # See the Autoconf documentation for `clear'.
54621 cat >confdef2sed.sed <<\_ACEOF
54626 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
54628 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
54631 # If some macros were called several times there might be several times
54632 # the same #defines, which is useless. Nevertheless, we may not want to
54633 # sort them, since we want the *last* AC-DEFINE to be honored.
54634 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
54635 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
54636 rm -f confdef2sed.sed
54638 # This sed command replaces #undef with comments. This is necessary, for
54639 # example, in the case of _POSIX_SOURCE, which is predefined and required
54640 # on some systems where configure will not decide to define it.
54641 cat >>conftest.undefs <<\_ACEOF
54642 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
54645 # Break up conftest.defines because some shells have a limit on the size
54646 # of here documents, and old seds have small limits too (100 cmds).
54647 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
54648 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
54649 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
54650 echo ' :' >>$CONFIG_STATUS
54651 rm -f conftest.tail
54652 while grep . conftest.defines >/dev/null
54654 # Write a limited-size here document to $tmp/defines.sed.
54655 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
54656 # Speed up: don't consider the non `#define' lines.
54657 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
54658 # Work around the forget-to-reset-the-flag bug.
54659 echo 't clr' >>$CONFIG_STATUS
54660 echo ': clr' >>$CONFIG_STATUS
54661 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
54663 sed -f $tmp/defines.sed $tmp/in >$tmp/out
54665 mv $tmp/out $tmp/in
54667 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
54668 rm -f conftest.defines
54669 mv conftest.tail conftest.defines
54671 rm -f conftest.defines
54672 echo ' fi # grep' >>$CONFIG_STATUS
54673 echo >>$CONFIG_STATUS
54675 # Break up conftest.undefs because some shells have a limit on the size
54676 # of here documents, and old seds have small limits too (100 cmds).
54677 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
54678 rm -f conftest.tail
54679 while grep . conftest.undefs >/dev/null
54681 # Write a limited-size here document to $tmp/undefs.sed.
54682 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
54683 # Speed up: don't consider the non `#undef'
54684 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
54685 # Work around the forget-to-reset-the-flag bug.
54686 echo 't clr' >>$CONFIG_STATUS
54687 echo ': clr' >>$CONFIG_STATUS
54688 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
54690 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
54692 mv $tmp/out $tmp/in
54694 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
54695 rm -f conftest.undefs
54696 mv conftest.tail conftest.undefs
54698 rm -f conftest.undefs
54700 cat >>$CONFIG_STATUS <<\_ACEOF
54701 # Let's still pretend it is `configure' which instantiates (i.e., don't
54702 # use $as_me), people would be surprised to read:
54703 # /* config.h. Generated by config.status. */
54704 if test x"$ac_file" = x-; then
54705 echo "/* Generated by configure. */" >$tmp/config.h
54707 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
54709 cat $tmp/in >>$tmp/config.h
54711 if test x"$ac_file" != x-; then
54712 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
54713 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54714 echo "$as_me: $ac_file is unchanged" >&6;}
54716 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
54717 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54718 X"$ac_file" : 'X\(//\)[^/]' \| \
54719 X"$ac_file" : 'X\(//\)$' \| \
54720 X"$ac_file" : 'X\(/\)' \| \
54721 . : '\(.\)' 2>/dev/null ||
54723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54724 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54725 /^X\(\/\/\)$/{ s//\1/; q; }
54726 /^X\(\/\).*/{ s//\1/; q; }
54728 { if $as_mkdir_p; then
54733 while test ! -d "$as_dir"; do
54734 as_dirs="$as_dir $as_dirs"
54735 as_dir=`(dirname "$as_dir") 2>/dev/null ||
54736 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54737 X"$as_dir" : 'X\(//\)[^/]' \| \
54738 X"$as_dir" : 'X\(//\)$' \| \
54739 X"$as_dir" : 'X\(/\)' \| \
54740 . : '\(.\)' 2>/dev/null ||
54742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54743 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54744 /^X\(\/\/\)$/{ s//\1/; q; }
54745 /^X\(\/\).*/{ s//\1/; q; }
54748 test ! -n "$as_dirs" || mkdir $as_dirs
54749 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54750 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54751 { (exit 1); exit 1; }; }; }
54754 mv $tmp/config.h $ac_file
54758 rm -f $tmp/config.h
54760 # Compute $ac_file's index in $config_headers.
54762 for _am_header in $config_headers :; do
54763 case $_am_header in
54764 $ac_file | $ac_file:* )
54767 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
54770 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
54771 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54772 X$ac_file : 'X\(//\)[^/]' \| \
54773 X$ac_file : 'X\(//\)$' \| \
54774 X$ac_file : 'X\(/\)' \| \
54775 . : '\(.\)' 2>/dev/null ||
54777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54778 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54779 /^X\(\/\/\)$/{ s//\1/; q; }
54780 /^X\(\/\).*/{ s//\1/; q; }
54781 s/.*/./; q'`/stamp-h$_am_stamp_count
54785 cat >>$CONFIG_STATUS <<\_ACEOF
54787 { (exit 0); exit 0; }
54789 chmod +x $CONFIG_STATUS
54790 ac_clean_files=$ac_clean_files_save
54793 # configure is writing to config.log, and then calls config.status.
54794 # config.status does its own redirection, appending to config.log.
54795 # Unfortunately, on DOS this fails, as config.log is still kept open
54796 # by configure, so config.status won't be able to write to it; its
54797 # output is simply discarded. So we exec the FD to /dev/null,
54798 # effectively closing config.log, so it can be properly (re)opened and
54799 # appended to by config.status. When coming back to configure, we
54800 # need to make the FD available again.
54801 if test "$no_create" != yes; then
54803 ac_config_status_args=
54804 test "$silent" = yes &&
54805 ac_config_status_args="$ac_config_status_args --quiet"
54807 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54809 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54810 # would make configure fail if this is the last instruction.
54811 $ac_cs_success || { (exit 1); exit 1; }
54816 cat > include/newversion.h.in <<EOF
54817 const char *heimdal_long_version = "@(#)\$Version: $PACKAGE_STRING by @USER@ on @HOST@ ($host) @DATE@ \$";
54818 const char *heimdal_version = "Heimdal 0.6.3";
54821 if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then
54822 echo "include/version.h is unchanged"
54823 rm -f include/newversion.h.in
54825 echo "creating include/version.h"
54826 User=${USER-${LOGNAME}}
54827 Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q`
54829 mv -f include/newversion.h.in include/version.h.in
54830 sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h