2 # From configure.in Revision: 1.83.2.5.2.22 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 DUALCASE=1; export DUALCASE # for MKS sh
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 s,^['$as_cr_digits']*\n,,
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
183 # Exit status is that of the last command.
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 if expr a : '\(a\)' >/dev/null 2>&1; then
201 rm -f conf$$ conf$$.exe conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
212 elif ln conf$$.file conf$$ 2>/dev/null; then
217 rm -f conf$$ conf$$.exe conf$$.file
219 if mkdir -p . 2>/dev/null; then
222 test -d ./-p && rmdir ./-p
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # We need space, tab and new line, in precisely that order.
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
257 if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
260 elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264 # Yippee, $echo works!
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
271 if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290 echo_test_string="`eval $cmd`" &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
307 # So, first we look for a working echo in the user's PATH.
309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310 for dir in $PATH /usr/ucb; do
312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
360 # maybe with a smaller string...
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 # Oops. We lost completely, so just stick with echo.
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
395 tagnames=${tagnames+${tagnames},}CXX
397 tagnames=${tagnames+${tagnames},}F77
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
415 SHELL=${CONFIG_SHELL-/bin/sh}
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete. It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
422 # Identity of this package.
429 ac_unique_file="resolv/herror.c"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
434 # include <sys/types.h>
437 # include <sys/stat.h>
448 # if !STDC_HEADERS && HAVE_MEMORY_H
454 # include <strings.h>
457 # include <inttypes.h>
467 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STD_CINCLUDES STD_CDEFINES STD_CWARNINGS CCOPT AR ARFLAGS LN ETAGS PERL CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP ISC_PLATFORM_NEEDSYSSELECTH WANT_IRS_GR WANT_IRS_GR_OBJS WANT_IRS_PW WANT_IRS_PW_OBJS WANT_IRS_NIS WANT_IRS_NIS_OBJS WANT_IRS_NISGR_OBJS WANT_IRS_NISPW_OBJS WANT_IRS_DBPW_OBJS ALWAYS_DEFINES DO_PTHREADS WANT_IRS_THREADSGR_OBJS WANT_IRS_THREADSPW_OBJS WANT_IRS_THREADS_OBJS WANT_THREADS_OBJS USE_IFNAMELINKID ISC_THREAD_DIR DAEMON_OBJS NEED_DAEMON STRSEP_OBJS NEED_STRSEP NEED_STRERROR MKDEPCC MKDEPCFLAGS MKDEPPROG IRIX_DNSSEC_WARNINGS_HACK purify_path PURIFY LN_S ECHO ac_ct_AR STRIP ac_ct_STRIP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL O A SA LIBTOOL_MKDEP_SED LIBTOOL_MODE_COMPILE LIBTOOL_MODE_INSTALL LIBTOOL_MODE_LINK HAS_INET6_STRUCTS ISC_PLATFORM_NEEDNETINETIN6H ISC_PLATFORM_NEEDNETINET6IN6H HAS_IN_ADDR6 NEED_IN6ADDR_ANY ISC_PLATFORM_HAVEIN6PKTINFO ISC_PLATFORM_FIXIN6ISADDR ISC_IPV6_H ISC_IPV6_O ISC_ISCIPV6_O ISC_IPV6_C HAVE_SIN6_SCOPE_ID HAVE_SOCKADDR_STORAGE ISC_PLATFORM_NEEDNTOP ISC_PLATFORM_NEEDPTON ISC_PLATFORM_NEEDATON HAVE_SA_LEN HAVE_MINIMUM_IFREQ BSD_COMP SOLARIS_BITTYPES USE_FIONBIO_IOCTL PORT_NONBLOCK PORT_DIR USE_POLL HAVE_MD5 SOLARIS2 PORT_INCLUDE ISC_PLATFORM_MSGHDRFLAVOR ISC_PLATFORM_NEEDPORTT ISC_LWRES_ENDHOSTENTINT ISC_LWRES_SETNETENTINT ISC_LWRES_ENDNETENTINT ISC_LWRES_GETHOSTBYADDRVOID ISC_LWRES_NEEDHERRNO ISC_LWRES_GETIPNODEPROTO ISC_LWRES_GETADDRINFOPROTO ISC_LWRES_GETNAMEINFOPROTO NEED_PSELECT NEED_GETTIMEOFDAY HAVE_STRNDUP ISC_PLATFORM_NEEDSTRSEP ISC_PLATFORM_NEEDVSNPRINTF ISC_EXTRA_OBJS ISC_EXTRA_SRCS USE_SYSERROR_LIST ISC_PLATFORM_QUADFORMAT ISC_SOCKLEN_T GETGROUPLIST_ARGS NET_R_ARGS NET_R_BAD NET_R_COPY NET_R_COPY_ARGS NET_R_OK NET_R_SETANSWER NET_R_RETURN GETNETBYADDR_ADDR_T NETENT_DATA NET_R_ENT_ARGS NET_R_SET_RESULT NET_R_SET_RETURN NET_R_END_RESULT NET_R_END_RETURN GROUP_R_ARGS GROUP_R_BAD GROUP_R_OK GROUP_R_RETURN GROUP_R_END_RESULT GROUP_R_END_RETURN GROUP_R_ENT_ARGS GROUP_R_SET_RESULT GROUP_R_SET_RETURN HOST_R_ARGS HOST_R_BAD HOST_R_COPY HOST_R_COPY_ARGS HOST_R_ERRNO HOST_R_OK HOST_R_RETURN HOST_R_SETANSWER HOSTENT_DATA HOST_R_END_RESULT HOST_R_END_RETURN HOST_R_ENT_ARGS HOST_R_SET_RESULT HOST_R_SET_RETURN SETPWENT_VOID SETGRENT_VOID NGR_R_ARGS NGR_R_BAD NGR_R_COPY NGR_R_COPY_ARGS NGR_R_OK NGR_R_RETURN NGR_R_PRIVATE NGR_R_END_RESULT NGR_R_END_RETURN NGR_R_ENT_ARGS NGR_R_SET_RESULT NGR_R_SET_RETURN PROTO_R_ARGS PROTO_R_BAD PROTO_R_COPY PROTO_R_COPY_ARGS PROTO_R_OK PROTO_R_SETANSWER PROTO_R_RETURN PROTO_R_END_RESULT PROTO_R_END_RETURN PROTO_R_ENT_ARGS PROTO_R_SET_RESULT PROTO_R_SET_RETURN PASS_R_ARGS PASS_R_BAD PASS_R_COPY PASS_R_COPY_ARGS PASS_R_OK PASS_R_RETURN PASS_R_END_RESULT PASS_R_END_RETURN PASS_R_ENT_ARGS PASS_R_SET_RESULT PASS_R_SET_RETURN SERV_R_ARGS SERV_R_BAD SERV_R_COPY SERV_R_COPY_ARGS SERV_R_OK SERV_R_SETANSWER SERV_R_RETURN SERV_R_END_RESULT SERV_R_END_RETURN SERV_R_ENT_ARGS SERV_R_SET_RESULT SERV_R_SET_RETURN SETNETGRENT_ARGS INNETGR_ARGS BIND9_TOP_BUILDDIR BIND9_VERSION LIBOBJS LTLIBOBJS'
468 ac_subst_files='BIND9_INCLUDES BIND9_MAKE_RULES LIBBIND_API'
470 # Initialize some variables set by options.
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
482 program_transform_name=s,x,x,
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520 # Accept the important Cygnus configure options, so we can diagnose typos.
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
542 cache_file=config.cache ;;
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 datadir=$ac_optarg ;;
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 eval "enable_$ac_feature='$ac_optarg'" ;;
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
585 -help | --help | --hel | --he | -h)
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
609 -libdir | --libdir | --libdi | --libd)
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636 # Obsolete; use --without-fp.
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 sbindir=$ac_optarg ;;
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 sharedstatedir=$ac_optarg ;;
713 -site | --site | --sit)
715 -site=* | --site=* | --sit=*)
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 -version | --version | --versio | --versi | --vers | -V)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 eval "with_$ac_package='$ac_optarg'" ;;
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
764 # Obsolete; use --with-x.
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807 if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
816 eval ac_val=$`echo $ac_var`
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
828 eval ac_val=$`echo $ac_var`
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857 test "$silent" = yes && exec 6>/dev/null
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
877 if test ! -r $srcdir/$ac_unique_file; then
881 ac_srcdir_defaulted=no
883 if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
950 # Report the --help message.
952 if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
956 \`configure' configures this package to adapt to many kinds of systems.
958 Usage: $0 [OPTION]... [VAR=VALUE]...
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE. See below for descriptions of some of the useful variables.
963 Defaults for the options are specified in brackets.
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
979 Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
990 For better control, use the options below.
992 Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1010 --build=BUILD configure for building on BUILD [guessed]
1011 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1015 if test -n "$ac_init_help"; then
1020 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1021 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1022 --enable-threads enable multithreading
1023 --enable-shared[=PKGS]
1024 build shared libraries [default=yes]
1025 --enable-static[=PKGS]
1026 build static libraries [default=yes]
1027 --enable-fast-install[=PKGS]
1028 optimize for fast installation [default=yes]
1029 --disable-libtool-lock avoid locking (might break parallel builds)
1030 --enable-ipv6 use IPv6 default=autodetect
1033 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1034 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1035 --with-irs-gr Build ....
1036 --with-irs-pw Build ....
1037 --with-irs-nis Build ....
1038 --with-randomdev=PATH Specify path for random device
1039 --with-ptl2 on NetBSD, use the ptl2 thread library (experimental)
1040 --with-purify=PATH use Rational purify
1041 --with-libtool use GNU libtool (following indented options supported)
1042 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1043 --with-pic try to use only PIC/non-PIC objects [default=use
1046 include additional configurations [automatic]
1047 --with-kame=PATH use Kame IPv6 default path /usr/local/v6
1049 Some influential environment variables:
1050 CC C compiler command
1051 CFLAGS C compiler flags
1052 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1053 nonstandard directory <lib dir>
1054 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1055 headers in a nonstandard directory <include dir>
1057 CXX C++ compiler command
1058 CXXFLAGS C++ compiler flags
1059 CXXCPP C++ preprocessor
1060 F77 Fortran 77 compiler command
1061 FFLAGS Fortran 77 compiler flags
1063 Use these variables to override the choices made by `configure' or to help
1064 it to find libraries and programs with nonstandard names/locations.
1069 if test "$ac_init_help" = "recursive"; then
1070 # If there are subdirs, report their specific --help.
1072 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1073 test -d $ac_dir || continue
1076 if test "$ac_dir" != .; then
1077 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1078 # A "../" for each directory in $ac_dir_suffix.
1079 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1081 ac_dir_suffix= ac_top_builddir=
1085 .) # No --srcdir option. We are building in place.
1087 if test -z "$ac_top_builddir"; then
1090 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1092 [\\/]* | ?:[\\/]* ) # Absolute path.
1093 ac_srcdir=$srcdir$ac_dir_suffix;
1094 ac_top_srcdir=$srcdir ;;
1096 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1097 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1100 # Do not use `cd foo && pwd` to compute absolute paths, because
1101 # the directories may not exist.
1103 .) ac_abs_builddir="$ac_dir";;
1106 .) ac_abs_builddir=`pwd`;;
1107 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1108 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1111 case $ac_abs_builddir in
1112 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1114 case ${ac_top_builddir}. in
1115 .) ac_abs_top_builddir=$ac_abs_builddir;;
1116 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1117 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1120 case $ac_abs_builddir in
1121 .) ac_abs_srcdir=$ac_srcdir;;
1124 .) ac_abs_srcdir=$ac_abs_builddir;;
1125 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1126 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1132 case $ac_top_srcdir in
1133 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1134 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1135 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1140 # Check for guested configure; otherwise get Cygnus style configure.
1141 if test -f $ac_srcdir/configure.gnu; then
1143 $SHELL $ac_srcdir/configure.gnu --help=recursive
1144 elif test -f $ac_srcdir/configure; then
1146 $SHELL $ac_srcdir/configure --help=recursive
1147 elif test -f $ac_srcdir/configure.ac ||
1148 test -f $ac_srcdir/configure.in; then
1150 $ac_configure --help
1152 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1158 test -n "$ac_init_help" && exit 0
1159 if $ac_init_version; then
1162 Copyright (C) 2003 Free Software Foundation, Inc.
1163 This configure script is free software; the Free Software Foundation
1164 gives unlimited permission to copy, distribute and modify it.
1170 This file contains any messages produced by compilers while
1171 running configure, to aid debugging if configure makes a mistake.
1173 It was created by $as_me, which was
1174 generated by GNU Autoconf 2.59. Invocation command line was
1185 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1186 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1187 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1188 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1189 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1191 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1192 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1194 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1195 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1196 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1197 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1198 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1199 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1200 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1208 test -z "$as_dir" && as_dir=.
1209 echo "PATH: $as_dir"
1224 # Keep a trace of the command line.
1225 # Strip out --no-create and --no-recursion so they do not pile up.
1226 # Strip out --silent because we don't want to record it for future runs.
1227 # Also quote any args containing shell meta-characters.
1228 # Make two passes to allow for proper duplicate-argument suppression.
1233 ac_must_keep_next=false
1239 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241 | -silent | --silent | --silen | --sile | --sil)
1243 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1244 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1247 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1249 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1250 if test $ac_must_keep_next = true; then
1251 ac_must_keep_next=false # Got value, back to normal.
1254 *=* | --config-cache | -C | -disable-* | --disable-* \
1255 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1256 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1257 | -with-* | --with-* | -without-* | --without-* | --x)
1258 case "$ac_configure_args0 " in
1259 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1262 -* ) ac_must_keep_next=true ;;
1265 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1266 # Get rid of the leading space.
1272 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1273 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1275 # When interrupted or exit'd, cleanup temporary files, and complete
1276 # config.log. We remove comments because anyway the quotes in there
1277 # would cause problems or look ugly.
1278 # WARNING: Be sure not to use single quotes in there, as some shells,
1279 # such as our DU 5.0 friend, will then `close' the trap.
1280 trap 'exit_status=$?
1281 # Save into config.log some information that might help in debugging.
1286 ## ---------------- ##
1287 ## Cache variables. ##
1288 ## ---------------- ##
1291 # The following way of writing the cache mishandles newlines in values,
1294 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1297 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1302 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1309 ## ----------------- ##
1310 ## Output variables. ##
1311 ## ----------------- ##
1314 for ac_var in $ac_subst_vars
1316 eval ac_val=$`echo $ac_var`
1317 echo "$ac_var='"'"'$ac_val'"'"'"
1321 if test -n "$ac_subst_files"; then
1328 for ac_var in $ac_subst_files
1330 eval ac_val=$`echo $ac_var`
1331 echo "$ac_var='"'"'$ac_val'"'"'"
1336 if test -s confdefs.h; then
1343 sed "/^$/d" confdefs.h | sort
1346 test "$ac_signal" != 0 &&
1347 echo "$as_me: caught signal $ac_signal"
1348 echo "$as_me: exit $exit_status"
1350 rm -f core *.core &&
1351 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1354 for ac_signal in 1 2 13 15; do
1355 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1359 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1360 rm -rf conftest* confdefs.h
1361 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1364 # Predefined preprocessor variables.
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_NAME "$PACKAGE_NAME"
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_STRING "$PACKAGE_STRING"
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1391 # Let the site file select an alternate cache file if it wants to.
1392 # Prefer explicitly selected file to automatically selected ones.
1393 if test -z "$CONFIG_SITE"; then
1394 if test "x$prefix" != xNONE; then
1395 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1397 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1400 for ac_site_file in $CONFIG_SITE; do
1401 if test -r "$ac_site_file"; then
1402 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1403 echo "$as_me: loading site script $ac_site_file" >&6;}
1404 sed 's/^/| /' "$ac_site_file" >&5
1409 if test -r "$cache_file"; then
1410 # Some versions of bash will fail to source /dev/null (special
1411 # files actually), so we avoid doing that.
1412 if test -f "$cache_file"; then
1413 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1414 echo "$as_me: loading cache $cache_file" >&6;}
1416 [\\/]* | ?:[\\/]* ) . $cache_file;;
1417 *) . ./$cache_file;;
1421 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1422 echo "$as_me: creating cache $cache_file" >&6;}
1426 # Check that the precious variables saved in the cache have kept the same
1428 ac_cache_corrupted=false
1429 for ac_var in `(set) 2>&1 |
1430 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1431 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1432 eval ac_new_set=\$ac_env_${ac_var}_set
1433 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1434 eval ac_new_val="\$ac_env_${ac_var}_value"
1435 case $ac_old_set,$ac_new_set in
1437 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1438 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1439 ac_cache_corrupted=: ;;
1441 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1442 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1443 ac_cache_corrupted=: ;;
1446 if test "x$ac_old_val" != "x$ac_new_val"; then
1447 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1448 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1449 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1450 echo "$as_me: former value: $ac_old_val" >&2;}
1451 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1452 echo "$as_me: current value: $ac_new_val" >&2;}
1453 ac_cache_corrupted=:
1456 # Pass precious variables to config.status.
1457 if test "$ac_new_set" = set; then
1459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1460 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1461 *) ac_arg=$ac_var=$ac_new_val ;;
1463 case " $ac_configure_args " in
1464 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1465 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1469 if $ac_cache_corrupted; then
1470 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1471 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1472 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1473 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1474 { (exit 1); exit 1; }; }
1478 ac_cpp='$CPP $CPPFLAGS'
1479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1503 ac_config_headers="$ac_config_headers config.h"
1507 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1508 if test -f $ac_dir/install-sh; then
1510 ac_install_sh="$ac_aux_dir/install-sh -c"
1512 elif test -f $ac_dir/install.sh; then
1514 ac_install_sh="$ac_aux_dir/install.sh -c"
1516 elif test -f $ac_dir/shtool; then
1518 ac_install_sh="$ac_aux_dir/shtool install -c"
1522 if test -z "$ac_aux_dir"; then
1523 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1524 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1525 { (exit 1); exit 1; }; }
1527 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1528 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1529 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1531 # Make sure we can run config.sub.
1532 $ac_config_sub sun4 >/dev/null 2>&1 ||
1533 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1534 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1535 { (exit 1); exit 1; }; }
1537 echo "$as_me:$LINENO: checking build system type" >&5
1538 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1539 if test "${ac_cv_build+set}" = set; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
1542 ac_cv_build_alias=$build_alias
1543 test -z "$ac_cv_build_alias" &&
1544 ac_cv_build_alias=`$ac_config_guess`
1545 test -z "$ac_cv_build_alias" &&
1546 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1547 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1548 { (exit 1); exit 1; }; }
1549 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1550 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1551 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1552 { (exit 1); exit 1; }; }
1555 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1556 echo "${ECHO_T}$ac_cv_build" >&6
1558 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1559 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1560 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1563 echo "$as_me:$LINENO: checking host system type" >&5
1564 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1565 if test "${ac_cv_host+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1568 ac_cv_host_alias=$host_alias
1569 test -z "$ac_cv_host_alias" &&
1570 ac_cv_host_alias=$ac_cv_build_alias
1571 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1572 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1573 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1574 { (exit 1); exit 1; }; }
1577 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1578 echo "${ECHO_T}$ac_cv_host" >&6
1580 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1586 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1587 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1588 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1589 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1590 echo $ECHO_N "(cached) $ECHO_C" >&6
1592 cat >conftest.make <<\_ACEOF
1594 @echo 'ac_maketemp="$(MAKE)"'
1596 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1597 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1598 if test -n "$ac_maketemp"; then
1599 eval ac_cv_prog_make_${ac_make}_set=yes
1601 eval ac_cv_prog_make_${ac_make}_set=no
1605 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1606 echo "$as_me:$LINENO: result: yes" >&5
1607 echo "${ECHO_T}yes" >&6
1610 echo "$as_me:$LINENO: result: no" >&5
1611 echo "${ECHO_T}no" >&6
1612 SET_MAKE="MAKE=${MAKE-make}"
1615 if test -n "$ac_tool_prefix"; then
1616 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1617 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1618 echo "$as_me:$LINENO: checking for $ac_word" >&5
1619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1620 if test "${ac_cv_prog_RANLIB+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 if test -n "$RANLIB"; then
1624 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630 test -z "$as_dir" && as_dir=.
1631 for ac_exec_ext in '' $ac_executable_extensions; do
1632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1633 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1642 RANLIB=$ac_cv_prog_RANLIB
1643 if test -n "$RANLIB"; then
1644 echo "$as_me:$LINENO: result: $RANLIB" >&5
1645 echo "${ECHO_T}$RANLIB" >&6
1647 echo "$as_me:$LINENO: result: no" >&5
1648 echo "${ECHO_T}no" >&6
1652 if test -z "$ac_cv_prog_RANLIB"; then
1653 ac_ct_RANLIB=$RANLIB
1654 # Extract the first word of "ranlib", so it can be a program name with args.
1655 set dummy ranlib; ac_word=$2
1656 echo "$as_me:$LINENO: checking for $ac_word" >&5
1657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1658 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1659 echo $ECHO_N "(cached) $ECHO_C" >&6
1661 if test -n "$ac_ct_RANLIB"; then
1662 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668 test -z "$as_dir" && as_dir=.
1669 for ac_exec_ext in '' $ac_executable_extensions; do
1670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1671 ac_cv_prog_ac_ct_RANLIB="ranlib"
1672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1678 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1681 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1682 if test -n "$ac_ct_RANLIB"; then
1683 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1684 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1686 echo "$as_me:$LINENO: result: no" >&5
1687 echo "${ECHO_T}no" >&6
1690 RANLIB=$ac_ct_RANLIB
1692 RANLIB="$ac_cv_prog_RANLIB"
1695 # Find a good install program. We prefer a C program (faster),
1696 # so one script is as good as another. But avoid the broken or
1697 # incompatible versions:
1698 # SysV /etc/install, /usr/sbin/install
1699 # SunOS /usr/etc/install
1700 # IRIX /sbin/install
1702 # AmigaOS /C/install, which installs bootblocks on floppy discs
1703 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1704 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1705 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1706 # OS/2's system install, which has a completely different semantic
1707 # ./install, which can be erroneously created by make from ./install.sh.
1708 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1709 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1710 if test -z "$INSTALL"; then
1711 if test "${ac_cv_path_install+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718 test -z "$as_dir" && as_dir=.
1719 # Account for people who put trailing slashes in PATH elements.
1721 ./ | .// | /cC/* | \
1722 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1723 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1726 # OSF1 and SCO ODT 3.0 have their own names for install.
1727 # Don't use installbsd from OSF since it installs stuff as root
1729 for ac_prog in ginstall scoinst install; do
1730 for ac_exec_ext in '' $ac_executable_extensions; do
1731 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1732 if test $ac_prog = install &&
1733 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1734 # AIX install. It has an incompatible calling convention.
1736 elif test $ac_prog = install &&
1737 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1738 # program-specific install script used by HP pwplus--don't use.
1741 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1753 if test "${ac_cv_path_install+set}" = set; then
1754 INSTALL=$ac_cv_path_install
1756 # As a last resort, use the slow shell script. We don't cache a
1757 # path for INSTALL within a source directory, because that will
1758 # break other packages using the cache if that directory is
1759 # removed, or if the path is relative.
1760 INSTALL=$ac_install_sh
1763 echo "$as_me:$LINENO: result: $INSTALL" >&5
1764 echo "${ECHO_T}$INSTALL" >&6
1766 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1767 # It thinks the first close brace ends the variable substitution.
1768 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1770 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1772 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1780 # Extract the first word of "ar", so it can be a program name with args.
1781 set dummy ar; ac_word=$2
1782 echo "$as_me:$LINENO: checking for $ac_word" >&5
1783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1784 if test "${ac_cv_path_AR+set}" = set; then
1785 echo $ECHO_N "(cached) $ECHO_C" >&6
1789 ac_cv_path_AR="$AR" # Let the user override the test with a path.
1792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1796 test -z "$as_dir" && as_dir=.
1797 for ac_exec_ext in '' $ac_executable_extensions; do
1798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1799 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
1800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1811 if test -n "$AR"; then
1812 echo "$as_me:$LINENO: result: $AR" >&5
1813 echo "${ECHO_T}$AR" >&6
1815 echo "$as_me:$LINENO: result: no" >&5
1816 echo "${ECHO_T}no" >&6
1823 # The POSIX ln(1) program. Non-POSIX systems may substitute
1824 # "copy" or something.
1830 { { echo "$as_me:$LINENO: error:
1831 ar program not found. Please fix your PATH to include the directory in
1832 which ar resides, or set AR in the environment with the full path to ar.
1834 echo "$as_me: error:
1835 ar program not found. Please fix your PATH to include the directory in
1836 which ar resides, or set AR in the environment with the full path to ar.
1838 { (exit 1); exit 1; }; }
1846 for ac_prog in etags emacs-etags
1848 # Extract the first word of "$ac_prog", so it can be a program name with args.
1849 set dummy $ac_prog; ac_word=$2
1850 echo "$as_me:$LINENO: checking for $ac_word" >&5
1851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852 if test "${ac_cv_path_ETAGS+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1857 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864 test -z "$as_dir" && as_dir=.
1865 for ac_exec_ext in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877 ETAGS=$ac_cv_path_ETAGS
1879 if test -n "$ETAGS"; then
1880 echo "$as_me:$LINENO: result: $ETAGS" >&5
1881 echo "${ECHO_T}$ETAGS" >&6
1883 echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1887 test -n "$ETAGS" && break
1892 # Some systems, e.g. RH7, have the Exuberant Ctags etags instead of
1893 # GNU emacs etags, and it requires the -L flag.
1895 if test "X$ETAGS" != "X"; then
1896 echo "$as_me:$LINENO: checking for Exuberant Ctags etags" >&5
1897 echo $ECHO_N "checking for Exuberant Ctags etags... $ECHO_C" >&6
1898 if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then
1899 echo "$as_me:$LINENO: result: yes" >&5
1900 echo "${ECHO_T}yes" >&6
1903 echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6
1910 # Perl is optional; it is used only by some of the system test scripts.
1912 for ac_prog in perl5 perl
1914 # Extract the first word of "$ac_prog", so it can be a program name with args.
1915 set dummy $ac_prog; ac_word=$2
1916 echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918 if test "${ac_cv_path_PERL+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 test -z "$as_dir" && as_dir=.
1931 for ac_exec_ext in '' $ac_executable_extensions; do
1932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1933 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
1934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1943 PERL=$ac_cv_path_PERL
1945 if test -n "$PERL"; then
1946 echo "$as_me:$LINENO: result: $PERL" >&5
1947 echo "${ECHO_T}$PERL" >&6
1949 echo "$as_me:$LINENO: result: no" >&5
1950 echo "${ECHO_T}no" >&6
1953 test -n "$PERL" && break
1959 # isc/list.h and others clash with the rest of BIND 9
1961 case "$includedir" in
1962 '${prefix}/include')
1963 includedir='${prefix}/bind/include'
1968 libdir='${prefix}/bind/lib'
1973 # Make sure INSTALL uses an absolute path, else it will be wrong in all
1974 # Makefiles, since they use make/rules.in and INSTALL will be adjusted by
1975 # configure based on the location of the file where it is substituted.
1976 # Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
1977 # subdirectory of install-sh, This relative path will be wrong for all
1978 # directories more than one level down from install-sh.
1985 # Not all systems have dirname.
1988 ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
1991 ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
1992 test "$ac_dir" = "$ac_prog" && ac_dir=.
1993 test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
1994 INSTALL="$ac_dir/$ac_prog"
1999 # On these hosts, we really want to use cc, not gcc, even if it is
2000 # found. The gcc that these systems have will not correctly handle
2003 # However, if the user sets $CC to be something, let that override
2006 if test "X$CC" = "X" ; then
2012 # Use Sun's cc if it is available, but watch
2013 # out for /usr/ucb/cc; it will never be the right
2016 # If setting CC here fails, the AC_PROG_CC done
2017 # below might still find gcc.
2018 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2019 for ac_dir in $PATH; do
2020 test -z "$ac_dir" && ac_dir=.
2026 if test -f "$ac_dir/cc"; then
2046 ac_cpp='$CPP $CPPFLAGS'
2047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2050 if test -n "$ac_tool_prefix"; then
2051 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2052 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2053 echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2055 if test "${ac_cv_prog_CC+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2058 if test -n "$CC"; then
2059 ac_cv_prog_CC="$CC" # Let the user override the test.
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 test -z "$as_dir" && as_dir=.
2066 for ac_exec_ext in '' $ac_executable_extensions; do
2067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2068 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078 if test -n "$CC"; then
2079 echo "$as_me:$LINENO: result: $CC" >&5
2080 echo "${ECHO_T}$CC" >&6
2082 echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6
2087 if test -z "$ac_cv_prog_CC"; then
2089 # Extract the first word of "gcc", so it can be a program name with args.
2090 set dummy gcc; ac_word=$2
2091 echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2093 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 if test -n "$ac_ct_CC"; then
2097 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 test -z "$as_dir" && as_dir=.
2104 for ac_exec_ext in '' $ac_executable_extensions; do
2105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2106 ac_cv_prog_ac_ct_CC="gcc"
2107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2116 if test -n "$ac_ct_CC"; then
2117 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2118 echo "${ECHO_T}$ac_ct_CC" >&6
2120 echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6
2129 if test -z "$CC"; then
2130 if test -n "$ac_tool_prefix"; then
2131 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2132 set dummy ${ac_tool_prefix}cc; ac_word=$2
2133 echo "$as_me:$LINENO: checking for $ac_word" >&5
2134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2135 if test "${ac_cv_prog_CC+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2138 if test -n "$CC"; then
2139 ac_cv_prog_CC="$CC" # Let the user override the test.
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 test -z "$as_dir" && as_dir=.
2146 for ac_exec_ext in '' $ac_executable_extensions; do
2147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2148 ac_cv_prog_CC="${ac_tool_prefix}cc"
2149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158 if test -n "$CC"; then
2159 echo "$as_me:$LINENO: result: $CC" >&5
2160 echo "${ECHO_T}$CC" >&6
2162 echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6
2167 if test -z "$ac_cv_prog_CC"; then
2169 # Extract the first word of "cc", so it can be a program name with args.
2170 set dummy cc; ac_word=$2
2171 echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2173 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 if test -n "$ac_ct_CC"; then
2177 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183 test -z "$as_dir" && as_dir=.
2184 for ac_exec_ext in '' $ac_executable_extensions; do
2185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2186 ac_cv_prog_ac_ct_CC="cc"
2187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2196 if test -n "$ac_ct_CC"; then
2197 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2198 echo "${ECHO_T}$ac_ct_CC" >&6
2200 echo "$as_me:$LINENO: result: no" >&5
2201 echo "${ECHO_T}no" >&6
2210 if test -z "$CC"; then
2211 # Extract the first word of "cc", so it can be a program name with args.
2212 set dummy cc; ac_word=$2
2213 echo "$as_me:$LINENO: checking for $ac_word" >&5
2214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2215 if test "${ac_cv_prog_CC+set}" = set; then
2216 echo $ECHO_N "(cached) $ECHO_C" >&6
2218 if test -n "$CC"; then
2219 ac_cv_prog_CC="$CC" # Let the user override the test.
2222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 test -z "$as_dir" && as_dir=.
2227 for ac_exec_ext in '' $ac_executable_extensions; do
2228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2229 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2230 ac_prog_rejected=yes
2234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2240 if test $ac_prog_rejected = yes; then
2241 # We found a bogon in the path, so make sure we never use it.
2242 set dummy $ac_cv_prog_CC
2244 if test $# != 0; then
2245 # We chose a different compiler from the bogus one.
2246 # However, it has the same basename, so the bogon will be chosen
2247 # first if we set CC to just the basename; use the full file name.
2249 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2255 if test -n "$CC"; then
2256 echo "$as_me:$LINENO: result: $CC" >&5
2257 echo "${ECHO_T}$CC" >&6
2259 echo "$as_me:$LINENO: result: no" >&5
2260 echo "${ECHO_T}no" >&6
2264 if test -z "$CC"; then
2265 if test -n "$ac_tool_prefix"; then
2268 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2269 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2270 echo "$as_me:$LINENO: checking for $ac_word" >&5
2271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2272 if test "${ac_cv_prog_CC+set}" = set; then
2273 echo $ECHO_N "(cached) $ECHO_C" >&6
2275 if test -n "$CC"; then
2276 ac_cv_prog_CC="$CC" # Let the user override the test.
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282 test -z "$as_dir" && as_dir=.
2283 for ac_exec_ext in '' $ac_executable_extensions; do
2284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2285 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2295 if test -n "$CC"; then
2296 echo "$as_me:$LINENO: result: $CC" >&5
2297 echo "${ECHO_T}$CC" >&6
2299 echo "$as_me:$LINENO: result: no" >&5
2300 echo "${ECHO_T}no" >&6
2303 test -n "$CC" && break
2306 if test -z "$CC"; then
2310 # Extract the first word of "$ac_prog", so it can be a program name with args.
2311 set dummy $ac_prog; ac_word=$2
2312 echo "$as_me:$LINENO: checking for $ac_word" >&5
2313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2317 if test -n "$ac_ct_CC"; then
2318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 test -z "$as_dir" && as_dir=.
2325 for ac_exec_ext in '' $ac_executable_extensions; do
2326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2327 ac_cv_prog_ac_ct_CC="$ac_prog"
2328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2337 if test -n "$ac_ct_CC"; then
2338 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2339 echo "${ECHO_T}$ac_ct_CC" >&6
2341 echo "$as_me:$LINENO: result: no" >&5
2342 echo "${ECHO_T}no" >&6
2345 test -n "$ac_ct_CC" && break
2354 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2355 See \`config.log' for more details." >&5
2356 echo "$as_me: error: no acceptable C compiler found in \$PATH
2357 See \`config.log' for more details." >&2;}
2358 { (exit 1); exit 1; }; }
2360 # Provide some information about the compiler.
2361 echo "$as_me:$LINENO:" \
2362 "checking for C compiler version" >&5
2363 ac_compiler=`set X $ac_compile; echo $2`
2364 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2365 (eval $ac_compiler --version </dev/null >&5) 2>&5
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }
2369 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2370 (eval $ac_compiler -v </dev/null >&5) 2>&5
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }
2374 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2375 (eval $ac_compiler -V </dev/null >&5) 2>&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }
2380 cat >conftest.$ac_ext <<_ACEOF
2383 cat confdefs.h >>conftest.$ac_ext
2384 cat >>conftest.$ac_ext <<_ACEOF
2385 /* end confdefs.h. */
2395 ac_clean_files_save=$ac_clean_files
2396 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2397 # Try to create an executable without -o first, disregard a.out.
2398 # It will help us diagnose broken compilers, and finding out an intuition
2400 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2401 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2402 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2403 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2404 (eval $ac_link_default) 2>&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; then
2408 # Find the output, starting from the most likely. This scheme is
2409 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2412 # Be careful to initialize this variable, since it used to be cached.
2413 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2415 # b.out is created by i960 compilers.
2416 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2418 test -f "$ac_file" || continue
2420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2423 # This is the source file.
2426 # We found the default executable, but exeext='' is most
2430 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2431 # FIXME: I believe we export ac_cv_exeext for Libtool,
2432 # but it would be cool to find out if it's true. Does anybody
2433 # maintain Libtool? --akim.
2441 echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2444 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2445 See \`config.log' for more details." >&5
2446 echo "$as_me: error: C compiler cannot create executables
2447 See \`config.log' for more details." >&2;}
2448 { (exit 77); exit 77; }; }
2451 ac_exeext=$ac_cv_exeext
2452 echo "$as_me:$LINENO: result: $ac_file" >&5
2453 echo "${ECHO_T}$ac_file" >&6
2455 # Check the compiler produces executables we can run. If not, either
2456 # the compiler is broken, or we cross compile.
2457 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2458 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2459 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2460 # If not cross compiling, check that we can run a simple program.
2461 if test "$cross_compiling" != yes; then
2462 if { ac_try='./$ac_file'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; }; then
2470 if test "$cross_compiling" = maybe; then
2473 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2474 If you meant to cross compile, use \`--host'.
2475 See \`config.log' for more details." >&5
2476 echo "$as_me: error: cannot run C compiled programs.
2477 If you meant to cross compile, use \`--host'.
2478 See \`config.log' for more details." >&2;}
2479 { (exit 1); exit 1; }; }
2483 echo "$as_me:$LINENO: result: yes" >&5
2484 echo "${ECHO_T}yes" >&6
2486 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2487 ac_clean_files=$ac_clean_files_save
2488 # Check the compiler produces executables we can run. If not, either
2489 # the compiler is broken, or we cross compile.
2490 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2491 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2492 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2493 echo "${ECHO_T}$cross_compiling" >&6
2495 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2496 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2498 (eval $ac_link) 2>&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; then
2502 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2503 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2504 # work properly (i.e., refer to `conftest.exe'), while it won't with
2506 for ac_file in conftest.exe conftest conftest.*; do
2507 test -f "$ac_file" || continue
2509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2510 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2517 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2518 See \`config.log' for more details." >&5
2519 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2520 See \`config.log' for more details." >&2;}
2521 { (exit 1); exit 1; }; }
2524 rm -f conftest$ac_cv_exeext
2525 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2526 echo "${ECHO_T}$ac_cv_exeext" >&6
2528 rm -f conftest.$ac_ext
2529 EXEEXT=$ac_cv_exeext
2531 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2532 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2533 if test "${ac_cv_objext+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
2536 cat >conftest.$ac_ext <<_ACEOF
2539 cat confdefs.h >>conftest.$ac_ext
2540 cat >>conftest.$ac_ext <<_ACEOF
2541 /* end confdefs.h. */
2551 rm -f conftest.o conftest.obj
2552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2553 (eval $ac_compile) 2>&5
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }; then
2557 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2560 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2565 echo "$as_me: failed program was:" >&5
2566 sed 's/^/| /' conftest.$ac_ext >&5
2568 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2569 See \`config.log' for more details." >&5
2570 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2571 See \`config.log' for more details." >&2;}
2572 { (exit 1); exit 1; }; }
2575 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2577 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2578 echo "${ECHO_T}$ac_cv_objext" >&6
2579 OBJEXT=$ac_cv_objext
2581 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2582 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2583 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2586 cat >conftest.$ac_ext <<_ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2604 rm -f conftest.$ac_objext
2605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2606 (eval $ac_compile) 2>conftest.er1
2608 grep -v '^ *+' conftest.er1 >conftest.err
2610 cat conftest.err >&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); } &&
2613 { ac_try='test -z "$ac_c_werror_flag"
2614 || test ! -s conftest.err'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; } &&
2620 { ac_try='test -s conftest.$ac_objext'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2628 echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.$ac_ext >&5
2633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2634 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2637 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2638 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2639 GCC=`test $ac_compiler_gnu = yes && echo yes`
2640 ac_test_CFLAGS=${CFLAGS+set}
2641 ac_save_CFLAGS=$CFLAGS
2643 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2644 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2645 if test "${ac_cv_prog_cc_g+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2648 cat >conftest.$ac_ext <<_ACEOF
2651 cat confdefs.h >>conftest.$ac_ext
2652 cat >>conftest.$ac_ext <<_ACEOF
2653 /* end confdefs.h. */
2663 rm -f conftest.$ac_objext
2664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2665 (eval $ac_compile) 2>conftest.er1
2667 grep -v '^ *+' conftest.er1 >conftest.err
2669 cat conftest.err >&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); } &&
2672 { ac_try='test -z "$ac_c_werror_flag"
2673 || test ! -s conftest.err'
2674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; } &&
2679 { ac_try='test -s conftest.$ac_objext'
2680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }; }; then
2687 echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.$ac_ext >&5
2692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2694 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2695 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2696 if test "$ac_test_CFLAGS" = set; then
2697 CFLAGS=$ac_save_CFLAGS
2698 elif test $ac_cv_prog_cc_g = yes; then
2699 if test "$GCC" = yes; then
2705 if test "$GCC" = yes; then
2711 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2712 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2713 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2716 ac_cv_prog_cc_stdc=no
2718 cat >conftest.$ac_ext <<_ACEOF
2721 cat confdefs.h >>conftest.$ac_ext
2722 cat >>conftest.$ac_ext <<_ACEOF
2723 /* end confdefs.h. */
2726 #include <sys/types.h>
2727 #include <sys/stat.h>
2728 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2729 struct buf { int x; };
2730 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2731 static char *e (p, i)
2737 static char *f (char * (*g) (char **, int), char **p, ...)
2742 s = g (p, va_arg (v,int));
2747 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2748 function prototypes and stuff, but not '\xHH' hex character constants.
2749 These don't provoke an error unfortunately, instead are silently treated
2750 as 'x'. The following induces an error, until -std1 is added to get
2751 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2752 array size at least. It's necessary to write '\x00'==0 to get something
2753 that's true only with -std1. */
2754 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2756 int test (int i, double x);
2757 struct s1 {int (*f) (int a);};
2758 struct s2 {int (*f) (double a);};
2759 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2765 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2770 # Don't try gcc -ansi; that turns off useful extensions and
2771 # breaks some systems' header files.
2772 # AIX -qlanglvl=ansi
2773 # Ultrix and OSF/1 -std1
2774 # HP-UX 10.20 and later -Ae
2775 # HP-UX older versions -Aa -D_HPUX_SOURCE
2776 # SVR4 -Xc -D__EXTENSIONS__
2777 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2779 CC="$ac_save_CC $ac_arg"
2780 rm -f conftest.$ac_objext
2781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2782 (eval $ac_compile) 2>conftest.er1
2784 grep -v '^ *+' conftest.er1 >conftest.err
2786 cat conftest.err >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); } &&
2789 { ac_try='test -z "$ac_c_werror_flag"
2790 || test ! -s conftest.err'
2791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; } &&
2796 { ac_try='test -s conftest.$ac_objext'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; }; then
2802 ac_cv_prog_cc_stdc=$ac_arg
2805 echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2809 rm -f conftest.err conftest.$ac_objext
2811 rm -f conftest.$ac_ext conftest.$ac_objext
2816 case "x$ac_cv_prog_cc_stdc" in
2818 echo "$as_me:$LINENO: result: none needed" >&5
2819 echo "${ECHO_T}none needed" >&6 ;;
2821 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2822 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2823 CC="$CC $ac_cv_prog_cc_stdc" ;;
2826 # Some people use a C++ compiler to compile C. Since we use `exit',
2827 # in C++ we need to declare it. In case someone uses the same compiler
2828 # for both compiling C and C++ we need to have the C++ compiler decide
2829 # the declaration of exit, since it's the most demanding environment.
2830 cat >conftest.$ac_ext <<_ACEOF
2835 rm -f conftest.$ac_objext
2836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2837 (eval $ac_compile) 2>conftest.er1
2839 grep -v '^ *+' conftest.er1 >conftest.err
2841 cat conftest.err >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } &&
2844 { ac_try='test -z "$ac_c_werror_flag"
2845 || test ! -s conftest.err'
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; } &&
2851 { ac_try='test -s conftest.$ac_objext'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; }; then
2857 for ac_declaration in \
2859 'extern "C" void std::exit (int) throw (); using std::exit;' \
2860 'extern "C" void std::exit (int); using std::exit;' \
2861 'extern "C" void exit (int) throw ();' \
2862 'extern "C" void exit (int);' \
2865 cat >conftest.$ac_ext <<_ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h. */
2881 rm -f conftest.$ac_objext
2882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2883 (eval $ac_compile) 2>conftest.er1
2885 grep -v '^ *+' conftest.er1 >conftest.err
2887 cat conftest.err >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); } &&
2890 { ac_try='test -z "$ac_c_werror_flag"
2891 || test ! -s conftest.err'
2892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }; } &&
2897 { ac_try='test -s conftest.$ac_objext'
2898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }; }; then
2905 echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2911 cat >conftest.$ac_ext <<_ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h. */
2926 rm -f conftest.$ac_objext
2927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2928 (eval $ac_compile) 2>conftest.er1
2930 grep -v '^ *+' conftest.er1 >conftest.err
2932 cat conftest.err >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } &&
2935 { ac_try='test -z "$ac_c_werror_flag"
2936 || test ! -s conftest.err'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; } &&
2942 { ac_try='test -s conftest.$ac_objext'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; }; then
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2957 if test -n "$ac_declaration"; then
2958 echo '#ifdef __cplusplus' >>confdefs.h
2959 echo $ac_declaration >>confdefs.h
2960 echo '#endif' >>confdefs.h
2964 echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2970 ac_cpp='$CPP $CPPFLAGS'
2971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2978 ac_cpp='$CPP $CPPFLAGS'
2979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2982 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2983 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2984 # On Suns, sometimes $CPP names a directory.
2985 if test -n "$CPP" && test -d "$CPP"; then
2988 if test -z "$CPP"; then
2989 if test "${ac_cv_prog_CPP+set}" = set; then
2990 echo $ECHO_N "(cached) $ECHO_C" >&6
2992 # Double quotes because CPP needs to be expanded
2993 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2996 for ac_c_preproc_warn_flag in '' yes
2998 # Use a header file that comes with gcc, so configuring glibc
2999 # with a fresh cross-compiler works.
3000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3001 # <limits.h> exists even on freestanding compilers.
3002 # On the NeXT, cc -E runs the code through the compiler's parser,
3003 # not just through cpp. "Syntax error" is here to catch this case.
3004 cat >conftest.$ac_ext <<_ACEOF
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h. */
3011 # include <limits.h>
3013 # include <assert.h>
3017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3020 grep -v '^ *+' conftest.er1 >conftest.err
3022 cat conftest.err >&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } >/dev/null; then
3025 if test -s conftest.err; then
3026 ac_cpp_err=$ac_c_preproc_warn_flag
3027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3034 if test -z "$ac_cpp_err"; then
3037 echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3040 # Broken: fails on valid input.
3043 rm -f conftest.err conftest.$ac_ext
3045 # OK, works on sane cases. Now check whether non-existent headers
3046 # can be detected and how.
3047 cat >conftest.$ac_ext <<_ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3053 #include <ac_nonexistent.h>
3055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3058 grep -v '^ *+' conftest.er1 >conftest.err
3060 cat conftest.err >&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); } >/dev/null; then
3063 if test -s conftest.err; then
3064 ac_cpp_err=$ac_c_preproc_warn_flag
3065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3072 if test -z "$ac_cpp_err"; then
3073 # Broken: success on invalid input.
3076 echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3079 # Passes both tests.
3083 rm -f conftest.err conftest.$ac_ext
3086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3087 rm -f conftest.err conftest.$ac_ext
3088 if $ac_preproc_ok; then
3100 echo "$as_me:$LINENO: result: $CPP" >&5
3101 echo "${ECHO_T}$CPP" >&6
3103 for ac_c_preproc_warn_flag in '' yes
3105 # Use a header file that comes with gcc, so configuring glibc
3106 # with a fresh cross-compiler works.
3107 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3108 # <limits.h> exists even on freestanding compilers.
3109 # On the NeXT, cc -E runs the code through the compiler's parser,
3110 # not just through cpp. "Syntax error" is here to catch this case.
3111 cat >conftest.$ac_ext <<_ACEOF
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h. */
3118 # include <limits.h>
3120 # include <assert.h>
3124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3127 grep -v '^ *+' conftest.er1 >conftest.err
3129 cat conftest.err >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); } >/dev/null; then
3132 if test -s conftest.err; then
3133 ac_cpp_err=$ac_c_preproc_warn_flag
3134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3141 if test -z "$ac_cpp_err"; then
3144 echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3147 # Broken: fails on valid input.
3150 rm -f conftest.err conftest.$ac_ext
3152 # OK, works on sane cases. Now check whether non-existent headers
3153 # can be detected and how.
3154 cat >conftest.$ac_ext <<_ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h. */
3160 #include <ac_nonexistent.h>
3162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3165 grep -v '^ *+' conftest.er1 >conftest.err
3167 cat conftest.err >&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); } >/dev/null; then
3170 if test -s conftest.err; then
3171 ac_cpp_err=$ac_c_preproc_warn_flag
3172 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3179 if test -z "$ac_cpp_err"; then
3180 # Broken: success on invalid input.
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3186 # Passes both tests.
3190 rm -f conftest.err conftest.$ac_ext
3193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3194 rm -f conftest.err conftest.$ac_ext
3195 if $ac_preproc_ok; then
3198 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3199 See \`config.log' for more details." >&5
3200 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3201 See \`config.log' for more details." >&2;}
3202 { (exit 1); exit 1; }; }
3206 ac_cpp='$CPP $CPPFLAGS'
3207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3212 echo "$as_me:$LINENO: checking for egrep" >&5
3213 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3214 if test "${ac_cv_prog_egrep+set}" = set; then
3215 echo $ECHO_N "(cached) $ECHO_C" >&6
3217 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3218 then ac_cv_prog_egrep='grep -E'
3219 else ac_cv_prog_egrep='egrep'
3222 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3223 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3224 EGREP=$ac_cv_prog_egrep
3227 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3228 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3229 if test "${ac_cv_header_stdc+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3232 cat >conftest.$ac_ext <<_ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3251 rm -f conftest.$ac_objext
3252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3253 (eval $ac_compile) 2>conftest.er1
3255 grep -v '^ *+' conftest.er1 >conftest.err
3257 cat conftest.err >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); } &&
3260 { ac_try='test -z "$ac_c_werror_flag"
3261 || test ! -s conftest.err'
3262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); }; } &&
3267 { ac_try='test -s conftest.$ac_objext'
3268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }; }; then
3273 ac_cv_header_stdc=yes
3275 echo "$as_me: failed program was:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3278 ac_cv_header_stdc=no
3280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3282 if test $ac_cv_header_stdc = yes; then
3283 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3284 cat >conftest.$ac_ext <<_ACEOF
3287 cat confdefs.h >>conftest.$ac_ext
3288 cat >>conftest.$ac_ext <<_ACEOF
3289 /* end confdefs.h. */
3293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3294 $EGREP "memchr" >/dev/null 2>&1; then
3297 ac_cv_header_stdc=no
3303 if test $ac_cv_header_stdc = yes; then
3304 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3305 cat >conftest.$ac_ext <<_ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h. */
3314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3315 $EGREP "free" >/dev/null 2>&1; then
3318 ac_cv_header_stdc=no
3324 if test $ac_cv_header_stdc = yes; then
3325 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3326 if test "$cross_compiling" = yes; then
3329 cat >conftest.$ac_ext <<_ACEOF
3332 cat confdefs.h >>conftest.$ac_ext
3333 cat >>conftest.$ac_ext <<_ACEOF
3334 /* end confdefs.h. */
3336 #if ((' ' & 0x0FF) == 0x020)
3337 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3338 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3340 # define ISLOWER(c) \
3341 (('a' <= (c) && (c) <= 'i') \
3342 || ('j' <= (c) && (c) <= 'r') \
3343 || ('s' <= (c) && (c) <= 'z'))
3344 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3347 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3352 for (i = 0; i < 256; i++)
3353 if (XOR (islower (i), ISLOWER (i))
3354 || toupper (i) != TOUPPER (i))
3359 rm -f conftest$ac_exeext
3360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3361 (eval $ac_link) 2>&5
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; }; then
3372 echo "$as_me: program exited with status $ac_status" >&5
3373 echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3377 ac_cv_header_stdc=no
3379 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3383 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3384 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3385 if test $ac_cv_header_stdc = yes; then
3387 cat >>confdefs.h <<\_ACEOF
3388 #define STDC_HEADERS 1
3395 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3405 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3406 inttypes.h stdint.h unistd.h
3408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3409 echo "$as_me:$LINENO: checking for $ac_header" >&5
3410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 cat >conftest.$ac_ext <<_ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3420 $ac_includes_default
3422 #include <$ac_header>
3424 rm -f conftest.$ac_objext
3425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426 (eval $ac_compile) 2>conftest.er1
3428 grep -v '^ *+' conftest.er1 >conftest.err
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } &&
3433 { ac_try='test -z "$ac_c_werror_flag"
3434 || test ! -s conftest.err'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; } &&
3440 { ac_try='test -s conftest.$ac_objext'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; }; then
3446 eval "$as_ac_Header=yes"
3448 echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3451 eval "$as_ac_Header=no"
3453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3458 cat >>confdefs.h <<_ACEOF
3459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3476 for ac_header in fcntl.h db.h paths.h sys/time.h unistd.h sys/sockio.h sys/select.h sys/timers.h stropts.h
3478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3480 echo "$as_me:$LINENO: checking for $ac_header" >&5
3481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3483 echo $ECHO_N "(cached) $ECHO_C" >&6
3485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3488 # Is the header compilable?
3489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3491 cat >conftest.$ac_ext <<_ACEOF
3494 cat confdefs.h >>conftest.$ac_ext
3495 cat >>conftest.$ac_ext <<_ACEOF
3496 /* end confdefs.h. */
3497 $ac_includes_default
3498 #include <$ac_header>
3500 rm -f conftest.$ac_objext
3501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3502 (eval $ac_compile) 2>conftest.er1
3504 grep -v '^ *+' conftest.er1 >conftest.err
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } &&
3509 { ac_try='test -z "$ac_c_werror_flag"
3510 || test ! -s conftest.err'
3511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; } &&
3516 { ac_try='test -s conftest.$ac_objext'
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; }; then
3522 ac_header_compiler=yes
3524 echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3527 ac_header_compiler=no
3529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3531 echo "${ECHO_T}$ac_header_compiler" >&6
3533 # Is the header present?
3534 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3536 cat >conftest.$ac_ext <<_ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h. */
3542 #include <$ac_header>
3544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3547 grep -v '^ *+' conftest.er1 >conftest.err
3549 cat conftest.err >&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); } >/dev/null; then
3552 if test -s conftest.err; then
3553 ac_cpp_err=$ac_c_preproc_warn_flag
3554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3561 if test -z "$ac_cpp_err"; then
3562 ac_header_preproc=yes
3564 echo "$as_me: failed program was:" >&5
3565 sed 's/^/| /' conftest.$ac_ext >&5
3567 ac_header_preproc=no
3569 rm -f conftest.err conftest.$ac_ext
3570 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3571 echo "${ECHO_T}$ac_header_preproc" >&6
3573 # So? What about this header?
3574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3576 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3580 ac_header_preproc=yes
3583 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3585 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3586 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3587 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3589 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3590 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3593 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3597 ## ------------------------------------------ ##
3598 ## Report this to the AC_PACKAGE_NAME lists. ##
3599 ## ------------------------------------------ ##
3602 sed "s/^/$as_me: WARNING: /" >&2
3605 echo "$as_me:$LINENO: checking for $ac_header" >&5
3606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 eval "$as_ac_Header=\$ac_header_preproc"
3612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3617 cat >>confdefs.h <<_ACEOF
3618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3626 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3627 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3628 if test "${ac_cv_c_const+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3631 cat >conftest.$ac_ext <<_ACEOF
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h. */
3641 /* FIXME: Include the comments suggested by Paul. */
3643 /* Ultrix mips cc rejects this. */
3644 typedef int charset[2];
3646 /* SunOS 4.1.1 cc rejects this. */
3647 char const *const *ccp;
3649 /* NEC SVR4.0.2 mips cc rejects this. */
3650 struct point {int x, y;};
3651 static struct point const zero = {0,0};
3652 /* AIX XL C 1.02.0.0 rejects this.
3653 It does not let you subtract one const X* pointer from another in
3654 an arm of an if-expression whose if-part is not a constant
3656 const char *g = "string";
3657 ccp = &g + (g ? g-g : 0);
3658 /* HPUX 7.0 cc rejects these. */
3661 ccp = (char const *const *) p;
3662 { /* SCO 3.2v4 cc rejects this. */
3664 char const *s = 0 ? (char *) 0 : (char const *) 0;
3668 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3670 const int *foo = &x[0];
3673 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3674 typedef const int *iptr;
3678 { /* AIX XL C 1.02.0.0 rejects this saying
3679 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3680 struct s { int j; const int *ap[3]; };
3681 struct s *b; b->j = 5;
3683 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3692 rm -f conftest.$ac_objext
3693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3694 (eval $ac_compile) 2>conftest.er1
3696 grep -v '^ *+' conftest.er1 >conftest.err
3698 cat conftest.err >&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); } &&
3701 { ac_try='test -z "$ac_c_werror_flag"
3702 || test ! -s conftest.err'
3703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); }; } &&
3708 { ac_try='test -s conftest.$ac_objext'
3709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); }; }; then
3716 echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3723 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3724 echo "${ECHO_T}$ac_cv_c_const" >&6
3725 if test $ac_cv_c_const = no; then
3727 cat >>confdefs.h <<\_ACEOF
3733 echo "$as_me:$LINENO: checking for inline" >&5
3734 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3735 if test "${ac_cv_c_inline+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 for ac_kw in inline __inline__ __inline; do
3740 cat >conftest.$ac_ext <<_ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3748 static $ac_kw foo_t static_foo () {return 0; }
3749 $ac_kw foo_t foo () {return 0; }
3753 rm -f conftest.$ac_objext
3754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3755 (eval $ac_compile) 2>conftest.er1
3757 grep -v '^ *+' conftest.er1 >conftest.err
3759 cat conftest.err >&5
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); } &&
3762 { ac_try='test -z "$ac_c_werror_flag"
3763 || test ! -s conftest.err'
3764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); }; } &&
3769 { ac_try='test -s conftest.$ac_objext'
3770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); }; }; then
3775 ac_cv_c_inline=$ac_kw; break
3777 echo "$as_me: failed program was:" >&5
3778 sed 's/^/| /' conftest.$ac_ext >&5
3781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3785 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3786 echo "${ECHO_T}$ac_cv_c_inline" >&6
3789 case $ac_cv_c_inline in
3792 case $ac_cv_c_inline in
3794 *) ac_val=$ac_cv_c_inline;;
3796 cat >>confdefs.h <<_ACEOF
3798 #define inline $ac_val
3804 echo "$as_me:$LINENO: checking for size_t" >&5
3805 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3806 if test "${ac_cv_type_size_t+set}" = set; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3809 cat >conftest.$ac_ext <<_ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h. */
3815 $ac_includes_default
3821 if (sizeof (size_t))
3827 rm -f conftest.$ac_objext
3828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3829 (eval $ac_compile) 2>conftest.er1
3831 grep -v '^ *+' conftest.er1 >conftest.err
3833 cat conftest.err >&5
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); } &&
3836 { ac_try='test -z "$ac_c_werror_flag"
3837 || test ! -s conftest.err'
3838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; } &&
3843 { ac_try='test -s conftest.$ac_objext'
3844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; }; then
3849 ac_cv_type_size_t=yes
3851 echo "$as_me: failed program was:" >&5
3852 sed 's/^/| /' conftest.$ac_ext >&5
3854 ac_cv_type_size_t=no
3856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3858 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3859 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3860 if test $ac_cv_type_size_t = yes; then
3864 cat >>confdefs.h <<_ACEOF
3865 #define size_t unsigned
3870 echo "$as_me:$LINENO: checking for uintptr_t" >&5
3871 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
3872 if test "${ac_cv_type_uintptr_t+set}" = set; then
3873 echo $ECHO_N "(cached) $ECHO_C" >&6
3875 cat >conftest.$ac_ext <<_ACEOF
3878 cat confdefs.h >>conftest.$ac_ext
3879 cat >>conftest.$ac_ext <<_ACEOF
3880 /* end confdefs.h. */
3881 $ac_includes_default
3885 if ((uintptr_t *) 0)
3887 if (sizeof (uintptr_t))
3893 rm -f conftest.$ac_objext
3894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3895 (eval $ac_compile) 2>conftest.er1
3897 grep -v '^ *+' conftest.er1 >conftest.err
3899 cat conftest.err >&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } &&
3902 { ac_try='test -z "$ac_c_werror_flag"
3903 || test ! -s conftest.err'
3904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; } &&
3909 { ac_try='test -s conftest.$ac_objext'
3910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); }; }; then
3915 ac_cv_type_uintptr_t=yes
3917 echo "$as_me: failed program was:" >&5
3918 sed 's/^/| /' conftest.$ac_ext >&5
3920 ac_cv_type_uintptr_t=no
3922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3924 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
3925 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
3926 if test $ac_cv_type_uintptr_t = yes; then
3930 cat >>confdefs.h <<_ACEOF
3931 #define uintptr_t unsigned long
3936 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3937 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3938 if test "${ac_cv_header_time+set}" = set; then
3939 echo $ECHO_N "(cached) $ECHO_C" >&6
3941 cat >conftest.$ac_ext <<_ACEOF
3944 cat confdefs.h >>conftest.$ac_ext
3945 cat >>conftest.$ac_ext <<_ACEOF
3946 /* end confdefs.h. */
3947 #include <sys/types.h>
3948 #include <sys/time.h>
3954 if ((struct tm *) 0)
3960 rm -f conftest.$ac_objext
3961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3962 (eval $ac_compile) 2>conftest.er1
3964 grep -v '^ *+' conftest.er1 >conftest.err
3966 cat conftest.err >&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); } &&
3969 { ac_try='test -z "$ac_c_werror_flag"
3970 || test ! -s conftest.err'
3971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; } &&
3976 { ac_try='test -s conftest.$ac_objext'
3977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }; }; then
3982 ac_cv_header_time=yes
3984 echo "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.$ac_ext >&5
3987 ac_cv_header_time=no
3989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3991 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3992 echo "${ECHO_T}$ac_cv_header_time" >&6
3993 if test $ac_cv_header_time = yes; then
3995 cat >>confdefs.h <<\_ACEOF
3996 #define TIME_WITH_SYS_TIME 1
4002 # check if we need to #include sys/select.h explicitly
4004 case $ac_cv_header_unistd_h in
4006 echo "$as_me:$LINENO: checking if unistd.h defines fd_set" >&5
4007 echo $ECHO_N "checking if unistd.h defines fd_set... $ECHO_C" >&6
4008 cat >conftest.$ac_ext <<_ACEOF
4011 cat confdefs.h >>conftest.$ac_ext
4012 cat >>conftest.$ac_ext <<_ACEOF
4013 /* end confdefs.h. */
4019 fd_set read_set; return (0);
4024 rm -f conftest.$ac_objext
4025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4026 (eval $ac_compile) 2>conftest.er1
4028 grep -v '^ *+' conftest.er1 >conftest.err
4030 cat conftest.err >&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); } &&
4033 { ac_try='test -z "$ac_c_werror_flag"
4034 || test ! -s conftest.err'
4035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }; } &&
4040 { ac_try='test -s conftest.$ac_objext'
4041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; }; then
4046 echo "$as_me:$LINENO: result: yes" >&5
4047 echo "${ECHO_T}yes" >&6
4048 ISC_PLATFORM_NEEDSYSSELECTH="#undef ISC_PLATFORM_NEEDSYSSELECTH"
4051 echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4054 echo "$as_me:$LINENO: result: no" >&5
4055 echo "${ECHO_T}no" >&6
4056 case ac_cv_header_sys_select_h in
4058 ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
4061 { { echo "$as_me:$LINENO: error: need either working unistd.h or sys/select.h" >&5
4062 echo "$as_me: error: need either working unistd.h or sys/select.h" >&2;}
4063 { (exit 1); exit 1; }; }
4068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4071 case ac_cv_header_sys_select_h in
4073 ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
4076 { { echo "$as_me:$LINENO: error: need either unistd.h or sys/select.h" >&5
4077 echo "$as_me: error: need either unistd.h or sys/select.h" >&2;}
4078 { (exit 1); exit 1; }; }
4086 # Find the machine's endian flavor.
4088 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4089 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4090 if test "${ac_cv_c_bigendian+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 # See if sys/param.h defines the BYTE_ORDER macro.
4094 cat >conftest.$ac_ext <<_ACEOF
4097 cat confdefs.h >>conftest.$ac_ext
4098 cat >>conftest.$ac_ext <<_ACEOF
4099 /* end confdefs.h. */
4100 #include <sys/types.h>
4101 #include <sys/param.h>
4106 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
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
4136 # It does; now see whether it defined to BIG_ENDIAN or not.
4137 cat >conftest.$ac_ext <<_ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4143 #include <sys/types.h>
4144 #include <sys/param.h>
4149 #if BYTE_ORDER != BIG_ENDIAN
4157 rm -f conftest.$ac_objext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4159 (eval $ac_compile) 2>conftest.er1
4161 grep -v '^ *+' conftest.er1 >conftest.err
4163 cat conftest.err >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } &&
4166 { ac_try='test -z "$ac_c_werror_flag"
4167 || test ! -s conftest.err'
4168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; } &&
4173 { ac_try='test -s conftest.$ac_objext'
4174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; }; then
4179 ac_cv_c_bigendian=yes
4181 echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.$ac_ext >&5
4184 ac_cv_c_bigendian=no
4186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4188 echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4191 # It does not; compile a test program.
4192 if test "$cross_compiling" = yes; then
4193 # try to guess the endianness by grepping values into an object file
4194 ac_cv_c_bigendian=unknown
4195 cat >conftest.$ac_ext <<_ACEOF
4198 cat confdefs.h >>conftest.$ac_ext
4199 cat >>conftest.$ac_ext <<_ACEOF
4200 /* end confdefs.h. */
4201 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4202 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4203 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4204 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4205 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4206 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4210 _ascii (); _ebcdic ();
4215 rm -f conftest.$ac_objext
4216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4217 (eval $ac_compile) 2>conftest.er1
4219 grep -v '^ *+' conftest.er1 >conftest.err
4221 cat conftest.err >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } &&
4224 { ac_try='test -z "$ac_c_werror_flag"
4225 || test ! -s conftest.err'
4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; } &&
4231 { ac_try='test -s conftest.$ac_objext'
4232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; }; then
4237 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4238 ac_cv_c_bigendian=yes
4240 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4241 if test "$ac_cv_c_bigendian" = unknown; then
4242 ac_cv_c_bigendian=no
4244 # finding both strings is unlikely to happen, but who knows?
4245 ac_cv_c_bigendian=unknown
4249 echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4255 cat >conftest.$ac_ext <<_ACEOF
4258 cat confdefs.h >>conftest.$ac_ext
4259 cat >>conftest.$ac_ext <<_ACEOF
4260 /* end confdefs.h. */
4264 /* Are we little or big endian? From Harbison&Steele. */
4268 char c[sizeof (long)];
4271 exit (u.c[sizeof (long) - 1] == 1);
4274 rm -f conftest$ac_exeext
4275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4276 (eval $ac_link) 2>&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); }; }; then
4285 ac_cv_c_bigendian=no
4287 echo "$as_me: program exited with status $ac_status" >&5
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4292 ac_cv_c_bigendian=yes
4294 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4299 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4300 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4301 case $ac_cv_c_bigendian in
4304 cat >>confdefs.h <<\_ACEOF
4305 #define WORDS_BIGENDIAN 1
4311 { { echo "$as_me:$LINENO: error: unknown endianness
4312 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4313 echo "$as_me: error: unknown endianness
4314 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4315 { (exit 1); exit 1; }; } ;;
4320 # Check whether --with-irs-gr or --without-irs-gr was given.
4321 if test "${with_irs_gr+set}" = set; then
4322 withval="$with_irs_gr"
4323 want_irs_gr="$withval"
4327 case "$want_irs_gr" in
4328 yes) WANT_IRS_GR="#define WANT_IRS_GR 1"
4329 WANT_IRS_GR_OBJS="\${WANT_IRS_GR_OBJS}"
4331 *) WANT_IRS_GR="#undef WANT_IRS_GR" WANT_IRS_GR_OBJS="";;
4337 # Check whether --with-irs-pw or --without-irs-pw was given.
4338 if test "${with_irs_pw+set}" = set; then
4339 withval="$with_irs_pw"
4340 want_irs_pw="$withval"
4344 case "$want_irs_pw" in
4345 yes) WANT_IRS_PW="#define WANT_IRS_PW 1"
4346 WANT_IRS_PW_OBJS="\${WANT_IRS_PW_OBJS}";;
4347 *) WANT_IRS_PW="#undef WANT_IRS_PW" WANT_IRS_PW_OBJS="";;
4353 # Check whether --with-irs-nis or --without-irs-nis was given.
4354 if test "${with_irs_nis+set}" = set; then
4355 withval="$with_irs_nis"
4356 want_irs_nis="$withval"
4360 case "$want_irs_nis" in
4362 WANT_IRS_NIS="#define WANT_IRS_NIS 1"
4363 WANT_IRS_NIS_OBJS="\${WANT_IRS_NIS_OBJS}"
4364 case "$want_irs_gr" in
4366 WANT_IRS_NISGR_OBJS="\${WANT_IRS_NISGR_OBJS}";;
4368 WANT_IRS_NISGR_OBJS="";;
4370 case "$want_irs_pw" in
4372 WANT_IRS_NISPW_OBJS="\${WANT_IRS_NISPW_OBJS}";;
4374 WANT_IRS_NISPW_OBJS="";;
4378 WANT_IRS_NIS="#undef WANT_IRS_NIS"
4379 WANT_IRS_NIS_OBJS=""
4380 WANT_IRS_NISGR_OBJS=""
4381 WANT_IRS_NISPW_OBJS="";;
4387 if test "$cross_compiling" = yes; then
4388 WANT_IRS_DBPW_OBJS=""
4391 cat >conftest.$ac_ext <<_ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4403 main() { return(!have_db_h); }
4406 rm -f conftest$ac_exeext
4407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4408 (eval $ac_link) 2>&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; }; then
4417 WANT_IRS_DBPW_OBJS="\${WANT_IRS_DBPW_OBJS}"
4420 echo "$as_me: program exited with status $ac_status" >&5
4421 echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4425 WANT_IRS_DBPW_OBJS=""
4428 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4433 # was --with-randomdev specified?
4435 echo "$as_me:$LINENO: checking for random device" >&5
4436 echo $ECHO_N "checking for random device... $ECHO_C" >&6
4438 # Check whether --with-randomdev or --without-randomdev was given.
4439 if test "${with_randomdev+set}" = set; then
4440 withval="$with_randomdev"
4441 use_randomdev="$withval"
4443 use_randomdev="unspec"
4446 case "$use_randomdev" in
4450 devrandom=/dev/srandom
4453 devrandom=/dev/random
4456 echo "$as_me:$LINENO: result: $devrandom" >&5
4457 echo "${ECHO_T}$devrandom" >&6
4458 as_ac_File=`echo "ac_cv_file_$devrandom" | $as_tr_sh`
4459 echo "$as_me:$LINENO: checking for $devrandom" >&5
4460 echo $ECHO_N "checking for $devrandom... $ECHO_C" >&6
4461 if eval "test \"\${$as_ac_File+set}\" = set"; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4464 test "$cross_compiling" = yes &&
4465 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4466 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4467 { (exit 1); exit 1; }; }
4468 if test -r "$devrandom"; then
4469 eval "$as_ac_File=yes"
4471 eval "$as_ac_File=no"
4474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4475 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4476 if test `eval echo '${'$as_ac_File'}'` = yes; then
4477 cat >>confdefs.h <<_ACEOF
4478 #define PATH_RANDOMDEV "$devrandom"
4485 { { echo "$as_me:$LINENO: error: --with-randomdev must specify a path" >&5
4486 echo "$as_me: error: --with-randomdev must specify a path" >&2;}
4487 { (exit 1); exit 1; }; }
4490 cat >>confdefs.h <<_ACEOF
4491 #define PATH_RANDOMDEV "$use_randomdev"
4494 echo "$as_me:$LINENO: result: using \"$use_randomdev\"" >&5
4495 echo "${ECHO_T}using \"$use_randomdev\"" >&6
4500 # Begin pthreads checking.
4502 # First, decide whether to use multithreading or not.
4504 # Enable multithreading by default on systems where it is known
4505 # to work well, and where debugging of multithreaded programs
4509 echo "$as_me:$LINENO: checking whether to build with thread support" >&5
4510 echo $ECHO_N "checking whether to build with thread support... $ECHO_C" >&6
4516 # Thread signals are broken on Solaris 2.6; they are sometimes
4517 # delivered to the wrong thread.
4518 use_threads=false ;;
4524 use_threads=false ;;
4529 *-sco-sysv*uw*|*-*-sysv*UnixWare*)
4531 use_threads=false ;;
4536 if test -r /usr/lib/libpthread.so ; then
4539 # Socket I/O optimizations introduced in 9.2 expose a
4540 # bug in unproven-pthreads; see PR #12650
4545 # OpenBSD users have reported that named dumps core on
4546 # startup when built with threads.
4547 use_threads=false ;;
4549 use_threads=false ;;
4551 # Thread signals do not work reliably on some versions of BSD/OS.
4552 use_threads=false ;;
4556 # Threads are disabled on Linux by default because most
4557 # Linux kernels produce unusable core dumps from multithreaded
4558 # programs, and because of limitations in setuid().
4559 use_threads=false ;;
4561 use_threads=false ;;
4564 # Check whether --enable-threads or --disable-threads was given.
4565 if test "${enable_threads+set}" = set; then
4566 enableval="$enable_threads"
4569 case "$enable_threads" in
4577 # Use system-dependent default
4580 { { echo "$as_me:$LINENO: error: --enable-threads takes yes or no" >&5
4581 echo "$as_me: error: --enable-threads takes yes or no" >&2;}
4582 { (exit 1); exit 1; }; }
4588 echo "$as_me:$LINENO: result: yes" >&5
4589 echo "${ECHO_T}yes" >&6
4591 echo "$as_me:$LINENO: result: no" >&5
4592 echo "${ECHO_T}no" >&6
4598 # Search for / configure pthreads in a system-dependent fashion.
4602 # NetBSD has multiple pthreads implementations. The
4603 # recommended one to use is "unproven-pthreads". The
4604 # older "mit-pthreads" may also work on some NetBSD
4605 # versions. The PTL2 thread library does not
4606 # currently work with bind9, but can be chosen with
4607 # the --with-ptl2 option for those who wish to
4608 # experiment with it.
4610 echo "$as_me:$LINENO: checking which NetBSD thread library to use" >&5
4611 echo $ECHO_N "checking which NetBSD thread library to use... $ECHO_C" >&6
4614 # Check whether --with-ptl2 or --without-ptl2 was given.
4615 if test "${with_ptl2+set}" = set; then
4616 withval="$with_ptl2"
4622 : ${LOCALBASE:=/usr/pkg}
4624 if test "X$use_ptl2" = "Xyes"
4626 echo "$as_me:$LINENO: result: PTL2" >&5
4627 echo "${ECHO_T}PTL2" >&6
4628 { echo "$as_me:$LINENO: WARNING: linking with PTL2 is highly experimental and not expected to work" >&5
4629 echo "$as_me: WARNING: linking with PTL2 is highly experimental and not expected to work" >&2;}
4632 if test -r /usr/lib/libpthread.so
4634 echo "$as_me:$LINENO: result: native" >&5
4635 echo "${ECHO_T}native" >&6
4636 LIBS="-lpthread $LIBS"
4638 if test ! -d $LOCALBASE/pthreads
4640 echo "$as_me:$LINENO: result: none" >&5
4641 echo "${ECHO_T}none" >&6
4642 { { echo "$as_me:$LINENO: error: \"could not find thread libraries\"" >&5
4643 echo "$as_me: error: \"could not find thread libraries\"" >&2;}
4644 { (exit 1); exit 1; }; }
4649 echo "$as_me:$LINENO: result: mit-pthreads/unproven-pthreads" >&5
4650 echo "${ECHO_T}mit-pthreads/unproven-pthreads" >&6
4651 pkg="$LOCALBASE/pthreads"
4652 lib1="-L$pkg/lib -Wl,-R$pkg/lib"
4653 lib2="-lpthread -lm -lgcc -lpthread"
4654 LIBS="$lib1 $lib2 $LIBS"
4655 CPPFLAGS="$CPPFLAGS -I$pkg/include"
4656 STD_CINCLUDES="$STD_CINCLUDES -I$pkg/include"
4663 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
4664 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
4665 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 ac_check_lib_save_LIBS=$LIBS
4669 LIBS="-lpthread $LIBS"
4670 cat >conftest.$ac_ext <<_ACEOF
4673 cat confdefs.h >>conftest.$ac_ext
4674 cat >>conftest.$ac_ext <<_ACEOF
4675 /* end confdefs.h. */
4677 /* Override any gcc2 internal prototype to avoid an error. */
4681 /* We use char because int might match the return type of a gcc2
4682 builtin and then its argument prototype would still apply. */
4683 char pthread_create ();
4692 rm -f conftest.$ac_objext conftest$ac_exeext
4693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4694 (eval $ac_link) 2>conftest.er1
4696 grep -v '^ *+' conftest.er1 >conftest.err
4698 cat conftest.err >&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); } &&
4701 { ac_try='test -z "$ac_c_werror_flag"
4702 || test ! -s conftest.err'
4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; } &&
4708 { ac_try='test -s conftest$ac_exeext'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; }; then
4714 ac_cv_lib_pthread_pthread_create=yes
4716 echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4719 ac_cv_lib_pthread_pthread_create=no
4721 rm -f conftest.err conftest.$ac_objext \
4722 conftest$ac_exeext conftest.$ac_ext
4723 LIBS=$ac_check_lib_save_LIBS
4725 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
4726 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
4727 if test $ac_cv_lib_pthread_pthread_create = yes; then
4728 cat >>confdefs.h <<_ACEOF
4729 #define HAVE_LIBPTHREAD 1
4732 LIBS="-lpthread $LIBS"
4736 echo "$as_me:$LINENO: checking for __pthread_create in -lpthread" >&5
4737 echo $ECHO_N "checking for __pthread_create in -lpthread... $ECHO_C" >&6
4738 if test "${ac_cv_lib_pthread___pthread_create+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 ac_check_lib_save_LIBS=$LIBS
4742 LIBS="-lpthread $LIBS"
4743 cat >conftest.$ac_ext <<_ACEOF
4746 cat confdefs.h >>conftest.$ac_ext
4747 cat >>conftest.$ac_ext <<_ACEOF
4748 /* end confdefs.h. */
4750 /* Override any gcc2 internal prototype to avoid an error. */
4754 /* We use char because int might match the return type of a gcc2
4755 builtin and then its argument prototype would still apply. */
4756 char __pthread_create ();
4760 __pthread_create ();
4765 rm -f conftest.$ac_objext conftest$ac_exeext
4766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4767 (eval $ac_link) 2>conftest.er1
4769 grep -v '^ *+' conftest.er1 >conftest.err
4771 cat conftest.err >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } &&
4774 { ac_try='test -z "$ac_c_werror_flag"
4775 || test ! -s conftest.err'
4776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; } &&
4781 { ac_try='test -s conftest$ac_exeext'
4782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }; }; then
4787 ac_cv_lib_pthread___pthread_create=yes
4789 echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4792 ac_cv_lib_pthread___pthread_create=no
4794 rm -f conftest.err conftest.$ac_objext \
4795 conftest$ac_exeext conftest.$ac_ext
4796 LIBS=$ac_check_lib_save_LIBS
4798 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create" >&5
4799 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create" >&6
4800 if test $ac_cv_lib_pthread___pthread_create = yes; then
4801 cat >>confdefs.h <<_ACEOF
4802 #define HAVE_LIBPTHREAD 1
4805 LIBS="-lpthread $LIBS"
4809 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
4810 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
4811 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 ac_check_lib_save_LIBS=$LIBS
4815 LIBS="-lpthread $LIBS"
4816 cat >conftest.$ac_ext <<_ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4823 /* Override any gcc2 internal prototype to avoid an error. */
4827 /* We use char because int might match the return type of a gcc2
4828 builtin and then its argument prototype would still apply. */
4829 char __pthread_create_system ();
4833 __pthread_create_system ();
4838 rm -f conftest.$ac_objext conftest$ac_exeext
4839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4840 (eval $ac_link) 2>conftest.er1
4842 grep -v '^ *+' conftest.er1 >conftest.err
4844 cat conftest.err >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } &&
4847 { ac_try='test -z "$ac_c_werror_flag"
4848 || test ! -s conftest.err'
4849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); }; } &&
4854 { ac_try='test -s conftest$ac_exeext'
4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }; }; then
4860 ac_cv_lib_pthread___pthread_create_system=yes
4862 echo "$as_me: failed program was:" >&5
4863 sed 's/^/| /' conftest.$ac_ext >&5
4865 ac_cv_lib_pthread___pthread_create_system=no
4867 rm -f conftest.err conftest.$ac_objext \
4868 conftest$ac_exeext conftest.$ac_ext
4869 LIBS=$ac_check_lib_save_LIBS
4871 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
4872 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
4873 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
4874 cat >>confdefs.h <<_ACEOF
4875 #define HAVE_LIBPTHREAD 1
4878 LIBS="-lpthread $LIBS"
4882 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
4883 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
4884 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
4885 echo $ECHO_N "(cached) $ECHO_C" >&6
4887 ac_check_lib_save_LIBS=$LIBS
4889 cat >conftest.$ac_ext <<_ACEOF
4892 cat confdefs.h >>conftest.$ac_ext
4893 cat >>conftest.$ac_ext <<_ACEOF
4894 /* end confdefs.h. */
4896 /* Override any gcc2 internal prototype to avoid an error. */
4900 /* We use char because int might match the return type of a gcc2
4901 builtin and then its argument prototype would still apply. */
4902 char pthread_create ();
4911 rm -f conftest.$ac_objext conftest$ac_exeext
4912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4913 (eval $ac_link) 2>conftest.er1
4915 grep -v '^ *+' conftest.er1 >conftest.err
4917 cat conftest.err >&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); } &&
4920 { ac_try='test -z "$ac_c_werror_flag"
4921 || test ! -s conftest.err'
4922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }; } &&
4927 { ac_try='test -s conftest$ac_exeext'
4928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); }; }; then
4933 ac_cv_lib_c_r_pthread_create=yes
4935 echo "$as_me: failed program was:" >&5
4936 sed 's/^/| /' conftest.$ac_ext >&5
4938 ac_cv_lib_c_r_pthread_create=no
4940 rm -f conftest.err conftest.$ac_objext \
4941 conftest$ac_exeext conftest.$ac_ext
4942 LIBS=$ac_check_lib_save_LIBS
4944 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
4945 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
4946 if test $ac_cv_lib_c_r_pthread_create = yes; then
4947 cat >>confdefs.h <<_ACEOF
4948 #define HAVE_LIBC_R 1
4955 echo "$as_me:$LINENO: checking for pthread_create in -lc" >&5
4956 echo $ECHO_N "checking for pthread_create in -lc... $ECHO_C" >&6
4957 if test "${ac_cv_lib_c_pthread_create+set}" = set; then
4958 echo $ECHO_N "(cached) $ECHO_C" >&6
4960 ac_check_lib_save_LIBS=$LIBS
4962 cat >conftest.$ac_ext <<_ACEOF
4965 cat confdefs.h >>conftest.$ac_ext
4966 cat >>conftest.$ac_ext <<_ACEOF
4967 /* end confdefs.h. */
4969 /* Override any gcc2 internal prototype to avoid an error. */
4973 /* We use char because int might match the return type of a gcc2
4974 builtin and then its argument prototype would still apply. */
4975 char pthread_create ();
4984 rm -f conftest.$ac_objext conftest$ac_exeext
4985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4986 (eval $ac_link) 2>conftest.er1
4988 grep -v '^ *+' conftest.er1 >conftest.err
4990 cat conftest.err >&5
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); } &&
4993 { ac_try='test -z "$ac_c_werror_flag"
4994 || test ! -s conftest.err'
4995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); }; } &&
5000 { ac_try='test -s conftest$ac_exeext'
5001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); }; }; then
5006 ac_cv_lib_c_pthread_create=yes
5008 echo "$as_me: failed program was:" >&5
5009 sed 's/^/| /' conftest.$ac_ext >&5
5011 ac_cv_lib_c_pthread_create=no
5013 rm -f conftest.err conftest.$ac_objext \
5014 conftest$ac_exeext conftest.$ac_ext
5015 LIBS=$ac_check_lib_save_LIBS
5017 echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_create" >&5
5018 echo "${ECHO_T}$ac_cv_lib_c_pthread_create" >&6
5019 if test $ac_cv_lib_c_pthread_create = yes; then
5020 cat >>confdefs.h <<_ACEOF
5027 { { echo "$as_me:$LINENO: error: \"could not find thread libraries\"" >&5
5028 echo "$as_me: error: \"could not find thread libraries\"" >&2;}
5029 { (exit 1); exit 1; }; }
5047 # We'd like to use sigwait() too
5049 echo "$as_me:$LINENO: checking for sigwait in -lc" >&5
5050 echo $ECHO_N "checking for sigwait in -lc... $ECHO_C" >&6
5051 if test "${ac_cv_lib_c_sigwait+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5054 ac_check_lib_save_LIBS=$LIBS
5056 cat >conftest.$ac_ext <<_ACEOF
5059 cat confdefs.h >>conftest.$ac_ext
5060 cat >>conftest.$ac_ext <<_ACEOF
5061 /* end confdefs.h. */
5063 /* Override any gcc2 internal prototype to avoid an error. */
5067 /* We use char because int might match the return type of a gcc2
5068 builtin and then its argument prototype would still apply. */
5078 rm -f conftest.$ac_objext conftest$ac_exeext
5079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5080 (eval $ac_link) 2>conftest.er1
5082 grep -v '^ *+' conftest.er1 >conftest.err
5084 cat conftest.err >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } &&
5087 { ac_try='test -z "$ac_c_werror_flag"
5088 || test ! -s conftest.err'
5089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); }; } &&
5094 { ac_try='test -s conftest$ac_exeext'
5095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }; }; then
5100 ac_cv_lib_c_sigwait=yes
5102 echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.$ac_ext >&5
5105 ac_cv_lib_c_sigwait=no
5107 rm -f conftest.err conftest.$ac_objext \
5108 conftest$ac_exeext conftest.$ac_ext
5109 LIBS=$ac_check_lib_save_LIBS
5111 echo "$as_me:$LINENO: result: $ac_cv_lib_c_sigwait" >&5
5112 echo "${ECHO_T}$ac_cv_lib_c_sigwait" >&6
5113 if test $ac_cv_lib_c_sigwait = yes; then
5114 cat >>confdefs.h <<\_ACEOF
5115 #define HAVE_SIGWAIT 1
5119 echo "$as_me:$LINENO: checking for sigwait in -lpthread" >&5
5120 echo $ECHO_N "checking for sigwait in -lpthread... $ECHO_C" >&6
5121 if test "${ac_cv_lib_pthread_sigwait+set}" = set; then
5122 echo $ECHO_N "(cached) $ECHO_C" >&6
5124 ac_check_lib_save_LIBS=$LIBS
5125 LIBS="-lpthread $LIBS"
5126 cat >conftest.$ac_ext <<_ACEOF
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h. */
5133 /* Override any gcc2 internal prototype to avoid an error. */
5137 /* We use char because int might match the return type of a gcc2
5138 builtin and then its argument prototype would still apply. */
5148 rm -f conftest.$ac_objext conftest$ac_exeext
5149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5150 (eval $ac_link) 2>conftest.er1
5152 grep -v '^ *+' conftest.er1 >conftest.err
5154 cat conftest.err >&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); } &&
5157 { ac_try='test -z "$ac_c_werror_flag"
5158 || test ! -s conftest.err'
5159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); }; } &&
5164 { ac_try='test -s conftest$ac_exeext'
5165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); }; }; then
5170 ac_cv_lib_pthread_sigwait=yes
5172 echo "$as_me: failed program was:" >&5
5173 sed 's/^/| /' conftest.$ac_ext >&5
5175 ac_cv_lib_pthread_sigwait=no
5177 rm -f conftest.err conftest.$ac_objext \
5178 conftest$ac_exeext conftest.$ac_ext
5179 LIBS=$ac_check_lib_save_LIBS
5181 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sigwait" >&5
5182 echo "${ECHO_T}$ac_cv_lib_pthread_sigwait" >&6
5183 if test $ac_cv_lib_pthread_sigwait = yes; then
5184 cat >>confdefs.h <<\_ACEOF
5185 #define HAVE_SIGWAIT 1
5189 echo "$as_me:$LINENO: checking for _Psigwait in -lpthread" >&5
5190 echo $ECHO_N "checking for _Psigwait in -lpthread... $ECHO_C" >&6
5191 if test "${ac_cv_lib_pthread__Psigwait+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 ac_check_lib_save_LIBS=$LIBS
5195 LIBS="-lpthread $LIBS"
5196 cat >conftest.$ac_ext <<_ACEOF
5199 cat confdefs.h >>conftest.$ac_ext
5200 cat >>conftest.$ac_ext <<_ACEOF
5201 /* end confdefs.h. */
5203 /* Override any gcc2 internal prototype to avoid an error. */
5207 /* We use char because int might match the return type of a gcc2
5208 builtin and then its argument prototype would still apply. */
5218 rm -f conftest.$ac_objext conftest$ac_exeext
5219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5220 (eval $ac_link) 2>conftest.er1
5222 grep -v '^ *+' conftest.er1 >conftest.err
5224 cat conftest.err >&5
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); } &&
5227 { ac_try='test -z "$ac_c_werror_flag"
5228 || test ! -s conftest.err'
5229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); }; } &&
5234 { ac_try='test -s conftest$ac_exeext'
5235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }; }; then
5240 ac_cv_lib_pthread__Psigwait=yes
5242 echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.$ac_ext >&5
5245 ac_cv_lib_pthread__Psigwait=no
5247 rm -f conftest.err conftest.$ac_objext \
5248 conftest$ac_exeext conftest.$ac_ext
5249 LIBS=$ac_check_lib_save_LIBS
5251 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread__Psigwait" >&5
5252 echo "${ECHO_T}$ac_cv_lib_pthread__Psigwait" >&6
5253 if test $ac_cv_lib_pthread__Psigwait = yes; then
5254 cat >>confdefs.h <<\_ACEOF
5255 #define HAVE_SIGWAIT 1
5266 echo "$as_me:$LINENO: checking for pthread_attr_getstacksize" >&5
5267 echo $ECHO_N "checking for pthread_attr_getstacksize... $ECHO_C" >&6
5268 if test "${ac_cv_func_pthread_attr_getstacksize+set}" = set; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 cat >conftest.$ac_ext <<_ACEOF
5274 cat confdefs.h >>conftest.$ac_ext
5275 cat >>conftest.$ac_ext <<_ACEOF
5276 /* end confdefs.h. */
5277 /* Define pthread_attr_getstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_getstacksize.
5278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5279 #define pthread_attr_getstacksize innocuous_pthread_attr_getstacksize
5281 /* System header to define __stub macros and hopefully few prototypes,
5282 which can conflict with char pthread_attr_getstacksize (); below.
5283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5284 <limits.h> exists even on freestanding compilers. */
5287 # include <limits.h>
5289 # include <assert.h>
5292 #undef pthread_attr_getstacksize
5294 /* Override any gcc2 internal prototype to avoid an error. */
5299 /* We use char because int might match the return type of a gcc2
5300 builtin and then its argument prototype would still apply. */
5301 char pthread_attr_getstacksize ();
5302 /* The GNU C library defines this for functions which it implements
5303 to always fail with ENOSYS. Some functions are actually named
5304 something starting with __ and the normal name is an alias. */
5305 #if defined (__stub_pthread_attr_getstacksize) || defined (__stub___pthread_attr_getstacksize)
5308 char (*f) () = pthread_attr_getstacksize;
5317 return f != pthread_attr_getstacksize;
5322 rm -f conftest.$ac_objext conftest$ac_exeext
5323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5324 (eval $ac_link) 2>conftest.er1
5326 grep -v '^ *+' conftest.er1 >conftest.err
5328 cat conftest.err >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); } &&
5331 { ac_try='test -z "$ac_c_werror_flag"
5332 || test ! -s conftest.err'
5333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; } &&
5338 { ac_try='test -s conftest$ac_exeext'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }; then
5344 ac_cv_func_pthread_attr_getstacksize=yes
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5349 ac_cv_func_pthread_attr_getstacksize=no
5351 rm -f conftest.err conftest.$ac_objext \
5352 conftest$ac_exeext conftest.$ac_ext
5354 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getstacksize" >&5
5355 echo "${ECHO_T}$ac_cv_func_pthread_attr_getstacksize" >&6
5356 if test $ac_cv_func_pthread_attr_getstacksize = yes; then
5357 cat >>confdefs.h <<\_ACEOF
5358 #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
5365 # Additional OS-specific issues related to pthreads and sigwait.
5369 # One more place to look for sigwait.
5372 echo "$as_me:$LINENO: checking for sigwait in -lc_r" >&5
5373 echo $ECHO_N "checking for sigwait in -lc_r... $ECHO_C" >&6
5374 if test "${ac_cv_lib_c_r_sigwait+set}" = set; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5377 ac_check_lib_save_LIBS=$LIBS
5379 cat >conftest.$ac_ext <<_ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5386 /* Override any gcc2 internal prototype to avoid an error. */
5390 /* We use char because int might match the return type of a gcc2
5391 builtin and then its argument prototype would still apply. */
5401 rm -f conftest.$ac_objext conftest$ac_exeext
5402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5403 (eval $ac_link) 2>conftest.er1
5405 grep -v '^ *+' conftest.er1 >conftest.err
5407 cat conftest.err >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); } &&
5410 { ac_try='test -z "$ac_c_werror_flag"
5411 || test ! -s conftest.err'
5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; } &&
5417 { ac_try='test -s conftest$ac_exeext'
5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; }; then
5423 ac_cv_lib_c_r_sigwait=yes
5425 echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5428 ac_cv_lib_c_r_sigwait=no
5430 rm -f conftest.err conftest.$ac_objext \
5431 conftest$ac_exeext conftest.$ac_ext
5432 LIBS=$ac_check_lib_save_LIBS
5434 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_sigwait" >&5
5435 echo "${ECHO_T}$ac_cv_lib_c_r_sigwait" >&6
5436 if test $ac_cv_lib_c_r_sigwait = yes; then
5437 cat >>confdefs.h <<\_ACEOF
5438 #define HAVE_SIGWAIT 1
5445 # BSDI 3.0 through 4.0.1 needs pthread_init() to be
5446 # called before certain pthreads calls. This is deprecated
5449 *-bsdi3.*|*-bsdi4.0*)
5450 cat >>confdefs.h <<\_ACEOF
5451 #define NEED_PTHREAD_INIT 1
5456 # LinuxThreads requires some changes to the way we
5457 # deal with signals.
5460 cat >>confdefs.h <<\_ACEOF
5461 #define HAVE_LINUXTHREADS 1
5466 # Ensure the right sigwait() semantics on Solaris and make
5467 # sure we call pthread_setconcurrency.
5470 cat >>confdefs.h <<\_ACEOF
5471 #define _POSIX_PTHREAD_SEMANTICS 1
5474 echo "$as_me:$LINENO: checking for pthread_setconcurrency" >&5
5475 echo $ECHO_N "checking for pthread_setconcurrency... $ECHO_C" >&6
5476 if test "${ac_cv_func_pthread_setconcurrency+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 cat >conftest.$ac_ext <<_ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5485 /* Define pthread_setconcurrency to an innocuous variant, in case <limits.h> declares pthread_setconcurrency.
5486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5487 #define pthread_setconcurrency innocuous_pthread_setconcurrency
5489 /* System header to define __stub macros and hopefully few prototypes,
5490 which can conflict with char pthread_setconcurrency (); below.
5491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5492 <limits.h> exists even on freestanding compilers. */
5495 # include <limits.h>
5497 # include <assert.h>
5500 #undef pthread_setconcurrency
5502 /* Override any gcc2 internal prototype to avoid an error. */
5507 /* We use char because int might match the return type of a gcc2
5508 builtin and then its argument prototype would still apply. */
5509 char pthread_setconcurrency ();
5510 /* The GNU C library defines this for functions which it implements
5511 to always fail with ENOSYS. Some functions are actually named
5512 something starting with __ and the normal name is an alias. */
5513 #if defined (__stub_pthread_setconcurrency) || defined (__stub___pthread_setconcurrency)
5516 char (*f) () = pthread_setconcurrency;
5525 return f != pthread_setconcurrency;
5530 rm -f conftest.$ac_objext conftest$ac_exeext
5531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5532 (eval $ac_link) 2>conftest.er1
5534 grep -v '^ *+' conftest.er1 >conftest.err
5536 cat conftest.err >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } &&
5539 { ac_try='test -z "$ac_c_werror_flag"
5540 || test ! -s conftest.err'
5541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); }; } &&
5546 { ac_try='test -s conftest$ac_exeext'
5547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; }; then
5552 ac_cv_func_pthread_setconcurrency=yes
5554 echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.$ac_ext >&5
5557 ac_cv_func_pthread_setconcurrency=no
5559 rm -f conftest.err conftest.$ac_objext \
5560 conftest$ac_exeext conftest.$ac_ext
5562 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_setconcurrency" >&5
5563 echo "${ECHO_T}$ac_cv_func_pthread_setconcurrency" >&6
5564 if test $ac_cv_func_pthread_setconcurrency = yes; then
5565 cat >>confdefs.h <<\_ACEOF
5566 #define CALL_PTHREAD_SETCONCURRENCY 1
5571 cat >>confdefs.h <<\_ACEOF
5572 #define POSIX_GETPWUID_R 1
5575 cat >>confdefs.h <<\_ACEOF
5576 #define POSIX_GETPWNAM_R 1
5579 cat >>confdefs.h <<\_ACEOF
5580 #define POSIX_GETGRGID_R 1
5583 cat >>confdefs.h <<\_ACEOF
5584 #define POSIX_GETGRNAM_R 1
5589 cat >>confdefs.h <<\_ACEOF
5590 #define NEED_ENDNETGRENT_R 1
5593 cat >>confdefs.h <<\_ACEOF
5594 #define _PTHREADS_DRAFT4 1
5599 # UnixWare does things its own way.
5602 cat >>confdefs.h <<\_ACEOF
5603 #define HAVE_UNIXWARE_SIGWAIT 1
5610 # Look for sysconf to allow detection of the number of processors.
5612 echo "$as_me:$LINENO: checking for sysconf" >&5
5613 echo $ECHO_N "checking for sysconf... $ECHO_C" >&6
5614 if test "${ac_cv_func_sysconf+set}" = set; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5617 cat >conftest.$ac_ext <<_ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h. */
5623 /* Define sysconf to an innocuous variant, in case <limits.h> declares sysconf.
5624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5625 #define sysconf innocuous_sysconf
5627 /* System header to define __stub macros and hopefully few prototypes,
5628 which can conflict with char sysconf (); below.
5629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5630 <limits.h> exists even on freestanding compilers. */
5633 # include <limits.h>
5635 # include <assert.h>
5640 /* Override any gcc2 internal prototype to avoid an error. */
5645 /* We use char because int might match the return type of a gcc2
5646 builtin and then its argument prototype would still apply. */
5648 /* The GNU C library defines this for functions which it implements
5649 to always fail with ENOSYS. Some functions are actually named
5650 something starting with __ and the normal name is an alias. */
5651 #if defined (__stub_sysconf) || defined (__stub___sysconf)
5654 char (*f) () = sysconf;
5663 return f != sysconf;
5668 rm -f conftest.$ac_objext conftest$ac_exeext
5669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5670 (eval $ac_link) 2>conftest.er1
5672 grep -v '^ *+' conftest.er1 >conftest.err
5674 cat conftest.err >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); } &&
5677 { ac_try='test -z "$ac_c_werror_flag"
5678 || test ! -s conftest.err'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; } &&
5684 { ac_try='test -s conftest$ac_exeext'
5685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); }; }; then
5690 ac_cv_func_sysconf=yes
5692 echo "$as_me: failed program was:" >&5
5693 sed 's/^/| /' conftest.$ac_ext >&5
5695 ac_cv_func_sysconf=no
5697 rm -f conftest.err conftest.$ac_objext \
5698 conftest$ac_exeext conftest.$ac_ext
5700 echo "$as_me:$LINENO: result: $ac_cv_func_sysconf" >&5
5701 echo "${ECHO_T}$ac_cv_func_sysconf" >&6
5702 if test $ac_cv_func_sysconf = yes; then
5703 cat >>confdefs.h <<\_ACEOF
5704 #define HAVE_SYSCONF 1
5710 if test "X$GCC" = "Xyes"; then
5714 CCOPT="$CCOPT -pthread"
5715 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
5719 CCOPT="$CCOPT -pthread"
5722 LIBS="$LIBS -lthread"
5725 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
5732 CCOPT="$CCOPT -pthread"
5739 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
5743 CCOPT="$CCOPT -Kthread"
5747 cat >>confdefs.h <<\_ACEOF
5748 #define _REENTRANT 1
5751 ALWAYS_DEFINES="-D_REENTRANT"
5752 DO_PTHREADS="#define DO_PTHREADS 1"
5753 WANT_IRS_THREADSGR_OBJS="\${WANT_IRS_THREADSGR_OBJS}"
5754 WANT_IRS_THREADSPW_OBJS="\${WANT_IRS_THREADSPW_OBJS}"
5757 WANT_IRS_THREADS_OBJS="";;
5759 WANT_IRS_THREADS_OBJS="\${WANT_IRS_THREADS_OBJS}";;
5761 WANT_THREADS_OBJS="\${WANT_THREADS_OBJS}"
5765 DO_PTHREADS="#undef DO_PTHREADS"
5766 WANT_IRS_THREADSGR_OBJS=""
5767 WANT_IRS_THREADSPW_OBJS=""
5768 WANT_IRS_THREADS_OBJS=""
5769 WANT_THREADS_OBJS=""
5770 thread_dir=nothreads
5780 echo "$as_me:$LINENO: checking for strlcat" >&5
5781 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
5782 if test "${ac_cv_func_strlcat+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 cat >conftest.$ac_ext <<_ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5791 /* Define strlcat to an innocuous variant, in case <limits.h> declares strlcat.
5792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5793 #define strlcat innocuous_strlcat
5795 /* System header to define __stub macros and hopefully few prototypes,
5796 which can conflict with char strlcat (); below.
5797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5798 <limits.h> exists even on freestanding compilers. */
5801 # include <limits.h>
5803 # include <assert.h>
5808 /* Override any gcc2 internal prototype to avoid an error. */
5813 /* We use char because int might match the return type of a gcc2
5814 builtin and then its argument prototype would still apply. */
5816 /* The GNU C library defines this for functions which it implements
5817 to always fail with ENOSYS. Some functions are actually named
5818 something starting with __ and the normal name is an alias. */
5819 #if defined (__stub_strlcat) || defined (__stub___strlcat)
5822 char (*f) () = strlcat;
5831 return f != strlcat;
5836 rm -f conftest.$ac_objext conftest$ac_exeext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5838 (eval $ac_link) 2>conftest.er1
5840 grep -v '^ *+' conftest.er1 >conftest.err
5842 cat conftest.err >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } &&
5845 { ac_try='test -z "$ac_c_werror_flag"
5846 || test ! -s conftest.err'
5847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); }; } &&
5852 { ac_try='test -s conftest$ac_exeext'
5853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); }; }; then
5858 ac_cv_func_strlcat=yes
5860 echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5863 ac_cv_func_strlcat=no
5865 rm -f conftest.err conftest.$ac_objext \
5866 conftest$ac_exeext conftest.$ac_ext
5868 echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5
5869 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
5870 if test $ac_cv_func_strlcat = yes; then
5871 cat >>confdefs.h <<\_ACEOF
5872 #define HAVE_STRLCAT 1
5878 echo "$as_me:$LINENO: checking for if_nametoindex" >&5
5879 echo $ECHO_N "checking for if_nametoindex... $ECHO_C" >&6
5880 if test "${ac_cv_func_if_nametoindex+set}" = set; then
5881 echo $ECHO_N "(cached) $ECHO_C" >&6
5883 cat >conftest.$ac_ext <<_ACEOF
5886 cat confdefs.h >>conftest.$ac_ext
5887 cat >>conftest.$ac_ext <<_ACEOF
5888 /* end confdefs.h. */
5889 /* Define if_nametoindex to an innocuous variant, in case <limits.h> declares if_nametoindex.
5890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5891 #define if_nametoindex innocuous_if_nametoindex
5893 /* System header to define __stub macros and hopefully few prototypes,
5894 which can conflict with char if_nametoindex (); below.
5895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5896 <limits.h> exists even on freestanding compilers. */
5899 # include <limits.h>
5901 # include <assert.h>
5904 #undef if_nametoindex
5906 /* Override any gcc2 internal prototype to avoid an error. */
5911 /* We use char because int might match the return type of a gcc2
5912 builtin and then its argument prototype would still apply. */
5913 char if_nametoindex ();
5914 /* The GNU C library defines this for functions which it implements
5915 to always fail with ENOSYS. Some functions are actually named
5916 something starting with __ and the normal name is an alias. */
5917 #if defined (__stub_if_nametoindex) || defined (__stub___if_nametoindex)
5920 char (*f) () = if_nametoindex;
5929 return f != if_nametoindex;
5934 rm -f conftest.$ac_objext conftest$ac_exeext
5935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5936 (eval $ac_link) 2>conftest.er1
5938 grep -v '^ *+' conftest.er1 >conftest.err
5940 cat conftest.err >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); } &&
5943 { ac_try='test -z "$ac_c_werror_flag"
5944 || test ! -s conftest.err'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; } &&
5950 { ac_try='test -s conftest$ac_exeext'
5951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; }; then
5956 ac_cv_func_if_nametoindex=yes
5958 echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5961 ac_cv_func_if_nametoindex=no
5963 rm -f conftest.err conftest.$ac_objext \
5964 conftest$ac_exeext conftest.$ac_ext
5966 echo "$as_me:$LINENO: result: $ac_cv_func_if_nametoindex" >&5
5967 echo "${ECHO_T}$ac_cv_func_if_nametoindex" >&6
5968 if test $ac_cv_func_if_nametoindex = yes; then
5969 USE_IFNAMELINKID="#define USE_IFNAMELINKID 1"
5971 USE_IFNAMELINKID="#undef USE_IFNAMELINKID"
5976 ISC_THREAD_DIR=$thread_dir
5979 echo "$as_me:$LINENO: checking for daemon" >&5
5980 echo $ECHO_N "checking for daemon... $ECHO_C" >&6
5981 if test "${ac_cv_func_daemon+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5984 cat >conftest.$ac_ext <<_ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h. */
5990 /* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
5991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5992 #define daemon innocuous_daemon
5994 /* System header to define __stub macros and hopefully few prototypes,
5995 which can conflict with char daemon (); below.
5996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5997 <limits.h> exists even on freestanding compilers. */
6000 # include <limits.h>
6002 # include <assert.h>
6007 /* Override any gcc2 internal prototype to avoid an error. */
6012 /* We use char because int might match the return type of a gcc2
6013 builtin and then its argument prototype would still apply. */
6015 /* The GNU C library defines this for functions which it implements
6016 to always fail with ENOSYS. Some functions are actually named
6017 something starting with __ and the normal name is an alias. */
6018 #if defined (__stub_daemon) || defined (__stub___daemon)
6021 char (*f) () = daemon;
6035 rm -f conftest.$ac_objext conftest$ac_exeext
6036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6037 (eval $ac_link) 2>conftest.er1
6039 grep -v '^ *+' conftest.er1 >conftest.err
6041 cat conftest.err >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } &&
6044 { ac_try='test -z "$ac_c_werror_flag"
6045 || test ! -s conftest.err'
6046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); }; } &&
6051 { ac_try='test -s conftest$ac_exeext'
6052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); }; }; then
6057 ac_cv_func_daemon=yes
6059 echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6062 ac_cv_func_daemon=no
6064 rm -f conftest.err conftest.$ac_objext \
6065 conftest$ac_exeext conftest.$ac_ext
6067 echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
6068 echo "${ECHO_T}$ac_cv_func_daemon" >&6
6069 if test $ac_cv_func_daemon = yes; then
6070 DAEMON_OBJS="" NEED_DAEMON="#undef NEED_DAEMON"
6073 DAEMON_OBJS="\${DAEMON_OBJS}" NEED_DAEMON="#define NEED_DAEMON 1"
6080 echo "$as_me:$LINENO: checking for strsep" >&5
6081 echo $ECHO_N "checking for strsep... $ECHO_C" >&6
6082 if test "${ac_cv_func_strsep+set}" = set; then
6083 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 cat >conftest.$ac_ext <<_ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h. */
6091 /* Define strsep to an innocuous variant, in case <limits.h> declares strsep.
6092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6093 #define strsep innocuous_strsep
6095 /* System header to define __stub macros and hopefully few prototypes,
6096 which can conflict with char strsep (); below.
6097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6098 <limits.h> exists even on freestanding compilers. */
6101 # include <limits.h>
6103 # include <assert.h>
6108 /* Override any gcc2 internal prototype to avoid an error. */
6113 /* We use char because int might match the return type of a gcc2
6114 builtin and then its argument prototype would still apply. */
6116 /* The GNU C library defines this for functions which it implements
6117 to always fail with ENOSYS. Some functions are actually named
6118 something starting with __ and the normal name is an alias. */
6119 #if defined (__stub_strsep) || defined (__stub___strsep)
6122 char (*f) () = strsep;
6136 rm -f conftest.$ac_objext conftest$ac_exeext
6137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6138 (eval $ac_link) 2>conftest.er1
6140 grep -v '^ *+' conftest.er1 >conftest.err
6142 cat conftest.err >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } &&
6145 { ac_try='test -z "$ac_c_werror_flag"
6146 || test ! -s conftest.err'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; } &&
6152 { ac_try='test -s conftest$ac_exeext'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; }; then
6158 ac_cv_func_strsep=yes
6160 echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.$ac_ext >&5
6163 ac_cv_func_strsep=no
6165 rm -f conftest.err conftest.$ac_objext \
6166 conftest$ac_exeext conftest.$ac_ext
6168 echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
6169 echo "${ECHO_T}$ac_cv_func_strsep" >&6
6170 if test $ac_cv_func_strsep = yes; then
6171 STRSEP_OBJS="" NEED_STRSEP="#undef NEED_STRSEP"
6174 STRSEP_OBJS="\${STRSEP_OBJS}" NEED_STRSEP="#define NEED_STRSEP 1"
6181 echo "$as_me:$LINENO: checking for strerror" >&5
6182 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
6183 if test "${ac_cv_func_strerror+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 cat >conftest.$ac_ext <<_ACEOF
6189 cat confdefs.h >>conftest.$ac_ext
6190 cat >>conftest.$ac_ext <<_ACEOF
6191 /* end confdefs.h. */
6192 /* Define strerror to an innocuous variant, in case <limits.h> declares strerror.
6193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6194 #define strerror innocuous_strerror
6196 /* System header to define __stub macros and hopefully few prototypes,
6197 which can conflict with char strerror (); below.
6198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6199 <limits.h> exists even on freestanding compilers. */
6202 # include <limits.h>
6204 # include <assert.h>
6209 /* Override any gcc2 internal prototype to avoid an error. */
6214 /* We use char because int might match the return type of a gcc2
6215 builtin and then its argument prototype would still apply. */
6217 /* The GNU C library defines this for functions which it implements
6218 to always fail with ENOSYS. Some functions are actually named
6219 something starting with __ and the normal name is an alias. */
6220 #if defined (__stub_strerror) || defined (__stub___strerror)
6223 char (*f) () = strerror;
6232 return f != strerror;
6237 rm -f conftest.$ac_objext conftest$ac_exeext
6238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6239 (eval $ac_link) 2>conftest.er1
6241 grep -v '^ *+' conftest.er1 >conftest.err
6243 cat conftest.err >&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } &&
6246 { ac_try='test -z "$ac_c_werror_flag"
6247 || test ! -s conftest.err'
6248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; } &&
6253 { ac_try='test -s conftest$ac_exeext'
6254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); }; }; then
6259 ac_cv_func_strerror=yes
6261 echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6264 ac_cv_func_strerror=no
6266 rm -f conftest.err conftest.$ac_objext \
6267 conftest$ac_exeext conftest.$ac_ext
6269 echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
6270 echo "${ECHO_T}$ac_cv_func_strerror" >&6
6271 if test $ac_cv_func_strerror = yes; then
6272 NEED_STRERROR="#undef NEED_STRERROR"
6274 NEED_STRERROR="#define NEED_STRERROR 1"
6280 # flockfile is usually provided by pthreads, but we may want to use it
6281 # even if compiled with --disable-threads.
6283 echo "$as_me:$LINENO: checking for flockfile" >&5
6284 echo $ECHO_N "checking for flockfile... $ECHO_C" >&6
6285 if test "${ac_cv_func_flockfile+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 cat >conftest.$ac_ext <<_ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6294 /* Define flockfile to an innocuous variant, in case <limits.h> declares flockfile.
6295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6296 #define flockfile innocuous_flockfile
6298 /* System header to define __stub macros and hopefully few prototypes,
6299 which can conflict with char flockfile (); below.
6300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6301 <limits.h> exists even on freestanding compilers. */
6304 # include <limits.h>
6306 # include <assert.h>
6311 /* Override any gcc2 internal prototype to avoid an error. */
6316 /* We use char because int might match the return type of a gcc2
6317 builtin and then its argument prototype would still apply. */
6319 /* The GNU C library defines this for functions which it implements
6320 to always fail with ENOSYS. Some functions are actually named
6321 something starting with __ and the normal name is an alias. */
6322 #if defined (__stub_flockfile) || defined (__stub___flockfile)
6325 char (*f) () = flockfile;
6334 return f != flockfile;
6339 rm -f conftest.$ac_objext conftest$ac_exeext
6340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6341 (eval $ac_link) 2>conftest.er1
6343 grep -v '^ *+' conftest.er1 >conftest.err
6345 cat conftest.err >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); } &&
6348 { ac_try='test -z "$ac_c_werror_flag"
6349 || test ! -s conftest.err'
6350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }; } &&
6355 { ac_try='test -s conftest$ac_exeext'
6356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; }; then
6361 ac_cv_func_flockfile=yes
6363 echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6366 ac_cv_func_flockfile=no
6368 rm -f conftest.err conftest.$ac_objext \
6369 conftest$ac_exeext conftest.$ac_ext
6371 echo "$as_me:$LINENO: result: $ac_cv_func_flockfile" >&5
6372 echo "${ECHO_T}$ac_cv_func_flockfile" >&6
6373 if test $ac_cv_func_flockfile = yes; then
6374 cat >>confdefs.h <<\_ACEOF
6375 #define HAVE_FLOCKFILE 1
6382 # Indicate what the final decision was regarding threads.
6384 echo "$as_me:$LINENO: checking whether to build with threads" >&5
6385 echo $ECHO_N "checking whether to build with threads... $ECHO_C" >&6
6386 if $use_threads; then
6387 echo "$as_me:$LINENO: result: yes" >&5
6388 echo "${ECHO_T}yes" >&6
6390 echo "$as_me:$LINENO: result: no" >&5
6391 echo "${ECHO_T}no" >&6
6395 # End of pthreads stuff.
6399 # Additional compiler settings.
6403 IRIX_DNSSEC_WARNINGS_HACK=""
6405 if test "X$GCC" = "Xyes"; then
6406 STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings"
6416 # The version of the C compiler that constantly warns about
6417 # 'const' as well as alignment issues is unfortunately not
6418 # able to be discerned via the version of the operating
6419 # system, nor does cc have a version flag.
6420 case "`$CC +W 123 2>&1`" in
6425 # Turn off the pointlessly noisy warnings.
6426 STD_CWARNINGS="+w1 +W 474,530,2193,2236"
6429 CCOPT="$CCOPT -Ae -z"
6430 LIBS="-Wl,+vnocompatwarnings $LIBS"
6431 MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>&1 | awk '"'"'BEGIN {colon=0; rec="";} { for (i = 0 ; i < NF; i++) { if (colon && a$i) continue; if ($i == "\\") continue; if (!colon) { rec = $i continue; } if ($i == ":") { rec = rec " :" colon = 1 continue; } if (length(rec $i) > 76) { print rec " \\"; rec = "\t" $i; a$i = 1; } else { rec = rec " " $i a$i = 1; } } } END {print rec}'"'"' >>$TMP'
6432 MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP'
6435 STD_CWARNINGS="-fullwarn -woff 1209"
6437 # Silence more than 250 instances of
6438 # "prototyped function redeclared without prototype"
6439 # and 11 instances of
6440 # "variable ... was set but never used"
6441 # from lib/dns/sec/openssl.
6443 IRIX_DNSSEC_WARNINGS_HACK="-woff 1692,1552"
6455 # _GNU_SOURCE is needed to access the fd_bits field of struct fd_set, which
6456 # is supposed to be opaque.
6460 STD_CDEFINES="$STD_CDEFINES -D_GNU_SOURCE"
6472 echo "$as_me:$LINENO: checking for catgets" >&5
6473 echo $ECHO_N "checking for catgets... $ECHO_C" >&6
6474 if test "${ac_cv_func_catgets+set}" = set; then
6475 echo $ECHO_N "(cached) $ECHO_C" >&6
6477 cat >conftest.$ac_ext <<_ACEOF
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h. */
6483 /* Define catgets to an innocuous variant, in case <limits.h> declares catgets.
6484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6485 #define catgets innocuous_catgets
6487 /* System header to define __stub macros and hopefully few prototypes,
6488 which can conflict with char catgets (); below.
6489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6490 <limits.h> exists even on freestanding compilers. */
6493 # include <limits.h>
6495 # include <assert.h>
6500 /* Override any gcc2 internal prototype to avoid an error. */
6505 /* We use char because int might match the return type of a gcc2
6506 builtin and then its argument prototype would still apply. */
6508 /* The GNU C library defines this for functions which it implements
6509 to always fail with ENOSYS. Some functions are actually named
6510 something starting with __ and the normal name is an alias. */
6511 #if defined (__stub_catgets) || defined (__stub___catgets)
6514 char (*f) () = catgets;
6523 return f != catgets;
6528 rm -f conftest.$ac_objext conftest$ac_exeext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6530 (eval $ac_link) 2>conftest.er1
6532 grep -v '^ *+' conftest.er1 >conftest.err
6534 cat conftest.err >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } &&
6537 { ac_try='test -z "$ac_c_werror_flag"
6538 || test ! -s conftest.err'
6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; } &&
6544 { ac_try='test -s conftest$ac_exeext'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; }; then
6550 ac_cv_func_catgets=yes
6552 echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6555 ac_cv_func_catgets=no
6557 rm -f conftest.err conftest.$ac_objext \
6558 conftest$ac_exeext conftest.$ac_ext
6560 echo "$as_me:$LINENO: result: $ac_cv_func_catgets" >&5
6561 echo "${ECHO_T}$ac_cv_func_catgets" >&6
6562 if test $ac_cv_func_catgets = yes; then
6563 cat >>confdefs.h <<\_ACEOF
6564 #define HAVE_CATGETS 1
6571 # -lxnet buys us one big porting headache... standards, gotta love 'em.
6573 # AC_CHECK_LIB(xnet, socket, ,
6574 # AC_CHECK_LIB(socket, socket)
6575 # AC_CHECK_LIB(nsl, inet_ntoa)
6578 # Use this for now, instead:
6585 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6586 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
6587 if test "${ac_cv_lib_socket_socket+set}" = set; then
6588 echo $ECHO_N "(cached) $ECHO_C" >&6
6590 ac_check_lib_save_LIBS=$LIBS
6591 LIBS="-lsocket $LIBS"
6592 cat >conftest.$ac_ext <<_ACEOF
6595 cat confdefs.h >>conftest.$ac_ext
6596 cat >>conftest.$ac_ext <<_ACEOF
6597 /* end confdefs.h. */
6599 /* Override any gcc2 internal prototype to avoid an error. */
6603 /* We use char because int might match the return type of a gcc2
6604 builtin and then its argument prototype would still apply. */
6614 rm -f conftest.$ac_objext conftest$ac_exeext
6615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6616 (eval $ac_link) 2>conftest.er1
6618 grep -v '^ *+' conftest.er1 >conftest.err
6620 cat conftest.err >&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); } &&
6623 { ac_try='test -z "$ac_c_werror_flag"
6624 || test ! -s conftest.err'
6625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); }; } &&
6630 { ac_try='test -s conftest$ac_exeext'
6631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); }; }; then
6636 ac_cv_lib_socket_socket=yes
6638 echo "$as_me: failed program was:" >&5
6639 sed 's/^/| /' conftest.$ac_ext >&5
6641 ac_cv_lib_socket_socket=no
6643 rm -f conftest.err conftest.$ac_objext \
6644 conftest$ac_exeext conftest.$ac_ext
6645 LIBS=$ac_check_lib_save_LIBS
6647 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6648 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
6649 if test $ac_cv_lib_socket_socket = yes; then
6650 cat >>confdefs.h <<_ACEOF
6651 #define HAVE_LIBSOCKET 1
6654 LIBS="-lsocket $LIBS"
6659 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
6660 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
6661 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
6662 echo $ECHO_N "(cached) $ECHO_C" >&6
6664 ac_check_lib_save_LIBS=$LIBS
6666 cat >conftest.$ac_ext <<_ACEOF
6669 cat confdefs.h >>conftest.$ac_ext
6670 cat >>conftest.$ac_ext <<_ACEOF
6671 /* end confdefs.h. */
6673 /* Override any gcc2 internal prototype to avoid an error. */
6677 /* We use char because int might match the return type of a gcc2
6678 builtin and then its argument prototype would still apply. */
6688 rm -f conftest.$ac_objext conftest$ac_exeext
6689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6690 (eval $ac_link) 2>conftest.er1
6692 grep -v '^ *+' conftest.er1 >conftest.err
6694 cat conftest.err >&5
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } &&
6697 { ac_try='test -z "$ac_c_werror_flag"
6698 || test ! -s conftest.err'
6699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); }; } &&
6704 { ac_try='test -s conftest$ac_exeext'
6705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); }; }; then
6710 ac_cv_lib_nsl_inet_ntoa=yes
6712 echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6715 ac_cv_lib_nsl_inet_ntoa=no
6717 rm -f conftest.err conftest.$ac_objext \
6718 conftest$ac_exeext conftest.$ac_ext
6719 LIBS=$ac_check_lib_save_LIBS
6721 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
6722 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
6723 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
6724 cat >>confdefs.h <<_ACEOF
6725 #define HAVE_LIBNSL 1
6735 echo "$as_me:$LINENO: checking for gethostbyname_r in -ld4r" >&5
6736 echo $ECHO_N "checking for gethostbyname_r in -ld4r... $ECHO_C" >&6
6737 if test "${ac_cv_lib_d4r_gethostbyname_r+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6740 ac_check_lib_save_LIBS=$LIBS
6742 cat >conftest.$ac_ext <<_ACEOF
6745 cat confdefs.h >>conftest.$ac_ext
6746 cat >>conftest.$ac_ext <<_ACEOF
6747 /* end confdefs.h. */
6749 /* Override any gcc2 internal prototype to avoid an error. */
6753 /* We use char because int might match the return type of a gcc2
6754 builtin and then its argument prototype would still apply. */
6755 char gethostbyname_r ();
6764 rm -f conftest.$ac_objext conftest$ac_exeext
6765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6766 (eval $ac_link) 2>conftest.er1
6768 grep -v '^ *+' conftest.er1 >conftest.err
6770 cat conftest.err >&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); } &&
6773 { ac_try='test -z "$ac_c_werror_flag"
6774 || test ! -s conftest.err'
6775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); }; } &&
6780 { ac_try='test -s conftest$ac_exeext'
6781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); }; }; then
6786 ac_cv_lib_d4r_gethostbyname_r=yes
6788 echo "$as_me: failed program was:" >&5
6789 sed 's/^/| /' conftest.$ac_ext >&5
6791 ac_cv_lib_d4r_gethostbyname_r=no
6793 rm -f conftest.err conftest.$ac_objext \
6794 conftest$ac_exeext conftest.$ac_ext
6795 LIBS=$ac_check_lib_save_LIBS
6797 echo "$as_me:$LINENO: result: $ac_cv_lib_d4r_gethostbyname_r" >&5
6798 echo "${ECHO_T}$ac_cv_lib_d4r_gethostbyname_r" >&6
6799 if test $ac_cv_lib_d4r_gethostbyname_r = yes; then
6800 cat >>confdefs.h <<_ACEOF
6801 #define HAVE_LIBD4R 1
6809 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6810 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
6811 if test "${ac_cv_lib_socket_socket+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6814 ac_check_lib_save_LIBS=$LIBS
6815 LIBS="-lsocket $LIBS"
6816 cat >conftest.$ac_ext <<_ACEOF
6819 cat confdefs.h >>conftest.$ac_ext
6820 cat >>conftest.$ac_ext <<_ACEOF
6821 /* end confdefs.h. */
6823 /* Override any gcc2 internal prototype to avoid an error. */
6827 /* We use char because int might match the return type of a gcc2
6828 builtin and then its argument prototype would still apply. */
6838 rm -f conftest.$ac_objext conftest$ac_exeext
6839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6840 (eval $ac_link) 2>conftest.er1
6842 grep -v '^ *+' conftest.er1 >conftest.err
6844 cat conftest.err >&5
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); } &&
6847 { ac_try='test -z "$ac_c_werror_flag"
6848 || test ! -s conftest.err'
6849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); }; } &&
6854 { ac_try='test -s conftest$ac_exeext'
6855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); }; }; then
6860 ac_cv_lib_socket_socket=yes
6862 echo "$as_me: failed program was:" >&5
6863 sed 's/^/| /' conftest.$ac_ext >&5
6865 ac_cv_lib_socket_socket=no
6867 rm -f conftest.err conftest.$ac_objext \
6868 conftest$ac_exeext conftest.$ac_ext
6869 LIBS=$ac_check_lib_save_LIBS
6871 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6872 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
6873 if test $ac_cv_lib_socket_socket = yes; then
6874 cat >>confdefs.h <<_ACEOF
6875 #define HAVE_LIBSOCKET 1
6878 LIBS="-lsocket $LIBS"
6883 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
6884 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
6885 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6888 ac_check_lib_save_LIBS=$LIBS
6890 cat >conftest.$ac_ext <<_ACEOF
6893 cat confdefs.h >>conftest.$ac_ext
6894 cat >>conftest.$ac_ext <<_ACEOF
6895 /* end confdefs.h. */
6897 /* Override any gcc2 internal prototype to avoid an error. */
6901 /* We use char because int might match the return type of a gcc2
6902 builtin and then its argument prototype would still apply. */
6912 rm -f conftest.$ac_objext conftest$ac_exeext
6913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6914 (eval $ac_link) 2>conftest.er1
6916 grep -v '^ *+' conftest.er1 >conftest.err
6918 cat conftest.err >&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); } &&
6921 { ac_try='test -z "$ac_c_werror_flag"
6922 || test ! -s conftest.err'
6923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); }; } &&
6928 { ac_try='test -s conftest$ac_exeext'
6929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); }; }; then
6934 ac_cv_lib_nsl_inet_ntoa=yes
6936 echo "$as_me: failed program was:" >&5
6937 sed 's/^/| /' conftest.$ac_ext >&5
6939 ac_cv_lib_nsl_inet_ntoa=no
6941 rm -f conftest.err conftest.$ac_objext \
6942 conftest$ac_exeext conftest.$ac_ext
6943 LIBS=$ac_check_lib_save_LIBS
6945 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
6946 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
6947 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
6948 cat >>confdefs.h <<_ACEOF
6949 #define HAVE_LIBNSL 1
6962 echo "$as_me:$LINENO: checking whether to use purify" >&5
6963 echo $ECHO_N "checking whether to use purify... $ECHO_C" >&6
6965 # Check whether --with-purify or --without-purify was given.
6966 if test "${with_purify+set}" = set; then
6967 withval="$with_purify"
6968 use_purify="$withval"
6973 case "$use_purify" in
6977 # Extract the first word of "purify", so it can be a program name with args.
6978 set dummy purify; ac_word=$2
6979 echo "$as_me:$LINENO: checking for $ac_word" >&5
6980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6981 if test "${ac_cv_path_purify_path+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 case $purify_path in
6986 ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path.
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6996 ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext"
6997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify"
7007 purify_path=$ac_cv_path_purify_path
7009 if test -n "$purify_path"; then
7010 echo "$as_me:$LINENO: result: $purify_path" >&5
7011 echo "${ECHO_T}$purify_path" >&6
7013 echo "$as_me:$LINENO: result: no" >&5
7014 echo "${ECHO_T}no" >&6
7019 purify_path="$use_purify"
7023 case "$use_purify" in
7025 echo "$as_me:$LINENO: result: no" >&5
7026 echo "${ECHO_T}no" >&6
7030 if test -f $purify_path || test $purify_path = purify; then
7031 echo "$as_me:$LINENO: result: $purify_path" >&5
7032 echo "${ECHO_T}$purify_path" >&6
7033 PURIFYFLAGS="`echo $PURIFYOPTIONS`"
7034 PURIFY="$purify_path $PURIFYFLAGS"
7036 { { echo "$as_me:$LINENO: error: $purify_path not found.
7038 Please choose the proper path with the following command:
7040 configure --with-purify=PATH
7042 echo "$as_me: error: $purify_path not found.
7044 Please choose the proper path with the following command:
7046 configure --with-purify=PATH
7048 { (exit 1); exit 1; }; }
7056 # GNU libtool support
7059 # Check whether --with-libtool or --without-libtool was given.
7060 if test "${with_libtool+set}" = set; then
7061 withval="$with_libtool"
7062 use_libtool="$withval"
7067 case $use_libtool in
7069 # Check whether --enable-shared or --disable-shared was given.
7070 if test "${enable_shared+set}" = set; then
7071 enableval="$enable_shared"
7072 p=${PACKAGE-default}
7074 yes) enable_shared=yes ;;
7075 no) enable_shared=no ;;
7078 # Look at the argument we got. We use all the common list separators.
7079 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7080 for pkg in $enableval; do
7082 if test "X$pkg" = "X$p"; then
7093 # Check whether --enable-static or --disable-static was given.
7094 if test "${enable_static+set}" = set; then
7095 enableval="$enable_static"
7096 p=${PACKAGE-default}
7098 yes) enable_static=yes ;;
7099 no) enable_static=no ;;
7102 # Look at the argument we got. We use all the common list separators.
7103 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7104 for pkg in $enableval; do
7106 if test "X$pkg" = "X$p"; then
7117 # Check whether --enable-fast-install or --disable-fast-install was given.
7118 if test "${enable_fast_install+set}" = set; then
7119 enableval="$enable_fast_install"
7120 p=${PACKAGE-default}
7122 yes) enable_fast_install=yes ;;
7123 no) enable_fast_install=no ;;
7125 enable_fast_install=no
7126 # Look at the argument we got. We use all the common list separators.
7127 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7128 for pkg in $enableval; do
7130 if test "X$pkg" = "X$p"; then
7131 enable_fast_install=yes
7138 enable_fast_install=yes
7141 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7142 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
7143 if test "${lt_cv_path_SED+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7146 # Loop through the user's path and test for sed and gsed.
7147 # Then use that list of sed's as ones to test for truncation.
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 test -z "$as_dir" && as_dir=.
7153 for lt_ac_prog in sed gsed; do
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7156 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7163 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7164 # along with /bin/sed that truncates output.
7165 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7166 test ! -f $lt_ac_sed && break
7167 cat /dev/null > conftest.in
7169 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7170 # Check for GNU sed and select it if it is found.
7171 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7172 lt_cv_path_SED=$lt_ac_sed
7176 cat conftest.in conftest.in >conftest.tmp
7177 mv conftest.tmp conftest.in
7178 cp conftest.in conftest.nl
7180 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7181 cmp -s conftest.out conftest.nl || break
7182 # 10000 chars as input seems more than enough
7183 test $lt_ac_count -gt 10 && break
7184 lt_ac_count=`expr $lt_ac_count + 1`
7185 if test $lt_ac_count -gt $lt_ac_max; then
7186 lt_ac_max=$lt_ac_count
7187 lt_cv_path_SED=$lt_ac_sed
7195 echo "$as_me:$LINENO: result: $SED" >&5
7196 echo "${ECHO_T}$SED" >&6
7199 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7200 if test "${with_gnu_ld+set}" = set; then
7201 withval="$with_gnu_ld"
7202 test "$withval" = no || with_gnu_ld=yes
7207 if test "$GCC" = yes; then
7208 # Check if gcc -print-prog-name=ld gives a path.
7209 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7210 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
7213 # gcc leaves a trailing carriage return which upsets mingw
7214 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7216 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7219 # Accept absolute paths.
7221 re_direlt='/[^/][^/]*/\.\./'
7222 # Canonicalize the pathname of ld
7223 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
7224 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7225 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
7227 test -z "$LD" && LD="$ac_prog"
7230 # If it fails, then pretend we aren't using GCC.
7234 # If it is relative, then search for the first ld in PATH.
7238 elif test "$with_gnu_ld" = yes; then
7239 echo "$as_me:$LINENO: checking for GNU ld" >&5
7240 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7242 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7243 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7245 if test "${lt_cv_path_LD+set}" = set; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7248 if test -z "$LD"; then
7249 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7250 for ac_dir in $PATH; do
7252 test -z "$ac_dir" && ac_dir=.
7253 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7254 lt_cv_path_LD="$ac_dir/$ac_prog"
7255 # Check to see if the program is GNU ld. I'd rather use --version,
7256 # but apparently some GNU ld's only accept -v.
7257 # Break only if it was the GNU/non-GNU ld that we prefer.
7258 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7259 *GNU* | *'with BFD'*)
7260 test "$with_gnu_ld" != no && break
7263 test "$with_gnu_ld" != yes && break
7270 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7275 if test -n "$LD"; then
7276 echo "$as_me:$LINENO: result: $LD" >&5
7277 echo "${ECHO_T}$LD" >&6
7279 echo "$as_me:$LINENO: result: no" >&5
7280 echo "${ECHO_T}no" >&6
7282 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7283 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7284 { (exit 1); exit 1; }; }
7285 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7286 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7287 if test "${lt_cv_prog_gnu_ld+set}" = set; then
7288 echo $ECHO_N "(cached) $ECHO_C" >&6
7290 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7291 case `$LD -v 2>&1 </dev/null` in
7292 *GNU* | *'with BFD'*)
7293 lt_cv_prog_gnu_ld=yes
7296 lt_cv_prog_gnu_ld=no
7300 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7301 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
7302 with_gnu_ld=$lt_cv_prog_gnu_ld
7305 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7306 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
7307 if test "${lt_cv_ld_reload_flag+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 lt_cv_ld_reload_flag='-r'
7312 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7313 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
7314 reload_flag=$lt_cv_ld_reload_flag
7315 case $reload_flag in
7317 *) reload_flag=" $reload_flag" ;;
7319 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7322 if test "$GCC" = yes; then
7323 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
7325 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7330 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7331 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7332 if test "${lt_cv_path_NM+set}" = set; then
7333 echo $ECHO_N "(cached) $ECHO_C" >&6
7335 if test -n "$NM"; then
7336 # Let the user override the test.
7339 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7340 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7342 test -z "$ac_dir" && ac_dir=.
7343 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7344 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7345 # Check to see if the nm accepts a BSD-compat flag.
7346 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7347 # nm: unknown option "B" ignored
7348 # Tru64's nm complains that /dev/null is an invalid object file
7349 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7350 */dev/null* | *'Invalid file or object type'*)
7351 lt_cv_path_NM="$tmp_nm -B"
7355 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7357 lt_cv_path_NM="$tmp_nm -p"
7361 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7362 continue # so that we can try to find one that supports BSD flags
7369 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7372 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7373 echo "${ECHO_T}$lt_cv_path_NM" >&6
7376 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7377 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7379 if test "$LN_S" = "ln -s"; then
7380 echo "$as_me:$LINENO: result: yes" >&5
7381 echo "${ECHO_T}yes" >&6
7383 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7384 echo "${ECHO_T}no, using $LN_S" >&6
7387 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
7388 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
7389 if test "${lt_cv_deplibs_check_method+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7392 lt_cv_file_magic_cmd='$MAGIC_CMD'
7393 lt_cv_file_magic_test_file=
7394 lt_cv_deplibs_check_method='unknown'
7395 # Need to set the preceding variable on all platforms that support
7396 # interlibrary dependencies.
7397 # 'none' -- dependencies not supported.
7398 # `unknown' -- same as none, but documents that we really don't know.
7399 # 'pass_all' -- all dependencies passed with no checks.
7400 # 'test_compile' -- check by making test program.
7401 # 'file_magic [[regex]]' -- check by looking for files in library path
7402 # which responds to the $file_magic_cmd with a given extended regex.
7403 # If you have `file' or equivalent on your system and you're not sure
7404 # whether `pass_all' will *always* work, you probably want this one.
7408 lt_cv_deplibs_check_method=pass_all
7412 lt_cv_deplibs_check_method=pass_all
7416 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7417 lt_cv_file_magic_cmd='/usr/bin/file -L'
7418 lt_cv_file_magic_test_file=/shlib/libc.so
7422 # func_win32_libid is a shell function defined in ltmain.sh
7423 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7424 lt_cv_file_magic_cmd='func_win32_libid'
7428 # Base MSYS/MinGW do not provide the 'file' command needed by
7429 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
7430 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7431 lt_cv_file_magic_cmd='$OBJDUMP -f'
7434 darwin* | rhapsody*)
7435 lt_cv_deplibs_check_method=pass_all
7438 freebsd* | kfreebsd*-gnu)
7439 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7442 # Not sure whether the presence of OpenBSD here was a mistake.
7443 # Let's accept both of them until this is cleared up.
7444 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
7445 lt_cv_file_magic_cmd=/usr/bin/file
7446 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7450 lt_cv_deplibs_check_method=pass_all
7455 lt_cv_deplibs_check_method=pass_all
7458 hpux10.20* | hpux11*)
7459 lt_cv_file_magic_cmd=/usr/bin/file
7462 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7463 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7466 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]'
7467 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7470 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7471 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7476 irix5* | irix6* | nonstopux*)
7478 *-32|*"-32 ") libmagic=32-bit;;
7479 *-n32|*"-n32 ") libmagic=N32;;
7480 *-64|*"-64 ") libmagic=64-bit;;
7481 *) libmagic=never-match;;
7483 lt_cv_deplibs_check_method=pass_all
7486 # This must be Linux ELF.
7488 lt_cv_deplibs_check_method=pass_all
7492 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7493 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7495 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7500 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7501 lt_cv_file_magic_cmd=/usr/bin/file
7502 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7506 lt_cv_deplibs_check_method=unknown
7510 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7511 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7513 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7517 osf3* | osf4* | osf5*)
7518 lt_cv_deplibs_check_method=pass_all
7522 lt_cv_deplibs_check_method=pass_all
7526 lt_cv_deplibs_check_method=pass_all
7529 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7530 case $host_vendor in
7532 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]'
7533 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7536 lt_cv_deplibs_check_method=pass_all
7539 lt_cv_file_magic_cmd='/bin/file'
7540 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7543 lt_cv_file_magic_cmd='/bin/file'
7544 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7545 lt_cv_file_magic_test_file=/lib/libc.so
7548 lt_cv_deplibs_check_method=pass_all
7553 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
7554 lt_cv_deplibs_check_method=pass_all
7559 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7560 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
7561 file_magic_cmd=$lt_cv_file_magic_cmd
7562 deplibs_check_method=$lt_cv_deplibs_check_method
7563 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7568 # If no C compiler was specified, use CC.
7571 # Allow CC to be a program name with arguments.
7574 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7575 if test "${enable_libtool_lock+set}" = set; then
7576 enableval="$enable_libtool_lock"
7579 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7581 # Some flags need to be propagated to the compiler or linker for good
7585 # Find out which ABI we are using.
7586 echo 'int i;' > conftest.$ac_ext
7587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7588 (eval $ac_compile) 2>&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; then
7592 case `/usr/bin/file conftest.$ac_objext` in
7604 # Find out which ABI we are using.
7605 echo '#line 7605 "configure"' > conftest.$ac_ext
7606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7607 (eval $ac_compile) 2>&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); }; then
7611 if test "$lt_cv_prog_gnu_ld" = yes; then
7612 case `/usr/bin/file conftest.$ac_objext` in
7614 LD="${LD-ld} -melf32bsmip"
7617 LD="${LD-ld} -melf32bmipn32"
7620 LD="${LD-ld} -melf64bmip"
7624 case `/usr/bin/file conftest.$ac_objext` in
7640 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7641 # Find out which ABI we are using.
7642 echo 'int i;' > conftest.$ac_ext
7643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7644 (eval $ac_compile) 2>&5
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); }; then
7648 case "`/usr/bin/file conftest.o`" in
7652 LD="${LD-ld} -m elf_i386"
7654 ppc64-*linux*|powerpc64-*linux*)
7655 LD="${LD-ld} -m elf32ppclinux"
7658 LD="${LD-ld} -m elf_s390"
7661 LD="${LD-ld} -m elf32_sparc"
7668 LD="${LD-ld} -m elf_x86_64"
7670 ppc*-*linux*|powerpc*-*linux*)
7671 LD="${LD-ld} -m elf64ppc"
7674 LD="${LD-ld} -m elf64_s390"
7677 LD="${LD-ld} -m elf64_sparc"
7687 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7688 SAVE_CFLAGS="$CFLAGS"
7689 CFLAGS="$CFLAGS -belf"
7690 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7691 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7692 if test "${lt_cv_cc_needs_belf+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
7696 ac_cpp='$CPP $CPPFLAGS'
7697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7701 cat >conftest.$ac_ext <<_ACEOF
7704 cat confdefs.h >>conftest.$ac_ext
7705 cat >>conftest.$ac_ext <<_ACEOF
7706 /* end confdefs.h. */
7716 rm -f conftest.$ac_objext conftest$ac_exeext
7717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7718 (eval $ac_link) 2>conftest.er1
7720 grep -v '^ *+' conftest.er1 >conftest.err
7722 cat conftest.err >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); } &&
7725 { ac_try='test -z "$ac_c_werror_flag"
7726 || test ! -s conftest.err'
7727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); }; } &&
7732 { ac_try='test -s conftest$ac_exeext'
7733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; }; then
7738 lt_cv_cc_needs_belf=yes
7740 echo "$as_me: failed program was:" >&5
7741 sed 's/^/| /' conftest.$ac_ext >&5
7743 lt_cv_cc_needs_belf=no
7745 rm -f conftest.err conftest.$ac_objext \
7746 conftest$ac_exeext conftest.$ac_ext
7748 ac_cpp='$CPP $CPPFLAGS'
7749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7754 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7755 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7756 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7757 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7758 CFLAGS="$SAVE_CFLAGS"
7764 need_locks="$enable_libtool_lock"
7768 for ac_header in dlfcn.h
7770 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7772 echo "$as_me:$LINENO: checking for $ac_header" >&5
7773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7780 # Is the header compilable?
7781 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7782 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7783 cat >conftest.$ac_ext <<_ACEOF
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h. */
7789 $ac_includes_default
7790 #include <$ac_header>
7792 rm -f conftest.$ac_objext
7793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7794 (eval $ac_compile) 2>conftest.er1
7796 grep -v '^ *+' conftest.er1 >conftest.err
7798 cat conftest.err >&5
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); } &&
7801 { ac_try='test -z "$ac_c_werror_flag"
7802 || test ! -s conftest.err'
7803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); }; } &&
7808 { ac_try='test -s conftest.$ac_objext'
7809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); }; }; then
7814 ac_header_compiler=yes
7816 echo "$as_me: failed program was:" >&5
7817 sed 's/^/| /' conftest.$ac_ext >&5
7819 ac_header_compiler=no
7821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7822 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7823 echo "${ECHO_T}$ac_header_compiler" >&6
7825 # Is the header present?
7826 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7828 cat >conftest.$ac_ext <<_ACEOF
7831 cat confdefs.h >>conftest.$ac_ext
7832 cat >>conftest.$ac_ext <<_ACEOF
7833 /* end confdefs.h. */
7834 #include <$ac_header>
7836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7839 grep -v '^ *+' conftest.er1 >conftest.err
7841 cat conftest.err >&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); } >/dev/null; then
7844 if test -s conftest.err; then
7845 ac_cpp_err=$ac_c_preproc_warn_flag
7846 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7853 if test -z "$ac_cpp_err"; then
7854 ac_header_preproc=yes
7856 echo "$as_me: failed program was:" >&5
7857 sed 's/^/| /' conftest.$ac_ext >&5
7859 ac_header_preproc=no
7861 rm -f conftest.err conftest.$ac_ext
7862 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7863 echo "${ECHO_T}$ac_header_preproc" >&6
7865 # So? What about this header?
7866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7869 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7871 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7872 ac_header_preproc=yes
7875 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7876 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7877 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7878 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7879 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7880 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7881 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7882 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7885 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7886 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7889 ## ------------------------------------------ ##
7890 ## Report this to the AC_PACKAGE_NAME lists. ##
7891 ## ------------------------------------------ ##
7894 sed "s/^/$as_me: WARNING: /" >&2
7897 echo "$as_me:$LINENO: checking for $ac_header" >&5
7898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7900 echo $ECHO_N "(cached) $ECHO_C" >&6
7902 eval "$as_ac_Header=\$ac_header_preproc"
7904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7909 cat >>confdefs.h <<_ACEOF
7910 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7918 ac_cpp='$CXXCPP $CPPFLAGS'
7919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7922 if test -n "$ac_tool_prefix"; then
7923 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7925 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7926 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7927 echo "$as_me:$LINENO: checking for $ac_word" >&5
7928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7929 if test "${ac_cv_prog_CXX+set}" = set; then
7930 echo $ECHO_N "(cached) $ECHO_C" >&6
7932 if test -n "$CXX"; then
7933 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939 test -z "$as_dir" && as_dir=.
7940 for ac_exec_ext in '' $ac_executable_extensions; do
7941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7942 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7952 if test -n "$CXX"; then
7953 echo "$as_me:$LINENO: result: $CXX" >&5
7954 echo "${ECHO_T}$CXX" >&6
7956 echo "$as_me:$LINENO: result: no" >&5
7957 echo "${ECHO_T}no" >&6
7960 test -n "$CXX" && break
7963 if test -z "$CXX"; then
7965 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7967 # Extract the first word of "$ac_prog", so it can be a program name with args.
7968 set dummy $ac_prog; ac_word=$2
7969 echo "$as_me:$LINENO: checking for $ac_word" >&5
7970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7971 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7974 if test -n "$ac_ct_CXX"; then
7975 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981 test -z "$as_dir" && as_dir=.
7982 for ac_exec_ext in '' $ac_executable_extensions; do
7983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7984 ac_cv_prog_ac_ct_CXX="$ac_prog"
7985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7993 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7994 if test -n "$ac_ct_CXX"; then
7995 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7996 echo "${ECHO_T}$ac_ct_CXX" >&6
7998 echo "$as_me:$LINENO: result: no" >&5
7999 echo "${ECHO_T}no" >&6
8002 test -n "$ac_ct_CXX" && break
8004 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
8010 # Provide some information about the compiler.
8011 echo "$as_me:$LINENO:" \
8012 "checking for C++ compiler version" >&5
8013 ac_compiler=`set X $ac_compile; echo $2`
8014 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8015 (eval $ac_compiler --version </dev/null >&5) 2>&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); }
8019 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8020 (eval $ac_compiler -v </dev/null >&5) 2>&5
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); }
8024 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8025 (eval $ac_compiler -V </dev/null >&5) 2>&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); }
8030 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8031 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
8032 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8033 echo $ECHO_N "(cached) $ECHO_C" >&6
8035 cat >conftest.$ac_ext <<_ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h. */
8053 rm -f conftest.$ac_objext
8054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8055 (eval $ac_compile) 2>conftest.er1
8057 grep -v '^ *+' conftest.er1 >conftest.err
8059 cat conftest.err >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } &&
8062 { ac_try='test -z "$ac_cxx_werror_flag"
8063 || test ! -s conftest.err'
8064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); }; } &&
8069 { ac_try='test -s conftest.$ac_objext'
8070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); }; }; then
8077 echo "$as_me: failed program was:" >&5
8078 sed 's/^/| /' conftest.$ac_ext >&5
8082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8083 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8086 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8087 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8088 GXX=`test $ac_compiler_gnu = yes && echo yes`
8089 ac_test_CXXFLAGS=${CXXFLAGS+set}
8090 ac_save_CXXFLAGS=$CXXFLAGS
8092 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8093 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8094 if test "${ac_cv_prog_cxx_g+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8097 cat >conftest.$ac_ext <<_ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8112 rm -f conftest.$ac_objext
8113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8114 (eval $ac_compile) 2>conftest.er1
8116 grep -v '^ *+' conftest.er1 >conftest.err
8118 cat conftest.err >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); } &&
8121 { ac_try='test -z "$ac_cxx_werror_flag"
8122 || test ! -s conftest.err'
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; } &&
8128 { ac_try='test -s conftest.$ac_objext'
8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; }; then
8134 ac_cv_prog_cxx_g=yes
8136 echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8143 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8144 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8145 if test "$ac_test_CXXFLAGS" = set; then
8146 CXXFLAGS=$ac_save_CXXFLAGS
8147 elif test $ac_cv_prog_cxx_g = yes; then
8148 if test "$GXX" = yes; then
8154 if test "$GXX" = yes; then
8160 for ac_declaration in \
8162 'extern "C" void std::exit (int) throw (); using std::exit;' \
8163 'extern "C" void std::exit (int); using std::exit;' \
8164 'extern "C" void exit (int) throw ();' \
8165 'extern "C" void exit (int);' \
8168 cat >conftest.$ac_ext <<_ACEOF
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h. */
8184 rm -f conftest.$ac_objext
8185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8186 (eval $ac_compile) 2>conftest.er1
8188 grep -v '^ *+' conftest.er1 >conftest.err
8190 cat conftest.err >&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } &&
8193 { ac_try='test -z "$ac_cxx_werror_flag"
8194 || test ! -s conftest.err'
8195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; } &&
8200 { ac_try='test -s conftest.$ac_objext'
8201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); }; }; then
8208 echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.$ac_ext >&5
8213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8214 cat >conftest.$ac_ext <<_ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h. */
8229 rm -f conftest.$ac_objext
8230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8231 (eval $ac_compile) 2>conftest.er1
8233 grep -v '^ *+' conftest.er1 >conftest.err
8235 cat conftest.err >&5
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); } &&
8238 { ac_try='test -z "$ac_cxx_werror_flag"
8239 || test ! -s conftest.err'
8240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); }; } &&
8245 { ac_try='test -s conftest.$ac_objext'
8246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); }; }; then
8253 echo "$as_me: failed program was:" >&5
8254 sed 's/^/| /' conftest.$ac_ext >&5
8257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8260 if test -n "$ac_declaration"; then
8261 echo '#ifdef __cplusplus' >>confdefs.h
8262 echo $ac_declaration >>confdefs.h
8263 echo '#endif' >>confdefs.h
8267 ac_cpp='$CXXCPP $CPPFLAGS'
8268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8274 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8275 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8276 (test "X$CXX" != "Xg++"))) ; then
8278 ac_cpp='$CXXCPP $CPPFLAGS'
8279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8282 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8283 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8284 if test -z "$CXXCPP"; then
8285 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8288 # Double quotes because CXXCPP needs to be expanded
8289 for CXXCPP in "$CXX -E" "/lib/cpp"
8292 for ac_cxx_preproc_warn_flag in '' yes
8294 # Use a header file that comes with gcc, so configuring glibc
8295 # with a fresh cross-compiler works.
8296 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8297 # <limits.h> exists even on freestanding compilers.
8298 # On the NeXT, cc -E runs the code through the compiler's parser,
8299 # not just through cpp. "Syntax error" is here to catch this case.
8300 cat >conftest.$ac_ext <<_ACEOF
8303 cat confdefs.h >>conftest.$ac_ext
8304 cat >>conftest.$ac_ext <<_ACEOF
8305 /* end confdefs.h. */
8307 # include <limits.h>
8309 # include <assert.h>
8313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8316 grep -v '^ *+' conftest.er1 >conftest.err
8318 cat conftest.err >&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } >/dev/null; then
8321 if test -s conftest.err; then
8322 ac_cpp_err=$ac_cxx_preproc_warn_flag
8323 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8330 if test -z "$ac_cpp_err"; then
8333 echo "$as_me: failed program was:" >&5
8334 sed 's/^/| /' conftest.$ac_ext >&5
8336 # Broken: fails on valid input.
8339 rm -f conftest.err conftest.$ac_ext
8341 # OK, works on sane cases. Now check whether non-existent headers
8342 # can be detected and how.
8343 cat >conftest.$ac_ext <<_ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h. */
8349 #include <ac_nonexistent.h>
8351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8354 grep -v '^ *+' conftest.er1 >conftest.err
8356 cat conftest.err >&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); } >/dev/null; then
8359 if test -s conftest.err; then
8360 ac_cpp_err=$ac_cxx_preproc_warn_flag
8361 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8368 if test -z "$ac_cpp_err"; then
8369 # Broken: success on invalid input.
8372 echo "$as_me: failed program was:" >&5
8373 sed 's/^/| /' conftest.$ac_ext >&5
8375 # Passes both tests.
8379 rm -f conftest.err conftest.$ac_ext
8382 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8383 rm -f conftest.err conftest.$ac_ext
8384 if $ac_preproc_ok; then
8389 ac_cv_prog_CXXCPP=$CXXCPP
8392 CXXCPP=$ac_cv_prog_CXXCPP
8394 ac_cv_prog_CXXCPP=$CXXCPP
8396 echo "$as_me:$LINENO: result: $CXXCPP" >&5
8397 echo "${ECHO_T}$CXXCPP" >&6
8399 for ac_cxx_preproc_warn_flag in '' yes
8401 # Use a header file that comes with gcc, so configuring glibc
8402 # with a fresh cross-compiler works.
8403 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8404 # <limits.h> exists even on freestanding compilers.
8405 # On the NeXT, cc -E runs the code through the compiler's parser,
8406 # not just through cpp. "Syntax error" is here to catch this case.
8407 cat >conftest.$ac_ext <<_ACEOF
8410 cat confdefs.h >>conftest.$ac_ext
8411 cat >>conftest.$ac_ext <<_ACEOF
8412 /* end confdefs.h. */
8414 # include <limits.h>
8416 # include <assert.h>
8420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8423 grep -v '^ *+' conftest.er1 >conftest.err
8425 cat conftest.err >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); } >/dev/null; then
8428 if test -s conftest.err; then
8429 ac_cpp_err=$ac_cxx_preproc_warn_flag
8430 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8437 if test -z "$ac_cpp_err"; then
8440 echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8443 # Broken: fails on valid input.
8446 rm -f conftest.err conftest.$ac_ext
8448 # OK, works on sane cases. Now check whether non-existent headers
8449 # can be detected and how.
8450 cat >conftest.$ac_ext <<_ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8456 #include <ac_nonexistent.h>
8458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8461 grep -v '^ *+' conftest.er1 >conftest.err
8463 cat conftest.err >&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); } >/dev/null; then
8466 if test -s conftest.err; then
8467 ac_cpp_err=$ac_cxx_preproc_warn_flag
8468 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8475 if test -z "$ac_cpp_err"; then
8476 # Broken: success on invalid input.
8479 echo "$as_me: failed program was:" >&5
8480 sed 's/^/| /' conftest.$ac_ext >&5
8482 # Passes both tests.
8486 rm -f conftest.err conftest.$ac_ext
8489 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8490 rm -f conftest.err conftest.$ac_ext
8491 if $ac_preproc_ok; then
8494 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8495 See \`config.log' for more details." >&5
8496 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8497 See \`config.log' for more details." >&2;}
8498 { (exit 1); exit 1; }; }
8502 ac_cpp='$CXXCPP $CPPFLAGS'
8503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8511 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8512 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8513 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8514 if test -n "$ac_tool_prefix"; then
8515 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
8517 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8518 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8519 echo "$as_me:$LINENO: checking for $ac_word" >&5
8520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8521 if test "${ac_cv_prog_F77+set}" = set; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8524 if test -n "$F77"; then
8525 ac_cv_prog_F77="$F77" # Let the user override the test.
8527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531 test -z "$as_dir" && as_dir=.
8532 for ac_exec_ext in '' $ac_executable_extensions; do
8533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8534 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
8535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8544 if test -n "$F77"; then
8545 echo "$as_me:$LINENO: result: $F77" >&5
8546 echo "${ECHO_T}$F77" >&6
8548 echo "$as_me:$LINENO: result: no" >&5
8549 echo "${ECHO_T}no" >&6
8552 test -n "$F77" && break
8555 if test -z "$F77"; then
8557 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
8559 # Extract the first word of "$ac_prog", so it can be a program name with args.
8560 set dummy $ac_prog; ac_word=$2
8561 echo "$as_me:$LINENO: checking for $ac_word" >&5
8562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8563 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
8564 echo $ECHO_N "(cached) $ECHO_C" >&6
8566 if test -n "$ac_ct_F77"; then
8567 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
8569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8573 test -z "$as_dir" && as_dir=.
8574 for ac_exec_ext in '' $ac_executable_extensions; do
8575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8576 ac_cv_prog_ac_ct_F77="$ac_prog"
8577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8585 ac_ct_F77=$ac_cv_prog_ac_ct_F77
8586 if test -n "$ac_ct_F77"; then
8587 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
8588 echo "${ECHO_T}$ac_ct_F77" >&6
8590 echo "$as_me:$LINENO: result: no" >&5
8591 echo "${ECHO_T}no" >&6
8594 test -n "$ac_ct_F77" && break
8601 # Provide some information about the compiler.
8602 echo "$as_me:8602:" \
8603 "checking for Fortran 77 compiler version" >&5
8604 ac_compiler=`set X $ac_compile; echo $2`
8605 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8606 (eval $ac_compiler --version </dev/null >&5) 2>&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); }
8610 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8611 (eval $ac_compiler -v </dev/null >&5) 2>&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }
8615 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8616 (eval $ac_compiler -V </dev/null >&5) 2>&5
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); }
8622 # If we don't use `.F' as extension, the preprocessor is not run on the
8623 # input file. (Note that this only needs to work for GNU compilers.)
8626 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
8627 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
8628 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
8629 echo $ECHO_N "(cached) $ECHO_C" >&6
8631 cat >conftest.$ac_ext <<_ACEOF
8639 rm -f conftest.$ac_objext
8640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8641 (eval $ac_compile) 2>conftest.er1
8643 grep -v '^ *+' conftest.er1 >conftest.err
8645 cat conftest.err >&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); } &&
8648 { ac_try='test -z "$ac_f77_werror_flag"
8649 || test ! -s conftest.err'
8650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); }; } &&
8655 { ac_try='test -s conftest.$ac_objext'
8656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); }; }; then
8663 echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8669 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
8672 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
8673 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
8675 ac_test_FFLAGS=${FFLAGS+set}
8676 ac_save_FFLAGS=$FFLAGS
8678 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
8679 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
8680 if test "${ac_cv_prog_f77_g+set}" = set; then
8681 echo $ECHO_N "(cached) $ECHO_C" >&6
8684 cat >conftest.$ac_ext <<_ACEOF
8689 rm -f conftest.$ac_objext
8690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8691 (eval $ac_compile) 2>conftest.er1
8693 grep -v '^ *+' conftest.er1 >conftest.err
8695 cat conftest.err >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } &&
8698 { ac_try='test -z "$ac_f77_werror_flag"
8699 || test ! -s conftest.err'
8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; } &&
8705 { ac_try='test -s conftest.$ac_objext'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; }; then
8711 ac_cv_prog_f77_g=yes
8713 echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8721 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
8722 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
8723 if test "$ac_test_FFLAGS" = set; then
8724 FFLAGS=$ac_save_FFLAGS
8725 elif test $ac_cv_prog_f77_g = yes; then
8726 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8732 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8739 G77=`test $ac_compiler_gnu = yes && echo yes`
8741 ac_cpp='$CPP $CPPFLAGS'
8742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8748 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8750 # find the maximum length of command line arguments
8751 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8752 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8753 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8754 echo $ECHO_N "(cached) $ECHO_C" >&6
8761 # On DJGPP, this test can blow up pretty badly due to problems in libc
8762 # (any single argument exceeding 2000 bytes causes a buffer overrun
8763 # during glob expansion). Even if it were fixed, the result of this
8764 # check would be larger than it should be.
8765 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8769 # Under GNU Hurd, this test is not required because there is
8770 # no limit to the length of command line arguments.
8771 # Libtool will interpret -1 as no limit whatsoever
8772 lt_cv_sys_max_cmd_len=-1;
8776 # On Win9x/ME, this test blows up -- it succeeds, but takes
8777 # about 5 minutes as the teststring grows exponentially.
8778 # Worse, since 9x/ME are not pre-emptively multitasking,
8779 # you end up with a "frozen" computer, even though with patience
8780 # the test eventually succeeds (with a max line length of 256k).
8781 # Instead, let's just punt: use the minimum linelength reported by
8782 # all of the supported platforms: 8192 (on NT/2K/XP).
8783 lt_cv_sys_max_cmd_len=8192;
8787 # On AmigaOS with pdksh, this test takes hours, literally.
8788 # So we just punt and use a minimum line length of 8192.
8789 lt_cv_sys_max_cmd_len=8192;
8792 netbsd* | freebsd* | openbsd* | darwin* )
8793 # This has been around since 386BSD, at least. Likely further.
8794 if test -x /sbin/sysctl; then
8795 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8796 elif test -x /usr/sbin/sysctl; then
8797 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8799 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
8801 # And add a safety zone
8802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8806 # If test is not a shell built-in, we'll probably end up computing a
8807 # maximum length that is only half of the actual maximum length, but
8809 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8810 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8811 = "XX$teststring") >/dev/null 2>&1 &&
8812 new_result=`expr "X$teststring" : ".*" 2>&1` &&
8813 lt_cv_sys_max_cmd_len=$new_result &&
8814 test $i != 17 # 1/2 MB should be enough
8817 teststring=$teststring$teststring
8820 # Add a significant safety factor because C++ compilers can tack on massive
8821 # amounts of additional arguments before passing them to the linker.
8822 # It appears as though 1/2 is a usable value.
8823 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8829 if test -n $lt_cv_sys_max_cmd_len ; then
8830 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8831 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8833 echo "$as_me:$LINENO: result: none" >&5
8834 echo "${ECHO_T}none" >&6
8840 # Check for command to grab the raw symbol name followed by C symbol from nm.
8841 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8842 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8843 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8844 echo $ECHO_N "(cached) $ECHO_C" >&6
8847 # These are sane defaults that work on at least a few old systems.
8848 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8850 # Character class describing NM global symbol codes.
8851 symcode='[BCDEGRST]'
8853 # Regexp to match symbols that can be accessed directly from C.
8854 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8856 # Transform the above into a raw symbol and a C symbol.
8857 symxfrm='\1 \2\3 \3'
8859 # Transform an extracted symbol line into a proper C declaration
8860 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8862 # Transform an extracted symbol line into symbol name and symbol address
8863 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'"
8865 # Define system-specific variables.
8870 cygwin* | mingw* | pw32*)
8871 symcode='[ABCDGISTW]'
8873 hpux*) # Its linker distinguishes data from code symbols
8874 if test "$host_cpu" = ia64; then
8875 symcode='[ABCDEGRST]'
8877 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8878 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'"
8881 if test "$host_cpu" = ia64; then
8882 symcode='[ABCDGIRSTW]'
8883 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8884 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'"
8888 symcode='[BCDEGRST]'
8891 symcode='[BCDEGQRST]'
8901 # Handle CRLF in mingw tool chain
8905 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8909 # If we're using GNU nm, then use its standard symbol codes.
8910 case `$NM -V 2>&1` in
8911 *GNU* | *'with BFD'*)
8912 symcode='[ABCDGIRSTW]' ;;
8915 # Try without a prefix undercore, then with it.
8916 for ac_symprfx in "" "_"; do
8918 # Write the raw and C identifiers.
8919 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
8921 # Check to see that the pipe works correctly.
8925 cat > conftest.$ac_ext <<EOF
8930 void nm_test_func(){}
8934 int main(){nm_test_var='a';nm_test_func();return(0);}
8937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8938 (eval $ac_compile) 2>&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; then
8942 # Now try to grab the symbols.
8944 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8945 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); } && test -s "$nlist"; then
8949 # Try sorting and uniquifying the output.
8950 if sort "$nlist" | uniq > "$nlist"T; then
8951 mv -f "$nlist"T "$nlist"
8956 # Make sure that we snagged all the symbols we need.
8957 if grep ' nm_test_var$' "$nlist" >/dev/null; then
8958 if grep ' nm_test_func$' "$nlist" >/dev/null; then
8959 cat <<EOF > conftest.$ac_ext
8965 # Now generate the symbol file.
8966 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8968 cat <<EOF >> conftest.$ac_ext
8969 #if defined (__STDC__) && __STDC__
8970 # define lt_ptr_t void *
8972 # define lt_ptr_t char *
8976 /* The mapping between symbol names and symbols. */
8981 lt_preloaded_symbols[] =
8984 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8985 cat <<\EOF >> conftest.$ac_ext
8993 # Now try linking the two files.
8994 mv conftest.$ac_objext conftstm.$ac_objext
8995 lt_save_LIBS="$LIBS"
8996 lt_save_CFLAGS="$CFLAGS"
8997 LIBS="conftstm.$ac_objext"
8998 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9000 (eval $ac_link) 2>&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9006 LIBS="$lt_save_LIBS"
9007 CFLAGS="$lt_save_CFLAGS"
9009 echo "cannot find nm_test_func in $nlist" >&5
9012 echo "cannot find nm_test_var in $nlist" >&5
9015 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9018 echo "$progname: failed program was:" >&5
9019 cat conftest.$ac_ext >&5
9021 rm -f conftest* conftst*
9023 # Do not use the global_symbol_pipe unless it works.
9024 if test "$pipe_works" = yes; then
9027 lt_cv_sys_global_symbol_pipe=
9033 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9034 lt_cv_sys_global_symbol_to_cdecl=
9036 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9037 echo "$as_me:$LINENO: result: failed" >&5
9038 echo "${ECHO_T}failed" >&6
9040 echo "$as_me:$LINENO: result: ok" >&5
9041 echo "${ECHO_T}ok" >&6
9044 echo "$as_me:$LINENO: checking for objdir" >&5
9045 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
9046 if test "${lt_cv_objdir+set}" = set; then
9047 echo $ECHO_N "(cached) $ECHO_C" >&6
9049 rm -f .libs 2>/dev/null
9050 mkdir .libs 2>/dev/null
9051 if test -d .libs; then
9054 # MS-DOS does not allow filenames that begin with a dot.
9057 rmdir .libs 2>/dev/null
9059 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9060 echo "${ECHO_T}$lt_cv_objdir" >&6
9061 objdir=$lt_cv_objdir
9069 # AIX sometimes has problems with the GCC collect2 program. For some
9070 # reason, if we set the COLLECT_NAMES environment variable, the problems
9071 # vanish in a puff of smoke.
9072 if test "X${COLLECT_NAMES+set}" != Xset; then
9074 export COLLECT_NAMES
9079 # Sed substitution that helps us do robust quoting. It backslashifies
9080 # metacharacters that are still active within double-quoted strings.
9081 Xsed='sed -e s/^X//'
9082 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9084 # Same as above, but do not quote variable references.
9085 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9087 # Sed substitution to delay expansion of an escaped shell variable in a
9088 # double_quote_subst'ed string.
9089 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9091 # Sed substitution to avoid accidental globbing in evaled expressions
9092 no_glob_subst='s/\*/\\\*/g'
9098 default_ofile=libtool
9099 can_build_shared=yes
9101 # All known linkers require a `.a' archive for static linking (except M$VC,
9102 # which needs '.lib').
9104 ltmain="$ac_aux_dir/ltmain.sh"
9105 ofile="$default_ofile"
9106 with_gnu_ld="$lt_cv_prog_gnu_ld"
9108 if test -n "$ac_tool_prefix"; then
9109 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9110 set dummy ${ac_tool_prefix}ar; ac_word=$2
9111 echo "$as_me:$LINENO: checking for $ac_word" >&5
9112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9113 if test "${ac_cv_prog_AR+set}" = set; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
9116 if test -n "$AR"; then
9117 ac_cv_prog_AR="$AR" # Let the user override the test.
9119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9123 test -z "$as_dir" && as_dir=.
9124 for ac_exec_ext in '' $ac_executable_extensions; do
9125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9126 ac_cv_prog_AR="${ac_tool_prefix}ar"
9127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9136 if test -n "$AR"; then
9137 echo "$as_me:$LINENO: result: $AR" >&5
9138 echo "${ECHO_T}$AR" >&6
9140 echo "$as_me:$LINENO: result: no" >&5
9141 echo "${ECHO_T}no" >&6
9145 if test -z "$ac_cv_prog_AR"; then
9147 # Extract the first word of "ar", so it can be a program name with args.
9148 set dummy ar; ac_word=$2
9149 echo "$as_me:$LINENO: checking for $ac_word" >&5
9150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9151 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9152 echo $ECHO_N "(cached) $ECHO_C" >&6
9154 if test -n "$ac_ct_AR"; then
9155 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9161 test -z "$as_dir" && as_dir=.
9162 for ac_exec_ext in '' $ac_executable_extensions; do
9163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9164 ac_cv_prog_ac_ct_AR="ar"
9165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9171 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
9174 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9175 if test -n "$ac_ct_AR"; then
9176 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9177 echo "${ECHO_T}$ac_ct_AR" >&6
9179 echo "$as_me:$LINENO: result: no" >&5
9180 echo "${ECHO_T}no" >&6
9188 if test -n "$ac_tool_prefix"; then
9189 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9190 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9191 echo "$as_me:$LINENO: checking for $ac_word" >&5
9192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9193 if test "${ac_cv_prog_RANLIB+set}" = set; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9196 if test -n "$RANLIB"; then
9197 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9203 test -z "$as_dir" && as_dir=.
9204 for ac_exec_ext in '' $ac_executable_extensions; do
9205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9206 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9215 RANLIB=$ac_cv_prog_RANLIB
9216 if test -n "$RANLIB"; then
9217 echo "$as_me:$LINENO: result: $RANLIB" >&5
9218 echo "${ECHO_T}$RANLIB" >&6
9220 echo "$as_me:$LINENO: result: no" >&5
9221 echo "${ECHO_T}no" >&6
9225 if test -z "$ac_cv_prog_RANLIB"; then
9226 ac_ct_RANLIB=$RANLIB
9227 # Extract the first word of "ranlib", so it can be a program name with args.
9228 set dummy ranlib; ac_word=$2
9229 echo "$as_me:$LINENO: checking for $ac_word" >&5
9230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9231 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9232 echo $ECHO_N "(cached) $ECHO_C" >&6
9234 if test -n "$ac_ct_RANLIB"; then
9235 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9241 test -z "$as_dir" && as_dir=.
9242 for ac_exec_ext in '' $ac_executable_extensions; do
9243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9244 ac_cv_prog_ac_ct_RANLIB="ranlib"
9245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9251 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9254 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9255 if test -n "$ac_ct_RANLIB"; then
9256 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9257 echo "${ECHO_T}$ac_ct_RANLIB" >&6
9259 echo "$as_me:$LINENO: result: no" >&5
9260 echo "${ECHO_T}no" >&6
9263 RANLIB=$ac_ct_RANLIB
9265 RANLIB="$ac_cv_prog_RANLIB"
9268 if test -n "$ac_tool_prefix"; then
9269 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9270 set dummy ${ac_tool_prefix}strip; ac_word=$2
9271 echo "$as_me:$LINENO: checking for $ac_word" >&5
9272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9273 if test "${ac_cv_prog_STRIP+set}" = set; then
9274 echo $ECHO_N "(cached) $ECHO_C" >&6
9276 if test -n "$STRIP"; then
9277 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9283 test -z "$as_dir" && as_dir=.
9284 for ac_exec_ext in '' $ac_executable_extensions; do
9285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9286 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9295 STRIP=$ac_cv_prog_STRIP
9296 if test -n "$STRIP"; then
9297 echo "$as_me:$LINENO: result: $STRIP" >&5
9298 echo "${ECHO_T}$STRIP" >&6
9300 echo "$as_me:$LINENO: result: no" >&5
9301 echo "${ECHO_T}no" >&6
9305 if test -z "$ac_cv_prog_STRIP"; then
9307 # Extract the first word of "strip", so it can be a program name with args.
9308 set dummy strip; ac_word=$2
9309 echo "$as_me:$LINENO: checking for $ac_word" >&5
9310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9311 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9312 echo $ECHO_N "(cached) $ECHO_C" >&6
9314 if test -n "$ac_ct_STRIP"; then
9315 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9321 test -z "$as_dir" && as_dir=.
9322 for ac_exec_ext in '' $ac_executable_extensions; do
9323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9324 ac_cv_prog_ac_ct_STRIP="strip"
9325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9331 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9334 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9335 if test -n "$ac_ct_STRIP"; then
9336 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9337 echo "${ECHO_T}$ac_ct_STRIP" >&6
9339 echo "$as_me:$LINENO: result: no" >&5
9340 echo "${ECHO_T}no" >&6
9345 STRIP="$ac_cv_prog_STRIP"
9350 old_CFLAGS="$CFLAGS"
9352 # Set sane defaults for various variables
9353 test -z "$AR" && AR=ar
9354 test -z "$AR_FLAGS" && AR_FLAGS=cru
9355 test -z "$AS" && AS=as
9356 test -z "$CC" && CC=cc
9357 test -z "$LTCC" && LTCC=$CC
9358 test -z "$DLLTOOL" && DLLTOOL=dlltool
9359 test -z "$LD" && LD=ld
9360 test -z "$LN_S" && LN_S="ln -s"
9361 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9362 test -z "$NM" && NM=nm
9363 test -z "$SED" && SED=sed
9364 test -z "$OBJDUMP" && OBJDUMP=objdump
9365 test -z "$RANLIB" && RANLIB=:
9366 test -z "$STRIP" && STRIP=:
9367 test -z "$ac_objext" && ac_objext=o
9369 # Determine commands to create old-style static archives.
9370 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9371 old_postinstall_cmds='chmod 644 $oldlib'
9372 old_postuninstall_cmds=
9374 if test -n "$RANLIB"; then
9377 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
9380 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
9383 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9386 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9388 # Only perform the check for file, if the check method requires it
9389 case $deplibs_check_method in
9391 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9392 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9393 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9394 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9395 echo $ECHO_N "(cached) $ECHO_C" >&6
9399 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9402 lt_save_MAGIC_CMD="$MAGIC_CMD"
9403 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9404 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9405 for ac_dir in $ac_dummy; do
9407 test -z "$ac_dir" && ac_dir=.
9408 if test -f $ac_dir/${ac_tool_prefix}file; then
9409 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9410 if test -n "$file_magic_test_file"; then
9411 case $deplibs_check_method in
9413 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
9414 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9415 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9416 $EGREP "$file_magic_regex" > /dev/null; then
9421 *** Warning: the command libtool uses to detect shared libraries,
9422 *** $file_magic_cmd, produces output that libtool cannot recognize.
9423 *** The result is that libtool may fail to recognize shared libraries
9424 *** as such. This will affect the creation of libtool libraries that
9425 *** depend on shared libraries, but programs linked with such libtool
9426 *** libraries will work regardless of this problem. Nevertheless, you
9427 *** may want to report the problem to your system manager and/or to
9428 *** bug-libtool@gnu.org
9438 MAGIC_CMD="$lt_save_MAGIC_CMD"
9443 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9444 if test -n "$MAGIC_CMD"; then
9445 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9446 echo "${ECHO_T}$MAGIC_CMD" >&6
9448 echo "$as_me:$LINENO: result: no" >&5
9449 echo "${ECHO_T}no" >&6
9452 if test -z "$lt_cv_path_MAGIC_CMD"; then
9453 if test -n "$ac_tool_prefix"; then
9454 echo "$as_me:$LINENO: checking for file" >&5
9455 echo $ECHO_N "checking for file... $ECHO_C" >&6
9456 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9457 echo $ECHO_N "(cached) $ECHO_C" >&6
9461 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9464 lt_save_MAGIC_CMD="$MAGIC_CMD"
9465 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9466 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9467 for ac_dir in $ac_dummy; do
9469 test -z "$ac_dir" && ac_dir=.
9470 if test -f $ac_dir/file; then
9471 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9472 if test -n "$file_magic_test_file"; then
9473 case $deplibs_check_method in
9475 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
9476 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9477 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9478 $EGREP "$file_magic_regex" > /dev/null; then
9483 *** Warning: the command libtool uses to detect shared libraries,
9484 *** $file_magic_cmd, produces output that libtool cannot recognize.
9485 *** The result is that libtool may fail to recognize shared libraries
9486 *** as such. This will affect the creation of libtool libraries that
9487 *** depend on shared libraries, but programs linked with such libtool
9488 *** libraries will work regardless of this problem. Nevertheless, you
9489 *** may want to report the problem to your system manager and/or to
9490 *** bug-libtool@gnu.org
9500 MAGIC_CMD="$lt_save_MAGIC_CMD"
9505 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9506 if test -n "$MAGIC_CMD"; then
9507 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9508 echo "${ECHO_T}$MAGIC_CMD" >&6
9510 echo "$as_me:$LINENO: result: no" >&5
9511 echo "${ECHO_T}no" >&6
9526 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9527 if test "${enable_libtool_lock+set}" = set; then
9528 enableval="$enable_libtool_lock"
9531 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9534 # Check whether --with-pic or --without-pic was given.
9535 if test "${with_pic+set}" = set; then
9541 test -z "$pic_mode" && pic_mode=default
9543 # Use C for the default configuration in the libtool script
9547 ac_cpp='$CPP $CPPFLAGS'
9548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9553 # Source file extension for C test sources.
9556 # Object file extension for compiled C test sources.
9560 # Code to be used in simple compile tests
9561 lt_simple_compile_test_code="int some_variable = 0;\n"
9563 # Code to be used in simple link tests
9564 lt_simple_link_test_code='int main(){return(0);}\n'
9567 # If no C compiler was specified, use CC.
9570 # Allow CC to be a program name with arguments.
9575 # Check for any special shared library compilation flags.
9578 if test "$GCC" = no; then
9581 lt_prog_cc_shlib='-belf'
9585 if test -n "$lt_prog_cc_shlib"; then
9586 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
9587 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
9588 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
9590 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
9591 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
9592 lt_cv_prog_cc_can_build_shared=no
9598 # Check to make sure the static flag actually works.
9600 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
9601 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
9602 if test "${lt_prog_compiler_static_works+set}" = set; then
9603 echo $ECHO_N "(cached) $ECHO_C" >&6
9605 lt_prog_compiler_static_works=no
9606 save_LDFLAGS="$LDFLAGS"
9607 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
9608 printf "$lt_simple_link_test_code" > conftest.$ac_ext
9609 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9610 # The compiler can only warn and ignore the option if not recognized
9611 # So say no if there are warnings
9612 if test -s conftest.err; then
9613 # Append any errors to the config.log.
9614 cat conftest.err 1>&5
9616 lt_prog_compiler_static_works=yes
9620 LDFLAGS="$save_LDFLAGS"
9623 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9624 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9626 if test x"$lt_prog_compiler_static_works" = xyes; then
9629 lt_prog_compiler_static=
9635 ## There is no encapsulation within the following macros, do not change
9636 ## the running order or otherwise move them around unless you know exactly
9637 ## what you are doing...
9639 lt_prog_compiler_no_builtin_flag=
9641 if test "$GCC" = yes; then
9642 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9645 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9646 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9647 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9650 lt_cv_prog_compiler_rtti_exceptions=no
9651 ac_outfile=conftest.$ac_objext
9652 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9653 lt_compiler_flag="-fno-rtti -fno-exceptions"
9654 # Insert the option either (1) after the last *FLAGS variable, or
9655 # (2) before a word containing "conftest.", or (3) at the end.
9656 # Note that $ac_compile itself does not contain backslashes and begins
9657 # with a dollar sign (not a hyphen), so the echo should work correctly.
9658 # The option is referenced via a variable to avoid confusing sed.
9659 lt_compile=`echo "$ac_compile" | $SED \
9660 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
9661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9662 -e 's:$: $lt_compiler_flag:'`
9663 (eval echo "\"\$as_me:9663: $lt_compile\"" >&5)
9664 (eval "$lt_compile" 2>conftest.err)
9666 cat conftest.err >&5
9667 echo "$as_me:9667: \$? = $ac_status" >&5
9668 if (exit $ac_status) && test -s "$ac_outfile"; then
9669 # The compiler can only warn and ignore the option if not recognized
9670 # So say no if there are warnings
9671 if test ! -s conftest.err; then
9672 lt_cv_prog_compiler_rtti_exceptions=yes
9678 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9679 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9681 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9682 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9689 lt_prog_compiler_wl=
9690 lt_prog_compiler_pic=
9691 lt_prog_compiler_static=
9693 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9694 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9696 if test "$GCC" = yes; then
9697 lt_prog_compiler_wl='-Wl,'
9698 lt_prog_compiler_static='-static'
9702 # All AIX code is PIC.
9703 if test "$host_cpu" = ia64; then
9704 # AIX 5 now supports IA64 processor
9705 lt_prog_compiler_static='-Bstatic'
9710 # FIXME: we need at least 68020 code to build shared libraries, but
9711 # adding the `-m68020' flag to GCC prevents building anything better,
9713 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9716 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9717 # PIC is the default for these OSes.
9720 mingw* | pw32* | os2*)
9721 # This hack is so that the source file can tell whether it is being
9722 # built for inclusion in a dll (and should export symbols for example).
9723 lt_prog_compiler_pic='-DDLL_EXPORT'
9726 darwin* | rhapsody*)
9727 # PIC is the default on this platform
9728 # Common symbols not allowed in MH_DYLIB files
9729 lt_prog_compiler_pic='-fno-common'
9733 # Just because we use GCC doesn't mean we suddenly get shared libraries
9734 # on systems that don't support them.
9735 lt_prog_compiler_can_build_shared=no
9740 if test -d /usr/nec; then
9741 lt_prog_compiler_pic=-Kconform_pic
9746 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9753 lt_prog_compiler_pic='-fPIC'
9759 lt_prog_compiler_pic='-fPIC'
9763 # PORTME Check for flag to pass linker flags through the system compiler.
9766 lt_prog_compiler_wl='-Wl,'
9767 if test "$host_cpu" = ia64; then
9768 # AIX 5 now supports IA64 processor
9769 lt_prog_compiler_static='-Bstatic'
9771 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9775 # PIC is the default on this platform
9776 # Common symbols not allowed in MH_DYLIB files
9777 case "$cc_basename" in
9779 lt_prog_compiler_pic='-qnocommon'
9780 lt_prog_compiler_wl='-Wl,'
9785 mingw* | pw32* | os2*)
9786 # This hack is so that the source file can tell whether it is being
9787 # built for inclusion in a dll (and should export symbols for example).
9788 lt_prog_compiler_pic='-DDLL_EXPORT'
9791 hpux9* | hpux10* | hpux11*)
9792 lt_prog_compiler_wl='-Wl,'
9793 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9800 lt_prog_compiler_pic='+Z'
9803 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9804 lt_prog_compiler_static='${wl}-a ${wl}archive'
9807 irix5* | irix6* | nonstopux*)
9808 lt_prog_compiler_wl='-Wl,'
9809 # PIC (with -KPIC) is the default.
9810 lt_prog_compiler_static='-non_shared'
9814 lt_prog_compiler_pic='-KPIC'
9815 lt_prog_compiler_static='-Bstatic'
9821 lt_prog_compiler_wl='-Wl,'
9822 lt_prog_compiler_pic='-KPIC'
9823 lt_prog_compiler_static='-static'
9826 lt_prog_compiler_wl='-Wl,'
9827 # All Alpha code is PIC.
9828 lt_prog_compiler_static='-non_shared'
9833 osf3* | osf4* | osf5*)
9834 lt_prog_compiler_wl='-Wl,'
9835 # All OSF/1 code is PIC.
9836 lt_prog_compiler_static='-non_shared'
9840 lt_prog_compiler_pic='-Kpic'
9841 lt_prog_compiler_static='-dn'
9845 lt_prog_compiler_wl='-Wl,'
9846 lt_prog_compiler_pic='-KPIC'
9847 lt_prog_compiler_static='-Bstatic'
9851 lt_prog_compiler_wl='-Qoption ld '
9852 lt_prog_compiler_pic='-PIC'
9853 lt_prog_compiler_static='-Bstatic'
9856 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9857 lt_prog_compiler_wl='-Wl,'
9858 lt_prog_compiler_pic='-KPIC'
9859 lt_prog_compiler_static='-Bstatic'
9863 if test -d /usr/nec ;then
9864 lt_prog_compiler_pic='-Kconform_pic'
9865 lt_prog_compiler_static='-Bstatic'
9870 lt_prog_compiler_pic='-pic'
9871 lt_prog_compiler_static='-Bstatic'
9875 lt_prog_compiler_can_build_shared=no
9880 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9881 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9884 # Check to make sure the PIC flag actually works.
9886 if test -n "$lt_prog_compiler_pic"; then
9888 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9889 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9890 if test "${lt_prog_compiler_pic_works+set}" = set; then
9891 echo $ECHO_N "(cached) $ECHO_C" >&6
9893 lt_prog_compiler_pic_works=no
9894 ac_outfile=conftest.$ac_objext
9895 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9896 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9897 # Insert the option either (1) after the last *FLAGS variable, or
9898 # (2) before a word containing "conftest.", or (3) at the end.
9899 # Note that $ac_compile itself does not contain backslashes and begins
9900 # with a dollar sign (not a hyphen), so the echo should work correctly.
9901 # The option is referenced via a variable to avoid confusing sed.
9902 lt_compile=`echo "$ac_compile" | $SED \
9903 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
9904 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9905 -e 's:$: $lt_compiler_flag:'`
9906 (eval echo "\"\$as_me:9906: $lt_compile\"" >&5)
9907 (eval "$lt_compile" 2>conftest.err)
9909 cat conftest.err >&5
9910 echo "$as_me:9910: \$? = $ac_status" >&5
9911 if (exit $ac_status) && test -s "$ac_outfile"; then
9912 # The compiler can only warn and ignore the option if not recognized
9913 # So say no if there are warnings
9914 if test ! -s conftest.err; then
9915 lt_prog_compiler_pic_works=yes
9921 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9922 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9924 if test x"$lt_prog_compiler_pic_works" = xyes; then
9925 case $lt_prog_compiler_pic in
9927 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9930 lt_prog_compiler_pic=
9931 lt_prog_compiler_can_build_shared=no
9936 # For platforms which do not support PIC, -DPIC is meaningless:
9938 lt_prog_compiler_pic=
9941 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9945 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9946 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9947 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
9950 lt_cv_prog_compiler_c_o=no
9951 $rm -r conftest 2>/dev/null
9955 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9957 lt_compiler_flag="-o out/conftest2.$ac_objext"
9958 # Insert the option either (1) after the last *FLAGS variable, or
9959 # (2) before a word containing "conftest.", or (3) at the end.
9960 # Note that $ac_compile itself does not contain backslashes and begins
9961 # with a dollar sign (not a hyphen), so the echo should work correctly.
9962 lt_compile=`echo "$ac_compile" | $SED \
9963 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
9964 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9965 -e 's:$: $lt_compiler_flag:'`
9966 (eval echo "\"\$as_me:9966: $lt_compile\"" >&5)
9967 (eval "$lt_compile" 2>out/conftest.err)
9969 cat out/conftest.err >&5
9970 echo "$as_me:9970: \$? = $ac_status" >&5
9971 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9973 # The compiler can only warn and ignore the option if not recognized
9974 # So say no if there are warnings
9975 if test ! -s out/conftest.err; then
9976 lt_cv_prog_compiler_c_o=yes
9981 # SGI C++ compiler will create directory out/ii_files/ for
9982 # template instantiation
9983 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9984 $rm out/* && rmdir out
9990 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9991 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9994 hard_links="nottested"
9995 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9996 # do not overwrite the value of need_locks provided by the user
9997 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9998 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10001 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10003 ln conftest.a conftest.b 2>&5 || hard_links=no
10004 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10005 echo "$as_me:$LINENO: result: $hard_links" >&5
10006 echo "${ECHO_T}$hard_links" >&6
10007 if test "$hard_links" = no; then
10008 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10009 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10016 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10017 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10020 allow_undefined_flag=
10021 enable_shared_with_static_runtimes=no
10023 archive_expsym_cmds=
10024 old_archive_From_new_cmds=
10025 old_archive_from_expsyms_cmds=
10026 export_dynamic_flag_spec=
10027 whole_archive_flag_spec=
10028 thread_safe_flag_spec=
10029 hardcode_libdir_flag_spec=
10030 hardcode_libdir_flag_spec_ld=
10031 hardcode_libdir_separator=
10033 hardcode_minus_L=no
10034 hardcode_shlibpath_var=unsupported
10035 link_all_deplibs=unknown
10036 hardcode_automatic=no
10038 module_expsym_cmds=
10039 always_export_symbols=no
10040 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10041 # include_expsyms should be a list of space-separated symbols to be *always*
10042 # included in the symbol list
10044 # exclude_expsyms can be an extended regexp of symbols to exclude
10045 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10046 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10047 # as well as any symbol that contains `d'.
10048 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
10049 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10050 # platforms (ab)use it in PIC code, but their linkers get confused if
10051 # the symbol is explicitly referenced. Since portable code cannot
10052 # rely on this symbol name, it's probably fine to never include it in
10053 # preloaded symbol tables.
10054 extract_expsyms_cmds=
10057 cygwin* | mingw* | pw32*)
10058 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10059 # When not using gcc, we currently assume that we are using
10060 # Microsoft Visual C++.
10061 if test "$GCC" != yes; then
10071 if test "$with_gnu_ld" = yes; then
10072 # If archive_cmds runs LD, not CC, wlarc should be empty
10075 # See if GNU ld supports shared libraries.
10077 aix3* | aix4* | aix5*)
10078 # On AIX/PPC, the GNU linker is very broken
10079 if test "$host_cpu" != ia64; then
10083 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10084 *** to be unable to reliably create shared libraries on AIX.
10085 *** Therefore, libtool is disabling shared libraries support. If you
10086 *** really care for shared libraries, you may want to modify your PATH
10087 *** so that a non-GNU linker is found, and then restart.
10094 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)'
10095 hardcode_libdir_flag_spec='-L$libdir'
10096 hardcode_minus_L=yes
10098 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10099 # that the semantics of dynamic libraries on AmigaOS, at least up
10100 # to version 4, is to share data among multiple programs linked
10101 # with the same dynamic library. Since this doesn't match the
10102 # behavior of shared libraries on other platforms, we can't use
10108 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10109 allow_undefined_flag=unsupported
10110 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10111 # support --undefined. This deserves some investigation. FIXME
10112 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10118 cygwin* | mingw* | pw32*)
10119 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10120 # as there is no search path for DLLs.
10121 hardcode_libdir_flag_spec='-L$libdir'
10122 allow_undefined_flag=unsupported
10123 always_export_symbols=no
10124 enable_shared_with_static_runtimes=yes
10125 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10127 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10129 # If the export-symbols file already is a .def file (1st line
10130 # is EXPORTS), use it as is; otherwise, prepend...
10131 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10132 cp $export_symbols $output_objdir/$soname.def;
10134 echo EXPORTS > $output_objdir/$soname.def;
10135 cat $export_symbols >> $output_objdir/$soname.def;
10137 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10144 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10145 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10148 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10149 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10154 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10158 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10159 *** create shared libraries on Solaris systems. Therefore, libtool
10160 *** is disabling shared libraries support. We urge you to upgrade GNU
10161 *** binutils to release 2.9.1 or newer. Another option is to modify
10162 *** your PATH or compiler configuration so that the native linker is
10163 *** used, and then restart.
10166 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10167 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10168 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10175 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10177 hardcode_direct=yes
10178 hardcode_shlibpath_var=no
10182 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10183 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10184 archive_cmds="$tmp_archive_cmds"
10185 supports_anon_versioning=no
10186 case `$LD -v 2>/dev/null` in
10187 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10188 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10189 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10190 *\ 2.11.*) ;; # other 2.11 versions
10191 *) supports_anon_versioning=yes ;;
10193 if test $supports_anon_versioning = yes; then
10194 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10195 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10196 $echo "local: *; };" >> $output_objdir/$libname.ver~
10197 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10199 archive_expsym_cmds="$tmp_archive_cmds"
10207 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10209 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10216 if test "$ld_shlibs" = yes; then
10217 runpath_var=LD_RUN_PATH
10218 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10219 export_dynamic_flag_spec='${wl}--export-dynamic'
10220 # ancient GNU ld didn't support --whole-archive et. al.
10221 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10222 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10224 whole_archive_flag_spec=
10228 # PORTME fill in a description of your system's linker (not GNU ld)
10231 allow_undefined_flag=unsupported
10232 always_export_symbols=yes
10233 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'
10234 # Note: this linker hardcodes the directories in LIBPATH if there
10235 # are no directories specified by -L.
10236 hardcode_minus_L=yes
10237 if test "$GCC" = yes && test -z "$link_static_flag"; then
10238 # Neither direct hardcoding nor static linking is supported with a
10240 hardcode_direct=unsupported
10245 if test "$host_cpu" = ia64; then
10246 # On IA64, the linker does run time linking by default, so we don't
10247 # have to do anything special.
10248 aix_use_runtimelinking=no
10249 exp_sym_flag='-Bexport'
10252 # If we're using GNU nm, then we don't want the "-C" option.
10253 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10254 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10255 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'
10257 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'
10259 aix_use_runtimelinking=no
10261 # Test if we are trying to use run time linking or normal
10262 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10263 # need to do runtime linking.
10264 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10265 for ld_flag in $LDFLAGS; do
10266 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10267 aix_use_runtimelinking=yes
10273 exp_sym_flag='-bexport'
10274 no_entry_flag='-bnoentry'
10277 # When large executables or shared objects are built, AIX ld can
10278 # have problems creating the table of contents. If linking a library
10279 # or program results in "error TOC overflow" add -mminimal-toc to
10280 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10281 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10284 hardcode_direct=yes
10285 hardcode_libdir_separator=':'
10286 link_all_deplibs=yes
10288 if test "$GCC" = yes; then
10289 case $host_os in aix4.012|aix4.012.*)
10290 # We only want to do this on AIX 4.2 and lower, the check
10291 # below for broken collect2 doesn't work under 4.3+
10292 collect2name=`${CC} -print-prog-name=collect2`
10293 if test -f "$collect2name" && \
10294 strings "$collect2name" | grep resolve_lib_name >/dev/null
10296 # We have reworked collect2
10297 hardcode_direct=yes
10299 # We have old collect2
10300 hardcode_direct=unsupported
10301 # It fails to find uninstalled libraries when the uninstalled
10302 # path is not listed in the libpath. Setting hardcode_minus_L
10303 # to unsupported forces relinking
10304 hardcode_minus_L=yes
10305 hardcode_libdir_flag_spec='-L$libdir'
10306 hardcode_libdir_separator=
10309 shared_flag='-shared'
10312 if test "$host_cpu" = ia64; then
10313 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10314 # chokes on -Wl,-G. The following line is correct:
10317 if test "$aix_use_runtimelinking" = yes; then
10318 shared_flag='${wl}-G'
10320 shared_flag='${wl}-bM:SRE'
10325 # It seems that -bexpall does not export symbols beginning with
10326 # underscore (_), so it is better to generate a list of symbols to export.
10327 always_export_symbols=yes
10328 if test "$aix_use_runtimelinking" = yes; then
10329 # Warning - without using the other runtime loading flags (-brtl),
10330 # -berok will link without error, but may produce a broken library.
10331 allow_undefined_flag='-berok'
10332 # Determine the default libpath from the value encoded in an empty executable.
10333 cat >conftest.$ac_ext <<_ACEOF
10336 cat confdefs.h >>conftest.$ac_ext
10337 cat >>conftest.$ac_ext <<_ACEOF
10338 /* end confdefs.h. */
10348 rm -f conftest.$ac_objext conftest$ac_exeext
10349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10350 (eval $ac_link) 2>conftest.er1
10352 grep -v '^ *+' conftest.er1 >conftest.err
10354 cat conftest.err >&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); } &&
10357 { ac_try='test -z "$ac_c_werror_flag"
10358 || test ! -s conftest.err'
10359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360 (eval $ac_try) 2>&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); }; } &&
10364 { ac_try='test -s conftest$ac_exeext'
10365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10366 (eval $ac_try) 2>&5
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); }; }; then
10371 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10373 # Check for a 64-bit object if we didn't find anything.
10374 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; }
10377 echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10381 rm -f conftest.err conftest.$ac_objext \
10382 conftest$ac_exeext conftest.$ac_ext
10383 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10385 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10386 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"
10388 if test "$host_cpu" = ia64; then
10389 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10390 allow_undefined_flag="-z nodefs"
10391 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"
10393 # Determine the default libpath from the value encoded in an empty executable.
10394 cat >conftest.$ac_ext <<_ACEOF
10397 cat confdefs.h >>conftest.$ac_ext
10398 cat >>conftest.$ac_ext <<_ACEOF
10399 /* end confdefs.h. */
10409 rm -f conftest.$ac_objext conftest$ac_exeext
10410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10411 (eval $ac_link) 2>conftest.er1
10413 grep -v '^ *+' conftest.er1 >conftest.err
10415 cat conftest.err >&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); } &&
10418 { ac_try='test -z "$ac_c_werror_flag"
10419 || test ! -s conftest.err'
10420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10421 (eval $ac_try) 2>&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); }; } &&
10425 { ac_try='test -s conftest$ac_exeext'
10426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10427 (eval $ac_try) 2>&5
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); }; }; then
10432 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10434 # Check for a 64-bit object if we didn't find anything.
10435 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; }
10438 echo "$as_me: failed program was:" >&5
10439 sed 's/^/| /' conftest.$ac_ext >&5
10442 rm -f conftest.err conftest.$ac_objext \
10443 conftest$ac_exeext conftest.$ac_ext
10444 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10446 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10447 # Warning - without using the other run time loading flags,
10448 # -berok will link without error, but may produce a broken library.
10449 no_undefined_flag=' ${wl}-bernotok'
10450 allow_undefined_flag=' ${wl}-berok'
10451 # -bexpall does not export symbols beginning with underscore (_)
10452 always_export_symbols=yes
10453 # Exported symbols can be pulled into shared objects from archives
10454 whole_archive_flag_spec=' '
10455 archive_cmds_need_lc=yes
10456 # This is similar to how AIX traditionally builds it's shared libraries.
10457 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'
10463 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)'
10464 hardcode_libdir_flag_spec='-L$libdir'
10465 hardcode_minus_L=yes
10466 # see comment about different semantics on the GNU ld section
10471 export_dynamic_flag_spec=-rdynamic
10474 cygwin* | mingw* | pw32*)
10475 # When not using gcc, we currently assume that we are using
10476 # Microsoft Visual C++.
10477 # hardcode_libdir_flag_spec is actually meaningless, as there is
10478 # no search path for DLLs.
10479 hardcode_libdir_flag_spec=' '
10480 allow_undefined_flag=unsupported
10481 # Tell ltmain to make .lib files, not .a files.
10483 # Tell ltmain to make .dll files, not .so files.
10485 # FIXME: Setting linknames here is a bad hack.
10486 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10487 # The linker will automatically build a .lib file if we build a DLL.
10488 old_archive_From_new_cmds='true'
10489 # FIXME: Should let the user specify the lib program.
10490 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10491 fix_srcfile_path='`cygpath -w "$srcfile"`'
10492 enable_shared_with_static_runtimes=yes
10495 darwin* | rhapsody*)
10497 rhapsody* | darwin1.[012])
10498 allow_undefined_flag='${wl}-undefined ${wl}suppress'
10501 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10502 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10504 case ${MACOSX_DEPLOYMENT_TARGET} in
10506 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10509 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10515 archive_cmds_need_lc=no
10517 hardcode_automatic=yes
10518 hardcode_shlibpath_var=unsupported
10519 whole_archive_flag_spec=''
10520 link_all_deplibs=yes
10521 if test "$GCC" = yes ; then
10522 output_verbose_link_cmd='echo'
10523 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10524 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10525 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10526 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}'
10527 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}'
10529 case "$cc_basename" in
10531 output_verbose_link_cmd='echo'
10532 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10533 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10534 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10535 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10536 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}'
10546 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10547 hardcode_libdir_flag_spec='-L$libdir'
10548 hardcode_shlibpath_var=no
10555 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10556 # support. Future versions do this automatically, but an explicit c++rt0.o
10557 # does not break anything, and helps significantly (at the cost of a little
10560 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10561 hardcode_libdir_flag_spec='-R$libdir'
10562 hardcode_direct=yes
10563 hardcode_shlibpath_var=no
10566 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10568 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10569 hardcode_direct=yes
10570 hardcode_minus_L=yes
10571 hardcode_shlibpath_var=no
10574 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10575 freebsd* | kfreebsd*-gnu)
10576 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10577 hardcode_libdir_flag_spec='-R$libdir'
10578 hardcode_direct=yes
10579 hardcode_shlibpath_var=no
10583 if test "$GCC" = yes; then
10584 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'
10586 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'
10588 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10589 hardcode_libdir_separator=:
10590 hardcode_direct=yes
10592 # hardcode_minus_L: Not really in the search PATH,
10593 # but as the default location of the library.
10594 hardcode_minus_L=yes
10595 export_dynamic_flag_spec='${wl}-E'
10599 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10600 case "$host_cpu" in
10602 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10605 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10609 case "$host_cpu" in
10611 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
10614 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10618 if test "$with_gnu_ld" = no; then
10619 case "$host_cpu" in
10621 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10622 hardcode_libdir_flag_spec_ld='+b $libdir'
10623 hardcode_libdir_separator=:
10625 hardcode_shlibpath_var=no
10628 hardcode_libdir_flag_spec='-L$libdir'
10630 hardcode_shlibpath_var=no
10632 # hardcode_minus_L: Not really in the search PATH,
10633 # but as the default location of the library.
10634 hardcode_minus_L=yes
10637 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10638 hardcode_libdir_separator=:
10639 hardcode_direct=yes
10640 export_dynamic_flag_spec='${wl}-E'
10642 # hardcode_minus_L: Not really in the search PATH,
10643 # but as the default location of the library.
10644 hardcode_minus_L=yes
10650 irix5* | irix6* | nonstopux*)
10651 if test "$GCC" = yes; then
10652 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'
10654 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'
10655 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10657 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10658 hardcode_libdir_separator=:
10659 link_all_deplibs=yes
10663 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10664 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10666 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10668 hardcode_libdir_flag_spec='-R$libdir'
10669 hardcode_direct=yes
10670 hardcode_shlibpath_var=no
10674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10675 hardcode_direct=yes
10676 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10677 hardcode_libdir_separator=:
10678 hardcode_shlibpath_var=no
10682 hardcode_direct=yes
10683 hardcode_shlibpath_var=no
10684 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10685 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10686 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10687 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10688 export_dynamic_flag_spec='${wl}-E'
10691 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10692 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10693 hardcode_libdir_flag_spec='-R$libdir'
10696 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10697 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10704 hardcode_libdir_flag_spec='-L$libdir'
10705 hardcode_minus_L=yes
10706 allow_undefined_flag=unsupported
10707 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'
10708 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10712 if test "$GCC" = yes; then
10713 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10714 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'
10716 allow_undefined_flag=' -expect_unresolved \*'
10717 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'
10719 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10720 hardcode_libdir_separator=:
10723 osf4* | osf5*) # as osf3* with the addition of -msym flag
10724 if test "$GCC" = yes; then
10725 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10726 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'
10727 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10729 allow_undefined_flag=' -expect_unresolved \*'
10730 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'
10731 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10732 $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'
10734 # Both c and cxx compiler support -rpath directly
10735 hardcode_libdir_flag_spec='-rpath $libdir'
10737 hardcode_libdir_separator=:
10741 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10742 hardcode_shlibpath_var=no
10743 export_dynamic_flag_spec='${wl}-Bexport'
10744 runpath_var=LD_RUN_PATH
10745 hardcode_runpath_var=yes
10749 no_undefined_flag=' -z text'
10750 if test "$GCC" = yes; then
10751 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10752 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10753 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10755 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10756 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10757 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10759 hardcode_libdir_flag_spec='-R$libdir'
10760 hardcode_shlibpath_var=no
10762 solaris2.[0-5] | solaris2.[0-5].*) ;;
10763 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
10764 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10766 link_all_deplibs=yes
10770 if test "x$host_vendor" = xsequent; then
10771 # Use $CC to link under sequent, because it throws in some extra .o
10772 # files that make .init and .fini sections work.
10773 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10775 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10777 hardcode_libdir_flag_spec='-L$libdir'
10778 hardcode_direct=yes
10779 hardcode_minus_L=yes
10780 hardcode_shlibpath_var=no
10784 case $host_vendor in
10786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10787 hardcode_direct=yes # is this really true???
10790 ## LD is ld it makes a PLAMLIB
10791 ## CC just makes a GrossModule.
10792 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10793 reload_cmds='$CC -r -o $output$reload_objs'
10797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10798 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10801 runpath_var='LD_RUN_PATH'
10802 hardcode_shlibpath_var=no
10806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10807 hardcode_shlibpath_var=no
10808 export_dynamic_flag_spec='-Bexport'
10812 if test -d /usr/nec; then
10813 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10814 hardcode_shlibpath_var=no
10815 runpath_var=LD_RUN_PATH
10816 hardcode_runpath_var=yes
10822 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10823 hardcode_direct=yes
10824 hardcode_minus_L=no
10825 hardcode_shlibpath_var=no
10826 hardcode_runpath_var=yes
10827 runpath_var=LD_RUN_PATH
10830 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10831 no_undefined_flag='${wl}-z ${wl}text'
10832 if test "$GCC" = yes; then
10833 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10835 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10837 runpath_var='LD_RUN_PATH'
10838 hardcode_shlibpath_var=no
10842 no_undefined_flag=' -z text'
10843 # $CC -shared without GNU ld will not create a library from C++
10844 # object files and a static libstdc++, better avoid it by now
10845 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10846 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10847 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10848 hardcode_libdir_flag_spec=
10849 hardcode_shlibpath_var=no
10850 runpath_var='LD_RUN_PATH'
10854 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10855 hardcode_libdir_flag_spec='-L$libdir'
10856 hardcode_shlibpath_var=no
10865 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10866 echo "${ECHO_T}$ld_shlibs" >&6
10867 test "$ld_shlibs" = no && can_build_shared=no
10869 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10870 if test "$GCC" = yes; then
10871 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10875 # Do we need to explicitly link libc?
10877 case "x$archive_cmds_need_lc" in
10879 # Assume -lc should be added
10880 archive_cmds_need_lc=yes
10882 if test "$enable_shared" = yes && test "$GCC" = yes; then
10883 case $archive_cmds in
10885 # FIXME: we may have to deal with multi-command sequences.
10888 # Test whether the compiler implicitly links with -lc since on some
10889 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10890 # to ld, don't add -lc before -lgcc.
10891 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10892 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10894 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10897 (eval $ac_compile) 2>&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } 2>conftest.err; then
10903 libobjs=conftest.$ac_objext
10905 wl=$lt_prog_compiler_wl
10911 lt_save_allow_undefined_flag=$allow_undefined_flag
10912 allow_undefined_flag=
10913 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10914 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); }
10919 archive_cmds_need_lc=no
10921 archive_cmds_need_lc=yes
10923 allow_undefined_flag=$lt_save_allow_undefined_flag
10925 cat conftest.err 1>&5
10928 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10929 echo "${ECHO_T}$archive_cmds_need_lc" >&6
10936 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10937 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10938 library_names_spec=
10939 libname_spec='lib$name'
10943 postuninstall_cmds=
10947 shlibpath_overrides_runpath=unknown
10949 dynamic_linker="$host_os ld.so"
10950 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10951 if test "$GCC" = yes; then
10952 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10953 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10954 # if the path contains ";" then we assume it to be the separator
10955 # otherwise default to the standard path separator (i.e. ":") - it is
10956 # assumed that no part of a normal pathname contains ";" but that should
10957 # okay in the real world where ";" in dirpaths is itself problematic.
10958 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10960 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10963 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10965 need_lib_prefix=unknown
10966 hardcode_into_libs=no
10968 # when you set need_version to no, make sure it does not cause -set_version
10969 # flags to be left without arguments
10970 need_version=unknown
10975 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10976 shlibpath_var=LIBPATH
10978 # AIX 3 has no versioning support, so we append a major version to the name.
10979 soname_spec='${libname}${release}${shared_ext}$major'
10986 hardcode_into_libs=yes
10987 if test "$host_cpu" = ia64; then
10988 # AIX 5 supports IA64
10989 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10990 shlibpath_var=LD_LIBRARY_PATH
10992 # With GCC up to 2.95.x, collect2 would create an import file
10993 # for dependence libraries. The import file would start with
10994 # the line `#! .'. This would cause the generated library to
10995 # depend on `.', always an invalid library. This was fixed in
10996 # development snapshots of GCC prior to 3.0.
10998 aix4 | aix4.[01] | aix4.[01].*)
10999 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11001 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11004 can_build_shared=no
11008 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11009 # soname into executable. Probably we can add versioning support to
11010 # collect2, so additional links can be useful in future.
11011 if test "$aix_use_runtimelinking" = yes; then
11012 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11013 # instead of lib<name>.a to let people know that these are not
11014 # typical AIX shared libraries.
11015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11017 # We preserve .a as extension for shared libraries through AIX4.2
11018 # and later when we are not doing run time linking.
11019 library_names_spec='${libname}${release}.a $libname.a'
11020 soname_spec='${libname}${release}${shared_ext}$major'
11022 shlibpath_var=LIBPATH
11027 library_names_spec='$libname.ixlibrary $libname.a'
11028 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11029 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'
11033 library_names_spec='${libname}${shared_ext}'
11034 dynamic_linker="$host_os ld.so"
11035 shlibpath_var=LIBRARY_PATH
11041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11042 soname_spec='${libname}${release}${shared_ext}$major'
11043 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11044 shlibpath_var=LD_LIBRARY_PATH
11045 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11046 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11047 # the default ld.so.conf also contains /usr/contrib/lib and
11048 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11049 # libtool to hard-code these into programs
11052 cygwin* | mingw* | pw32*)
11053 version_type=windows
11058 case $GCC,$host_os in
11059 yes,cygwin* | yes,mingw* | yes,pw32*)
11060 library_names_spec='$libname.dll.a'
11061 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11062 postinstall_cmds='base_file=`basename \${file}`~
11063 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11064 dldir=$destdir/`dirname \$dlpath`~
11065 test -d \$dldir || mkdir -p \$dldir~
11066 $install_prog $dir/$dlname \$dldir/$dlname'
11067 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11068 dlpath=$dir/\$dldll~
11070 shlibpath_overrides_runpath=yes
11074 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11075 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11076 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11079 # MinGW DLLs use traditional 'lib' prefix
11080 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11081 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11082 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11083 # It is most probably a Windows format PATH printed by
11084 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11085 # path with ; separators, and with drive letters. We can handle the
11086 # drive letters (cygwin fileutils understands them), so leave them,
11087 # especially as we might pass files found there to a mingw objdump,
11088 # which wouldn't understand a cygwinified path. Ahh.
11089 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11091 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11095 # pw32 DLLs use 'pw' prefix rather than 'lib'
11096 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11102 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11105 dynamic_linker='Win32 ld.exe'
11106 # FIXME: first we should search . and the directory the executable is in
11110 darwin* | rhapsody*)
11111 dynamic_linker="$host_os dyld"
11112 version_type=darwin
11115 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11116 soname_spec='${libname}${release}${major}$shared_ext'
11117 shlibpath_overrides_runpath=yes
11118 shlibpath_var=DYLD_LIBRARY_PATH
11119 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11120 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11121 if test "$GCC" = yes; then
11122 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"`
11124 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11126 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11134 soname_spec='${libname}${release}${shared_ext}$major'
11135 shlibpath_var=LD_LIBRARY_PATH
11146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11147 soname_spec='${libname}${release}${shared_ext}$major'
11148 shlibpath_var=LD_LIBRARY_PATH
11149 shlibpath_overrides_runpath=no
11150 hardcode_into_libs=yes
11151 dynamic_linker='GNU ld.so'
11155 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11156 version_type=freebsd-$objformat
11157 case $version_type in
11159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11164 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11168 shlibpath_var=LD_LIBRARY_PATH
11171 shlibpath_overrides_runpath=yes
11173 freebsd3.01* | freebsdelf3.01*)
11174 shlibpath_overrides_runpath=yes
11175 hardcode_into_libs=yes
11178 shlibpath_overrides_runpath=no
11179 hardcode_into_libs=yes
11188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11189 soname_spec='${libname}${release}${shared_ext}$major'
11190 shlibpath_var=LD_LIBRARY_PATH
11191 hardcode_into_libs=yes
11194 hpux9* | hpux10* | hpux11*)
11195 # Give a soname corresponding to the major version so that dld.sl refuses to
11196 # link against other versions.
11200 case "$host_cpu" in
11203 hardcode_into_libs=yes
11204 dynamic_linker="$host_os dld.so"
11205 shlibpath_var=LD_LIBRARY_PATH
11206 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11208 soname_spec='${libname}${release}${shared_ext}$major'
11209 if test "X$HPUX_IA64_MODE" = X32; then
11210 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11212 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11214 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11218 hardcode_into_libs=yes
11219 dynamic_linker="$host_os dld.sl"
11220 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11221 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11223 soname_spec='${libname}${release}${shared_ext}$major'
11224 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11225 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11229 dynamic_linker="$host_os dld.sl"
11230 shlibpath_var=SHLIB_PATH
11231 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11233 soname_spec='${libname}${release}${shared_ext}$major'
11236 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11237 postinstall_cmds='chmod 555 $lib'
11240 irix5* | irix6* | nonstopux*)
11242 nonstopux*) version_type=nonstopux ;;
11244 if test "$lt_cv_prog_gnu_ld" = yes; then
11252 soname_spec='${libname}${release}${shared_ext}$major'
11253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11255 irix5* | nonstopux*)
11256 libsuff= shlibsuff=
11259 case $LD in # libtool.m4 will add one of these switches to LD
11260 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11261 libsuff= shlibsuff= libmagic=32-bit;;
11262 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11263 libsuff=32 shlibsuff=N32 libmagic=N32;;
11264 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11265 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11266 *) libsuff= shlibsuff= libmagic=never-match;;
11270 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11271 shlibpath_overrides_runpath=no
11272 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11273 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11274 hardcode_into_libs=yes
11277 # No shared lib support for Linux oldld, aout, or coff.
11278 linux*oldld* | linux*aout* | linux*coff*)
11282 # This must be Linux ELF.
11287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11288 soname_spec='${libname}${release}${shared_ext}$major'
11289 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11290 shlibpath_var=LD_LIBRARY_PATH
11291 shlibpath_overrides_runpath=no
11292 # This implies no fast_install, which is unacceptable.
11293 # Some rework will be needed to allow for fast_install
11294 # before this can be enabled.
11295 hardcode_into_libs=yes
11297 # Append ld.so.conf contents to the search path
11298 if test -f /etc/ld.so.conf; then
11299 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11300 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11303 # We used to test for /lib/ld.so.1 and disable shared libraries on
11304 # powerpc, because MkLinux only supported shared libraries with the
11305 # GNU dynamic linker. Since this was broken with cross compilers,
11306 # most powerpc-linux boxes support dynamic linking these days and
11307 # people can always --disable-shared, the test was removed, and we
11308 # assume the GNU/Linux dynamic linker is in use.
11309 dynamic_linker='GNU/Linux ld.so'
11316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11317 soname_spec='${libname}${release}${shared_ext}$major'
11318 shlibpath_var=LD_LIBRARY_PATH
11319 shlibpath_overrides_runpath=no
11320 hardcode_into_libs=yes
11321 dynamic_linker='GNU ld.so'
11328 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11330 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11331 dynamic_linker='NetBSD (a.out) ld.so'
11333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11334 soname_spec='${libname}${release}${shared_ext}$major'
11335 dynamic_linker='NetBSD ld.elf_so'
11337 shlibpath_var=LD_LIBRARY_PATH
11338 shlibpath_overrides_runpath=yes
11339 hardcode_into_libs=yes
11344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11345 shlibpath_var=LD_LIBRARY_PATH
11346 shlibpath_overrides_runpath=yes
11353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11354 soname_spec='${libname}${release}${shared_ext}$major'
11355 shlibpath_var=LD_LIBRARY_PATH
11356 shlibpath_overrides_runpath=yes
11363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11365 shlibpath_var=LD_LIBRARY_PATH
11366 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11368 openbsd2.[89] | openbsd2.[89].*)
11369 shlibpath_overrides_runpath=no
11372 shlibpath_overrides_runpath=yes
11376 shlibpath_overrides_runpath=yes
11381 libname_spec='$name'
11384 library_names_spec='$libname${shared_ext} $libname.a'
11385 dynamic_linker='OS/2 ld.exe'
11386 shlibpath_var=LIBPATH
11389 osf3* | osf4* | osf5*)
11393 soname_spec='${libname}${release}${shared_ext}$major'
11394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11395 shlibpath_var=LD_LIBRARY_PATH
11396 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11397 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11402 soname_spec='${libname}${release}${shared_ext}$major'
11403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11404 shlibpath_var=LD_LIBRARY_PATH
11411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11412 soname_spec='${libname}${release}${shared_ext}$major'
11413 shlibpath_var=LD_LIBRARY_PATH
11414 shlibpath_overrides_runpath=yes
11415 hardcode_into_libs=yes
11416 # ldd complains unless libraries are executable
11417 postinstall_cmds='chmod +x $lib'
11422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11423 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11424 shlibpath_var=LD_LIBRARY_PATH
11425 shlibpath_overrides_runpath=yes
11426 if test "$with_gnu_ld" = yes; then
11432 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11435 soname_spec='${libname}${release}${shared_ext}$major'
11436 shlibpath_var=LD_LIBRARY_PATH
11437 case $host_vendor in
11439 shlibpath_overrides_runpath=no
11441 export_dynamic_flag_spec='${wl}-Blargedynsym'
11442 runpath_var=LD_RUN_PATH
11450 shlibpath_overrides_runpath=no
11451 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11457 if test -d /usr/nec ;then
11459 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11460 soname_spec='$libname${shared_ext}.$major'
11461 shlibpath_var=LD_LIBRARY_PATH
11467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11468 soname_spec='${libname}${release}${shared_ext}$major'
11469 shlibpath_var=LD_LIBRARY_PATH
11476 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11477 echo "${ECHO_T}$dynamic_linker" >&6
11478 test "$dynamic_linker" = no && can_build_shared=no
11480 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11481 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11483 if test -n "$hardcode_libdir_flag_spec" || \
11484 test -n "$runpath_var" || \
11485 test "X$hardcode_automatic" = "Xyes" ; then
11487 # We can hardcode non-existant directories.
11488 if test "$hardcode_direct" != no &&
11489 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11490 # have to relink, otherwise we might link with an installed library
11491 # when we should be linking with a yet-to-be-installed one
11492 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11493 test "$hardcode_minus_L" != no; then
11494 # Linking always hardcodes the temporary library directory.
11495 hardcode_action=relink
11497 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11498 hardcode_action=immediate
11501 # We cannot hardcode anything, or else we can only hardcode existing
11503 hardcode_action=unsupported
11505 echo "$as_me:$LINENO: result: $hardcode_action" >&5
11506 echo "${ECHO_T}$hardcode_action" >&6
11508 if test "$hardcode_action" = relink; then
11509 # Fast installation is not supported
11510 enable_fast_install=no
11511 elif test "$shlibpath_overrides_runpath" = yes ||
11512 test "$enable_shared" = no; then
11513 # Fast installation is not necessary
11514 enable_fast_install=needless
11519 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11520 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11521 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11522 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11523 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11524 echo "$as_me:$LINENO: result: yes" >&5
11525 echo "${ECHO_T}yes" >&6
11527 # FIXME - insert some real tests, host_os isn't really good enough
11530 if test -n "$STRIP" ; then
11531 striplib="$STRIP -x"
11532 echo "$as_me:$LINENO: result: yes" >&5
11533 echo "${ECHO_T}yes" >&6
11535 echo "$as_me:$LINENO: result: no" >&5
11536 echo "${ECHO_T}no" >&6
11540 echo "$as_me:$LINENO: result: no" >&5
11541 echo "${ECHO_T}no" >&6
11546 if test "x$enable_dlopen" != xyes; then
11547 enable_dlopen=unknown
11548 enable_dlopen_self=unknown
11549 enable_dlopen_self_static=unknown
11556 lt_cv_dlopen="load_add_on"
11558 lt_cv_dlopen_self=yes
11562 lt_cv_dlopen="LoadLibrary"
11567 lt_cv_dlopen="dlopen"
11572 # if libdl is installed we need to link against it
11573 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11574 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11575 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
11578 ac_check_lib_save_LIBS=$LIBS
11580 cat >conftest.$ac_ext <<_ACEOF
11583 cat confdefs.h >>conftest.$ac_ext
11584 cat >>conftest.$ac_ext <<_ACEOF
11585 /* end confdefs.h. */
11587 /* Override any gcc2 internal prototype to avoid an error. */
11591 /* We use char because int might match the return type of a gcc2
11592 builtin and then its argument prototype would still apply. */
11602 rm -f conftest.$ac_objext conftest$ac_exeext
11603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11604 (eval $ac_link) 2>conftest.er1
11606 grep -v '^ *+' conftest.er1 >conftest.err
11608 cat conftest.err >&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } &&
11611 { ac_try='test -z "$ac_c_werror_flag"
11612 || test ! -s conftest.err'
11613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11614 (eval $ac_try) 2>&5
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }; } &&
11618 { ac_try='test -s conftest$ac_exeext'
11619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11620 (eval $ac_try) 2>&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); }; }; then
11624 ac_cv_lib_dl_dlopen=yes
11626 echo "$as_me: failed program was:" >&5
11627 sed 's/^/| /' conftest.$ac_ext >&5
11629 ac_cv_lib_dl_dlopen=no
11631 rm -f conftest.err conftest.$ac_objext \
11632 conftest$ac_exeext conftest.$ac_ext
11633 LIBS=$ac_check_lib_save_LIBS
11635 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11636 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11637 if test $ac_cv_lib_dl_dlopen = yes; then
11638 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11641 lt_cv_dlopen="dyld"
11643 lt_cv_dlopen_self=yes
11650 echo "$as_me:$LINENO: checking for shl_load" >&5
11651 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11652 if test "${ac_cv_func_shl_load+set}" = set; then
11653 echo $ECHO_N "(cached) $ECHO_C" >&6
11655 cat >conftest.$ac_ext <<_ACEOF
11658 cat confdefs.h >>conftest.$ac_ext
11659 cat >>conftest.$ac_ext <<_ACEOF
11660 /* end confdefs.h. */
11661 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11663 #define shl_load innocuous_shl_load
11665 /* System header to define __stub macros and hopefully few prototypes,
11666 which can conflict with char shl_load (); below.
11667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11668 <limits.h> exists even on freestanding compilers. */
11671 # include <limits.h>
11673 # include <assert.h>
11678 /* Override any gcc2 internal prototype to avoid an error. */
11683 /* We use char because int might match the return type of a gcc2
11684 builtin and then its argument prototype would still apply. */
11686 /* The GNU C library defines this for functions which it implements
11687 to always fail with ENOSYS. Some functions are actually named
11688 something starting with __ and the normal name is an alias. */
11689 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11692 char (*f) () = shl_load;
11701 return f != shl_load;
11706 rm -f conftest.$ac_objext conftest$ac_exeext
11707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11708 (eval $ac_link) 2>conftest.er1
11710 grep -v '^ *+' conftest.er1 >conftest.err
11712 cat conftest.err >&5
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); } &&
11715 { ac_try='test -z "$ac_c_werror_flag"
11716 || test ! -s conftest.err'
11717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718 (eval $ac_try) 2>&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; } &&
11722 { ac_try='test -s conftest$ac_exeext'
11723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11724 (eval $ac_try) 2>&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; }; then
11728 ac_cv_func_shl_load=yes
11730 echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.$ac_ext >&5
11733 ac_cv_func_shl_load=no
11735 rm -f conftest.err conftest.$ac_objext \
11736 conftest$ac_exeext conftest.$ac_ext
11738 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11739 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11740 if test $ac_cv_func_shl_load = yes; then
11741 lt_cv_dlopen="shl_load"
11743 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11744 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11745 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11748 ac_check_lib_save_LIBS=$LIBS
11750 cat >conftest.$ac_ext <<_ACEOF
11753 cat confdefs.h >>conftest.$ac_ext
11754 cat >>conftest.$ac_ext <<_ACEOF
11755 /* end confdefs.h. */
11757 /* Override any gcc2 internal prototype to avoid an error. */
11761 /* We use char because int might match the return type of a gcc2
11762 builtin and then its argument prototype would still apply. */
11772 rm -f conftest.$ac_objext conftest$ac_exeext
11773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11774 (eval $ac_link) 2>conftest.er1
11776 grep -v '^ *+' conftest.er1 >conftest.err
11778 cat conftest.err >&5
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); } &&
11781 { ac_try='test -z "$ac_c_werror_flag"
11782 || test ! -s conftest.err'
11783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11784 (eval $ac_try) 2>&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); }; } &&
11788 { ac_try='test -s conftest$ac_exeext'
11789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790 (eval $ac_try) 2>&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; }; then
11794 ac_cv_lib_dld_shl_load=yes
11796 echo "$as_me: failed program was:" >&5
11797 sed 's/^/| /' conftest.$ac_ext >&5
11799 ac_cv_lib_dld_shl_load=no
11801 rm -f conftest.err conftest.$ac_objext \
11802 conftest$ac_exeext conftest.$ac_ext
11803 LIBS=$ac_check_lib_save_LIBS
11805 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11806 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11807 if test $ac_cv_lib_dld_shl_load = yes; then
11808 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11810 echo "$as_me:$LINENO: checking for dlopen" >&5
11811 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11812 if test "${ac_cv_func_dlopen+set}" = set; then
11813 echo $ECHO_N "(cached) $ECHO_C" >&6
11815 cat >conftest.$ac_ext <<_ACEOF
11818 cat confdefs.h >>conftest.$ac_ext
11819 cat >>conftest.$ac_ext <<_ACEOF
11820 /* end confdefs.h. */
11821 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11823 #define dlopen innocuous_dlopen
11825 /* System header to define __stub macros and hopefully few prototypes,
11826 which can conflict with char dlopen (); below.
11827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11828 <limits.h> exists even on freestanding compilers. */
11831 # include <limits.h>
11833 # include <assert.h>
11838 /* Override any gcc2 internal prototype to avoid an error. */
11843 /* We use char because int might match the return type of a gcc2
11844 builtin and then its argument prototype would still apply. */
11846 /* The GNU C library defines this for functions which it implements
11847 to always fail with ENOSYS. Some functions are actually named
11848 something starting with __ and the normal name is an alias. */
11849 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11852 char (*f) () = dlopen;
11861 return f != dlopen;
11866 rm -f conftest.$ac_objext conftest$ac_exeext
11867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11868 (eval $ac_link) 2>conftest.er1
11870 grep -v '^ *+' conftest.er1 >conftest.err
11872 cat conftest.err >&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); } &&
11875 { ac_try='test -z "$ac_c_werror_flag"
11876 || test ! -s conftest.err'
11877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878 (eval $ac_try) 2>&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; } &&
11882 { ac_try='test -s conftest$ac_exeext'
11883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884 (eval $ac_try) 2>&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); }; }; then
11888 ac_cv_func_dlopen=yes
11890 echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.$ac_ext >&5
11893 ac_cv_func_dlopen=no
11895 rm -f conftest.err conftest.$ac_objext \
11896 conftest$ac_exeext conftest.$ac_ext
11898 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11899 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11900 if test $ac_cv_func_dlopen = yes; then
11901 lt_cv_dlopen="dlopen"
11903 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11904 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11905 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11906 echo $ECHO_N "(cached) $ECHO_C" >&6
11908 ac_check_lib_save_LIBS=$LIBS
11910 cat >conftest.$ac_ext <<_ACEOF
11913 cat confdefs.h >>conftest.$ac_ext
11914 cat >>conftest.$ac_ext <<_ACEOF
11915 /* end confdefs.h. */
11917 /* Override any gcc2 internal prototype to avoid an error. */
11921 /* We use char because int might match the return type of a gcc2
11922 builtin and then its argument prototype would still apply. */
11932 rm -f conftest.$ac_objext conftest$ac_exeext
11933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11934 (eval $ac_link) 2>conftest.er1
11936 grep -v '^ *+' conftest.er1 >conftest.err
11938 cat conftest.err >&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } &&
11941 { ac_try='test -z "$ac_c_werror_flag"
11942 || test ! -s conftest.err'
11943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944 (eval $ac_try) 2>&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; } &&
11948 { ac_try='test -s conftest$ac_exeext'
11949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; }; then
11954 ac_cv_lib_dl_dlopen=yes
11956 echo "$as_me: failed program was:" >&5
11957 sed 's/^/| /' conftest.$ac_ext >&5
11959 ac_cv_lib_dl_dlopen=no
11961 rm -f conftest.err conftest.$ac_objext \
11962 conftest$ac_exeext conftest.$ac_ext
11963 LIBS=$ac_check_lib_save_LIBS
11965 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11966 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11967 if test $ac_cv_lib_dl_dlopen = yes; then
11968 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11970 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11971 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11972 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11975 ac_check_lib_save_LIBS=$LIBS
11976 LIBS="-lsvld $LIBS"
11977 cat >conftest.$ac_ext <<_ACEOF
11980 cat confdefs.h >>conftest.$ac_ext
11981 cat >>conftest.$ac_ext <<_ACEOF
11982 /* end confdefs.h. */
11984 /* Override any gcc2 internal prototype to avoid an error. */
11988 /* We use char because int might match the return type of a gcc2
11989 builtin and then its argument prototype would still apply. */
11999 rm -f conftest.$ac_objext conftest$ac_exeext
12000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12001 (eval $ac_link) 2>conftest.er1
12003 grep -v '^ *+' conftest.er1 >conftest.err
12005 cat conftest.err >&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } &&
12008 { ac_try='test -z "$ac_c_werror_flag"
12009 || test ! -s conftest.err'
12010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12011 (eval $ac_try) 2>&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); }; } &&
12015 { ac_try='test -s conftest$ac_exeext'
12016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017 (eval $ac_try) 2>&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; }; then
12021 ac_cv_lib_svld_dlopen=yes
12023 echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.$ac_ext >&5
12026 ac_cv_lib_svld_dlopen=no
12028 rm -f conftest.err conftest.$ac_objext \
12029 conftest$ac_exeext conftest.$ac_ext
12030 LIBS=$ac_check_lib_save_LIBS
12032 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12033 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12034 if test $ac_cv_lib_svld_dlopen = yes; then
12035 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12037 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12038 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12039 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12040 echo $ECHO_N "(cached) $ECHO_C" >&6
12042 ac_check_lib_save_LIBS=$LIBS
12044 cat >conftest.$ac_ext <<_ACEOF
12047 cat confdefs.h >>conftest.$ac_ext
12048 cat >>conftest.$ac_ext <<_ACEOF
12049 /* end confdefs.h. */
12051 /* Override any gcc2 internal prototype to avoid an error. */
12055 /* We use char because int might match the return type of a gcc2
12056 builtin and then its argument prototype would still apply. */
12066 rm -f conftest.$ac_objext conftest$ac_exeext
12067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12068 (eval $ac_link) 2>conftest.er1
12070 grep -v '^ *+' conftest.er1 >conftest.err
12072 cat conftest.err >&5
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); } &&
12075 { ac_try='test -z "$ac_c_werror_flag"
12076 || test ! -s conftest.err'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; } &&
12082 { ac_try='test -s conftest$ac_exeext'
12083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12084 (eval $ac_try) 2>&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); }; }; then
12088 ac_cv_lib_dld_dld_link=yes
12090 echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12093 ac_cv_lib_dld_dld_link=no
12095 rm -f conftest.err conftest.$ac_objext \
12096 conftest$ac_exeext conftest.$ac_ext
12097 LIBS=$ac_check_lib_save_LIBS
12099 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12100 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12101 if test $ac_cv_lib_dld_dld_link = yes; then
12102 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12123 if test "x$lt_cv_dlopen" != xno; then
12129 case $lt_cv_dlopen in
12131 save_CPPFLAGS="$CPPFLAGS"
12132 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12134 save_LDFLAGS="$LDFLAGS"
12135 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12138 LIBS="$lt_cv_dlopen_libs $LIBS"
12140 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12141 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12142 if test "${lt_cv_dlopen_self+set}" = set; then
12143 echo $ECHO_N "(cached) $ECHO_C" >&6
12145 if test "$cross_compiling" = yes; then :
12146 lt_cv_dlopen_self=cross
12148 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12149 lt_status=$lt_dlunknown
12150 cat > conftest.$ac_ext <<EOF
12151 #line 12151 "configure"
12152 #include "confdefs.h"
12161 # define LT_DLGLOBAL RTLD_GLOBAL
12164 # define LT_DLGLOBAL DL_GLOBAL
12166 # define LT_DLGLOBAL 0
12170 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12171 find out it does not work in some platform. */
12172 #ifndef LT_DLLAZY_OR_NOW
12174 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12177 # define LT_DLLAZY_OR_NOW DL_LAZY
12180 # define LT_DLLAZY_OR_NOW RTLD_NOW
12183 # define LT_DLLAZY_OR_NOW DL_NOW
12185 # define LT_DLLAZY_OR_NOW 0
12193 extern "C" void exit (int);
12196 void fnord() { int i=42;}
12199 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12200 int status = $lt_dlunknown;
12204 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12205 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12206 /* dlclose (self); */
12212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12213 (eval $ac_link) 2>&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12217 (./conftest; exit; ) 2>/dev/null
12219 case x$lt_status in
12220 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12221 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12222 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12225 # compilation failed
12226 lt_cv_dlopen_self=no
12233 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12234 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12236 if test "x$lt_cv_dlopen_self" = xyes; then
12237 LDFLAGS="$LDFLAGS $link_static_flag"
12238 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12239 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12240 if test "${lt_cv_dlopen_self_static+set}" = set; then
12241 echo $ECHO_N "(cached) $ECHO_C" >&6
12243 if test "$cross_compiling" = yes; then :
12244 lt_cv_dlopen_self_static=cross
12246 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12247 lt_status=$lt_dlunknown
12248 cat > conftest.$ac_ext <<EOF
12249 #line 12249 "configure"
12250 #include "confdefs.h"
12259 # define LT_DLGLOBAL RTLD_GLOBAL
12262 # define LT_DLGLOBAL DL_GLOBAL
12264 # define LT_DLGLOBAL 0
12268 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12269 find out it does not work in some platform. */
12270 #ifndef LT_DLLAZY_OR_NOW
12272 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12275 # define LT_DLLAZY_OR_NOW DL_LAZY
12278 # define LT_DLLAZY_OR_NOW RTLD_NOW
12281 # define LT_DLLAZY_OR_NOW DL_NOW
12283 # define LT_DLLAZY_OR_NOW 0
12291 extern "C" void exit (int);
12294 void fnord() { int i=42;}
12297 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12298 int status = $lt_dlunknown;
12302 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12303 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12304 /* dlclose (self); */
12310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12311 (eval $ac_link) 2>&5
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12315 (./conftest; exit; ) 2>/dev/null
12317 case x$lt_status in
12318 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12319 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12320 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12323 # compilation failed
12324 lt_cv_dlopen_self_static=no
12331 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12332 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12335 CPPFLAGS="$save_CPPFLAGS"
12336 LDFLAGS="$save_LDFLAGS"
12341 case $lt_cv_dlopen_self in
12342 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12343 *) enable_dlopen_self=unknown ;;
12346 case $lt_cv_dlopen_self_static in
12347 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12348 *) enable_dlopen_self_static=unknown ;;
12353 # Report which librarie types wil actually be built
12354 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12355 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12356 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12357 echo "${ECHO_T}$can_build_shared" >&6
12359 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12360 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12361 test "$can_build_shared" = "no" && enable_shared=no
12363 # On AIX, shared libraries and static libraries use the same namespace, and
12364 # are all built from PIC.
12367 test "$enable_shared" = yes && enable_static=no
12368 if test -n "$RANLIB"; then
12369 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12370 postinstall_cmds='$RANLIB $lib'
12375 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12376 test "$enable_shared" = yes && enable_static=no
12380 echo "$as_me:$LINENO: result: $enable_shared" >&5
12381 echo "${ECHO_T}$enable_shared" >&6
12383 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12384 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12385 # Make sure either enable_shared or enable_static is yes.
12386 test "$enable_shared" = yes || enable_static=yes
12387 echo "$as_me:$LINENO: result: $enable_static" >&5
12388 echo "${ECHO_T}$enable_static" >&6
12390 # The else clause should only fire when bootstrapping the
12391 # libtool distribution, otherwise you forgot to ship ltmain.sh
12392 # with your package, and you will get complaints that there are
12393 # no rules to generate ltmain.sh.
12394 if test -f "$ltmain"; then
12395 # See if we are running on zsh, and set the options which allow our commands through
12396 # without removal of \ escapes.
12397 if test -n "${ZSH_VERSION+set}" ; then
12398 setopt NO_GLOB_SUBST
12400 # Now quote all the things that may contain metacharacters while being
12401 # careful not to overquote the AC_SUBSTed values. We take copies of the
12402 # variables and quote the copies for generation of the libtool script.
12403 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12405 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12406 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12407 deplibs_check_method reload_flag reload_cmds need_locks \
12408 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12409 lt_cv_sys_global_symbol_to_c_name_address \
12410 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12411 old_postinstall_cmds old_postuninstall_cmds \
12415 lt_prog_compiler_wl \
12416 lt_prog_compiler_pic \
12417 lt_prog_compiler_static \
12418 lt_prog_compiler_no_builtin_flag \
12419 export_dynamic_flag_spec \
12420 thread_safe_flag_spec \
12421 whole_archive_flag_spec \
12422 enable_shared_with_static_runtimes \
12424 old_archive_from_new_cmds \
12429 compiler_lib_search_path \
12431 archive_expsym_cmds \
12433 postuninstall_cmds \
12434 old_archive_from_expsyms_cmds \
12435 allow_undefined_flag \
12436 no_undefined_flag \
12437 export_symbols_cmds \
12438 hardcode_libdir_flag_spec \
12439 hardcode_libdir_flag_spec_ld \
12440 hardcode_libdir_separator \
12441 hardcode_automatic \
12443 module_expsym_cmds \
12444 lt_cv_prog_compiler_c_o \
12446 include_expsyms; do
12449 old_archive_cmds | \
12450 old_archive_from_new_cmds | \
12452 archive_expsym_cmds | \
12454 module_expsym_cmds | \
12455 old_archive_from_expsyms_cmds | \
12456 export_symbols_cmds | \
12457 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12458 postinstall_cmds | postuninstall_cmds | \
12459 old_postinstall_cmds | old_postuninstall_cmds | \
12460 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12461 # Double-quote double-evaled strings.
12462 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12465 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12471 *'\$0 --fallback-echo"')
12472 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12476 cfgfile="${ofile}T"
12477 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12479 { echo "$as_me:$LINENO: creating $ofile" >&5
12480 echo "$as_me: creating $ofile" >&6;}
12482 cat <<__EOF__ >> "$cfgfile"
12485 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12486 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12487 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12489 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
12490 # Free Software Foundation, Inc.
12492 # This file is part of GNU Libtool:
12493 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12495 # This program is free software; you can redistribute it and/or modify
12496 # it under the terms of the GNU General Public License as published by
12497 # the Free Software Foundation; either version 2 of the License, or
12498 # (at your option) any later version.
12500 # This program is distributed in the hope that it will be useful, but
12501 # WITHOUT ANY WARRANTY; without even the implied warranty of
12502 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12503 # General Public License for more details.
12505 # You should have received a copy of the GNU General Public License
12506 # along with this program; if not, write to the Free Software
12507 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
12509 # As a special exception to the GNU General Public License, if you
12510 # distribute this file as part of a program that contains a
12511 # configuration script generated by Autoconf, you may include it under
12512 # the same distribution terms that you use for the rest of that program.
12514 # A sed program that does not truncate output.
12517 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12518 Xsed="$SED -e s/^X//"
12520 # The HP-UX ksh and POSIX shell print the target directory to stdout
12521 # if CDPATH is set.
12522 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12524 # The names of the tagged configurations supported by this script.
12527 # ### BEGIN LIBTOOL CONFIG
12529 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12531 # Shell to use when invoking shell scripts.
12534 # Whether or not to build shared libraries.
12535 build_libtool_libs=$enable_shared
12537 # Whether or not to build static libraries.
12538 build_old_libs=$enable_static
12540 # Whether or not to add -lc for building shared libraries.
12541 build_libtool_need_lc=$archive_cmds_need_lc
12543 # Whether or not to disallow shared libs when runtime libs are static
12544 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12546 # Whether or not to optimize for fast installation.
12547 fast_install=$enable_fast_install
12550 host_alias=$host_alias
12553 # An echo program that does not interpret backslashes.
12558 AR_FLAGS=$lt_AR_FLAGS
12563 # A language-specific compiler.
12566 # Is the compiler the GNU C compiler?
12572 # The linker used to build libraries.
12575 # Whether we need hard or soft links.
12578 # A BSD-compatible nm program.
12581 # A symbol stripping program
12584 # Used to examine libraries when file_magic_cmd begins "file"
12585 MAGIC_CMD=$MAGIC_CMD
12587 # Used on cygwin: DLL creation program.
12590 # Used on cygwin: object dumper.
12593 # Used on cygwin: assembler.
12596 # The name of the directory that contains temporary libtool files.
12599 # How to create reloadable object files.
12600 reload_flag=$lt_reload_flag
12601 reload_cmds=$lt_reload_cmds
12603 # How to pass a linker flag through the compiler.
12604 wl=$lt_lt_prog_compiler_wl
12606 # Object file suffix (normally "o").
12607 objext="$ac_objext"
12609 # Old archive suffix (normally "a").
12612 # Shared library suffix (normally ".so").
12613 shrext_cmds='$shrext_cmds'
12615 # Executable file suffix (normally "").
12618 # Additional compiler flags for building library objects.
12619 pic_flag=$lt_lt_prog_compiler_pic
12622 # What is the maximum length of a command?
12623 max_cmd_len=$lt_cv_sys_max_cmd_len
12625 # Does compiler simultaneously support -c and -o options?
12626 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12628 # Must we lock files when doing compilation ?
12629 need_locks=$lt_need_locks
12631 # Do we need the lib prefix for modules?
12632 need_lib_prefix=$need_lib_prefix
12634 # Do we need a version for libraries?
12635 need_version=$need_version
12637 # Whether dlopen is supported.
12638 dlopen_support=$enable_dlopen
12640 # Whether dlopen of programs is supported.
12641 dlopen_self=$enable_dlopen_self
12643 # Whether dlopen of statically linked programs is supported.
12644 dlopen_self_static=$enable_dlopen_self_static
12646 # Compiler flag to prevent dynamic linking.
12647 link_static_flag=$lt_lt_prog_compiler_static
12649 # Compiler flag to turn off builtin functions.
12650 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12652 # Compiler flag to allow reflexive dlopens.
12653 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12655 # Compiler flag to generate shared objects directly from archives.
12656 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12658 # Compiler flag to generate thread-safe objects.
12659 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12661 # Library versioning type.
12662 version_type=$version_type
12664 # Format of library name prefix.
12665 libname_spec=$lt_libname_spec
12667 # List of archive names. First name is the real one, the rest are links.
12668 # The last name is the one that the linker finds with -lNAME.
12669 library_names_spec=$lt_library_names_spec
12671 # The coded name of the library, if different from the real name.
12672 soname_spec=$lt_soname_spec
12674 # Commands used to build and install an old-style archive.
12676 old_archive_cmds=$lt_old_archive_cmds
12677 old_postinstall_cmds=$lt_old_postinstall_cmds
12678 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12680 # Create an old-style archive from a shared archive.
12681 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12683 # Create a temporary old-style archive to link instead of a shared archive.
12684 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12686 # Commands used to build and install a shared archive.
12687 archive_cmds=$lt_archive_cmds
12688 archive_expsym_cmds=$lt_archive_expsym_cmds
12689 postinstall_cmds=$lt_postinstall_cmds
12690 postuninstall_cmds=$lt_postuninstall_cmds
12692 # Commands used to build a loadable module (assumed same as above if empty)
12693 module_cmds=$lt_module_cmds
12694 module_expsym_cmds=$lt_module_expsym_cmds
12696 # Commands to strip libraries.
12697 old_striplib=$lt_old_striplib
12698 striplib=$lt_striplib
12700 # Dependencies to place before the objects being linked to create a
12702 predep_objects=$lt_predep_objects
12704 # Dependencies to place after the objects being linked to create a
12706 postdep_objects=$lt_postdep_objects
12708 # Dependencies to place before the objects being linked to create a
12710 predeps=$lt_predeps
12712 # Dependencies to place after the objects being linked to create a
12714 postdeps=$lt_postdeps
12716 # The library search path used internally by the compiler when linking
12717 # a shared library.
12718 compiler_lib_search_path=$lt_compiler_lib_search_path
12720 # Method to check whether dependent libraries are shared objects.
12721 deplibs_check_method=$lt_deplibs_check_method
12723 # Command to use when deplibs_check_method == file_magic.
12724 file_magic_cmd=$lt_file_magic_cmd
12726 # Flag that allows shared libraries with undefined symbols to be built.
12727 allow_undefined_flag=$lt_allow_undefined_flag
12729 # Flag that forces no undefined symbols.
12730 no_undefined_flag=$lt_no_undefined_flag
12732 # Commands used to finish a libtool library installation in a directory.
12733 finish_cmds=$lt_finish_cmds
12735 # Same as above, but a single script fragment to be evaled but not shown.
12736 finish_eval=$lt_finish_eval
12738 # Take the output of nm and produce a listing of raw symbols and C names.
12739 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12741 # Transform the output of nm in a proper C declaration
12742 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12744 # Transform the output of nm in a C name address pair
12745 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12747 # This is the shared library runtime path variable.
12748 runpath_var=$runpath_var
12750 # This is the shared library path variable.
12751 shlibpath_var=$shlibpath_var
12753 # Is shlibpath searched before the hard-coded library search path?
12754 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12756 # How to hardcode a shared library path into an executable.
12757 hardcode_action=$hardcode_action
12759 # Whether we should hardcode library paths into libraries.
12760 hardcode_into_libs=$hardcode_into_libs
12762 # Flag to hardcode \$libdir into a binary during linking.
12763 # This must work even if \$libdir does not exist.
12764 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12766 # If ld is used when linking, flag to hardcode \$libdir into
12767 # a binary during linking. This must work even if \$libdir does
12769 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12771 # Whether we need a single -rpath flag with a separated argument.
12772 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12774 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12775 # resulting binary.
12776 hardcode_direct=$hardcode_direct
12778 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12779 # resulting binary.
12780 hardcode_minus_L=$hardcode_minus_L
12782 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12783 # the resulting binary.
12784 hardcode_shlibpath_var=$hardcode_shlibpath_var
12786 # Set to yes if building a shared library automatically hardcodes DIR into the library
12787 # and all subsequent libraries and executables linked against it.
12788 hardcode_automatic=$hardcode_automatic
12790 # Variables whose values should be saved in libtool wrapper scripts and
12791 # restored at relink time.
12792 variables_saved_for_relink="$variables_saved_for_relink"
12794 # Whether libtool must link a program against all its dependency libraries.
12795 link_all_deplibs=$link_all_deplibs
12797 # Compile-time system search path for libraries
12798 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12800 # Run-time system search path for libraries
12801 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12803 # Fix the shell variable \$srcfile for the compiler.
12804 fix_srcfile_path="$fix_srcfile_path"
12806 # Set to yes if exported symbols are required.
12807 always_export_symbols=$always_export_symbols
12809 # The commands to list exported symbols.
12810 export_symbols_cmds=$lt_export_symbols_cmds
12812 # The commands to extract the exported symbol list from a shared archive.
12813 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12815 # Symbols that should not be listed in the preloaded symbols.
12816 exclude_expsyms=$lt_exclude_expsyms
12818 # Symbols that must always be exported.
12819 include_expsyms=$lt_include_expsyms
12821 # ### END LIBTOOL CONFIG
12828 cat <<\EOF >> "$cfgfile"
12830 # AIX sometimes has problems with the GCC collect2 program. For some
12831 # reason, if we set the COLLECT_NAMES environment variable, the problems
12832 # vanish in a puff of smoke.
12833 if test "X${COLLECT_NAMES+set}" != Xset; then
12835 export COLLECT_NAMES
12841 # We use sed instead of cat because bash on DJGPP gets confused if
12842 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12843 # text mode, it properly converts lines to CR/LF. This bash problem
12844 # is reportedly fixed, but why not run on old versions too?
12845 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12847 mv -f "$cfgfile" "$ofile" || \
12848 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12852 # If there is no Makefile yet, we rely on a make rule to execute
12853 # `config.status --recheck' to rerun these tests and create the
12854 # libtool script then.
12855 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12856 if test -f "$ltmain_in"; then
12857 test -f Makefile && make "$ltmain"
12863 ac_cpp='$CPP $CPPFLAGS'
12864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12871 # Check whether --with-tags or --without-tags was given.
12872 if test "${with_tags+set}" = set; then
12873 withval="$with_tags"
12874 tagnames="$withval"
12877 if test -f "$ltmain" && test -n "$tagnames"; then
12878 if test ! -f "${ofile}"; then
12879 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12880 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12883 if test -z "$LTCC"; then
12884 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12885 if test -z "$LTCC"; then
12886 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12887 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12889 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12890 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12894 # Extract list of available tagged configurations in $ofile.
12895 # Note that this assumes the entire list is on one line.
12896 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12898 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12899 for tagname in $tagnames; do
12901 # Check whether tagname contains only valid characters
12902 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12904 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12905 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12906 { (exit 1); exit 1; }; }
12910 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12912 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12913 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12914 { (exit 1); exit 1; }; }
12917 # Update the list of available tags.
12918 if test -n "$tagname"; then
12919 echo appending configuration tag \"$tagname\" to $ofile
12923 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12924 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12925 (test "X$CXX" != "Xg++"))) ; then
12927 ac_cpp='$CXXCPP $CPPFLAGS'
12928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12935 archive_cmds_need_lc_CXX=no
12936 allow_undefined_flag_CXX=
12937 always_export_symbols_CXX=no
12938 archive_expsym_cmds_CXX=
12939 export_dynamic_flag_spec_CXX=
12940 hardcode_direct_CXX=no
12941 hardcode_libdir_flag_spec_CXX=
12942 hardcode_libdir_flag_spec_ld_CXX=
12943 hardcode_libdir_separator_CXX=
12944 hardcode_minus_L_CXX=no
12945 hardcode_automatic_CXX=no
12947 module_expsym_cmds_CXX=
12948 link_all_deplibs_CXX=unknown
12949 old_archive_cmds_CXX=$old_archive_cmds
12950 no_undefined_flag_CXX=
12951 whole_archive_flag_spec_CXX=
12952 enable_shared_with_static_runtimes_CXX=no
12954 # Dependencies to place before and after the object being linked:
12955 predep_objects_CXX=
12956 postdep_objects_CXX=
12959 compiler_lib_search_path_CXX=
12961 # Source file extension for C++ test sources.
12964 # Object file extension for compiled C++ test sources.
12968 # Code to be used in simple compile tests
12969 lt_simple_compile_test_code="int some_variable = 0;\n"
12971 # Code to be used in simple link tests
12972 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
12974 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12976 # If no C compiler was specified, use CC.
12979 # Allow CC to be a program name with arguments.
12983 # Allow CC to be a program name with arguments.
12988 lt_save_with_gnu_ld=$with_gnu_ld
12989 lt_save_path_LD=$lt_cv_path_LD
12990 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12991 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12993 unset lt_cv_prog_gnu_ld
12995 if test -n "${lt_cv_path_LDCXX+set}"; then
12996 lt_cv_path_LD=$lt_cv_path_LDCXX
12998 unset lt_cv_path_LD
13000 test -z "${LDCXX+set}" || LD=$LDCXX
13004 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13006 # We don't want -fno-exception wen compiling C++ code, so set the
13007 # no_builtin_flag separately
13008 if test "$GXX" = yes; then
13009 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13011 lt_prog_compiler_no_builtin_flag_CXX=
13014 if test "$GXX" = yes; then
13015 # Set up default GNU C++ configuration
13018 # Check whether --with-gnu-ld or --without-gnu-ld was given.
13019 if test "${with_gnu_ld+set}" = set; then
13020 withval="$with_gnu_ld"
13021 test "$withval" = no || with_gnu_ld=yes
13026 if test "$GCC" = yes; then
13027 # Check if gcc -print-prog-name=ld gives a path.
13028 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13029 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
13032 # gcc leaves a trailing carriage return which upsets mingw
13033 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13035 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13038 # Accept absolute paths.
13040 re_direlt='/[^/][^/]*/\.\./'
13041 # Canonicalize the pathname of ld
13042 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
13043 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13044 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
13046 test -z "$LD" && LD="$ac_prog"
13049 # If it fails, then pretend we aren't using GCC.
13053 # If it is relative, then search for the first ld in PATH.
13054 with_gnu_ld=unknown
13057 elif test "$with_gnu_ld" = yes; then
13058 echo "$as_me:$LINENO: checking for GNU ld" >&5
13059 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13061 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13062 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13064 if test "${lt_cv_path_LD+set}" = set; then
13065 echo $ECHO_N "(cached) $ECHO_C" >&6
13067 if test -z "$LD"; then
13068 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13069 for ac_dir in $PATH; do
13071 test -z "$ac_dir" && ac_dir=.
13072 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13073 lt_cv_path_LD="$ac_dir/$ac_prog"
13074 # Check to see if the program is GNU ld. I'd rather use --version,
13075 # but apparently some GNU ld's only accept -v.
13076 # Break only if it was the GNU/non-GNU ld that we prefer.
13077 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13078 *GNU* | *'with BFD'*)
13079 test "$with_gnu_ld" != no && break
13082 test "$with_gnu_ld" != yes && break
13089 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13093 LD="$lt_cv_path_LD"
13094 if test -n "$LD"; then
13095 echo "$as_me:$LINENO: result: $LD" >&5
13096 echo "${ECHO_T}$LD" >&6
13098 echo "$as_me:$LINENO: result: no" >&5
13099 echo "${ECHO_T}no" >&6
13101 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13102 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13103 { (exit 1); exit 1; }; }
13104 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13105 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13106 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13107 echo $ECHO_N "(cached) $ECHO_C" >&6
13109 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13110 case `$LD -v 2>&1 </dev/null` in
13111 *GNU* | *'with BFD'*)
13112 lt_cv_prog_gnu_ld=yes
13115 lt_cv_prog_gnu_ld=no
13119 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13120 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
13121 with_gnu_ld=$lt_cv_prog_gnu_ld
13125 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13126 # archiving commands below assume that GNU ld is being used.
13127 if test "$with_gnu_ld" = yes; then
13128 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13129 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'
13131 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13132 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13134 # If archive_cmds runs LD, not CC, wlarc should be empty
13135 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13136 # investigate it a little bit more. (MM)
13139 # ancient GNU ld didn't support --whole-archive et. al.
13140 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
13141 grep 'no-whole-archive' > /dev/null; then
13142 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13144 whole_archive_flag_spec_CXX=
13150 # A generic and very simple default shared library creation
13151 # command for GNU C++ for the case where it uses the native
13152 # linker, instead of GNU ld. If possible, this setting should
13153 # overridden to take advantage of the native linker features on
13154 # the platform it is being used on.
13155 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13158 # Commands to make compiler produce verbose output that lists
13159 # what "hidden" libraries, object files and flags are used when
13160 # linking a shared library.
13161 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13169 # PORTME: fill in a description of your system's C++ link characteristics
13170 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13171 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13175 # FIXME: insert proper C++ library support
13179 if test "$host_cpu" = ia64; then
13180 # On IA64, the linker does run time linking by default, so we don't
13181 # have to do anything special.
13182 aix_use_runtimelinking=no
13183 exp_sym_flag='-Bexport'
13186 aix_use_runtimelinking=no
13188 # Test if we are trying to use run time linking or normal
13189 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13190 # need to do runtime linking.
13191 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13192 for ld_flag in $LDFLAGS; do
13195 aix_use_runtimelinking=yes
13202 exp_sym_flag='-bexport'
13203 no_entry_flag='-bnoentry'
13206 # When large executables or shared objects are built, AIX ld can
13207 # have problems creating the table of contents. If linking a library
13208 # or program results in "error TOC overflow" add -mminimal-toc to
13209 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13210 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13212 archive_cmds_CXX=''
13213 hardcode_direct_CXX=yes
13214 hardcode_libdir_separator_CXX=':'
13215 link_all_deplibs_CXX=yes
13217 if test "$GXX" = yes; then
13218 case $host_os in aix4.012|aix4.012.*)
13219 # We only want to do this on AIX 4.2 and lower, the check
13220 # below for broken collect2 doesn't work under 4.3+
13221 collect2name=`${CC} -print-prog-name=collect2`
13222 if test -f "$collect2name" && \
13223 strings "$collect2name" | grep resolve_lib_name >/dev/null
13225 # We have reworked collect2
13226 hardcode_direct_CXX=yes
13228 # We have old collect2
13229 hardcode_direct_CXX=unsupported
13230 # It fails to find uninstalled libraries when the uninstalled
13231 # path is not listed in the libpath. Setting hardcode_minus_L
13232 # to unsupported forces relinking
13233 hardcode_minus_L_CXX=yes
13234 hardcode_libdir_flag_spec_CXX='-L$libdir'
13235 hardcode_libdir_separator_CXX=
13238 shared_flag='-shared'
13241 if test "$host_cpu" = ia64; then
13242 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13243 # chokes on -Wl,-G. The following line is correct:
13246 if test "$aix_use_runtimelinking" = yes; then
13247 shared_flag='${wl}-G'
13249 shared_flag='${wl}-bM:SRE'
13254 # It seems that -bexpall does not export symbols beginning with
13255 # underscore (_), so it is better to generate a list of symbols to export.
13256 always_export_symbols_CXX=yes
13257 if test "$aix_use_runtimelinking" = yes; then
13258 # Warning - without using the other runtime loading flags (-brtl),
13259 # -berok will link without error, but may produce a broken library.
13260 allow_undefined_flag_CXX='-berok'
13261 # Determine the default libpath from the value encoded in an empty executable.
13262 cat >conftest.$ac_ext <<_ACEOF
13265 cat confdefs.h >>conftest.$ac_ext
13266 cat >>conftest.$ac_ext <<_ACEOF
13267 /* end confdefs.h. */
13277 rm -f conftest.$ac_objext conftest$ac_exeext
13278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13279 (eval $ac_link) 2>conftest.er1
13281 grep -v '^ *+' conftest.er1 >conftest.err
13283 cat conftest.err >&5
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); } &&
13286 { ac_try='test -z "$ac_cxx_werror_flag"
13287 || test ! -s conftest.err'
13288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13289 (eval $ac_try) 2>&5
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); }; } &&
13293 { ac_try='test -s conftest$ac_exeext'
13294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13295 (eval $ac_try) 2>&5
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); }; }; then
13300 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13302 # Check for a 64-bit object if we didn't find anything.
13303 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; }
13306 echo "$as_me: failed program was:" >&5
13307 sed 's/^/| /' conftest.$ac_ext >&5
13310 rm -f conftest.err conftest.$ac_objext \
13311 conftest$ac_exeext conftest.$ac_ext
13312 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13314 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13316 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"
13318 if test "$host_cpu" = ia64; then
13319 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13320 allow_undefined_flag_CXX="-z nodefs"
13321 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"
13323 # Determine the default libpath from the value encoded in an empty executable.
13324 cat >conftest.$ac_ext <<_ACEOF
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h. */
13339 rm -f conftest.$ac_objext conftest$ac_exeext
13340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13341 (eval $ac_link) 2>conftest.er1
13343 grep -v '^ *+' conftest.er1 >conftest.err
13345 cat conftest.err >&5
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); } &&
13348 { ac_try='test -z "$ac_cxx_werror_flag"
13349 || test ! -s conftest.err'
13350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13351 (eval $ac_try) 2>&5
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); }; } &&
13355 { ac_try='test -s conftest$ac_exeext'
13356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13357 (eval $ac_try) 2>&5
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); }; }; then
13362 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13364 # Check for a 64-bit object if we didn't find anything.
13365 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; }
13368 echo "$as_me: failed program was:" >&5
13369 sed 's/^/| /' conftest.$ac_ext >&5
13372 rm -f conftest.err conftest.$ac_objext \
13373 conftest$ac_exeext conftest.$ac_ext
13374 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13376 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13377 # Warning - without using the other run time loading flags,
13378 # -berok will link without error, but may produce a broken library.
13379 no_undefined_flag_CXX=' ${wl}-bernotok'
13380 allow_undefined_flag_CXX=' ${wl}-berok'
13381 # -bexpall does not export symbols beginning with underscore (_)
13382 always_export_symbols_CXX=yes
13383 # Exported symbols can be pulled into shared objects from archives
13384 whole_archive_flag_spec_CXX=' '
13385 archive_cmds_need_lc_CXX=yes
13386 # This is similar to how AIX traditionally builds it's shared libraries.
13387 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'
13392 case $cc_basename in
13394 # FIXME: insert proper C++ library support
13401 cygwin* | mingw* | pw32*)
13402 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13403 # as there is no search path for DLLs.
13404 hardcode_libdir_flag_spec_CXX='-L$libdir'
13405 allow_undefined_flag_CXX=unsupported
13406 always_export_symbols_CXX=no
13407 enable_shared_with_static_runtimes_CXX=yes
13409 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13410 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'
13411 # If the export-symbols file already is a .def file (1st line
13412 # is EXPORTS), use it as is; otherwise, prepend...
13413 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13414 cp $export_symbols $output_objdir/$soname.def;
13416 echo EXPORTS > $output_objdir/$soname.def;
13417 cat $export_symbols >> $output_objdir/$soname.def;
13419 $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'
13424 darwin* | rhapsody*)
13426 rhapsody* | darwin1.[012])
13427 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
13430 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13431 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13433 case ${MACOSX_DEPLOYMENT_TARGET} in
13435 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13438 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
13444 archive_cmds_need_lc_CXX=no
13445 hardcode_direct_CXX=no
13446 hardcode_automatic_CXX=yes
13447 hardcode_shlibpath_var_CXX=unsupported
13448 whole_archive_flag_spec_CXX=''
13449 link_all_deplibs_CXX=yes
13451 if test "$GXX" = yes ; then
13452 lt_int_apple_cc_single_mod=no
13453 output_verbose_link_cmd='echo'
13454 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
13455 lt_int_apple_cc_single_mod=yes
13457 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13458 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13460 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13462 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13463 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13464 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13465 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}'
13467 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13469 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}'
13471 case "$cc_basename" in
13473 output_verbose_link_cmd='echo'
13474 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13475 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13476 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13477 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13478 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}'
13488 case $cc_basename in
13490 # FIXME: insert proper C++ library support
13494 # Green Hills C++ Compiler
13495 # FIXME: insert proper C++ library support
13499 # FIXME: insert proper C++ library support
13505 # C++ shared libraries reported to be fairly broken before switch to ELF
13509 archive_cmds_need_lc_CXX=no
13511 freebsd* | kfreebsd*-gnu)
13512 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13519 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13520 hardcode_libdir_separator_CXX=:
13521 export_dynamic_flag_spec_CXX='${wl}-E'
13522 hardcode_direct_CXX=yes
13523 hardcode_minus_L_CXX=yes # Not in the search PATH,
13524 # but as the default
13525 # location of the library.
13527 case $cc_basename in
13529 # FIXME: insert proper C++ library support
13533 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'
13534 # Commands to make compiler produce verbose output that lists
13535 # what "hidden" libraries, object files and flags are used when
13536 # linking a shared library.
13538 # There doesn't appear to be a way to prevent this compiler from
13539 # explicitly linking system object files so we need to strip them
13540 # from the output so that they don't get included in the library
13542 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'
13545 if test "$GXX" = yes; then
13546 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'
13548 # FIXME: insert proper C++ library support
13555 if test $with_gnu_ld = no; then
13556 case "$host_cpu" in
13558 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13559 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
13560 hardcode_libdir_separator_CXX=:
13563 hardcode_libdir_flag_spec_CXX='-L$libdir'
13566 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13567 hardcode_libdir_separator_CXX=:
13568 export_dynamic_flag_spec_CXX='${wl}-E'
13572 case "$host_cpu" in
13574 hardcode_direct_CXX=no
13575 hardcode_shlibpath_var_CXX=no
13578 hardcode_direct_CXX=no
13579 hardcode_shlibpath_var_CXX=no
13580 hardcode_minus_L_CXX=yes # Not in the search PATH,
13581 # but as the default
13582 # location of the library.
13585 hardcode_direct_CXX=yes
13586 hardcode_minus_L_CXX=yes # Not in the search PATH,
13587 # but as the default
13588 # location of the library.
13592 case $cc_basename in
13594 # FIXME: insert proper C++ library support
13598 case "$host_cpu" in
13600 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
13603 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13606 # Commands to make compiler produce verbose output that lists
13607 # what "hidden" libraries, object files and flags are used when
13608 # linking a shared library.
13610 # There doesn't appear to be a way to prevent this compiler from
13611 # explicitly linking system object files so we need to strip them
13612 # from the output so that they don't get included in the library
13614 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'
13617 if test "$GXX" = yes; then
13618 if test $with_gnu_ld = no; then
13619 case "$host_cpu" in
13621 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
13624 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'
13629 # FIXME: insert proper C++ library support
13636 case $cc_basename in
13639 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'
13641 # Archives containing C++ object files must be created using
13642 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13643 # necessary to make sure instantiated templates are included
13645 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13648 if test "$GXX" = yes; then
13649 if test "$with_gnu_ld" = no; then
13650 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'
13652 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'
13655 link_all_deplibs_CXX=yes
13658 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13659 hardcode_libdir_separator_CXX=:
13662 case $cc_basename in
13664 # Kuck and Associates, Inc. (KAI) C++ Compiler
13666 # KCC will only create a shared library if the output file
13667 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13668 # to its proper name (with version) after linking.
13669 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'
13670 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'
13671 # Commands to make compiler produce verbose output that lists
13672 # what "hidden" libraries, object files and flags are used when
13673 # linking a shared library.
13675 # There doesn't appear to be a way to prevent this compiler from
13676 # explicitly linking system object files so we need to strip them
13677 # from the output so that they don't get included in the library
13679 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'
13681 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13682 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13684 # Archives containing C++ object files must be created using
13685 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13686 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13691 # version 8.0 and above of icpc choke on multiply defined symbols
13692 # if we add $predep_objects and $postdep_objects, however 7.1 and
13693 # earlier do not add the objects themselves.
13694 case `$CC -V 2>&1` in
13696 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13697 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'
13699 *) # Version 8.0 or newer
13700 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13701 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13704 archive_cmds_need_lc_CXX=no
13705 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13706 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13707 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13711 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13712 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'
13714 runpath_var=LD_RUN_PATH
13715 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13716 hardcode_libdir_separator_CXX=:
13718 # Commands to make compiler produce verbose output that lists
13719 # what "hidden" libraries, object files and flags are used when
13720 # linking a shared library.
13722 # There doesn't appear to be a way to prevent this compiler from
13723 # explicitly linking system object files so we need to strip them
13724 # from the output so that they don't get included in the library
13726 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'
13731 # FIXME: insert proper C++ library support
13735 # FIXME: insert proper C++ library support
13739 case $cc_basename in
13741 # FIXME: insert proper C++ library support
13745 # FIXME: insert proper C++ library support
13751 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13752 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13754 hardcode_libdir_flag_spec_CXX='-R$libdir'
13755 hardcode_direct_CXX=yes
13756 hardcode_shlibpath_var_CXX=no
13758 # Workaround some broken pre-1.5 toolchains
13759 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13762 # C++ shared libraries are fairly broken
13766 hardcode_direct_CXX=yes
13767 hardcode_shlibpath_var_CXX=no
13768 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13769 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13770 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13771 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13772 export_dynamic_flag_spec_CXX='${wl}-E'
13773 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13775 output_verbose_link_cmd='echo'
13778 case $cc_basename in
13780 # Kuck and Associates, Inc. (KAI) C++ Compiler
13782 # KCC will only create a shared library if the output file
13783 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13784 # to its proper name (with version) after linking.
13785 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'
13787 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13788 hardcode_libdir_separator_CXX=:
13790 # Archives containing C++ object files must be created using
13791 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13792 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13796 # Rational C++ 2.4.1
13797 # FIXME: insert proper C++ library support
13801 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13802 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'
13804 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13805 hardcode_libdir_separator_CXX=:
13807 # Commands to make compiler produce verbose output that lists
13808 # what "hidden" libraries, object files and flags are used when
13809 # linking a shared library.
13811 # There doesn't appear to be a way to prevent this compiler from
13812 # explicitly linking system object files so we need to strip them
13813 # from the output so that they don't get included in the library
13815 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'
13818 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13819 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13820 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'
13822 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13823 hardcode_libdir_separator_CXX=:
13825 # Commands to make compiler produce verbose output that lists
13826 # what "hidden" libraries, object files and flags are used when
13827 # linking a shared library.
13828 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13831 # FIXME: insert proper C++ library support
13838 case $cc_basename in
13840 # Kuck and Associates, Inc. (KAI) C++ Compiler
13842 # KCC will only create a shared library if the output file
13843 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13844 # to its proper name (with version) after linking.
13845 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'
13847 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13848 hardcode_libdir_separator_CXX=:
13850 # Archives containing C++ object files must be created using
13851 # the KAI C++ compiler.
13852 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13855 # Rational C++ 2.4.1
13856 # FIXME: insert proper C++ library support
13860 allow_undefined_flag_CXX=' -expect_unresolved \*'
13861 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'
13862 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13863 echo "-hidden">> $lib.exp~
13864 $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~
13867 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13868 hardcode_libdir_separator_CXX=:
13870 # Commands to make compiler produce verbose output that lists
13871 # what "hidden" libraries, object files and flags are used when
13872 # linking a shared library.
13874 # There doesn't appear to be a way to prevent this compiler from
13875 # explicitly linking system object files so we need to strip them
13876 # from the output so that they don't get included in the library
13878 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'
13881 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13882 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13883 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'
13885 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13886 hardcode_libdir_separator_CXX=:
13888 # Commands to make compiler produce verbose output that lists
13889 # what "hidden" libraries, object files and flags are used when
13890 # linking a shared library.
13891 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13894 # FIXME: insert proper C++ library support
13901 # FIXME: insert proper C++ library support
13905 archive_cmds_need_lc_CXX=no
13906 case $cc_basename in
13908 # FIXME: insert proper C++ library support
13912 # FIXME: insert proper C++ library support
13918 case $cc_basename in
13921 # FIXME: insert proper C++ library support
13926 # FIXME: insert proper C++ library support
13930 # FIXME: insert proper C++ library support
13936 case $cc_basename in
13938 # Sun C++ 4.2, 5.x and Centerline C++
13939 no_undefined_flag_CXX=' -zdefs'
13940 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13941 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13942 $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'
13944 hardcode_libdir_flag_spec_CXX='-R$libdir'
13945 hardcode_shlibpath_var_CXX=no
13947 solaris2.0-5 | solaris2.0-5.*) ;;
13949 # The C++ compiler is used as linker so we must use $wl
13950 # flag to pass the commands to the underlying system
13952 # Supported since Solaris 2.6 (maybe 2.5.1?)
13953 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13956 link_all_deplibs_CXX=yes
13958 # Commands to make compiler produce verbose output that lists
13959 # what "hidden" libraries, object files and flags are used when
13960 # linking a shared library.
13962 # There doesn't appear to be a way to prevent this compiler from
13963 # explicitly linking system object files so we need to strip them
13964 # from the output so that they don't get included in the library
13966 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'
13968 # Archives containing C++ object files must be created using
13969 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13970 # necessary to make sure instantiated templates are included
13972 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13975 # Green Hills C++ Compiler
13976 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13978 # The C++ compiler must be used to create the archive.
13979 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13982 # GNU C++ compiler with Solaris linker
13983 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13984 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13985 if $CC --version | grep -v '^2\.7' > /dev/null; then
13986 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13987 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13988 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13990 # Commands to make compiler produce verbose output that lists
13991 # what "hidden" libraries, object files and flags are used when
13992 # linking a shared library.
13993 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13995 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13997 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13998 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13999 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14001 # Commands to make compiler produce verbose output that lists
14002 # what "hidden" libraries, object files and flags are used when
14003 # linking a shared library.
14004 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14007 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14012 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14013 archive_cmds_need_lc_CXX=no
14016 case $cc_basename in
14018 # NonStop-UX NCC 3.20
14019 # FIXME: insert proper C++ library support
14023 # FIXME: insert proper C++ library support
14029 # FIXME: insert proper C++ library support
14033 # FIXME: insert proper C++ library support
14037 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14038 echo "${ECHO_T}$ld_shlibs_CXX" >&6
14039 test "$ld_shlibs_CXX" = no && can_build_shared=no
14045 ## There is no encapsulation within the following macros, do not change
14046 ## the running order or otherwise move them around unless you know exactly
14047 ## what you are doing...
14049 cat > conftest.$ac_ext <<EOF
14053 Foo (void) { a = 0; }
14059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14060 (eval $ac_compile) 2>&5
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); }; then
14064 # Parse the compiler output and extract the necessary
14065 # objects, libraries and library flags.
14067 # Sentinel used to keep track of whether or not we are before
14068 # the conftest object file.
14069 pre_test_object_deps_done=no
14071 # The `*' in the case matches for architectures that use `case' in
14072 # $output_verbose_cmd can trigger glob expansion during the loop
14073 # eval without this substitution.
14074 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
14076 for p in `eval $output_verbose_link_cmd`; do
14080 # Some compilers place space between "-{L,R}" and the path.
14081 # Remove the space.
14082 if test $p = "-L" \
14083 || test $p = "-R"; then
14090 if test "$pre_test_object_deps_done" = no; then
14093 # Internal compiler library paths should come after those
14094 # provided the user. The postdeps already come after the
14095 # user supplied libs so there is no need to process them.
14096 if test -z "$compiler_lib_search_path_CXX"; then
14097 compiler_lib_search_path_CXX="${prev}${p}"
14099 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14102 # The "-l" case would never come before the object being
14103 # linked, so don't bother handling this case.
14106 if test -z "$postdeps_CXX"; then
14107 postdeps_CXX="${prev}${p}"
14109 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14115 # This assumes that the test object file only shows up
14116 # once in the compiler output.
14117 if test "$p" = "conftest.$objext"; then
14118 pre_test_object_deps_done=yes
14122 if test "$pre_test_object_deps_done" = no; then
14123 if test -z "$predep_objects_CXX"; then
14124 predep_objects_CXX="$p"
14126 predep_objects_CXX="$predep_objects_CXX $p"
14129 if test -z "$postdep_objects_CXX"; then
14130 postdep_objects_CXX="$p"
14132 postdep_objects_CXX="$postdep_objects_CXX $p"
14137 *) ;; # Ignore the rest.
14145 echo "libtool.m4: error: problem compiling CXX test program"
14148 $rm -f confest.$objext
14150 case " $postdeps_CXX " in
14151 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14154 lt_prog_compiler_wl_CXX=
14155 lt_prog_compiler_pic_CXX=
14156 lt_prog_compiler_static_CXX=
14158 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14159 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14161 # C++ specific cases for pic, static, wl, etc.
14162 if test "$GXX" = yes; then
14163 lt_prog_compiler_wl_CXX='-Wl,'
14164 lt_prog_compiler_static_CXX='-static'
14168 # All AIX code is PIC.
14169 if test "$host_cpu" = ia64; then
14170 # AIX 5 now supports IA64 processor
14171 lt_prog_compiler_static_CXX='-Bstatic'
14175 # FIXME: we need at least 68020 code to build shared libraries, but
14176 # adding the `-m68020' flag to GCC prevents building anything better,
14178 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14180 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14181 # PIC is the default for these OSes.
14183 mingw* | os2* | pw32*)
14184 # This hack is so that the source file can tell whether it is being
14185 # built for inclusion in a dll (and should export symbols for example).
14186 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14188 darwin* | rhapsody*)
14189 # PIC is the default on this platform
14190 # Common symbols not allowed in MH_DYLIB files
14191 lt_prog_compiler_pic_CXX='-fno-common'
14194 # DJGPP does not support shared libraries at all
14195 lt_prog_compiler_pic_CXX=
14198 if test -d /usr/nec; then
14199 lt_prog_compiler_pic_CXX=-Kconform_pic
14203 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14204 # not for PA HP-UX.
14205 case "$host_cpu" in
14209 lt_prog_compiler_pic_CXX='-fPIC'
14214 lt_prog_compiler_pic_CXX='-fPIC'
14220 # All AIX code is PIC.
14221 if test "$host_cpu" = ia64; then
14222 # AIX 5 now supports IA64 processor
14223 lt_prog_compiler_static_CXX='-Bstatic'
14225 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14229 case $cc_basename in
14231 # Green Hills C++ Compiler
14232 # _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"
14237 # PIC is the default on this platform
14238 # Common symbols not allowed in MH_DYLIB files
14239 case "$cc_basename" in
14241 lt_prog_compiler_pic_CXX='-qnocommon'
14242 lt_prog_compiler_wl_CXX='-Wl,'
14247 case $cc_basename in
14249 lt_prog_compiler_pic_CXX='-KPIC'
14252 # Green Hills C++ Compiler
14253 lt_prog_compiler_pic_CXX='-pic'
14259 freebsd* | kfreebsd*-gnu)
14260 # FreeBSD uses GNU C++
14262 hpux9* | hpux10* | hpux11*)
14263 case $cc_basename in
14265 lt_prog_compiler_wl_CXX='-Wl,'
14266 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
14267 if test "$host_cpu" != ia64; then
14268 lt_prog_compiler_pic_CXX='+Z'
14272 lt_prog_compiler_wl_CXX='-Wl,'
14273 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
14274 case "$host_cpu" in
14279 lt_prog_compiler_pic_CXX='+Z'
14287 irix5* | irix6* | nonstopux*)
14288 case $cc_basename in
14290 lt_prog_compiler_wl_CXX='-Wl,'
14291 lt_prog_compiler_static_CXX='-non_shared'
14292 # CC pic flag -KPIC is the default.
14299 case $cc_basename in
14302 lt_prog_compiler_wl_CXX='--backend -Wl,'
14303 lt_prog_compiler_pic_CXX='-fPIC'
14307 lt_prog_compiler_wl_CXX='-Wl,'
14308 lt_prog_compiler_pic_CXX='-KPIC'
14309 lt_prog_compiler_static_CXX='-static'
14313 # Make sure the PIC flag is empty. It appears that all Alpha
14314 # Linux and Compaq Tru64 Unix objects are PIC.
14315 lt_prog_compiler_pic_CXX=
14316 lt_prog_compiler_static_CXX='-non_shared'
14327 case $cc_basename in
14329 lt_prog_compiler_pic_CXX='-W c,exportall'
14337 osf3* | osf4* | osf5*)
14338 case $cc_basename in
14340 lt_prog_compiler_wl_CXX='--backend -Wl,'
14343 # Rational C++ 2.4.1
14344 lt_prog_compiler_pic_CXX='-pic'
14347 # Digital/Compaq C++
14348 lt_prog_compiler_wl_CXX='-Wl,'
14349 # Make sure the PIC flag is empty. It appears that all Alpha
14350 # Linux and Compaq Tru64 Unix objects are PIC.
14351 lt_prog_compiler_pic_CXX=
14352 lt_prog_compiler_static_CXX='-non_shared'
14361 case $cc_basename in
14363 lt_prog_compiler_pic_CXX='-fPIC'
14370 case $cc_basename in
14372 # Sun C++ 4.2, 5.x and Centerline C++
14373 lt_prog_compiler_pic_CXX='-KPIC'
14374 lt_prog_compiler_static_CXX='-Bstatic'
14375 lt_prog_compiler_wl_CXX='-Qoption ld '
14378 # Green Hills C++ Compiler
14379 lt_prog_compiler_pic_CXX='-PIC'
14386 case $cc_basename in
14389 lt_prog_compiler_pic_CXX='-pic'
14390 lt_prog_compiler_static_CXX='-Bstatic'
14394 lt_prog_compiler_pic_CXX='-pic'
14401 case $cc_basename in
14403 # NonStop-UX NCC 3.20
14404 lt_prog_compiler_pic_CXX='-KPIC'
14415 lt_prog_compiler_can_build_shared_CXX=no
14420 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14421 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
14424 # Check to make sure the PIC flag actually works.
14426 if test -n "$lt_prog_compiler_pic_CXX"; then
14428 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14429 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
14430 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14431 echo $ECHO_N "(cached) $ECHO_C" >&6
14433 lt_prog_compiler_pic_works_CXX=no
14434 ac_outfile=conftest.$ac_objext
14435 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14436 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14437 # Insert the option either (1) after the last *FLAGS variable, or
14438 # (2) before a word containing "conftest.", or (3) at the end.
14439 # Note that $ac_compile itself does not contain backslashes and begins
14440 # with a dollar sign (not a hyphen), so the echo should work correctly.
14441 # The option is referenced via a variable to avoid confusing sed.
14442 lt_compile=`echo "$ac_compile" | $SED \
14443 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14445 -e 's:$: $lt_compiler_flag:'`
14446 (eval echo "\"\$as_me:14446: $lt_compile\"" >&5)
14447 (eval "$lt_compile" 2>conftest.err)
14449 cat conftest.err >&5
14450 echo "$as_me:14450: \$? = $ac_status" >&5
14451 if (exit $ac_status) && test -s "$ac_outfile"; then
14452 # The compiler can only warn and ignore the option if not recognized
14453 # So say no if there are warnings
14454 if test ! -s conftest.err; then
14455 lt_prog_compiler_pic_works_CXX=yes
14461 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14462 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
14464 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14465 case $lt_prog_compiler_pic_CXX in
14467 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14470 lt_prog_compiler_pic_CXX=
14471 lt_prog_compiler_can_build_shared_CXX=no
14476 # For platforms which do not support PIC, -DPIC is meaningless:
14478 lt_prog_compiler_pic_CXX=
14481 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14485 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14486 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14487 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14488 echo $ECHO_N "(cached) $ECHO_C" >&6
14490 lt_cv_prog_compiler_c_o_CXX=no
14491 $rm -r conftest 2>/dev/null
14495 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14497 lt_compiler_flag="-o out/conftest2.$ac_objext"
14498 # Insert the option either (1) after the last *FLAGS variable, or
14499 # (2) before a word containing "conftest.", or (3) at the end.
14500 # Note that $ac_compile itself does not contain backslashes and begins
14501 # with a dollar sign (not a hyphen), so the echo should work correctly.
14502 lt_compile=`echo "$ac_compile" | $SED \
14503 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14505 -e 's:$: $lt_compiler_flag:'`
14506 (eval echo "\"\$as_me:14506: $lt_compile\"" >&5)
14507 (eval "$lt_compile" 2>out/conftest.err)
14509 cat out/conftest.err >&5
14510 echo "$as_me:14510: \$? = $ac_status" >&5
14511 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14513 # The compiler can only warn and ignore the option if not recognized
14514 # So say no if there are warnings
14515 if test ! -s out/conftest.err; then
14516 lt_cv_prog_compiler_c_o_CXX=yes
14521 # SGI C++ compiler will create directory out/ii_files/ for
14522 # template instantiation
14523 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14524 $rm out/* && rmdir out
14530 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14531 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14534 hard_links="nottested"
14535 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14536 # do not overwrite the value of need_locks provided by the user
14537 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14538 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14541 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14543 ln conftest.a conftest.b 2>&5 || hard_links=no
14544 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14545 echo "$as_me:$LINENO: result: $hard_links" >&5
14546 echo "${ECHO_T}$hard_links" >&6
14547 if test "$hard_links" = no; then
14548 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14549 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14556 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14557 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14559 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14562 # If we're using GNU nm, then we don't want the "-C" option.
14563 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14564 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14565 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'
14567 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'
14571 export_symbols_cmds_CXX="$ltdll_cmds"
14574 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14577 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14581 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14582 echo "${ECHO_T}$ld_shlibs_CXX" >&6
14583 test "$ld_shlibs_CXX" = no && can_build_shared=no
14585 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14586 if test "$GCC" = yes; then
14587 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14591 # Do we need to explicitly link libc?
14593 case "x$archive_cmds_need_lc_CXX" in
14595 # Assume -lc should be added
14596 archive_cmds_need_lc_CXX=yes
14598 if test "$enable_shared" = yes && test "$GCC" = yes; then
14599 case $archive_cmds_CXX in
14601 # FIXME: we may have to deal with multi-command sequences.
14604 # Test whether the compiler implicitly links with -lc since on some
14605 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14606 # to ld, don't add -lc before -lgcc.
14607 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14608 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14610 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14613 (eval $ac_compile) 2>&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); } 2>conftest.err; then
14619 libobjs=conftest.$ac_objext
14621 wl=$lt_prog_compiler_wl_CXX
14627 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14628 allow_undefined_flag_CXX=
14629 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14630 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); }
14635 archive_cmds_need_lc_CXX=no
14637 archive_cmds_need_lc_CXX=yes
14639 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14641 cat conftest.err 1>&5
14644 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14645 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
14652 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14653 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14654 library_names_spec=
14655 libname_spec='lib$name'
14659 postuninstall_cmds=
14663 shlibpath_overrides_runpath=unknown
14665 dynamic_linker="$host_os ld.so"
14666 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14667 if test "$GCC" = yes; then
14668 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14669 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14670 # if the path contains ";" then we assume it to be the separator
14671 # otherwise default to the standard path separator (i.e. ":") - it is
14672 # assumed that no part of a normal pathname contains ";" but that should
14673 # okay in the real world where ";" in dirpaths is itself problematic.
14674 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14676 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14679 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14681 need_lib_prefix=unknown
14682 hardcode_into_libs=no
14684 # when you set need_version to no, make sure it does not cause -set_version
14685 # flags to be left without arguments
14686 need_version=unknown
14691 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14692 shlibpath_var=LIBPATH
14694 # AIX 3 has no versioning support, so we append a major version to the name.
14695 soname_spec='${libname}${release}${shared_ext}$major'
14702 hardcode_into_libs=yes
14703 if test "$host_cpu" = ia64; then
14704 # AIX 5 supports IA64
14705 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14706 shlibpath_var=LD_LIBRARY_PATH
14708 # With GCC up to 2.95.x, collect2 would create an import file
14709 # for dependence libraries. The import file would start with
14710 # the line `#! .'. This would cause the generated library to
14711 # depend on `.', always an invalid library. This was fixed in
14712 # development snapshots of GCC prior to 3.0.
14714 aix4 | aix4.[01] | aix4.[01].*)
14715 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14717 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14720 can_build_shared=no
14724 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14725 # soname into executable. Probably we can add versioning support to
14726 # collect2, so additional links can be useful in future.
14727 if test "$aix_use_runtimelinking" = yes; then
14728 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14729 # instead of lib<name>.a to let people know that these are not
14730 # typical AIX shared libraries.
14731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14733 # We preserve .a as extension for shared libraries through AIX4.2
14734 # and later when we are not doing run time linking.
14735 library_names_spec='${libname}${release}.a $libname.a'
14736 soname_spec='${libname}${release}${shared_ext}$major'
14738 shlibpath_var=LIBPATH
14743 library_names_spec='$libname.ixlibrary $libname.a'
14744 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14745 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'
14749 library_names_spec='${libname}${shared_ext}'
14750 dynamic_linker="$host_os ld.so"
14751 shlibpath_var=LIBRARY_PATH
14757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14758 soname_spec='${libname}${release}${shared_ext}$major'
14759 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14760 shlibpath_var=LD_LIBRARY_PATH
14761 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14762 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14763 # the default ld.so.conf also contains /usr/contrib/lib and
14764 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14765 # libtool to hard-code these into programs
14768 cygwin* | mingw* | pw32*)
14769 version_type=windows
14774 case $GCC,$host_os in
14775 yes,cygwin* | yes,mingw* | yes,pw32*)
14776 library_names_spec='$libname.dll.a'
14777 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14778 postinstall_cmds='base_file=`basename \${file}`~
14779 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14780 dldir=$destdir/`dirname \$dlpath`~
14781 test -d \$dldir || mkdir -p \$dldir~
14782 $install_prog $dir/$dlname \$dldir/$dlname'
14783 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14784 dlpath=$dir/\$dldll~
14786 shlibpath_overrides_runpath=yes
14790 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14791 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14792 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14795 # MinGW DLLs use traditional 'lib' prefix
14796 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14797 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14798 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14799 # It is most probably a Windows format PATH printed by
14800 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14801 # path with ; separators, and with drive letters. We can handle the
14802 # drive letters (cygwin fileutils understands them), so leave them,
14803 # especially as we might pass files found there to a mingw objdump,
14804 # which wouldn't understand a cygwinified path. Ahh.
14805 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14807 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14811 # pw32 DLLs use 'pw' prefix rather than 'lib'
14812 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14818 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14821 dynamic_linker='Win32 ld.exe'
14822 # FIXME: first we should search . and the directory the executable is in
14826 darwin* | rhapsody*)
14827 dynamic_linker="$host_os dyld"
14828 version_type=darwin
14831 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14832 soname_spec='${libname}${release}${major}$shared_ext'
14833 shlibpath_overrides_runpath=yes
14834 shlibpath_var=DYLD_LIBRARY_PATH
14835 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14836 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14837 if test "$GCC" = yes; then
14838 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"`
14840 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14842 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14850 soname_spec='${libname}${release}${shared_ext}$major'
14851 shlibpath_var=LD_LIBRARY_PATH
14862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14863 soname_spec='${libname}${release}${shared_ext}$major'
14864 shlibpath_var=LD_LIBRARY_PATH
14865 shlibpath_overrides_runpath=no
14866 hardcode_into_libs=yes
14867 dynamic_linker='GNU ld.so'
14871 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14872 version_type=freebsd-$objformat
14873 case $version_type in
14875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14880 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14884 shlibpath_var=LD_LIBRARY_PATH
14887 shlibpath_overrides_runpath=yes
14889 freebsd3.01* | freebsdelf3.01*)
14890 shlibpath_overrides_runpath=yes
14891 hardcode_into_libs=yes
14894 shlibpath_overrides_runpath=no
14895 hardcode_into_libs=yes
14904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14905 soname_spec='${libname}${release}${shared_ext}$major'
14906 shlibpath_var=LD_LIBRARY_PATH
14907 hardcode_into_libs=yes
14910 hpux9* | hpux10* | hpux11*)
14911 # Give a soname corresponding to the major version so that dld.sl refuses to
14912 # link against other versions.
14916 case "$host_cpu" in
14919 hardcode_into_libs=yes
14920 dynamic_linker="$host_os dld.so"
14921 shlibpath_var=LD_LIBRARY_PATH
14922 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14924 soname_spec='${libname}${release}${shared_ext}$major'
14925 if test "X$HPUX_IA64_MODE" = X32; then
14926 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14928 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14930 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14934 hardcode_into_libs=yes
14935 dynamic_linker="$host_os dld.sl"
14936 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14937 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14939 soname_spec='${libname}${release}${shared_ext}$major'
14940 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14941 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14945 dynamic_linker="$host_os dld.sl"
14946 shlibpath_var=SHLIB_PATH
14947 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14949 soname_spec='${libname}${release}${shared_ext}$major'
14952 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14953 postinstall_cmds='chmod 555 $lib'
14956 irix5* | irix6* | nonstopux*)
14958 nonstopux*) version_type=nonstopux ;;
14960 if test "$lt_cv_prog_gnu_ld" = yes; then
14968 soname_spec='${libname}${release}${shared_ext}$major'
14969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14971 irix5* | nonstopux*)
14972 libsuff= shlibsuff=
14975 case $LD in # libtool.m4 will add one of these switches to LD
14976 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14977 libsuff= shlibsuff= libmagic=32-bit;;
14978 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14979 libsuff=32 shlibsuff=N32 libmagic=N32;;
14980 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14981 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14982 *) libsuff= shlibsuff= libmagic=never-match;;
14986 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14987 shlibpath_overrides_runpath=no
14988 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14989 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14990 hardcode_into_libs=yes
14993 # No shared lib support for Linux oldld, aout, or coff.
14994 linux*oldld* | linux*aout* | linux*coff*)
14998 # This must be Linux ELF.
15003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15004 soname_spec='${libname}${release}${shared_ext}$major'
15005 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15006 shlibpath_var=LD_LIBRARY_PATH
15007 shlibpath_overrides_runpath=no
15008 # This implies no fast_install, which is unacceptable.
15009 # Some rework will be needed to allow for fast_install
15010 # before this can be enabled.
15011 hardcode_into_libs=yes
15013 # Append ld.so.conf contents to the search path
15014 if test -f /etc/ld.so.conf; then
15015 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15016 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15019 # We used to test for /lib/ld.so.1 and disable shared libraries on
15020 # powerpc, because MkLinux only supported shared libraries with the
15021 # GNU dynamic linker. Since this was broken with cross compilers,
15022 # most powerpc-linux boxes support dynamic linking these days and
15023 # people can always --disable-shared, the test was removed, and we
15024 # assume the GNU/Linux dynamic linker is in use.
15025 dynamic_linker='GNU/Linux ld.so'
15032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15033 soname_spec='${libname}${release}${shared_ext}$major'
15034 shlibpath_var=LD_LIBRARY_PATH
15035 shlibpath_overrides_runpath=no
15036 hardcode_into_libs=yes
15037 dynamic_linker='GNU ld.so'
15044 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15046 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15047 dynamic_linker='NetBSD (a.out) ld.so'
15049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15050 soname_spec='${libname}${release}${shared_ext}$major'
15051 dynamic_linker='NetBSD ld.elf_so'
15053 shlibpath_var=LD_LIBRARY_PATH
15054 shlibpath_overrides_runpath=yes
15055 hardcode_into_libs=yes
15060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15061 shlibpath_var=LD_LIBRARY_PATH
15062 shlibpath_overrides_runpath=yes
15069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15070 soname_spec='${libname}${release}${shared_ext}$major'
15071 shlibpath_var=LD_LIBRARY_PATH
15072 shlibpath_overrides_runpath=yes
15079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15081 shlibpath_var=LD_LIBRARY_PATH
15082 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15084 openbsd2.[89] | openbsd2.[89].*)
15085 shlibpath_overrides_runpath=no
15088 shlibpath_overrides_runpath=yes
15092 shlibpath_overrides_runpath=yes
15097 libname_spec='$name'
15100 library_names_spec='$libname${shared_ext} $libname.a'
15101 dynamic_linker='OS/2 ld.exe'
15102 shlibpath_var=LIBPATH
15105 osf3* | osf4* | osf5*)
15109 soname_spec='${libname}${release}${shared_ext}$major'
15110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15111 shlibpath_var=LD_LIBRARY_PATH
15112 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15113 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15118 soname_spec='${libname}${release}${shared_ext}$major'
15119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15120 shlibpath_var=LD_LIBRARY_PATH
15127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15128 soname_spec='${libname}${release}${shared_ext}$major'
15129 shlibpath_var=LD_LIBRARY_PATH
15130 shlibpath_overrides_runpath=yes
15131 hardcode_into_libs=yes
15132 # ldd complains unless libraries are executable
15133 postinstall_cmds='chmod +x $lib'
15138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15139 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15140 shlibpath_var=LD_LIBRARY_PATH
15141 shlibpath_overrides_runpath=yes
15142 if test "$with_gnu_ld" = yes; then
15148 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15151 soname_spec='${libname}${release}${shared_ext}$major'
15152 shlibpath_var=LD_LIBRARY_PATH
15153 case $host_vendor in
15155 shlibpath_overrides_runpath=no
15157 export_dynamic_flag_spec='${wl}-Blargedynsym'
15158 runpath_var=LD_RUN_PATH
15166 shlibpath_overrides_runpath=no
15167 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15173 if test -d /usr/nec ;then
15175 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15176 soname_spec='$libname${shared_ext}.$major'
15177 shlibpath_var=LD_LIBRARY_PATH
15183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15184 soname_spec='${libname}${release}${shared_ext}$major'
15185 shlibpath_var=LD_LIBRARY_PATH
15192 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15193 echo "${ECHO_T}$dynamic_linker" >&6
15194 test "$dynamic_linker" = no && can_build_shared=no
15196 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15197 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15198 hardcode_action_CXX=
15199 if test -n "$hardcode_libdir_flag_spec_CXX" || \
15200 test -n "$runpath_var_CXX" || \
15201 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15203 # We can hardcode non-existant directories.
15204 if test "$hardcode_direct_CXX" != no &&
15205 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15206 # have to relink, otherwise we might link with an installed library
15207 # when we should be linking with a yet-to-be-installed one
15208 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15209 test "$hardcode_minus_L_CXX" != no; then
15210 # Linking always hardcodes the temporary library directory.
15211 hardcode_action_CXX=relink
15213 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15214 hardcode_action_CXX=immediate
15217 # We cannot hardcode anything, or else we can only hardcode existing
15219 hardcode_action_CXX=unsupported
15221 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15222 echo "${ECHO_T}$hardcode_action_CXX" >&6
15224 if test "$hardcode_action_CXX" = relink; then
15225 # Fast installation is not supported
15226 enable_fast_install=no
15227 elif test "$shlibpath_overrides_runpath" = yes ||
15228 test "$enable_shared" = no; then
15229 # Fast installation is not necessary
15230 enable_fast_install=needless
15235 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15236 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15237 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15238 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15239 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15240 echo "$as_me:$LINENO: result: yes" >&5
15241 echo "${ECHO_T}yes" >&6
15243 # FIXME - insert some real tests, host_os isn't really good enough
15246 if test -n "$STRIP" ; then
15247 striplib="$STRIP -x"
15248 echo "$as_me:$LINENO: result: yes" >&5
15249 echo "${ECHO_T}yes" >&6
15251 echo "$as_me:$LINENO: result: no" >&5
15252 echo "${ECHO_T}no" >&6
15256 echo "$as_me:$LINENO: result: no" >&5
15257 echo "${ECHO_T}no" >&6
15262 if test "x$enable_dlopen" != xyes; then
15263 enable_dlopen=unknown
15264 enable_dlopen_self=unknown
15265 enable_dlopen_self_static=unknown
15272 lt_cv_dlopen="load_add_on"
15274 lt_cv_dlopen_self=yes
15278 lt_cv_dlopen="LoadLibrary"
15283 lt_cv_dlopen="dlopen"
15288 # if libdl is installed we need to link against it
15289 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15290 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15291 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15292 echo $ECHO_N "(cached) $ECHO_C" >&6
15294 ac_check_lib_save_LIBS=$LIBS
15296 cat >conftest.$ac_ext <<_ACEOF
15299 cat confdefs.h >>conftest.$ac_ext
15300 cat >>conftest.$ac_ext <<_ACEOF
15301 /* end confdefs.h. */
15303 /* Override any gcc2 internal prototype to avoid an error. */
15307 /* We use char because int might match the return type of a gcc2
15308 builtin and then its argument prototype would still apply. */
15318 rm -f conftest.$ac_objext conftest$ac_exeext
15319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15320 (eval $ac_link) 2>conftest.er1
15322 grep -v '^ *+' conftest.er1 >conftest.err
15324 cat conftest.err >&5
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); } &&
15327 { ac_try='test -z "$ac_cxx_werror_flag"
15328 || test ! -s conftest.err'
15329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330 (eval $ac_try) 2>&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; } &&
15334 { ac_try='test -s conftest$ac_exeext'
15335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15336 (eval $ac_try) 2>&5
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); }; }; then
15340 ac_cv_lib_dl_dlopen=yes
15342 echo "$as_me: failed program was:" >&5
15343 sed 's/^/| /' conftest.$ac_ext >&5
15345 ac_cv_lib_dl_dlopen=no
15347 rm -f conftest.err conftest.$ac_objext \
15348 conftest$ac_exeext conftest.$ac_ext
15349 LIBS=$ac_check_lib_save_LIBS
15351 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15352 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15353 if test $ac_cv_lib_dl_dlopen = yes; then
15354 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15357 lt_cv_dlopen="dyld"
15359 lt_cv_dlopen_self=yes
15366 echo "$as_me:$LINENO: checking for shl_load" >&5
15367 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15368 if test "${ac_cv_func_shl_load+set}" = set; then
15369 echo $ECHO_N "(cached) $ECHO_C" >&6
15371 cat >conftest.$ac_ext <<_ACEOF
15374 cat confdefs.h >>conftest.$ac_ext
15375 cat >>conftest.$ac_ext <<_ACEOF
15376 /* end confdefs.h. */
15377 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15379 #define shl_load innocuous_shl_load
15381 /* System header to define __stub macros and hopefully few prototypes,
15382 which can conflict with char shl_load (); below.
15383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15384 <limits.h> exists even on freestanding compilers. */
15387 # include <limits.h>
15389 # include <assert.h>
15394 /* Override any gcc2 internal prototype to avoid an error. */
15399 /* We use char because int might match the return type of a gcc2
15400 builtin and then its argument prototype would still apply. */
15402 /* The GNU C library defines this for functions which it implements
15403 to always fail with ENOSYS. Some functions are actually named
15404 something starting with __ and the normal name is an alias. */
15405 #if defined (__stub_shl_load) || defined (__stub___shl_load)
15408 char (*f) () = shl_load;
15417 return f != shl_load;
15422 rm -f conftest.$ac_objext conftest$ac_exeext
15423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15424 (eval $ac_link) 2>conftest.er1
15426 grep -v '^ *+' conftest.er1 >conftest.err
15428 cat conftest.err >&5
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); } &&
15431 { ac_try='test -z "$ac_cxx_werror_flag"
15432 || test ! -s conftest.err'
15433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15434 (eval $ac_try) 2>&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); }; } &&
15438 { ac_try='test -s conftest$ac_exeext'
15439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440 (eval $ac_try) 2>&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; }; then
15444 ac_cv_func_shl_load=yes
15446 echo "$as_me: failed program was:" >&5
15447 sed 's/^/| /' conftest.$ac_ext >&5
15449 ac_cv_func_shl_load=no
15451 rm -f conftest.err conftest.$ac_objext \
15452 conftest$ac_exeext conftest.$ac_ext
15454 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15455 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15456 if test $ac_cv_func_shl_load = yes; then
15457 lt_cv_dlopen="shl_load"
15459 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15460 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15461 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15462 echo $ECHO_N "(cached) $ECHO_C" >&6
15464 ac_check_lib_save_LIBS=$LIBS
15466 cat >conftest.$ac_ext <<_ACEOF
15469 cat confdefs.h >>conftest.$ac_ext
15470 cat >>conftest.$ac_ext <<_ACEOF
15471 /* end confdefs.h. */
15473 /* Override any gcc2 internal prototype to avoid an error. */
15477 /* We use char because int might match the return type of a gcc2
15478 builtin and then its argument prototype would still apply. */
15488 rm -f conftest.$ac_objext conftest$ac_exeext
15489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15490 (eval $ac_link) 2>conftest.er1
15492 grep -v '^ *+' conftest.er1 >conftest.err
15494 cat conftest.err >&5
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); } &&
15497 { ac_try='test -z "$ac_cxx_werror_flag"
15498 || test ! -s conftest.err'
15499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15500 (eval $ac_try) 2>&5
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); }; } &&
15504 { ac_try='test -s conftest$ac_exeext'
15505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15506 (eval $ac_try) 2>&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); }; }; then
15510 ac_cv_lib_dld_shl_load=yes
15512 echo "$as_me: failed program was:" >&5
15513 sed 's/^/| /' conftest.$ac_ext >&5
15515 ac_cv_lib_dld_shl_load=no
15517 rm -f conftest.err conftest.$ac_objext \
15518 conftest$ac_exeext conftest.$ac_ext
15519 LIBS=$ac_check_lib_save_LIBS
15521 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15522 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
15523 if test $ac_cv_lib_dld_shl_load = yes; then
15524 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15526 echo "$as_me:$LINENO: checking for dlopen" >&5
15527 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
15528 if test "${ac_cv_func_dlopen+set}" = set; then
15529 echo $ECHO_N "(cached) $ECHO_C" >&6
15531 cat >conftest.$ac_ext <<_ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h. */
15537 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15539 #define dlopen innocuous_dlopen
15541 /* System header to define __stub macros and hopefully few prototypes,
15542 which can conflict with char dlopen (); below.
15543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15544 <limits.h> exists even on freestanding compilers. */
15547 # include <limits.h>
15549 # include <assert.h>
15554 /* Override any gcc2 internal prototype to avoid an error. */
15559 /* We use char because int might match the return type of a gcc2
15560 builtin and then its argument prototype would still apply. */
15562 /* The GNU C library defines this for functions which it implements
15563 to always fail with ENOSYS. Some functions are actually named
15564 something starting with __ and the normal name is an alias. */
15565 #if defined (__stub_dlopen) || defined (__stub___dlopen)
15568 char (*f) () = dlopen;
15577 return f != dlopen;
15582 rm -f conftest.$ac_objext conftest$ac_exeext
15583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15584 (eval $ac_link) 2>conftest.er1
15586 grep -v '^ *+' conftest.er1 >conftest.err
15588 cat conftest.err >&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } &&
15591 { ac_try='test -z "$ac_cxx_werror_flag"
15592 || test ! -s conftest.err'
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; } &&
15598 { ac_try='test -s conftest$ac_exeext'
15599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600 (eval $ac_try) 2>&5
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; }; then
15604 ac_cv_func_dlopen=yes
15606 echo "$as_me: failed program was:" >&5
15607 sed 's/^/| /' conftest.$ac_ext >&5
15609 ac_cv_func_dlopen=no
15611 rm -f conftest.err conftest.$ac_objext \
15612 conftest$ac_exeext conftest.$ac_ext
15614 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15615 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15616 if test $ac_cv_func_dlopen = yes; then
15617 lt_cv_dlopen="dlopen"
15619 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15620 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15621 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15624 ac_check_lib_save_LIBS=$LIBS
15626 cat >conftest.$ac_ext <<_ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h. */
15633 /* Override any gcc2 internal prototype to avoid an error. */
15637 /* We use char because int might match the return type of a gcc2
15638 builtin and then its argument prototype would still apply. */
15648 rm -f conftest.$ac_objext conftest$ac_exeext
15649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15650 (eval $ac_link) 2>conftest.er1
15652 grep -v '^ *+' conftest.er1 >conftest.err
15654 cat conftest.err >&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); } &&
15657 { ac_try='test -z "$ac_cxx_werror_flag"
15658 || test ! -s conftest.err'
15659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15660 (eval $ac_try) 2>&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }; } &&
15664 { ac_try='test -s conftest$ac_exeext'
15665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15666 (eval $ac_try) 2>&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); }; }; then
15670 ac_cv_lib_dl_dlopen=yes
15672 echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.$ac_ext >&5
15675 ac_cv_lib_dl_dlopen=no
15677 rm -f conftest.err conftest.$ac_objext \
15678 conftest$ac_exeext conftest.$ac_ext
15679 LIBS=$ac_check_lib_save_LIBS
15681 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15682 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15683 if test $ac_cv_lib_dl_dlopen = yes; then
15684 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15686 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15687 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15688 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15689 echo $ECHO_N "(cached) $ECHO_C" >&6
15691 ac_check_lib_save_LIBS=$LIBS
15692 LIBS="-lsvld $LIBS"
15693 cat >conftest.$ac_ext <<_ACEOF
15696 cat confdefs.h >>conftest.$ac_ext
15697 cat >>conftest.$ac_ext <<_ACEOF
15698 /* end confdefs.h. */
15700 /* Override any gcc2 internal prototype to avoid an error. */
15704 /* We use char because int might match the return type of a gcc2
15705 builtin and then its argument prototype would still apply. */
15715 rm -f conftest.$ac_objext conftest$ac_exeext
15716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15717 (eval $ac_link) 2>conftest.er1
15719 grep -v '^ *+' conftest.er1 >conftest.err
15721 cat conftest.err >&5
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); } &&
15724 { ac_try='test -z "$ac_cxx_werror_flag"
15725 || test ! -s conftest.err'
15726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727 (eval $ac_try) 2>&5
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); }; } &&
15731 { ac_try='test -s conftest$ac_exeext'
15732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733 (eval $ac_try) 2>&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); }; }; then
15737 ac_cv_lib_svld_dlopen=yes
15739 echo "$as_me: failed program was:" >&5
15740 sed 's/^/| /' conftest.$ac_ext >&5
15742 ac_cv_lib_svld_dlopen=no
15744 rm -f conftest.err conftest.$ac_objext \
15745 conftest$ac_exeext conftest.$ac_ext
15746 LIBS=$ac_check_lib_save_LIBS
15748 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15749 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15750 if test $ac_cv_lib_svld_dlopen = yes; then
15751 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15753 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15754 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
15755 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15756 echo $ECHO_N "(cached) $ECHO_C" >&6
15758 ac_check_lib_save_LIBS=$LIBS
15760 cat >conftest.$ac_ext <<_ACEOF
15763 cat confdefs.h >>conftest.$ac_ext
15764 cat >>conftest.$ac_ext <<_ACEOF
15765 /* end confdefs.h. */
15767 /* Override any gcc2 internal prototype to avoid an error. */
15771 /* We use char because int might match the return type of a gcc2
15772 builtin and then its argument prototype would still apply. */
15782 rm -f conftest.$ac_objext conftest$ac_exeext
15783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15784 (eval $ac_link) 2>conftest.er1
15786 grep -v '^ *+' conftest.er1 >conftest.err
15788 cat conftest.err >&5
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); } &&
15791 { ac_try='test -z "$ac_cxx_werror_flag"
15792 || test ! -s conftest.err'
15793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794 (eval $ac_try) 2>&5
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; } &&
15798 { ac_try='test -s conftest$ac_exeext'
15799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15800 (eval $ac_try) 2>&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); }; }; then
15804 ac_cv_lib_dld_dld_link=yes
15806 echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15809 ac_cv_lib_dld_dld_link=no
15811 rm -f conftest.err conftest.$ac_objext \
15812 conftest$ac_exeext conftest.$ac_ext
15813 LIBS=$ac_check_lib_save_LIBS
15815 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
15816 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
15817 if test $ac_cv_lib_dld_dld_link = yes; then
15818 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
15839 if test "x$lt_cv_dlopen" != xno; then
15845 case $lt_cv_dlopen in
15847 save_CPPFLAGS="$CPPFLAGS"
15848 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15850 save_LDFLAGS="$LDFLAGS"
15851 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15854 LIBS="$lt_cv_dlopen_libs $LIBS"
15856 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
15857 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
15858 if test "${lt_cv_dlopen_self+set}" = set; then
15859 echo $ECHO_N "(cached) $ECHO_C" >&6
15861 if test "$cross_compiling" = yes; then :
15862 lt_cv_dlopen_self=cross
15864 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15865 lt_status=$lt_dlunknown
15866 cat > conftest.$ac_ext <<EOF
15867 #line 15867 "configure"
15868 #include "confdefs.h"
15877 # define LT_DLGLOBAL RTLD_GLOBAL
15880 # define LT_DLGLOBAL DL_GLOBAL
15882 # define LT_DLGLOBAL 0
15886 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15887 find out it does not work in some platform. */
15888 #ifndef LT_DLLAZY_OR_NOW
15890 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15893 # define LT_DLLAZY_OR_NOW DL_LAZY
15896 # define LT_DLLAZY_OR_NOW RTLD_NOW
15899 # define LT_DLLAZY_OR_NOW DL_NOW
15901 # define LT_DLLAZY_OR_NOW 0
15909 extern "C" void exit (int);
15912 void fnord() { int i=42;}
15915 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15916 int status = $lt_dlunknown;
15920 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15921 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15922 /* dlclose (self); */
15928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15929 (eval $ac_link) 2>&5
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15933 (./conftest; exit; ) 2>/dev/null
15935 case x$lt_status in
15936 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15937 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15938 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15941 # compilation failed
15942 lt_cv_dlopen_self=no
15949 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15950 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
15952 if test "x$lt_cv_dlopen_self" = xyes; then
15953 LDFLAGS="$LDFLAGS $link_static_flag"
15954 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15955 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
15956 if test "${lt_cv_dlopen_self_static+set}" = set; then
15957 echo $ECHO_N "(cached) $ECHO_C" >&6
15959 if test "$cross_compiling" = yes; then :
15960 lt_cv_dlopen_self_static=cross
15962 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15963 lt_status=$lt_dlunknown
15964 cat > conftest.$ac_ext <<EOF
15965 #line 15965 "configure"
15966 #include "confdefs.h"
15975 # define LT_DLGLOBAL RTLD_GLOBAL
15978 # define LT_DLGLOBAL DL_GLOBAL
15980 # define LT_DLGLOBAL 0
15984 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15985 find out it does not work in some platform. */
15986 #ifndef LT_DLLAZY_OR_NOW
15988 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15991 # define LT_DLLAZY_OR_NOW DL_LAZY
15994 # define LT_DLLAZY_OR_NOW RTLD_NOW
15997 # define LT_DLLAZY_OR_NOW DL_NOW
15999 # define LT_DLLAZY_OR_NOW 0
16007 extern "C" void exit (int);
16010 void fnord() { int i=42;}
16013 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16014 int status = $lt_dlunknown;
16018 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16019 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16020 /* dlclose (self); */
16026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16027 (eval $ac_link) 2>&5
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16031 (./conftest; exit; ) 2>/dev/null
16033 case x$lt_status in
16034 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16035 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16036 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16039 # compilation failed
16040 lt_cv_dlopen_self_static=no
16047 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16048 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16051 CPPFLAGS="$save_CPPFLAGS"
16052 LDFLAGS="$save_LDFLAGS"
16057 case $lt_cv_dlopen_self in
16058 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16059 *) enable_dlopen_self=unknown ;;
16062 case $lt_cv_dlopen_self_static in
16063 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16064 *) enable_dlopen_self_static=unknown ;;
16069 # The else clause should only fire when bootstrapping the
16070 # libtool distribution, otherwise you forgot to ship ltmain.sh
16071 # with your package, and you will get complaints that there are
16072 # no rules to generate ltmain.sh.
16073 if test -f "$ltmain"; then
16074 # See if we are running on zsh, and set the options which allow our commands through
16075 # without removal of \ escapes.
16076 if test -n "${ZSH_VERSION+set}" ; then
16077 setopt NO_GLOB_SUBST
16079 # Now quote all the things that may contain metacharacters while being
16080 # careful not to overquote the AC_SUBSTed values. We take copies of the
16081 # variables and quote the copies for generation of the libtool script.
16082 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16084 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16085 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16086 deplibs_check_method reload_flag reload_cmds need_locks \
16087 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16088 lt_cv_sys_global_symbol_to_c_name_address \
16089 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16090 old_postinstall_cmds old_postuninstall_cmds \
16094 lt_prog_compiler_wl_CXX \
16095 lt_prog_compiler_pic_CXX \
16096 lt_prog_compiler_static_CXX \
16097 lt_prog_compiler_no_builtin_flag_CXX \
16098 export_dynamic_flag_spec_CXX \
16099 thread_safe_flag_spec_CXX \
16100 whole_archive_flag_spec_CXX \
16101 enable_shared_with_static_runtimes_CXX \
16102 old_archive_cmds_CXX \
16103 old_archive_from_new_cmds_CXX \
16104 predep_objects_CXX \
16105 postdep_objects_CXX \
16108 compiler_lib_search_path_CXX \
16110 archive_expsym_cmds_CXX \
16111 postinstall_cmds_CXX \
16112 postuninstall_cmds_CXX \
16113 old_archive_from_expsyms_cmds_CXX \
16114 allow_undefined_flag_CXX \
16115 no_undefined_flag_CXX \
16116 export_symbols_cmds_CXX \
16117 hardcode_libdir_flag_spec_CXX \
16118 hardcode_libdir_flag_spec_ld_CXX \
16119 hardcode_libdir_separator_CXX \
16120 hardcode_automatic_CXX \
16122 module_expsym_cmds_CXX \
16123 lt_cv_prog_compiler_c_o_CXX \
16124 exclude_expsyms_CXX \
16125 include_expsyms_CXX; do
16128 old_archive_cmds_CXX | \
16129 old_archive_from_new_cmds_CXX | \
16130 archive_cmds_CXX | \
16131 archive_expsym_cmds_CXX | \
16132 module_cmds_CXX | \
16133 module_expsym_cmds_CXX | \
16134 old_archive_from_expsyms_cmds_CXX | \
16135 export_symbols_cmds_CXX | \
16136 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16137 postinstall_cmds | postuninstall_cmds | \
16138 old_postinstall_cmds | old_postuninstall_cmds | \
16139 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16140 # Double-quote double-evaled strings.
16141 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16144 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16150 *'\$0 --fallback-echo"')
16151 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16157 cat <<__EOF__ >> "$cfgfile"
16158 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16160 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16162 # Shell to use when invoking shell scripts.
16165 # Whether or not to build shared libraries.
16166 build_libtool_libs=$enable_shared
16168 # Whether or not to build static libraries.
16169 build_old_libs=$enable_static
16171 # Whether or not to add -lc for building shared libraries.
16172 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16174 # Whether or not to disallow shared libs when runtime libs are static
16175 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16177 # Whether or not to optimize for fast installation.
16178 fast_install=$enable_fast_install
16181 host_alias=$host_alias
16184 # An echo program that does not interpret backslashes.
16189 AR_FLAGS=$lt_AR_FLAGS
16194 # A language-specific compiler.
16195 CC=$lt_compiler_CXX
16197 # Is the compiler the GNU C compiler?
16203 # The linker used to build libraries.
16206 # Whether we need hard or soft links.
16209 # A BSD-compatible nm program.
16212 # A symbol stripping program
16215 # Used to examine libraries when file_magic_cmd begins "file"
16216 MAGIC_CMD=$MAGIC_CMD
16218 # Used on cygwin: DLL creation program.
16221 # Used on cygwin: object dumper.
16224 # Used on cygwin: assembler.
16227 # The name of the directory that contains temporary libtool files.
16230 # How to create reloadable object files.
16231 reload_flag=$lt_reload_flag
16232 reload_cmds=$lt_reload_cmds
16234 # How to pass a linker flag through the compiler.
16235 wl=$lt_lt_prog_compiler_wl_CXX
16237 # Object file suffix (normally "o").
16238 objext="$ac_objext"
16240 # Old archive suffix (normally "a").
16243 # Shared library suffix (normally ".so").
16244 shrext_cmds='$shrext_cmds'
16246 # Executable file suffix (normally "").
16249 # Additional compiler flags for building library objects.
16250 pic_flag=$lt_lt_prog_compiler_pic_CXX
16253 # What is the maximum length of a command?
16254 max_cmd_len=$lt_cv_sys_max_cmd_len
16256 # Does compiler simultaneously support -c and -o options?
16257 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16259 # Must we lock files when doing compilation ?
16260 need_locks=$lt_need_locks
16262 # Do we need the lib prefix for modules?
16263 need_lib_prefix=$need_lib_prefix
16265 # Do we need a version for libraries?
16266 need_version=$need_version
16268 # Whether dlopen is supported.
16269 dlopen_support=$enable_dlopen
16271 # Whether dlopen of programs is supported.
16272 dlopen_self=$enable_dlopen_self
16274 # Whether dlopen of statically linked programs is supported.
16275 dlopen_self_static=$enable_dlopen_self_static
16277 # Compiler flag to prevent dynamic linking.
16278 link_static_flag=$lt_lt_prog_compiler_static_CXX
16280 # Compiler flag to turn off builtin functions.
16281 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16283 # Compiler flag to allow reflexive dlopens.
16284 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16286 # Compiler flag to generate shared objects directly from archives.
16287 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16289 # Compiler flag to generate thread-safe objects.
16290 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
16292 # Library versioning type.
16293 version_type=$version_type
16295 # Format of library name prefix.
16296 libname_spec=$lt_libname_spec
16298 # List of archive names. First name is the real one, the rest are links.
16299 # The last name is the one that the linker finds with -lNAME.
16300 library_names_spec=$lt_library_names_spec
16302 # The coded name of the library, if different from the real name.
16303 soname_spec=$lt_soname_spec
16305 # Commands used to build and install an old-style archive.
16307 old_archive_cmds=$lt_old_archive_cmds_CXX
16308 old_postinstall_cmds=$lt_old_postinstall_cmds
16309 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16311 # Create an old-style archive from a shared archive.
16312 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16314 # Create a temporary old-style archive to link instead of a shared archive.
16315 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16317 # Commands used to build and install a shared archive.
16318 archive_cmds=$lt_archive_cmds_CXX
16319 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16320 postinstall_cmds=$lt_postinstall_cmds
16321 postuninstall_cmds=$lt_postuninstall_cmds
16323 # Commands used to build a loadable module (assumed same as above if empty)
16324 module_cmds=$lt_module_cmds_CXX
16325 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16327 # Commands to strip libraries.
16328 old_striplib=$lt_old_striplib
16329 striplib=$lt_striplib
16331 # Dependencies to place before the objects being linked to create a
16333 predep_objects=$lt_predep_objects_CXX
16335 # Dependencies to place after the objects being linked to create a
16337 postdep_objects=$lt_postdep_objects_CXX
16339 # Dependencies to place before the objects being linked to create a
16341 predeps=$lt_predeps_CXX
16343 # Dependencies to place after the objects being linked to create a
16345 postdeps=$lt_postdeps_CXX
16347 # The library search path used internally by the compiler when linking
16348 # a shared library.
16349 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16351 # Method to check whether dependent libraries are shared objects.
16352 deplibs_check_method=$lt_deplibs_check_method
16354 # Command to use when deplibs_check_method == file_magic.
16355 file_magic_cmd=$lt_file_magic_cmd
16357 # Flag that allows shared libraries with undefined symbols to be built.
16358 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16360 # Flag that forces no undefined symbols.
16361 no_undefined_flag=$lt_no_undefined_flag_CXX
16363 # Commands used to finish a libtool library installation in a directory.
16364 finish_cmds=$lt_finish_cmds
16366 # Same as above, but a single script fragment to be evaled but not shown.
16367 finish_eval=$lt_finish_eval
16369 # Take the output of nm and produce a listing of raw symbols and C names.
16370 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16372 # Transform the output of nm in a proper C declaration
16373 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16375 # Transform the output of nm in a C name address pair
16376 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16378 # This is the shared library runtime path variable.
16379 runpath_var=$runpath_var
16381 # This is the shared library path variable.
16382 shlibpath_var=$shlibpath_var
16384 # Is shlibpath searched before the hard-coded library search path?
16385 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16387 # How to hardcode a shared library path into an executable.
16388 hardcode_action=$hardcode_action_CXX
16390 # Whether we should hardcode library paths into libraries.
16391 hardcode_into_libs=$hardcode_into_libs
16393 # Flag to hardcode \$libdir into a binary during linking.
16394 # This must work even if \$libdir does not exist.
16395 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16397 # If ld is used when linking, flag to hardcode \$libdir into
16398 # a binary during linking. This must work even if \$libdir does
16400 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16402 # Whether we need a single -rpath flag with a separated argument.
16403 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16405 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16406 # resulting binary.
16407 hardcode_direct=$hardcode_direct_CXX
16409 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16410 # resulting binary.
16411 hardcode_minus_L=$hardcode_minus_L_CXX
16413 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16414 # the resulting binary.
16415 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16417 # Set to yes if building a shared library automatically hardcodes DIR into the library
16418 # and all subsequent libraries and executables linked against it.
16419 hardcode_automatic=$hardcode_automatic_CXX
16421 # Variables whose values should be saved in libtool wrapper scripts and
16422 # restored at relink time.
16423 variables_saved_for_relink="$variables_saved_for_relink"
16425 # Whether libtool must link a program against all its dependency libraries.
16426 link_all_deplibs=$link_all_deplibs_CXX
16428 # Compile-time system search path for libraries
16429 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16431 # Run-time system search path for libraries
16432 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16434 # Fix the shell variable \$srcfile for the compiler.
16435 fix_srcfile_path="$fix_srcfile_path_CXX"
16437 # Set to yes if exported symbols are required.
16438 always_export_symbols=$always_export_symbols_CXX
16440 # The commands to list exported symbols.
16441 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16443 # The commands to extract the exported symbol list from a shared archive.
16444 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16446 # Symbols that should not be listed in the preloaded symbols.
16447 exclude_expsyms=$lt_exclude_expsyms_CXX
16449 # Symbols that must always be exported.
16450 include_expsyms=$lt_include_expsyms_CXX
16452 # ### END LIBTOOL TAG CONFIG: $tagname
16458 # If there is no Makefile yet, we rely on a make rule to execute
16459 # `config.status --recheck' to rerun these tests and create the
16460 # libtool script then.
16461 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16462 if test -f "$ltmain_in"; then
16463 test -f Makefile && make "$ltmain"
16469 ac_cpp='$CPP $CPPFLAGS'
16470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16478 with_gnu_ldcxx=$with_gnu_ld
16479 with_gnu_ld=$lt_save_with_gnu_ld
16480 lt_cv_path_LDCXX=$lt_cv_path_LD
16481 lt_cv_path_LD=$lt_save_path_LD
16482 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16483 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16491 if test -n "$F77" && test "X$F77" != "Xno"; then
16494 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16495 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16496 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16499 archive_cmds_need_lc_F77=no
16500 allow_undefined_flag_F77=
16501 always_export_symbols_F77=no
16502 archive_expsym_cmds_F77=
16503 export_dynamic_flag_spec_F77=
16504 hardcode_direct_F77=no
16505 hardcode_libdir_flag_spec_F77=
16506 hardcode_libdir_flag_spec_ld_F77=
16507 hardcode_libdir_separator_F77=
16508 hardcode_minus_L_F77=no
16509 hardcode_automatic_F77=no
16511 module_expsym_cmds_F77=
16512 link_all_deplibs_F77=unknown
16513 old_archive_cmds_F77=$old_archive_cmds
16514 no_undefined_flag_F77=
16515 whole_archive_flag_spec_F77=
16516 enable_shared_with_static_runtimes_F77=no
16518 # Source file extension for f77 test sources.
16521 # Object file extension for compiled f77 test sources.
16525 # Code to be used in simple compile tests
16526 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
16528 # Code to be used in simple link tests
16529 lt_simple_link_test_code=" program t\n end\n"
16531 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16533 # If no C compiler was specified, use CC.
16536 # Allow CC to be a program name with arguments.
16540 # Allow CC to be a program name with arguments.
16545 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
16547 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16548 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
16549 echo "$as_me:$LINENO: result: $can_build_shared" >&5
16550 echo "${ECHO_T}$can_build_shared" >&6
16552 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16553 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
16554 test "$can_build_shared" = "no" && enable_shared=no
16556 # On AIX, shared libraries and static libraries use the same namespace, and
16557 # are all built from PIC.
16560 test "$enable_shared" = yes && enable_static=no
16561 if test -n "$RANLIB"; then
16562 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16563 postinstall_cmds='$RANLIB $lib'
16567 test "$enable_shared" = yes && enable_static=no
16570 echo "$as_me:$LINENO: result: $enable_shared" >&5
16571 echo "${ECHO_T}$enable_shared" >&6
16573 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16574 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
16575 # Make sure either enable_shared or enable_static is yes.
16576 test "$enable_shared" = yes || enable_static=yes
16577 echo "$as_me:$LINENO: result: $enable_static" >&5
16578 echo "${ECHO_T}$enable_static" >&6
16580 test "$ld_shlibs_F77" = no && can_build_shared=no
16585 lt_prog_compiler_wl_F77=
16586 lt_prog_compiler_pic_F77=
16587 lt_prog_compiler_static_F77=
16589 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16590 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16592 if test "$GCC" = yes; then
16593 lt_prog_compiler_wl_F77='-Wl,'
16594 lt_prog_compiler_static_F77='-static'
16598 # All AIX code is PIC.
16599 if test "$host_cpu" = ia64; then
16600 # AIX 5 now supports IA64 processor
16601 lt_prog_compiler_static_F77='-Bstatic'
16606 # FIXME: we need at least 68020 code to build shared libraries, but
16607 # adding the `-m68020' flag to GCC prevents building anything better,
16609 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
16612 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16613 # PIC is the default for these OSes.
16616 mingw* | pw32* | os2*)
16617 # This hack is so that the source file can tell whether it is being
16618 # built for inclusion in a dll (and should export symbols for example).
16619 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16622 darwin* | rhapsody*)
16623 # PIC is the default on this platform
16624 # Common symbols not allowed in MH_DYLIB files
16625 lt_prog_compiler_pic_F77='-fno-common'
16629 # Just because we use GCC doesn't mean we suddenly get shared libraries
16630 # on systems that don't support them.
16631 lt_prog_compiler_can_build_shared_F77=no
16636 if test -d /usr/nec; then
16637 lt_prog_compiler_pic_F77=-Kconform_pic
16642 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16643 # not for PA HP-UX.
16644 case "$host_cpu" in
16649 lt_prog_compiler_pic_F77='-fPIC'
16655 lt_prog_compiler_pic_F77='-fPIC'
16659 # PORTME Check for flag to pass linker flags through the system compiler.
16662 lt_prog_compiler_wl_F77='-Wl,'
16663 if test "$host_cpu" = ia64; then
16664 # AIX 5 now supports IA64 processor
16665 lt_prog_compiler_static_F77='-Bstatic'
16667 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16671 # PIC is the default on this platform
16672 # Common symbols not allowed in MH_DYLIB files
16673 case "$cc_basename" in
16675 lt_prog_compiler_pic_F77='-qnocommon'
16676 lt_prog_compiler_wl_F77='-Wl,'
16681 mingw* | pw32* | os2*)
16682 # This hack is so that the source file can tell whether it is being
16683 # built for inclusion in a dll (and should export symbols for example).
16684 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16687 hpux9* | hpux10* | hpux11*)
16688 lt_prog_compiler_wl_F77='-Wl,'
16689 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16690 # not for PA HP-UX.
16691 case "$host_cpu" in
16696 lt_prog_compiler_pic_F77='+Z'
16699 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16700 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
16703 irix5* | irix6* | nonstopux*)
16704 lt_prog_compiler_wl_F77='-Wl,'
16705 # PIC (with -KPIC) is the default.
16706 lt_prog_compiler_static_F77='-non_shared'
16710 lt_prog_compiler_pic_F77='-KPIC'
16711 lt_prog_compiler_static_F77='-Bstatic'
16717 lt_prog_compiler_wl_F77='-Wl,'
16718 lt_prog_compiler_pic_F77='-KPIC'
16719 lt_prog_compiler_static_F77='-static'
16722 lt_prog_compiler_wl_F77='-Wl,'
16723 # All Alpha code is PIC.
16724 lt_prog_compiler_static_F77='-non_shared'
16729 osf3* | osf4* | osf5*)
16730 lt_prog_compiler_wl_F77='-Wl,'
16731 # All OSF/1 code is PIC.
16732 lt_prog_compiler_static_F77='-non_shared'
16736 lt_prog_compiler_pic_F77='-Kpic'
16737 lt_prog_compiler_static_F77='-dn'
16741 lt_prog_compiler_wl_F77='-Wl,'
16742 lt_prog_compiler_pic_F77='-KPIC'
16743 lt_prog_compiler_static_F77='-Bstatic'
16747 lt_prog_compiler_wl_F77='-Qoption ld '
16748 lt_prog_compiler_pic_F77='-PIC'
16749 lt_prog_compiler_static_F77='-Bstatic'
16752 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16753 lt_prog_compiler_wl_F77='-Wl,'
16754 lt_prog_compiler_pic_F77='-KPIC'
16755 lt_prog_compiler_static_F77='-Bstatic'
16759 if test -d /usr/nec ;then
16760 lt_prog_compiler_pic_F77='-Kconform_pic'
16761 lt_prog_compiler_static_F77='-Bstatic'
16766 lt_prog_compiler_pic_F77='-pic'
16767 lt_prog_compiler_static_F77='-Bstatic'
16771 lt_prog_compiler_can_build_shared_F77=no
16776 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16777 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
16780 # Check to make sure the PIC flag actually works.
16782 if test -n "$lt_prog_compiler_pic_F77"; then
16784 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16785 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
16786 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
16787 echo $ECHO_N "(cached) $ECHO_C" >&6
16789 lt_prog_compiler_pic_works_F77=no
16790 ac_outfile=conftest.$ac_objext
16791 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16792 lt_compiler_flag="$lt_prog_compiler_pic_F77"
16793 # Insert the option either (1) after the last *FLAGS variable, or
16794 # (2) before a word containing "conftest.", or (3) at the end.
16795 # Note that $ac_compile itself does not contain backslashes and begins
16796 # with a dollar sign (not a hyphen), so the echo should work correctly.
16797 # The option is referenced via a variable to avoid confusing sed.
16798 lt_compile=`echo "$ac_compile" | $SED \
16799 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16801 -e 's:$: $lt_compiler_flag:'`
16802 (eval echo "\"\$as_me:16802: $lt_compile\"" >&5)
16803 (eval "$lt_compile" 2>conftest.err)
16805 cat conftest.err >&5
16806 echo "$as_me:16806: \$? = $ac_status" >&5
16807 if (exit $ac_status) && test -s "$ac_outfile"; then
16808 # The compiler can only warn and ignore the option if not recognized
16809 # So say no if there are warnings
16810 if test ! -s conftest.err; then
16811 lt_prog_compiler_pic_works_F77=yes
16817 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
16818 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
16820 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
16821 case $lt_prog_compiler_pic_F77 in
16823 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16826 lt_prog_compiler_pic_F77=
16827 lt_prog_compiler_can_build_shared_F77=no
16832 # For platforms which do not support PIC, -DPIC is meaningless:
16834 lt_prog_compiler_pic_F77=
16837 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16841 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16842 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16843 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16844 echo $ECHO_N "(cached) $ECHO_C" >&6
16846 lt_cv_prog_compiler_c_o_F77=no
16847 $rm -r conftest 2>/dev/null
16851 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16853 lt_compiler_flag="-o out/conftest2.$ac_objext"
16854 # Insert the option either (1) after the last *FLAGS variable, or
16855 # (2) before a word containing "conftest.", or (3) at the end.
16856 # Note that $ac_compile itself does not contain backslashes and begins
16857 # with a dollar sign (not a hyphen), so the echo should work correctly.
16858 lt_compile=`echo "$ac_compile" | $SED \
16859 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16860 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16861 -e 's:$: $lt_compiler_flag:'`
16862 (eval echo "\"\$as_me:16862: $lt_compile\"" >&5)
16863 (eval "$lt_compile" 2>out/conftest.err)
16865 cat out/conftest.err >&5
16866 echo "$as_me:16866: \$? = $ac_status" >&5
16867 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16869 # The compiler can only warn and ignore the option if not recognized
16870 # So say no if there are warnings
16871 if test ! -s out/conftest.err; then
16872 lt_cv_prog_compiler_c_o_F77=yes
16877 # SGI C++ compiler will create directory out/ii_files/ for
16878 # template instantiation
16879 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16880 $rm out/* && rmdir out
16886 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16887 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
16890 hard_links="nottested"
16891 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16892 # do not overwrite the value of need_locks provided by the user
16893 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16894 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16897 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16899 ln conftest.a conftest.b 2>&5 || hard_links=no
16900 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16901 echo "$as_me:$LINENO: result: $hard_links" >&5
16902 echo "${ECHO_T}$hard_links" >&6
16903 if test "$hard_links" = no; then
16904 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16905 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16912 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16913 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16916 allow_undefined_flag_F77=
16917 enable_shared_with_static_runtimes_F77=no
16919 archive_expsym_cmds_F77=
16920 old_archive_From_new_cmds_F77=
16921 old_archive_from_expsyms_cmds_F77=
16922 export_dynamic_flag_spec_F77=
16923 whole_archive_flag_spec_F77=
16924 thread_safe_flag_spec_F77=
16925 hardcode_libdir_flag_spec_F77=
16926 hardcode_libdir_flag_spec_ld_F77=
16927 hardcode_libdir_separator_F77=
16928 hardcode_direct_F77=no
16929 hardcode_minus_L_F77=no
16930 hardcode_shlibpath_var_F77=unsupported
16931 link_all_deplibs_F77=unknown
16932 hardcode_automatic_F77=no
16934 module_expsym_cmds_F77=
16935 always_export_symbols_F77=no
16936 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16937 # include_expsyms should be a list of space-separated symbols to be *always*
16938 # included in the symbol list
16939 include_expsyms_F77=
16940 # exclude_expsyms can be an extended regexp of symbols to exclude
16941 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16942 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16943 # as well as any symbol that contains `d'.
16944 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16945 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16946 # platforms (ab)use it in PIC code, but their linkers get confused if
16947 # the symbol is explicitly referenced. Since portable code cannot
16948 # rely on this symbol name, it's probably fine to never include it in
16949 # preloaded symbol tables.
16950 extract_expsyms_cmds=
16953 cygwin* | mingw* | pw32*)
16954 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16955 # When not using gcc, we currently assume that we are using
16956 # Microsoft Visual C++.
16957 if test "$GCC" != yes; then
16967 if test "$with_gnu_ld" = yes; then
16968 # If archive_cmds runs LD, not CC, wlarc should be empty
16971 # See if GNU ld supports shared libraries.
16973 aix3* | aix4* | aix5*)
16974 # On AIX/PPC, the GNU linker is very broken
16975 if test "$host_cpu" != ia64; then
16979 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16980 *** to be unable to reliably create shared libraries on AIX.
16981 *** Therefore, libtool is disabling shared libraries support. If you
16982 *** really care for shared libraries, you may want to modify your PATH
16983 *** so that a non-GNU linker is found, and then restart.
16990 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)'
16991 hardcode_libdir_flag_spec_F77='-L$libdir'
16992 hardcode_minus_L_F77=yes
16994 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16995 # that the semantics of dynamic libraries on AmigaOS, at least up
16996 # to version 4, is to share data among multiple programs linked
16997 # with the same dynamic library. Since this doesn't match the
16998 # behavior of shared libraries on other platforms, we can't use
17004 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17005 allow_undefined_flag_F77=unsupported
17006 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17007 # support --undefined. This deserves some investigation. FIXME
17008 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17014 cygwin* | mingw* | pw32*)
17015 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
17016 # as there is no search path for DLLs.
17017 hardcode_libdir_flag_spec_F77='-L$libdir'
17018 allow_undefined_flag_F77=unsupported
17019 always_export_symbols_F77=no
17020 enable_shared_with_static_runtimes_F77=yes
17021 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17023 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17024 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17025 # If the export-symbols file already is a .def file (1st line
17026 # is EXPORTS), use it as is; otherwise, prepend...
17027 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17028 cp $export_symbols $output_objdir/$soname.def;
17030 echo EXPORTS > $output_objdir/$soname.def;
17031 cat $export_symbols >> $output_objdir/$soname.def;
17033 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17040 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17041 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17044 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17045 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17050 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17054 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17055 *** create shared libraries on Solaris systems. Therefore, libtool
17056 *** is disabling shared libraries support. We urge you to upgrade GNU
17057 *** binutils to release 2.9.1 or newer. Another option is to modify
17058 *** your PATH or compiler configuration so that the native linker is
17059 *** used, and then restart.
17062 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17063 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17064 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17071 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17073 hardcode_direct_F77=yes
17074 hardcode_shlibpath_var_F77=no
17078 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17079 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17080 archive_cmds_F77="$tmp_archive_cmds"
17081 supports_anon_versioning=no
17082 case `$LD -v 2>/dev/null` in
17083 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17084 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17085 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17086 *\ 2.11.*) ;; # other 2.11 versions
17087 *) supports_anon_versioning=yes ;;
17089 if test $supports_anon_versioning = yes; then
17090 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
17091 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17092 $echo "local: *; };" >> $output_objdir/$libname.ver~
17093 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17095 archive_expsym_cmds_F77="$tmp_archive_cmds"
17103 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17104 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17105 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17112 if test "$ld_shlibs_F77" = yes; then
17113 runpath_var=LD_RUN_PATH
17114 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
17115 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
17116 # ancient GNU ld didn't support --whole-archive et. al.
17117 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17118 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17120 whole_archive_flag_spec_F77=
17124 # PORTME fill in a description of your system's linker (not GNU ld)
17127 allow_undefined_flag_F77=unsupported
17128 always_export_symbols_F77=yes
17129 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'
17130 # Note: this linker hardcodes the directories in LIBPATH if there
17131 # are no directories specified by -L.
17132 hardcode_minus_L_F77=yes
17133 if test "$GCC" = yes && test -z "$link_static_flag"; then
17134 # Neither direct hardcoding nor static linking is supported with a
17136 hardcode_direct_F77=unsupported
17141 if test "$host_cpu" = ia64; then
17142 # On IA64, the linker does run time linking by default, so we don't
17143 # have to do anything special.
17144 aix_use_runtimelinking=no
17145 exp_sym_flag='-Bexport'
17148 # If we're using GNU nm, then we don't want the "-C" option.
17149 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17150 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17151 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'
17153 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'
17155 aix_use_runtimelinking=no
17157 # Test if we are trying to use run time linking or normal
17158 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17159 # need to do runtime linking.
17160 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17161 for ld_flag in $LDFLAGS; do
17162 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17163 aix_use_runtimelinking=yes
17169 exp_sym_flag='-bexport'
17170 no_entry_flag='-bnoentry'
17173 # When large executables or shared objects are built, AIX ld can
17174 # have problems creating the table of contents. If linking a library
17175 # or program results in "error TOC overflow" add -mminimal-toc to
17176 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17177 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17179 archive_cmds_F77=''
17180 hardcode_direct_F77=yes
17181 hardcode_libdir_separator_F77=':'
17182 link_all_deplibs_F77=yes
17184 if test "$GCC" = yes; then
17185 case $host_os in aix4.012|aix4.012.*)
17186 # We only want to do this on AIX 4.2 and lower, the check
17187 # below for broken collect2 doesn't work under 4.3+
17188 collect2name=`${CC} -print-prog-name=collect2`
17189 if test -f "$collect2name" && \
17190 strings "$collect2name" | grep resolve_lib_name >/dev/null
17192 # We have reworked collect2
17193 hardcode_direct_F77=yes
17195 # We have old collect2
17196 hardcode_direct_F77=unsupported
17197 # It fails to find uninstalled libraries when the uninstalled
17198 # path is not listed in the libpath. Setting hardcode_minus_L
17199 # to unsupported forces relinking
17200 hardcode_minus_L_F77=yes
17201 hardcode_libdir_flag_spec_F77='-L$libdir'
17202 hardcode_libdir_separator_F77=
17205 shared_flag='-shared'
17208 if test "$host_cpu" = ia64; then
17209 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17210 # chokes on -Wl,-G. The following line is correct:
17213 if test "$aix_use_runtimelinking" = yes; then
17214 shared_flag='${wl}-G'
17216 shared_flag='${wl}-bM:SRE'
17221 # It seems that -bexpall does not export symbols beginning with
17222 # underscore (_), so it is better to generate a list of symbols to export.
17223 always_export_symbols_F77=yes
17224 if test "$aix_use_runtimelinking" = yes; then
17225 # Warning - without using the other runtime loading flags (-brtl),
17226 # -berok will link without error, but may produce a broken library.
17227 allow_undefined_flag_F77='-berok'
17228 # Determine the default libpath from the value encoded in an empty executable.
17229 cat >conftest.$ac_ext <<_ACEOF
17234 rm -f conftest.$ac_objext conftest$ac_exeext
17235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17236 (eval $ac_link) 2>conftest.er1
17238 grep -v '^ *+' conftest.er1 >conftest.err
17240 cat conftest.err >&5
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); } &&
17243 { ac_try='test -z "$ac_f77_werror_flag"
17244 || test ! -s conftest.err'
17245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17246 (eval $ac_try) 2>&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); }; } &&
17250 { ac_try='test -s conftest$ac_exeext'
17251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252 (eval $ac_try) 2>&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; }; then
17257 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17259 # Check for a 64-bit object if we didn't find anything.
17260 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; }
17263 echo "$as_me: failed program was:" >&5
17264 sed 's/^/| /' conftest.$ac_ext >&5
17267 rm -f conftest.err conftest.$ac_objext \
17268 conftest$ac_exeext conftest.$ac_ext
17269 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17271 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17272 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"
17274 if test "$host_cpu" = ia64; then
17275 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
17276 allow_undefined_flag_F77="-z nodefs"
17277 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"
17279 # Determine the default libpath from the value encoded in an empty executable.
17280 cat >conftest.$ac_ext <<_ACEOF
17285 rm -f conftest.$ac_objext conftest$ac_exeext
17286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17287 (eval $ac_link) 2>conftest.er1
17289 grep -v '^ *+' conftest.er1 >conftest.err
17291 cat conftest.err >&5
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); } &&
17294 { ac_try='test -z "$ac_f77_werror_flag"
17295 || test ! -s conftest.err'
17296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297 (eval $ac_try) 2>&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); }; } &&
17301 { ac_try='test -s conftest$ac_exeext'
17302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17303 (eval $ac_try) 2>&5
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); }; }; then
17308 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17310 # Check for a 64-bit object if we didn't find anything.
17311 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; }
17314 echo "$as_me: failed program was:" >&5
17315 sed 's/^/| /' conftest.$ac_ext >&5
17318 rm -f conftest.err conftest.$ac_objext \
17319 conftest$ac_exeext conftest.$ac_ext
17320 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17322 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17323 # Warning - without using the other run time loading flags,
17324 # -berok will link without error, but may produce a broken library.
17325 no_undefined_flag_F77=' ${wl}-bernotok'
17326 allow_undefined_flag_F77=' ${wl}-berok'
17327 # -bexpall does not export symbols beginning with underscore (_)
17328 always_export_symbols_F77=yes
17329 # Exported symbols can be pulled into shared objects from archives
17330 whole_archive_flag_spec_F77=' '
17331 archive_cmds_need_lc_F77=yes
17332 # This is similar to how AIX traditionally builds it's shared libraries.
17333 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'
17339 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)'
17340 hardcode_libdir_flag_spec_F77='-L$libdir'
17341 hardcode_minus_L_F77=yes
17342 # see comment about different semantics on the GNU ld section
17347 export_dynamic_flag_spec_F77=-rdynamic
17350 cygwin* | mingw* | pw32*)
17351 # When not using gcc, we currently assume that we are using
17352 # Microsoft Visual C++.
17353 # hardcode_libdir_flag_spec is actually meaningless, as there is
17354 # no search path for DLLs.
17355 hardcode_libdir_flag_spec_F77=' '
17356 allow_undefined_flag_F77=unsupported
17357 # Tell ltmain to make .lib files, not .a files.
17359 # Tell ltmain to make .dll files, not .so files.
17361 # FIXME: Setting linknames here is a bad hack.
17362 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17363 # The linker will automatically build a .lib file if we build a DLL.
17364 old_archive_From_new_cmds_F77='true'
17365 # FIXME: Should let the user specify the lib program.
17366 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
17367 fix_srcfile_path='`cygpath -w "$srcfile"`'
17368 enable_shared_with_static_runtimes_F77=yes
17371 darwin* | rhapsody*)
17373 rhapsody* | darwin1.[012])
17374 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
17377 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17378 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17380 case ${MACOSX_DEPLOYMENT_TARGET} in
17382 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17385 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
17391 archive_cmds_need_lc_F77=no
17392 hardcode_direct_F77=no
17393 hardcode_automatic_F77=yes
17394 hardcode_shlibpath_var_F77=unsupported
17395 whole_archive_flag_spec_F77=''
17396 link_all_deplibs_F77=yes
17397 if test "$GCC" = yes ; then
17398 output_verbose_link_cmd='echo'
17399 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17400 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17401 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17402 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17403 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}'
17405 case "$cc_basename" in
17407 output_verbose_link_cmd='echo'
17408 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17409 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17410 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17411 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17412 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}'
17422 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17423 hardcode_libdir_flag_spec_F77='-L$libdir'
17424 hardcode_shlibpath_var_F77=no
17431 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17432 # support. Future versions do this automatically, but an explicit c++rt0.o
17433 # does not break anything, and helps significantly (at the cost of a little
17436 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17437 hardcode_libdir_flag_spec_F77='-R$libdir'
17438 hardcode_direct_F77=yes
17439 hardcode_shlibpath_var_F77=no
17442 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17444 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17445 hardcode_direct_F77=yes
17446 hardcode_minus_L_F77=yes
17447 hardcode_shlibpath_var_F77=no
17450 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17451 freebsd* | kfreebsd*-gnu)
17452 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17453 hardcode_libdir_flag_spec_F77='-R$libdir'
17454 hardcode_direct_F77=yes
17455 hardcode_shlibpath_var_F77=no
17459 if test "$GCC" = yes; then
17460 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'
17462 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'
17464 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17465 hardcode_libdir_separator_F77=:
17466 hardcode_direct_F77=yes
17468 # hardcode_minus_L: Not really in the search PATH,
17469 # but as the default location of the library.
17470 hardcode_minus_L_F77=yes
17471 export_dynamic_flag_spec_F77='${wl}-E'
17475 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17476 case "$host_cpu" in
17478 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17481 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17485 case "$host_cpu" in
17487 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17490 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17494 if test "$with_gnu_ld" = no; then
17495 case "$host_cpu" in
17497 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17498 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
17499 hardcode_libdir_separator_F77=:
17500 hardcode_direct_F77=no
17501 hardcode_shlibpath_var_F77=no
17504 hardcode_libdir_flag_spec_F77='-L$libdir'
17505 hardcode_direct_F77=no
17506 hardcode_shlibpath_var_F77=no
17508 # hardcode_minus_L: Not really in the search PATH,
17509 # but as the default location of the library.
17510 hardcode_minus_L_F77=yes
17513 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17514 hardcode_libdir_separator_F77=:
17515 hardcode_direct_F77=yes
17516 export_dynamic_flag_spec_F77='${wl}-E'
17518 # hardcode_minus_L: Not really in the search PATH,
17519 # but as the default location of the library.
17520 hardcode_minus_L_F77=yes
17526 irix5* | irix6* | nonstopux*)
17527 if test "$GCC" = yes; then
17528 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'
17530 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'
17531 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
17533 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17534 hardcode_libdir_separator_F77=:
17535 link_all_deplibs_F77=yes
17539 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17540 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17542 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17544 hardcode_libdir_flag_spec_F77='-R$libdir'
17545 hardcode_direct_F77=yes
17546 hardcode_shlibpath_var_F77=no
17550 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17551 hardcode_direct_F77=yes
17552 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17553 hardcode_libdir_separator_F77=:
17554 hardcode_shlibpath_var_F77=no
17558 hardcode_direct_F77=yes
17559 hardcode_shlibpath_var_F77=no
17560 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17561 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17562 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17563 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17564 export_dynamic_flag_spec_F77='${wl}-E'
17567 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17568 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17569 hardcode_libdir_flag_spec_F77='-R$libdir'
17572 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17573 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17580 hardcode_libdir_flag_spec_F77='-L$libdir'
17581 hardcode_minus_L_F77=yes
17582 allow_undefined_flag_F77=unsupported
17583 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'
17584 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17588 if test "$GCC" = yes; then
17589 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17590 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'
17592 allow_undefined_flag_F77=' -expect_unresolved \*'
17593 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'
17595 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17596 hardcode_libdir_separator_F77=:
17599 osf4* | osf5*) # as osf3* with the addition of -msym flag
17600 if test "$GCC" = yes; then
17601 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17602 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'
17603 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17605 allow_undefined_flag_F77=' -expect_unresolved \*'
17606 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'
17607 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~
17608 $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'
17610 # Both c and cxx compiler support -rpath directly
17611 hardcode_libdir_flag_spec_F77='-rpath $libdir'
17613 hardcode_libdir_separator_F77=:
17617 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17618 hardcode_shlibpath_var_F77=no
17619 export_dynamic_flag_spec_F77='${wl}-Bexport'
17620 runpath_var=LD_RUN_PATH
17621 hardcode_runpath_var=yes
17625 no_undefined_flag_F77=' -z text'
17626 if test "$GCC" = yes; then
17627 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17628 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17629 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17631 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17632 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17633 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17635 hardcode_libdir_flag_spec_F77='-R$libdir'
17636 hardcode_shlibpath_var_F77=no
17638 solaris2.[0-5] | solaris2.[0-5].*) ;;
17639 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17640 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
17642 link_all_deplibs_F77=yes
17646 if test "x$host_vendor" = xsequent; then
17647 # Use $CC to link under sequent, because it throws in some extra .o
17648 # files that make .init and .fini sections work.
17649 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17651 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17653 hardcode_libdir_flag_spec_F77='-L$libdir'
17654 hardcode_direct_F77=yes
17655 hardcode_minus_L_F77=yes
17656 hardcode_shlibpath_var_F77=no
17660 case $host_vendor in
17662 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17663 hardcode_direct_F77=yes # is this really true???
17666 ## LD is ld it makes a PLAMLIB
17667 ## CC just makes a GrossModule.
17668 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17669 reload_cmds_F77='$CC -r -o $output$reload_objs'
17670 hardcode_direct_F77=no
17673 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17674 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17677 runpath_var='LD_RUN_PATH'
17678 hardcode_shlibpath_var_F77=no
17682 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17683 hardcode_shlibpath_var_F77=no
17684 export_dynamic_flag_spec_F77='-Bexport'
17688 if test -d /usr/nec; then
17689 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17690 hardcode_shlibpath_var_F77=no
17691 runpath_var=LD_RUN_PATH
17692 hardcode_runpath_var=yes
17698 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17699 hardcode_direct_F77=yes
17700 hardcode_minus_L_F77=no
17701 hardcode_shlibpath_var_F77=no
17702 hardcode_runpath_var=yes
17703 runpath_var=LD_RUN_PATH
17706 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17707 no_undefined_flag_F77='${wl}-z ${wl}text'
17708 if test "$GCC" = yes; then
17709 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17711 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17713 runpath_var='LD_RUN_PATH'
17714 hardcode_shlibpath_var_F77=no
17718 no_undefined_flag_F77=' -z text'
17719 # $CC -shared without GNU ld will not create a library from C++
17720 # object files and a static libstdc++, better avoid it by now
17721 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17722 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17723 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17724 hardcode_libdir_flag_spec_F77=
17725 hardcode_shlibpath_var_F77=no
17726 runpath_var='LD_RUN_PATH'
17730 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17731 hardcode_libdir_flag_spec_F77='-L$libdir'
17732 hardcode_shlibpath_var_F77=no
17741 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17742 echo "${ECHO_T}$ld_shlibs_F77" >&6
17743 test "$ld_shlibs_F77" = no && can_build_shared=no
17745 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17746 if test "$GCC" = yes; then
17747 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17751 # Do we need to explicitly link libc?
17753 case "x$archive_cmds_need_lc_F77" in
17755 # Assume -lc should be added
17756 archive_cmds_need_lc_F77=yes
17758 if test "$enable_shared" = yes && test "$GCC" = yes; then
17759 case $archive_cmds_F77 in
17761 # FIXME: we may have to deal with multi-command sequences.
17764 # Test whether the compiler implicitly links with -lc since on some
17765 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17766 # to ld, don't add -lc before -lgcc.
17767 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17768 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17770 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17773 (eval $ac_compile) 2>&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); } 2>conftest.err; then
17779 libobjs=conftest.$ac_objext
17781 wl=$lt_prog_compiler_wl_F77
17787 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17788 allow_undefined_flag_F77=
17789 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17790 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }
17795 archive_cmds_need_lc_F77=no
17797 archive_cmds_need_lc_F77=yes
17799 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17801 cat conftest.err 1>&5
17804 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17805 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
17812 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17813 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17814 library_names_spec=
17815 libname_spec='lib$name'
17819 postuninstall_cmds=
17823 shlibpath_overrides_runpath=unknown
17825 dynamic_linker="$host_os ld.so"
17826 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17827 if test "$GCC" = yes; then
17828 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17829 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17830 # if the path contains ";" then we assume it to be the separator
17831 # otherwise default to the standard path separator (i.e. ":") - it is
17832 # assumed that no part of a normal pathname contains ";" but that should
17833 # okay in the real world where ";" in dirpaths is itself problematic.
17834 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17836 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17839 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17841 need_lib_prefix=unknown
17842 hardcode_into_libs=no
17844 # when you set need_version to no, make sure it does not cause -set_version
17845 # flags to be left without arguments
17846 need_version=unknown
17851 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17852 shlibpath_var=LIBPATH
17854 # AIX 3 has no versioning support, so we append a major version to the name.
17855 soname_spec='${libname}${release}${shared_ext}$major'
17862 hardcode_into_libs=yes
17863 if test "$host_cpu" = ia64; then
17864 # AIX 5 supports IA64
17865 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17866 shlibpath_var=LD_LIBRARY_PATH
17868 # With GCC up to 2.95.x, collect2 would create an import file
17869 # for dependence libraries. The import file would start with
17870 # the line `#! .'. This would cause the generated library to
17871 # depend on `.', always an invalid library. This was fixed in
17872 # development snapshots of GCC prior to 3.0.
17874 aix4 | aix4.[01] | aix4.[01].*)
17875 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17877 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17880 can_build_shared=no
17884 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17885 # soname into executable. Probably we can add versioning support to
17886 # collect2, so additional links can be useful in future.
17887 if test "$aix_use_runtimelinking" = yes; then
17888 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17889 # instead of lib<name>.a to let people know that these are not
17890 # typical AIX shared libraries.
17891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17893 # We preserve .a as extension for shared libraries through AIX4.2
17894 # and later when we are not doing run time linking.
17895 library_names_spec='${libname}${release}.a $libname.a'
17896 soname_spec='${libname}${release}${shared_ext}$major'
17898 shlibpath_var=LIBPATH
17903 library_names_spec='$libname.ixlibrary $libname.a'
17904 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17905 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'
17909 library_names_spec='${libname}${shared_ext}'
17910 dynamic_linker="$host_os ld.so"
17911 shlibpath_var=LIBRARY_PATH
17917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17918 soname_spec='${libname}${release}${shared_ext}$major'
17919 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17920 shlibpath_var=LD_LIBRARY_PATH
17921 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17922 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17923 # the default ld.so.conf also contains /usr/contrib/lib and
17924 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17925 # libtool to hard-code these into programs
17928 cygwin* | mingw* | pw32*)
17929 version_type=windows
17934 case $GCC,$host_os in
17935 yes,cygwin* | yes,mingw* | yes,pw32*)
17936 library_names_spec='$libname.dll.a'
17937 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17938 postinstall_cmds='base_file=`basename \${file}`~
17939 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17940 dldir=$destdir/`dirname \$dlpath`~
17941 test -d \$dldir || mkdir -p \$dldir~
17942 $install_prog $dir/$dlname \$dldir/$dlname'
17943 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17944 dlpath=$dir/\$dldll~
17946 shlibpath_overrides_runpath=yes
17950 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17951 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17952 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17955 # MinGW DLLs use traditional 'lib' prefix
17956 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17957 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17958 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17959 # It is most probably a Windows format PATH printed by
17960 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17961 # path with ; separators, and with drive letters. We can handle the
17962 # drive letters (cygwin fileutils understands them), so leave them,
17963 # especially as we might pass files found there to a mingw objdump,
17964 # which wouldn't understand a cygwinified path. Ahh.
17965 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17967 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17971 # pw32 DLLs use 'pw' prefix rather than 'lib'
17972 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17978 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17981 dynamic_linker='Win32 ld.exe'
17982 # FIXME: first we should search . and the directory the executable is in
17986 darwin* | rhapsody*)
17987 dynamic_linker="$host_os dyld"
17988 version_type=darwin
17991 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17992 soname_spec='${libname}${release}${major}$shared_ext'
17993 shlibpath_overrides_runpath=yes
17994 shlibpath_var=DYLD_LIBRARY_PATH
17995 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17996 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17997 if test "$GCC" = yes; then
17998 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"`
18000 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18002 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18010 soname_spec='${libname}${release}${shared_ext}$major'
18011 shlibpath_var=LD_LIBRARY_PATH
18022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18023 soname_spec='${libname}${release}${shared_ext}$major'
18024 shlibpath_var=LD_LIBRARY_PATH
18025 shlibpath_overrides_runpath=no
18026 hardcode_into_libs=yes
18027 dynamic_linker='GNU ld.so'
18031 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18032 version_type=freebsd-$objformat
18033 case $version_type in
18035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18040 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18044 shlibpath_var=LD_LIBRARY_PATH
18047 shlibpath_overrides_runpath=yes
18049 freebsd3.01* | freebsdelf3.01*)
18050 shlibpath_overrides_runpath=yes
18051 hardcode_into_libs=yes
18054 shlibpath_overrides_runpath=no
18055 hardcode_into_libs=yes
18064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18065 soname_spec='${libname}${release}${shared_ext}$major'
18066 shlibpath_var=LD_LIBRARY_PATH
18067 hardcode_into_libs=yes
18070 hpux9* | hpux10* | hpux11*)
18071 # Give a soname corresponding to the major version so that dld.sl refuses to
18072 # link against other versions.
18076 case "$host_cpu" in
18079 hardcode_into_libs=yes
18080 dynamic_linker="$host_os dld.so"
18081 shlibpath_var=LD_LIBRARY_PATH
18082 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18084 soname_spec='${libname}${release}${shared_ext}$major'
18085 if test "X$HPUX_IA64_MODE" = X32; then
18086 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18088 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18090 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18094 hardcode_into_libs=yes
18095 dynamic_linker="$host_os dld.sl"
18096 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18097 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18099 soname_spec='${libname}${release}${shared_ext}$major'
18100 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18101 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18105 dynamic_linker="$host_os dld.sl"
18106 shlibpath_var=SHLIB_PATH
18107 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18109 soname_spec='${libname}${release}${shared_ext}$major'
18112 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18113 postinstall_cmds='chmod 555 $lib'
18116 irix5* | irix6* | nonstopux*)
18118 nonstopux*) version_type=nonstopux ;;
18120 if test "$lt_cv_prog_gnu_ld" = yes; then
18128 soname_spec='${libname}${release}${shared_ext}$major'
18129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18131 irix5* | nonstopux*)
18132 libsuff= shlibsuff=
18135 case $LD in # libtool.m4 will add one of these switches to LD
18136 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18137 libsuff= shlibsuff= libmagic=32-bit;;
18138 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18139 libsuff=32 shlibsuff=N32 libmagic=N32;;
18140 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18141 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18142 *) libsuff= shlibsuff= libmagic=never-match;;
18146 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18147 shlibpath_overrides_runpath=no
18148 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18149 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18150 hardcode_into_libs=yes
18153 # No shared lib support for Linux oldld, aout, or coff.
18154 linux*oldld* | linux*aout* | linux*coff*)
18158 # This must be Linux ELF.
18163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18164 soname_spec='${libname}${release}${shared_ext}$major'
18165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18166 shlibpath_var=LD_LIBRARY_PATH
18167 shlibpath_overrides_runpath=no
18168 # This implies no fast_install, which is unacceptable.
18169 # Some rework will be needed to allow for fast_install
18170 # before this can be enabled.
18171 hardcode_into_libs=yes
18173 # Append ld.so.conf contents to the search path
18174 if test -f /etc/ld.so.conf; then
18175 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18176 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18179 # We used to test for /lib/ld.so.1 and disable shared libraries on
18180 # powerpc, because MkLinux only supported shared libraries with the
18181 # GNU dynamic linker. Since this was broken with cross compilers,
18182 # most powerpc-linux boxes support dynamic linking these days and
18183 # people can always --disable-shared, the test was removed, and we
18184 # assume the GNU/Linux dynamic linker is in use.
18185 dynamic_linker='GNU/Linux ld.so'
18192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18193 soname_spec='${libname}${release}${shared_ext}$major'
18194 shlibpath_var=LD_LIBRARY_PATH
18195 shlibpath_overrides_runpath=no
18196 hardcode_into_libs=yes
18197 dynamic_linker='GNU ld.so'
18204 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18206 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18207 dynamic_linker='NetBSD (a.out) ld.so'
18209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18210 soname_spec='${libname}${release}${shared_ext}$major'
18211 dynamic_linker='NetBSD ld.elf_so'
18213 shlibpath_var=LD_LIBRARY_PATH
18214 shlibpath_overrides_runpath=yes
18215 hardcode_into_libs=yes
18220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18221 shlibpath_var=LD_LIBRARY_PATH
18222 shlibpath_overrides_runpath=yes
18229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18230 soname_spec='${libname}${release}${shared_ext}$major'
18231 shlibpath_var=LD_LIBRARY_PATH
18232 shlibpath_overrides_runpath=yes
18239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18240 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18241 shlibpath_var=LD_LIBRARY_PATH
18242 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18244 openbsd2.[89] | openbsd2.[89].*)
18245 shlibpath_overrides_runpath=no
18248 shlibpath_overrides_runpath=yes
18252 shlibpath_overrides_runpath=yes
18257 libname_spec='$name'
18260 library_names_spec='$libname${shared_ext} $libname.a'
18261 dynamic_linker='OS/2 ld.exe'
18262 shlibpath_var=LIBPATH
18265 osf3* | osf4* | osf5*)
18269 soname_spec='${libname}${release}${shared_ext}$major'
18270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18271 shlibpath_var=LD_LIBRARY_PATH
18272 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18273 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18278 soname_spec='${libname}${release}${shared_ext}$major'
18279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18280 shlibpath_var=LD_LIBRARY_PATH
18287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18288 soname_spec='${libname}${release}${shared_ext}$major'
18289 shlibpath_var=LD_LIBRARY_PATH
18290 shlibpath_overrides_runpath=yes
18291 hardcode_into_libs=yes
18292 # ldd complains unless libraries are executable
18293 postinstall_cmds='chmod +x $lib'
18298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18299 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18300 shlibpath_var=LD_LIBRARY_PATH
18301 shlibpath_overrides_runpath=yes
18302 if test "$with_gnu_ld" = yes; then
18308 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18311 soname_spec='${libname}${release}${shared_ext}$major'
18312 shlibpath_var=LD_LIBRARY_PATH
18313 case $host_vendor in
18315 shlibpath_overrides_runpath=no
18317 export_dynamic_flag_spec='${wl}-Blargedynsym'
18318 runpath_var=LD_RUN_PATH
18326 shlibpath_overrides_runpath=no
18327 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18333 if test -d /usr/nec ;then
18335 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18336 soname_spec='$libname${shared_ext}.$major'
18337 shlibpath_var=LD_LIBRARY_PATH
18343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18344 soname_spec='${libname}${release}${shared_ext}$major'
18345 shlibpath_var=LD_LIBRARY_PATH
18352 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18353 echo "${ECHO_T}$dynamic_linker" >&6
18354 test "$dynamic_linker" = no && can_build_shared=no
18356 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18357 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18358 hardcode_action_F77=
18359 if test -n "$hardcode_libdir_flag_spec_F77" || \
18360 test -n "$runpath_var_F77" || \
18361 test "X$hardcode_automatic_F77" = "Xyes" ; then
18363 # We can hardcode non-existant directories.
18364 if test "$hardcode_direct_F77" != no &&
18365 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18366 # have to relink, otherwise we might link with an installed library
18367 # when we should be linking with a yet-to-be-installed one
18368 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18369 test "$hardcode_minus_L_F77" != no; then
18370 # Linking always hardcodes the temporary library directory.
18371 hardcode_action_F77=relink
18373 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18374 hardcode_action_F77=immediate
18377 # We cannot hardcode anything, or else we can only hardcode existing
18379 hardcode_action_F77=unsupported
18381 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
18382 echo "${ECHO_T}$hardcode_action_F77" >&6
18384 if test "$hardcode_action_F77" = relink; then
18385 # Fast installation is not supported
18386 enable_fast_install=no
18387 elif test "$shlibpath_overrides_runpath" = yes ||
18388 test "$enable_shared" = no; then
18389 # Fast installation is not necessary
18390 enable_fast_install=needless
18395 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18396 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18397 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18398 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18399 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18400 echo "$as_me:$LINENO: result: yes" >&5
18401 echo "${ECHO_T}yes" >&6
18403 # FIXME - insert some real tests, host_os isn't really good enough
18406 if test -n "$STRIP" ; then
18407 striplib="$STRIP -x"
18408 echo "$as_me:$LINENO: result: yes" >&5
18409 echo "${ECHO_T}yes" >&6
18411 echo "$as_me:$LINENO: result: no" >&5
18412 echo "${ECHO_T}no" >&6
18416 echo "$as_me:$LINENO: result: no" >&5
18417 echo "${ECHO_T}no" >&6
18424 # The else clause should only fire when bootstrapping the
18425 # libtool distribution, otherwise you forgot to ship ltmain.sh
18426 # with your package, and you will get complaints that there are
18427 # no rules to generate ltmain.sh.
18428 if test -f "$ltmain"; then
18429 # See if we are running on zsh, and set the options which allow our commands through
18430 # without removal of \ escapes.
18431 if test -n "${ZSH_VERSION+set}" ; then
18432 setopt NO_GLOB_SUBST
18434 # Now quote all the things that may contain metacharacters while being
18435 # careful not to overquote the AC_SUBSTed values. We take copies of the
18436 # variables and quote the copies for generation of the libtool script.
18437 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18439 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18440 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18441 deplibs_check_method reload_flag reload_cmds need_locks \
18442 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18443 lt_cv_sys_global_symbol_to_c_name_address \
18444 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18445 old_postinstall_cmds old_postuninstall_cmds \
18449 lt_prog_compiler_wl_F77 \
18450 lt_prog_compiler_pic_F77 \
18451 lt_prog_compiler_static_F77 \
18452 lt_prog_compiler_no_builtin_flag_F77 \
18453 export_dynamic_flag_spec_F77 \
18454 thread_safe_flag_spec_F77 \
18455 whole_archive_flag_spec_F77 \
18456 enable_shared_with_static_runtimes_F77 \
18457 old_archive_cmds_F77 \
18458 old_archive_from_new_cmds_F77 \
18459 predep_objects_F77 \
18460 postdep_objects_F77 \
18463 compiler_lib_search_path_F77 \
18465 archive_expsym_cmds_F77 \
18466 postinstall_cmds_F77 \
18467 postuninstall_cmds_F77 \
18468 old_archive_from_expsyms_cmds_F77 \
18469 allow_undefined_flag_F77 \
18470 no_undefined_flag_F77 \
18471 export_symbols_cmds_F77 \
18472 hardcode_libdir_flag_spec_F77 \
18473 hardcode_libdir_flag_spec_ld_F77 \
18474 hardcode_libdir_separator_F77 \
18475 hardcode_automatic_F77 \
18477 module_expsym_cmds_F77 \
18478 lt_cv_prog_compiler_c_o_F77 \
18479 exclude_expsyms_F77 \
18480 include_expsyms_F77; do
18483 old_archive_cmds_F77 | \
18484 old_archive_from_new_cmds_F77 | \
18485 archive_cmds_F77 | \
18486 archive_expsym_cmds_F77 | \
18487 module_cmds_F77 | \
18488 module_expsym_cmds_F77 | \
18489 old_archive_from_expsyms_cmds_F77 | \
18490 export_symbols_cmds_F77 | \
18491 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18492 postinstall_cmds | postuninstall_cmds | \
18493 old_postinstall_cmds | old_postuninstall_cmds | \
18494 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18495 # Double-quote double-evaled strings.
18496 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18499 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18505 *'\$0 --fallback-echo"')
18506 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18512 cat <<__EOF__ >> "$cfgfile"
18513 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18515 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18517 # Shell to use when invoking shell scripts.
18520 # Whether or not to build shared libraries.
18521 build_libtool_libs=$enable_shared
18523 # Whether or not to build static libraries.
18524 build_old_libs=$enable_static
18526 # Whether or not to add -lc for building shared libraries.
18527 build_libtool_need_lc=$archive_cmds_need_lc_F77
18529 # Whether or not to disallow shared libs when runtime libs are static
18530 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18532 # Whether or not to optimize for fast installation.
18533 fast_install=$enable_fast_install
18536 host_alias=$host_alias
18539 # An echo program that does not interpret backslashes.
18544 AR_FLAGS=$lt_AR_FLAGS
18549 # A language-specific compiler.
18550 CC=$lt_compiler_F77
18552 # Is the compiler the GNU C compiler?
18558 # The linker used to build libraries.
18561 # Whether we need hard or soft links.
18564 # A BSD-compatible nm program.
18567 # A symbol stripping program
18570 # Used to examine libraries when file_magic_cmd begins "file"
18571 MAGIC_CMD=$MAGIC_CMD
18573 # Used on cygwin: DLL creation program.
18576 # Used on cygwin: object dumper.
18579 # Used on cygwin: assembler.
18582 # The name of the directory that contains temporary libtool files.
18585 # How to create reloadable object files.
18586 reload_flag=$lt_reload_flag
18587 reload_cmds=$lt_reload_cmds
18589 # How to pass a linker flag through the compiler.
18590 wl=$lt_lt_prog_compiler_wl_F77
18592 # Object file suffix (normally "o").
18593 objext="$ac_objext"
18595 # Old archive suffix (normally "a").
18598 # Shared library suffix (normally ".so").
18599 shrext_cmds='$shrext_cmds'
18601 # Executable file suffix (normally "").
18604 # Additional compiler flags for building library objects.
18605 pic_flag=$lt_lt_prog_compiler_pic_F77
18608 # What is the maximum length of a command?
18609 max_cmd_len=$lt_cv_sys_max_cmd_len
18611 # Does compiler simultaneously support -c and -o options?
18612 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18614 # Must we lock files when doing compilation ?
18615 need_locks=$lt_need_locks
18617 # Do we need the lib prefix for modules?
18618 need_lib_prefix=$need_lib_prefix
18620 # Do we need a version for libraries?
18621 need_version=$need_version
18623 # Whether dlopen is supported.
18624 dlopen_support=$enable_dlopen
18626 # Whether dlopen of programs is supported.
18627 dlopen_self=$enable_dlopen_self
18629 # Whether dlopen of statically linked programs is supported.
18630 dlopen_self_static=$enable_dlopen_self_static
18632 # Compiler flag to prevent dynamic linking.
18633 link_static_flag=$lt_lt_prog_compiler_static_F77
18635 # Compiler flag to turn off builtin functions.
18636 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18638 # Compiler flag to allow reflexive dlopens.
18639 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18641 # Compiler flag to generate shared objects directly from archives.
18642 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18644 # Compiler flag to generate thread-safe objects.
18645 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18647 # Library versioning type.
18648 version_type=$version_type
18650 # Format of library name prefix.
18651 libname_spec=$lt_libname_spec
18653 # List of archive names. First name is the real one, the rest are links.
18654 # The last name is the one that the linker finds with -lNAME.
18655 library_names_spec=$lt_library_names_spec
18657 # The coded name of the library, if different from the real name.
18658 soname_spec=$lt_soname_spec
18660 # Commands used to build and install an old-style archive.
18662 old_archive_cmds=$lt_old_archive_cmds_F77
18663 old_postinstall_cmds=$lt_old_postinstall_cmds
18664 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18666 # Create an old-style archive from a shared archive.
18667 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18669 # Create a temporary old-style archive to link instead of a shared archive.
18670 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18672 # Commands used to build and install a shared archive.
18673 archive_cmds=$lt_archive_cmds_F77
18674 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18675 postinstall_cmds=$lt_postinstall_cmds
18676 postuninstall_cmds=$lt_postuninstall_cmds
18678 # Commands used to build a loadable module (assumed same as above if empty)
18679 module_cmds=$lt_module_cmds_F77
18680 module_expsym_cmds=$lt_module_expsym_cmds_F77
18682 # Commands to strip libraries.
18683 old_striplib=$lt_old_striplib
18684 striplib=$lt_striplib
18686 # Dependencies to place before the objects being linked to create a
18688 predep_objects=$lt_predep_objects_F77
18690 # Dependencies to place after the objects being linked to create a
18692 postdep_objects=$lt_postdep_objects_F77
18694 # Dependencies to place before the objects being linked to create a
18696 predeps=$lt_predeps_F77
18698 # Dependencies to place after the objects being linked to create a
18700 postdeps=$lt_postdeps_F77
18702 # The library search path used internally by the compiler when linking
18703 # a shared library.
18704 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18706 # Method to check whether dependent libraries are shared objects.
18707 deplibs_check_method=$lt_deplibs_check_method
18709 # Command to use when deplibs_check_method == file_magic.
18710 file_magic_cmd=$lt_file_magic_cmd
18712 # Flag that allows shared libraries with undefined symbols to be built.
18713 allow_undefined_flag=$lt_allow_undefined_flag_F77
18715 # Flag that forces no undefined symbols.
18716 no_undefined_flag=$lt_no_undefined_flag_F77
18718 # Commands used to finish a libtool library installation in a directory.
18719 finish_cmds=$lt_finish_cmds
18721 # Same as above, but a single script fragment to be evaled but not shown.
18722 finish_eval=$lt_finish_eval
18724 # Take the output of nm and produce a listing of raw symbols and C names.
18725 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18727 # Transform the output of nm in a proper C declaration
18728 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18730 # Transform the output of nm in a C name address pair
18731 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18733 # This is the shared library runtime path variable.
18734 runpath_var=$runpath_var
18736 # This is the shared library path variable.
18737 shlibpath_var=$shlibpath_var
18739 # Is shlibpath searched before the hard-coded library search path?
18740 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18742 # How to hardcode a shared library path into an executable.
18743 hardcode_action=$hardcode_action_F77
18745 # Whether we should hardcode library paths into libraries.
18746 hardcode_into_libs=$hardcode_into_libs
18748 # Flag to hardcode \$libdir into a binary during linking.
18749 # This must work even if \$libdir does not exist.
18750 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18752 # If ld is used when linking, flag to hardcode \$libdir into
18753 # a binary during linking. This must work even if \$libdir does
18755 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18757 # Whether we need a single -rpath flag with a separated argument.
18758 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18760 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18761 # resulting binary.
18762 hardcode_direct=$hardcode_direct_F77
18764 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18765 # resulting binary.
18766 hardcode_minus_L=$hardcode_minus_L_F77
18768 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18769 # the resulting binary.
18770 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18772 # Set to yes if building a shared library automatically hardcodes DIR into the library
18773 # and all subsequent libraries and executables linked against it.
18774 hardcode_automatic=$hardcode_automatic_F77
18776 # Variables whose values should be saved in libtool wrapper scripts and
18777 # restored at relink time.
18778 variables_saved_for_relink="$variables_saved_for_relink"
18780 # Whether libtool must link a program against all its dependency libraries.
18781 link_all_deplibs=$link_all_deplibs_F77
18783 # Compile-time system search path for libraries
18784 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18786 # Run-time system search path for libraries
18787 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18789 # Fix the shell variable \$srcfile for the compiler.
18790 fix_srcfile_path="$fix_srcfile_path_F77"
18792 # Set to yes if exported symbols are required.
18793 always_export_symbols=$always_export_symbols_F77
18795 # The commands to list exported symbols.
18796 export_symbols_cmds=$lt_export_symbols_cmds_F77
18798 # The commands to extract the exported symbol list from a shared archive.
18799 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18801 # Symbols that should not be listed in the preloaded symbols.
18802 exclude_expsyms=$lt_exclude_expsyms_F77
18804 # Symbols that must always be exported.
18805 include_expsyms=$lt_include_expsyms_F77
18807 # ### END LIBTOOL TAG CONFIG: $tagname
18813 # If there is no Makefile yet, we rely on a make rule to execute
18814 # `config.status --recheck' to rerun these tests and create the
18815 # libtool script then.
18816 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18817 if test -f "$ltmain_in"; then
18818 test -f Makefile && make "$ltmain"
18824 ac_cpp='$CPP $CPPFLAGS'
18825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18837 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18841 # Source file extension for Java test sources.
18844 # Object file extension for compiled Java test sources.
18848 # Code to be used in simple compile tests
18849 lt_simple_compile_test_code="class foo {}\n"
18851 # Code to be used in simple link tests
18852 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
18854 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18856 # If no C compiler was specified, use CC.
18859 # Allow CC to be a program name with arguments.
18863 # Allow CC to be a program name with arguments.
18869 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18870 archive_cmds_need_lc_GCJ=no
18873 ## There is no encapsulation within the following macros, do not change
18874 ## the running order or otherwise move them around unless you know exactly
18875 ## what you are doing...
18877 lt_prog_compiler_no_builtin_flag_GCJ=
18879 if test "$GCC" = yes; then
18880 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18883 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18884 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
18885 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18886 echo $ECHO_N "(cached) $ECHO_C" >&6
18888 lt_cv_prog_compiler_rtti_exceptions=no
18889 ac_outfile=conftest.$ac_objext
18890 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18891 lt_compiler_flag="-fno-rtti -fno-exceptions"
18892 # Insert the option either (1) after the last *FLAGS variable, or
18893 # (2) before a word containing "conftest.", or (3) at the end.
18894 # Note that $ac_compile itself does not contain backslashes and begins
18895 # with a dollar sign (not a hyphen), so the echo should work correctly.
18896 # The option is referenced via a variable to avoid confusing sed.
18897 lt_compile=`echo "$ac_compile" | $SED \
18898 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18900 -e 's:$: $lt_compiler_flag:'`
18901 (eval echo "\"\$as_me:18901: $lt_compile\"" >&5)
18902 (eval "$lt_compile" 2>conftest.err)
18904 cat conftest.err >&5
18905 echo "$as_me:18905: \$? = $ac_status" >&5
18906 if (exit $ac_status) && test -s "$ac_outfile"; then
18907 # The compiler can only warn and ignore the option if not recognized
18908 # So say no if there are warnings
18909 if test ! -s conftest.err; then
18910 lt_cv_prog_compiler_rtti_exceptions=yes
18916 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18917 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18919 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18920 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18927 lt_prog_compiler_wl_GCJ=
18928 lt_prog_compiler_pic_GCJ=
18929 lt_prog_compiler_static_GCJ=
18931 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18932 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18934 if test "$GCC" = yes; then
18935 lt_prog_compiler_wl_GCJ='-Wl,'
18936 lt_prog_compiler_static_GCJ='-static'
18940 # All AIX code is PIC.
18941 if test "$host_cpu" = ia64; then
18942 # AIX 5 now supports IA64 processor
18943 lt_prog_compiler_static_GCJ='-Bstatic'
18948 # FIXME: we need at least 68020 code to build shared libraries, but
18949 # adding the `-m68020' flag to GCC prevents building anything better,
18951 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18954 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18955 # PIC is the default for these OSes.
18958 mingw* | pw32* | os2*)
18959 # This hack is so that the source file can tell whether it is being
18960 # built for inclusion in a dll (and should export symbols for example).
18961 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18964 darwin* | rhapsody*)
18965 # PIC is the default on this platform
18966 # Common symbols not allowed in MH_DYLIB files
18967 lt_prog_compiler_pic_GCJ='-fno-common'
18971 # Just because we use GCC doesn't mean we suddenly get shared libraries
18972 # on systems that don't support them.
18973 lt_prog_compiler_can_build_shared_GCJ=no
18978 if test -d /usr/nec; then
18979 lt_prog_compiler_pic_GCJ=-Kconform_pic
18984 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18985 # not for PA HP-UX.
18986 case "$host_cpu" in
18991 lt_prog_compiler_pic_GCJ='-fPIC'
18997 lt_prog_compiler_pic_GCJ='-fPIC'
19001 # PORTME Check for flag to pass linker flags through the system compiler.
19004 lt_prog_compiler_wl_GCJ='-Wl,'
19005 if test "$host_cpu" = ia64; then
19006 # AIX 5 now supports IA64 processor
19007 lt_prog_compiler_static_GCJ='-Bstatic'
19009 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
19013 # PIC is the default on this platform
19014 # Common symbols not allowed in MH_DYLIB files
19015 case "$cc_basename" in
19017 lt_prog_compiler_pic_GCJ='-qnocommon'
19018 lt_prog_compiler_wl_GCJ='-Wl,'
19023 mingw* | pw32* | os2*)
19024 # This hack is so that the source file can tell whether it is being
19025 # built for inclusion in a dll (and should export symbols for example).
19026 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
19029 hpux9* | hpux10* | hpux11*)
19030 lt_prog_compiler_wl_GCJ='-Wl,'
19031 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19032 # not for PA HP-UX.
19033 case "$host_cpu" in
19038 lt_prog_compiler_pic_GCJ='+Z'
19041 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19042 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
19045 irix5* | irix6* | nonstopux*)
19046 lt_prog_compiler_wl_GCJ='-Wl,'
19047 # PIC (with -KPIC) is the default.
19048 lt_prog_compiler_static_GCJ='-non_shared'
19052 lt_prog_compiler_pic_GCJ='-KPIC'
19053 lt_prog_compiler_static_GCJ='-Bstatic'
19059 lt_prog_compiler_wl_GCJ='-Wl,'
19060 lt_prog_compiler_pic_GCJ='-KPIC'
19061 lt_prog_compiler_static_GCJ='-static'
19064 lt_prog_compiler_wl_GCJ='-Wl,'
19065 # All Alpha code is PIC.
19066 lt_prog_compiler_static_GCJ='-non_shared'
19071 osf3* | osf4* | osf5*)
19072 lt_prog_compiler_wl_GCJ='-Wl,'
19073 # All OSF/1 code is PIC.
19074 lt_prog_compiler_static_GCJ='-non_shared'
19078 lt_prog_compiler_pic_GCJ='-Kpic'
19079 lt_prog_compiler_static_GCJ='-dn'
19083 lt_prog_compiler_wl_GCJ='-Wl,'
19084 lt_prog_compiler_pic_GCJ='-KPIC'
19085 lt_prog_compiler_static_GCJ='-Bstatic'
19089 lt_prog_compiler_wl_GCJ='-Qoption ld '
19090 lt_prog_compiler_pic_GCJ='-PIC'
19091 lt_prog_compiler_static_GCJ='-Bstatic'
19094 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19095 lt_prog_compiler_wl_GCJ='-Wl,'
19096 lt_prog_compiler_pic_GCJ='-KPIC'
19097 lt_prog_compiler_static_GCJ='-Bstatic'
19101 if test -d /usr/nec ;then
19102 lt_prog_compiler_pic_GCJ='-Kconform_pic'
19103 lt_prog_compiler_static_GCJ='-Bstatic'
19108 lt_prog_compiler_pic_GCJ='-pic'
19109 lt_prog_compiler_static_GCJ='-Bstatic'
19113 lt_prog_compiler_can_build_shared_GCJ=no
19118 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
19119 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
19122 # Check to make sure the PIC flag actually works.
19124 if test -n "$lt_prog_compiler_pic_GCJ"; then
19126 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
19127 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
19128 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
19129 echo $ECHO_N "(cached) $ECHO_C" >&6
19131 lt_prog_compiler_pic_works_GCJ=no
19132 ac_outfile=conftest.$ac_objext
19133 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19134 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
19135 # Insert the option either (1) after the last *FLAGS variable, or
19136 # (2) before a word containing "conftest.", or (3) at the end.
19137 # Note that $ac_compile itself does not contain backslashes and begins
19138 # with a dollar sign (not a hyphen), so the echo should work correctly.
19139 # The option is referenced via a variable to avoid confusing sed.
19140 lt_compile=`echo "$ac_compile" | $SED \
19141 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19142 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19143 -e 's:$: $lt_compiler_flag:'`
19144 (eval echo "\"\$as_me:19144: $lt_compile\"" >&5)
19145 (eval "$lt_compile" 2>conftest.err)
19147 cat conftest.err >&5
19148 echo "$as_me:19148: \$? = $ac_status" >&5
19149 if (exit $ac_status) && test -s "$ac_outfile"; then
19150 # The compiler can only warn and ignore the option if not recognized
19151 # So say no if there are warnings
19152 if test ! -s conftest.err; then
19153 lt_prog_compiler_pic_works_GCJ=yes
19159 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
19160 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
19162 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
19163 case $lt_prog_compiler_pic_GCJ in
19165 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
19168 lt_prog_compiler_pic_GCJ=
19169 lt_prog_compiler_can_build_shared_GCJ=no
19174 # For platforms which do not support PIC, -DPIC is meaningless:
19176 lt_prog_compiler_pic_GCJ=
19179 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
19183 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19184 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19185 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
19186 echo $ECHO_N "(cached) $ECHO_C" >&6
19188 lt_cv_prog_compiler_c_o_GCJ=no
19189 $rm -r conftest 2>/dev/null
19193 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19195 lt_compiler_flag="-o out/conftest2.$ac_objext"
19196 # Insert the option either (1) after the last *FLAGS variable, or
19197 # (2) before a word containing "conftest.", or (3) at the end.
19198 # Note that $ac_compile itself does not contain backslashes and begins
19199 # with a dollar sign (not a hyphen), so the echo should work correctly.
19200 lt_compile=`echo "$ac_compile" | $SED \
19201 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19202 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19203 -e 's:$: $lt_compiler_flag:'`
19204 (eval echo "\"\$as_me:19204: $lt_compile\"" >&5)
19205 (eval "$lt_compile" 2>out/conftest.err)
19207 cat out/conftest.err >&5
19208 echo "$as_me:19208: \$? = $ac_status" >&5
19209 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19211 # The compiler can only warn and ignore the option if not recognized
19212 # So say no if there are warnings
19213 if test ! -s out/conftest.err; then
19214 lt_cv_prog_compiler_c_o_GCJ=yes
19219 # SGI C++ compiler will create directory out/ii_files/ for
19220 # template instantiation
19221 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19222 $rm out/* && rmdir out
19228 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19229 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
19232 hard_links="nottested"
19233 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
19234 # do not overwrite the value of need_locks provided by the user
19235 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19236 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19239 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19241 ln conftest.a conftest.b 2>&5 || hard_links=no
19242 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19243 echo "$as_me:$LINENO: result: $hard_links" >&5
19244 echo "${ECHO_T}$hard_links" >&6
19245 if test "$hard_links" = no; then
19246 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19247 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19254 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19255 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19258 allow_undefined_flag_GCJ=
19259 enable_shared_with_static_runtimes_GCJ=no
19261 archive_expsym_cmds_GCJ=
19262 old_archive_From_new_cmds_GCJ=
19263 old_archive_from_expsyms_cmds_GCJ=
19264 export_dynamic_flag_spec_GCJ=
19265 whole_archive_flag_spec_GCJ=
19266 thread_safe_flag_spec_GCJ=
19267 hardcode_libdir_flag_spec_GCJ=
19268 hardcode_libdir_flag_spec_ld_GCJ=
19269 hardcode_libdir_separator_GCJ=
19270 hardcode_direct_GCJ=no
19271 hardcode_minus_L_GCJ=no
19272 hardcode_shlibpath_var_GCJ=unsupported
19273 link_all_deplibs_GCJ=unknown
19274 hardcode_automatic_GCJ=no
19276 module_expsym_cmds_GCJ=
19277 always_export_symbols_GCJ=no
19278 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19279 # include_expsyms should be a list of space-separated symbols to be *always*
19280 # included in the symbol list
19281 include_expsyms_GCJ=
19282 # exclude_expsyms can be an extended regexp of symbols to exclude
19283 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19284 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19285 # as well as any symbol that contains `d'.
19286 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
19287 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19288 # platforms (ab)use it in PIC code, but their linkers get confused if
19289 # the symbol is explicitly referenced. Since portable code cannot
19290 # rely on this symbol name, it's probably fine to never include it in
19291 # preloaded symbol tables.
19292 extract_expsyms_cmds=
19295 cygwin* | mingw* | pw32*)
19296 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19297 # When not using gcc, we currently assume that we are using
19298 # Microsoft Visual C++.
19299 if test "$GCC" != yes; then
19309 if test "$with_gnu_ld" = yes; then
19310 # If archive_cmds runs LD, not CC, wlarc should be empty
19313 # See if GNU ld supports shared libraries.
19315 aix3* | aix4* | aix5*)
19316 # On AIX/PPC, the GNU linker is very broken
19317 if test "$host_cpu" != ia64; then
19321 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19322 *** to be unable to reliably create shared libraries on AIX.
19323 *** Therefore, libtool is disabling shared libraries support. If you
19324 *** really care for shared libraries, you may want to modify your PATH
19325 *** so that a non-GNU linker is found, and then restart.
19332 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)'
19333 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19334 hardcode_minus_L_GCJ=yes
19336 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19337 # that the semantics of dynamic libraries on AmigaOS, at least up
19338 # to version 4, is to share data among multiple programs linked
19339 # with the same dynamic library. Since this doesn't match the
19340 # behavior of shared libraries on other platforms, we can't use
19346 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19347 allow_undefined_flag_GCJ=unsupported
19348 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19349 # support --undefined. This deserves some investigation. FIXME
19350 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19356 cygwin* | mingw* | pw32*)
19357 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19358 # as there is no search path for DLLs.
19359 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19360 allow_undefined_flag_GCJ=unsupported
19361 always_export_symbols_GCJ=no
19362 enable_shared_with_static_runtimes_GCJ=yes
19363 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19365 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19366 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19367 # If the export-symbols file already is a .def file (1st line
19368 # is EXPORTS), use it as is; otherwise, prepend...
19369 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19370 cp $export_symbols $output_objdir/$soname.def;
19372 echo EXPORTS > $output_objdir/$soname.def;
19373 cat $export_symbols >> $output_objdir/$soname.def;
19375 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19382 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19383 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19386 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19387 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19392 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19396 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19397 *** create shared libraries on Solaris systems. Therefore, libtool
19398 *** is disabling shared libraries support. We urge you to upgrade GNU
19399 *** binutils to release 2.9.1 or newer. Another option is to modify
19400 *** your PATH or compiler configuration so that the native linker is
19401 *** used, and then restart.
19404 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19405 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19406 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19413 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19415 hardcode_direct_GCJ=yes
19416 hardcode_shlibpath_var_GCJ=no
19420 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19421 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19422 archive_cmds_GCJ="$tmp_archive_cmds"
19423 supports_anon_versioning=no
19424 case `$LD -v 2>/dev/null` in
19425 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19426 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19427 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19428 *\ 2.11.*) ;; # other 2.11 versions
19429 *) supports_anon_versioning=yes ;;
19431 if test $supports_anon_versioning = yes; then
19432 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
19433 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19434 $echo "local: *; };" >> $output_objdir/$libname.ver~
19435 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19437 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
19445 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19446 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19447 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19454 if test "$ld_shlibs_GCJ" = yes; then
19455 runpath_var=LD_RUN_PATH
19456 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
19457 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
19458 # ancient GNU ld didn't support --whole-archive et. al.
19459 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19460 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19462 whole_archive_flag_spec_GCJ=
19466 # PORTME fill in a description of your system's linker (not GNU ld)
19469 allow_undefined_flag_GCJ=unsupported
19470 always_export_symbols_GCJ=yes
19471 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'
19472 # Note: this linker hardcodes the directories in LIBPATH if there
19473 # are no directories specified by -L.
19474 hardcode_minus_L_GCJ=yes
19475 if test "$GCC" = yes && test -z "$link_static_flag"; then
19476 # Neither direct hardcoding nor static linking is supported with a
19478 hardcode_direct_GCJ=unsupported
19483 if test "$host_cpu" = ia64; then
19484 # On IA64, the linker does run time linking by default, so we don't
19485 # have to do anything special.
19486 aix_use_runtimelinking=no
19487 exp_sym_flag='-Bexport'
19490 # If we're using GNU nm, then we don't want the "-C" option.
19491 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19492 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19493 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'
19495 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'
19497 aix_use_runtimelinking=no
19499 # Test if we are trying to use run time linking or normal
19500 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19501 # need to do runtime linking.
19502 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19503 for ld_flag in $LDFLAGS; do
19504 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19505 aix_use_runtimelinking=yes
19511 exp_sym_flag='-bexport'
19512 no_entry_flag='-bnoentry'
19515 # When large executables or shared objects are built, AIX ld can
19516 # have problems creating the table of contents. If linking a library
19517 # or program results in "error TOC overflow" add -mminimal-toc to
19518 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19519 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19521 archive_cmds_GCJ=''
19522 hardcode_direct_GCJ=yes
19523 hardcode_libdir_separator_GCJ=':'
19524 link_all_deplibs_GCJ=yes
19526 if test "$GCC" = yes; then
19527 case $host_os in aix4.012|aix4.012.*)
19528 # We only want to do this on AIX 4.2 and lower, the check
19529 # below for broken collect2 doesn't work under 4.3+
19530 collect2name=`${CC} -print-prog-name=collect2`
19531 if test -f "$collect2name" && \
19532 strings "$collect2name" | grep resolve_lib_name >/dev/null
19534 # We have reworked collect2
19535 hardcode_direct_GCJ=yes
19537 # We have old collect2
19538 hardcode_direct_GCJ=unsupported
19539 # It fails to find uninstalled libraries when the uninstalled
19540 # path is not listed in the libpath. Setting hardcode_minus_L
19541 # to unsupported forces relinking
19542 hardcode_minus_L_GCJ=yes
19543 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19544 hardcode_libdir_separator_GCJ=
19547 shared_flag='-shared'
19550 if test "$host_cpu" = ia64; then
19551 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19552 # chokes on -Wl,-G. The following line is correct:
19555 if test "$aix_use_runtimelinking" = yes; then
19556 shared_flag='${wl}-G'
19558 shared_flag='${wl}-bM:SRE'
19563 # It seems that -bexpall does not export symbols beginning with
19564 # underscore (_), so it is better to generate a list of symbols to export.
19565 always_export_symbols_GCJ=yes
19566 if test "$aix_use_runtimelinking" = yes; then
19567 # Warning - without using the other runtime loading flags (-brtl),
19568 # -berok will link without error, but may produce a broken library.
19569 allow_undefined_flag_GCJ='-berok'
19570 # Determine the default libpath from the value encoded in an empty executable.
19571 cat >conftest.$ac_ext <<_ACEOF
19574 cat confdefs.h >>conftest.$ac_ext
19575 cat >>conftest.$ac_ext <<_ACEOF
19576 /* end confdefs.h. */
19586 rm -f conftest.$ac_objext conftest$ac_exeext
19587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19588 (eval $ac_link) 2>conftest.er1
19590 grep -v '^ *+' conftest.er1 >conftest.err
19592 cat conftest.err >&5
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); } &&
19595 { ac_try='test -z "$ac_c_werror_flag"
19596 || test ! -s conftest.err'
19597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19598 (eval $ac_try) 2>&5
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); }; } &&
19602 { ac_try='test -s conftest$ac_exeext'
19603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604 (eval $ac_try) 2>&5
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; }; then
19609 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19611 # Check for a 64-bit object if we didn't find anything.
19612 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; }
19615 echo "$as_me: failed program was:" >&5
19616 sed 's/^/| /' conftest.$ac_ext >&5
19619 rm -f conftest.err conftest.$ac_objext \
19620 conftest$ac_exeext conftest.$ac_ext
19621 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19623 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19624 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"
19626 if test "$host_cpu" = ia64; then
19627 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19628 allow_undefined_flag_GCJ="-z nodefs"
19629 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"
19631 # Determine the default libpath from the value encoded in an empty executable.
19632 cat >conftest.$ac_ext <<_ACEOF
19635 cat confdefs.h >>conftest.$ac_ext
19636 cat >>conftest.$ac_ext <<_ACEOF
19637 /* end confdefs.h. */
19647 rm -f conftest.$ac_objext conftest$ac_exeext
19648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19649 (eval $ac_link) 2>conftest.er1
19651 grep -v '^ *+' conftest.er1 >conftest.err
19653 cat conftest.err >&5
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); } &&
19656 { ac_try='test -z "$ac_c_werror_flag"
19657 || test ! -s conftest.err'
19658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659 (eval $ac_try) 2>&5
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); }; } &&
19663 { ac_try='test -s conftest$ac_exeext'
19664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19665 (eval $ac_try) 2>&5
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); }; }; then
19670 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19672 # Check for a 64-bit object if we didn't find anything.
19673 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; }
19676 echo "$as_me: failed program was:" >&5
19677 sed 's/^/| /' conftest.$ac_ext >&5
19680 rm -f conftest.err conftest.$ac_objext \
19681 conftest$ac_exeext conftest.$ac_ext
19682 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19684 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19685 # Warning - without using the other run time loading flags,
19686 # -berok will link without error, but may produce a broken library.
19687 no_undefined_flag_GCJ=' ${wl}-bernotok'
19688 allow_undefined_flag_GCJ=' ${wl}-berok'
19689 # -bexpall does not export symbols beginning with underscore (_)
19690 always_export_symbols_GCJ=yes
19691 # Exported symbols can be pulled into shared objects from archives
19692 whole_archive_flag_spec_GCJ=' '
19693 archive_cmds_need_lc_GCJ=yes
19694 # This is similar to how AIX traditionally builds it's shared libraries.
19695 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'
19701 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)'
19702 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19703 hardcode_minus_L_GCJ=yes
19704 # see comment about different semantics on the GNU ld section
19709 export_dynamic_flag_spec_GCJ=-rdynamic
19712 cygwin* | mingw* | pw32*)
19713 # When not using gcc, we currently assume that we are using
19714 # Microsoft Visual C++.
19715 # hardcode_libdir_flag_spec is actually meaningless, as there is
19716 # no search path for DLLs.
19717 hardcode_libdir_flag_spec_GCJ=' '
19718 allow_undefined_flag_GCJ=unsupported
19719 # Tell ltmain to make .lib files, not .a files.
19721 # Tell ltmain to make .dll files, not .so files.
19723 # FIXME: Setting linknames here is a bad hack.
19724 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19725 # The linker will automatically build a .lib file if we build a DLL.
19726 old_archive_From_new_cmds_GCJ='true'
19727 # FIXME: Should let the user specify the lib program.
19728 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19729 fix_srcfile_path='`cygpath -w "$srcfile"`'
19730 enable_shared_with_static_runtimes_GCJ=yes
19733 darwin* | rhapsody*)
19735 rhapsody* | darwin1.[012])
19736 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19739 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19740 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19742 case ${MACOSX_DEPLOYMENT_TARGET} in
19744 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19747 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19753 archive_cmds_need_lc_GCJ=no
19754 hardcode_direct_GCJ=no
19755 hardcode_automatic_GCJ=yes
19756 hardcode_shlibpath_var_GCJ=unsupported
19757 whole_archive_flag_spec_GCJ=''
19758 link_all_deplibs_GCJ=yes
19759 if test "$GCC" = yes ; then
19760 output_verbose_link_cmd='echo'
19761 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19762 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19763 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19764 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19765 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}'
19767 case "$cc_basename" in
19769 output_verbose_link_cmd='echo'
19770 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19771 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19772 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19773 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19774 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}'
19784 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19785 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19786 hardcode_shlibpath_var_GCJ=no
19793 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19794 # support. Future versions do this automatically, but an explicit c++rt0.o
19795 # does not break anything, and helps significantly (at the cost of a little
19798 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19799 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19800 hardcode_direct_GCJ=yes
19801 hardcode_shlibpath_var_GCJ=no
19804 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19806 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19807 hardcode_direct_GCJ=yes
19808 hardcode_minus_L_GCJ=yes
19809 hardcode_shlibpath_var_GCJ=no
19812 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19813 freebsd* | kfreebsd*-gnu)
19814 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19815 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19816 hardcode_direct_GCJ=yes
19817 hardcode_shlibpath_var_GCJ=no
19821 if test "$GCC" = yes; then
19822 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'
19824 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'
19826 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19827 hardcode_libdir_separator_GCJ=:
19828 hardcode_direct_GCJ=yes
19830 # hardcode_minus_L: Not really in the search PATH,
19831 # but as the default location of the library.
19832 hardcode_minus_L_GCJ=yes
19833 export_dynamic_flag_spec_GCJ='${wl}-E'
19837 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19838 case "$host_cpu" in
19840 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19843 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19847 case "$host_cpu" in
19849 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19852 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19856 if test "$with_gnu_ld" = no; then
19857 case "$host_cpu" in
19859 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19860 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19861 hardcode_libdir_separator_GCJ=:
19862 hardcode_direct_GCJ=no
19863 hardcode_shlibpath_var_GCJ=no
19866 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19867 hardcode_direct_GCJ=no
19868 hardcode_shlibpath_var_GCJ=no
19870 # hardcode_minus_L: Not really in the search PATH,
19871 # but as the default location of the library.
19872 hardcode_minus_L_GCJ=yes
19875 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19876 hardcode_libdir_separator_GCJ=:
19877 hardcode_direct_GCJ=yes
19878 export_dynamic_flag_spec_GCJ='${wl}-E'
19880 # hardcode_minus_L: Not really in the search PATH,
19881 # but as the default location of the library.
19882 hardcode_minus_L_GCJ=yes
19888 irix5* | irix6* | nonstopux*)
19889 if test "$GCC" = yes; then
19890 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'
19892 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'
19893 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19895 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19896 hardcode_libdir_separator_GCJ=:
19897 link_all_deplibs_GCJ=yes
19901 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19902 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19904 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19906 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19907 hardcode_direct_GCJ=yes
19908 hardcode_shlibpath_var_GCJ=no
19912 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19913 hardcode_direct_GCJ=yes
19914 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19915 hardcode_libdir_separator_GCJ=:
19916 hardcode_shlibpath_var_GCJ=no
19920 hardcode_direct_GCJ=yes
19921 hardcode_shlibpath_var_GCJ=no
19922 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19923 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19924 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19925 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19926 export_dynamic_flag_spec_GCJ='${wl}-E'
19929 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19930 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19931 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19934 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19935 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19942 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19943 hardcode_minus_L_GCJ=yes
19944 allow_undefined_flag_GCJ=unsupported
19945 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'
19946 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19950 if test "$GCC" = yes; then
19951 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19952 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'
19954 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19955 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'
19957 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19958 hardcode_libdir_separator_GCJ=:
19961 osf4* | osf5*) # as osf3* with the addition of -msym flag
19962 if test "$GCC" = yes; then
19963 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19964 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'
19965 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19967 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19968 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'
19969 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~
19970 $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'
19972 # Both c and cxx compiler support -rpath directly
19973 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19975 hardcode_libdir_separator_GCJ=:
19979 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19980 hardcode_shlibpath_var_GCJ=no
19981 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19982 runpath_var=LD_RUN_PATH
19983 hardcode_runpath_var=yes
19987 no_undefined_flag_GCJ=' -z text'
19988 if test "$GCC" = yes; then
19989 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19990 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19991 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19993 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19994 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19995 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19997 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19998 hardcode_shlibpath_var_GCJ=no
20000 solaris2.[0-5] | solaris2.[0-5].*) ;;
20001 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
20002 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
20004 link_all_deplibs_GCJ=yes
20008 if test "x$host_vendor" = xsequent; then
20009 # Use $CC to link under sequent, because it throws in some extra .o
20010 # files that make .init and .fini sections work.
20011 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20013 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20015 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20016 hardcode_direct_GCJ=yes
20017 hardcode_minus_L_GCJ=yes
20018 hardcode_shlibpath_var_GCJ=no
20022 case $host_vendor in
20024 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20025 hardcode_direct_GCJ=yes # is this really true???
20028 ## LD is ld it makes a PLAMLIB
20029 ## CC just makes a GrossModule.
20030 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20031 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
20032 hardcode_direct_GCJ=no
20035 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20036 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
20039 runpath_var='LD_RUN_PATH'
20040 hardcode_shlibpath_var_GCJ=no
20044 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20045 hardcode_shlibpath_var_GCJ=no
20046 export_dynamic_flag_spec_GCJ='-Bexport'
20050 if test -d /usr/nec; then
20051 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20052 hardcode_shlibpath_var_GCJ=no
20053 runpath_var=LD_RUN_PATH
20054 hardcode_runpath_var=yes
20060 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20061 hardcode_direct_GCJ=yes
20062 hardcode_minus_L_GCJ=no
20063 hardcode_shlibpath_var_GCJ=no
20064 hardcode_runpath_var=yes
20065 runpath_var=LD_RUN_PATH
20068 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
20069 no_undefined_flag_GCJ='${wl}-z ${wl}text'
20070 if test "$GCC" = yes; then
20071 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20073 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20075 runpath_var='LD_RUN_PATH'
20076 hardcode_shlibpath_var_GCJ=no
20080 no_undefined_flag_GCJ=' -z text'
20081 # $CC -shared without GNU ld will not create a library from C++
20082 # object files and a static libstdc++, better avoid it by now
20083 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20084 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20085 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20086 hardcode_libdir_flag_spec_GCJ=
20087 hardcode_shlibpath_var_GCJ=no
20088 runpath_var='LD_RUN_PATH'
20092 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20093 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20094 hardcode_shlibpath_var_GCJ=no
20103 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
20104 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
20105 test "$ld_shlibs_GCJ" = no && can_build_shared=no
20107 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20108 if test "$GCC" = yes; then
20109 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20113 # Do we need to explicitly link libc?
20115 case "x$archive_cmds_need_lc_GCJ" in
20117 # Assume -lc should be added
20118 archive_cmds_need_lc_GCJ=yes
20120 if test "$enable_shared" = yes && test "$GCC" = yes; then
20121 case $archive_cmds_GCJ in
20123 # FIXME: we may have to deal with multi-command sequences.
20126 # Test whether the compiler implicitly links with -lc since on some
20127 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20128 # to ld, don't add -lc before -lgcc.
20129 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20130 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20132 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20135 (eval $ac_compile) 2>&5
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); } 2>conftest.err; then
20141 libobjs=conftest.$ac_objext
20143 wl=$lt_prog_compiler_wl_GCJ
20149 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20150 allow_undefined_flag_GCJ=
20151 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20152 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); }
20157 archive_cmds_need_lc_GCJ=no
20159 archive_cmds_need_lc_GCJ=yes
20161 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20163 cat conftest.err 1>&5
20166 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20167 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
20174 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20175 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20176 library_names_spec=
20177 libname_spec='lib$name'
20181 postuninstall_cmds=
20185 shlibpath_overrides_runpath=unknown
20187 dynamic_linker="$host_os ld.so"
20188 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20189 if test "$GCC" = yes; then
20190 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20191 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20192 # if the path contains ";" then we assume it to be the separator
20193 # otherwise default to the standard path separator (i.e. ":") - it is
20194 # assumed that no part of a normal pathname contains ";" but that should
20195 # okay in the real world where ";" in dirpaths is itself problematic.
20196 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20198 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20201 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20203 need_lib_prefix=unknown
20204 hardcode_into_libs=no
20206 # when you set need_version to no, make sure it does not cause -set_version
20207 # flags to be left without arguments
20208 need_version=unknown
20213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20214 shlibpath_var=LIBPATH
20216 # AIX 3 has no versioning support, so we append a major version to the name.
20217 soname_spec='${libname}${release}${shared_ext}$major'
20224 hardcode_into_libs=yes
20225 if test "$host_cpu" = ia64; then
20226 # AIX 5 supports IA64
20227 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20228 shlibpath_var=LD_LIBRARY_PATH
20230 # With GCC up to 2.95.x, collect2 would create an import file
20231 # for dependence libraries. The import file would start with
20232 # the line `#! .'. This would cause the generated library to
20233 # depend on `.', always an invalid library. This was fixed in
20234 # development snapshots of GCC prior to 3.0.
20236 aix4 | aix4.[01] | aix4.[01].*)
20237 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20239 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20242 can_build_shared=no
20246 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20247 # soname into executable. Probably we can add versioning support to
20248 # collect2, so additional links can be useful in future.
20249 if test "$aix_use_runtimelinking" = yes; then
20250 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20251 # instead of lib<name>.a to let people know that these are not
20252 # typical AIX shared libraries.
20253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20255 # We preserve .a as extension for shared libraries through AIX4.2
20256 # and later when we are not doing run time linking.
20257 library_names_spec='${libname}${release}.a $libname.a'
20258 soname_spec='${libname}${release}${shared_ext}$major'
20260 shlibpath_var=LIBPATH
20265 library_names_spec='$libname.ixlibrary $libname.a'
20266 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20267 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'
20271 library_names_spec='${libname}${shared_ext}'
20272 dynamic_linker="$host_os ld.so"
20273 shlibpath_var=LIBRARY_PATH
20279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20280 soname_spec='${libname}${release}${shared_ext}$major'
20281 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20282 shlibpath_var=LD_LIBRARY_PATH
20283 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20284 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20285 # the default ld.so.conf also contains /usr/contrib/lib and
20286 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20287 # libtool to hard-code these into programs
20290 cygwin* | mingw* | pw32*)
20291 version_type=windows
20296 case $GCC,$host_os in
20297 yes,cygwin* | yes,mingw* | yes,pw32*)
20298 library_names_spec='$libname.dll.a'
20299 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20300 postinstall_cmds='base_file=`basename \${file}`~
20301 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20302 dldir=$destdir/`dirname \$dlpath`~
20303 test -d \$dldir || mkdir -p \$dldir~
20304 $install_prog $dir/$dlname \$dldir/$dlname'
20305 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20306 dlpath=$dir/\$dldll~
20308 shlibpath_overrides_runpath=yes
20312 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20313 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20314 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20317 # MinGW DLLs use traditional 'lib' prefix
20318 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20319 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20320 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20321 # It is most probably a Windows format PATH printed by
20322 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20323 # path with ; separators, and with drive letters. We can handle the
20324 # drive letters (cygwin fileutils understands them), so leave them,
20325 # especially as we might pass files found there to a mingw objdump,
20326 # which wouldn't understand a cygwinified path. Ahh.
20327 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20329 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20333 # pw32 DLLs use 'pw' prefix rather than 'lib'
20334 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20340 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20343 dynamic_linker='Win32 ld.exe'
20344 # FIXME: first we should search . and the directory the executable is in
20348 darwin* | rhapsody*)
20349 dynamic_linker="$host_os dyld"
20350 version_type=darwin
20353 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20354 soname_spec='${libname}${release}${major}$shared_ext'
20355 shlibpath_overrides_runpath=yes
20356 shlibpath_var=DYLD_LIBRARY_PATH
20357 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20358 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20359 if test "$GCC" = yes; then
20360 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"`
20362 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20364 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20372 soname_spec='${libname}${release}${shared_ext}$major'
20373 shlibpath_var=LD_LIBRARY_PATH
20384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20385 soname_spec='${libname}${release}${shared_ext}$major'
20386 shlibpath_var=LD_LIBRARY_PATH
20387 shlibpath_overrides_runpath=no
20388 hardcode_into_libs=yes
20389 dynamic_linker='GNU ld.so'
20393 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20394 version_type=freebsd-$objformat
20395 case $version_type in
20397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20402 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20406 shlibpath_var=LD_LIBRARY_PATH
20409 shlibpath_overrides_runpath=yes
20411 freebsd3.01* | freebsdelf3.01*)
20412 shlibpath_overrides_runpath=yes
20413 hardcode_into_libs=yes
20416 shlibpath_overrides_runpath=no
20417 hardcode_into_libs=yes
20426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20427 soname_spec='${libname}${release}${shared_ext}$major'
20428 shlibpath_var=LD_LIBRARY_PATH
20429 hardcode_into_libs=yes
20432 hpux9* | hpux10* | hpux11*)
20433 # Give a soname corresponding to the major version so that dld.sl refuses to
20434 # link against other versions.
20438 case "$host_cpu" in
20441 hardcode_into_libs=yes
20442 dynamic_linker="$host_os dld.so"
20443 shlibpath_var=LD_LIBRARY_PATH
20444 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20446 soname_spec='${libname}${release}${shared_ext}$major'
20447 if test "X$HPUX_IA64_MODE" = X32; then
20448 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20450 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20452 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20456 hardcode_into_libs=yes
20457 dynamic_linker="$host_os dld.sl"
20458 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20459 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20461 soname_spec='${libname}${release}${shared_ext}$major'
20462 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20463 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20467 dynamic_linker="$host_os dld.sl"
20468 shlibpath_var=SHLIB_PATH
20469 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20471 soname_spec='${libname}${release}${shared_ext}$major'
20474 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20475 postinstall_cmds='chmod 555 $lib'
20478 irix5* | irix6* | nonstopux*)
20480 nonstopux*) version_type=nonstopux ;;
20482 if test "$lt_cv_prog_gnu_ld" = yes; then
20490 soname_spec='${libname}${release}${shared_ext}$major'
20491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20493 irix5* | nonstopux*)
20494 libsuff= shlibsuff=
20497 case $LD in # libtool.m4 will add one of these switches to LD
20498 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20499 libsuff= shlibsuff= libmagic=32-bit;;
20500 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20501 libsuff=32 shlibsuff=N32 libmagic=N32;;
20502 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20503 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20504 *) libsuff= shlibsuff= libmagic=never-match;;
20508 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20509 shlibpath_overrides_runpath=no
20510 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20511 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20512 hardcode_into_libs=yes
20515 # No shared lib support for Linux oldld, aout, or coff.
20516 linux*oldld* | linux*aout* | linux*coff*)
20520 # This must be Linux ELF.
20525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20526 soname_spec='${libname}${release}${shared_ext}$major'
20527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20528 shlibpath_var=LD_LIBRARY_PATH
20529 shlibpath_overrides_runpath=no
20530 # This implies no fast_install, which is unacceptable.
20531 # Some rework will be needed to allow for fast_install
20532 # before this can be enabled.
20533 hardcode_into_libs=yes
20535 # Append ld.so.conf contents to the search path
20536 if test -f /etc/ld.so.conf; then
20537 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20538 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20541 # We used to test for /lib/ld.so.1 and disable shared libraries on
20542 # powerpc, because MkLinux only supported shared libraries with the
20543 # GNU dynamic linker. Since this was broken with cross compilers,
20544 # most powerpc-linux boxes support dynamic linking these days and
20545 # people can always --disable-shared, the test was removed, and we
20546 # assume the GNU/Linux dynamic linker is in use.
20547 dynamic_linker='GNU/Linux ld.so'
20554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20555 soname_spec='${libname}${release}${shared_ext}$major'
20556 shlibpath_var=LD_LIBRARY_PATH
20557 shlibpath_overrides_runpath=no
20558 hardcode_into_libs=yes
20559 dynamic_linker='GNU ld.so'
20566 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20568 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20569 dynamic_linker='NetBSD (a.out) ld.so'
20571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20572 soname_spec='${libname}${release}${shared_ext}$major'
20573 dynamic_linker='NetBSD ld.elf_so'
20575 shlibpath_var=LD_LIBRARY_PATH
20576 shlibpath_overrides_runpath=yes
20577 hardcode_into_libs=yes
20582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20583 shlibpath_var=LD_LIBRARY_PATH
20584 shlibpath_overrides_runpath=yes
20591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20592 soname_spec='${libname}${release}${shared_ext}$major'
20593 shlibpath_var=LD_LIBRARY_PATH
20594 shlibpath_overrides_runpath=yes
20601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20602 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20603 shlibpath_var=LD_LIBRARY_PATH
20604 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20606 openbsd2.[89] | openbsd2.[89].*)
20607 shlibpath_overrides_runpath=no
20610 shlibpath_overrides_runpath=yes
20614 shlibpath_overrides_runpath=yes
20619 libname_spec='$name'
20622 library_names_spec='$libname${shared_ext} $libname.a'
20623 dynamic_linker='OS/2 ld.exe'
20624 shlibpath_var=LIBPATH
20627 osf3* | osf4* | osf5*)
20631 soname_spec='${libname}${release}${shared_ext}$major'
20632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20633 shlibpath_var=LD_LIBRARY_PATH
20634 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20635 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20640 soname_spec='${libname}${release}${shared_ext}$major'
20641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20642 shlibpath_var=LD_LIBRARY_PATH
20649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20650 soname_spec='${libname}${release}${shared_ext}$major'
20651 shlibpath_var=LD_LIBRARY_PATH
20652 shlibpath_overrides_runpath=yes
20653 hardcode_into_libs=yes
20654 # ldd complains unless libraries are executable
20655 postinstall_cmds='chmod +x $lib'
20660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20661 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20662 shlibpath_var=LD_LIBRARY_PATH
20663 shlibpath_overrides_runpath=yes
20664 if test "$with_gnu_ld" = yes; then
20670 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20673 soname_spec='${libname}${release}${shared_ext}$major'
20674 shlibpath_var=LD_LIBRARY_PATH
20675 case $host_vendor in
20677 shlibpath_overrides_runpath=no
20679 export_dynamic_flag_spec='${wl}-Blargedynsym'
20680 runpath_var=LD_RUN_PATH
20688 shlibpath_overrides_runpath=no
20689 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20695 if test -d /usr/nec ;then
20697 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20698 soname_spec='$libname${shared_ext}.$major'
20699 shlibpath_var=LD_LIBRARY_PATH
20705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20706 soname_spec='${libname}${release}${shared_ext}$major'
20707 shlibpath_var=LD_LIBRARY_PATH
20714 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20715 echo "${ECHO_T}$dynamic_linker" >&6
20716 test "$dynamic_linker" = no && can_build_shared=no
20718 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20719 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20720 hardcode_action_GCJ=
20721 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20722 test -n "$runpath_var_GCJ" || \
20723 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20725 # We can hardcode non-existant directories.
20726 if test "$hardcode_direct_GCJ" != no &&
20727 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20728 # have to relink, otherwise we might link with an installed library
20729 # when we should be linking with a yet-to-be-installed one
20730 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20731 test "$hardcode_minus_L_GCJ" != no; then
20732 # Linking always hardcodes the temporary library directory.
20733 hardcode_action_GCJ=relink
20735 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20736 hardcode_action_GCJ=immediate
20739 # We cannot hardcode anything, or else we can only hardcode existing
20741 hardcode_action_GCJ=unsupported
20743 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20744 echo "${ECHO_T}$hardcode_action_GCJ" >&6
20746 if test "$hardcode_action_GCJ" = relink; then
20747 # Fast installation is not supported
20748 enable_fast_install=no
20749 elif test "$shlibpath_overrides_runpath" = yes ||
20750 test "$enable_shared" = no; then
20751 # Fast installation is not necessary
20752 enable_fast_install=needless
20757 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20758 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20759 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20760 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20761 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20762 echo "$as_me:$LINENO: result: yes" >&5
20763 echo "${ECHO_T}yes" >&6
20765 # FIXME - insert some real tests, host_os isn't really good enough
20768 if test -n "$STRIP" ; then
20769 striplib="$STRIP -x"
20770 echo "$as_me:$LINENO: result: yes" >&5
20771 echo "${ECHO_T}yes" >&6
20773 echo "$as_me:$LINENO: result: no" >&5
20774 echo "${ECHO_T}no" >&6
20778 echo "$as_me:$LINENO: result: no" >&5
20779 echo "${ECHO_T}no" >&6
20784 if test "x$enable_dlopen" != xyes; then
20785 enable_dlopen=unknown
20786 enable_dlopen_self=unknown
20787 enable_dlopen_self_static=unknown
20794 lt_cv_dlopen="load_add_on"
20796 lt_cv_dlopen_self=yes
20800 lt_cv_dlopen="LoadLibrary"
20805 lt_cv_dlopen="dlopen"
20810 # if libdl is installed we need to link against it
20811 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20812 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20813 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20814 echo $ECHO_N "(cached) $ECHO_C" >&6
20816 ac_check_lib_save_LIBS=$LIBS
20818 cat >conftest.$ac_ext <<_ACEOF
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h. */
20825 /* Override any gcc2 internal prototype to avoid an error. */
20829 /* We use char because int might match the return type of a gcc2
20830 builtin and then its argument prototype would still apply. */
20840 rm -f conftest.$ac_objext conftest$ac_exeext
20841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20842 (eval $ac_link) 2>conftest.er1
20844 grep -v '^ *+' conftest.er1 >conftest.err
20846 cat conftest.err >&5
20847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848 (exit $ac_status); } &&
20849 { ac_try='test -z "$ac_c_werror_flag"
20850 || test ! -s conftest.err'
20851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20852 (eval $ac_try) 2>&5
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); }; } &&
20856 { ac_try='test -s conftest$ac_exeext'
20857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20858 (eval $ac_try) 2>&5
20860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); }; }; then
20862 ac_cv_lib_dl_dlopen=yes
20864 echo "$as_me: failed program was:" >&5
20865 sed 's/^/| /' conftest.$ac_ext >&5
20867 ac_cv_lib_dl_dlopen=no
20869 rm -f conftest.err conftest.$ac_objext \
20870 conftest$ac_exeext conftest.$ac_ext
20871 LIBS=$ac_check_lib_save_LIBS
20873 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20874 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20875 if test $ac_cv_lib_dl_dlopen = yes; then
20876 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20879 lt_cv_dlopen="dyld"
20881 lt_cv_dlopen_self=yes
20888 echo "$as_me:$LINENO: checking for shl_load" >&5
20889 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20890 if test "${ac_cv_func_shl_load+set}" = set; then
20891 echo $ECHO_N "(cached) $ECHO_C" >&6
20893 cat >conftest.$ac_ext <<_ACEOF
20896 cat confdefs.h >>conftest.$ac_ext
20897 cat >>conftest.$ac_ext <<_ACEOF
20898 /* end confdefs.h. */
20899 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20901 #define shl_load innocuous_shl_load
20903 /* System header to define __stub macros and hopefully few prototypes,
20904 which can conflict with char shl_load (); below.
20905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20906 <limits.h> exists even on freestanding compilers. */
20909 # include <limits.h>
20911 # include <assert.h>
20916 /* Override any gcc2 internal prototype to avoid an error. */
20921 /* We use char because int might match the return type of a gcc2
20922 builtin and then its argument prototype would still apply. */
20924 /* The GNU C library defines this for functions which it implements
20925 to always fail with ENOSYS. Some functions are actually named
20926 something starting with __ and the normal name is an alias. */
20927 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20930 char (*f) () = shl_load;
20939 return f != shl_load;
20944 rm -f conftest.$ac_objext conftest$ac_exeext
20945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20946 (eval $ac_link) 2>conftest.er1
20948 grep -v '^ *+' conftest.er1 >conftest.err
20950 cat conftest.err >&5
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); } &&
20953 { ac_try='test -z "$ac_c_werror_flag"
20954 || test ! -s conftest.err'
20955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20956 (eval $ac_try) 2>&5
20958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); }; } &&
20960 { ac_try='test -s conftest$ac_exeext'
20961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20962 (eval $ac_try) 2>&5
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); }; }; then
20966 ac_cv_func_shl_load=yes
20968 echo "$as_me: failed program was:" >&5
20969 sed 's/^/| /' conftest.$ac_ext >&5
20971 ac_cv_func_shl_load=no
20973 rm -f conftest.err conftest.$ac_objext \
20974 conftest$ac_exeext conftest.$ac_ext
20976 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20977 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20978 if test $ac_cv_func_shl_load = yes; then
20979 lt_cv_dlopen="shl_load"
20981 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20982 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20983 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20984 echo $ECHO_N "(cached) $ECHO_C" >&6
20986 ac_check_lib_save_LIBS=$LIBS
20988 cat >conftest.$ac_ext <<_ACEOF
20991 cat confdefs.h >>conftest.$ac_ext
20992 cat >>conftest.$ac_ext <<_ACEOF
20993 /* end confdefs.h. */
20995 /* Override any gcc2 internal prototype to avoid an error. */
20999 /* We use char because int might match the return type of a gcc2
21000 builtin and then its argument prototype would still apply. */
21010 rm -f conftest.$ac_objext conftest$ac_exeext
21011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21012 (eval $ac_link) 2>conftest.er1
21014 grep -v '^ *+' conftest.er1 >conftest.err
21016 cat conftest.err >&5
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); } &&
21019 { ac_try='test -z "$ac_c_werror_flag"
21020 || test ! -s conftest.err'
21021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21022 (eval $ac_try) 2>&5
21024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025 (exit $ac_status); }; } &&
21026 { ac_try='test -s conftest$ac_exeext'
21027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21028 (eval $ac_try) 2>&5
21030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031 (exit $ac_status); }; }; then
21032 ac_cv_lib_dld_shl_load=yes
21034 echo "$as_me: failed program was:" >&5
21035 sed 's/^/| /' conftest.$ac_ext >&5
21037 ac_cv_lib_dld_shl_load=no
21039 rm -f conftest.err conftest.$ac_objext \
21040 conftest$ac_exeext conftest.$ac_ext
21041 LIBS=$ac_check_lib_save_LIBS
21043 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
21044 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
21045 if test $ac_cv_lib_dld_shl_load = yes; then
21046 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
21048 echo "$as_me:$LINENO: checking for dlopen" >&5
21049 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
21050 if test "${ac_cv_func_dlopen+set}" = set; then
21051 echo $ECHO_N "(cached) $ECHO_C" >&6
21053 cat >conftest.$ac_ext <<_ACEOF
21056 cat confdefs.h >>conftest.$ac_ext
21057 cat >>conftest.$ac_ext <<_ACEOF
21058 /* end confdefs.h. */
21059 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
21060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21061 #define dlopen innocuous_dlopen
21063 /* System header to define __stub macros and hopefully few prototypes,
21064 which can conflict with char dlopen (); below.
21065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21066 <limits.h> exists even on freestanding compilers. */
21069 # include <limits.h>
21071 # include <assert.h>
21076 /* Override any gcc2 internal prototype to avoid an error. */
21081 /* We use char because int might match the return type of a gcc2
21082 builtin and then its argument prototype would still apply. */
21084 /* The GNU C library defines this for functions which it implements
21085 to always fail with ENOSYS. Some functions are actually named
21086 something starting with __ and the normal name is an alias. */
21087 #if defined (__stub_dlopen) || defined (__stub___dlopen)
21090 char (*f) () = dlopen;
21099 return f != dlopen;
21104 rm -f conftest.$ac_objext conftest$ac_exeext
21105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21106 (eval $ac_link) 2>conftest.er1
21108 grep -v '^ *+' conftest.er1 >conftest.err
21110 cat conftest.err >&5
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); } &&
21113 { ac_try='test -z "$ac_c_werror_flag"
21114 || test ! -s conftest.err'
21115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21116 (eval $ac_try) 2>&5
21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 (exit $ac_status); }; } &&
21120 { ac_try='test -s conftest$ac_exeext'
21121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21122 (eval $ac_try) 2>&5
21124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); }; }; then
21126 ac_cv_func_dlopen=yes
21128 echo "$as_me: failed program was:" >&5
21129 sed 's/^/| /' conftest.$ac_ext >&5
21131 ac_cv_func_dlopen=no
21133 rm -f conftest.err conftest.$ac_objext \
21134 conftest$ac_exeext conftest.$ac_ext
21136 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
21137 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
21138 if test $ac_cv_func_dlopen = yes; then
21139 lt_cv_dlopen="dlopen"
21141 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21142 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21143 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21144 echo $ECHO_N "(cached) $ECHO_C" >&6
21146 ac_check_lib_save_LIBS=$LIBS
21148 cat >conftest.$ac_ext <<_ACEOF
21151 cat confdefs.h >>conftest.$ac_ext
21152 cat >>conftest.$ac_ext <<_ACEOF
21153 /* end confdefs.h. */
21155 /* Override any gcc2 internal prototype to avoid an error. */
21159 /* We use char because int might match the return type of a gcc2
21160 builtin and then its argument prototype would still apply. */
21170 rm -f conftest.$ac_objext conftest$ac_exeext
21171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21172 (eval $ac_link) 2>conftest.er1
21174 grep -v '^ *+' conftest.er1 >conftest.err
21176 cat conftest.err >&5
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); } &&
21179 { ac_try='test -z "$ac_c_werror_flag"
21180 || test ! -s conftest.err'
21181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21182 (eval $ac_try) 2>&5
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); }; } &&
21186 { ac_try='test -s conftest$ac_exeext'
21187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21188 (eval $ac_try) 2>&5
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); }; }; then
21192 ac_cv_lib_dl_dlopen=yes
21194 echo "$as_me: failed program was:" >&5
21195 sed 's/^/| /' conftest.$ac_ext >&5
21197 ac_cv_lib_dl_dlopen=no
21199 rm -f conftest.err conftest.$ac_objext \
21200 conftest$ac_exeext conftest.$ac_ext
21201 LIBS=$ac_check_lib_save_LIBS
21203 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21204 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21205 if test $ac_cv_lib_dl_dlopen = yes; then
21206 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21208 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
21209 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
21210 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
21211 echo $ECHO_N "(cached) $ECHO_C" >&6
21213 ac_check_lib_save_LIBS=$LIBS
21214 LIBS="-lsvld $LIBS"
21215 cat >conftest.$ac_ext <<_ACEOF
21218 cat confdefs.h >>conftest.$ac_ext
21219 cat >>conftest.$ac_ext <<_ACEOF
21220 /* end confdefs.h. */
21222 /* Override any gcc2 internal prototype to avoid an error. */
21226 /* We use char because int might match the return type of a gcc2
21227 builtin and then its argument prototype would still apply. */
21237 rm -f conftest.$ac_objext conftest$ac_exeext
21238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21239 (eval $ac_link) 2>conftest.er1
21241 grep -v '^ *+' conftest.er1 >conftest.err
21243 cat conftest.err >&5
21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); } &&
21246 { ac_try='test -z "$ac_c_werror_flag"
21247 || test ! -s conftest.err'
21248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21249 (eval $ac_try) 2>&5
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); }; } &&
21253 { ac_try='test -s conftest$ac_exeext'
21254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21255 (eval $ac_try) 2>&5
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); }; }; then
21259 ac_cv_lib_svld_dlopen=yes
21261 echo "$as_me: failed program was:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21264 ac_cv_lib_svld_dlopen=no
21266 rm -f conftest.err conftest.$ac_objext \
21267 conftest$ac_exeext conftest.$ac_ext
21268 LIBS=$ac_check_lib_save_LIBS
21270 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
21271 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
21272 if test $ac_cv_lib_svld_dlopen = yes; then
21273 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
21275 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
21276 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
21277 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
21278 echo $ECHO_N "(cached) $ECHO_C" >&6
21280 ac_check_lib_save_LIBS=$LIBS
21282 cat >conftest.$ac_ext <<_ACEOF
21285 cat confdefs.h >>conftest.$ac_ext
21286 cat >>conftest.$ac_ext <<_ACEOF
21287 /* end confdefs.h. */
21289 /* Override any gcc2 internal prototype to avoid an error. */
21293 /* We use char because int might match the return type of a gcc2
21294 builtin and then its argument prototype would still apply. */
21304 rm -f conftest.$ac_objext conftest$ac_exeext
21305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21306 (eval $ac_link) 2>conftest.er1
21308 grep -v '^ *+' conftest.er1 >conftest.err
21310 cat conftest.err >&5
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); } &&
21313 { ac_try='test -z "$ac_c_werror_flag"
21314 || test ! -s conftest.err'
21315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21316 (eval $ac_try) 2>&5
21318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319 (exit $ac_status); }; } &&
21320 { ac_try='test -s conftest$ac_exeext'
21321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21322 (eval $ac_try) 2>&5
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); }; }; then
21326 ac_cv_lib_dld_dld_link=yes
21328 echo "$as_me: failed program was:" >&5
21329 sed 's/^/| /' conftest.$ac_ext >&5
21331 ac_cv_lib_dld_dld_link=no
21333 rm -f conftest.err conftest.$ac_objext \
21334 conftest$ac_exeext conftest.$ac_ext
21335 LIBS=$ac_check_lib_save_LIBS
21337 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
21338 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
21339 if test $ac_cv_lib_dld_dld_link = yes; then
21340 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
21361 if test "x$lt_cv_dlopen" != xno; then
21367 case $lt_cv_dlopen in
21369 save_CPPFLAGS="$CPPFLAGS"
21370 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
21372 save_LDFLAGS="$LDFLAGS"
21373 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
21376 LIBS="$lt_cv_dlopen_libs $LIBS"
21378 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
21379 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
21380 if test "${lt_cv_dlopen_self+set}" = set; then
21381 echo $ECHO_N "(cached) $ECHO_C" >&6
21383 if test "$cross_compiling" = yes; then :
21384 lt_cv_dlopen_self=cross
21386 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21387 lt_status=$lt_dlunknown
21388 cat > conftest.$ac_ext <<EOF
21389 #line 21389 "configure"
21390 #include "confdefs.h"
21399 # define LT_DLGLOBAL RTLD_GLOBAL
21402 # define LT_DLGLOBAL DL_GLOBAL
21404 # define LT_DLGLOBAL 0
21408 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21409 find out it does not work in some platform. */
21410 #ifndef LT_DLLAZY_OR_NOW
21412 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21415 # define LT_DLLAZY_OR_NOW DL_LAZY
21418 # define LT_DLLAZY_OR_NOW RTLD_NOW
21421 # define LT_DLLAZY_OR_NOW DL_NOW
21423 # define LT_DLLAZY_OR_NOW 0
21431 extern "C" void exit (int);
21434 void fnord() { int i=42;}
21437 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21438 int status = $lt_dlunknown;
21442 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21443 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21444 /* dlclose (self); */
21450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21451 (eval $ac_link) 2>&5
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21455 (./conftest; exit; ) 2>/dev/null
21457 case x$lt_status in
21458 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21459 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21460 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
21463 # compilation failed
21464 lt_cv_dlopen_self=no
21471 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
21472 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
21474 if test "x$lt_cv_dlopen_self" = xyes; then
21475 LDFLAGS="$LDFLAGS $link_static_flag"
21476 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
21477 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
21478 if test "${lt_cv_dlopen_self_static+set}" = set; then
21479 echo $ECHO_N "(cached) $ECHO_C" >&6
21481 if test "$cross_compiling" = yes; then :
21482 lt_cv_dlopen_self_static=cross
21484 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21485 lt_status=$lt_dlunknown
21486 cat > conftest.$ac_ext <<EOF
21487 #line 21487 "configure"
21488 #include "confdefs.h"
21497 # define LT_DLGLOBAL RTLD_GLOBAL
21500 # define LT_DLGLOBAL DL_GLOBAL
21502 # define LT_DLGLOBAL 0
21506 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21507 find out it does not work in some platform. */
21508 #ifndef LT_DLLAZY_OR_NOW
21510 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21513 # define LT_DLLAZY_OR_NOW DL_LAZY
21516 # define LT_DLLAZY_OR_NOW RTLD_NOW
21519 # define LT_DLLAZY_OR_NOW DL_NOW
21521 # define LT_DLLAZY_OR_NOW 0
21529 extern "C" void exit (int);
21532 void fnord() { int i=42;}
21535 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21536 int status = $lt_dlunknown;
21540 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21541 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21542 /* dlclose (self); */
21548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21549 (eval $ac_link) 2>&5
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21553 (./conftest; exit; ) 2>/dev/null
21555 case x$lt_status in
21556 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21557 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21558 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
21561 # compilation failed
21562 lt_cv_dlopen_self_static=no
21569 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
21570 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
21573 CPPFLAGS="$save_CPPFLAGS"
21574 LDFLAGS="$save_LDFLAGS"
21579 case $lt_cv_dlopen_self in
21580 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21581 *) enable_dlopen_self=unknown ;;
21584 case $lt_cv_dlopen_self_static in
21585 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21586 *) enable_dlopen_self_static=unknown ;;
21591 # The else clause should only fire when bootstrapping the
21592 # libtool distribution, otherwise you forgot to ship ltmain.sh
21593 # with your package, and you will get complaints that there are
21594 # no rules to generate ltmain.sh.
21595 if test -f "$ltmain"; then
21596 # See if we are running on zsh, and set the options which allow our commands through
21597 # without removal of \ escapes.
21598 if test -n "${ZSH_VERSION+set}" ; then
21599 setopt NO_GLOB_SUBST
21601 # Now quote all the things that may contain metacharacters while being
21602 # careful not to overquote the AC_SUBSTed values. We take copies of the
21603 # variables and quote the copies for generation of the libtool script.
21604 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21606 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21607 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21608 deplibs_check_method reload_flag reload_cmds need_locks \
21609 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21610 lt_cv_sys_global_symbol_to_c_name_address \
21611 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21612 old_postinstall_cmds old_postuninstall_cmds \
21616 lt_prog_compiler_wl_GCJ \
21617 lt_prog_compiler_pic_GCJ \
21618 lt_prog_compiler_static_GCJ \
21619 lt_prog_compiler_no_builtin_flag_GCJ \
21620 export_dynamic_flag_spec_GCJ \
21621 thread_safe_flag_spec_GCJ \
21622 whole_archive_flag_spec_GCJ \
21623 enable_shared_with_static_runtimes_GCJ \
21624 old_archive_cmds_GCJ \
21625 old_archive_from_new_cmds_GCJ \
21626 predep_objects_GCJ \
21627 postdep_objects_GCJ \
21630 compiler_lib_search_path_GCJ \
21632 archive_expsym_cmds_GCJ \
21633 postinstall_cmds_GCJ \
21634 postuninstall_cmds_GCJ \
21635 old_archive_from_expsyms_cmds_GCJ \
21636 allow_undefined_flag_GCJ \
21637 no_undefined_flag_GCJ \
21638 export_symbols_cmds_GCJ \
21639 hardcode_libdir_flag_spec_GCJ \
21640 hardcode_libdir_flag_spec_ld_GCJ \
21641 hardcode_libdir_separator_GCJ \
21642 hardcode_automatic_GCJ \
21644 module_expsym_cmds_GCJ \
21645 lt_cv_prog_compiler_c_o_GCJ \
21646 exclude_expsyms_GCJ \
21647 include_expsyms_GCJ; do
21650 old_archive_cmds_GCJ | \
21651 old_archive_from_new_cmds_GCJ | \
21652 archive_cmds_GCJ | \
21653 archive_expsym_cmds_GCJ | \
21654 module_cmds_GCJ | \
21655 module_expsym_cmds_GCJ | \
21656 old_archive_from_expsyms_cmds_GCJ | \
21657 export_symbols_cmds_GCJ | \
21658 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21659 postinstall_cmds | postuninstall_cmds | \
21660 old_postinstall_cmds | old_postuninstall_cmds | \
21661 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21662 # Double-quote double-evaled strings.
21663 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21666 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21672 *'\$0 --fallback-echo"')
21673 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21679 cat <<__EOF__ >> "$cfgfile"
21680 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21682 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21684 # Shell to use when invoking shell scripts.
21687 # Whether or not to build shared libraries.
21688 build_libtool_libs=$enable_shared
21690 # Whether or not to build static libraries.
21691 build_old_libs=$enable_static
21693 # Whether or not to add -lc for building shared libraries.
21694 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
21696 # Whether or not to disallow shared libs when runtime libs are static
21697 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
21699 # Whether or not to optimize for fast installation.
21700 fast_install=$enable_fast_install
21703 host_alias=$host_alias
21706 # An echo program that does not interpret backslashes.
21711 AR_FLAGS=$lt_AR_FLAGS
21716 # A language-specific compiler.
21717 CC=$lt_compiler_GCJ
21719 # Is the compiler the GNU C compiler?
21725 # The linker used to build libraries.
21728 # Whether we need hard or soft links.
21731 # A BSD-compatible nm program.
21734 # A symbol stripping program
21737 # Used to examine libraries when file_magic_cmd begins "file"
21738 MAGIC_CMD=$MAGIC_CMD
21740 # Used on cygwin: DLL creation program.
21743 # Used on cygwin: object dumper.
21746 # Used on cygwin: assembler.
21749 # The name of the directory that contains temporary libtool files.
21752 # How to create reloadable object files.
21753 reload_flag=$lt_reload_flag
21754 reload_cmds=$lt_reload_cmds
21756 # How to pass a linker flag through the compiler.
21757 wl=$lt_lt_prog_compiler_wl_GCJ
21759 # Object file suffix (normally "o").
21760 objext="$ac_objext"
21762 # Old archive suffix (normally "a").
21765 # Shared library suffix (normally ".so").
21766 shrext_cmds='$shrext_cmds'
21768 # Executable file suffix (normally "").
21771 # Additional compiler flags for building library objects.
21772 pic_flag=$lt_lt_prog_compiler_pic_GCJ
21775 # What is the maximum length of a command?
21776 max_cmd_len=$lt_cv_sys_max_cmd_len
21778 # Does compiler simultaneously support -c and -o options?
21779 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
21781 # Must we lock files when doing compilation ?
21782 need_locks=$lt_need_locks
21784 # Do we need the lib prefix for modules?
21785 need_lib_prefix=$need_lib_prefix
21787 # Do we need a version for libraries?
21788 need_version=$need_version
21790 # Whether dlopen is supported.
21791 dlopen_support=$enable_dlopen
21793 # Whether dlopen of programs is supported.
21794 dlopen_self=$enable_dlopen_self
21796 # Whether dlopen of statically linked programs is supported.
21797 dlopen_self_static=$enable_dlopen_self_static
21799 # Compiler flag to prevent dynamic linking.
21800 link_static_flag=$lt_lt_prog_compiler_static_GCJ
21802 # Compiler flag to turn off builtin functions.
21803 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21805 # Compiler flag to allow reflexive dlopens.
21806 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21808 # Compiler flag to generate shared objects directly from archives.
21809 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21811 # Compiler flag to generate thread-safe objects.
21812 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21814 # Library versioning type.
21815 version_type=$version_type
21817 # Format of library name prefix.
21818 libname_spec=$lt_libname_spec
21820 # List of archive names. First name is the real one, the rest are links.
21821 # The last name is the one that the linker finds with -lNAME.
21822 library_names_spec=$lt_library_names_spec
21824 # The coded name of the library, if different from the real name.
21825 soname_spec=$lt_soname_spec
21827 # Commands used to build and install an old-style archive.
21829 old_archive_cmds=$lt_old_archive_cmds_GCJ
21830 old_postinstall_cmds=$lt_old_postinstall_cmds
21831 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21833 # Create an old-style archive from a shared archive.
21834 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21836 # Create a temporary old-style archive to link instead of a shared archive.
21837 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21839 # Commands used to build and install a shared archive.
21840 archive_cmds=$lt_archive_cmds_GCJ
21841 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21842 postinstall_cmds=$lt_postinstall_cmds
21843 postuninstall_cmds=$lt_postuninstall_cmds
21845 # Commands used to build a loadable module (assumed same as above if empty)
21846 module_cmds=$lt_module_cmds_GCJ
21847 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21849 # Commands to strip libraries.
21850 old_striplib=$lt_old_striplib
21851 striplib=$lt_striplib
21853 # Dependencies to place before the objects being linked to create a
21855 predep_objects=$lt_predep_objects_GCJ
21857 # Dependencies to place after the objects being linked to create a
21859 postdep_objects=$lt_postdep_objects_GCJ
21861 # Dependencies to place before the objects being linked to create a
21863 predeps=$lt_predeps_GCJ
21865 # Dependencies to place after the objects being linked to create a
21867 postdeps=$lt_postdeps_GCJ
21869 # The library search path used internally by the compiler when linking
21870 # a shared library.
21871 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21873 # Method to check whether dependent libraries are shared objects.
21874 deplibs_check_method=$lt_deplibs_check_method
21876 # Command to use when deplibs_check_method == file_magic.
21877 file_magic_cmd=$lt_file_magic_cmd
21879 # Flag that allows shared libraries with undefined symbols to be built.
21880 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21882 # Flag that forces no undefined symbols.
21883 no_undefined_flag=$lt_no_undefined_flag_GCJ
21885 # Commands used to finish a libtool library installation in a directory.
21886 finish_cmds=$lt_finish_cmds
21888 # Same as above, but a single script fragment to be evaled but not shown.
21889 finish_eval=$lt_finish_eval
21891 # Take the output of nm and produce a listing of raw symbols and C names.
21892 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21894 # Transform the output of nm in a proper C declaration
21895 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21897 # Transform the output of nm in a C name address pair
21898 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21900 # This is the shared library runtime path variable.
21901 runpath_var=$runpath_var
21903 # This is the shared library path variable.
21904 shlibpath_var=$shlibpath_var
21906 # Is shlibpath searched before the hard-coded library search path?
21907 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21909 # How to hardcode a shared library path into an executable.
21910 hardcode_action=$hardcode_action_GCJ
21912 # Whether we should hardcode library paths into libraries.
21913 hardcode_into_libs=$hardcode_into_libs
21915 # Flag to hardcode \$libdir into a binary during linking.
21916 # This must work even if \$libdir does not exist.
21917 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21919 # If ld is used when linking, flag to hardcode \$libdir into
21920 # a binary during linking. This must work even if \$libdir does
21922 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21924 # Whether we need a single -rpath flag with a separated argument.
21925 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21927 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21928 # resulting binary.
21929 hardcode_direct=$hardcode_direct_GCJ
21931 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21932 # resulting binary.
21933 hardcode_minus_L=$hardcode_minus_L_GCJ
21935 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21936 # the resulting binary.
21937 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21939 # Set to yes if building a shared library automatically hardcodes DIR into the library
21940 # and all subsequent libraries and executables linked against it.
21941 hardcode_automatic=$hardcode_automatic_GCJ
21943 # Variables whose values should be saved in libtool wrapper scripts and
21944 # restored at relink time.
21945 variables_saved_for_relink="$variables_saved_for_relink"
21947 # Whether libtool must link a program against all its dependency libraries.
21948 link_all_deplibs=$link_all_deplibs_GCJ
21950 # Compile-time system search path for libraries
21951 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21953 # Run-time system search path for libraries
21954 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21956 # Fix the shell variable \$srcfile for the compiler.
21957 fix_srcfile_path="$fix_srcfile_path_GCJ"
21959 # Set to yes if exported symbols are required.
21960 always_export_symbols=$always_export_symbols_GCJ
21962 # The commands to list exported symbols.
21963 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21965 # The commands to extract the exported symbol list from a shared archive.
21966 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21968 # Symbols that should not be listed in the preloaded symbols.
21969 exclude_expsyms=$lt_exclude_expsyms_GCJ
21971 # Symbols that must always be exported.
21972 include_expsyms=$lt_include_expsyms_GCJ
21974 # ### END LIBTOOL TAG CONFIG: $tagname
21980 # If there is no Makefile yet, we rely on a make rule to execute
21981 # `config.status --recheck' to rerun these tests and create the
21982 # libtool script then.
21983 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21984 if test -f "$ltmain_in"; then
21985 test -f Makefile && make "$ltmain"
21991 ac_cpp='$CPP $CPPFLAGS'
21992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22007 # Source file extension for RC test sources.
22010 # Object file extension for compiled RC test sources.
22014 # Code to be used in simple compile tests
22015 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
22017 # Code to be used in simple link tests
22018 lt_simple_link_test_code="$lt_simple_compile_test_code"
22020 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22022 # If no C compiler was specified, use CC.
22025 # Allow CC to be a program name with arguments.
22029 # Allow CC to be a program name with arguments.
22034 lt_cv_prog_compiler_c_o_RC=yes
22036 # The else clause should only fire when bootstrapping the
22037 # libtool distribution, otherwise you forgot to ship ltmain.sh
22038 # with your package, and you will get complaints that there are
22039 # no rules to generate ltmain.sh.
22040 if test -f "$ltmain"; then
22041 # See if we are running on zsh, and set the options which allow our commands through
22042 # without removal of \ escapes.
22043 if test -n "${ZSH_VERSION+set}" ; then
22044 setopt NO_GLOB_SUBST
22046 # Now quote all the things that may contain metacharacters while being
22047 # careful not to overquote the AC_SUBSTed values. We take copies of the
22048 # variables and quote the copies for generation of the libtool script.
22049 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
22051 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22052 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22053 deplibs_check_method reload_flag reload_cmds need_locks \
22054 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22055 lt_cv_sys_global_symbol_to_c_name_address \
22056 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22057 old_postinstall_cmds old_postuninstall_cmds \
22061 lt_prog_compiler_wl_RC \
22062 lt_prog_compiler_pic_RC \
22063 lt_prog_compiler_static_RC \
22064 lt_prog_compiler_no_builtin_flag_RC \
22065 export_dynamic_flag_spec_RC \
22066 thread_safe_flag_spec_RC \
22067 whole_archive_flag_spec_RC \
22068 enable_shared_with_static_runtimes_RC \
22069 old_archive_cmds_RC \
22070 old_archive_from_new_cmds_RC \
22071 predep_objects_RC \
22072 postdep_objects_RC \
22075 compiler_lib_search_path_RC \
22077 archive_expsym_cmds_RC \
22078 postinstall_cmds_RC \
22079 postuninstall_cmds_RC \
22080 old_archive_from_expsyms_cmds_RC \
22081 allow_undefined_flag_RC \
22082 no_undefined_flag_RC \
22083 export_symbols_cmds_RC \
22084 hardcode_libdir_flag_spec_RC \
22085 hardcode_libdir_flag_spec_ld_RC \
22086 hardcode_libdir_separator_RC \
22087 hardcode_automatic_RC \
22089 module_expsym_cmds_RC \
22090 lt_cv_prog_compiler_c_o_RC \
22091 exclude_expsyms_RC \
22092 include_expsyms_RC; do
22095 old_archive_cmds_RC | \
22096 old_archive_from_new_cmds_RC | \
22097 archive_cmds_RC | \
22098 archive_expsym_cmds_RC | \
22100 module_expsym_cmds_RC | \
22101 old_archive_from_expsyms_cmds_RC | \
22102 export_symbols_cmds_RC | \
22103 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22104 postinstall_cmds | postuninstall_cmds | \
22105 old_postinstall_cmds | old_postuninstall_cmds | \
22106 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22107 # Double-quote double-evaled strings.
22108 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22111 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22117 *'\$0 --fallback-echo"')
22118 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22124 cat <<__EOF__ >> "$cfgfile"
22125 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22127 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22129 # Shell to use when invoking shell scripts.
22132 # Whether or not to build shared libraries.
22133 build_libtool_libs=$enable_shared
22135 # Whether or not to build static libraries.
22136 build_old_libs=$enable_static
22138 # Whether or not to add -lc for building shared libraries.
22139 build_libtool_need_lc=$archive_cmds_need_lc_RC
22141 # Whether or not to disallow shared libs when runtime libs are static
22142 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
22144 # Whether or not to optimize for fast installation.
22145 fast_install=$enable_fast_install
22148 host_alias=$host_alias
22151 # An echo program that does not interpret backslashes.
22156 AR_FLAGS=$lt_AR_FLAGS
22161 # A language-specific compiler.
22164 # Is the compiler the GNU C compiler?
22170 # The linker used to build libraries.
22173 # Whether we need hard or soft links.
22176 # A BSD-compatible nm program.
22179 # A symbol stripping program
22182 # Used to examine libraries when file_magic_cmd begins "file"
22183 MAGIC_CMD=$MAGIC_CMD
22185 # Used on cygwin: DLL creation program.
22188 # Used on cygwin: object dumper.
22191 # Used on cygwin: assembler.
22194 # The name of the directory that contains temporary libtool files.
22197 # How to create reloadable object files.
22198 reload_flag=$lt_reload_flag
22199 reload_cmds=$lt_reload_cmds
22201 # How to pass a linker flag through the compiler.
22202 wl=$lt_lt_prog_compiler_wl_RC
22204 # Object file suffix (normally "o").
22205 objext="$ac_objext"
22207 # Old archive suffix (normally "a").
22210 # Shared library suffix (normally ".so").
22211 shrext_cmds='$shrext_cmds'
22213 # Executable file suffix (normally "").
22216 # Additional compiler flags for building library objects.
22217 pic_flag=$lt_lt_prog_compiler_pic_RC
22220 # What is the maximum length of a command?
22221 max_cmd_len=$lt_cv_sys_max_cmd_len
22223 # Does compiler simultaneously support -c and -o options?
22224 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
22226 # Must we lock files when doing compilation ?
22227 need_locks=$lt_need_locks
22229 # Do we need the lib prefix for modules?
22230 need_lib_prefix=$need_lib_prefix
22232 # Do we need a version for libraries?
22233 need_version=$need_version
22235 # Whether dlopen is supported.
22236 dlopen_support=$enable_dlopen
22238 # Whether dlopen of programs is supported.
22239 dlopen_self=$enable_dlopen_self
22241 # Whether dlopen of statically linked programs is supported.
22242 dlopen_self_static=$enable_dlopen_self_static
22244 # Compiler flag to prevent dynamic linking.
22245 link_static_flag=$lt_lt_prog_compiler_static_RC
22247 # Compiler flag to turn off builtin functions.
22248 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
22250 # Compiler flag to allow reflexive dlopens.
22251 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
22253 # Compiler flag to generate shared objects directly from archives.
22254 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
22256 # Compiler flag to generate thread-safe objects.
22257 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
22259 # Library versioning type.
22260 version_type=$version_type
22262 # Format of library name prefix.
22263 libname_spec=$lt_libname_spec
22265 # List of archive names. First name is the real one, the rest are links.
22266 # The last name is the one that the linker finds with -lNAME.
22267 library_names_spec=$lt_library_names_spec
22269 # The coded name of the library, if different from the real name.
22270 soname_spec=$lt_soname_spec
22272 # Commands used to build and install an old-style archive.
22274 old_archive_cmds=$lt_old_archive_cmds_RC
22275 old_postinstall_cmds=$lt_old_postinstall_cmds
22276 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22278 # Create an old-style archive from a shared archive.
22279 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
22281 # Create a temporary old-style archive to link instead of a shared archive.
22282 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
22284 # Commands used to build and install a shared archive.
22285 archive_cmds=$lt_archive_cmds_RC
22286 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
22287 postinstall_cmds=$lt_postinstall_cmds
22288 postuninstall_cmds=$lt_postuninstall_cmds
22290 # Commands used to build a loadable module (assumed same as above if empty)
22291 module_cmds=$lt_module_cmds_RC
22292 module_expsym_cmds=$lt_module_expsym_cmds_RC
22294 # Commands to strip libraries.
22295 old_striplib=$lt_old_striplib
22296 striplib=$lt_striplib
22298 # Dependencies to place before the objects being linked to create a
22300 predep_objects=$lt_predep_objects_RC
22302 # Dependencies to place after the objects being linked to create a
22304 postdep_objects=$lt_postdep_objects_RC
22306 # Dependencies to place before the objects being linked to create a
22308 predeps=$lt_predeps_RC
22310 # Dependencies to place after the objects being linked to create a
22312 postdeps=$lt_postdeps_RC
22314 # The library search path used internally by the compiler when linking
22315 # a shared library.
22316 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
22318 # Method to check whether dependent libraries are shared objects.
22319 deplibs_check_method=$lt_deplibs_check_method
22321 # Command to use when deplibs_check_method == file_magic.
22322 file_magic_cmd=$lt_file_magic_cmd
22324 # Flag that allows shared libraries with undefined symbols to be built.
22325 allow_undefined_flag=$lt_allow_undefined_flag_RC
22327 # Flag that forces no undefined symbols.
22328 no_undefined_flag=$lt_no_undefined_flag_RC
22330 # Commands used to finish a libtool library installation in a directory.
22331 finish_cmds=$lt_finish_cmds
22333 # Same as above, but a single script fragment to be evaled but not shown.
22334 finish_eval=$lt_finish_eval
22336 # Take the output of nm and produce a listing of raw symbols and C names.
22337 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22339 # Transform the output of nm in a proper C declaration
22340 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22342 # Transform the output of nm in a C name address pair
22343 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22345 # This is the shared library runtime path variable.
22346 runpath_var=$runpath_var
22348 # This is the shared library path variable.
22349 shlibpath_var=$shlibpath_var
22351 # Is shlibpath searched before the hard-coded library search path?
22352 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22354 # How to hardcode a shared library path into an executable.
22355 hardcode_action=$hardcode_action_RC
22357 # Whether we should hardcode library paths into libraries.
22358 hardcode_into_libs=$hardcode_into_libs
22360 # Flag to hardcode \$libdir into a binary during linking.
22361 # This must work even if \$libdir does not exist.
22362 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
22364 # If ld is used when linking, flag to hardcode \$libdir into
22365 # a binary during linking. This must work even if \$libdir does
22367 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
22369 # Whether we need a single -rpath flag with a separated argument.
22370 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22372 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22373 # resulting binary.
22374 hardcode_direct=$hardcode_direct_RC
22376 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22377 # resulting binary.
22378 hardcode_minus_L=$hardcode_minus_L_RC
22380 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22381 # the resulting binary.
22382 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22384 # Set to yes if building a shared library automatically hardcodes DIR into the library
22385 # and all subsequent libraries and executables linked against it.
22386 hardcode_automatic=$hardcode_automatic_RC
22388 # Variables whose values should be saved in libtool wrapper scripts and
22389 # restored at relink time.
22390 variables_saved_for_relink="$variables_saved_for_relink"
22392 # Whether libtool must link a program against all its dependency libraries.
22393 link_all_deplibs=$link_all_deplibs_RC
22395 # Compile-time system search path for libraries
22396 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22398 # Run-time system search path for libraries
22399 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22401 # Fix the shell variable \$srcfile for the compiler.
22402 fix_srcfile_path="$fix_srcfile_path_RC"
22404 # Set to yes if exported symbols are required.
22405 always_export_symbols=$always_export_symbols_RC
22407 # The commands to list exported symbols.
22408 export_symbols_cmds=$lt_export_symbols_cmds_RC
22410 # The commands to extract the exported symbol list from a shared archive.
22411 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22413 # Symbols that should not be listed in the preloaded symbols.
22414 exclude_expsyms=$lt_exclude_expsyms_RC
22416 # Symbols that must always be exported.
22417 include_expsyms=$lt_include_expsyms_RC
22419 # ### END LIBTOOL TAG CONFIG: $tagname
22425 # If there is no Makefile yet, we rely on a make rule to execute
22426 # `config.status --recheck' to rerun these tests and create the
22427 # libtool script then.
22428 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22429 if test -f "$ltmain_in"; then
22430 test -f Makefile && make "$ltmain"
22436 ac_cpp='$CPP $CPPFLAGS'
22437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22446 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
22447 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
22448 { (exit 1); exit 1; }; }
22452 # Append the new tag name to the list of available tags.
22453 if test -n "$tagname" ; then
22454 available_tags="$available_tags $tagname"
22460 # Now substitute the updated list of available tags.
22461 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
22462 mv "${ofile}T" "$ofile"
22466 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
22467 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
22468 { (exit 1); exit 1; }; }
22474 # This can be used to rebuild libtool when needed
22475 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
22477 # Always use our own libtool.
22478 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
22480 # Prevent multiple expansion
22503 LIBTOOL_MKDEP_SED='s;\.o;\.lo;'
22504 LIBTOOL_MODE_COMPILE='--mode=compile'
22505 LIBTOOL_MODE_INSTALL='--mode=install'
22506 LIBTOOL_MODE_LINK='--mode=link'
22514 LIBTOOL_MODE_COMPILE=
22515 LIBTOOL_MODE_INSTALL=
22521 # File name extension for static archive files, for those few places
22522 # where they are treated differently from dynamic ones.
22535 # Here begins a very long section to determine the system's networking
22536 # capabilities. The order of the tests is signficant.
22542 # Check whether --enable-ipv6 or --disable-ipv6 was given.
22543 if test "${enable_ipv6+set}" = set; then
22544 enableval="$enable_ipv6"
22548 case "$enable_ipv6" in
22550 cat >>confdefs.h <<\_ACEOF
22551 #define WANT_IPV6 1
22560 # We do the IPv6 compilation checking after libtool so that we can put
22561 # the right suffix on the files.
22563 echo "$as_me:$LINENO: checking for IPv6 structures" >&5
22564 echo $ECHO_N "checking for IPv6 structures... $ECHO_C" >&6
22565 cat >conftest.$ac_ext <<_ACEOF
22568 cat confdefs.h >>conftest.$ac_ext
22569 cat >>conftest.$ac_ext <<_ACEOF
22570 /* end confdefs.h. */
22572 #include <sys/types.h>
22573 #include <sys/socket.h>
22574 #include <netinet/in.h>
22578 struct sockaddr_in6 sin6; return (0);
22583 rm -f conftest.$ac_objext
22584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22585 (eval $ac_compile) 2>conftest.er1
22587 grep -v '^ *+' conftest.er1 >conftest.err
22589 cat conftest.err >&5
22590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22591 (exit $ac_status); } &&
22592 { ac_try='test -z "$ac_c_werror_flag"
22593 || test ! -s conftest.err'
22594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22595 (eval $ac_try) 2>&5
22597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598 (exit $ac_status); }; } &&
22599 { ac_try='test -s conftest.$ac_objext'
22600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22601 (eval $ac_try) 2>&5
22603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); }; }; then
22605 echo "$as_me:$LINENO: result: yes" >&5
22606 echo "${ECHO_T}yes" >&6
22609 echo "$as_me: failed program was:" >&5
22610 sed 's/^/| /' conftest.$ac_ext >&5
22612 echo "$as_me:$LINENO: result: no" >&5
22613 echo "${ECHO_T}no" >&6
22616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22619 # See whether IPv6 support is provided via a Kame add-on.
22620 # This is done before other IPv6 linking tests to LIBS is properly set.
22622 echo "$as_me:$LINENO: checking for Kame IPv6 support" >&5
22623 echo $ECHO_N "checking for Kame IPv6 support... $ECHO_C" >&6
22625 # Check whether --with-kame or --without-kame was given.
22626 if test "${with_kame+set}" = set; then
22627 withval="$with_kame"
22628 use_kame="$withval"
22633 case "$use_kame" in
22637 kame_path=/usr/local/v6
22640 kame_path="$use_kame"
22644 case "$use_kame" in
22646 echo "$as_me:$LINENO: result: no" >&5
22647 echo "${ECHO_T}no" >&6
22650 if test -f $kame_path/lib/libinet6.a; then
22651 echo "$as_me:$LINENO: result: $kame_path/lib/libinet6.a" >&5
22652 echo "${ECHO_T}$kame_path/lib/libinet6.a" >&6
22653 LIBS="-L$kame_path/lib -linet6 $LIBS"
22655 { { echo "$as_me:$LINENO: error: $kame_path/lib/libinet6.a not found.
22657 Please choose the proper path with the following command:
22659 configure --with-kame=PATH
22661 echo "$as_me: error: $kame_path/lib/libinet6.a not found.
22663 Please choose the proper path with the following command:
22665 configure --with-kame=PATH
22667 { (exit 1); exit 1; }; }
22673 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
22674 # Including it on Kame-using platforms is very bad, though, because
22675 # Kame uses #error against direct inclusion. So include it on only
22676 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
22677 # This is done before the in6_pktinfo check because that's what
22678 # netinet6/in6.h is needed for.
22683 ISC_PLATFORM_NEEDNETINET6IN6H="#define ISC_PLATFORM_NEEDNETINET6IN6H 1"
22684 isc_netinet6in6_hack="#include <netinet6/in6.h>"
22687 ISC_PLATFORM_NEEDNETINET6IN6H="#undef ISC_PLATFORM_NEEDNETINET6IN6H"
22688 isc_netinet6in6_hack=""
22694 # This is similar to the netinet6/in6.h issue.
22698 ISC_PLATFORM_NEEDNETINETIN6H="#define ISC_PLATFORM_NEEDNETINETIN6H 1"
22699 ISC_PLATFORM_FIXIN6ISADDR="#define ISC_PLATFORM_FIXIN6ISADDR 1"
22700 isc_netinetin6_hack="#include <netinet/in6.h>"
22703 ISC_PLATFORM_NEEDNETINETIN6H="#undef ISC_PLATFORM_NEEDNETINETIN6H"
22704 ISC_PLATFORM_FIXIN6ISADDR="#undef ISC_PLATFORM_FIXIN6ISADDR"
22705 isc_netinetin6_hack=""
22710 # Now delve deeper into the suitability of the IPv6 support.
22712 case "$found_ipv6" in
22714 HAS_INET6_STRUCTS="#define HAS_INET6_STRUCTS 1"
22716 echo "$as_me:$LINENO: checking for in6_addr" >&5
22717 echo $ECHO_N "checking for in6_addr... $ECHO_C" >&6
22718 cat >conftest.$ac_ext <<_ACEOF
22721 cat confdefs.h >>conftest.$ac_ext
22722 cat >>conftest.$ac_ext <<_ACEOF
22723 /* end confdefs.h. */
22725 #include <sys/types.h>
22726 #include <sys/socket.h>
22727 #include <netinet/in.h>
22728 $isc_netinetin6_hack
22729 $isc_netinet6in6_hack
22734 struct in6_addr in6; return (0);
22739 rm -f conftest.$ac_objext
22740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22741 (eval $ac_compile) 2>conftest.er1
22743 grep -v '^ *+' conftest.er1 >conftest.err
22745 cat conftest.err >&5
22746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747 (exit $ac_status); } &&
22748 { ac_try='test -z "$ac_c_werror_flag"
22749 || test ! -s conftest.err'
22750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22751 (eval $ac_try) 2>&5
22753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754 (exit $ac_status); }; } &&
22755 { ac_try='test -s conftest.$ac_objext'
22756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22757 (eval $ac_try) 2>&5
22759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760 (exit $ac_status); }; }; then
22761 echo "$as_me:$LINENO: result: yes" >&5
22762 echo "${ECHO_T}yes" >&6
22763 HAS_IN_ADDR6="#undef HAS_IN_ADDR6"
22764 isc_in_addr6_hack=""
22766 echo "$as_me: failed program was:" >&5
22767 sed 's/^/| /' conftest.$ac_ext >&5
22769 echo "$as_me:$LINENO: result: no" >&5
22770 echo "${ECHO_T}no" >&6
22771 HAS_IN_ADDR6="#define HAS_IN_ADDR6 1"
22772 isc_in_addr6_hack="#define in6_addr in_addr6"
22774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22776 echo "$as_me:$LINENO: checking for in6addr_any" >&5
22777 echo $ECHO_N "checking for in6addr_any... $ECHO_C" >&6
22778 cat >conftest.$ac_ext <<_ACEOF
22781 cat confdefs.h >>conftest.$ac_ext
22782 cat >>conftest.$ac_ext <<_ACEOF
22783 /* end confdefs.h. */
22785 #include <sys/types.h>
22786 #include <sys/socket.h>
22787 #include <netinet/in.h>
22788 $isc_netinetin6_hack
22789 $isc_netinet6in6_hack
22795 struct in6_addr in6; in6 = in6addr_any; return (0);
22800 rm -f conftest.$ac_objext conftest$ac_exeext
22801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22802 (eval $ac_link) 2>conftest.er1
22804 grep -v '^ *+' conftest.er1 >conftest.err
22806 cat conftest.err >&5
22807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22808 (exit $ac_status); } &&
22809 { ac_try='test -z "$ac_c_werror_flag"
22810 || test ! -s conftest.err'
22811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22812 (eval $ac_try) 2>&5
22814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815 (exit $ac_status); }; } &&
22816 { ac_try='test -s conftest$ac_exeext'
22817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22818 (eval $ac_try) 2>&5
22820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821 (exit $ac_status); }; }; then
22822 echo "$as_me:$LINENO: result: yes" >&5
22823 echo "${ECHO_T}yes" >&6
22824 NEED_IN6ADDR_ANY="#undef NEED_IN6ADDR_ANY"
22826 echo "$as_me: failed program was:" >&5
22827 sed 's/^/| /' conftest.$ac_ext >&5
22829 echo "$as_me:$LINENO: result: no" >&5
22830 echo "${ECHO_T}no" >&6
22831 NEED_IN6ADDR_ANY="#define NEED_IN6ADDR_ANY 1"
22833 rm -f conftest.err conftest.$ac_objext \
22834 conftest$ac_exeext conftest.$ac_ext
22836 echo "$as_me:$LINENO: checking for sin6_scope_id in struct sockaddr_in6" >&5
22837 echo $ECHO_N "checking for sin6_scope_id in struct sockaddr_in6... $ECHO_C" >&6
22838 cat >conftest.$ac_ext <<_ACEOF
22841 cat confdefs.h >>conftest.$ac_ext
22842 cat >>conftest.$ac_ext <<_ACEOF
22843 /* end confdefs.h. */
22845 #include <sys/types.h>
22846 #include <sys/socket.h>
22847 #include <netinet/in.h>
22848 $isc_netinetin6_hack
22849 $isc_netinet6in6_hack
22854 struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0);
22859 rm -f conftest.$ac_objext
22860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22861 (eval $ac_compile) 2>conftest.er1
22863 grep -v '^ *+' conftest.er1 >conftest.err
22865 cat conftest.err >&5
22866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867 (exit $ac_status); } &&
22868 { ac_try='test -z "$ac_c_werror_flag"
22869 || test ! -s conftest.err'
22870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22871 (eval $ac_try) 2>&5
22873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874 (exit $ac_status); }; } &&
22875 { ac_try='test -s conftest.$ac_objext'
22876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22877 (eval $ac_try) 2>&5
22879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880 (exit $ac_status); }; }; then
22881 echo "$as_me:$LINENO: result: yes" >&5
22882 echo "${ECHO_T}yes" >&6
22883 result="#define HAVE_SIN6_SCOPE_ID 1"
22885 echo "$as_me: failed program was:" >&5
22886 sed 's/^/| /' conftest.$ac_ext >&5
22888 echo "$as_me:$LINENO: result: no" >&5
22889 echo "${ECHO_T}no" >&6
22890 result="#undef HAVE_SIN6_SCOPE_ID"
22892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22893 HAVE_SIN6_SCOPE_ID="$result"
22895 echo "$as_me:$LINENO: checking for in6_pktinfo" >&5
22896 echo $ECHO_N "checking for in6_pktinfo... $ECHO_C" >&6
22897 cat >conftest.$ac_ext <<_ACEOF
22900 cat confdefs.h >>conftest.$ac_ext
22901 cat >>conftest.$ac_ext <<_ACEOF
22902 /* end confdefs.h. */
22904 #include <sys/types.h>
22905 #include <sys/socket.h>
22906 #include <netinet/in.h>
22907 $isc_netinetin6_hack
22908 $isc_netinet6in6_hack
22913 struct in6_pktinfo xyzzy; return (0);
22918 rm -f conftest.$ac_objext
22919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22920 (eval $ac_compile) 2>conftest.er1
22922 grep -v '^ *+' conftest.er1 >conftest.err
22924 cat conftest.err >&5
22925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926 (exit $ac_status); } &&
22927 { ac_try='test -z "$ac_c_werror_flag"
22928 || test ! -s conftest.err'
22929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22930 (eval $ac_try) 2>&5
22932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22933 (exit $ac_status); }; } &&
22934 { ac_try='test -s conftest.$ac_objext'
22935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22936 (eval $ac_try) 2>&5
22938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939 (exit $ac_status); }; }; then
22940 echo "$as_me:$LINENO: result: yes" >&5
22941 echo "${ECHO_T}yes" >&6
22942 ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1"
22944 echo "$as_me: failed program was:" >&5
22945 sed 's/^/| /' conftest.$ac_ext >&5
22947 echo "$as_me:$LINENO: result: no -- disabling runtime ipv6 support" >&5
22948 echo "${ECHO_T}no -- disabling runtime ipv6 support" >&6
22949 ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
22951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22953 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
22954 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
22955 cat >conftest.$ac_ext <<_ACEOF
22958 cat confdefs.h >>conftest.$ac_ext
22959 cat >>conftest.$ac_ext <<_ACEOF
22960 /* end confdefs.h. */
22962 #include <sys/types.h>
22963 #include <sys/socket.h>
22964 #include <netinet/in.h>
22965 $isc_netinetin6_hack
22966 $isc_netinet6in6_hack
22971 struct sockaddr_storage xyzzy; return (0);
22976 rm -f conftest.$ac_objext
22977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22978 (eval $ac_compile) 2>conftest.er1
22980 grep -v '^ *+' conftest.er1 >conftest.err
22982 cat conftest.err >&5
22983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984 (exit $ac_status); } &&
22985 { ac_try='test -z "$ac_c_werror_flag"
22986 || test ! -s conftest.err'
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); }; } &&
22992 { ac_try='test -s conftest.$ac_objext'
22993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22994 (eval $ac_try) 2>&5
22996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997 (exit $ac_status); }; }; then
22998 echo "$as_me:$LINENO: result: yes" >&5
22999 echo "${ECHO_T}yes" >&6
23000 HAVE_SOCKADDR_STORAGE="#define HAVE_SOCKADDR_STORAGE 1"
23002 echo "$as_me: failed program was:" >&5
23003 sed 's/^/| /' conftest.$ac_ext >&5
23005 echo "$as_me:$LINENO: result: no" >&5
23006 echo "${ECHO_T}no" >&6
23007 HAVE_SOCKADDR_STORAGE="#undef HAVE_SOCKADDR_STORAGE"
23009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23012 HAS_INET6_STRUCTS="#undef HAS_INET6_STRUCTS"
23013 NEED_IN6ADDR_ANY="#undef NEED_IN6ADDR_ANY"
23014 ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
23015 HAVE_SIN6_SCOPE_ID="#define HAVE_SIN6_SCOPE_ID 1"
23016 HAVE_SOCKADDR_STORAGE="#undef HAVE_SOCKADDR_STORAGE"
23017 ISC_IPV6_H="ipv6.h"
23018 ISC_IPV6_O="ipv6.$O"
23019 ISC_ISCIPV6_O="unix/ipv6.$O"
23020 ISC_IPV6_C="ipv6.c"
23039 # Check for network functions that are often missing. We do this
23040 # after the libtool checking, so we can put the right suffix on
23041 # the files. It also needs to come after checking for a Kame add-on,
23042 # which provides some (all?) of the desired functions.
23044 echo "$as_me:$LINENO: checking for inet_ntop" >&5
23045 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
23046 cat >conftest.$ac_ext <<_ACEOF
23049 cat confdefs.h >>conftest.$ac_ext
23050 cat >>conftest.$ac_ext <<_ACEOF
23051 /* end confdefs.h. */
23053 #include <sys/types.h>
23054 #include <netinet/in.h>
23055 #include <arpa/inet.h>
23059 inet_ntop(0, 0, 0, 0); return (0);
23064 rm -f conftest.$ac_objext conftest$ac_exeext
23065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23066 (eval $ac_link) 2>conftest.er1
23068 grep -v '^ *+' conftest.er1 >conftest.err
23070 cat conftest.err >&5
23071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072 (exit $ac_status); } &&
23073 { ac_try='test -z "$ac_c_werror_flag"
23074 || test ! -s conftest.err'
23075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23076 (eval $ac_try) 2>&5
23078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); }; } &&
23080 { ac_try='test -s conftest$ac_exeext'
23081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23082 (eval $ac_try) 2>&5
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); }; }; then
23086 echo "$as_me:$LINENO: result: yes" >&5
23087 echo "${ECHO_T}yes" >&6
23088 ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
23090 echo "$as_me: failed program was:" >&5
23091 sed 's/^/| /' conftest.$ac_ext >&5
23093 echo "$as_me:$LINENO: result: no" >&5
23094 echo "${ECHO_T}no" >&6
23095 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
23096 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
23097 ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
23099 rm -f conftest.err conftest.$ac_objext \
23100 conftest$ac_exeext conftest.$ac_ext
23101 echo "$as_me:$LINENO: checking for inet_pton" >&5
23102 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
23103 cat >conftest.$ac_ext <<_ACEOF
23106 cat confdefs.h >>conftest.$ac_ext
23107 cat >>conftest.$ac_ext <<_ACEOF
23108 /* end confdefs.h. */
23110 #include <sys/types.h>
23111 #include <netinet/in.h>
23112 #include <arpa/inet.h>
23116 inet_pton(0, 0, 0); return (0);
23121 rm -f conftest.$ac_objext conftest$ac_exeext
23122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23123 (eval $ac_link) 2>conftest.er1
23125 grep -v '^ *+' conftest.er1 >conftest.err
23127 cat conftest.err >&5
23128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129 (exit $ac_status); } &&
23130 { ac_try='test -z "$ac_c_werror_flag"
23131 || test ! -s conftest.err'
23132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23133 (eval $ac_try) 2>&5
23135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136 (exit $ac_status); }; } &&
23137 { ac_try='test -s conftest$ac_exeext'
23138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23139 (eval $ac_try) 2>&5
23141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142 (exit $ac_status); }; }; then
23143 echo "$as_me:$LINENO: result: yes" >&5
23144 echo "${ECHO_T}yes" >&6
23145 ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
23147 echo "$as_me: failed program was:" >&5
23148 sed 's/^/| /' conftest.$ac_ext >&5
23150 echo "$as_me:$LINENO: result: no" >&5
23151 echo "${ECHO_T}no" >&6
23152 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"
23153 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
23154 ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
23156 rm -f conftest.err conftest.$ac_objext \
23157 conftest$ac_exeext conftest.$ac_ext
23158 echo "$as_me:$LINENO: checking for inet_aton" >&5
23159 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
23160 cat >conftest.$ac_ext <<_ACEOF
23163 cat confdefs.h >>conftest.$ac_ext
23164 cat >>conftest.$ac_ext <<_ACEOF
23165 /* end confdefs.h. */
23167 #include <sys/types.h>
23168 #include <netinet/in.h>
23169 #include <arpa/inet.h>
23173 struct in_addr in; inet_aton(0, &in); return (0);
23178 rm -f conftest.$ac_objext conftest$ac_exeext
23179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23180 (eval $ac_link) 2>conftest.er1
23182 grep -v '^ *+' conftest.er1 >conftest.err
23184 cat conftest.err >&5
23185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186 (exit $ac_status); } &&
23187 { ac_try='test -z "$ac_c_werror_flag"
23188 || test ! -s conftest.err'
23189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23190 (eval $ac_try) 2>&5
23192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193 (exit $ac_status); }; } &&
23194 { ac_try='test -s conftest$ac_exeext'
23195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23196 (eval $ac_try) 2>&5
23198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199 (exit $ac_status); }; }; then
23200 echo "$as_me:$LINENO: result: yes" >&5
23201 echo "${ECHO_T}yes" >&6
23202 ISC_PLATFORM_NEEDATON="#undef ISC_PLATFORM_NEEDATON"
23204 echo "$as_me: failed program was:" >&5
23205 sed 's/^/| /' conftest.$ac_ext >&5
23207 echo "$as_me:$LINENO: result: no" >&5
23208 echo "${ECHO_T}no" >&6
23209 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_aton.$O"
23210 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_aton.c"
23211 ISC_PLATFORM_NEEDATON="#define ISC_PLATFORM_NEEDATON 1"
23213 rm -f conftest.err conftest.$ac_objext \
23214 conftest$ac_exeext conftest.$ac_ext
23221 # Look for a 4.4BSD-style sa_len member in struct sockaddr.
23225 # Turn on 4.4BSD style sa_len support.
23226 cat >>confdefs.h <<\_ACEOF
23227 #define _SOCKADDR_LEN 1
23233 echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
23234 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
23235 cat >conftest.$ac_ext <<_ACEOF
23238 cat confdefs.h >>conftest.$ac_ext
23239 cat >>conftest.$ac_ext <<_ACEOF
23240 /* end confdefs.h. */
23242 #include <sys/types.h>
23243 #include <sys/socket.h>
23247 struct sockaddr sa; sa.sa_len = 0; return (0);
23252 rm -f conftest.$ac_objext
23253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23254 (eval $ac_compile) 2>conftest.er1
23256 grep -v '^ *+' conftest.er1 >conftest.err
23258 cat conftest.err >&5
23259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260 (exit $ac_status); } &&
23261 { ac_try='test -z "$ac_c_werror_flag"
23262 || test ! -s conftest.err'
23263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23264 (eval $ac_try) 2>&5
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); }; } &&
23268 { ac_try='test -s conftest.$ac_objext'
23269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23270 (eval $ac_try) 2>&5
23272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); }; }; then
23274 echo "$as_me:$LINENO: result: yes" >&5
23275 echo "${ECHO_T}yes" >&6
23276 HAVE_SA_LEN="#define HAVE_SA_LEN 1"
23278 echo "$as_me: failed program was:" >&5
23279 sed 's/^/| /' conftest.$ac_ext >&5
23281 echo "$as_me:$LINENO: result: no" >&5
23282 echo "${ECHO_T}no" >&6
23283 HAVE_SA_LEN="#undef HAVE_SA_LEN"
23285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23288 # HAVE_MINIMUM_IFREQ
23291 *-bsdi2345*) have_minimum_ifreq=yes;;
23292 *-darwin*) have_minimum_ifreq=yes;;
23293 *-freebsd*) have_minimum_ifreq=yes;;
23294 *-lynxos*) have_minimum_ifreq=yes;;
23295 *-netbsd*) have_minimum_ifreq=yes;;
23296 *-next*) have_minimum_ifreq=yes;;
23297 *-openbsd*) have_minimum_ifreq=yes;;
23298 *-rhapsody*) have_minimum_ifreq=yes;;
23301 case "$have_minimum_ifreq" in
23303 HAVE_MINIMUM_IFREQ="#define HAVE_MINIMUM_IFREQ 1";;
23305 HAVE_MINIMUM_IFREQ="#undef HAVE_MINIMUM_IFREQ";;
23307 HAVE_MINIMUM_IFREQ="#undef HAVE_MINIMUM_IFREQ";;
23312 PORT_DIR=port/unknown
23313 SOLARIS_BITTYPES="#undef NEED_SOLARIS_BITTYPES"
23314 BSD_COMP="#undef BSD_COMP"
23315 USE_FIONBIO_IOCTL="#undef USE_FIONBIO_IOCTL"
23316 PORT_NONBLOCK="#define PORT_NONBLOCK O_NONBLOCK"
23317 HAVE_MD5="#undef HAVE_MD5"
23318 USE_POLL="#undef HAVE_POLL"
23319 SOLARIS2="#undef SOLARIS2"
23321 *aix3.2*) PORT_DIR="port/aix32";;
23322 *aix4*) PORT_DIR="port/aix4";;
23323 *aix5*) PORT_DIR="port/aix5";;
23324 *aux3*) PORT_DIR="port/aux3";;
23325 *-bsdi2*) PORT_DIR="port/bsdos2";;
23326 *-bsdi*) PORT_DIR="port/bsdos";;
23328 PORT_NONBLOCK="#define PORT_NONBLOCK O_NDELAY"
23329 PORT_DIR="port/cygwin";;
23330 *-darwin*) PORT_DIR="port/darwin";;
23331 *-osf*) PORT_DIR="port/decunix";;
23332 *-freebsd*) PORT_DIR="port/freebsd";;
23333 *-hpux9*) PORT_DIR="port/hpux9";;
23334 *-hpux10*) PORT_DIR="port/hpux10";;
23335 *-hpux11*) PORT_DIR="port/hpux";;
23336 *-irix*) PORT_DIR="port/irix";;
23337 *-linux*) PORT_DIR="port/linux";;
23338 *-lynxos*) PORT_DIR="port/lynxos";;
23339 *-mpe*) PORT_DIR="port/mpe";;
23340 *-netbsd*) PORT_DIR="port/netbsd";;
23341 *-next*) PORT_DIR="port/next";;
23342 *-openbsd*) PORT_DIR="port/openbsd";;
23343 *-qnx*) PORT_DIR="port/qnx";;
23344 *-rhapsody*) PORT_DIR="port/rhapsody";;
23346 PORT_NONBLOCK="#define PORT_NONBLOCK O_NDELAY"
23347 PORT_DIR="port/sunos";;
23348 *-solaris2.[01234])
23349 BSD_COMP="#define BSD_COMP 1"
23350 SOLARIS_BITTYPES="#define NEED_SOLARIS_BITTYPES 1"
23351 USE_FIONBIO_IOCTL="#define USE_FIONBIO_IOCTL 1"
23352 SOLARIS2="#define SOLARIS2 1"
23353 PORT_DIR="port/solaris";;
23355 BSD_COMP="#define BSD_COMP 1"
23356 SOLARIS_BITTYPES="#define NEED_SOLARIS_BITTYPES 1"
23357 SOLARIS2="#define SOLARIS2 1"
23358 PORT_DIR="port/solaris";;
23360 BSD_COMP="#define BSD_COMP 1"
23361 SOLARIS2="#define SOLARIS2 1"
23362 PORT_DIR="port/solaris";;
23363 *-solaris2*) BSD_COMP="#define BSD_COMP 1"
23364 USE_POLL="#define USE_POLL 1"
23365 HAVE_MD5="#define HAVE_MD5 1"
23366 SOLARIS2="#define SOLARIS2 1"
23367 PORT_DIR="port/solaris";;
23368 *-ultrix*) PORT_DIR="port/ultrix";;
23369 *-sco-sysv*uw2.0*) PORT_DIR="port/unixware20";;
23370 *-sco-sysv*uw2.1.2*) PORT_DIR="port/unixware212";;
23371 *-sco-sysv*uw7*) PORT_DIR="port/unixware7";;
23382 PORT_INCLUDE=${PORT_DIR}/include
23386 # Look for a 4.4BSD or 4.3BSD struct msghdr
23388 echo "$as_me:$LINENO: checking for struct msghdr flavor" >&5
23389 echo $ECHO_N "checking for struct msghdr flavor... $ECHO_C" >&6
23390 cat >conftest.$ac_ext <<_ACEOF
23393 cat confdefs.h >>conftest.$ac_ext
23394 cat >>conftest.$ac_ext <<_ACEOF
23395 /* end confdefs.h. */
23397 #include <sys/types.h>
23398 #include <sys/socket.h>
23402 struct msghdr msg; msg.msg_flags = 0; return (0);
23407 rm -f conftest.$ac_objext
23408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23409 (eval $ac_compile) 2>conftest.er1
23411 grep -v '^ *+' conftest.er1 >conftest.err
23413 cat conftest.err >&5
23414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415 (exit $ac_status); } &&
23416 { ac_try='test -z "$ac_c_werror_flag"
23417 || test ! -s conftest.err'
23418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23419 (eval $ac_try) 2>&5
23421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23422 (exit $ac_status); }; } &&
23423 { ac_try='test -s conftest.$ac_objext'
23424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23425 (eval $ac_try) 2>&5
23427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23428 (exit $ac_status); }; }; then
23429 echo "$as_me:$LINENO: result: 4.4BSD" >&5
23430 echo "${ECHO_T}4.4BSD" >&6
23431 ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1"
23433 echo "$as_me: failed program was:" >&5
23434 sed 's/^/| /' conftest.$ac_ext >&5
23436 echo "$as_me:$LINENO: result: 4.3BSD" >&5
23437 echo "${ECHO_T}4.3BSD" >&6
23438 ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1"
23440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23444 # Look for in_port_t.
23446 echo "$as_me:$LINENO: checking for type in_port_t" >&5
23447 echo $ECHO_N "checking for type in_port_t... $ECHO_C" >&6
23448 cat >conftest.$ac_ext <<_ACEOF
23451 cat confdefs.h >>conftest.$ac_ext
23452 cat >>conftest.$ac_ext <<_ACEOF
23453 /* end confdefs.h. */
23455 #include <sys/types.h>
23456 #include <netinet/in.h>
23460 in_port_t port = 25; return (0);
23465 rm -f conftest.$ac_objext
23466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23467 (eval $ac_compile) 2>conftest.er1
23469 grep -v '^ *+' conftest.er1 >conftest.err
23471 cat conftest.err >&5
23472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); } &&
23474 { ac_try='test -z "$ac_c_werror_flag"
23475 || test ! -s conftest.err'
23476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23477 (eval $ac_try) 2>&5
23479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480 (exit $ac_status); }; } &&
23481 { ac_try='test -s conftest.$ac_objext'
23482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23483 (eval $ac_try) 2>&5
23485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486 (exit $ac_status); }; }; then
23487 echo "$as_me:$LINENO: result: yes" >&5
23488 echo "${ECHO_T}yes" >&6
23489 ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT"
23491 echo "$as_me: failed program was:" >&5
23492 sed 's/^/| /' conftest.$ac_ext >&5
23494 echo "$as_me:$LINENO: result: no" >&5
23495 echo "${ECHO_T}no" >&6
23496 ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"
23498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23502 # Check for addrinfo
23504 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
23505 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
23506 cat >conftest.$ac_ext <<_ACEOF
23509 cat confdefs.h >>conftest.$ac_ext
23510 cat >>conftest.$ac_ext <<_ACEOF
23511 /* end confdefs.h. */
23517 struct addrinfo a; return (0);
23522 rm -f conftest.$ac_objext
23523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23524 (eval $ac_compile) 2>conftest.er1
23526 grep -v '^ *+' conftest.er1 >conftest.err
23528 cat conftest.err >&5
23529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530 (exit $ac_status); } &&
23531 { ac_try='test -z "$ac_c_werror_flag"
23532 || test ! -s conftest.err'
23533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23534 (eval $ac_try) 2>&5
23536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537 (exit $ac_status); }; } &&
23538 { ac_try='test -s conftest.$ac_objext'
23539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23540 (eval $ac_try) 2>&5
23542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); }; }; then
23544 echo "$as_me:$LINENO: result: yes" >&5
23545 echo "${ECHO_T}yes" >&6
23546 cat >>confdefs.h <<\_ACEOF
23547 #define HAVE_ADDRINFO 1
23551 echo "$as_me: failed program was:" >&5
23552 sed 's/^/| /' conftest.$ac_ext >&5
23554 echo "$as_me:$LINENO: result: no" >&5
23555 echo "${ECHO_T}no" >&6
23557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23559 echo "$as_me:$LINENO: checking for int sethostent" >&5
23560 echo $ECHO_N "checking for int sethostent... $ECHO_C" >&6
23561 cat >conftest.$ac_ext <<_ACEOF
23564 cat confdefs.h >>conftest.$ac_ext
23565 cat >>conftest.$ac_ext <<_ACEOF
23566 /* end confdefs.h. */
23572 int i = sethostent(0); return(0);
23577 rm -f conftest.$ac_objext
23578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23579 (eval $ac_compile) 2>conftest.er1
23581 grep -v '^ *+' conftest.er1 >conftest.err
23583 cat conftest.err >&5
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); } &&
23586 { ac_try='test -z "$ac_c_werror_flag"
23587 || test ! -s conftest.err'
23588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23589 (eval $ac_try) 2>&5
23591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592 (exit $ac_status); }; } &&
23593 { ac_try='test -s conftest.$ac_objext'
23594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23595 (eval $ac_try) 2>&5
23597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598 (exit $ac_status); }; }; then
23599 echo "$as_me:$LINENO: result: yes" >&5
23600 echo "${ECHO_T}yes" >&6
23602 echo "$as_me: failed program was:" >&5
23603 sed 's/^/| /' conftest.$ac_ext >&5
23605 echo "$as_me:$LINENO: result: no" >&5
23606 echo "${ECHO_T}no" >&6
23608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23610 echo "$as_me:$LINENO: checking for int endhostent" >&5
23611 echo $ECHO_N "checking for int endhostent... $ECHO_C" >&6
23612 cat >conftest.$ac_ext <<_ACEOF
23615 cat confdefs.h >>conftest.$ac_ext
23616 cat >>conftest.$ac_ext <<_ACEOF
23617 /* end confdefs.h. */
23623 int i = endhostent(); return(0);
23628 rm -f conftest.$ac_objext
23629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23630 (eval $ac_compile) 2>conftest.er1
23632 grep -v '^ *+' conftest.er1 >conftest.err
23634 cat conftest.err >&5
23635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636 (exit $ac_status); } &&
23637 { ac_try='test -z "$ac_c_werror_flag"
23638 || test ! -s conftest.err'
23639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23640 (eval $ac_try) 2>&5
23642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23643 (exit $ac_status); }; } &&
23644 { ac_try='test -s conftest.$ac_objext'
23645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23646 (eval $ac_try) 2>&5
23648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649 (exit $ac_status); }; }; then
23650 echo "$as_me:$LINENO: result: yes" >&5
23651 echo "${ECHO_T}yes" >&6
23652 ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1"
23654 echo "$as_me: failed program was:" >&5
23655 sed 's/^/| /' conftest.$ac_ext >&5
23657 echo "$as_me:$LINENO: result: no" >&5
23658 echo "${ECHO_T}no" >&6
23659 ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT"
23661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23664 echo "$as_me:$LINENO: checking for int setnetent" >&5
23665 echo $ECHO_N "checking for int setnetent... $ECHO_C" >&6
23666 cat >conftest.$ac_ext <<_ACEOF
23669 cat confdefs.h >>conftest.$ac_ext
23670 cat >>conftest.$ac_ext <<_ACEOF
23671 /* end confdefs.h. */
23677 int i = setnetent(0); return(0);
23682 rm -f conftest.$ac_objext
23683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23684 (eval $ac_compile) 2>conftest.er1
23686 grep -v '^ *+' conftest.er1 >conftest.err
23688 cat conftest.err >&5
23689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690 (exit $ac_status); } &&
23691 { ac_try='test -z "$ac_c_werror_flag"
23692 || test ! -s conftest.err'
23693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23694 (eval $ac_try) 2>&5
23696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697 (exit $ac_status); }; } &&
23698 { ac_try='test -s conftest.$ac_objext'
23699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23700 (eval $ac_try) 2>&5
23702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703 (exit $ac_status); }; }; then
23704 echo "$as_me:$LINENO: result: yes" >&5
23705 echo "${ECHO_T}yes" >&6
23706 ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1"
23708 echo "$as_me: failed program was:" >&5
23709 sed 's/^/| /' conftest.$ac_ext >&5
23711 echo "$as_me:$LINENO: result: no" >&5
23712 echo "${ECHO_T}no" >&6
23713 ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT"
23715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23718 echo "$as_me:$LINENO: checking for int endnetent" >&5
23719 echo $ECHO_N "checking for int endnetent... $ECHO_C" >&6
23720 cat >conftest.$ac_ext <<_ACEOF
23723 cat confdefs.h >>conftest.$ac_ext
23724 cat >>conftest.$ac_ext <<_ACEOF
23725 /* end confdefs.h. */
23731 int i = endnetent(); return(0);
23736 rm -f conftest.$ac_objext
23737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23738 (eval $ac_compile) 2>conftest.er1
23740 grep -v '^ *+' conftest.er1 >conftest.err
23742 cat conftest.err >&5
23743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744 (exit $ac_status); } &&
23745 { ac_try='test -z "$ac_c_werror_flag"
23746 || test ! -s conftest.err'
23747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23748 (eval $ac_try) 2>&5
23750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23751 (exit $ac_status); }; } &&
23752 { ac_try='test -s conftest.$ac_objext'
23753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23754 (eval $ac_try) 2>&5
23756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757 (exit $ac_status); }; }; then
23758 echo "$as_me:$LINENO: result: yes" >&5
23759 echo "${ECHO_T}yes" >&6
23760 ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1"
23762 echo "$as_me: failed program was:" >&5
23763 sed 's/^/| /' conftest.$ac_ext >&5
23765 echo "$as_me:$LINENO: result: no" >&5
23766 echo "${ECHO_T}no" >&6
23767 ISC_LWRES_ENDNETENTINT="#undef ISC_LWRES_ENDNETENTINT"
23769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23772 echo "$as_me:$LINENO: checking for gethostbyaddr(const void *, size_t, ...)" >&5
23773 echo $ECHO_N "checking for gethostbyaddr(const void *, size_t, ...)... $ECHO_C" >&6
23774 cat >conftest.$ac_ext <<_ACEOF
23777 cat confdefs.h >>conftest.$ac_ext
23778 cat >>conftest.$ac_ext <<_ACEOF
23779 /* end confdefs.h. */
23782 struct hostent *gethostbyaddr(const void *, size_t, int);
23791 rm -f conftest.$ac_objext
23792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23793 (eval $ac_compile) 2>conftest.er1
23795 grep -v '^ *+' conftest.er1 >conftest.err
23797 cat conftest.err >&5
23798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799 (exit $ac_status); } &&
23800 { ac_try='test -z "$ac_c_werror_flag"
23801 || test ! -s conftest.err'
23802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23803 (eval $ac_try) 2>&5
23805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806 (exit $ac_status); }; } &&
23807 { ac_try='test -s conftest.$ac_objext'
23808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23809 (eval $ac_try) 2>&5
23811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23812 (exit $ac_status); }; }; then
23813 echo "$as_me:$LINENO: result: yes" >&5
23814 echo "${ECHO_T}yes" >&6
23815 ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1"
23817 echo "$as_me: failed program was:" >&5
23818 sed 's/^/| /' conftest.$ac_ext >&5
23820 echo "$as_me:$LINENO: result: no" >&5
23821 echo "${ECHO_T}no" >&6
23822 ISC_LWRES_GETHOSTBYADDRVOID="#undef ISC_LWRES_GETHOSTBYADDRVOID"
23824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23827 echo "$as_me:$LINENO: checking for h_errno in netdb.h" >&5
23828 echo $ECHO_N "checking for h_errno in netdb.h... $ECHO_C" >&6
23829 cat >conftest.$ac_ext <<_ACEOF
23832 cat confdefs.h >>conftest.$ac_ext
23833 cat >>conftest.$ac_ext <<_ACEOF
23834 /* end confdefs.h. */
23840 h_errno = 1; return(0);
23845 rm -f conftest.$ac_objext
23846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23847 (eval $ac_compile) 2>conftest.er1
23849 grep -v '^ *+' conftest.er1 >conftest.err
23851 cat conftest.err >&5
23852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853 (exit $ac_status); } &&
23854 { ac_try='test -z "$ac_c_werror_flag"
23855 || test ! -s conftest.err'
23856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23857 (eval $ac_try) 2>&5
23859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860 (exit $ac_status); }; } &&
23861 { ac_try='test -s conftest.$ac_objext'
23862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23863 (eval $ac_try) 2>&5
23865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866 (exit $ac_status); }; }; then
23867 echo "$as_me:$LINENO: result: yes" >&5
23868 echo "${ECHO_T}yes" >&6
23869 ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO"
23871 echo "$as_me: failed program was:" >&5
23872 sed 's/^/| /' conftest.$ac_ext >&5
23874 echo "$as_me:$LINENO: result: no" >&5
23875 echo "${ECHO_T}no" >&6
23876 ISC_LWRES_NEEDHERRNO="#define ISC_LWRES_NEEDHERRNO 1"
23878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23881 echo "$as_me:$LINENO: checking for getipnodebyname" >&5
23882 echo $ECHO_N "checking for getipnodebyname... $ECHO_C" >&6
23883 if test "${ac_cv_func_getipnodebyname+set}" = set; then
23884 echo $ECHO_N "(cached) $ECHO_C" >&6
23886 cat >conftest.$ac_ext <<_ACEOF
23889 cat confdefs.h >>conftest.$ac_ext
23890 cat >>conftest.$ac_ext <<_ACEOF
23891 /* end confdefs.h. */
23892 /* Define getipnodebyname to an innocuous variant, in case <limits.h> declares getipnodebyname.
23893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23894 #define getipnodebyname innocuous_getipnodebyname
23896 /* System header to define __stub macros and hopefully few prototypes,
23897 which can conflict with char getipnodebyname (); below.
23898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23899 <limits.h> exists even on freestanding compilers. */
23902 # include <limits.h>
23904 # include <assert.h>
23907 #undef getipnodebyname
23909 /* Override any gcc2 internal prototype to avoid an error. */
23914 /* We use char because int might match the return type of a gcc2
23915 builtin and then its argument prototype would still apply. */
23916 char getipnodebyname ();
23917 /* The GNU C library defines this for functions which it implements
23918 to always fail with ENOSYS. Some functions are actually named
23919 something starting with __ and the normal name is an alias. */
23920 #if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname)
23923 char (*f) () = getipnodebyname;
23932 return f != getipnodebyname;
23937 rm -f conftest.$ac_objext conftest$ac_exeext
23938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23939 (eval $ac_link) 2>conftest.er1
23941 grep -v '^ *+' conftest.er1 >conftest.err
23943 cat conftest.err >&5
23944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945 (exit $ac_status); } &&
23946 { ac_try='test -z "$ac_c_werror_flag"
23947 || test ! -s conftest.err'
23948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23949 (eval $ac_try) 2>&5
23951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23952 (exit $ac_status); }; } &&
23953 { ac_try='test -s conftest$ac_exeext'
23954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23955 (eval $ac_try) 2>&5
23957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23958 (exit $ac_status); }; }; then
23959 ac_cv_func_getipnodebyname=yes
23961 echo "$as_me: failed program was:" >&5
23962 sed 's/^/| /' conftest.$ac_ext >&5
23964 ac_cv_func_getipnodebyname=no
23966 rm -f conftest.err conftest.$ac_objext \
23967 conftest$ac_exeext conftest.$ac_ext
23969 echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyname" >&5
23970 echo "${ECHO_T}$ac_cv_func_getipnodebyname" >&6
23971 if test $ac_cv_func_getipnodebyname = yes; then
23972 ISC_LWRES_GETIPNODEPROTO="#undef ISC_LWRES_GETIPNODEPROTO"
23974 ISC_LWRES_GETIPNODEPROTO="#define ISC_LWRES_GETIPNODEPROTO 1"
23977 echo "$as_me:$LINENO: checking for getnameinfo" >&5
23978 echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6
23979 if test "${ac_cv_func_getnameinfo+set}" = set; then
23980 echo $ECHO_N "(cached) $ECHO_C" >&6
23982 cat >conftest.$ac_ext <<_ACEOF
23985 cat confdefs.h >>conftest.$ac_ext
23986 cat >>conftest.$ac_ext <<_ACEOF
23987 /* end confdefs.h. */
23988 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
23989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23990 #define getnameinfo innocuous_getnameinfo
23992 /* System header to define __stub macros and hopefully few prototypes,
23993 which can conflict with char getnameinfo (); below.
23994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23995 <limits.h> exists even on freestanding compilers. */
23998 # include <limits.h>
24000 # include <assert.h>
24005 /* Override any gcc2 internal prototype to avoid an error. */
24010 /* We use char because int might match the return type of a gcc2
24011 builtin and then its argument prototype would still apply. */
24012 char getnameinfo ();
24013 /* The GNU C library defines this for functions which it implements
24014 to always fail with ENOSYS. Some functions are actually named
24015 something starting with __ and the normal name is an alias. */
24016 #if defined (__stub_getnameinfo) || defined (__stub___getnameinfo)
24019 char (*f) () = getnameinfo;
24028 return f != getnameinfo;
24033 rm -f conftest.$ac_objext conftest$ac_exeext
24034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24035 (eval $ac_link) 2>conftest.er1
24037 grep -v '^ *+' conftest.er1 >conftest.err
24039 cat conftest.err >&5
24040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041 (exit $ac_status); } &&
24042 { ac_try='test -z "$ac_c_werror_flag"
24043 || test ! -s conftest.err'
24044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24045 (eval $ac_try) 2>&5
24047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24048 (exit $ac_status); }; } &&
24049 { ac_try='test -s conftest$ac_exeext'
24050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24051 (eval $ac_try) 2>&5
24053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054 (exit $ac_status); }; }; then
24055 ac_cv_func_getnameinfo=yes
24057 echo "$as_me: failed program was:" >&5
24058 sed 's/^/| /' conftest.$ac_ext >&5
24060 ac_cv_func_getnameinfo=no
24062 rm -f conftest.err conftest.$ac_objext \
24063 conftest$ac_exeext conftest.$ac_ext
24065 echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5
24066 echo "${ECHO_T}$ac_cv_func_getnameinfo" >&6
24067 if test $ac_cv_func_getnameinfo = yes; then
24068 ISC_LWRES_GETNAMEINFOPROTO="#undef ISC_LWRES_GETNAMEINFOPROTO"
24070 ISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1"
24073 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
24074 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
24075 if test "${ac_cv_func_getaddrinfo+set}" = set; then
24076 echo $ECHO_N "(cached) $ECHO_C" >&6
24078 cat >conftest.$ac_ext <<_ACEOF
24081 cat confdefs.h >>conftest.$ac_ext
24082 cat >>conftest.$ac_ext <<_ACEOF
24083 /* end confdefs.h. */
24084 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
24085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24086 #define getaddrinfo innocuous_getaddrinfo
24088 /* System header to define __stub macros and hopefully few prototypes,
24089 which can conflict with char getaddrinfo (); below.
24090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24091 <limits.h> exists even on freestanding compilers. */
24094 # include <limits.h>
24096 # include <assert.h>
24101 /* Override any gcc2 internal prototype to avoid an error. */
24106 /* We use char because int might match the return type of a gcc2
24107 builtin and then its argument prototype would still apply. */
24108 char getaddrinfo ();
24109 /* The GNU C library defines this for functions which it implements
24110 to always fail with ENOSYS. Some functions are actually named
24111 something starting with __ and the normal name is an alias. */
24112 #if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
24115 char (*f) () = getaddrinfo;
24124 return f != getaddrinfo;
24129 rm -f conftest.$ac_objext conftest$ac_exeext
24130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24131 (eval $ac_link) 2>conftest.er1
24133 grep -v '^ *+' conftest.er1 >conftest.err
24135 cat conftest.err >&5
24136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24137 (exit $ac_status); } &&
24138 { ac_try='test -z "$ac_c_werror_flag"
24139 || test ! -s conftest.err'
24140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24141 (eval $ac_try) 2>&5
24143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24144 (exit $ac_status); }; } &&
24145 { ac_try='test -s conftest$ac_exeext'
24146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24147 (eval $ac_try) 2>&5
24149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24150 (exit $ac_status); }; }; then
24151 ac_cv_func_getaddrinfo=yes
24153 echo "$as_me: failed program was:" >&5
24154 sed 's/^/| /' conftest.$ac_ext >&5
24156 ac_cv_func_getaddrinfo=no
24158 rm -f conftest.err conftest.$ac_objext \
24159 conftest$ac_exeext conftest.$ac_ext
24161 echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
24162 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6
24163 if test $ac_cv_func_getaddrinfo = yes; then
24164 ISC_LWRES_GETADDRINFOPROTO="#undef ISC_LWRES_GETADDRINFOPROTO"
24165 cat >>confdefs.h <<\_ACEOF
24166 #define HAVE_GETADDRINFO 1
24170 ISC_LWRES_GETADDRINFOPROTO="#define ISC_LWRES_GETADDRINFOPROTO 1"
24173 echo "$as_me:$LINENO: checking for gai_strerror" >&5
24174 echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6
24175 if test "${ac_cv_func_gai_strerror+set}" = set; then
24176 echo $ECHO_N "(cached) $ECHO_C" >&6
24178 cat >conftest.$ac_ext <<_ACEOF
24181 cat confdefs.h >>conftest.$ac_ext
24182 cat >>conftest.$ac_ext <<_ACEOF
24183 /* end confdefs.h. */
24184 /* Define gai_strerror to an innocuous variant, in case <limits.h> declares gai_strerror.
24185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24186 #define gai_strerror innocuous_gai_strerror
24188 /* System header to define __stub macros and hopefully few prototypes,
24189 which can conflict with char gai_strerror (); below.
24190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24191 <limits.h> exists even on freestanding compilers. */
24194 # include <limits.h>
24196 # include <assert.h>
24199 #undef gai_strerror
24201 /* Override any gcc2 internal prototype to avoid an error. */
24206 /* We use char because int might match the return type of a gcc2
24207 builtin and then its argument prototype would still apply. */
24208 char gai_strerror ();
24209 /* The GNU C library defines this for functions which it implements
24210 to always fail with ENOSYS. Some functions are actually named
24211 something starting with __ and the normal name is an alias. */
24212 #if defined (__stub_gai_strerror) || defined (__stub___gai_strerror)
24215 char (*f) () = gai_strerror;
24224 return f != gai_strerror;
24229 rm -f conftest.$ac_objext conftest$ac_exeext
24230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24231 (eval $ac_link) 2>conftest.er1
24233 grep -v '^ *+' conftest.er1 >conftest.err
24235 cat conftest.err >&5
24236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24237 (exit $ac_status); } &&
24238 { ac_try='test -z "$ac_c_werror_flag"
24239 || test ! -s conftest.err'
24240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24241 (eval $ac_try) 2>&5
24243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24244 (exit $ac_status); }; } &&
24245 { ac_try='test -s conftest$ac_exeext'
24246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24247 (eval $ac_try) 2>&5
24249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250 (exit $ac_status); }; }; then
24251 ac_cv_func_gai_strerror=yes
24253 echo "$as_me: failed program was:" >&5
24254 sed 's/^/| /' conftest.$ac_ext >&5
24256 ac_cv_func_gai_strerror=no
24258 rm -f conftest.err conftest.$ac_objext \
24259 conftest$ac_exeext conftest.$ac_ext
24261 echo "$as_me:$LINENO: result: $ac_cv_func_gai_strerror" >&5
24262 echo "${ECHO_T}$ac_cv_func_gai_strerror" >&6
24263 if test $ac_cv_func_gai_strerror = yes; then
24264 cat >>confdefs.h <<\_ACEOF
24265 #define HAVE_GAISTRERROR 1
24273 echo "$as_me:$LINENO: checking for pselect" >&5
24274 echo $ECHO_N "checking for pselect... $ECHO_C" >&6
24275 if test "${ac_cv_func_pselect+set}" = set; then
24276 echo $ECHO_N "(cached) $ECHO_C" >&6
24278 cat >conftest.$ac_ext <<_ACEOF
24281 cat confdefs.h >>conftest.$ac_ext
24282 cat >>conftest.$ac_ext <<_ACEOF
24283 /* end confdefs.h. */
24284 /* Define pselect to an innocuous variant, in case <limits.h> declares pselect.
24285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24286 #define pselect innocuous_pselect
24288 /* System header to define __stub macros and hopefully few prototypes,
24289 which can conflict with char pselect (); below.
24290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24291 <limits.h> exists even on freestanding compilers. */
24294 # include <limits.h>
24296 # include <assert.h>
24301 /* Override any gcc2 internal prototype to avoid an error. */
24306 /* We use char because int might match the return type of a gcc2
24307 builtin and then its argument prototype would still apply. */
24309 /* The GNU C library defines this for functions which it implements
24310 to always fail with ENOSYS. Some functions are actually named
24311 something starting with __ and the normal name is an alias. */
24312 #if defined (__stub_pselect) || defined (__stub___pselect)
24315 char (*f) () = pselect;
24324 return f != pselect;
24329 rm -f conftest.$ac_objext conftest$ac_exeext
24330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24331 (eval $ac_link) 2>conftest.er1
24333 grep -v '^ *+' conftest.er1 >conftest.err
24335 cat conftest.err >&5
24336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337 (exit $ac_status); } &&
24338 { ac_try='test -z "$ac_c_werror_flag"
24339 || test ! -s conftest.err'
24340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24341 (eval $ac_try) 2>&5
24343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24344 (exit $ac_status); }; } &&
24345 { ac_try='test -s conftest$ac_exeext'
24346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24347 (eval $ac_try) 2>&5
24349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350 (exit $ac_status); }; }; then
24351 ac_cv_func_pselect=yes
24353 echo "$as_me: failed program was:" >&5
24354 sed 's/^/| /' conftest.$ac_ext >&5
24356 ac_cv_func_pselect=no
24358 rm -f conftest.err conftest.$ac_objext \
24359 conftest$ac_exeext conftest.$ac_ext
24361 echo "$as_me:$LINENO: result: $ac_cv_func_pselect" >&5
24362 echo "${ECHO_T}$ac_cv_func_pselect" >&6
24363 if test $ac_cv_func_pselect = yes; then
24364 NEED_PSELECT="#undef NEED_PSELECT"
24366 NEED_PSELECT="#define NEED_PSELECT"
24370 echo "$as_me:$LINENO: checking for gettimeofday" >&5
24371 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
24372 if test "${ac_cv_func_gettimeofday+set}" = set; then
24373 echo $ECHO_N "(cached) $ECHO_C" >&6
24375 cat >conftest.$ac_ext <<_ACEOF
24378 cat confdefs.h >>conftest.$ac_ext
24379 cat >>conftest.$ac_ext <<_ACEOF
24380 /* end confdefs.h. */
24381 /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
24382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24383 #define gettimeofday innocuous_gettimeofday
24385 /* System header to define __stub macros and hopefully few prototypes,
24386 which can conflict with char gettimeofday (); below.
24387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24388 <limits.h> exists even on freestanding compilers. */
24391 # include <limits.h>
24393 # include <assert.h>
24396 #undef gettimeofday
24398 /* Override any gcc2 internal prototype to avoid an error. */
24403 /* We use char because int might match the return type of a gcc2
24404 builtin and then its argument prototype would still apply. */
24405 char gettimeofday ();
24406 /* The GNU C library defines this for functions which it implements
24407 to always fail with ENOSYS. Some functions are actually named
24408 something starting with __ and the normal name is an alias. */
24409 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
24412 char (*f) () = gettimeofday;
24421 return f != gettimeofday;
24426 rm -f conftest.$ac_objext conftest$ac_exeext
24427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24428 (eval $ac_link) 2>conftest.er1
24430 grep -v '^ *+' conftest.er1 >conftest.err
24432 cat conftest.err >&5
24433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24434 (exit $ac_status); } &&
24435 { ac_try='test -z "$ac_c_werror_flag"
24436 || test ! -s conftest.err'
24437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24438 (eval $ac_try) 2>&5
24440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24441 (exit $ac_status); }; } &&
24442 { ac_try='test -s conftest$ac_exeext'
24443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24444 (eval $ac_try) 2>&5
24446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447 (exit $ac_status); }; }; then
24448 ac_cv_func_gettimeofday=yes
24450 echo "$as_me: failed program was:" >&5
24451 sed 's/^/| /' conftest.$ac_ext >&5
24453 ac_cv_func_gettimeofday=no
24455 rm -f conftest.err conftest.$ac_objext \
24456 conftest$ac_exeext conftest.$ac_ext
24458 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
24459 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
24460 if test $ac_cv_func_gettimeofday = yes; then
24461 NEED_GETTIMEOFDAY="#undef NEED_GETTIMEOFDAY"
24463 NEED_GETTIMEOFDAY="#define NEED_GETTIMEOFDAY 1"
24467 echo "$as_me:$LINENO: checking for strndup" >&5
24468 echo $ECHO_N "checking for strndup... $ECHO_C" >&6
24469 if test "${ac_cv_func_strndup+set}" = set; then
24470 echo $ECHO_N "(cached) $ECHO_C" >&6
24472 cat >conftest.$ac_ext <<_ACEOF
24475 cat confdefs.h >>conftest.$ac_ext
24476 cat >>conftest.$ac_ext <<_ACEOF
24477 /* end confdefs.h. */
24478 /* Define strndup to an innocuous variant, in case <limits.h> declares strndup.
24479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24480 #define strndup innocuous_strndup
24482 /* System header to define __stub macros and hopefully few prototypes,
24483 which can conflict with char strndup (); below.
24484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24485 <limits.h> exists even on freestanding compilers. */
24488 # include <limits.h>
24490 # include <assert.h>
24495 /* Override any gcc2 internal prototype to avoid an error. */
24500 /* We use char because int might match the return type of a gcc2
24501 builtin and then its argument prototype would still apply. */
24503 /* The GNU C library defines this for functions which it implements
24504 to always fail with ENOSYS. Some functions are actually named
24505 something starting with __ and the normal name is an alias. */
24506 #if defined (__stub_strndup) || defined (__stub___strndup)
24509 char (*f) () = strndup;
24518 return f != strndup;
24523 rm -f conftest.$ac_objext conftest$ac_exeext
24524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24525 (eval $ac_link) 2>conftest.er1
24527 grep -v '^ *+' conftest.er1 >conftest.err
24529 cat conftest.err >&5
24530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24531 (exit $ac_status); } &&
24532 { ac_try='test -z "$ac_c_werror_flag"
24533 || test ! -s conftest.err'
24534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24535 (eval $ac_try) 2>&5
24537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538 (exit $ac_status); }; } &&
24539 { ac_try='test -s conftest$ac_exeext'
24540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24541 (eval $ac_try) 2>&5
24543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544 (exit $ac_status); }; }; then
24545 ac_cv_func_strndup=yes
24547 echo "$as_me: failed program was:" >&5
24548 sed 's/^/| /' conftest.$ac_ext >&5
24550 ac_cv_func_strndup=no
24552 rm -f conftest.err conftest.$ac_objext \
24553 conftest$ac_exeext conftest.$ac_ext
24555 echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
24556 echo "${ECHO_T}$ac_cv_func_strndup" >&6
24557 if test $ac_cv_func_strndup = yes; then
24558 HAVE_STRNDUP="#define HAVE_STRNDUP 1"
24560 HAVE_STRNDUP="#undef HAVE_STRNDUP"
24566 # Look for a sysctl call to get the list of network interfaces.
24568 echo "$as_me:$LINENO: checking for interface list sysctl" >&5
24569 echo $ECHO_N "checking for interface list sysctl... $ECHO_C" >&6
24570 cat >conftest.$ac_ext <<_ACEOF
24573 cat confdefs.h >>conftest.$ac_ext
24574 cat >>conftest.$ac_ext <<_ACEOF
24575 /* end confdefs.h. */
24577 #include <sys/param.h>
24578 #include <sys/sysctl.h>
24579 #include <sys/socket.h>
24580 #ifdef NET_RT_IFLIST
24585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24586 $EGREP "found_rt_iflist" >/dev/null 2>&1; then
24587 echo "$as_me:$LINENO: result: yes" >&5
24588 echo "${ECHO_T}yes" >&6
24589 cat >>confdefs.h <<\_ACEOF
24590 #define HAVE_IFLIST_SYSCTL 1
24594 echo "$as_me:$LINENO: result: no" >&5
24595 echo "${ECHO_T}no" >&6
24601 # Check for some other useful functions that are not ever-present.
24603 echo "$as_me:$LINENO: checking for strsep" >&5
24604 echo $ECHO_N "checking for strsep... $ECHO_C" >&6
24605 if test "${ac_cv_func_strsep+set}" = set; then
24606 echo $ECHO_N "(cached) $ECHO_C" >&6
24608 cat >conftest.$ac_ext <<_ACEOF
24611 cat confdefs.h >>conftest.$ac_ext
24612 cat >>conftest.$ac_ext <<_ACEOF
24613 /* end confdefs.h. */
24614 /* Define strsep to an innocuous variant, in case <limits.h> declares strsep.
24615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24616 #define strsep innocuous_strsep
24618 /* System header to define __stub macros and hopefully few prototypes,
24619 which can conflict with char strsep (); below.
24620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24621 <limits.h> exists even on freestanding compilers. */
24624 # include <limits.h>
24626 # include <assert.h>
24631 /* Override any gcc2 internal prototype to avoid an error. */
24636 /* We use char because int might match the return type of a gcc2
24637 builtin and then its argument prototype would still apply. */
24639 /* The GNU C library defines this for functions which it implements
24640 to always fail with ENOSYS. Some functions are actually named
24641 something starting with __ and the normal name is an alias. */
24642 #if defined (__stub_strsep) || defined (__stub___strsep)
24645 char (*f) () = strsep;
24654 return f != strsep;
24659 rm -f conftest.$ac_objext conftest$ac_exeext
24660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24661 (eval $ac_link) 2>conftest.er1
24663 grep -v '^ *+' conftest.er1 >conftest.err
24665 cat conftest.err >&5
24666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667 (exit $ac_status); } &&
24668 { ac_try='test -z "$ac_c_werror_flag"
24669 || test ! -s conftest.err'
24670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24671 (eval $ac_try) 2>&5
24673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674 (exit $ac_status); }; } &&
24675 { ac_try='test -s conftest$ac_exeext'
24676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24677 (eval $ac_try) 2>&5
24679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680 (exit $ac_status); }; }; then
24681 ac_cv_func_strsep=yes
24683 echo "$as_me: failed program was:" >&5
24684 sed 's/^/| /' conftest.$ac_ext >&5
24686 ac_cv_func_strsep=no
24688 rm -f conftest.err conftest.$ac_objext \
24689 conftest$ac_exeext conftest.$ac_ext
24691 echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
24692 echo "${ECHO_T}$ac_cv_func_strsep" >&6
24693 if test $ac_cv_func_strsep = yes; then
24694 ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP"
24696 ISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1"
24699 echo "$as_me:$LINENO: checking for vsnprintf" >&5
24700 echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
24701 if test "${ac_cv_func_vsnprintf+set}" = set; then
24702 echo $ECHO_N "(cached) $ECHO_C" >&6
24704 cat >conftest.$ac_ext <<_ACEOF
24707 cat confdefs.h >>conftest.$ac_ext
24708 cat >>conftest.$ac_ext <<_ACEOF
24709 /* end confdefs.h. */
24710 /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
24711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24712 #define vsnprintf innocuous_vsnprintf
24714 /* System header to define __stub macros and hopefully few prototypes,
24715 which can conflict with char vsnprintf (); below.
24716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24717 <limits.h> exists even on freestanding compilers. */
24720 # include <limits.h>
24722 # include <assert.h>
24727 /* Override any gcc2 internal prototype to avoid an error. */
24732 /* We use char because int might match the return type of a gcc2
24733 builtin and then its argument prototype would still apply. */
24735 /* The GNU C library defines this for functions which it implements
24736 to always fail with ENOSYS. Some functions are actually named
24737 something starting with __ and the normal name is an alias. */
24738 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
24741 char (*f) () = vsnprintf;
24750 return f != vsnprintf;
24755 rm -f conftest.$ac_objext conftest$ac_exeext
24756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24757 (eval $ac_link) 2>conftest.er1
24759 grep -v '^ *+' conftest.er1 >conftest.err
24761 cat conftest.err >&5
24762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24763 (exit $ac_status); } &&
24764 { ac_try='test -z "$ac_c_werror_flag"
24765 || test ! -s conftest.err'
24766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24767 (eval $ac_try) 2>&5
24769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770 (exit $ac_status); }; } &&
24771 { ac_try='test -s conftest$ac_exeext'
24772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24773 (eval $ac_try) 2>&5
24775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24776 (exit $ac_status); }; }; then
24777 ac_cv_func_vsnprintf=yes
24779 echo "$as_me: failed program was:" >&5
24780 sed 's/^/| /' conftest.$ac_ext >&5
24782 ac_cv_func_vsnprintf=no
24784 rm -f conftest.err conftest.$ac_objext \
24785 conftest$ac_exeext conftest.$ac_ext
24787 echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
24788 echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6
24789 if test $ac_cv_func_vsnprintf = yes; then
24790 ISC_PLATFORM_NEEDVSNPRINTF="#undef ISC_PLATFORM_NEEDVSNPRINTF"
24792 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS print.$O"
24793 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS print.c"
24794 ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1"
24802 echo "$as_me:$LINENO: checking for strerror" >&5
24803 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
24804 if test "${ac_cv_func_strerror+set}" = set; then
24805 echo $ECHO_N "(cached) $ECHO_C" >&6
24807 cat >conftest.$ac_ext <<_ACEOF
24810 cat confdefs.h >>conftest.$ac_ext
24811 cat >>conftest.$ac_ext <<_ACEOF
24812 /* end confdefs.h. */
24813 /* Define strerror to an innocuous variant, in case <limits.h> declares strerror.
24814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24815 #define strerror innocuous_strerror
24817 /* System header to define __stub macros and hopefully few prototypes,
24818 which can conflict with char strerror (); below.
24819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24820 <limits.h> exists even on freestanding compilers. */
24823 # include <limits.h>
24825 # include <assert.h>
24830 /* Override any gcc2 internal prototype to avoid an error. */
24835 /* We use char because int might match the return type of a gcc2
24836 builtin and then its argument prototype would still apply. */
24838 /* The GNU C library defines this for functions which it implements
24839 to always fail with ENOSYS. Some functions are actually named
24840 something starting with __ and the normal name is an alias. */
24841 #if defined (__stub_strerror) || defined (__stub___strerror)
24844 char (*f) () = strerror;
24853 return f != strerror;
24858 rm -f conftest.$ac_objext conftest$ac_exeext
24859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24860 (eval $ac_link) 2>conftest.er1
24862 grep -v '^ *+' conftest.er1 >conftest.err
24864 cat conftest.err >&5
24865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24866 (exit $ac_status); } &&
24867 { ac_try='test -z "$ac_c_werror_flag"
24868 || test ! -s conftest.err'
24869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24870 (eval $ac_try) 2>&5
24872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24873 (exit $ac_status); }; } &&
24874 { ac_try='test -s conftest$ac_exeext'
24875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24876 (eval $ac_try) 2>&5
24878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879 (exit $ac_status); }; }; then
24880 ac_cv_func_strerror=yes
24882 echo "$as_me: failed program was:" >&5
24883 sed 's/^/| /' conftest.$ac_ext >&5
24885 ac_cv_func_strerror=no
24887 rm -f conftest.err conftest.$ac_objext \
24888 conftest$ac_exeext conftest.$ac_ext
24890 echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
24891 echo "${ECHO_T}$ac_cv_func_strerror" >&6
24892 if test $ac_cv_func_strerror = yes; then
24893 USE_SYSERROR_LIST="#undef USE_SYSERROR_LIST"
24895 USE_SYSERROR_LIST="#define USE_SYSERROR_LIST 1"
24901 # Determine the printf format characters to use when printing
24902 # values of type isc_int64_t. We make the assumption that platforms
24903 # where a "long long" is the same size as a "long" (e.g., Alpha/OSF1)
24904 # want "%ld" and everyone else can use "%lld". Win32 uses "%I64d",
24905 # but that's defined elsewhere since we don't use configure on Win32.
24907 echo "$as_me:$LINENO: checking printf format modifier for 64-bit integers" >&5
24908 echo $ECHO_N "checking printf format modifier for 64-bit integers... $ECHO_C" >&6
24909 if test "$cross_compiling" = yes; then
24910 echo "$as_me:$LINENO: result: default ll" >&5
24911 echo "${ECHO_T}default ll" >&6
24912 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"'
24914 cat >conftest.$ac_ext <<_ACEOF
24917 cat confdefs.h >>conftest.$ac_ext
24918 cat >>conftest.$ac_ext <<_ACEOF
24919 /* end confdefs.h. */
24920 main() { exit(!(sizeof(long long int) == sizeof(long int))); }
24922 rm -f conftest$ac_exeext
24923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24924 (eval $ac_link) 2>&5
24926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24929 (eval $ac_try) 2>&5
24931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932 (exit $ac_status); }; }; then
24933 echo "$as_me:$LINENO: result: l" >&5
24934 echo "${ECHO_T}l" >&6
24935 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "l"'
24937 echo "$as_me: program exited with status $ac_status" >&5
24938 echo "$as_me: failed program was:" >&5
24939 sed 's/^/| /' conftest.$ac_ext >&5
24941 ( exit $ac_status )
24942 echo "$as_me:$LINENO: result: ll" >&5
24943 echo "${ECHO_T}ll" >&6
24944 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"'
24946 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24953 echo "$as_me:$LINENO: checking for chroot" >&5
24954 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
24955 if test "${ac_cv_func_chroot+set}" = set; then
24956 echo $ECHO_N "(cached) $ECHO_C" >&6
24958 cat >conftest.$ac_ext <<_ACEOF
24961 cat confdefs.h >>conftest.$ac_ext
24962 cat >>conftest.$ac_ext <<_ACEOF
24963 /* end confdefs.h. */
24964 /* Define chroot to an innocuous variant, in case <limits.h> declares chroot.
24965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24966 #define chroot innocuous_chroot
24968 /* System header to define __stub macros and hopefully few prototypes,
24969 which can conflict with char chroot (); below.
24970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24971 <limits.h> exists even on freestanding compilers. */
24974 # include <limits.h>
24976 # include <assert.h>
24981 /* Override any gcc2 internal prototype to avoid an error. */
24986 /* We use char because int might match the return type of a gcc2
24987 builtin and then its argument prototype would still apply. */
24989 /* The GNU C library defines this for functions which it implements
24990 to always fail with ENOSYS. Some functions are actually named
24991 something starting with __ and the normal name is an alias. */
24992 #if defined (__stub_chroot) || defined (__stub___chroot)
24995 char (*f) () = chroot;
25004 return f != chroot;
25009 rm -f conftest.$ac_objext conftest$ac_exeext
25010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25011 (eval $ac_link) 2>conftest.er1
25013 grep -v '^ *+' conftest.er1 >conftest.err
25015 cat conftest.err >&5
25016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017 (exit $ac_status); } &&
25018 { ac_try='test -z "$ac_c_werror_flag"
25019 || test ! -s conftest.err'
25020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25021 (eval $ac_try) 2>&5
25023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024 (exit $ac_status); }; } &&
25025 { ac_try='test -s conftest$ac_exeext'
25026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25027 (eval $ac_try) 2>&5
25029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030 (exit $ac_status); }; }; then
25031 ac_cv_func_chroot=yes
25033 echo "$as_me: failed program was:" >&5
25034 sed 's/^/| /' conftest.$ac_ext >&5
25036 ac_cv_func_chroot=no
25038 rm -f conftest.err conftest.$ac_objext \
25039 conftest$ac_exeext conftest.$ac_ext
25041 echo "$as_me:$LINENO: result: $ac_cv_func_chroot" >&5
25042 echo "${ECHO_T}$ac_cv_func_chroot" >&6
25043 if test $ac_cv_func_chroot = yes; then
25044 cat >>confdefs.h <<\_ACEOF
25045 #define HAVE_CHROOT 1
25052 # for accept, recvfrom, getpeername etc.
25054 echo "$as_me:$LINENO: checking for socket length type" >&5
25055 echo $ECHO_N "checking for socket length type... $ECHO_C" >&6
25056 cat >conftest.$ac_ext <<_ACEOF
25059 cat confdefs.h >>conftest.$ac_ext
25060 cat >>conftest.$ac_ext <<_ACEOF
25061 /* end confdefs.h. */
25063 #include <sys/types.h>
25064 #include <sys/socket.h>
25065 int accept(int, struct sockaddr *, socklen_t *);
25075 rm -f conftest.$ac_objext
25076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25077 (eval $ac_compile) 2>conftest.er1
25079 grep -v '^ *+' conftest.er1 >conftest.err
25081 cat conftest.err >&5
25082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25083 (exit $ac_status); } &&
25084 { ac_try='test -z "$ac_c_werror_flag"
25085 || test ! -s conftest.err'
25086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25087 (eval $ac_try) 2>&5
25089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25090 (exit $ac_status); }; } &&
25091 { ac_try='test -s conftest.$ac_objext'
25092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25093 (eval $ac_try) 2>&5
25095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25096 (exit $ac_status); }; }; then
25097 ISC_SOCKLEN_T="#define ISC_SOCKLEN_T socklen_t"
25098 echo "$as_me:$LINENO: result: socklen_t" >&5
25099 echo "${ECHO_T}socklen_t" >&6
25102 echo "$as_me: failed program was:" >&5
25103 sed 's/^/| /' conftest.$ac_ext >&5
25105 cat >conftest.$ac_ext <<_ACEOF
25108 cat confdefs.h >>conftest.$ac_ext
25109 cat >>conftest.$ac_ext <<_ACEOF
25110 /* end confdefs.h. */
25112 #include <sys/types.h>
25113 #include <sys/socket.h>
25114 int accept(int, struct sockaddr *, unsigned int *);
25124 rm -f conftest.$ac_objext
25125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25126 (eval $ac_compile) 2>conftest.er1
25128 grep -v '^ *+' conftest.er1 >conftest.err
25130 cat conftest.err >&5
25131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25132 (exit $ac_status); } &&
25133 { ac_try='test -z "$ac_c_werror_flag"
25134 || test ! -s conftest.err'
25135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25136 (eval $ac_try) 2>&5
25138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25139 (exit $ac_status); }; } &&
25140 { ac_try='test -s conftest.$ac_objext'
25141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25142 (eval $ac_try) 2>&5
25144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145 (exit $ac_status); }; }; then
25146 ISC_SOCKLEN_T="#define ISC_SOCKLEN_T unsigned int"
25147 echo "$as_me:$LINENO: result: unsigned int" >&5
25148 echo "${ECHO_T}unsigned int" >&6
25151 echo "$as_me: failed program was:" >&5
25152 sed 's/^/| /' conftest.$ac_ext >&5
25154 cat >conftest.$ac_ext <<_ACEOF
25157 cat confdefs.h >>conftest.$ac_ext
25158 cat >>conftest.$ac_ext <<_ACEOF
25159 /* end confdefs.h. */
25161 #include <sys/types.h>
25162 #include <sys/socket.h>
25163 int accept(int, struct sockaddr *, unsigned long *);
25173 rm -f conftest.$ac_objext
25174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25175 (eval $ac_compile) 2>conftest.er1
25177 grep -v '^ *+' conftest.er1 >conftest.err
25179 cat conftest.err >&5
25180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181 (exit $ac_status); } &&
25182 { ac_try='test -z "$ac_c_werror_flag"
25183 || test ! -s conftest.err'
25184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25185 (eval $ac_try) 2>&5
25187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25188 (exit $ac_status); }; } &&
25189 { ac_try='test -s conftest.$ac_objext'
25190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25191 (eval $ac_try) 2>&5
25193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194 (exit $ac_status); }; }; then
25195 ISC_SOCKLEN_T="#define ISC_SOCKLEN_T unsigned long"
25196 echo "$as_me:$LINENO: result: unsigned long" >&5
25197 echo "${ECHO_T}unsigned long" >&6
25200 echo "$as_me: failed program was:" >&5
25201 sed 's/^/| /' conftest.$ac_ext >&5
25203 cat >conftest.$ac_ext <<_ACEOF
25206 cat confdefs.h >>conftest.$ac_ext
25207 cat >>conftest.$ac_ext <<_ACEOF
25208 /* end confdefs.h. */
25210 #include <sys/types.h>
25211 #include <sys/socket.h>
25212 int accept(int, struct sockaddr *, long *);
25222 rm -f conftest.$ac_objext
25223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25224 (eval $ac_compile) 2>conftest.er1
25226 grep -v '^ *+' conftest.er1 >conftest.err
25228 cat conftest.err >&5
25229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25230 (exit $ac_status); } &&
25231 { ac_try='test -z "$ac_c_werror_flag"
25232 || test ! -s conftest.err'
25233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25234 (eval $ac_try) 2>&5
25236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25237 (exit $ac_status); }; } &&
25238 { ac_try='test -s conftest.$ac_objext'
25239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25240 (eval $ac_try) 2>&5
25242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25243 (exit $ac_status); }; }; then
25244 ISC_SOCKLEN_T="#define ISC_SOCKLEN_T long"
25245 echo "$as_me:$LINENO: result: long" >&5
25246 echo "${ECHO_T}long" >&6
25249 echo "$as_me: failed program was:" >&5
25250 sed 's/^/| /' conftest.$ac_ext >&5
25252 ISC_SOCKLEN_T="#define ISC_SOCKLEN_T int"
25253 echo "$as_me:$LINENO: result: int" >&5
25254 echo "${ECHO_T}int" >&6
25257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25266 echo "$as_me:$LINENO: checking for getgrouplist" >&5
25267 echo $ECHO_N "checking for getgrouplist... $ECHO_C" >&6
25268 if test "${ac_cv_func_getgrouplist+set}" = set; then
25269 echo $ECHO_N "(cached) $ECHO_C" >&6
25271 cat >conftest.$ac_ext <<_ACEOF
25274 cat confdefs.h >>conftest.$ac_ext
25275 cat >>conftest.$ac_ext <<_ACEOF
25276 /* end confdefs.h. */
25277 /* Define getgrouplist to an innocuous variant, in case <limits.h> declares getgrouplist.
25278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25279 #define getgrouplist innocuous_getgrouplist
25281 /* System header to define __stub macros and hopefully few prototypes,
25282 which can conflict with char getgrouplist (); below.
25283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25284 <limits.h> exists even on freestanding compilers. */
25287 # include <limits.h>
25289 # include <assert.h>
25292 #undef getgrouplist
25294 /* Override any gcc2 internal prototype to avoid an error. */
25299 /* We use char because int might match the return type of a gcc2
25300 builtin and then its argument prototype would still apply. */
25301 char getgrouplist ();
25302 /* The GNU C library defines this for functions which it implements
25303 to always fail with ENOSYS. Some functions are actually named
25304 something starting with __ and the normal name is an alias. */
25305 #if defined (__stub_getgrouplist) || defined (__stub___getgrouplist)
25308 char (*f) () = getgrouplist;
25317 return f != getgrouplist;
25322 rm -f conftest.$ac_objext conftest$ac_exeext
25323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25324 (eval $ac_link) 2>conftest.er1
25326 grep -v '^ *+' conftest.er1 >conftest.err
25328 cat conftest.err >&5
25329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330 (exit $ac_status); } &&
25331 { ac_try='test -z "$ac_c_werror_flag"
25332 || test ! -s conftest.err'
25333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25334 (eval $ac_try) 2>&5
25336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25337 (exit $ac_status); }; } &&
25338 { ac_try='test -s conftest$ac_exeext'
25339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25340 (eval $ac_try) 2>&5
25342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343 (exit $ac_status); }; }; then
25344 ac_cv_func_getgrouplist=yes
25346 echo "$as_me: failed program was:" >&5
25347 sed 's/^/| /' conftest.$ac_ext >&5
25349 ac_cv_func_getgrouplist=no
25351 rm -f conftest.err conftest.$ac_objext \
25352 conftest$ac_exeext conftest.$ac_ext
25354 echo "$as_me:$LINENO: result: $ac_cv_func_getgrouplist" >&5
25355 echo "${ECHO_T}$ac_cv_func_getgrouplist" >&6
25356 if test $ac_cv_func_getgrouplist = yes; then
25357 cat >conftest.$ac_ext <<_ACEOF
25360 cat confdefs.h >>conftest.$ac_ext
25361 cat >>conftest.$ac_ext <<_ACEOF
25362 /* end confdefs.h. */
25363 #include <unistd.h>
25365 getgrouplist(const char *name, int basegid, int *groups, int *ngroups) {
25376 rm -f conftest.$ac_objext
25377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25378 (eval $ac_compile) 2>conftest.er1
25380 grep -v '^ *+' conftest.er1 >conftest.err
25382 cat conftest.err >&5
25383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25384 (exit $ac_status); } &&
25385 { ac_try='test -z "$ac_c_werror_flag"
25386 || test ! -s conftest.err'
25387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25388 (eval $ac_try) 2>&5
25390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25391 (exit $ac_status); }; } &&
25392 { ac_try='test -s conftest.$ac_objext'
25393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25394 (eval $ac_try) 2>&5
25396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25397 (exit $ac_status); }; }; then
25398 GETGROUPLIST_ARGS="#define GETGROUPLIST_ARGS const char *name, int basegid, int *groups, int *ngroups"
25401 echo "$as_me: failed program was:" >&5
25402 sed 's/^/| /' conftest.$ac_ext >&5
25404 GETGROUPLIST_ARGS="#define GETGROUPLIST_ARGS const char *name, gid_t basegid, gid_t *groups, int *ngroups"
25407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25409 GETGROUPLIST_ARGS="#define GETGROUPLIST_ARGS const char *name, gid_t basegid, gid_t *groups, int *ngroups"
25410 cat >>confdefs.h <<\_ACEOF
25411 #define NEED_GETGROUPLIST 1
25419 echo "$as_me:$LINENO: checking for setgroupent" >&5
25420 echo $ECHO_N "checking for setgroupent... $ECHO_C" >&6
25421 if test "${ac_cv_func_setgroupent+set}" = set; then
25422 echo $ECHO_N "(cached) $ECHO_C" >&6
25424 cat >conftest.$ac_ext <<_ACEOF
25427 cat confdefs.h >>conftest.$ac_ext
25428 cat >>conftest.$ac_ext <<_ACEOF
25429 /* end confdefs.h. */
25430 /* Define setgroupent to an innocuous variant, in case <limits.h> declares setgroupent.
25431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25432 #define setgroupent innocuous_setgroupent
25434 /* System header to define __stub macros and hopefully few prototypes,
25435 which can conflict with char setgroupent (); below.
25436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25437 <limits.h> exists even on freestanding compilers. */
25440 # include <limits.h>
25442 # include <assert.h>
25447 /* Override any gcc2 internal prototype to avoid an error. */
25452 /* We use char because int might match the return type of a gcc2
25453 builtin and then its argument prototype would still apply. */
25454 char setgroupent ();
25455 /* The GNU C library defines this for functions which it implements
25456 to always fail with ENOSYS. Some functions are actually named
25457 something starting with __ and the normal name is an alias. */
25458 #if defined (__stub_setgroupent) || defined (__stub___setgroupent)
25461 char (*f) () = setgroupent;
25470 return f != setgroupent;
25475 rm -f conftest.$ac_objext conftest$ac_exeext
25476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25477 (eval $ac_link) 2>conftest.er1
25479 grep -v '^ *+' conftest.er1 >conftest.err
25481 cat conftest.err >&5
25482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483 (exit $ac_status); } &&
25484 { ac_try='test -z "$ac_c_werror_flag"
25485 || test ! -s conftest.err'
25486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25487 (eval $ac_try) 2>&5
25489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490 (exit $ac_status); }; } &&
25491 { ac_try='test -s conftest$ac_exeext'
25492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25493 (eval $ac_try) 2>&5
25495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496 (exit $ac_status); }; }; then
25497 ac_cv_func_setgroupent=yes
25499 echo "$as_me: failed program was:" >&5
25500 sed 's/^/| /' conftest.$ac_ext >&5
25502 ac_cv_func_setgroupent=no
25504 rm -f conftest.err conftest.$ac_objext \
25505 conftest$ac_exeext conftest.$ac_ext
25507 echo "$as_me:$LINENO: result: $ac_cv_func_setgroupent" >&5
25508 echo "${ECHO_T}$ac_cv_func_setgroupent" >&6
25509 if test $ac_cv_func_setgroupent = yes; then
25512 cat >>confdefs.h <<\_ACEOF
25513 #define NEED_SETGROUPENT 1
25523 echo "$as_me:$LINENO: checking for getnetbyaddr_r" >&5
25524 echo $ECHO_N "checking for getnetbyaddr_r... $ECHO_C" >&6
25525 if test "${ac_cv_func_getnetbyaddr_r+set}" = set; then
25526 echo $ECHO_N "(cached) $ECHO_C" >&6
25528 cat >conftest.$ac_ext <<_ACEOF
25531 cat confdefs.h >>conftest.$ac_ext
25532 cat >>conftest.$ac_ext <<_ACEOF
25533 /* end confdefs.h. */
25534 /* Define getnetbyaddr_r to an innocuous variant, in case <limits.h> declares getnetbyaddr_r.
25535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25536 #define getnetbyaddr_r innocuous_getnetbyaddr_r
25538 /* System header to define __stub macros and hopefully few prototypes,
25539 which can conflict with char getnetbyaddr_r (); below.
25540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25541 <limits.h> exists even on freestanding compilers. */
25544 # include <limits.h>
25546 # include <assert.h>
25549 #undef getnetbyaddr_r
25551 /* Override any gcc2 internal prototype to avoid an error. */
25556 /* We use char because int might match the return type of a gcc2
25557 builtin and then its argument prototype would still apply. */
25558 char getnetbyaddr_r ();
25559 /* The GNU C library defines this for functions which it implements
25560 to always fail with ENOSYS. Some functions are actually named
25561 something starting with __ and the normal name is an alias. */
25562 #if defined (__stub_getnetbyaddr_r) || defined (__stub___getnetbyaddr_r)
25565 char (*f) () = getnetbyaddr_r;
25574 return f != getnetbyaddr_r;
25579 rm -f conftest.$ac_objext conftest$ac_exeext
25580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25581 (eval $ac_link) 2>conftest.er1
25583 grep -v '^ *+' conftest.er1 >conftest.err
25585 cat conftest.err >&5
25586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25587 (exit $ac_status); } &&
25588 { ac_try='test -z "$ac_c_werror_flag"
25589 || test ! -s conftest.err'
25590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25591 (eval $ac_try) 2>&5
25593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594 (exit $ac_status); }; } &&
25595 { ac_try='test -s conftest$ac_exeext'
25596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25597 (eval $ac_try) 2>&5
25599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600 (exit $ac_status); }; }; then
25601 ac_cv_func_getnetbyaddr_r=yes
25603 echo "$as_me: failed program was:" >&5
25604 sed 's/^/| /' conftest.$ac_ext >&5
25606 ac_cv_func_getnetbyaddr_r=no
25608 rm -f conftest.err conftest.$ac_objext \
25609 conftest$ac_exeext conftest.$ac_ext
25611 echo "$as_me:$LINENO: result: $ac_cv_func_getnetbyaddr_r" >&5
25612 echo "${ECHO_T}$ac_cv_func_getnetbyaddr_r" >&6
25613 if test $ac_cv_func_getnetbyaddr_r = yes; then
25614 cat >conftest.$ac_ext <<_ACEOF
25617 cat confdefs.h >>conftest.$ac_ext
25618 cat >>conftest.$ac_ext <<_ACEOF
25619 /* end confdefs.h. */
25623 #define _OSF_SOURCE
25628 getnetbyaddr_r(long net, int type, struct netent *result, char *buffer,
25639 rm -f conftest.$ac_objext
25640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25641 (eval $ac_compile) 2>conftest.er1
25643 grep -v '^ *+' conftest.er1 >conftest.err
25645 cat conftest.err >&5
25646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647 (exit $ac_status); } &&
25648 { ac_try='test -z "$ac_c_werror_flag"
25649 || test ! -s conftest.err'
25650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25651 (eval $ac_try) 2>&5
25653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25654 (exit $ac_status); }; } &&
25655 { ac_try='test -s conftest.$ac_objext'
25656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25657 (eval $ac_try) 2>&5
25659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660 (exit $ac_status); }; }; then
25662 NET_R_ARGS="#define NET_R_ARGS char *buf, int buflen"
25663 NET_R_BAD="#define NET_R_BAD NULL"
25664 NET_R_COPY="#define NET_R_COPY buf, buflen"
25665 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS NET_R_ARGS"
25666 NET_R_OK="#define NET_R_OK nptr"
25667 NET_R_SETANSWER="#undef NET_R_SETANSWER"
25668 NET_R_RETURN="#define NET_R_RETURN struct netent *"
25669 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T long"
25670 NETENT_DATA="#undef NETENT_DATA"
25673 echo "$as_me: failed program was:" >&5
25674 sed 's/^/| /' conftest.$ac_ext >&5
25676 cat >conftest.$ac_ext <<_ACEOF
25679 cat confdefs.h >>conftest.$ac_ext
25680 cat >>conftest.$ac_ext <<_ACEOF
25681 /* end confdefs.h. */
25685 #define _OSF_SOURCE
25689 int getnetbyaddr_r (unsigned long int, int, struct netent *,
25690 char *, size_t, struct netent **, int *);
25700 rm -f conftest.$ac_objext
25701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25702 (eval $ac_compile) 2>conftest.er1
25704 grep -v '^ *+' conftest.er1 >conftest.err
25706 cat conftest.err >&5
25707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25708 (exit $ac_status); } &&
25709 { ac_try='test -z "$ac_c_werror_flag"
25710 || test ! -s conftest.err'
25711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25712 (eval $ac_try) 2>&5
25714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715 (exit $ac_status); }; } &&
25716 { ac_try='test -s conftest.$ac_objext'
25717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25718 (eval $ac_try) 2>&5
25720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25721 (exit $ac_status); }; }; then
25723 NET_R_ARGS="#define NET_R_ARGS char *buf, size_t buflen, struct netent **answerp, int *h_errnop"
25724 NET_R_BAD="#define NET_R_BAD ERANGE"
25725 NET_R_COPY="#define NET_R_COPY buf, buflen"
25726 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS char *buf, size_t buflen"
25727 NET_R_OK="#define NET_R_OK 0"
25728 NET_R_SETANSWER="#define NET_R_SETANSWER 1"
25729 NET_R_RETURN="#define NET_R_RETURN int"
25730 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T unsigned long int"
25731 NETENT_DATA="#undef NETENT_DATA"
25734 echo "$as_me: failed program was:" >&5
25735 sed 's/^/| /' conftest.$ac_ext >&5
25737 cat >conftest.$ac_ext <<_ACEOF
25740 cat confdefs.h >>conftest.$ac_ext
25741 cat >>conftest.$ac_ext <<_ACEOF
25742 /* end confdefs.h. */
25746 #define _OSF_SOURCE
25750 extern int getnetbyaddr_r(int, int, struct netent *, struct netent_data *);
25760 rm -f conftest.$ac_objext
25761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25762 (eval $ac_compile) 2>conftest.er1
25764 grep -v '^ *+' conftest.er1 >conftest.err
25766 cat conftest.err >&5
25767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25768 (exit $ac_status); } &&
25769 { ac_try='test -z "$ac_c_werror_flag"
25770 || test ! -s conftest.err'
25771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25772 (eval $ac_try) 2>&5
25774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25775 (exit $ac_status); }; } &&
25776 { ac_try='test -s conftest.$ac_objext'
25777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25778 (eval $ac_try) 2>&5
25780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25781 (exit $ac_status); }; }; then
25783 NET_R_ARGS="#define NET_R_ARGS struct netent_data *ndptr"
25784 NET_R_BAD="#define NET_R_BAD (-1)"
25785 NET_R_COPY="#define NET_R_COPY ndptr"
25786 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS struct netent_data *ndptr"
25787 NET_R_OK="#define NET_R_OK 0"
25788 NET_R_SETANSWER="#undef NET_R_SETANSWER"
25789 NET_R_RETURN="#define NET_R_RETURN int"
25790 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T int"
25791 NETENT_DATA="#define NETENT_DATA 1"
25794 echo "$as_me: failed program was:" >&5
25795 sed 's/^/| /' conftest.$ac_ext >&5
25797 cat >conftest.$ac_ext <<_ACEOF
25800 cat confdefs.h >>conftest.$ac_ext
25801 cat >>conftest.$ac_ext <<_ACEOF
25802 /* end confdefs.h. */
25806 int getnetbyaddr_r (long, int, struct netent *, struct netent_data *);
25816 rm -f conftest.$ac_objext
25817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25818 (eval $ac_compile) 2>conftest.er1
25820 grep -v '^ *+' conftest.er1 >conftest.err
25822 cat conftest.err >&5
25823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25824 (exit $ac_status); } &&
25825 { ac_try='test -z "$ac_c_werror_flag"
25826 || test ! -s conftest.err'
25827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25828 (eval $ac_try) 2>&5
25830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25831 (exit $ac_status); }; } &&
25832 { ac_try='test -s conftest.$ac_objext'
25833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25834 (eval $ac_try) 2>&5
25836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837 (exit $ac_status); }; }; then
25839 NET_R_ARGS="#define NET_R_ARGS struct netent_data *ndptr"
25840 NET_R_BAD="#define NET_R_BAD (-1)"
25841 NET_R_COPY="#define NET_R_COPY ndptr"
25842 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS struct netent_data *ndptr"
25843 NET_R_OK="#define NET_R_OK 0"
25844 NET_R_SETANSWER="#undef NET_R_SETANSWER"
25845 NET_R_RETURN="#define NET_R_RETURN int"
25846 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T long"
25847 NETENT_DATA="#define NETENT_DATA 1"
25850 echo "$as_me: failed program was:" >&5
25851 sed 's/^/| /' conftest.$ac_ext >&5
25853 cat >conftest.$ac_ext <<_ACEOF
25856 cat confdefs.h >>conftest.$ac_ext
25857 cat >>conftest.$ac_ext <<_ACEOF
25858 /* end confdefs.h. */
25862 int getnetbyaddr_r (uint32_t, int, struct netent *,
25863 char *, size_t, struct netent **, int *);
25873 rm -f conftest.$ac_objext
25874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25875 (eval $ac_compile) 2>conftest.er1
25877 grep -v '^ *+' conftest.er1 >conftest.err
25879 cat conftest.err >&5
25880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25881 (exit $ac_status); } &&
25882 { ac_try='test -z "$ac_c_werror_flag"
25883 || test ! -s conftest.err'
25884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25885 (eval $ac_try) 2>&5
25887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888 (exit $ac_status); }; } &&
25889 { ac_try='test -s conftest.$ac_objext'
25890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25891 (eval $ac_try) 2>&5
25893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894 (exit $ac_status); }; }; then
25896 NET_R_ARGS="#define NET_R_ARGS char *buf, size_t buflen, struct netent **answerp, int *h_errnop"
25897 NET_R_BAD="#define NET_R_BAD ERANGE"
25898 NET_R_COPY="#define NET_R_COPY buf, buflen"
25899 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS char *buf, size_t buflen"
25900 NET_R_OK="#define NET_R_OK 0"
25901 NET_R_SETANSWER="#define NET_R_SETANSWER 1"
25902 NET_R_RETURN="#define NET_R_RETURN int"
25903 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T unsigned long int"
25904 NETENT_DATA="#undef NETENT_DATA"
25907 echo "$as_me: failed program was:" >&5
25908 sed 's/^/| /' conftest.$ac_ext >&5
25911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25926 NET_R_ARGS="#define NET_R_ARGS char *buf, int buflen"
25927 NET_R_BAD="#define NET_R_BAD NULL"
25928 NET_R_COPY="#define NET_R_COPY buf, buflen"
25929 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS NET_R_ARGS"
25930 NET_R_OK="#define NET_R_OK nptr"
25931 NET_R_SETANSWER="#undef NET_R_SETANSWER"
25932 NET_R_RETURN="#define NET_R_RETURN struct netent *"
25933 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T long"
25934 NETENT_DATA="#undef NETENT_DATA"
25941 *dec-osf*) GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T int" ;;
25953 echo "$as_me:$LINENO: checking for setnetent_r" >&5
25954 echo $ECHO_N "checking for setnetent_r... $ECHO_C" >&6
25955 if test "${ac_cv_func_setnetent_r+set}" = set; then
25956 echo $ECHO_N "(cached) $ECHO_C" >&6
25958 cat >conftest.$ac_ext <<_ACEOF
25961 cat confdefs.h >>conftest.$ac_ext
25962 cat >>conftest.$ac_ext <<_ACEOF
25963 /* end confdefs.h. */
25964 /* Define setnetent_r to an innocuous variant, in case <limits.h> declares setnetent_r.
25965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25966 #define setnetent_r innocuous_setnetent_r
25968 /* System header to define __stub macros and hopefully few prototypes,
25969 which can conflict with char setnetent_r (); below.
25970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25971 <limits.h> exists even on freestanding compilers. */
25974 # include <limits.h>
25976 # include <assert.h>
25981 /* Override any gcc2 internal prototype to avoid an error. */
25986 /* We use char because int might match the return type of a gcc2
25987 builtin and then its argument prototype would still apply. */
25988 char setnetent_r ();
25989 /* The GNU C library defines this for functions which it implements
25990 to always fail with ENOSYS. Some functions are actually named
25991 something starting with __ and the normal name is an alias. */
25992 #if defined (__stub_setnetent_r) || defined (__stub___setnetent_r)
25995 char (*f) () = setnetent_r;
26004 return f != setnetent_r;
26009 rm -f conftest.$ac_objext conftest$ac_exeext
26010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26011 (eval $ac_link) 2>conftest.er1
26013 grep -v '^ *+' conftest.er1 >conftest.err
26015 cat conftest.err >&5
26016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26017 (exit $ac_status); } &&
26018 { ac_try='test -z "$ac_c_werror_flag"
26019 || test ! -s conftest.err'
26020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26021 (eval $ac_try) 2>&5
26023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024 (exit $ac_status); }; } &&
26025 { ac_try='test -s conftest$ac_exeext'
26026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26027 (eval $ac_try) 2>&5
26029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030 (exit $ac_status); }; }; then
26031 ac_cv_func_setnetent_r=yes
26033 echo "$as_me: failed program was:" >&5
26034 sed 's/^/| /' conftest.$ac_ext >&5
26036 ac_cv_func_setnetent_r=no
26038 rm -f conftest.err conftest.$ac_objext \
26039 conftest$ac_exeext conftest.$ac_ext
26041 echo "$as_me:$LINENO: result: $ac_cv_func_setnetent_r" >&5
26042 echo "${ECHO_T}$ac_cv_func_setnetent_r" >&6
26043 if test $ac_cv_func_setnetent_r = yes; then
26044 cat >conftest.$ac_ext <<_ACEOF
26047 cat confdefs.h >>conftest.$ac_ext
26048 cat >>conftest.$ac_ext <<_ACEOF
26049 /* end confdefs.h. */
26054 void setnetent_r (int);
26064 rm -f conftest.$ac_objext
26065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26066 (eval $ac_compile) 2>conftest.er1
26068 grep -v '^ *+' conftest.er1 >conftest.err
26070 cat conftest.err >&5
26071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072 (exit $ac_status); } &&
26073 { ac_try='test -z "$ac_c_werror_flag"
26074 || test ! -s conftest.err'
26075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26076 (eval $ac_try) 2>&5
26078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079 (exit $ac_status); }; } &&
26080 { ac_try='test -s conftest.$ac_objext'
26081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26082 (eval $ac_try) 2>&5
26084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085 (exit $ac_status); }; }; then
26087 NET_R_ENT_ARGS="#undef NET_R_ENT_ARGS /*empty*/"
26088 NET_R_SET_RESULT="#undef NET_R_SET_RESULT /*empty*/"
26089 NET_R_SET_RETURN="#define NET_R_SET_RETURN void"
26092 echo "$as_me: failed program was:" >&5
26093 sed 's/^/| /' conftest.$ac_ext >&5
26095 cat >conftest.$ac_ext <<_ACEOF
26098 cat confdefs.h >>conftest.$ac_ext
26099 cat >>conftest.$ac_ext <<_ACEOF
26100 /* end confdefs.h. */
26106 extern int setnetent_r(int, struct netent_data *);
26116 rm -f conftest.$ac_objext
26117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26118 (eval $ac_compile) 2>conftest.er1
26120 grep -v '^ *+' conftest.er1 >conftest.err
26122 cat conftest.err >&5
26123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26124 (exit $ac_status); } &&
26125 { ac_try='test -z "$ac_c_werror_flag"
26126 || test ! -s conftest.err'
26127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26128 (eval $ac_try) 2>&5
26130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26131 (exit $ac_status); }; } &&
26132 { ac_try='test -s conftest.$ac_objext'
26133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26134 (eval $ac_try) 2>&5
26136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26137 (exit $ac_status); }; }; then
26139 NET_R_ENT_ARGS="#define NET_R_ENT_ARGS struct netent_data *ndptr"
26140 NET_R_SET_RESULT="#define NET_R_SET_RESULT NET_R_OK"
26141 NET_R_SET_RETURN="#define NET_R_SET_RETURN int"
26144 echo "$as_me: failed program was:" >&5
26145 sed 's/^/| /' conftest.$ac_ext >&5
26148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26154 NET_R_ENT_ARGS="#undef NET_R_ENT_ARGS /*empty*/"
26155 NET_R_SET_RESULT="#undef NET_R_SET_RESULT /*empty*/"
26156 NET_R_SET_RETURN="#define NET_R_SET_RETURN void"
26169 echo "$as_me:$LINENO: checking for endnetent_r" >&5
26170 echo $ECHO_N "checking for endnetent_r... $ECHO_C" >&6
26171 if test "${ac_cv_func_endnetent_r+set}" = set; then
26172 echo $ECHO_N "(cached) $ECHO_C" >&6
26174 cat >conftest.$ac_ext <<_ACEOF
26177 cat confdefs.h >>conftest.$ac_ext
26178 cat >>conftest.$ac_ext <<_ACEOF
26179 /* end confdefs.h. */
26180 /* Define endnetent_r to an innocuous variant, in case <limits.h> declares endnetent_r.
26181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26182 #define endnetent_r innocuous_endnetent_r
26184 /* System header to define __stub macros and hopefully few prototypes,
26185 which can conflict with char endnetent_r (); below.
26186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26187 <limits.h> exists even on freestanding compilers. */
26190 # include <limits.h>
26192 # include <assert.h>
26197 /* Override any gcc2 internal prototype to avoid an error. */
26202 /* We use char because int might match the return type of a gcc2
26203 builtin and then its argument prototype would still apply. */
26204 char endnetent_r ();
26205 /* The GNU C library defines this for functions which it implements
26206 to always fail with ENOSYS. Some functions are actually named
26207 something starting with __ and the normal name is an alias. */
26208 #if defined (__stub_endnetent_r) || defined (__stub___endnetent_r)
26211 char (*f) () = endnetent_r;
26220 return f != endnetent_r;
26225 rm -f conftest.$ac_objext conftest$ac_exeext
26226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26227 (eval $ac_link) 2>conftest.er1
26229 grep -v '^ *+' conftest.er1 >conftest.err
26231 cat conftest.err >&5
26232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26233 (exit $ac_status); } &&
26234 { ac_try='test -z "$ac_c_werror_flag"
26235 || test ! -s conftest.err'
26236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26237 (eval $ac_try) 2>&5
26239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26240 (exit $ac_status); }; } &&
26241 { ac_try='test -s conftest$ac_exeext'
26242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26243 (eval $ac_try) 2>&5
26245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26246 (exit $ac_status); }; }; then
26247 ac_cv_func_endnetent_r=yes
26249 echo "$as_me: failed program was:" >&5
26250 sed 's/^/| /' conftest.$ac_ext >&5
26252 ac_cv_func_endnetent_r=no
26254 rm -f conftest.err conftest.$ac_objext \
26255 conftest$ac_exeext conftest.$ac_ext
26257 echo "$as_me:$LINENO: result: $ac_cv_func_endnetent_r" >&5
26258 echo "${ECHO_T}$ac_cv_func_endnetent_r" >&6
26259 if test $ac_cv_func_endnetent_r = yes; then
26260 cat >conftest.$ac_ext <<_ACEOF
26263 cat confdefs.h >>conftest.$ac_ext
26264 cat >>conftest.$ac_ext <<_ACEOF
26265 /* end confdefs.h. */
26272 void endnetent_r (void);
26282 rm -f conftest.$ac_objext
26283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26284 (eval $ac_compile) 2>conftest.er1
26286 grep -v '^ *+' conftest.er1 >conftest.err
26288 cat conftest.err >&5
26289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290 (exit $ac_status); } &&
26291 { ac_try='test -z "$ac_c_werror_flag"
26292 || test ! -s conftest.err'
26293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26294 (eval $ac_try) 2>&5
26296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26297 (exit $ac_status); }; } &&
26298 { ac_try='test -s conftest.$ac_objext'
26299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26300 (eval $ac_try) 2>&5
26302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303 (exit $ac_status); }; }; then
26305 NET_R_END_RESULT="#define NET_R_END_RESULT(x) /*empty*/"
26306 NET_R_END_RETURN="#define NET_R_END_RETURN void"
26309 echo "$as_me: failed program was:" >&5
26310 sed 's/^/| /' conftest.$ac_ext >&5
26312 cat >conftest.$ac_ext <<_ACEOF
26315 cat confdefs.h >>conftest.$ac_ext
26316 cat >>conftest.$ac_ext <<_ACEOF
26317 /* end confdefs.h. */
26324 extern int endnetent_r(struct netent_data *);
26334 rm -f conftest.$ac_objext
26335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26336 (eval $ac_compile) 2>conftest.er1
26338 grep -v '^ *+' conftest.er1 >conftest.err
26340 cat conftest.err >&5
26341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26342 (exit $ac_status); } &&
26343 { ac_try='test -z "$ac_c_werror_flag"
26344 || test ! -s conftest.err'
26345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26346 (eval $ac_try) 2>&5
26348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26349 (exit $ac_status); }; } &&
26350 { ac_try='test -s conftest.$ac_objext'
26351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26352 (eval $ac_try) 2>&5
26354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355 (exit $ac_status); }; }; then
26357 NET_R_END_RESULT="#define NET_R_END_RESULT(x) return (x)"
26358 NET_R_END_RETURN="#define NET_R_END_RETURN int"
26361 echo "$as_me: failed program was:" >&5
26362 sed 's/^/| /' conftest.$ac_ext >&5
26364 cat >conftest.$ac_ext <<_ACEOF
26367 cat confdefs.h >>conftest.$ac_ext
26368 cat >>conftest.$ac_ext <<_ACEOF
26369 /* end confdefs.h. */
26376 extern void endnetent_r(struct netent_data *);
26386 rm -f conftest.$ac_objext
26387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26388 (eval $ac_compile) 2>conftest.er1
26390 grep -v '^ *+' conftest.er1 >conftest.err
26392 cat conftest.err >&5
26393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26394 (exit $ac_status); } &&
26395 { ac_try='test -z "$ac_c_werror_flag"
26396 || test ! -s conftest.err'
26397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26398 (eval $ac_try) 2>&5
26400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26401 (exit $ac_status); }; } &&
26402 { ac_try='test -s conftest.$ac_objext'
26403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26404 (eval $ac_try) 2>&5
26406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26407 (exit $ac_status); }; }; then
26409 NET_R_END_RESULT="#define NET_R_END_RESULT(x) /*empty*/"
26410 NET_R_END_RETURN="#define NET_R_END_RETURN void"
26413 echo "$as_me: failed program was:" >&5
26414 sed 's/^/| /' conftest.$ac_ext >&5
26417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26426 NET_R_END_RESULT="#define NET_R_END_RESULT(x) /*empty*/"
26427 NET_R_END_RETURN="#define NET_R_END_RETURN void"
26435 echo "$as_me:$LINENO: checking for getgrnam_r" >&5
26436 echo $ECHO_N "checking for getgrnam_r... $ECHO_C" >&6
26437 if test "${ac_cv_func_getgrnam_r+set}" = set; then
26438 echo $ECHO_N "(cached) $ECHO_C" >&6
26440 cat >conftest.$ac_ext <<_ACEOF
26443 cat confdefs.h >>conftest.$ac_ext
26444 cat >>conftest.$ac_ext <<_ACEOF
26445 /* end confdefs.h. */
26446 /* Define getgrnam_r to an innocuous variant, in case <limits.h> declares getgrnam_r.
26447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26448 #define getgrnam_r innocuous_getgrnam_r
26450 /* System header to define __stub macros and hopefully few prototypes,
26451 which can conflict with char getgrnam_r (); below.
26452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26453 <limits.h> exists even on freestanding compilers. */
26456 # include <limits.h>
26458 # include <assert.h>
26463 /* Override any gcc2 internal prototype to avoid an error. */
26468 /* We use char because int might match the return type of a gcc2
26469 builtin and then its argument prototype would still apply. */
26470 char getgrnam_r ();
26471 /* The GNU C library defines this for functions which it implements
26472 to always fail with ENOSYS. Some functions are actually named
26473 something starting with __ and the normal name is an alias. */
26474 #if defined (__stub_getgrnam_r) || defined (__stub___getgrnam_r)
26477 char (*f) () = getgrnam_r;
26486 return f != getgrnam_r;
26491 rm -f conftest.$ac_objext conftest$ac_exeext
26492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26493 (eval $ac_link) 2>conftest.er1
26495 grep -v '^ *+' conftest.er1 >conftest.err
26497 cat conftest.err >&5
26498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26499 (exit $ac_status); } &&
26500 { ac_try='test -z "$ac_c_werror_flag"
26501 || test ! -s conftest.err'
26502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26503 (eval $ac_try) 2>&5
26505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26506 (exit $ac_status); }; } &&
26507 { ac_try='test -s conftest$ac_exeext'
26508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26509 (eval $ac_try) 2>&5
26511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26512 (exit $ac_status); }; }; then
26513 ac_cv_func_getgrnam_r=yes
26515 echo "$as_me: failed program was:" >&5
26516 sed 's/^/| /' conftest.$ac_ext >&5
26518 ac_cv_func_getgrnam_r=no
26520 rm -f conftest.err conftest.$ac_objext \
26521 conftest$ac_exeext conftest.$ac_ext
26523 echo "$as_me:$LINENO: result: $ac_cv_func_getgrnam_r" >&5
26524 echo "${ECHO_T}$ac_cv_func_getgrnam_r" >&6
26525 if test $ac_cv_func_getgrnam_r = yes; then
26528 cat >>confdefs.h <<\_ACEOF
26529 #define NEED_GETGRNAM_R 1
26534 echo "$as_me:$LINENO: checking for getgrgid_r" >&5
26535 echo $ECHO_N "checking for getgrgid_r... $ECHO_C" >&6
26536 if test "${ac_cv_func_getgrgid_r+set}" = set; then
26537 echo $ECHO_N "(cached) $ECHO_C" >&6
26539 cat >conftest.$ac_ext <<_ACEOF
26542 cat confdefs.h >>conftest.$ac_ext
26543 cat >>conftest.$ac_ext <<_ACEOF
26544 /* end confdefs.h. */
26545 /* Define getgrgid_r to an innocuous variant, in case <limits.h> declares getgrgid_r.
26546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26547 #define getgrgid_r innocuous_getgrgid_r
26549 /* System header to define __stub macros and hopefully few prototypes,
26550 which can conflict with char getgrgid_r (); below.
26551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26552 <limits.h> exists even on freestanding compilers. */
26555 # include <limits.h>
26557 # include <assert.h>
26562 /* Override any gcc2 internal prototype to avoid an error. */
26567 /* We use char because int might match the return type of a gcc2
26568 builtin and then its argument prototype would still apply. */
26569 char getgrgid_r ();
26570 /* The GNU C library defines this for functions which it implements
26571 to always fail with ENOSYS. Some functions are actually named
26572 something starting with __ and the normal name is an alias. */
26573 #if defined (__stub_getgrgid_r) || defined (__stub___getgrgid_r)
26576 char (*f) () = getgrgid_r;
26585 return f != getgrgid_r;
26590 rm -f conftest.$ac_objext conftest$ac_exeext
26591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26592 (eval $ac_link) 2>conftest.er1
26594 grep -v '^ *+' conftest.er1 >conftest.err
26596 cat conftest.err >&5
26597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26598 (exit $ac_status); } &&
26599 { ac_try='test -z "$ac_c_werror_flag"
26600 || test ! -s conftest.err'
26601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26602 (eval $ac_try) 2>&5
26604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605 (exit $ac_status); }; } &&
26606 { ac_try='test -s conftest$ac_exeext'
26607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26608 (eval $ac_try) 2>&5
26610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26611 (exit $ac_status); }; }; then
26612 ac_cv_func_getgrgid_r=yes
26614 echo "$as_me: failed program was:" >&5
26615 sed 's/^/| /' conftest.$ac_ext >&5
26617 ac_cv_func_getgrgid_r=no
26619 rm -f conftest.err conftest.$ac_objext \
26620 conftest$ac_exeext conftest.$ac_ext
26622 echo "$as_me:$LINENO: result: $ac_cv_func_getgrgid_r" >&5
26623 echo "${ECHO_T}$ac_cv_func_getgrgid_r" >&6
26624 if test $ac_cv_func_getgrgid_r = yes; then
26627 cat >>confdefs.h <<\_ACEOF
26628 #define NEED_GETGRGID_R 1
26634 echo "$as_me:$LINENO: checking for getgrent_r" >&5
26635 echo $ECHO_N "checking for getgrent_r... $ECHO_C" >&6
26636 if test "${ac_cv_func_getgrent_r+set}" = set; then
26637 echo $ECHO_N "(cached) $ECHO_C" >&6
26639 cat >conftest.$ac_ext <<_ACEOF
26642 cat confdefs.h >>conftest.$ac_ext
26643 cat >>conftest.$ac_ext <<_ACEOF
26644 /* end confdefs.h. */
26645 /* Define getgrent_r to an innocuous variant, in case <limits.h> declares getgrent_r.
26646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26647 #define getgrent_r innocuous_getgrent_r
26649 /* System header to define __stub macros and hopefully few prototypes,
26650 which can conflict with char getgrent_r (); below.
26651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26652 <limits.h> exists even on freestanding compilers. */
26655 # include <limits.h>
26657 # include <assert.h>
26662 /* Override any gcc2 internal prototype to avoid an error. */
26667 /* We use char because int might match the return type of a gcc2
26668 builtin and then its argument prototype would still apply. */
26669 char getgrent_r ();
26670 /* The GNU C library defines this for functions which it implements
26671 to always fail with ENOSYS. Some functions are actually named
26672 something starting with __ and the normal name is an alias. */
26673 #if defined (__stub_getgrent_r) || defined (__stub___getgrent_r)
26676 char (*f) () = getgrent_r;
26685 return f != getgrent_r;
26690 rm -f conftest.$ac_objext conftest$ac_exeext
26691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26692 (eval $ac_link) 2>conftest.er1
26694 grep -v '^ *+' conftest.er1 >conftest.err
26696 cat conftest.err >&5
26697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26698 (exit $ac_status); } &&
26699 { ac_try='test -z "$ac_c_werror_flag"
26700 || test ! -s conftest.err'
26701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26702 (eval $ac_try) 2>&5
26704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26705 (exit $ac_status); }; } &&
26706 { ac_try='test -s conftest$ac_exeext'
26707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26708 (eval $ac_try) 2>&5
26710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26711 (exit $ac_status); }; }; then
26712 ac_cv_func_getgrent_r=yes
26714 echo "$as_me: failed program was:" >&5
26715 sed 's/^/| /' conftest.$ac_ext >&5
26717 ac_cv_func_getgrent_r=no
26719 rm -f conftest.err conftest.$ac_objext \
26720 conftest$ac_exeext conftest.$ac_ext
26722 echo "$as_me:$LINENO: result: $ac_cv_func_getgrent_r" >&5
26723 echo "${ECHO_T}$ac_cv_func_getgrent_r" >&6
26724 if test $ac_cv_func_getgrent_r = yes; then
26725 cat >conftest.$ac_ext <<_ACEOF
26728 cat confdefs.h >>conftest.$ac_ext
26729 cat >>conftest.$ac_ext <<_ACEOF
26730 /* end confdefs.h. */
26733 struct group *getgrent_r(struct group *grp, char *buffer,
26744 rm -f conftest.$ac_objext
26745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26746 (eval $ac_compile) 2>conftest.er1
26748 grep -v '^ *+' conftest.er1 >conftest.err
26750 cat conftest.err >&5
26751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752 (exit $ac_status); } &&
26753 { ac_try='test -z "$ac_c_werror_flag"
26754 || test ! -s conftest.err'
26755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26756 (eval $ac_try) 2>&5
26758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26759 (exit $ac_status); }; } &&
26760 { ac_try='test -s conftest.$ac_objext'
26761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26762 (eval $ac_try) 2>&5
26764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26765 (exit $ac_status); }; }; then
26767 GROUP_R_ARGS="#define GROUP_R_ARGS char *buf, int buflen"
26768 GROUP_R_BAD="#define GROUP_R_BAD NULL"
26769 GROUP_R_OK="#define GROUP_R_OK gptr"
26770 GROUP_R_RETURN="#define GROUP_R_RETURN struct group *"
26773 echo "$as_me: failed program was:" >&5
26774 sed 's/^/| /' conftest.$ac_ext >&5
26777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26780 GROUP_R_ARGS="#define GROUP_R_ARGS char *buf, int buflen"
26781 GROUP_R_BAD="#define GROUP_R_BAD NULL"
26782 GROUP_R_OK="#define GROUP_R_OK gptr"
26783 GROUP_R_RETURN="#define GROUP_R_RETURN struct group *"
26784 cat >>confdefs.h <<\_ACEOF
26785 #define NEED_GETGRENT_R 1
26796 echo "$as_me:$LINENO: checking for endgrent_r" >&5
26797 echo $ECHO_N "checking for endgrent_r... $ECHO_C" >&6
26798 if test "${ac_cv_func_endgrent_r+set}" = set; then
26799 echo $ECHO_N "(cached) $ECHO_C" >&6
26801 cat >conftest.$ac_ext <<_ACEOF
26804 cat confdefs.h >>conftest.$ac_ext
26805 cat >>conftest.$ac_ext <<_ACEOF
26806 /* end confdefs.h. */
26807 /* Define endgrent_r to an innocuous variant, in case <limits.h> declares endgrent_r.
26808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26809 #define endgrent_r innocuous_endgrent_r
26811 /* System header to define __stub macros and hopefully few prototypes,
26812 which can conflict with char endgrent_r (); below.
26813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26814 <limits.h> exists even on freestanding compilers. */
26817 # include <limits.h>
26819 # include <assert.h>
26824 /* Override any gcc2 internal prototype to avoid an error. */
26829 /* We use char because int might match the return type of a gcc2
26830 builtin and then its argument prototype would still apply. */
26831 char endgrent_r ();
26832 /* The GNU C library defines this for functions which it implements
26833 to always fail with ENOSYS. Some functions are actually named
26834 something starting with __ and the normal name is an alias. */
26835 #if defined (__stub_endgrent_r) || defined (__stub___endgrent_r)
26838 char (*f) () = endgrent_r;
26847 return f != endgrent_r;
26852 rm -f conftest.$ac_objext conftest$ac_exeext
26853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26854 (eval $ac_link) 2>conftest.er1
26856 grep -v '^ *+' conftest.er1 >conftest.err
26858 cat conftest.err >&5
26859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26860 (exit $ac_status); } &&
26861 { ac_try='test -z "$ac_c_werror_flag"
26862 || test ! -s conftest.err'
26863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26864 (eval $ac_try) 2>&5
26866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26867 (exit $ac_status); }; } &&
26868 { ac_try='test -s conftest$ac_exeext'
26869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26870 (eval $ac_try) 2>&5
26872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26873 (exit $ac_status); }; }; then
26874 ac_cv_func_endgrent_r=yes
26876 echo "$as_me: failed program was:" >&5
26877 sed 's/^/| /' conftest.$ac_ext >&5
26879 ac_cv_func_endgrent_r=no
26881 rm -f conftest.err conftest.$ac_objext \
26882 conftest$ac_exeext conftest.$ac_ext
26884 echo "$as_me:$LINENO: result: $ac_cv_func_endgrent_r" >&5
26885 echo "${ECHO_T}$ac_cv_func_endgrent_r" >&6
26886 if test $ac_cv_func_endgrent_r = yes; then
26889 GROUP_R_END_RESULT="#define GROUP_R_END_RESULT(x) /*empty*/"
26890 GROUP_R_END_RETURN="#define GROUP_R_END_RETURN void"
26891 GROUP_R_ENT_ARGS="#define GROUP_R_ENT_ARGS void"
26892 cat >>confdefs.h <<\_ACEOF
26893 #define NEED_ENDGRENT_R 1
26903 echo "$as_me:$LINENO: checking for setgrent_r" >&5
26904 echo $ECHO_N "checking for setgrent_r... $ECHO_C" >&6
26905 if test "${ac_cv_func_setgrent_r+set}" = set; then
26906 echo $ECHO_N "(cached) $ECHO_C" >&6
26908 cat >conftest.$ac_ext <<_ACEOF
26911 cat confdefs.h >>conftest.$ac_ext
26912 cat >>conftest.$ac_ext <<_ACEOF
26913 /* end confdefs.h. */
26914 /* Define setgrent_r to an innocuous variant, in case <limits.h> declares setgrent_r.
26915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26916 #define setgrent_r innocuous_setgrent_r
26918 /* System header to define __stub macros and hopefully few prototypes,
26919 which can conflict with char setgrent_r (); below.
26920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26921 <limits.h> exists even on freestanding compilers. */
26924 # include <limits.h>
26926 # include <assert.h>
26931 /* Override any gcc2 internal prototype to avoid an error. */
26936 /* We use char because int might match the return type of a gcc2
26937 builtin and then its argument prototype would still apply. */
26938 char setgrent_r ();
26939 /* The GNU C library defines this for functions which it implements
26940 to always fail with ENOSYS. Some functions are actually named
26941 something starting with __ and the normal name is an alias. */
26942 #if defined (__stub_setgrent_r) || defined (__stub___setgrent_r)
26945 char (*f) () = setgrent_r;
26954 return f != setgrent_r;
26959 rm -f conftest.$ac_objext conftest$ac_exeext
26960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26961 (eval $ac_link) 2>conftest.er1
26963 grep -v '^ *+' conftest.er1 >conftest.err
26965 cat conftest.err >&5
26966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26967 (exit $ac_status); } &&
26968 { ac_try='test -z "$ac_c_werror_flag"
26969 || test ! -s conftest.err'
26970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26971 (eval $ac_try) 2>&5
26973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974 (exit $ac_status); }; } &&
26975 { ac_try='test -s conftest$ac_exeext'
26976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26977 (eval $ac_try) 2>&5
26979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980 (exit $ac_status); }; }; then
26981 ac_cv_func_setgrent_r=yes
26983 echo "$as_me: failed program was:" >&5
26984 sed 's/^/| /' conftest.$ac_ext >&5
26986 ac_cv_func_setgrent_r=no
26988 rm -f conftest.err conftest.$ac_objext \
26989 conftest$ac_exeext conftest.$ac_ext
26991 echo "$as_me:$LINENO: result: $ac_cv_func_setgrent_r" >&5
26992 echo "${ECHO_T}$ac_cv_func_setgrent_r" >&6
26993 if test $ac_cv_func_setgrent_r = yes; then
26996 GROUP_R_SET_RESULT="#undef GROUP_R_SET_RESULT /*empty*/"
26997 GROUP_R_SET_RETURN="#define GROUP_R_SET_RETURN void"
26998 cat >>confdefs.h <<\_ACEOF
26999 #define NEED_SETGRENT_R 1
27013 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27014 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
27015 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27016 echo $ECHO_N "(cached) $ECHO_C" >&6
27018 cat >conftest.$ac_ext <<_ACEOF
27021 cat confdefs.h >>conftest.$ac_ext
27022 cat >>conftest.$ac_ext <<_ACEOF
27023 /* end confdefs.h. */
27024 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27026 #define gethostbyname_r innocuous_gethostbyname_r
27028 /* System header to define __stub macros and hopefully few prototypes,
27029 which can conflict with char gethostbyname_r (); below.
27030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27031 <limits.h> exists even on freestanding compilers. */
27034 # include <limits.h>
27036 # include <assert.h>
27039 #undef gethostbyname_r
27041 /* Override any gcc2 internal prototype to avoid an error. */
27046 /* We use char because int might match the return type of a gcc2
27047 builtin and then its argument prototype would still apply. */
27048 char gethostbyname_r ();
27049 /* The GNU C library defines this for functions which it implements
27050 to always fail with ENOSYS. Some functions are actually named
27051 something starting with __ and the normal name is an alias. */
27052 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
27055 char (*f) () = gethostbyname_r;
27064 return f != gethostbyname_r;
27069 rm -f conftest.$ac_objext conftest$ac_exeext
27070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27071 (eval $ac_link) 2>conftest.er1
27073 grep -v '^ *+' conftest.er1 >conftest.err
27075 cat conftest.err >&5
27076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077 (exit $ac_status); } &&
27078 { ac_try='test -z "$ac_c_werror_flag"
27079 || test ! -s conftest.err'
27080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27081 (eval $ac_try) 2>&5
27083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084 (exit $ac_status); }; } &&
27085 { ac_try='test -s conftest$ac_exeext'
27086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27087 (eval $ac_try) 2>&5
27089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27090 (exit $ac_status); }; }; then
27091 ac_cv_func_gethostbyname_r=yes
27093 echo "$as_me: failed program was:" >&5
27094 sed 's/^/| /' conftest.$ac_ext >&5
27096 ac_cv_func_gethostbyname_r=no
27098 rm -f conftest.err conftest.$ac_objext \
27099 conftest$ac_exeext conftest.$ac_ext
27101 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27102 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
27103 if test $ac_cv_func_gethostbyname_r = yes; then
27104 cat >conftest.$ac_ext <<_ACEOF
27107 cat confdefs.h >>conftest.$ac_ext
27108 cat >>conftest.$ac_ext <<_ACEOF
27109 /* end confdefs.h. */
27114 struct hostent *gethostbyname_r
27115 (const char *name, struct hostent *hp, char *buf, int len, int *h_errnop) {}
27125 rm -f conftest.$ac_objext
27126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27127 (eval $ac_compile) 2>conftest.er1
27129 grep -v '^ *+' conftest.er1 >conftest.err
27131 cat conftest.err >&5
27132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133 (exit $ac_status); } &&
27134 { ac_try='test -z "$ac_c_werror_flag"
27135 || test ! -s conftest.err'
27136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27137 (eval $ac_try) 2>&5
27139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140 (exit $ac_status); }; } &&
27141 { ac_try='test -s conftest.$ac_objext'
27142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27143 (eval $ac_try) 2>&5
27145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146 (exit $ac_status); }; }; then
27148 HOST_R_ARGS="#define HOST_R_ARGS char *buf, int buflen, int *h_errnop"
27149 HOST_R_BAD="#define HOST_R_BAD NULL"
27150 HOST_R_COPY="#define HOST_R_COPY buf, buflen"
27151 HOST_R_COPY_ARGS="#define HOST_R_COPY_ARGS char *buf, int buflen"
27152 HOST_R_ERRNO="#define HOST_R_ERRNO *h_errnop = h_errno"
27153 HOST_R_OK="#define HOST_R_OK hptr"
27154 HOST_R_RETURN="#define HOST_R_RETURN struct hostent *"
27155 HOST_R_SETANSWER="#undef HOST_R_SETANSWER"
27156 HOSTENT_DATA="#undef HOSTENT_DATA"
27160 echo "$as_me: failed program was:" >&5
27161 sed 's/^/| /' conftest.$ac_ext >&5
27163 cat >conftest.$ac_ext <<_ACEOF
27166 cat confdefs.h >>conftest.$ac_ext
27167 cat >>conftest.$ac_ext <<_ACEOF
27168 /* end confdefs.h. */
27173 int gethostbyname_r(const char *name,
27174 struct hostent *result,
27175 struct hostent_data *hdptr);
27185 rm -f conftest.$ac_objext
27186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27187 (eval $ac_compile) 2>conftest.er1
27189 grep -v '^ *+' conftest.er1 >conftest.err
27191 cat conftest.err >&5
27192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27193 (exit $ac_status); } &&
27194 { ac_try='test -z "$ac_c_werror_flag"
27195 || test ! -s conftest.err'
27196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27197 (eval $ac_try) 2>&5
27199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200 (exit $ac_status); }; } &&
27201 { ac_try='test -s conftest.$ac_objext'
27202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27203 (eval $ac_try) 2>&5
27205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206 (exit $ac_status); }; }; then
27208 HOST_R_ARGS="#define HOST_R_ARGS struct hostent_data *hdptr"
27209 HOST_R_BAD="#define HOST_R_BAD (-1)"
27210 HOST_R_COPY="#define HOST_R_COPY hdptr"
27211 HOST_R_COPY_ARGS="#define HOST_R_COPY_ARGS HOST_R_ARGS"
27212 HOST_R_ERRNO="#undef HOST_R_ERRNO"
27213 HOST_R_OK="#define HOST_R_OK 0"
27214 HOST_R_RETURN="#define HOST_R_RETURN int"
27215 HOST_R_SETANSWER="#undef HOST_R_SETANSWER"
27216 HOSTENT_DATA="#define HOSTENT_DATA 1"
27219 echo "$as_me: failed program was:" >&5
27220 sed 's/^/| /' conftest.$ac_ext >&5
27222 cat >conftest.$ac_ext <<_ACEOF
27225 cat confdefs.h >>conftest.$ac_ext
27226 cat >>conftest.$ac_ext <<_ACEOF
27227 /* end confdefs.h. */
27232 extern int gethostbyname_r (const char *,
27246 rm -f conftest.$ac_objext
27247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27248 (eval $ac_compile) 2>conftest.er1
27250 grep -v '^ *+' conftest.er1 >conftest.err
27252 cat conftest.err >&5
27253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27254 (exit $ac_status); } &&
27255 { ac_try='test -z "$ac_c_werror_flag"
27256 || test ! -s conftest.err'
27257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27258 (eval $ac_try) 2>&5
27260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261 (exit $ac_status); }; } &&
27262 { ac_try='test -s conftest.$ac_objext'
27263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27264 (eval $ac_try) 2>&5
27266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27267 (exit $ac_status); }; }; then
27269 HOST_R_ARGS="#define HOST_R_ARGS char *buf, size_t buflen, struct hostent **answerp, int *h_errnop"
27270 HOST_R_BAD="#define HOST_R_BAD ERANGE"
27271 HOST_R_COPY="#define HOST_R_COPY buf, buflen"
27272 HOST_R_COPY_ARGS="#define HOST_R_COPY_ARGS char *buf, int buflen"
27273 HOST_R_ERRNO="#define HOST_R_ERRNO *h_errnop = h_errno"
27274 HOST_R_OK="#define HOST_R_OK 0"
27275 HOST_R_RETURN="#define HOST_R_RETURN int"
27276 HOST_R_SETANSWER="#define HOST_R_SETANSWER 1"
27277 HOSTENT_DATA="#undef HOSTENT_DATA"
27280 echo "$as_me: failed program was:" >&5
27281 sed 's/^/| /' conftest.$ac_ext >&5
27284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27291 HOST_R_ARGS="#define HOST_R_ARGS char *buf, int buflen, int *h_errnop"
27292 HOST_R_BAD="#define HOST_R_BAD NULL"
27293 HOST_R_COPY="#define HOST_R_COPY buf, buflen"
27294 HOST_R_COPY_ARGS="#define HOST_R_COPY_ARGS char *buf, int buflen"
27295 HOST_R_ERRNO="#define HOST_R_ERRNO *h_errnop = h_errno"
27296 HOST_R_OK="#define HOST_R_OK hptr"
27297 HOST_R_RETURN="#define HOST_R_RETURN struct hostent *"
27298 HOST_R_SETANSWER="#undef HOST_R_SETANSWER"
27299 HOSTENT_DATA="#undef HOSTENT_DATA"
27318 echo "$as_me:$LINENO: checking for endhostent_r" >&5
27319 echo $ECHO_N "checking for endhostent_r... $ECHO_C" >&6
27320 if test "${ac_cv_func_endhostent_r+set}" = set; then
27321 echo $ECHO_N "(cached) $ECHO_C" >&6
27323 cat >conftest.$ac_ext <<_ACEOF
27326 cat confdefs.h >>conftest.$ac_ext
27327 cat >>conftest.$ac_ext <<_ACEOF
27328 /* end confdefs.h. */
27329 /* Define endhostent_r to an innocuous variant, in case <limits.h> declares endhostent_r.
27330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27331 #define endhostent_r innocuous_endhostent_r
27333 /* System header to define __stub macros and hopefully few prototypes,
27334 which can conflict with char endhostent_r (); below.
27335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27336 <limits.h> exists even on freestanding compilers. */
27339 # include <limits.h>
27341 # include <assert.h>
27344 #undef endhostent_r
27346 /* Override any gcc2 internal prototype to avoid an error. */
27351 /* We use char because int might match the return type of a gcc2
27352 builtin and then its argument prototype would still apply. */
27353 char endhostent_r ();
27354 /* The GNU C library defines this for functions which it implements
27355 to always fail with ENOSYS. Some functions are actually named
27356 something starting with __ and the normal name is an alias. */
27357 #if defined (__stub_endhostent_r) || defined (__stub___endhostent_r)
27360 char (*f) () = endhostent_r;
27369 return f != endhostent_r;
27374 rm -f conftest.$ac_objext conftest$ac_exeext
27375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27376 (eval $ac_link) 2>conftest.er1
27378 grep -v '^ *+' conftest.er1 >conftest.err
27380 cat conftest.err >&5
27381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382 (exit $ac_status); } &&
27383 { ac_try='test -z "$ac_c_werror_flag"
27384 || test ! -s conftest.err'
27385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27386 (eval $ac_try) 2>&5
27388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27389 (exit $ac_status); }; } &&
27390 { ac_try='test -s conftest$ac_exeext'
27391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27392 (eval $ac_try) 2>&5
27394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395 (exit $ac_status); }; }; then
27396 ac_cv_func_endhostent_r=yes
27398 echo "$as_me: failed program was:" >&5
27399 sed 's/^/| /' conftest.$ac_ext >&5
27401 ac_cv_func_endhostent_r=no
27403 rm -f conftest.err conftest.$ac_objext \
27404 conftest$ac_exeext conftest.$ac_ext
27406 echo "$as_me:$LINENO: result: $ac_cv_func_endhostent_r" >&5
27407 echo "${ECHO_T}$ac_cv_func_endhostent_r" >&6
27408 if test $ac_cv_func_endhostent_r = yes; then
27409 cat >conftest.$ac_ext <<_ACEOF
27412 cat confdefs.h >>conftest.$ac_ext
27413 cat >>conftest.$ac_ext <<_ACEOF
27414 /* end confdefs.h. */
27421 int endhostent_r(struct hostent_data *buffer);
27431 rm -f conftest.$ac_objext
27432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27433 (eval $ac_compile) 2>conftest.er1
27435 grep -v '^ *+' conftest.er1 >conftest.err
27437 cat conftest.err >&5
27438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439 (exit $ac_status); } &&
27440 { ac_try='test -z "$ac_c_werror_flag"
27441 || test ! -s conftest.err'
27442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27443 (eval $ac_try) 2>&5
27445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27446 (exit $ac_status); }; } &&
27447 { ac_try='test -s conftest.$ac_objext'
27448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27449 (eval $ac_try) 2>&5
27451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27452 (exit $ac_status); }; }; then
27453 HOST_R_END_RESULT="#define HOST_R_END_RESULT(x) return (x)"
27454 HOST_R_END_RETURN="#define HOST_R_END_RETURN int"
27455 HOST_R_ENT_ARGS="#define HOST_R_ENT_ARGS struct hostent_data *hdptr"
27458 echo "$as_me: failed program was:" >&5
27459 sed 's/^/| /' conftest.$ac_ext >&5
27461 cat >conftest.$ac_ext <<_ACEOF
27464 cat confdefs.h >>conftest.$ac_ext
27465 cat >>conftest.$ac_ext <<_ACEOF
27466 /* end confdefs.h. */
27473 extern void endhostent_r(struct hostent_data *ht_data);
27483 rm -f conftest.$ac_objext
27484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27485 (eval $ac_compile) 2>conftest.er1
27487 grep -v '^ *+' conftest.er1 >conftest.err
27489 cat conftest.err >&5
27490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27491 (exit $ac_status); } &&
27492 { ac_try='test -z "$ac_c_werror_flag"
27493 || test ! -s conftest.err'
27494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27495 (eval $ac_try) 2>&5
27497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498 (exit $ac_status); }; } &&
27499 { ac_try='test -s conftest.$ac_objext'
27500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27501 (eval $ac_try) 2>&5
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504 (exit $ac_status); }; }; then
27506 HOST_R_END_RESULT="#define HOST_R_END_RESULT(x)"
27507 HOST_R_END_RETURN="#define HOST_R_END_RETURN void"
27508 HOST_R_ENT_ARGS="#define HOST_R_ENT_ARGS struct hostent_data *hdptr"
27511 echo "$as_me: failed program was:" >&5
27512 sed 's/^/| /' conftest.$ac_ext >&5
27514 cat >conftest.$ac_ext <<_ACEOF
27517 cat confdefs.h >>conftest.$ac_ext
27518 cat >>conftest.$ac_ext <<_ACEOF
27519 /* end confdefs.h. */
27526 extern void endhostent_r(void);
27536 rm -f conftest.$ac_objext
27537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27538 (eval $ac_compile) 2>conftest.er1
27540 grep -v '^ *+' conftest.er1 >conftest.err
27542 cat conftest.err >&5
27543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544 (exit $ac_status); } &&
27545 { ac_try='test -z "$ac_c_werror_flag"
27546 || test ! -s conftest.err'
27547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27548 (eval $ac_try) 2>&5
27550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27551 (exit $ac_status); }; } &&
27552 { ac_try='test -s conftest.$ac_objext'
27553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27554 (eval $ac_try) 2>&5
27556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27557 (exit $ac_status); }; }; then
27559 HOST_R_END_RESULT="#define HOST_R_END_RESULT(x) /*empty*/"
27560 HOST_R_END_RETURN="#define HOST_R_END_RETURN void"
27561 HOST_R_ENT_ARGS="#undef HOST_R_ENT_ARGS /*empty*/"
27564 echo "$as_me: failed program was:" >&5
27565 sed 's/^/| /' conftest.$ac_ext >&5
27568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27577 HOST_R_END_RESULT="#define HOST_R_END_RESULT(x) /*empty*/"
27578 HOST_R_END_RETURN="#define HOST_R_END_RETURN void"
27579 HOST_R_ENT_ARGS="#undef HOST_R_ENT_ARGS /*empty*/"
27592 echo "$as_me:$LINENO: checking for sethostent_r" >&5
27593 echo $ECHO_N "checking for sethostent_r... $ECHO_C" >&6
27594 if test "${ac_cv_func_sethostent_r+set}" = set; then
27595 echo $ECHO_N "(cached) $ECHO_C" >&6
27597 cat >conftest.$ac_ext <<_ACEOF
27600 cat confdefs.h >>conftest.$ac_ext
27601 cat >>conftest.$ac_ext <<_ACEOF
27602 /* end confdefs.h. */
27603 /* Define sethostent_r to an innocuous variant, in case <limits.h> declares sethostent_r.
27604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27605 #define sethostent_r innocuous_sethostent_r
27607 /* System header to define __stub macros and hopefully few prototypes,
27608 which can conflict with char sethostent_r (); below.
27609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27610 <limits.h> exists even on freestanding compilers. */
27613 # include <limits.h>
27615 # include <assert.h>
27618 #undef sethostent_r
27620 /* Override any gcc2 internal prototype to avoid an error. */
27625 /* We use char because int might match the return type of a gcc2
27626 builtin and then its argument prototype would still apply. */
27627 char sethostent_r ();
27628 /* The GNU C library defines this for functions which it implements
27629 to always fail with ENOSYS. Some functions are actually named
27630 something starting with __ and the normal name is an alias. */
27631 #if defined (__stub_sethostent_r) || defined (__stub___sethostent_r)
27634 char (*f) () = sethostent_r;
27643 return f != sethostent_r;
27648 rm -f conftest.$ac_objext conftest$ac_exeext
27649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27650 (eval $ac_link) 2>conftest.er1
27652 grep -v '^ *+' conftest.er1 >conftest.err
27654 cat conftest.err >&5
27655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656 (exit $ac_status); } &&
27657 { ac_try='test -z "$ac_c_werror_flag"
27658 || test ! -s conftest.err'
27659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27660 (eval $ac_try) 2>&5
27662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663 (exit $ac_status); }; } &&
27664 { ac_try='test -s conftest$ac_exeext'
27665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27666 (eval $ac_try) 2>&5
27668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27669 (exit $ac_status); }; }; then
27670 ac_cv_func_sethostent_r=yes
27672 echo "$as_me: failed program was:" >&5
27673 sed 's/^/| /' conftest.$ac_ext >&5
27675 ac_cv_func_sethostent_r=no
27677 rm -f conftest.err conftest.$ac_objext \
27678 conftest$ac_exeext conftest.$ac_ext
27680 echo "$as_me:$LINENO: result: $ac_cv_func_sethostent_r" >&5
27681 echo "${ECHO_T}$ac_cv_func_sethostent_r" >&6
27682 if test $ac_cv_func_sethostent_r = yes; then
27683 cat >conftest.$ac_ext <<_ACEOF
27686 cat confdefs.h >>conftest.$ac_ext
27687 cat >>conftest.$ac_ext <<_ACEOF
27688 /* end confdefs.h. */
27695 extern void sethostent_r(int flag, struct hostent_data *ht_data);
27704 rm -f conftest.$ac_objext
27705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27706 (eval $ac_compile) 2>conftest.er1
27708 grep -v '^ *+' conftest.er1 >conftest.err
27710 cat conftest.err >&5
27711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712 (exit $ac_status); } &&
27713 { ac_try='test -z "$ac_c_werror_flag"
27714 || test ! -s conftest.err'
27715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27716 (eval $ac_try) 2>&5
27718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27719 (exit $ac_status); }; } &&
27720 { ac_try='test -s conftest.$ac_objext'
27721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27722 (eval $ac_try) 2>&5
27724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725 (exit $ac_status); }; }; then
27726 HOST_R_SET_RESULT="#undef HOST_R_SET_RESULT /*empty*/"
27727 HOST_R_SET_RETURN="#define HOST_R_SET_RETURN void"
27729 echo "$as_me: failed program was:" >&5
27730 sed 's/^/| /' conftest.$ac_ext >&5
27732 cat >conftest.$ac_ext <<_ACEOF
27735 cat confdefs.h >>conftest.$ac_ext
27736 cat >>conftest.$ac_ext <<_ACEOF
27737 /* end confdefs.h. */
27744 extern int sethostent_r(int flag, struct hostent_data *ht_data);
27753 rm -f conftest.$ac_objext
27754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27755 (eval $ac_compile) 2>conftest.er1
27757 grep -v '^ *+' conftest.er1 >conftest.err
27759 cat conftest.err >&5
27760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27761 (exit $ac_status); } &&
27762 { ac_try='test -z "$ac_c_werror_flag"
27763 || test ! -s conftest.err'
27764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27765 (eval $ac_try) 2>&5
27767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27768 (exit $ac_status); }; } &&
27769 { ac_try='test -s conftest.$ac_objext'
27770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27771 (eval $ac_try) 2>&5
27773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27774 (exit $ac_status); }; }; then
27775 HOST_R_SET_RESULT="#define HOST_R_SET_RESULT 0"
27776 HOST_R_SET_RETURN="#define HOST_R_SET_RETURN int"
27778 echo "$as_me: failed program was:" >&5
27779 sed 's/^/| /' conftest.$ac_ext >&5
27781 cat >conftest.$ac_ext <<_ACEOF
27784 cat confdefs.h >>conftest.$ac_ext
27785 cat >>conftest.$ac_ext <<_ACEOF
27786 /* end confdefs.h. */
27793 void sethostent_r (int);
27802 rm -f conftest.$ac_objext
27803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27804 (eval $ac_compile) 2>conftest.er1
27806 grep -v '^ *+' conftest.er1 >conftest.err
27808 cat conftest.err >&5
27809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810 (exit $ac_status); } &&
27811 { ac_try='test -z "$ac_c_werror_flag"
27812 || test ! -s conftest.err'
27813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27814 (eval $ac_try) 2>&5
27816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27817 (exit $ac_status); }; } &&
27818 { ac_try='test -s conftest.$ac_objext'
27819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27820 (eval $ac_try) 2>&5
27822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27823 (exit $ac_status); }; }; then
27824 HOST_R_SET_RESULT="#undef HOST_R_SET_RESULT"
27825 HOST_R_SET_RETURN="#define HOST_R_SET_RETURN void"
27827 echo "$as_me: failed program was:" >&5
27828 sed 's/^/| /' conftest.$ac_ext >&5
27831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27840 HOST_R_SET_RESULT="#undef HOST_R_SET_RESULT"
27841 HOST_R_SET_RETURN="#define HOST_R_SET_RETURN void"
27850 echo "$as_me:$LINENO: checking struct passwd element pw_class" >&5
27851 echo $ECHO_N "checking struct passwd element pw_class... $ECHO_C" >&6
27852 cat >conftest.$ac_ext <<_ACEOF
27855 cat confdefs.h >>conftest.$ac_ext
27856 cat >>conftest.$ac_ext <<_ACEOF
27857 /* end confdefs.h. */
27859 #include <sys/types.h>
27865 struct passwd *pw; pw->pw_class = "";
27870 rm -f conftest.$ac_objext
27871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27872 (eval $ac_compile) 2>conftest.er1
27874 grep -v '^ *+' conftest.er1 >conftest.err
27876 cat conftest.err >&5
27877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878 (exit $ac_status); } &&
27879 { ac_try='test -z "$ac_c_werror_flag"
27880 || test ! -s conftest.err'
27881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27882 (eval $ac_try) 2>&5
27884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885 (exit $ac_status); }; } &&
27886 { ac_try='test -s conftest.$ac_objext'
27887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27888 (eval $ac_try) 2>&5
27890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891 (exit $ac_status); }; }; then
27892 echo "$as_me:$LINENO: result: yes" >&5
27893 echo "${ECHO_T}yes" >&6
27894 cat >>confdefs.h <<\_ACEOF
27895 #define HAS_PW_CLASS 1
27900 echo "$as_me: failed program was:" >&5
27901 sed 's/^/| /' conftest.$ac_ext >&5
27903 echo "$as_me:$LINENO: result: no" >&5
27904 echo "${ECHO_T}no" >&6
27907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27909 cat >conftest.$ac_ext <<_ACEOF
27912 cat confdefs.h >>conftest.$ac_ext
27913 cat >>conftest.$ac_ext <<_ACEOF
27914 /* end confdefs.h. */
27916 #include <sys/types.h>
27929 rm -f conftest.$ac_objext
27930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27931 (eval $ac_compile) 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_objext'
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 SETPWENT_VOID="#define SETPWENT_VOID 1"
27954 echo "$as_me: failed program was:" >&5
27955 sed 's/^/| /' conftest.$ac_ext >&5
27957 SETPWENT_VOID="#undef SETPWENT_VOID"
27960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27963 cat >conftest.$ac_ext <<_ACEOF
27966 cat confdefs.h >>conftest.$ac_ext
27967 cat >>conftest.$ac_ext <<_ACEOF
27968 /* end confdefs.h. */
27970 #include <sys/types.h>
27983 rm -f conftest.$ac_objext
27984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27985 (eval $ac_compile) 2>conftest.er1
27987 grep -v '^ *+' conftest.er1 >conftest.err
27989 cat conftest.err >&5
27990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991 (exit $ac_status); } &&
27992 { ac_try='test -z "$ac_c_werror_flag"
27993 || test ! -s conftest.err'
27994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27995 (eval $ac_try) 2>&5
27997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998 (exit $ac_status); }; } &&
27999 { ac_try='test -s conftest.$ac_objext'
28000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28001 (eval $ac_try) 2>&5
28003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28004 (exit $ac_status); }; }; then
28005 SETGRENT_VOID="#define SETGRENT_VOID 1"
28008 echo "$as_me: failed program was:" >&5
28009 sed 's/^/| /' conftest.$ac_ext >&5
28011 SETGRENT_VOID="#undef SETGRENT_VOID"
28014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28021 echo "$as_me:$LINENO: checking for getnetgrent_r" >&5
28022 echo $ECHO_N "checking for getnetgrent_r... $ECHO_C" >&6
28023 if test "${ac_cv_func_getnetgrent_r+set}" = set; then
28024 echo $ECHO_N "(cached) $ECHO_C" >&6
28026 cat >conftest.$ac_ext <<_ACEOF
28029 cat confdefs.h >>conftest.$ac_ext
28030 cat >>conftest.$ac_ext <<_ACEOF
28031 /* end confdefs.h. */
28032 /* Define getnetgrent_r to an innocuous variant, in case <limits.h> declares getnetgrent_r.
28033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28034 #define getnetgrent_r innocuous_getnetgrent_r
28036 /* System header to define __stub macros and hopefully few prototypes,
28037 which can conflict with char getnetgrent_r (); below.
28038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28039 <limits.h> exists even on freestanding compilers. */
28042 # include <limits.h>
28044 # include <assert.h>
28047 #undef getnetgrent_r
28049 /* Override any gcc2 internal prototype to avoid an error. */
28054 /* We use char because int might match the return type of a gcc2
28055 builtin and then its argument prototype would still apply. */
28056 char getnetgrent_r ();
28057 /* The GNU C library defines this for functions which it implements
28058 to always fail with ENOSYS. Some functions are actually named
28059 something starting with __ and the normal name is an alias. */
28060 #if defined (__stub_getnetgrent_r) || defined (__stub___getnetgrent_r)
28063 char (*f) () = getnetgrent_r;
28072 return f != getnetgrent_r;
28077 rm -f conftest.$ac_objext conftest$ac_exeext
28078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28079 (eval $ac_link) 2>conftest.er1
28081 grep -v '^ *+' conftest.er1 >conftest.err
28083 cat conftest.err >&5
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085 (exit $ac_status); } &&
28086 { ac_try='test -z "$ac_c_werror_flag"
28087 || test ! -s conftest.err'
28088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28089 (eval $ac_try) 2>&5
28091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092 (exit $ac_status); }; } &&
28093 { ac_try='test -s conftest$ac_exeext'
28094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28095 (eval $ac_try) 2>&5
28097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28098 (exit $ac_status); }; }; then
28099 ac_cv_func_getnetgrent_r=yes
28101 echo "$as_me: failed program was:" >&5
28102 sed 's/^/| /' conftest.$ac_ext >&5
28104 ac_cv_func_getnetgrent_r=no
28106 rm -f conftest.err conftest.$ac_objext \
28107 conftest$ac_exeext conftest.$ac_ext
28109 echo "$as_me:$LINENO: result: $ac_cv_func_getnetgrent_r" >&5
28110 echo "${ECHO_T}$ac_cv_func_getnetgrent_r" >&6
28111 if test $ac_cv_func_getnetgrent_r = yes; then
28112 cat >conftest.$ac_ext <<_ACEOF
28115 cat confdefs.h >>conftest.$ac_ext
28116 cat >>conftest.$ac_ext <<_ACEOF
28117 /* end confdefs.h. */
28122 int getnetgrent_r(char **m, char **u, char **d, char *b, int l) {}
28133 rm -f conftest.$ac_objext
28134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28135 (eval $ac_compile) 2>conftest.er1
28137 grep -v '^ *+' conftest.er1 >conftest.err
28139 cat conftest.err >&5
28140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28141 (exit $ac_status); } &&
28142 { ac_try='test -z "$ac_c_werror_flag"
28143 || test ! -s conftest.err'
28144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28145 (eval $ac_try) 2>&5
28147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148 (exit $ac_status); }; } &&
28149 { ac_try='test -s conftest.$ac_objext'
28150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28151 (eval $ac_try) 2>&5
28153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154 (exit $ac_status); }; }; then
28156 NGR_R_ARGS="#define NGR_R_ARGS char *buf, int buflen"
28157 NGR_R_BAD="#define NGR_R_BAD (0)"
28158 NGR_R_COPY="#define NGR_R_COPY buf, buflen"
28159 NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS"
28160 NGR_R_OK="#define NGR_R_OK 1"
28161 NGR_R_RETURN="#define NGR_R_RETURN int"
28165 echo "$as_me: failed program was:" >&5
28166 sed 's/^/| /' conftest.$ac_ext >&5
28168 cat >conftest.$ac_ext <<_ACEOF
28171 cat confdefs.h >>conftest.$ac_ext
28172 cat >>conftest.$ac_ext <<_ACEOF
28173 /* end confdefs.h. */
28178 int getnetgrent_r(char **m, char **u, char **d, char *b, size_t l) {}
28189 rm -f conftest.$ac_objext
28190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28191 (eval $ac_compile) 2>conftest.er1
28193 grep -v '^ *+' conftest.er1 >conftest.err
28195 cat conftest.err >&5
28196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197 (exit $ac_status); } &&
28198 { ac_try='test -z "$ac_c_werror_flag"
28199 || test ! -s conftest.err'
28200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28201 (eval $ac_try) 2>&5
28203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28204 (exit $ac_status); }; } &&
28205 { ac_try='test -s conftest.$ac_objext'
28206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28207 (eval $ac_try) 2>&5
28209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28210 (exit $ac_status); }; }; then
28212 NGR_R_ARGS="#define NGR_R_ARGS char *buf, size_t buflen"
28213 NGR_R_BAD="#define NGR_R_BAD (0)"
28214 NGR_R_COPY="#define NGR_R_COPY buf, buflen"
28215 NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS"
28216 NGR_R_OK="#define NGR_R_OK 1"
28217 NGR_R_RETURN="#define NGR_R_RETURN int"
28221 echo "$as_me: failed program was:" >&5
28222 sed 's/^/| /' conftest.$ac_ext >&5
28224 cat >conftest.$ac_ext <<_ACEOF
28227 cat confdefs.h >>conftest.$ac_ext
28228 cat >>conftest.$ac_ext <<_ACEOF
28229 /* end confdefs.h. */
28234 extern int getnetgrent_r( char **, char **, char **, void **);
28245 rm -f conftest.$ac_objext
28246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28247 (eval $ac_compile) 2>conftest.er1
28249 grep -v '^ *+' conftest.er1 >conftest.err
28251 cat conftest.err >&5
28252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28253 (exit $ac_status); } &&
28254 { ac_try='test -z "$ac_c_werror_flag"
28255 || test ! -s conftest.err'
28256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28257 (eval $ac_try) 2>&5
28259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260 (exit $ac_status); }; } &&
28261 { ac_try='test -s conftest.$ac_objext'
28262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28263 (eval $ac_try) 2>&5
28265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266 (exit $ac_status); }; }; then
28268 NGR_R_ARGS="#define NGR_R_ARGS void **buf"
28269 NGR_R_BAD="#define NGR_R_BAD (0)"
28270 NGR_R_COPY="#define NGR_R_COPY buf"
28271 NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS"
28272 NGR_R_OK="#define NGR_R_OK 1"
28273 NGR_R_RETURN="#define NGR_R_RETURN int"
28274 NGR_R_PRIVATE="#define NGR_R_PRIVATE 1"
28278 echo "$as_me: failed program was:" >&5
28279 sed 's/^/| /' conftest.$ac_ext >&5
28282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28291 NGR_R_ARGS="#define NGR_R_ARGS char *buf, int buflen"
28292 NGR_R_BAD="#define NGR_R_BAD (0)"
28293 NGR_R_COPY="#define NGR_R_COPY buf, buflen"
28294 NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS"
28295 NGR_R_OK="#define NGR_R_OK 1"
28296 NGR_R_RETURN="#define NGR_R_RETURN int"
28309 echo "$as_me:$LINENO: checking for endnetgrent_r" >&5
28310 echo $ECHO_N "checking for endnetgrent_r... $ECHO_C" >&6
28311 if test "${ac_cv_func_endnetgrent_r+set}" = set; then
28312 echo $ECHO_N "(cached) $ECHO_C" >&6
28314 cat >conftest.$ac_ext <<_ACEOF
28317 cat confdefs.h >>conftest.$ac_ext
28318 cat >>conftest.$ac_ext <<_ACEOF
28319 /* end confdefs.h. */
28320 /* Define endnetgrent_r to an innocuous variant, in case <limits.h> declares endnetgrent_r.
28321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28322 #define endnetgrent_r innocuous_endnetgrent_r
28324 /* System header to define __stub macros and hopefully few prototypes,
28325 which can conflict with char endnetgrent_r (); below.
28326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28327 <limits.h> exists even on freestanding compilers. */
28330 # include <limits.h>
28332 # include <assert.h>
28335 #undef endnetgrent_r
28337 /* Override any gcc2 internal prototype to avoid an error. */
28342 /* We use char because int might match the return type of a gcc2
28343 builtin and then its argument prototype would still apply. */
28344 char endnetgrent_r ();
28345 /* The GNU C library defines this for functions which it implements
28346 to always fail with ENOSYS. Some functions are actually named
28347 something starting with __ and the normal name is an alias. */
28348 #if defined (__stub_endnetgrent_r) || defined (__stub___endnetgrent_r)
28351 char (*f) () = endnetgrent_r;
28360 return f != endnetgrent_r;
28365 rm -f conftest.$ac_objext conftest$ac_exeext
28366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28367 (eval $ac_link) 2>conftest.er1
28369 grep -v '^ *+' conftest.er1 >conftest.err
28371 cat conftest.err >&5
28372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28373 (exit $ac_status); } &&
28374 { ac_try='test -z "$ac_c_werror_flag"
28375 || test ! -s conftest.err'
28376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28377 (eval $ac_try) 2>&5
28379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28380 (exit $ac_status); }; } &&
28381 { ac_try='test -s conftest$ac_exeext'
28382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28383 (eval $ac_try) 2>&5
28385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28386 (exit $ac_status); }; }; then
28387 ac_cv_func_endnetgrent_r=yes
28389 echo "$as_me: failed program was:" >&5
28390 sed 's/^/| /' conftest.$ac_ext >&5
28392 ac_cv_func_endnetgrent_r=no
28394 rm -f conftest.err conftest.$ac_objext \
28395 conftest$ac_exeext conftest.$ac_ext
28397 echo "$as_me:$LINENO: result: $ac_cv_func_endnetgrent_r" >&5
28398 echo "${ECHO_T}$ac_cv_func_endnetgrent_r" >&6
28399 if test $ac_cv_func_endnetgrent_r = yes; then
28400 NGR_R_END_RESULT="#define NGR_R_END_RESULT(x) return (x)"
28401 NGR_R_END_RETURN="#define NGR_R_END_RETURN int"
28402 NGR_R_ENT_ARGS="#define NGR_R_ENT_ARGS NGR_R_ARGS"
28405 NGR_R_END_RESULT="#define NGR_R_END_RESULT(x) /*empty*/"
28406 NGR_R_END_RETURN="#define NGR_R_END_RETURN void"
28407 NGR_R_ENT_ARGS="#undef NGR_R_ENT_ARGS /*empty*/"
28408 cat >>confdefs.h <<\_ACEOF
28409 #define NEED_ENDNETGRENT_R 1
28419 echo "$as_me:$LINENO: checking for setnetgrent_r" >&5
28420 echo $ECHO_N "checking for setnetgrent_r... $ECHO_C" >&6
28421 if test "${ac_cv_func_setnetgrent_r+set}" = set; then
28422 echo $ECHO_N "(cached) $ECHO_C" >&6
28424 cat >conftest.$ac_ext <<_ACEOF
28427 cat confdefs.h >>conftest.$ac_ext
28428 cat >>conftest.$ac_ext <<_ACEOF
28429 /* end confdefs.h. */
28430 /* Define setnetgrent_r to an innocuous variant, in case <limits.h> declares setnetgrent_r.
28431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28432 #define setnetgrent_r innocuous_setnetgrent_r
28434 /* System header to define __stub macros and hopefully few prototypes,
28435 which can conflict with char setnetgrent_r (); below.
28436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28437 <limits.h> exists even on freestanding compilers. */
28440 # include <limits.h>
28442 # include <assert.h>
28445 #undef setnetgrent_r
28447 /* Override any gcc2 internal prototype to avoid an error. */
28452 /* We use char because int might match the return type of a gcc2
28453 builtin and then its argument prototype would still apply. */
28454 char setnetgrent_r ();
28455 /* The GNU C library defines this for functions which it implements
28456 to always fail with ENOSYS. Some functions are actually named
28457 something starting with __ and the normal name is an alias. */
28458 #if defined (__stub_setnetgrent_r) || defined (__stub___setnetgrent_r)
28461 char (*f) () = setnetgrent_r;
28470 return f != setnetgrent_r;
28475 rm -f conftest.$ac_objext conftest$ac_exeext
28476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28477 (eval $ac_link) 2>conftest.er1
28479 grep -v '^ *+' conftest.er1 >conftest.err
28481 cat conftest.err >&5
28482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28483 (exit $ac_status); } &&
28484 { ac_try='test -z "$ac_c_werror_flag"
28485 || test ! -s conftest.err'
28486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28487 (eval $ac_try) 2>&5
28489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28490 (exit $ac_status); }; } &&
28491 { ac_try='test -s conftest$ac_exeext'
28492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28493 (eval $ac_try) 2>&5
28495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28496 (exit $ac_status); }; }; then
28497 ac_cv_func_setnetgrent_r=yes
28499 echo "$as_me: failed program was:" >&5
28500 sed 's/^/| /' conftest.$ac_ext >&5
28502 ac_cv_func_setnetgrent_r=no
28504 rm -f conftest.err conftest.$ac_objext \
28505 conftest$ac_exeext conftest.$ac_ext
28507 echo "$as_me:$LINENO: result: $ac_cv_func_setnetgrent_r" >&5
28508 echo "${ECHO_T}$ac_cv_func_setnetgrent_r" >&6
28509 if test $ac_cv_func_setnetgrent_r = yes; then
28513 NGR_R_SET_RESULT="#undef NGR_R_SET_RESULT /*empty*/"
28514 NGR_R_SET_RETURN="#define NGR_R_SET_RETURN void"
28517 NGR_R_SET_RESULT="#define NGR_R_SET_RESULT NGR_R_OK"
28518 NGR_R_SET_RETURN="#define NGR_R_SET_RETURN int"
28524 NGR_R_SET_RESULT="#undef NGR_R_SET_RESULT /*empty*/"
28525 NGR_R_SET_RETURN="#define NGR_R_SET_RETURN void"
28532 echo "$as_me:$LINENO: checking for innetgr_r" >&5
28533 echo $ECHO_N "checking for innetgr_r... $ECHO_C" >&6
28534 if test "${ac_cv_func_innetgr_r+set}" = set; then
28535 echo $ECHO_N "(cached) $ECHO_C" >&6
28537 cat >conftest.$ac_ext <<_ACEOF
28540 cat confdefs.h >>conftest.$ac_ext
28541 cat >>conftest.$ac_ext <<_ACEOF
28542 /* end confdefs.h. */
28543 /* Define innetgr_r to an innocuous variant, in case <limits.h> declares innetgr_r.
28544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28545 #define innetgr_r innocuous_innetgr_r
28547 /* System header to define __stub macros and hopefully few prototypes,
28548 which can conflict with char innetgr_r (); below.
28549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28550 <limits.h> exists even on freestanding compilers. */
28553 # include <limits.h>
28555 # include <assert.h>
28560 /* Override any gcc2 internal prototype to avoid an error. */
28565 /* We use char because int might match the return type of a gcc2
28566 builtin and then its argument prototype would still apply. */
28568 /* The GNU C library defines this for functions which it implements
28569 to always fail with ENOSYS. Some functions are actually named
28570 something starting with __ and the normal name is an alias. */
28571 #if defined (__stub_innetgr_r) || defined (__stub___innetgr_r)
28574 char (*f) () = innetgr_r;
28583 return f != innetgr_r;
28588 rm -f conftest.$ac_objext conftest$ac_exeext
28589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28590 (eval $ac_link) 2>conftest.er1
28592 grep -v '^ *+' conftest.er1 >conftest.err
28594 cat conftest.err >&5
28595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596 (exit $ac_status); } &&
28597 { ac_try='test -z "$ac_c_werror_flag"
28598 || test ! -s conftest.err'
28599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28600 (eval $ac_try) 2>&5
28602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603 (exit $ac_status); }; } &&
28604 { ac_try='test -s conftest$ac_exeext'
28605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28606 (eval $ac_try) 2>&5
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); }; }; then
28610 ac_cv_func_innetgr_r=yes
28612 echo "$as_me: failed program was:" >&5
28613 sed 's/^/| /' conftest.$ac_ext >&5
28615 ac_cv_func_innetgr_r=no
28617 rm -f conftest.err conftest.$ac_objext \
28618 conftest$ac_exeext conftest.$ac_ext
28620 echo "$as_me:$LINENO: result: $ac_cv_func_innetgr_r" >&5
28621 echo "${ECHO_T}$ac_cv_func_innetgr_r" >&6
28622 if test $ac_cv_func_innetgr_r = yes; then
28625 cat >>confdefs.h <<\_ACEOF
28626 #define NEED_INNETGR_R 1
28636 echo "$as_me:$LINENO: checking for getprotoent_r" >&5
28637 echo $ECHO_N "checking for getprotoent_r... $ECHO_C" >&6
28638 if test "${ac_cv_func_getprotoent_r+set}" = set; then
28639 echo $ECHO_N "(cached) $ECHO_C" >&6
28641 cat >conftest.$ac_ext <<_ACEOF
28644 cat confdefs.h >>conftest.$ac_ext
28645 cat >>conftest.$ac_ext <<_ACEOF
28646 /* end confdefs.h. */
28647 /* Define getprotoent_r to an innocuous variant, in case <limits.h> declares getprotoent_r.
28648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28649 #define getprotoent_r innocuous_getprotoent_r
28651 /* System header to define __stub macros and hopefully few prototypes,
28652 which can conflict with char getprotoent_r (); below.
28653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28654 <limits.h> exists even on freestanding compilers. */
28657 # include <limits.h>
28659 # include <assert.h>
28662 #undef getprotoent_r
28664 /* Override any gcc2 internal prototype to avoid an error. */
28669 /* We use char because int might match the return type of a gcc2
28670 builtin and then its argument prototype would still apply. */
28671 char getprotoent_r ();
28672 /* The GNU C library defines this for functions which it implements
28673 to always fail with ENOSYS. Some functions are actually named
28674 something starting with __ and the normal name is an alias. */
28675 #if defined (__stub_getprotoent_r) || defined (__stub___getprotoent_r)
28678 char (*f) () = getprotoent_r;
28687 return f != getprotoent_r;
28692 rm -f conftest.$ac_objext conftest$ac_exeext
28693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28694 (eval $ac_link) 2>conftest.er1
28696 grep -v '^ *+' conftest.er1 >conftest.err
28698 cat conftest.err >&5
28699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28700 (exit $ac_status); } &&
28701 { ac_try='test -z "$ac_c_werror_flag"
28702 || test ! -s conftest.err'
28703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28704 (eval $ac_try) 2>&5
28706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28707 (exit $ac_status); }; } &&
28708 { ac_try='test -s conftest$ac_exeext'
28709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28710 (eval $ac_try) 2>&5
28712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28713 (exit $ac_status); }; }; then
28714 ac_cv_func_getprotoent_r=yes
28716 echo "$as_me: failed program was:" >&5
28717 sed 's/^/| /' conftest.$ac_ext >&5
28719 ac_cv_func_getprotoent_r=no
28721 rm -f conftest.err conftest.$ac_objext \
28722 conftest$ac_exeext conftest.$ac_ext
28724 echo "$as_me:$LINENO: result: $ac_cv_func_getprotoent_r" >&5
28725 echo "${ECHO_T}$ac_cv_func_getprotoent_r" >&6
28726 if test $ac_cv_func_getprotoent_r = yes; then
28727 cat >conftest.$ac_ext <<_ACEOF
28730 cat confdefs.h >>conftest.$ac_ext
28731 cat >>conftest.$ac_ext <<_ACEOF
28732 /* end confdefs.h. */
28737 struct protoent *getprotoent_r(struct protoent *result,
28738 char *buffer, int buflen) {}
28750 rm -f conftest.$ac_objext
28751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28752 (eval $ac_compile) 2>conftest.er1
28754 grep -v '^ *+' conftest.er1 >conftest.err
28756 cat conftest.err >&5
28757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28758 (exit $ac_status); } &&
28759 { ac_try='test -z "$ac_c_werror_flag"
28760 || test ! -s conftest.err'
28761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28762 (eval $ac_try) 2>&5
28764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28765 (exit $ac_status); }; } &&
28766 { ac_try='test -s conftest.$ac_objext'
28767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28768 (eval $ac_try) 2>&5
28770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771 (exit $ac_status); }; }; then
28773 PROTO_R_ARGS="#define PROTO_R_ARGS char *buf, int buflen"
28774 PROTO_R_BAD="#define PROTO_R_BAD NULL"
28775 PROTO_R_COPY="#define PROTO_R_COPY buf, buflen"
28776 PROTO_R_COPY_ARGS="#define PROTO_R_COPY_ARGS PROTO_R_ARGS"
28777 PROTO_R_OK="#define PROTO_R_OK pptr"
28778 PROTO_R_SETANSWER="#undef PROTO_R_SETANSWER"
28779 PROTO_R_RETURN="#define PROTO_R_RETURN struct protoent *"
28783 echo "$as_me: failed program was:" >&5
28784 sed 's/^/| /' conftest.$ac_ext >&5
28786 cat >conftest.$ac_ext <<_ACEOF
28789 cat confdefs.h >>conftest.$ac_ext
28790 cat >>conftest.$ac_ext <<_ACEOF
28791 /* end confdefs.h. */
28796 int getprotoent_r (struct protoent *, char *, size_t, struct protoent **);
28809 rm -f conftest.$ac_objext
28810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28811 (eval $ac_compile) 2>conftest.er1
28813 grep -v '^ *+' conftest.er1 >conftest.err
28815 cat conftest.err >&5
28816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28817 (exit $ac_status); } &&
28818 { ac_try='test -z "$ac_c_werror_flag"
28819 || test ! -s conftest.err'
28820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28821 (eval $ac_try) 2>&5
28823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28824 (exit $ac_status); }; } &&
28825 { ac_try='test -s conftest.$ac_objext'
28826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28827 (eval $ac_try) 2>&5
28829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830 (exit $ac_status); }; }; then
28832 PROTO_R_ARGS="#define PROTO_R_ARGS char *buf, size_t buflen, struct protoent **answerp"
28833 PROTO_R_BAD="#define PROTO_R_BAD ERANGE"
28834 PROTO_R_COPY="#define PROTO_R_COPY buf, buflen"
28835 PROTO_R_COPY_ARGS="#define PROTO_R_COPY_ARGS char *buf, size_t buflen"
28836 PROTO_R_OK="#define PROTO_R_OK 0"
28837 PROTO_R_SETANSWER="#define PROTO_R_SETANSWER 1"
28838 PROTO_R_RETURN="#define PROTO_R_RETURN int"
28842 echo "$as_me: failed program was:" >&5
28843 sed 's/^/| /' conftest.$ac_ext >&5
28846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28852 PROTO_R_ARGS="#define PROTO_R_ARGS char *buf, int buflen"
28853 PROTO_R_BAD="#define PROTO_R_BAD NULL"
28854 PROTO_R_COPY="#define PROTO_R_COPY buf, buflen"
28855 PROTO_R_COPY_ARGS="#define PROTO_R_COPY_ARGS PROTO_R_ARGS"
28856 PROTO_R_OK="#define PROTO_R_OK pptr"
28857 PROTO_R_SETANSWER="#undef PROTO_R_SETANSWER"
28858 PROTO_R_RETURN="#define PROTO_R_RETURN struct protoent *"
28875 echo "$as_me:$LINENO: checking for endprotoent_r" >&5
28876 echo $ECHO_N "checking for endprotoent_r... $ECHO_C" >&6
28877 if test "${ac_cv_func_endprotoent_r+set}" = set; then
28878 echo $ECHO_N "(cached) $ECHO_C" >&6
28880 cat >conftest.$ac_ext <<_ACEOF
28883 cat confdefs.h >>conftest.$ac_ext
28884 cat >>conftest.$ac_ext <<_ACEOF
28885 /* end confdefs.h. */
28886 /* Define endprotoent_r to an innocuous variant, in case <limits.h> declares endprotoent_r.
28887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28888 #define endprotoent_r innocuous_endprotoent_r
28890 /* System header to define __stub macros and hopefully few prototypes,
28891 which can conflict with char endprotoent_r (); below.
28892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28893 <limits.h> exists even on freestanding compilers. */
28896 # include <limits.h>
28898 # include <assert.h>
28901 #undef endprotoent_r
28903 /* Override any gcc2 internal prototype to avoid an error. */
28908 /* We use char because int might match the return type of a gcc2
28909 builtin and then its argument prototype would still apply. */
28910 char endprotoent_r ();
28911 /* The GNU C library defines this for functions which it implements
28912 to always fail with ENOSYS. Some functions are actually named
28913 something starting with __ and the normal name is an alias. */
28914 #if defined (__stub_endprotoent_r) || defined (__stub___endprotoent_r)
28917 char (*f) () = endprotoent_r;
28926 return f != endprotoent_r;
28931 rm -f conftest.$ac_objext conftest$ac_exeext
28932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28933 (eval $ac_link) 2>conftest.er1
28935 grep -v '^ *+' conftest.er1 >conftest.err
28937 cat conftest.err >&5
28938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28939 (exit $ac_status); } &&
28940 { ac_try='test -z "$ac_c_werror_flag"
28941 || test ! -s conftest.err'
28942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28943 (eval $ac_try) 2>&5
28945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28946 (exit $ac_status); }; } &&
28947 { ac_try='test -s conftest$ac_exeext'
28948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28949 (eval $ac_try) 2>&5
28951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952 (exit $ac_status); }; }; then
28953 ac_cv_func_endprotoent_r=yes
28955 echo "$as_me: failed program was:" >&5
28956 sed 's/^/| /' conftest.$ac_ext >&5
28958 ac_cv_func_endprotoent_r=no
28960 rm -f conftest.err conftest.$ac_objext \
28961 conftest$ac_exeext conftest.$ac_ext
28963 echo "$as_me:$LINENO: result: $ac_cv_func_endprotoent_r" >&5
28964 echo "${ECHO_T}$ac_cv_func_endprotoent_r" >&6
28965 if test $ac_cv_func_endprotoent_r = yes; then
28966 cat >conftest.$ac_ext <<_ACEOF
28969 cat confdefs.h >>conftest.$ac_ext
28970 cat >>conftest.$ac_ext <<_ACEOF
28971 /* end confdefs.h. */
28978 void endprotoent_r(void);
28989 rm -f conftest.$ac_objext
28990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28991 (eval $ac_compile) 2>conftest.er1
28993 grep -v '^ *+' conftest.er1 >conftest.err
28995 cat conftest.err >&5
28996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28997 (exit $ac_status); } &&
28998 { ac_try='test -z "$ac_c_werror_flag"
28999 || test ! -s conftest.err'
29000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29001 (eval $ac_try) 2>&5
29003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29004 (exit $ac_status); }; } &&
29005 { ac_try='test -s conftest.$ac_objext'
29006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29007 (eval $ac_try) 2>&5
29009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010 (exit $ac_status); }; }; then
29012 PROTO_R_END_RESULT="#define PROTO_R_END_RESULT(x) /*empty*/"
29013 PROTO_R_END_RETURN="#define PROTO_R_END_RETURN void"
29014 PROTO_R_ENT_ARGS="#undef PROTO_R_ENT_ARGS"
29018 echo "$as_me: failed program was:" >&5
29019 sed 's/^/| /' conftest.$ac_ext >&5
29022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29025 PROTO_R_END_RESULT="#define PROTO_R_END_RESULT(x) /*empty*/"
29026 PROTO_R_END_RETURN="#define PROTO_R_END_RETURN void"
29027 PROTO_R_ENT_ARGS="#undef PROTO_R_ENT_ARGS /*empty*/"
29040 echo "$as_me:$LINENO: checking for setprotoent_r" >&5
29041 echo $ECHO_N "checking for setprotoent_r... $ECHO_C" >&6
29042 if test "${ac_cv_func_setprotoent_r+set}" = set; then
29043 echo $ECHO_N "(cached) $ECHO_C" >&6
29045 cat >conftest.$ac_ext <<_ACEOF
29048 cat confdefs.h >>conftest.$ac_ext
29049 cat >>conftest.$ac_ext <<_ACEOF
29050 /* end confdefs.h. */
29051 /* Define setprotoent_r to an innocuous variant, in case <limits.h> declares setprotoent_r.
29052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29053 #define setprotoent_r innocuous_setprotoent_r
29055 /* System header to define __stub macros and hopefully few prototypes,
29056 which can conflict with char setprotoent_r (); below.
29057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29058 <limits.h> exists even on freestanding compilers. */
29061 # include <limits.h>
29063 # include <assert.h>
29066 #undef setprotoent_r
29068 /* Override any gcc2 internal prototype to avoid an error. */
29073 /* We use char because int might match the return type of a gcc2
29074 builtin and then its argument prototype would still apply. */
29075 char setprotoent_r ();
29076 /* The GNU C library defines this for functions which it implements
29077 to always fail with ENOSYS. Some functions are actually named
29078 something starting with __ and the normal name is an alias. */
29079 #if defined (__stub_setprotoent_r) || defined (__stub___setprotoent_r)
29082 char (*f) () = setprotoent_r;
29091 return f != setprotoent_r;
29096 rm -f conftest.$ac_objext conftest$ac_exeext
29097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29098 (eval $ac_link) 2>conftest.er1
29100 grep -v '^ *+' conftest.er1 >conftest.err
29102 cat conftest.err >&5
29103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104 (exit $ac_status); } &&
29105 { ac_try='test -z "$ac_c_werror_flag"
29106 || test ! -s conftest.err'
29107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29108 (eval $ac_try) 2>&5
29110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29111 (exit $ac_status); }; } &&
29112 { ac_try='test -s conftest$ac_exeext'
29113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29114 (eval $ac_try) 2>&5
29116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117 (exit $ac_status); }; }; then
29118 ac_cv_func_setprotoent_r=yes
29120 echo "$as_me: failed program was:" >&5
29121 sed 's/^/| /' conftest.$ac_ext >&5
29123 ac_cv_func_setprotoent_r=no
29125 rm -f conftest.err conftest.$ac_objext \
29126 conftest$ac_exeext conftest.$ac_ext
29128 echo "$as_me:$LINENO: result: $ac_cv_func_setprotoent_r" >&5
29129 echo "${ECHO_T}$ac_cv_func_setprotoent_r" >&6
29130 if test $ac_cv_func_setprotoent_r = yes; then
29131 cat >conftest.$ac_ext <<_ACEOF
29134 cat confdefs.h >>conftest.$ac_ext
29135 cat >>conftest.$ac_ext <<_ACEOF
29136 /* end confdefs.h. */
29143 void setprotoent_r __P((int));
29153 rm -f conftest.$ac_objext
29154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29155 (eval $ac_compile) 2>conftest.er1
29157 grep -v '^ *+' conftest.er1 >conftest.err
29159 cat conftest.err >&5
29160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29161 (exit $ac_status); } &&
29162 { ac_try='test -z "$ac_c_werror_flag"
29163 || test ! -s conftest.err'
29164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29165 (eval $ac_try) 2>&5
29167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29168 (exit $ac_status); }; } &&
29169 { ac_try='test -s conftest.$ac_objext'
29170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29171 (eval $ac_try) 2>&5
29173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29174 (exit $ac_status); }; }; then
29175 PROTO_R_SET_RESULT="#undef PROTO_R_SET_RESULT"
29176 PROTO_R_SET_RETURN="#define PROTO_R_SET_RETURN void"
29179 echo "$as_me: failed program was:" >&5
29180 sed 's/^/| /' conftest.$ac_ext >&5
29183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29186 PROTO_R_SET_RESULT="#undef PROTO_R_SET_RESULT"
29187 PROTO_R_SET_RETURN="#define PROTO_R_SET_RETURN void"
29195 echo "$as_me:$LINENO: checking for getpwent_r" >&5
29196 echo $ECHO_N "checking for getpwent_r... $ECHO_C" >&6
29197 if test "${ac_cv_func_getpwent_r+set}" = set; then
29198 echo $ECHO_N "(cached) $ECHO_C" >&6
29200 cat >conftest.$ac_ext <<_ACEOF
29203 cat confdefs.h >>conftest.$ac_ext
29204 cat >>conftest.$ac_ext <<_ACEOF
29205 /* end confdefs.h. */
29206 /* Define getpwent_r to an innocuous variant, in case <limits.h> declares getpwent_r.
29207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29208 #define getpwent_r innocuous_getpwent_r
29210 /* System header to define __stub macros and hopefully few prototypes,
29211 which can conflict with char getpwent_r (); below.
29212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29213 <limits.h> exists even on freestanding compilers. */
29216 # include <limits.h>
29218 # include <assert.h>
29223 /* Override any gcc2 internal prototype to avoid an error. */
29228 /* We use char because int might match the return type of a gcc2
29229 builtin and then its argument prototype would still apply. */
29230 char getpwent_r ();
29231 /* The GNU C library defines this for functions which it implements
29232 to always fail with ENOSYS. Some functions are actually named
29233 something starting with __ and the normal name is an alias. */
29234 #if defined (__stub_getpwent_r) || defined (__stub___getpwent_r)
29237 char (*f) () = getpwent_r;
29246 return f != getpwent_r;
29251 rm -f conftest.$ac_objext conftest$ac_exeext
29252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29253 (eval $ac_link) 2>conftest.er1
29255 grep -v '^ *+' conftest.er1 >conftest.err
29257 cat conftest.err >&5
29258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29259 (exit $ac_status); } &&
29260 { ac_try='test -z "$ac_c_werror_flag"
29261 || test ! -s conftest.err'
29262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29263 (eval $ac_try) 2>&5
29265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29266 (exit $ac_status); }; } &&
29267 { ac_try='test -s conftest$ac_exeext'
29268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29269 (eval $ac_try) 2>&5
29271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272 (exit $ac_status); }; }; then
29273 ac_cv_func_getpwent_r=yes
29275 echo "$as_me: failed program was:" >&5
29276 sed 's/^/| /' conftest.$ac_ext >&5
29278 ac_cv_func_getpwent_r=no
29280 rm -f conftest.err conftest.$ac_objext \
29281 conftest$ac_exeext conftest.$ac_ext
29283 echo "$as_me:$LINENO: result: $ac_cv_func_getpwent_r" >&5
29284 echo "${ECHO_T}$ac_cv_func_getpwent_r" >&6
29285 if test $ac_cv_func_getpwent_r = yes; then
29286 cat >conftest.$ac_ext <<_ACEOF
29289 cat confdefs.h >>conftest.$ac_ext
29290 cat >>conftest.$ac_ext <<_ACEOF
29291 /* end confdefs.h. */
29293 #include <sys/types.h>
29296 getpwent_r(struct passwd *pwptr, char *buf, int buflen) {}
29308 rm -f conftest.$ac_objext
29309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29310 (eval $ac_compile) 2>conftest.er1
29312 grep -v '^ *+' conftest.er1 >conftest.err
29314 cat conftest.err >&5
29315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29316 (exit $ac_status); } &&
29317 { ac_try='test -z "$ac_c_werror_flag"
29318 || test ! -s conftest.err'
29319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29320 (eval $ac_try) 2>&5
29322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323 (exit $ac_status); }; } &&
29324 { ac_try='test -s conftest.$ac_objext'
29325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29326 (eval $ac_try) 2>&5
29328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29329 (exit $ac_status); }; }; then
29330 PASS_R_ARGS="#define PASS_R_ARGS char *buf, int buflen"
29331 PASS_R_BAD="#define PASS_R_BAD NULL"
29332 PASS_R_COPY="#define PASS_R_COPY buf, buflen"
29333 PASS_R_COPY_ARGS="#define PASS_R_COPY_ARGS PASS_R_ARGS"
29334 PASS_R_OK="#define PASS_R_OK pwptr"
29335 PASS_R_RETURN="#define PASS_R_RETURN struct passwd *"
29338 echo "$as_me: failed program was:" >&5
29339 sed 's/^/| /' conftest.$ac_ext >&5
29342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29345 PASS_R_ARGS="#define PASS_R_ARGS char *buf, int buflen"
29346 PASS_R_BAD="#define PASS_R_BAD NULL"
29347 PASS_R_COPY="#define PASS_R_COPY buf, buflen"
29348 PASS_R_COPY_ARGS="#define PASS_R_COPY_ARGS PASS_R_ARGS"
29349 PASS_R_OK="#define PASS_R_OK pwptr"
29350 PASS_R_RETURN="#define PASS_R_RETURN struct passwd *"
29351 cat >>confdefs.h <<\_ACEOF
29352 #define NEED_GETPWENT_R 1
29365 echo "$as_me:$LINENO: checking for endpwent_r" >&5
29366 echo $ECHO_N "checking for endpwent_r... $ECHO_C" >&6
29367 if test "${ac_cv_func_endpwent_r+set}" = set; then
29368 echo $ECHO_N "(cached) $ECHO_C" >&6
29370 cat >conftest.$ac_ext <<_ACEOF
29373 cat confdefs.h >>conftest.$ac_ext
29374 cat >>conftest.$ac_ext <<_ACEOF
29375 /* end confdefs.h. */
29376 /* Define endpwent_r to an innocuous variant, in case <limits.h> declares endpwent_r.
29377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29378 #define endpwent_r innocuous_endpwent_r
29380 /* System header to define __stub macros and hopefully few prototypes,
29381 which can conflict with char endpwent_r (); below.
29382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29383 <limits.h> exists even on freestanding compilers. */
29386 # include <limits.h>
29388 # include <assert.h>
29393 /* Override any gcc2 internal prototype to avoid an error. */
29398 /* We use char because int might match the return type of a gcc2
29399 builtin and then its argument prototype would still apply. */
29400 char endpwent_r ();
29401 /* The GNU C library defines this for functions which it implements
29402 to always fail with ENOSYS. Some functions are actually named
29403 something starting with __ and the normal name is an alias. */
29404 #if defined (__stub_endpwent_r) || defined (__stub___endpwent_r)
29407 char (*f) () = endpwent_r;
29416 return f != endpwent_r;
29421 rm -f conftest.$ac_objext conftest$ac_exeext
29422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29423 (eval $ac_link) 2>conftest.er1
29425 grep -v '^ *+' conftest.er1 >conftest.err
29427 cat conftest.err >&5
29428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429 (exit $ac_status); } &&
29430 { ac_try='test -z "$ac_c_werror_flag"
29431 || test ! -s conftest.err'
29432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29433 (eval $ac_try) 2>&5
29435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436 (exit $ac_status); }; } &&
29437 { ac_try='test -s conftest$ac_exeext'
29438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29439 (eval $ac_try) 2>&5
29441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29442 (exit $ac_status); }; }; then
29443 ac_cv_func_endpwent_r=yes
29445 echo "$as_me: failed program was:" >&5
29446 sed 's/^/| /' conftest.$ac_ext >&5
29448 ac_cv_func_endpwent_r=no
29450 rm -f conftest.err conftest.$ac_objext \
29451 conftest$ac_exeext conftest.$ac_ext
29453 echo "$as_me:$LINENO: result: $ac_cv_func_endpwent_r" >&5
29454 echo "${ECHO_T}$ac_cv_func_endpwent_r" >&6
29455 if test $ac_cv_func_endpwent_r = yes; then
29456 cat >conftest.$ac_ext <<_ACEOF
29459 cat confdefs.h >>conftest.$ac_ext
29460 cat >>conftest.$ac_ext <<_ACEOF
29461 /* end confdefs.h. */
29464 void endpwent_r(FILE **pwfp);
29474 rm -f conftest.$ac_objext
29475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29476 (eval $ac_compile) 2>conftest.er1
29478 grep -v '^ *+' conftest.er1 >conftest.err
29480 cat conftest.err >&5
29481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29482 (exit $ac_status); } &&
29483 { ac_try='test -z "$ac_c_werror_flag"
29484 || test ! -s conftest.err'
29485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29486 (eval $ac_try) 2>&5
29488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489 (exit $ac_status); }; } &&
29490 { ac_try='test -s conftest.$ac_objext'
29491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29492 (eval $ac_try) 2>&5
29494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495 (exit $ac_status); }; }; then
29496 PASS_R_END_RESULT="#define PASS_R_END_RESULT(x) /*empty*/"
29497 PASS_R_END_RETURN="#define PASS_R_END_RETURN void"
29498 PASS_R_ENT_ARGS="#define PASS_R_ENT_ARGS FILE **pwptr"
29501 echo "$as_me: failed program was:" >&5
29502 sed 's/^/| /' conftest.$ac_ext >&5
29505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29508 PASS_R_END_RESULT="#define PASS_R_END_RESULT(x) /*empty*/"
29509 PASS_R_END_RETURN="#define PASS_R_END_RETURN void"
29510 PASS_R_ENT_ARGS="#undef PASS_R_ENT_ARGS"
29511 cat >>confdefs.h <<\_ACEOF
29512 #define NEED_ENDPWENT_R 1
29521 echo "$as_me:$LINENO: checking for setpassent_r" >&5
29522 echo $ECHO_N "checking for setpassent_r... $ECHO_C" >&6
29523 if test "${ac_cv_func_setpassent_r+set}" = set; then
29524 echo $ECHO_N "(cached) $ECHO_C" >&6
29526 cat >conftest.$ac_ext <<_ACEOF
29529 cat confdefs.h >>conftest.$ac_ext
29530 cat >>conftest.$ac_ext <<_ACEOF
29531 /* end confdefs.h. */
29532 /* Define setpassent_r to an innocuous variant, in case <limits.h> declares setpassent_r.
29533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29534 #define setpassent_r innocuous_setpassent_r
29536 /* System header to define __stub macros and hopefully few prototypes,
29537 which can conflict with char setpassent_r (); below.
29538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29539 <limits.h> exists even on freestanding compilers. */
29542 # include <limits.h>
29544 # include <assert.h>
29547 #undef setpassent_r
29549 /* Override any gcc2 internal prototype to avoid an error. */
29554 /* We use char because int might match the return type of a gcc2
29555 builtin and then its argument prototype would still apply. */
29556 char setpassent_r ();
29557 /* The GNU C library defines this for functions which it implements
29558 to always fail with ENOSYS. Some functions are actually named
29559 something starting with __ and the normal name is an alias. */
29560 #if defined (__stub_setpassent_r) || defined (__stub___setpassent_r)
29563 char (*f) () = setpassent_r;
29572 return f != setpassent_r;
29577 rm -f conftest.$ac_objext conftest$ac_exeext
29578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29579 (eval $ac_link) 2>conftest.er1
29581 grep -v '^ *+' conftest.er1 >conftest.err
29583 cat conftest.err >&5
29584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29585 (exit $ac_status); } &&
29586 { ac_try='test -z "$ac_c_werror_flag"
29587 || test ! -s conftest.err'
29588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29589 (eval $ac_try) 2>&5
29591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29592 (exit $ac_status); }; } &&
29593 { ac_try='test -s conftest$ac_exeext'
29594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29595 (eval $ac_try) 2>&5
29597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29598 (exit $ac_status); }; }; then
29599 ac_cv_func_setpassent_r=yes
29601 echo "$as_me: failed program was:" >&5
29602 sed 's/^/| /' conftest.$ac_ext >&5
29604 ac_cv_func_setpassent_r=no
29606 rm -f conftest.err conftest.$ac_objext \
29607 conftest$ac_exeext conftest.$ac_ext
29609 echo "$as_me:$LINENO: result: $ac_cv_func_setpassent_r" >&5
29610 echo "${ECHO_T}$ac_cv_func_setpassent_r" >&6
29611 if test $ac_cv_func_setpassent_r = yes; then
29614 cat >>confdefs.h <<\_ACEOF
29615 #define NEED_SETPASSENT_R 1
29620 echo "$as_me:$LINENO: checking for setpassent" >&5
29621 echo $ECHO_N "checking for setpassent... $ECHO_C" >&6
29622 if test "${ac_cv_func_setpassent+set}" = set; then
29623 echo $ECHO_N "(cached) $ECHO_C" >&6
29625 cat >conftest.$ac_ext <<_ACEOF
29628 cat confdefs.h >>conftest.$ac_ext
29629 cat >>conftest.$ac_ext <<_ACEOF
29630 /* end confdefs.h. */
29631 /* Define setpassent to an innocuous variant, in case <limits.h> declares setpassent.
29632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29633 #define setpassent innocuous_setpassent
29635 /* System header to define __stub macros and hopefully few prototypes,
29636 which can conflict with char setpassent (); below.
29637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29638 <limits.h> exists even on freestanding compilers. */
29641 # include <limits.h>
29643 # include <assert.h>
29648 /* Override any gcc2 internal prototype to avoid an error. */
29653 /* We use char because int might match the return type of a gcc2
29654 builtin and then its argument prototype would still apply. */
29655 char setpassent ();
29656 /* The GNU C library defines this for functions which it implements
29657 to always fail with ENOSYS. Some functions are actually named
29658 something starting with __ and the normal name is an alias. */
29659 #if defined (__stub_setpassent) || defined (__stub___setpassent)
29662 char (*f) () = setpassent;
29671 return f != setpassent;
29676 rm -f conftest.$ac_objext conftest$ac_exeext
29677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29678 (eval $ac_link) 2>conftest.er1
29680 grep -v '^ *+' conftest.er1 >conftest.err
29682 cat conftest.err >&5
29683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29684 (exit $ac_status); } &&
29685 { ac_try='test -z "$ac_c_werror_flag"
29686 || test ! -s conftest.err'
29687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29688 (eval $ac_try) 2>&5
29690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29691 (exit $ac_status); }; } &&
29692 { ac_try='test -s conftest$ac_exeext'
29693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29694 (eval $ac_try) 2>&5
29696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29697 (exit $ac_status); }; }; then
29698 ac_cv_func_setpassent=yes
29700 echo "$as_me: failed program was:" >&5
29701 sed 's/^/| /' conftest.$ac_ext >&5
29703 ac_cv_func_setpassent=no
29705 rm -f conftest.err conftest.$ac_objext \
29706 conftest$ac_exeext conftest.$ac_ext
29708 echo "$as_me:$LINENO: result: $ac_cv_func_setpassent" >&5
29709 echo "${ECHO_T}$ac_cv_func_setpassent" >&6
29710 if test $ac_cv_func_setpassent = yes; then
29713 cat >>confdefs.h <<\_ACEOF
29714 #define NEED_SETPASSENT 1
29720 echo "$as_me:$LINENO: checking for setpwent_r" >&5
29721 echo $ECHO_N "checking for setpwent_r... $ECHO_C" >&6
29722 if test "${ac_cv_func_setpwent_r+set}" = set; then
29723 echo $ECHO_N "(cached) $ECHO_C" >&6
29725 cat >conftest.$ac_ext <<_ACEOF
29728 cat confdefs.h >>conftest.$ac_ext
29729 cat >>conftest.$ac_ext <<_ACEOF
29730 /* end confdefs.h. */
29731 /* Define setpwent_r to an innocuous variant, in case <limits.h> declares setpwent_r.
29732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29733 #define setpwent_r innocuous_setpwent_r
29735 /* System header to define __stub macros and hopefully few prototypes,
29736 which can conflict with char setpwent_r (); below.
29737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29738 <limits.h> exists even on freestanding compilers. */
29741 # include <limits.h>
29743 # include <assert.h>
29748 /* Override any gcc2 internal prototype to avoid an error. */
29753 /* We use char because int might match the return type of a gcc2
29754 builtin and then its argument prototype would still apply. */
29755 char setpwent_r ();
29756 /* The GNU C library defines this for functions which it implements
29757 to always fail with ENOSYS. Some functions are actually named
29758 something starting with __ and the normal name is an alias. */
29759 #if defined (__stub_setpwent_r) || defined (__stub___setpwent_r)
29762 char (*f) () = setpwent_r;
29771 return f != setpwent_r;
29776 rm -f conftest.$ac_objext conftest$ac_exeext
29777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29778 (eval $ac_link) 2>conftest.er1
29780 grep -v '^ *+' conftest.er1 >conftest.err
29782 cat conftest.err >&5
29783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29784 (exit $ac_status); } &&
29785 { ac_try='test -z "$ac_c_werror_flag"
29786 || test ! -s conftest.err'
29787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29788 (eval $ac_try) 2>&5
29790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29791 (exit $ac_status); }; } &&
29792 { ac_try='test -s conftest$ac_exeext'
29793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29794 (eval $ac_try) 2>&5
29796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29797 (exit $ac_status); }; }; then
29798 ac_cv_func_setpwent_r=yes
29800 echo "$as_me: failed program was:" >&5
29801 sed 's/^/| /' conftest.$ac_ext >&5
29803 ac_cv_func_setpwent_r=no
29805 rm -f conftest.err conftest.$ac_objext \
29806 conftest$ac_exeext conftest.$ac_ext
29808 echo "$as_me:$LINENO: result: $ac_cv_func_setpwent_r" >&5
29809 echo "${ECHO_T}$ac_cv_func_setpwent_r" >&6
29810 if test $ac_cv_func_setpwent_r = yes; then
29811 cat >conftest.$ac_ext <<_ACEOF
29814 cat confdefs.h >>conftest.$ac_ext
29815 cat >>conftest.$ac_ext <<_ACEOF
29816 /* end confdefs.h. */
29819 void setpwent_r(FILE **pwfp);
29829 rm -f conftest.$ac_objext
29830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29831 (eval $ac_compile) 2>conftest.er1
29833 grep -v '^ *+' conftest.er1 >conftest.err
29835 cat conftest.err >&5
29836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837 (exit $ac_status); } &&
29838 { ac_try='test -z "$ac_c_werror_flag"
29839 || test ! -s conftest.err'
29840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29841 (eval $ac_try) 2>&5
29843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29844 (exit $ac_status); }; } &&
29845 { ac_try='test -s conftest.$ac_objext'
29846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29847 (eval $ac_try) 2>&5
29849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29850 (exit $ac_status); }; }; then
29851 PASS_R_SET_RESULT="#undef PASS_R_SET_RESULT /* empty */"
29852 PASS_R_SET_RETURN="#define PASS_R_SET_RETURN int"
29855 echo "$as_me: failed program was:" >&5
29856 sed 's/^/| /' conftest.$ac_ext >&5
29858 cat >conftest.$ac_ext <<_ACEOF
29861 cat confdefs.h >>conftest.$ac_ext
29862 cat >>conftest.$ac_ext <<_ACEOF
29863 /* end confdefs.h. */
29866 int setpwent_r(FILE **pwfp);
29876 rm -f conftest.$ac_objext
29877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29878 (eval $ac_compile) 2>conftest.er1
29880 grep -v '^ *+' conftest.er1 >conftest.err
29882 cat conftest.err >&5
29883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884 (exit $ac_status); } &&
29885 { ac_try='test -z "$ac_c_werror_flag"
29886 || test ! -s conftest.err'
29887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29888 (eval $ac_try) 2>&5
29890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29891 (exit $ac_status); }; } &&
29892 { ac_try='test -s conftest.$ac_objext'
29893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29894 (eval $ac_try) 2>&5
29896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29897 (exit $ac_status); }; }; then
29898 PASS_R_SET_RESULT="#define PASS_R_SET_RESULT 0"
29899 PASS_R_SET_RETURN="#define PASS_R_SET_RETURN int"
29902 echo "$as_me: failed program was:" >&5
29903 sed 's/^/| /' conftest.$ac_ext >&5
29906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29912 PASS_R_SET_RESULT="#undef PASS_R_SET_RESULT /*empty*/"
29913 PASS_R_SET_RETURN="#define PASS_R_SET_RETURN void"
29914 cat >>confdefs.h <<\_ACEOF
29915 #define NEED_SETPWENT_R 1
29924 echo "$as_me:$LINENO: checking for getpwnam_r" >&5
29925 echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6
29926 if test "${ac_cv_func_getpwnam_r+set}" = set; then
29927 echo $ECHO_N "(cached) $ECHO_C" >&6
29929 cat >conftest.$ac_ext <<_ACEOF
29932 cat confdefs.h >>conftest.$ac_ext
29933 cat >>conftest.$ac_ext <<_ACEOF
29934 /* end confdefs.h. */
29935 /* Define getpwnam_r to an innocuous variant, in case <limits.h> declares getpwnam_r.
29936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29937 #define getpwnam_r innocuous_getpwnam_r
29939 /* System header to define __stub macros and hopefully few prototypes,
29940 which can conflict with char getpwnam_r (); below.
29941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29942 <limits.h> exists even on freestanding compilers. */
29945 # include <limits.h>
29947 # include <assert.h>
29952 /* Override any gcc2 internal prototype to avoid an error. */
29957 /* We use char because int might match the return type of a gcc2
29958 builtin and then its argument prototype would still apply. */
29959 char getpwnam_r ();
29960 /* The GNU C library defines this for functions which it implements
29961 to always fail with ENOSYS. Some functions are actually named
29962 something starting with __ and the normal name is an alias. */
29963 #if defined (__stub_getpwnam_r) || defined (__stub___getpwnam_r)
29966 char (*f) () = getpwnam_r;
29975 return f != getpwnam_r;
29980 rm -f conftest.$ac_objext conftest$ac_exeext
29981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29982 (eval $ac_link) 2>conftest.er1
29984 grep -v '^ *+' conftest.er1 >conftest.err
29986 cat conftest.err >&5
29987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29988 (exit $ac_status); } &&
29989 { ac_try='test -z "$ac_c_werror_flag"
29990 || test ! -s conftest.err'
29991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29992 (eval $ac_try) 2>&5
29994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29995 (exit $ac_status); }; } &&
29996 { ac_try='test -s conftest$ac_exeext'
29997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29998 (eval $ac_try) 2>&5
30000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30001 (exit $ac_status); }; }; then
30002 ac_cv_func_getpwnam_r=yes
30004 echo "$as_me: failed program was:" >&5
30005 sed 's/^/| /' conftest.$ac_ext >&5
30007 ac_cv_func_getpwnam_r=no
30009 rm -f conftest.err conftest.$ac_objext \
30010 conftest$ac_exeext conftest.$ac_ext
30012 echo "$as_me:$LINENO: result: $ac_cv_func_getpwnam_r" >&5
30013 echo "${ECHO_T}$ac_cv_func_getpwnam_r" >&6
30014 if test $ac_cv_func_getpwnam_r = yes; then
30017 cat >>confdefs.h <<\_ACEOF
30018 #define NEED_GETPWNAM_R 1
30023 echo "$as_me:$LINENO: checking for getpwuid_r" >&5
30024 echo $ECHO_N "checking for getpwuid_r... $ECHO_C" >&6
30025 if test "${ac_cv_func_getpwuid_r+set}" = set; then
30026 echo $ECHO_N "(cached) $ECHO_C" >&6
30028 cat >conftest.$ac_ext <<_ACEOF
30031 cat confdefs.h >>conftest.$ac_ext
30032 cat >>conftest.$ac_ext <<_ACEOF
30033 /* end confdefs.h. */
30034 /* Define getpwuid_r to an innocuous variant, in case <limits.h> declares getpwuid_r.
30035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30036 #define getpwuid_r innocuous_getpwuid_r
30038 /* System header to define __stub macros and hopefully few prototypes,
30039 which can conflict with char getpwuid_r (); below.
30040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30041 <limits.h> exists even on freestanding compilers. */
30044 # include <limits.h>
30046 # include <assert.h>
30051 /* Override any gcc2 internal prototype to avoid an error. */
30056 /* We use char because int might match the return type of a gcc2
30057 builtin and then its argument prototype would still apply. */
30058 char getpwuid_r ();
30059 /* The GNU C library defines this for functions which it implements
30060 to always fail with ENOSYS. Some functions are actually named
30061 something starting with __ and the normal name is an alias. */
30062 #if defined (__stub_getpwuid_r) || defined (__stub___getpwuid_r)
30065 char (*f) () = getpwuid_r;
30074 return f != getpwuid_r;
30079 rm -f conftest.$ac_objext conftest$ac_exeext
30080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30081 (eval $ac_link) 2>conftest.er1
30083 grep -v '^ *+' conftest.er1 >conftest.err
30085 cat conftest.err >&5
30086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30087 (exit $ac_status); } &&
30088 { ac_try='test -z "$ac_c_werror_flag"
30089 || test ! -s conftest.err'
30090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30091 (eval $ac_try) 2>&5
30093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30094 (exit $ac_status); }; } &&
30095 { ac_try='test -s conftest$ac_exeext'
30096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30097 (eval $ac_try) 2>&5
30099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30100 (exit $ac_status); }; }; then
30101 ac_cv_func_getpwuid_r=yes
30103 echo "$as_me: failed program was:" >&5
30104 sed 's/^/| /' conftest.$ac_ext >&5
30106 ac_cv_func_getpwuid_r=no
30108 rm -f conftest.err conftest.$ac_objext \
30109 conftest$ac_exeext conftest.$ac_ext
30111 echo "$as_me:$LINENO: result: $ac_cv_func_getpwuid_r" >&5
30112 echo "${ECHO_T}$ac_cv_func_getpwuid_r" >&6
30113 if test $ac_cv_func_getpwuid_r = yes; then
30116 cat >>confdefs.h <<\_ACEOF
30117 #define NEED_GETPWUID_R 1
30127 echo "$as_me:$LINENO: checking for getservent_r" >&5
30128 echo $ECHO_N "checking for getservent_r... $ECHO_C" >&6
30129 if test "${ac_cv_func_getservent_r+set}" = set; then
30130 echo $ECHO_N "(cached) $ECHO_C" >&6
30132 cat >conftest.$ac_ext <<_ACEOF
30135 cat confdefs.h >>conftest.$ac_ext
30136 cat >>conftest.$ac_ext <<_ACEOF
30137 /* end confdefs.h. */
30138 /* Define getservent_r to an innocuous variant, in case <limits.h> declares getservent_r.
30139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30140 #define getservent_r innocuous_getservent_r
30142 /* System header to define __stub macros and hopefully few prototypes,
30143 which can conflict with char getservent_r (); below.
30144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30145 <limits.h> exists even on freestanding compilers. */
30148 # include <limits.h>
30150 # include <assert.h>
30153 #undef getservent_r
30155 /* Override any gcc2 internal prototype to avoid an error. */
30160 /* We use char because int might match the return type of a gcc2
30161 builtin and then its argument prototype would still apply. */
30162 char getservent_r ();
30163 /* The GNU C library defines this for functions which it implements
30164 to always fail with ENOSYS. Some functions are actually named
30165 something starting with __ and the normal name is an alias. */
30166 #if defined (__stub_getservent_r) || defined (__stub___getservent_r)
30169 char (*f) () = getservent_r;
30178 return f != getservent_r;
30183 rm -f conftest.$ac_objext conftest$ac_exeext
30184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30185 (eval $ac_link) 2>conftest.er1
30187 grep -v '^ *+' conftest.er1 >conftest.err
30189 cat conftest.err >&5
30190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30191 (exit $ac_status); } &&
30192 { ac_try='test -z "$ac_c_werror_flag"
30193 || test ! -s conftest.err'
30194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30195 (eval $ac_try) 2>&5
30197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30198 (exit $ac_status); }; } &&
30199 { ac_try='test -s conftest$ac_exeext'
30200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30201 (eval $ac_try) 2>&5
30203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30204 (exit $ac_status); }; }; then
30205 ac_cv_func_getservent_r=yes
30207 echo "$as_me: failed program was:" >&5
30208 sed 's/^/| /' conftest.$ac_ext >&5
30210 ac_cv_func_getservent_r=no
30212 rm -f conftest.err conftest.$ac_objext \
30213 conftest$ac_exeext conftest.$ac_ext
30215 echo "$as_me:$LINENO: result: $ac_cv_func_getservent_r" >&5
30216 echo "${ECHO_T}$ac_cv_func_getservent_r" >&6
30217 if test $ac_cv_func_getservent_r = yes; then
30218 cat >conftest.$ac_ext <<_ACEOF
30221 cat confdefs.h >>conftest.$ac_ext
30222 cat >>conftest.$ac_ext <<_ACEOF
30223 /* end confdefs.h. */
30229 getservent_r(struct servent *result, char *buffer, int buflen) {}
30239 rm -f conftest.$ac_objext
30240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30241 (eval $ac_compile) 2>conftest.er1
30243 grep -v '^ *+' conftest.er1 >conftest.err
30245 cat conftest.err >&5
30246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30247 (exit $ac_status); } &&
30248 { ac_try='test -z "$ac_c_werror_flag"
30249 || test ! -s conftest.err'
30250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30251 (eval $ac_try) 2>&5
30253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254 (exit $ac_status); }; } &&
30255 { ac_try='test -s conftest.$ac_objext'
30256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30257 (eval $ac_try) 2>&5
30259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30260 (exit $ac_status); }; }; then
30262 SERV_R_ARGS="#define SERV_R_ARGS char *buf, int buflen"
30263 SERV_R_BAD="#define SERV_R_BAD NULL"
30264 SERV_R_COPY="#define SERV_R_COPY buf, buflen"
30265 SERV_R_COPY_ARGS="#define SERV_R_COPY_ARGS SERV_R_ARGS"
30266 SERV_R_OK="#define SERV_R_OK sptr"
30267 SERV_R_SETANSWER="#undef SERV_R_SETANSWER"
30268 SERV_R_RETURN="#define SERV_R_RETURN struct servent *"
30272 echo "$as_me: failed program was:" >&5
30273 sed 's/^/| /' conftest.$ac_ext >&5
30275 cat >conftest.$ac_ext <<_ACEOF
30278 cat confdefs.h >>conftest.$ac_ext
30279 cat >>conftest.$ac_ext <<_ACEOF
30280 /* end confdefs.h. */
30286 getservent_r (struct servent *, char *, size_t, struct servent **);
30296 rm -f conftest.$ac_objext
30297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30298 (eval $ac_compile) 2>conftest.er1
30300 grep -v '^ *+' conftest.er1 >conftest.err
30302 cat conftest.err >&5
30303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30304 (exit $ac_status); } &&
30305 { ac_try='test -z "$ac_c_werror_flag"
30306 || test ! -s conftest.err'
30307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30308 (eval $ac_try) 2>&5
30310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30311 (exit $ac_status); }; } &&
30312 { ac_try='test -s conftest.$ac_objext'
30313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30314 (eval $ac_try) 2>&5
30316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30317 (exit $ac_status); }; }; then
30319 SERV_R_ARGS="#define SERV_R_ARGS char *buf, size_t buflen, struct servent **answerp"
30320 SERV_R_BAD="#define SERV_R_BAD ERANGE"
30321 SERV_R_COPY="#define SERV_R_COPY buf, buflen"
30322 SERV_R_COPY_ARGS="#define SERV_R_COPY_ARGS char *buf, size_t buflen"
30323 SERV_R_OK="#define SERV_R_OK (0)"
30324 SERV_R_SETANSWER="#define SERV_R_SETANSWER 1"
30325 SERV_R_RETURN="#define SERV_R_RETURN int"
30329 echo "$as_me: failed program was:" >&5
30330 sed 's/^/| /' conftest.$ac_ext >&5
30333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30339 SERV_R_ARGS="#define SERV_R_ARGS char *buf, int buflen"
30340 SERV_R_BAD="#define SERV_R_BAD NULL"
30341 SERV_R_COPY="#define SERV_R_COPY buf, buflen"
30342 SERV_R_COPY_ARGS="#define SERV_R_COPY_ARGS SERV_R_ARGS"
30343 SERV_R_OK="#define SERV_R_OK sptr"
30344 SERV_R_SETANSWER="#undef SERV_R_SETANSWER"
30345 SERV_R_RETURN="#define SERV_R_RETURN struct servent *"
30362 echo "$as_me:$LINENO: checking for endservent_r" >&5
30363 echo $ECHO_N "checking for endservent_r... $ECHO_C" >&6
30364 if test "${ac_cv_func_endservent_r+set}" = set; then
30365 echo $ECHO_N "(cached) $ECHO_C" >&6
30367 cat >conftest.$ac_ext <<_ACEOF
30370 cat confdefs.h >>conftest.$ac_ext
30371 cat >>conftest.$ac_ext <<_ACEOF
30372 /* end confdefs.h. */
30373 /* Define endservent_r to an innocuous variant, in case <limits.h> declares endservent_r.
30374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30375 #define endservent_r innocuous_endservent_r
30377 /* System header to define __stub macros and hopefully few prototypes,
30378 which can conflict with char endservent_r (); below.
30379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30380 <limits.h> exists even on freestanding compilers. */
30383 # include <limits.h>
30385 # include <assert.h>
30388 #undef endservent_r
30390 /* Override any gcc2 internal prototype to avoid an error. */
30395 /* We use char because int might match the return type of a gcc2
30396 builtin and then its argument prototype would still apply. */
30397 char endservent_r ();
30398 /* The GNU C library defines this for functions which it implements
30399 to always fail with ENOSYS. Some functions are actually named
30400 something starting with __ and the normal name is an alias. */
30401 #if defined (__stub_endservent_r) || defined (__stub___endservent_r)
30404 char (*f) () = endservent_r;
30413 return f != endservent_r;
30418 rm -f conftest.$ac_objext conftest$ac_exeext
30419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30420 (eval $ac_link) 2>conftest.er1
30422 grep -v '^ *+' conftest.er1 >conftest.err
30424 cat conftest.err >&5
30425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30426 (exit $ac_status); } &&
30427 { ac_try='test -z "$ac_c_werror_flag"
30428 || test ! -s conftest.err'
30429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30430 (eval $ac_try) 2>&5
30432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30433 (exit $ac_status); }; } &&
30434 { ac_try='test -s conftest$ac_exeext'
30435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30436 (eval $ac_try) 2>&5
30438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439 (exit $ac_status); }; }; then
30440 ac_cv_func_endservent_r=yes
30442 echo "$as_me: failed program was:" >&5
30443 sed 's/^/| /' conftest.$ac_ext >&5
30445 ac_cv_func_endservent_r=no
30447 rm -f conftest.err conftest.$ac_objext \
30448 conftest$ac_exeext conftest.$ac_ext
30450 echo "$as_me:$LINENO: result: $ac_cv_func_endservent_r" >&5
30451 echo "${ECHO_T}$ac_cv_func_endservent_r" >&6
30452 if test $ac_cv_func_endservent_r = yes; then
30453 cat >conftest.$ac_ext <<_ACEOF
30456 cat confdefs.h >>conftest.$ac_ext
30457 cat >>conftest.$ac_ext <<_ACEOF
30458 /* end confdefs.h. */
30465 void endservent_r(void);
30476 rm -f conftest.$ac_objext
30477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30478 (eval $ac_compile) 2>conftest.er1
30480 grep -v '^ *+' conftest.er1 >conftest.err
30482 cat conftest.err >&5
30483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30484 (exit $ac_status); } &&
30485 { ac_try='test -z "$ac_c_werror_flag"
30486 || test ! -s conftest.err'
30487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30488 (eval $ac_try) 2>&5
30490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30491 (exit $ac_status); }; } &&
30492 { ac_try='test -s conftest.$ac_objext'
30493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30494 (eval $ac_try) 2>&5
30496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497 (exit $ac_status); }; }; then
30499 SERV_R_END_RESULT="#define SERV_R_END_RESULT(x) /*empty*/"
30500 SERV_R_END_RETURN="#define SERV_R_END_RETURN void "
30501 SERV_R_ENT_ARGS="#undef SERV_R_ENT_ARGS /*empty*/"
30505 echo "$as_me: failed program was:" >&5
30506 sed 's/^/| /' conftest.$ac_ext >&5
30509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30512 SERV_R_END_RESULT="#define SERV_R_END_RESULT(x) /*empty*/"
30513 SERV_R_END_RETURN="#define SERV_R_END_RETURN void "
30514 SERV_R_ENT_ARGS="#undef SERV_R_ENT_ARGS /*empty*/"
30527 echo "$as_me:$LINENO: checking for setservent_r" >&5
30528 echo $ECHO_N "checking for setservent_r... $ECHO_C" >&6
30529 if test "${ac_cv_func_setservent_r+set}" = set; then
30530 echo $ECHO_N "(cached) $ECHO_C" >&6
30532 cat >conftest.$ac_ext <<_ACEOF
30535 cat confdefs.h >>conftest.$ac_ext
30536 cat >>conftest.$ac_ext <<_ACEOF
30537 /* end confdefs.h. */
30538 /* Define setservent_r to an innocuous variant, in case <limits.h> declares setservent_r.
30539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30540 #define setservent_r innocuous_setservent_r
30542 /* System header to define __stub macros and hopefully few prototypes,
30543 which can conflict with char setservent_r (); below.
30544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30545 <limits.h> exists even on freestanding compilers. */
30548 # include <limits.h>
30550 # include <assert.h>
30553 #undef setservent_r
30555 /* Override any gcc2 internal prototype to avoid an error. */
30560 /* We use char because int might match the return type of a gcc2
30561 builtin and then its argument prototype would still apply. */
30562 char setservent_r ();
30563 /* The GNU C library defines this for functions which it implements
30564 to always fail with ENOSYS. Some functions are actually named
30565 something starting with __ and the normal name is an alias. */
30566 #if defined (__stub_setservent_r) || defined (__stub___setservent_r)
30569 char (*f) () = setservent_r;
30578 return f != setservent_r;
30583 rm -f conftest.$ac_objext conftest$ac_exeext
30584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30585 (eval $ac_link) 2>conftest.er1
30587 grep -v '^ *+' conftest.er1 >conftest.err
30589 cat conftest.err >&5
30590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30591 (exit $ac_status); } &&
30592 { ac_try='test -z "$ac_c_werror_flag"
30593 || test ! -s conftest.err'
30594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30595 (eval $ac_try) 2>&5
30597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30598 (exit $ac_status); }; } &&
30599 { ac_try='test -s conftest$ac_exeext'
30600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30601 (eval $ac_try) 2>&5
30603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30604 (exit $ac_status); }; }; then
30605 ac_cv_func_setservent_r=yes
30607 echo "$as_me: failed program was:" >&5
30608 sed 's/^/| /' conftest.$ac_ext >&5
30610 ac_cv_func_setservent_r=no
30612 rm -f conftest.err conftest.$ac_objext \
30613 conftest$ac_exeext conftest.$ac_ext
30615 echo "$as_me:$LINENO: result: $ac_cv_func_setservent_r" >&5
30616 echo "${ECHO_T}$ac_cv_func_setservent_r" >&6
30617 if test $ac_cv_func_setservent_r = yes; then
30618 cat >conftest.$ac_ext <<_ACEOF
30621 cat confdefs.h >>conftest.$ac_ext
30622 cat >>conftest.$ac_ext <<_ACEOF
30623 /* end confdefs.h. */
30630 void setservent_r(int);
30641 rm -f conftest.$ac_objext
30642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30643 (eval $ac_compile) 2>conftest.er1
30645 grep -v '^ *+' conftest.er1 >conftest.err
30647 cat conftest.err >&5
30648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30649 (exit $ac_status); } &&
30650 { ac_try='test -z "$ac_c_werror_flag"
30651 || test ! -s conftest.err'
30652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30653 (eval $ac_try) 2>&5
30655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30656 (exit $ac_status); }; } &&
30657 { ac_try='test -s conftest.$ac_objext'
30658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30659 (eval $ac_try) 2>&5
30661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30662 (exit $ac_status); }; }; then
30664 SERV_R_SET_RESULT="#undef SERV_R_SET_RESULT"
30665 SERV_R_SET_RETURN="#define SERV_R_SET_RETURN void"
30669 echo "$as_me: failed program was:" >&5
30670 sed 's/^/| /' conftest.$ac_ext >&5
30673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30676 SERV_R_SET_RESULT="#undef SERV_R_SET_RESULT"
30677 SERV_R_SET_RETURN="#define SERV_R_SET_RETURN void"
30685 cat >conftest.$ac_ext <<_ACEOF
30688 cat confdefs.h >>conftest.$ac_ext
30689 cat >>conftest.$ac_ext <<_ACEOF
30690 /* end confdefs.h. */
30696 #include <unistd.h>
30698 int innetgr(const char *netgroup, const char *host, const char *user, const char *domain);
30709 rm -f conftest.$ac_objext
30710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30711 (eval $ac_compile) 2>conftest.er1
30713 grep -v '^ *+' conftest.er1 >conftest.err
30715 cat conftest.err >&5
30716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30717 (exit $ac_status); } &&
30718 { ac_try='test -z "$ac_c_werror_flag"
30719 || test ! -s conftest.err'
30720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30721 (eval $ac_try) 2>&5
30723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30724 (exit $ac_status); }; } &&
30725 { ac_try='test -s conftest.$ac_objext'
30726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30727 (eval $ac_try) 2>&5
30729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30730 (exit $ac_status); }; }; then
30732 INNETGR_ARGS="#undef INNETGR_ARGS"
30736 echo "$as_me: failed program was:" >&5
30737 sed 's/^/| /' conftest.$ac_ext >&5
30739 cat >conftest.$ac_ext <<_ACEOF
30742 cat confdefs.h >>conftest.$ac_ext
30743 cat >>conftest.$ac_ext <<_ACEOF
30744 /* end confdefs.h. */
30750 #include <unistd.h>
30752 int innetgr(char *netgroup, char *host, char *user, char *domain);
30763 rm -f conftest.$ac_objext
30764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30765 (eval $ac_compile) 2>conftest.er1
30767 grep -v '^ *+' conftest.er1 >conftest.err
30769 cat conftest.err >&5
30770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771 (exit $ac_status); } &&
30772 { ac_try='test -z "$ac_c_werror_flag"
30773 || test ! -s conftest.err'
30774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30775 (eval $ac_try) 2>&5
30777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30778 (exit $ac_status); }; } &&
30779 { ac_try='test -s conftest.$ac_objext'
30780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30781 (eval $ac_try) 2>&5
30783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30784 (exit $ac_status); }; }; then
30786 INNETGR_ARGS="#define INNETGR_ARGS char *netgroup, char *host, char *user, char *domain"
30790 echo "$as_me: failed program was:" >&5
30791 sed 's/^/| /' conftest.$ac_ext >&5
30794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30798 cat >conftest.$ac_ext <<_ACEOF
30801 cat confdefs.h >>conftest.$ac_ext
30802 cat >>conftest.$ac_ext <<_ACEOF
30803 /* end confdefs.h. */
30809 #include <unistd.h>
30811 void setnetgrent(const char *);
30822 rm -f conftest.$ac_objext
30823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30824 (eval $ac_compile) 2>conftest.er1
30826 grep -v '^ *+' conftest.er1 >conftest.err
30828 cat conftest.err >&5
30829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30830 (exit $ac_status); } &&
30831 { ac_try='test -z "$ac_c_werror_flag"
30832 || test ! -s conftest.err'
30833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30834 (eval $ac_try) 2>&5
30836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30837 (exit $ac_status); }; } &&
30838 { ac_try='test -s conftest.$ac_objext'
30839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30840 (eval $ac_try) 2>&5
30842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30843 (exit $ac_status); }; }; then
30845 SETNETGRENT_ARGS="#undef SETNETGRENT_ARGS"
30849 echo "$as_me: failed program was:" >&5
30850 sed 's/^/| /' conftest.$ac_ext >&5
30852 cat >conftest.$ac_ext <<_ACEOF
30855 cat confdefs.h >>conftest.$ac_ext
30856 cat >>conftest.$ac_ext <<_ACEOF
30857 /* end confdefs.h. */
30863 #include <unistd.h>
30865 void setnetgrent(char *);
30876 rm -f conftest.$ac_objext
30877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30878 (eval $ac_compile) 2>conftest.er1
30880 grep -v '^ *+' conftest.er1 >conftest.err
30882 cat conftest.err >&5
30883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30884 (exit $ac_status); } &&
30885 { ac_try='test -z "$ac_c_werror_flag"
30886 || test ! -s conftest.err'
30887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30888 (eval $ac_try) 2>&5
30890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30891 (exit $ac_status); }; } &&
30892 { ac_try='test -s conftest.$ac_objext'
30893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30894 (eval $ac_try) 2>&5
30896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30897 (exit $ac_status); }; }; then
30899 SETNETGRENT_ARGS="#define SETNETGRENT_ARGS char *netgroup"
30903 echo "$as_me: failed program was:" >&5
30904 sed 's/^/| /' conftest.$ac_ext >&5
30907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30914 # Random remaining OS-specific issues involving compiler warnings.
30915 # XXXDCL print messages to indicate some compensation is being done?
30917 BROKEN_IN6ADDR_INIT_MACROS="#undef BROKEN_IN6ADDR_INIT_MACROS"
30921 hack_shutup_pthreadmutexinit=yes
30922 hack_shutup_in6addr_init_macros=yes
30925 hack_shutup_sputaux=yes
30928 hack_shutup_sigwait=yes
30929 hack_shutup_sputaux=yes
30930 hack_shutup_in6addr_init_macros=yes
30933 hack_shutup_stdargcast=yes
30936 hack_shutup_in6addr_init_macros=yes
30938 *-osf5.1|*-osf5.1b)
30939 hack_shutup_in6addr_init_macros=yes
30942 hack_shutup_in6addr_init_macros=yes
30945 hack_shutup_in6addr_init_macros=yes
30949 case "$hack_shutup_pthreadmutexinit" in
30952 # Shut up PTHREAD_MUTEX_INITIALIZER unbraced
30953 # initializer warnings.
30955 cat >>confdefs.h <<\_ACEOF
30956 #define SHUTUP_MUTEX_INITIALIZER 1
30962 case "$hack_shutup_sigwait" in
30965 # Shut up a -Wmissing-prototypes warning for sigwait().
30967 cat >>confdefs.h <<\_ACEOF
30968 #define SHUTUP_SIGWAIT 1
30974 case "$hack_shutup_sputaux" in
30977 # Shut up a -Wmissing-prototypes warning from <stdio.h>.
30979 cat >>confdefs.h <<\_ACEOF
30980 #define SHUTUP_SPUTAUX 1
30986 case "$hack_shutup_stdargcast" in
30989 # Shut up a -Wcast-qual warning from va_start().
30991 cat >>confdefs.h <<\_ACEOF
30992 #define SHUTUP_STDARG_CAST 1
30998 case "$hack_shutup_in6addr_init_macros" in
31000 cat >>confdefs.h <<\_ACEOF
31001 #define BROKEN_IN6ADDR_INIT_MACROS 1
31011 BIND9_TOP_BUILDDIR=`pwd`
31014 BIND9_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
31017 BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
31019 . $srcdir/../../version
31020 BIND9_VERSION="VERSION=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}"
31024 LIBBIND_API=$srcdir/api
31026 ac_config_files="$ac_config_files make/rules make/mkdep make/includes Makefile bsd/Makefile dst/Makefile include/Makefile inet/Makefile irs/Makefile isc/Makefile nameser/Makefile port_after.h port_before.h resolv/Makefile port/Makefile ${PORT_DIR}/Makefile ${PORT_INCLUDE}/Makefile"
31027 cat >confcache <<\_ACEOF
31028 # This file is a shell script that caches the results of configure
31029 # tests run on this system so they can be shared between configure
31030 # scripts and configure runs, see configure's option --config-cache.
31031 # It is not useful on other systems. If it contains results you don't
31032 # want to keep, you may remove or edit it.
31034 # config.status only pays attention to the cache file if you give it
31035 # the --recheck option to rerun configure.
31037 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31038 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31039 # following values.
31043 # The following way of writing the cache mishandles newlines in values,
31044 # but we know of no workaround that is simple, portable, and efficient.
31045 # So, don't put newlines in cache variables' values.
31046 # Ultrix sh set writes to stderr and can't be redirected directly,
31047 # and sets the high bit in the cache file unless we assign to the vars.
31050 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31052 # `set' does not quote correctly, so add quotes (double-quote
31053 # substitution turns \\\\ into \\, and sed turns \\ into \).
31056 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31059 # `set' quotes correctly as required by POSIX, so do not add quotes.
31061 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
31068 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31070 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31072 if diff $cache_file confcache >/dev/null 2>&1; then :; else
31073 if test -w $cache_file; then
31074 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31075 cat confcache >$cache_file
31077 echo "not updating unwritable cache $cache_file"
31082 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31083 # Let make expand exec_prefix.
31084 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31086 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31087 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31088 # trailing colons and then remove the whole line if VPATH becomes empty
31089 # (actually we leave an empty line to preserve line numbers).
31090 if test "x$srcdir" = x.; then
31091 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31092 s/:*\$(srcdir):*/:/;
31093 s/:*\${srcdir}:*/:/;
31095 s/^\([^=]*=[ ]*\):*/\1/;
31101 DEFS=-DHAVE_CONFIG_H
31105 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31106 # 1. Remove the extension, and $U if already installed.
31107 ac_i=`echo "$ac_i" |
31108 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
31110 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
31111 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
31113 LIBOBJS=$ac_libobjs
31115 LTLIBOBJS=$ac_ltlibobjs
31119 : ${CONFIG_STATUS=./config.status}
31120 ac_clean_files_save=$ac_clean_files
31121 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31122 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31123 echo "$as_me: creating $CONFIG_STATUS" >&6;}
31124 cat >$CONFIG_STATUS <<_ACEOF
31126 # Generated by $as_me.
31127 # Run this file to recreate the current configuration.
31128 # Compiler output produced by configure, useful for debugging
31129 # configure, is in config.log if it exists.
31132 ac_cs_recheck=false
31134 SHELL=\${CONFIG_SHELL-$SHELL}
31137 cat >>$CONFIG_STATUS <<\_ACEOF
31138 ## --------------------- ##
31139 ## M4sh Initialization. ##
31140 ## --------------------- ##
31142 # Be Bourne compatible
31143 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31146 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31147 # is contrary to our usage. Disable this feature.
31148 alias -g '${1+"$@"}'='"$@"'
31149 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31152 DUALCASE=1; export DUALCASE # for MKS sh
31154 # Support unset when possible.
31155 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31162 # Work around bugs in pre-3.0 UWIN ksh.
31163 $as_unset ENV MAIL MAILPATH
31170 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31171 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31172 LC_TELEPHONE LC_TIME
31174 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31175 eval $as_var=C; export $as_var
31181 # Required to use basename.
31182 if expr a : '\(a\)' >/dev/null 2>&1; then
31188 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31189 as_basename=basename
31195 # Name of the executable.
31196 as_me=`$as_basename "$0" ||
31197 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31198 X"$0" : 'X\(//\)$' \| \
31199 X"$0" : 'X\(/\)$' \| \
31200 . : '\(.\)' 2>/dev/null ||
31202 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31203 /^X\/\(\/\/\)$/{ s//\1/; q; }
31204 /^X\/\(\/\).*/{ s//\1/; q; }
31208 # PATH needs CR, and LINENO needs CR and PATH.
31209 # Avoid depending upon Character Ranges.
31210 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31211 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31212 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31213 as_cr_digits='0123456789'
31214 as_cr_alnum=$as_cr_Letters$as_cr_digits
31216 # The user is always right.
31217 if test "${PATH_SEPARATOR+set}" != set; then
31218 echo "#! /bin/sh" >conf$$.sh
31219 echo "exit 0" >>conf$$.sh
31221 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31230 as_lineno_1=$LINENO
31231 as_lineno_2=$LINENO
31232 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31233 test "x$as_lineno_1" != "x$as_lineno_2" &&
31234 test "x$as_lineno_3" = "x$as_lineno_2" || {
31235 # Find who we are. Look in the path if we contain no path at all
31238 *[\\/]* ) as_myself=$0 ;;
31239 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31240 for as_dir in $PATH
31243 test -z "$as_dir" && as_dir=.
31244 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31249 # We did not find ourselves, most probably we were run as `sh COMMAND'
31250 # in which case we are not to be found in the path.
31251 if test "x$as_myself" = x; then
31254 if test ! -f "$as_myself"; then
31255 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31256 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31257 { (exit 1); exit 1; }; }
31259 case $CONFIG_SHELL in
31261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31262 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31265 test -z "$as_dir" && as_dir=.
31266 for as_base in sh bash ksh sh5; do
31269 if ("$as_dir/$as_base" -c '
31270 as_lineno_1=$LINENO
31271 as_lineno_2=$LINENO
31272 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31273 test "x$as_lineno_1" != "x$as_lineno_2" &&
31274 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
31275 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31276 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31277 CONFIG_SHELL=$as_dir/$as_base
31278 export CONFIG_SHELL
31279 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31287 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31288 # uniformly replaced by the line number. The first 'sed' inserts a
31289 # line-number line before each line; the second 'sed' does the real
31290 # work. The second script uses 'N' to pair each line-number line
31291 # with the numbered line, and appends trailing '-' during
31292 # substitution so that $LINENO is not a special case at line end.
31293 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31294 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
31295 sed '=' <$as_myself |
31300 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31303 s,^['$as_cr_digits']*\n,,
31304 ' >$as_me.lineno &&
31305 chmod +x $as_me.lineno ||
31306 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31307 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31308 { (exit 1); exit 1; }; }
31310 # Don't try to exec as it changes $[0], causing all sort of problems
31311 # (the dirname of $[0] is not the place where we might find the
31312 # original and so on. Autoconf is especially sensible to this).
31314 # Exit status is that of the last command.
31319 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31320 *c*,-n*) ECHO_N= ECHO_C='
31322 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31323 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
31326 if expr a : '\(a\)' >/dev/null 2>&1; then
31332 rm -f conf$$ conf$$.exe conf$$.file
31334 if ln -s conf$$.file conf$$ 2>/dev/null; then
31335 # We could just check for DJGPP; but this test a) works b) is more generic
31336 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31337 if test -f conf$$.exe; then
31338 # Don't use ln at all; we don't have any links
31343 elif ln conf$$.file conf$$ 2>/dev/null; then
31348 rm -f conf$$ conf$$.exe conf$$.file
31350 if mkdir -p . 2>/dev/null; then
31353 test -d ./-p && rmdir ./-p
31357 as_executable_p="test -f"
31359 # Sed expression to map a string onto a valid CPP name.
31360 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31362 # Sed expression to map a string onto a valid variable name.
31363 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31367 # We need space, tab and new line, in precisely that order.
31377 # Open the log real soon, to keep \$[0] and so on meaningful, and to
31378 # report actual input values of CONFIG_FILES etc. instead of their
31379 # values after options handling. Logging --version etc. is OK.
31383 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31384 ## Running $as_me. ##
31389 This file was extended by $as_me, which was
31390 generated by GNU Autoconf 2.59. Invocation command line was
31392 CONFIG_FILES = $CONFIG_FILES
31393 CONFIG_HEADERS = $CONFIG_HEADERS
31394 CONFIG_LINKS = $CONFIG_LINKS
31395 CONFIG_COMMANDS = $CONFIG_COMMANDS
31399 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31403 # Files that config.status was made for.
31404 if test -n "$ac_config_files"; then
31405 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31408 if test -n "$ac_config_headers"; then
31409 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31412 if test -n "$ac_config_links"; then
31413 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31416 if test -n "$ac_config_commands"; then
31417 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31420 cat >>$CONFIG_STATUS <<\_ACEOF
31423 \`$as_me' instantiates files from templates according to the
31424 current configuration.
31426 Usage: $0 [OPTIONS] [FILE]...
31428 -h, --help print this help, then exit
31429 -V, --version print version number, then exit
31430 -q, --quiet do not print progress messages
31431 -d, --debug don't remove temporary files
31432 --recheck update $as_me by reconfiguring in the same conditions
31433 --file=FILE[:TEMPLATE]
31434 instantiate the configuration file FILE
31435 --header=FILE[:TEMPLATE]
31436 instantiate the configuration header FILE
31438 Configuration files:
31441 Configuration headers:
31444 Report bugs to <bug-autoconf@gnu.org>."
31447 cat >>$CONFIG_STATUS <<_ACEOF
31450 configured by $0, generated by GNU Autoconf 2.59,
31451 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31453 Copyright (C) 2003 Free Software Foundation, Inc.
31454 This config.status script is free software; the Free Software Foundation
31455 gives unlimited permission to copy, distribute and modify it."
31460 cat >>$CONFIG_STATUS <<\_ACEOF
31461 # If no file are specified by the user, then we need to provide default
31462 # value. By we need to know if files were specified by the user.
31468 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31469 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31477 *) # This is not an option, so the user has probably given explicit
31480 ac_need_defaults=false;;
31484 # Handling of the options.
31486 cat >>$CONFIG_STATUS <<\_ACEOF
31487 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31489 --version | --vers* | -V )
31490 echo "$ac_cs_version"; exit 0 ;;
31492 # Conflict between --help and --header
31493 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31494 Try \`$0 --help' for more information." >&5
31495 echo "$as_me: error: ambiguous option: $1
31496 Try \`$0 --help' for more information." >&2;}
31497 { (exit 1); exit 1; }; };;
31498 --help | --hel | -h )
31499 echo "$ac_cs_usage"; exit 0 ;;
31500 --debug | --d* | -d )
31502 --file | --fil | --fi | --f )
31504 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31505 ac_need_defaults=false;;
31506 --header | --heade | --head | --hea )
31508 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31509 ac_need_defaults=false;;
31510 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31511 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31514 # This is an error.
31515 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31516 Try \`$0 --help' for more information." >&5
31517 echo "$as_me: error: unrecognized option: $1
31518 Try \`$0 --help' for more information." >&2;}
31519 { (exit 1); exit 1; }; } ;;
31521 *) ac_config_targets="$ac_config_targets $1" ;;
31527 ac_configure_extra_args=
31529 if $ac_cs_silent; then
31531 ac_configure_extra_args="$ac_configure_extra_args --silent"
31535 cat >>$CONFIG_STATUS <<_ACEOF
31536 if \$ac_cs_recheck; then
31537 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31538 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31547 cat >>$CONFIG_STATUS <<\_ACEOF
31548 for ac_config_target in $ac_config_targets
31550 case "$ac_config_target" in
31551 # Handling of arguments.
31552 "make/rules" ) CONFIG_FILES="$CONFIG_FILES make/rules" ;;
31553 "make/mkdep" ) CONFIG_FILES="$CONFIG_FILES make/mkdep" ;;
31554 "make/includes" ) CONFIG_FILES="$CONFIG_FILES make/includes" ;;
31555 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31556 "bsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES bsd/Makefile" ;;
31557 "dst/Makefile" ) CONFIG_FILES="$CONFIG_FILES dst/Makefile" ;;
31558 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
31559 "inet/Makefile" ) CONFIG_FILES="$CONFIG_FILES inet/Makefile" ;;
31560 "irs/Makefile" ) CONFIG_FILES="$CONFIG_FILES irs/Makefile" ;;
31561 "isc/Makefile" ) CONFIG_FILES="$CONFIG_FILES isc/Makefile" ;;
31562 "nameser/Makefile" ) CONFIG_FILES="$CONFIG_FILES nameser/Makefile" ;;
31563 "port_after.h" ) CONFIG_FILES="$CONFIG_FILES port_after.h" ;;
31564 "port_before.h" ) CONFIG_FILES="$CONFIG_FILES port_before.h" ;;
31565 "resolv/Makefile" ) CONFIG_FILES="$CONFIG_FILES resolv/Makefile" ;;
31566 "port/Makefile" ) CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
31567 "${PORT_DIR}/Makefile" ) CONFIG_FILES="$CONFIG_FILES ${PORT_DIR}/Makefile" ;;
31568 "${PORT_INCLUDE}/Makefile" ) CONFIG_FILES="$CONFIG_FILES ${PORT_INCLUDE}/Makefile" ;;
31569 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
31570 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31571 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31572 { (exit 1); exit 1; }; };;
31576 # If the user did not use the arguments to specify the items to instantiate,
31577 # then the envvar interface is used. Set only those that are not.
31578 # We use the long form for the default assignment because of an extremely
31579 # bizarre bug on SunOS 4.1.3.
31580 if $ac_need_defaults; then
31581 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31582 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31585 # Have a temporary directory for convenience. Make it in the build tree
31586 # simply because there is no reason to put it here, and in addition,
31587 # creating and moving files from /tmp can sometimes cause problems.
31588 # Create a temporary directory, and hook for its removal unless debugging.
31591 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31592 trap '{ (exit 1); exit 1; }' 1 2 13 15
31595 # Create a (secure) tmp directory for tmp files.
31598 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31599 test -n "$tmp" && test -d "$tmp"
31602 tmp=./confstat$$-$RANDOM
31603 (umask 077 && mkdir $tmp)
31606 echo "$me: cannot create a temporary directory in ." >&2
31607 { (exit 1); exit 1; }
31612 cat >>$CONFIG_STATUS <<_ACEOF
31615 # CONFIG_FILES section.
31618 # No need to generate the scripts if there are no CONFIG_FILES.
31619 # This happens for instance when ./config.status config.h
31620 if test -n "\$CONFIG_FILES"; then
31621 # Protect against being on the right side of a sed subst in config.status.
31622 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31623 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31624 s,@SHELL@,$SHELL,;t t
31625 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31626 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31627 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31628 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31629 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31630 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31631 s,@exec_prefix@,$exec_prefix,;t t
31632 s,@prefix@,$prefix,;t t
31633 s,@program_transform_name@,$program_transform_name,;t t
31634 s,@bindir@,$bindir,;t t
31635 s,@sbindir@,$sbindir,;t t
31636 s,@libexecdir@,$libexecdir,;t t
31637 s,@datadir@,$datadir,;t t
31638 s,@sysconfdir@,$sysconfdir,;t t
31639 s,@sharedstatedir@,$sharedstatedir,;t t
31640 s,@localstatedir@,$localstatedir,;t t
31641 s,@libdir@,$libdir,;t t
31642 s,@includedir@,$includedir,;t t
31643 s,@oldincludedir@,$oldincludedir,;t t
31644 s,@infodir@,$infodir,;t t
31645 s,@mandir@,$mandir,;t t
31646 s,@build_alias@,$build_alias,;t t
31647 s,@host_alias@,$host_alias,;t t
31648 s,@target_alias@,$target_alias,;t t
31649 s,@DEFS@,$DEFS,;t t
31650 s,@ECHO_C@,$ECHO_C,;t t
31651 s,@ECHO_N@,$ECHO_N,;t t
31652 s,@ECHO_T@,$ECHO_T,;t t
31653 s,@LIBS@,$LIBS,;t t
31654 s,@build@,$build,;t t
31655 s,@build_cpu@,$build_cpu,;t t
31656 s,@build_vendor@,$build_vendor,;t t
31657 s,@build_os@,$build_os,;t t
31658 s,@host@,$host,;t t
31659 s,@host_cpu@,$host_cpu,;t t
31660 s,@host_vendor@,$host_vendor,;t t
31661 s,@host_os@,$host_os,;t t
31662 s,@SET_MAKE@,$SET_MAKE,;t t
31663 s,@RANLIB@,$RANLIB,;t t
31664 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31665 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31666 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31667 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31668 s,@STD_CINCLUDES@,$STD_CINCLUDES,;t t
31669 s,@STD_CDEFINES@,$STD_CDEFINES,;t t
31670 s,@STD_CWARNINGS@,$STD_CWARNINGS,;t t
31671 s,@CCOPT@,$CCOPT,;t t
31673 s,@ARFLAGS@,$ARFLAGS,;t t
31675 s,@ETAGS@,$ETAGS,;t t
31676 s,@PERL@,$PERL,;t t
31678 s,@CFLAGS@,$CFLAGS,;t t
31679 s,@LDFLAGS@,$LDFLAGS,;t t
31680 s,@CPPFLAGS@,$CPPFLAGS,;t t
31681 s,@ac_ct_CC@,$ac_ct_CC,;t t
31682 s,@EXEEXT@,$EXEEXT,;t t
31683 s,@OBJEXT@,$OBJEXT,;t t
31685 s,@EGREP@,$EGREP,;t t
31686 s,@ISC_PLATFORM_NEEDSYSSELECTH@,$ISC_PLATFORM_NEEDSYSSELECTH,;t t
31687 s,@WANT_IRS_GR@,$WANT_IRS_GR,;t t
31688 s,@WANT_IRS_GR_OBJS@,$WANT_IRS_GR_OBJS,;t t
31689 s,@WANT_IRS_PW@,$WANT_IRS_PW,;t t
31690 s,@WANT_IRS_PW_OBJS@,$WANT_IRS_PW_OBJS,;t t
31691 s,@WANT_IRS_NIS@,$WANT_IRS_NIS,;t t
31692 s,@WANT_IRS_NIS_OBJS@,$WANT_IRS_NIS_OBJS,;t t
31693 s,@WANT_IRS_NISGR_OBJS@,$WANT_IRS_NISGR_OBJS,;t t
31694 s,@WANT_IRS_NISPW_OBJS@,$WANT_IRS_NISPW_OBJS,;t t
31695 s,@WANT_IRS_DBPW_OBJS@,$WANT_IRS_DBPW_OBJS,;t t
31696 s,@ALWAYS_DEFINES@,$ALWAYS_DEFINES,;t t
31697 s,@DO_PTHREADS@,$DO_PTHREADS,;t t
31698 s,@WANT_IRS_THREADSGR_OBJS@,$WANT_IRS_THREADSGR_OBJS,;t t
31699 s,@WANT_IRS_THREADSPW_OBJS@,$WANT_IRS_THREADSPW_OBJS,;t t
31700 s,@WANT_IRS_THREADS_OBJS@,$WANT_IRS_THREADS_OBJS,;t t
31701 s,@WANT_THREADS_OBJS@,$WANT_THREADS_OBJS,;t t
31702 s,@USE_IFNAMELINKID@,$USE_IFNAMELINKID,;t t
31703 s,@ISC_THREAD_DIR@,$ISC_THREAD_DIR,;t t
31704 s,@DAEMON_OBJS@,$DAEMON_OBJS,;t t
31705 s,@NEED_DAEMON@,$NEED_DAEMON,;t t
31706 s,@STRSEP_OBJS@,$STRSEP_OBJS,;t t
31707 s,@NEED_STRSEP@,$NEED_STRSEP,;t t
31708 s,@NEED_STRERROR@,$NEED_STRERROR,;t t
31709 s,@MKDEPCC@,$MKDEPCC,;t t
31710 s,@MKDEPCFLAGS@,$MKDEPCFLAGS,;t t
31711 s,@MKDEPPROG@,$MKDEPPROG,;t t
31712 s,@IRIX_DNSSEC_WARNINGS_HACK@,$IRIX_DNSSEC_WARNINGS_HACK,;t t
31713 s,@purify_path@,$purify_path,;t t
31714 s,@PURIFY@,$PURIFY,;t t
31715 s,@LN_S@,$LN_S,;t t
31716 s,@ECHO@,$ECHO,;t t
31717 s,@ac_ct_AR@,$ac_ct_AR,;t t
31718 s,@STRIP@,$STRIP,;t t
31719 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31721 s,@CXXFLAGS@,$CXXFLAGS,;t t
31722 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31723 s,@CXXCPP@,$CXXCPP,;t t
31725 s,@FFLAGS@,$FFLAGS,;t t
31726 s,@ac_ct_F77@,$ac_ct_F77,;t t
31727 s,@LIBTOOL@,$LIBTOOL,;t t
31731 s,@LIBTOOL_MKDEP_SED@,$LIBTOOL_MKDEP_SED,;t t
31732 s,@LIBTOOL_MODE_COMPILE@,$LIBTOOL_MODE_COMPILE,;t t
31733 s,@LIBTOOL_MODE_INSTALL@,$LIBTOOL_MODE_INSTALL,;t t
31734 s,@LIBTOOL_MODE_LINK@,$LIBTOOL_MODE_LINK,;t t
31735 s,@HAS_INET6_STRUCTS@,$HAS_INET6_STRUCTS,;t t
31736 s,@ISC_PLATFORM_NEEDNETINETIN6H@,$ISC_PLATFORM_NEEDNETINETIN6H,;t t
31737 s,@ISC_PLATFORM_NEEDNETINET6IN6H@,$ISC_PLATFORM_NEEDNETINET6IN6H,;t t
31738 s,@HAS_IN_ADDR6@,$HAS_IN_ADDR6,;t t
31739 s,@NEED_IN6ADDR_ANY@,$NEED_IN6ADDR_ANY,;t t
31740 s,@ISC_PLATFORM_HAVEIN6PKTINFO@,$ISC_PLATFORM_HAVEIN6PKTINFO,;t t
31741 s,@ISC_PLATFORM_FIXIN6ISADDR@,$ISC_PLATFORM_FIXIN6ISADDR,;t t
31742 s,@ISC_IPV6_H@,$ISC_IPV6_H,;t t
31743 s,@ISC_IPV6_O@,$ISC_IPV6_O,;t t
31744 s,@ISC_ISCIPV6_O@,$ISC_ISCIPV6_O,;t t
31745 s,@ISC_IPV6_C@,$ISC_IPV6_C,;t t
31746 s,@HAVE_SIN6_SCOPE_ID@,$HAVE_SIN6_SCOPE_ID,;t t
31747 s,@HAVE_SOCKADDR_STORAGE@,$HAVE_SOCKADDR_STORAGE,;t t
31748 s,@ISC_PLATFORM_NEEDNTOP@,$ISC_PLATFORM_NEEDNTOP,;t t
31749 s,@ISC_PLATFORM_NEEDPTON@,$ISC_PLATFORM_NEEDPTON,;t t
31750 s,@ISC_PLATFORM_NEEDATON@,$ISC_PLATFORM_NEEDATON,;t t
31751 s,@HAVE_SA_LEN@,$HAVE_SA_LEN,;t t
31752 s,@HAVE_MINIMUM_IFREQ@,$HAVE_MINIMUM_IFREQ,;t t
31753 s,@BSD_COMP@,$BSD_COMP,;t t
31754 s,@SOLARIS_BITTYPES@,$SOLARIS_BITTYPES,;t t
31755 s,@USE_FIONBIO_IOCTL@,$USE_FIONBIO_IOCTL,;t t
31756 s,@PORT_NONBLOCK@,$PORT_NONBLOCK,;t t
31757 s,@PORT_DIR@,$PORT_DIR,;t t
31758 s,@USE_POLL@,$USE_POLL,;t t
31759 s,@HAVE_MD5@,$HAVE_MD5,;t t
31760 s,@SOLARIS2@,$SOLARIS2,;t t
31761 s,@PORT_INCLUDE@,$PORT_INCLUDE,;t t
31762 s,@ISC_PLATFORM_MSGHDRFLAVOR@,$ISC_PLATFORM_MSGHDRFLAVOR,;t t
31763 s,@ISC_PLATFORM_NEEDPORTT@,$ISC_PLATFORM_NEEDPORTT,;t t
31764 s,@ISC_LWRES_ENDHOSTENTINT@,$ISC_LWRES_ENDHOSTENTINT,;t t
31765 s,@ISC_LWRES_SETNETENTINT@,$ISC_LWRES_SETNETENTINT,;t t
31766 s,@ISC_LWRES_ENDNETENTINT@,$ISC_LWRES_ENDNETENTINT,;t t
31767 s,@ISC_LWRES_GETHOSTBYADDRVOID@,$ISC_LWRES_GETHOSTBYADDRVOID,;t t
31768 s,@ISC_LWRES_NEEDHERRNO@,$ISC_LWRES_NEEDHERRNO,;t t
31769 s,@ISC_LWRES_GETIPNODEPROTO@,$ISC_LWRES_GETIPNODEPROTO,;t t
31770 s,@ISC_LWRES_GETADDRINFOPROTO@,$ISC_LWRES_GETADDRINFOPROTO,;t t
31771 s,@ISC_LWRES_GETNAMEINFOPROTO@,$ISC_LWRES_GETNAMEINFOPROTO,;t t
31772 s,@NEED_PSELECT@,$NEED_PSELECT,;t t
31773 s,@NEED_GETTIMEOFDAY@,$NEED_GETTIMEOFDAY,;t t
31774 s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
31775 s,@ISC_PLATFORM_NEEDSTRSEP@,$ISC_PLATFORM_NEEDSTRSEP,;t t
31776 s,@ISC_PLATFORM_NEEDVSNPRINTF@,$ISC_PLATFORM_NEEDVSNPRINTF,;t t
31777 s,@ISC_EXTRA_OBJS@,$ISC_EXTRA_OBJS,;t t
31778 s,@ISC_EXTRA_SRCS@,$ISC_EXTRA_SRCS,;t t
31779 s,@USE_SYSERROR_LIST@,$USE_SYSERROR_LIST,;t t
31780 s,@ISC_PLATFORM_QUADFORMAT@,$ISC_PLATFORM_QUADFORMAT,;t t
31781 s,@ISC_SOCKLEN_T@,$ISC_SOCKLEN_T,;t t
31782 s,@GETGROUPLIST_ARGS@,$GETGROUPLIST_ARGS,;t t
31783 s,@NET_R_ARGS@,$NET_R_ARGS,;t t
31784 s,@NET_R_BAD@,$NET_R_BAD,;t t
31785 s,@NET_R_COPY@,$NET_R_COPY,;t t
31786 s,@NET_R_COPY_ARGS@,$NET_R_COPY_ARGS,;t t
31787 s,@NET_R_OK@,$NET_R_OK,;t t
31788 s,@NET_R_SETANSWER@,$NET_R_SETANSWER,;t t
31789 s,@NET_R_RETURN@,$NET_R_RETURN,;t t
31790 s,@GETNETBYADDR_ADDR_T@,$GETNETBYADDR_ADDR_T,;t t
31791 s,@NETENT_DATA@,$NETENT_DATA,;t t
31792 s,@NET_R_ENT_ARGS@,$NET_R_ENT_ARGS,;t t
31793 s,@NET_R_SET_RESULT@,$NET_R_SET_RESULT,;t t
31794 s,@NET_R_SET_RETURN@,$NET_R_SET_RETURN,;t t
31795 s,@NET_R_END_RESULT@,$NET_R_END_RESULT,;t t
31796 s,@NET_R_END_RETURN@,$NET_R_END_RETURN,;t t
31797 s,@GROUP_R_ARGS@,$GROUP_R_ARGS,;t t
31798 s,@GROUP_R_BAD@,$GROUP_R_BAD,;t t
31799 s,@GROUP_R_OK@,$GROUP_R_OK,;t t
31800 s,@GROUP_R_RETURN@,$GROUP_R_RETURN,;t t
31801 s,@GROUP_R_END_RESULT@,$GROUP_R_END_RESULT,;t t
31802 s,@GROUP_R_END_RETURN@,$GROUP_R_END_RETURN,;t t
31803 s,@GROUP_R_ENT_ARGS@,$GROUP_R_ENT_ARGS,;t t
31804 s,@GROUP_R_SET_RESULT@,$GROUP_R_SET_RESULT,;t t
31805 s,@GROUP_R_SET_RETURN@,$GROUP_R_SET_RETURN,;t t
31806 s,@HOST_R_ARGS@,$HOST_R_ARGS,;t t
31807 s,@HOST_R_BAD@,$HOST_R_BAD,;t t
31808 s,@HOST_R_COPY@,$HOST_R_COPY,;t t
31809 s,@HOST_R_COPY_ARGS@,$HOST_R_COPY_ARGS,;t t
31810 s,@HOST_R_ERRNO@,$HOST_R_ERRNO,;t t
31811 s,@HOST_R_OK@,$HOST_R_OK,;t t
31812 s,@HOST_R_RETURN@,$HOST_R_RETURN,;t t
31813 s,@HOST_R_SETANSWER@,$HOST_R_SETANSWER,;t t
31814 s,@HOSTENT_DATA@,$HOSTENT_DATA,;t t
31815 s,@HOST_R_END_RESULT@,$HOST_R_END_RESULT,;t t
31816 s,@HOST_R_END_RETURN@,$HOST_R_END_RETURN,;t t
31817 s,@HOST_R_ENT_ARGS@,$HOST_R_ENT_ARGS,;t t
31818 s,@HOST_R_SET_RESULT@,$HOST_R_SET_RESULT,;t t
31819 s,@HOST_R_SET_RETURN@,$HOST_R_SET_RETURN,;t t
31820 s,@SETPWENT_VOID@,$SETPWENT_VOID,;t t
31821 s,@SETGRENT_VOID@,$SETGRENT_VOID,;t t
31822 s,@NGR_R_ARGS@,$NGR_R_ARGS,;t t
31823 s,@NGR_R_BAD@,$NGR_R_BAD,;t t
31824 s,@NGR_R_COPY@,$NGR_R_COPY,;t t
31825 s,@NGR_R_COPY_ARGS@,$NGR_R_COPY_ARGS,;t t
31826 s,@NGR_R_OK@,$NGR_R_OK,;t t
31827 s,@NGR_R_RETURN@,$NGR_R_RETURN,;t t
31828 s,@NGR_R_PRIVATE@,$NGR_R_PRIVATE,;t t
31829 s,@NGR_R_END_RESULT@,$NGR_R_END_RESULT,;t t
31830 s,@NGR_R_END_RETURN@,$NGR_R_END_RETURN,;t t
31831 s,@NGR_R_ENT_ARGS@,$NGR_R_ENT_ARGS,;t t
31832 s,@NGR_R_SET_RESULT@,$NGR_R_SET_RESULT,;t t
31833 s,@NGR_R_SET_RETURN@,$NGR_R_SET_RETURN,;t t
31834 s,@PROTO_R_ARGS@,$PROTO_R_ARGS,;t t
31835 s,@PROTO_R_BAD@,$PROTO_R_BAD,;t t
31836 s,@PROTO_R_COPY@,$PROTO_R_COPY,;t t
31837 s,@PROTO_R_COPY_ARGS@,$PROTO_R_COPY_ARGS,;t t
31838 s,@PROTO_R_OK@,$PROTO_R_OK,;t t
31839 s,@PROTO_R_SETANSWER@,$PROTO_R_SETANSWER,;t t
31840 s,@PROTO_R_RETURN@,$PROTO_R_RETURN,;t t
31841 s,@PROTO_R_END_RESULT@,$PROTO_R_END_RESULT,;t t
31842 s,@PROTO_R_END_RETURN@,$PROTO_R_END_RETURN,;t t
31843 s,@PROTO_R_ENT_ARGS@,$PROTO_R_ENT_ARGS,;t t
31844 s,@PROTO_R_SET_RESULT@,$PROTO_R_SET_RESULT,;t t
31845 s,@PROTO_R_SET_RETURN@,$PROTO_R_SET_RETURN,;t t
31846 s,@PASS_R_ARGS@,$PASS_R_ARGS,;t t
31847 s,@PASS_R_BAD@,$PASS_R_BAD,;t t
31848 s,@PASS_R_COPY@,$PASS_R_COPY,;t t
31849 s,@PASS_R_COPY_ARGS@,$PASS_R_COPY_ARGS,;t t
31850 s,@PASS_R_OK@,$PASS_R_OK,;t t
31851 s,@PASS_R_RETURN@,$PASS_R_RETURN,;t t
31852 s,@PASS_R_END_RESULT@,$PASS_R_END_RESULT,;t t
31853 s,@PASS_R_END_RETURN@,$PASS_R_END_RETURN,;t t
31854 s,@PASS_R_ENT_ARGS@,$PASS_R_ENT_ARGS,;t t
31855 s,@PASS_R_SET_RESULT@,$PASS_R_SET_RESULT,;t t
31856 s,@PASS_R_SET_RETURN@,$PASS_R_SET_RETURN,;t t
31857 s,@SERV_R_ARGS@,$SERV_R_ARGS,;t t
31858 s,@SERV_R_BAD@,$SERV_R_BAD,;t t
31859 s,@SERV_R_COPY@,$SERV_R_COPY,;t t
31860 s,@SERV_R_COPY_ARGS@,$SERV_R_COPY_ARGS,;t t
31861 s,@SERV_R_OK@,$SERV_R_OK,;t t
31862 s,@SERV_R_SETANSWER@,$SERV_R_SETANSWER,;t t
31863 s,@SERV_R_RETURN@,$SERV_R_RETURN,;t t
31864 s,@SERV_R_END_RESULT@,$SERV_R_END_RESULT,;t t
31865 s,@SERV_R_END_RETURN@,$SERV_R_END_RETURN,;t t
31866 s,@SERV_R_ENT_ARGS@,$SERV_R_ENT_ARGS,;t t
31867 s,@SERV_R_SET_RESULT@,$SERV_R_SET_RESULT,;t t
31868 s,@SERV_R_SET_RETURN@,$SERV_R_SET_RETURN,;t t
31869 s,@SETNETGRENT_ARGS@,$SETNETGRENT_ARGS,;t t
31870 s,@INNETGR_ARGS@,$INNETGR_ARGS,;t t
31871 s,@BIND9_TOP_BUILDDIR@,$BIND9_TOP_BUILDDIR,;t t
31872 s,@BIND9_VERSION@,$BIND9_VERSION,;t t
31873 s,@LIBOBJS@,$LIBOBJS,;t t
31874 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31875 /@BIND9_INCLUDES@/r $BIND9_INCLUDES
31876 s,@BIND9_INCLUDES@,,;t t
31877 /@BIND9_MAKE_RULES@/r $BIND9_MAKE_RULES
31878 s,@BIND9_MAKE_RULES@,,;t t
31879 /@LIBBIND_API@/r $LIBBIND_API
31880 s,@LIBBIND_API@,,;t t
31885 cat >>$CONFIG_STATUS <<\_ACEOF
31886 # Split the substitutions into bite-sized pieces for seds with
31887 # small command number limits, like on Digital OSF/1 and HP-UX.
31888 ac_max_sed_lines=48
31889 ac_sed_frag=1 # Number of current file.
31890 ac_beg=1 # First line for current file.
31891 ac_end=$ac_max_sed_lines # Line after last line for current file.
31894 while $ac_more_lines; do
31895 if test $ac_beg -gt 1; then
31896 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31898 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31900 if test ! -s $tmp/subs.frag; then
31901 ac_more_lines=false
31903 # The purpose of the label and of the branching condition is to
31904 # speed up the sed processing (if there are no `@' at all, there
31905 # is no need to browse any of the substitutions).
31906 # These are the two extra sed commands mentioned above.
31908 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31909 if test -z "$ac_sed_cmds"; then
31910 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31912 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31914 ac_sed_frag=`expr $ac_sed_frag + 1`
31916 ac_end=`expr $ac_end + $ac_max_sed_lines`
31919 if test -z "$ac_sed_cmds"; then
31922 fi # test -n "$CONFIG_FILES"
31925 cat >>$CONFIG_STATUS <<\_ACEOF
31926 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31927 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31929 - | *:- | *:-:* ) # input from stdin
31931 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31932 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31933 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31934 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31935 * ) ac_file_in=$ac_file.in ;;
31938 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31939 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31940 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31941 X"$ac_file" : 'X\(//\)[^/]' \| \
31942 X"$ac_file" : 'X\(//\)$' \| \
31943 X"$ac_file" : 'X\(/\)' \| \
31944 . : '\(.\)' 2>/dev/null ||
31946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31947 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31948 /^X\(\/\/\)$/{ s//\1/; q; }
31949 /^X\(\/\).*/{ s//\1/; q; }
31951 { if $as_mkdir_p; then
31956 while test ! -d "$as_dir"; do
31957 as_dirs="$as_dir $as_dirs"
31958 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31959 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31960 X"$as_dir" : 'X\(//\)[^/]' \| \
31961 X"$as_dir" : 'X\(//\)$' \| \
31962 X"$as_dir" : 'X\(/\)' \| \
31963 . : '\(.\)' 2>/dev/null ||
31965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31966 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31967 /^X\(\/\/\)$/{ s//\1/; q; }
31968 /^X\(\/\).*/{ s//\1/; q; }
31971 test ! -n "$as_dirs" || mkdir $as_dirs
31972 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31973 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31974 { (exit 1); exit 1; }; }; }
31978 if test "$ac_dir" != .; then
31979 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31980 # A "../" for each directory in $ac_dir_suffix.
31981 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31983 ac_dir_suffix= ac_top_builddir=
31987 .) # No --srcdir option. We are building in place.
31989 if test -z "$ac_top_builddir"; then
31992 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31994 [\\/]* | ?:[\\/]* ) # Absolute path.
31995 ac_srcdir=$srcdir$ac_dir_suffix;
31996 ac_top_srcdir=$srcdir ;;
31997 *) # Relative path.
31998 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31999 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32002 # Do not use `cd foo && pwd` to compute absolute paths, because
32003 # the directories may not exist.
32005 .) ac_abs_builddir="$ac_dir";;
32008 .) ac_abs_builddir=`pwd`;;
32009 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32010 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32013 case $ac_abs_builddir in
32014 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32016 case ${ac_top_builddir}. in
32017 .) ac_abs_top_builddir=$ac_abs_builddir;;
32018 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32019 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32022 case $ac_abs_builddir in
32023 .) ac_abs_srcdir=$ac_srcdir;;
32026 .) ac_abs_srcdir=$ac_abs_builddir;;
32027 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32028 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32031 case $ac_abs_builddir in
32032 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32034 case $ac_top_srcdir in
32035 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32036 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32037 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32043 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32044 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
32047 if test x"$ac_file" != x-; then
32048 { echo "$as_me:$LINENO: creating $ac_file" >&5
32049 echo "$as_me: creating $ac_file" >&6;}
32052 # Let's still pretend it is `configure' which instantiates (i.e., don't
32053 # use $as_me), people would be surprised to read:
32054 # /* config.h. Generated by config.status. */
32055 if test x"$ac_file" = x-; then
32058 configure_input="$ac_file. "
32060 configure_input=$configure_input"Generated from `echo $ac_file_in |
32061 sed 's,.*/,,'` by configure."
32063 # First look for the input files in the build tree, otherwise in the
32065 ac_file_inputs=`IFS=:
32066 for f in $ac_file_in; do
32068 -) echo $tmp/stdin ;;
32070 # Absolute (can't be DOS-style, as IFS=:)
32071 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32072 echo "$as_me: error: cannot find input file: $f" >&2;}
32073 { (exit 1); exit 1; }; }
32076 if test -f "$f"; then
32079 elif test -f "$srcdir/$f"; then
32084 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32085 echo "$as_me: error: cannot find input file: $f" >&2;}
32086 { (exit 1); exit 1; }; }
32089 done` || { (exit 1); exit 1; }
32091 cat >>$CONFIG_STATUS <<_ACEOF
32095 cat >>$CONFIG_STATUS <<\_ACEOF
32097 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32098 s,@configure_input@,$configure_input,;t t
32099 s,@srcdir@,$ac_srcdir,;t t
32100 s,@abs_srcdir@,$ac_abs_srcdir,;t t
32101 s,@top_srcdir@,$ac_top_srcdir,;t t
32102 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
32103 s,@builddir@,$ac_builddir,;t t
32104 s,@abs_builddir@,$ac_abs_builddir,;t t
32105 s,@top_builddir@,$ac_top_builddir,;t t
32106 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
32107 s,@INSTALL@,$ac_INSTALL,;t t
32108 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
32110 if test x"$ac_file" != x-; then
32111 mv $tmp/out $ac_file
32119 cat >>$CONFIG_STATUS <<\_ACEOF
32122 # CONFIG_HEADER section.
32125 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
32126 # NAME is the cpp macro being defined and VALUE is the value it is being given.
32128 # ac_d sets the value in "#define NAME VALUE" lines.
32129 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
32130 ac_dB='[ ].*$,\1#\2'
32133 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
32134 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
32135 ac_uB='$,\1#\2define\3'
32139 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
32140 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32142 - | *:- | *:-:* ) # input from stdin
32144 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32145 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32146 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32147 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32148 * ) ac_file_in=$ac_file.in ;;
32151 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
32152 echo "$as_me: creating $ac_file" >&6;}
32154 # First look for the input files in the build tree, otherwise in the
32156 ac_file_inputs=`IFS=:
32157 for f in $ac_file_in; do
32159 -) echo $tmp/stdin ;;
32161 # Absolute (can't be DOS-style, as IFS=:)
32162 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32163 echo "$as_me: error: cannot find input file: $f" >&2;}
32164 { (exit 1); exit 1; }; }
32165 # Do quote $f, to prevent DOS paths from being IFS'd.
32168 if test -f "$f"; then
32171 elif test -f "$srcdir/$f"; then
32176 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32177 echo "$as_me: error: cannot find input file: $f" >&2;}
32178 { (exit 1); exit 1; }; }
32181 done` || { (exit 1); exit 1; }
32182 # Remove the trailing spaces.
32183 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
32187 # Transform confdefs.h into two sed scripts, `conftest.defines' and
32188 # `conftest.undefs', that substitutes the proper values into
32189 # config.h.in to produce config.h. The first handles `#define'
32190 # templates, and the second `#undef' templates.
32191 # And first: Protect against being on the right side of a sed subst in
32192 # config.status. Protect against being in an unquoted here document
32193 # in config.status.
32194 rm -f conftest.defines conftest.undefs
32195 # Using a here document instead of a string reduces the quoting nightmare.
32196 # Putting comments in sed scripts is not portable.
32198 # `end' is used to avoid that the second main sed command (meant for
32199 # 0-ary CPP macros) applies to n-ary macro definitions.
32200 # See the Autoconf documentation for `clear'.
32201 cat >confdef2sed.sed <<\_ACEOF
32206 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
32208 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
32211 # If some macros were called several times there might be several times
32212 # the same #defines, which is useless. Nevertheless, we may not want to
32213 # sort them, since we want the *last* AC-DEFINE to be honored.
32214 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32215 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32216 rm -f confdef2sed.sed
32218 # This sed command replaces #undef with comments. This is necessary, for
32219 # example, in the case of _POSIX_SOURCE, which is predefined and required
32220 # on some systems where configure will not decide to define it.
32221 cat >>conftest.undefs <<\_ACEOF
32222 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
32225 # Break up conftest.defines because some shells have a limit on the size
32226 # of here documents, and old seds have small limits too (100 cmds).
32227 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
32228 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
32229 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32230 echo ' :' >>$CONFIG_STATUS
32231 rm -f conftest.tail
32232 while grep . conftest.defines >/dev/null
32234 # Write a limited-size here document to $tmp/defines.sed.
32235 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32236 # Speed up: don't consider the non `#define' lines.
32237 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
32238 # Work around the forget-to-reset-the-flag bug.
32239 echo 't clr' >>$CONFIG_STATUS
32240 echo ': clr' >>$CONFIG_STATUS
32241 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32243 sed -f $tmp/defines.sed $tmp/in >$tmp/out
32245 mv $tmp/out $tmp/in
32247 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32248 rm -f conftest.defines
32249 mv conftest.tail conftest.defines
32251 rm -f conftest.defines
32252 echo ' fi # grep' >>$CONFIG_STATUS
32253 echo >>$CONFIG_STATUS
32255 # Break up conftest.undefs because some shells have a limit on the size
32256 # of here documents, and old seds have small limits too (100 cmds).
32257 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
32258 rm -f conftest.tail
32259 while grep . conftest.undefs >/dev/null
32261 # Write a limited-size here document to $tmp/undefs.sed.
32262 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32263 # Speed up: don't consider the non `#undef'
32264 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
32265 # Work around the forget-to-reset-the-flag bug.
32266 echo 't clr' >>$CONFIG_STATUS
32267 echo ': clr' >>$CONFIG_STATUS
32268 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32270 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32272 mv $tmp/out $tmp/in
32274 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32275 rm -f conftest.undefs
32276 mv conftest.tail conftest.undefs
32278 rm -f conftest.undefs
32280 cat >>$CONFIG_STATUS <<\_ACEOF
32281 # Let's still pretend it is `configure' which instantiates (i.e., don't
32282 # use $as_me), people would be surprised to read:
32283 # /* config.h. Generated by config.status. */
32284 if test x"$ac_file" = x-; then
32285 echo "/* Generated by configure. */" >$tmp/config.h
32287 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
32289 cat $tmp/in >>$tmp/config.h
32291 if test x"$ac_file" != x-; then
32292 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32293 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32294 echo "$as_me: $ac_file is unchanged" >&6;}
32296 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32297 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32298 X"$ac_file" : 'X\(//\)[^/]' \| \
32299 X"$ac_file" : 'X\(//\)$' \| \
32300 X"$ac_file" : 'X\(/\)' \| \
32301 . : '\(.\)' 2>/dev/null ||
32303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32304 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32305 /^X\(\/\/\)$/{ s//\1/; q; }
32306 /^X\(\/\).*/{ s//\1/; q; }
32308 { if $as_mkdir_p; then
32313 while test ! -d "$as_dir"; do
32314 as_dirs="$as_dir $as_dirs"
32315 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32316 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32317 X"$as_dir" : 'X\(//\)[^/]' \| \
32318 X"$as_dir" : 'X\(//\)$' \| \
32319 X"$as_dir" : 'X\(/\)' \| \
32320 . : '\(.\)' 2>/dev/null ||
32322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32323 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32324 /^X\(\/\/\)$/{ s//\1/; q; }
32325 /^X\(\/\).*/{ s//\1/; q; }
32328 test ! -n "$as_dirs" || mkdir $as_dirs
32329 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32330 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32331 { (exit 1); exit 1; }; }; }
32334 mv $tmp/config.h $ac_file
32338 rm -f $tmp/config.h
32343 cat >>$CONFIG_STATUS <<\_ACEOF
32345 { (exit 0); exit 0; }
32347 chmod +x $CONFIG_STATUS
32348 ac_clean_files=$ac_clean_files_save
32351 # configure is writing to config.log, and then calls config.status.
32352 # config.status does its own redirection, appending to config.log.
32353 # Unfortunately, on DOS this fails, as config.log is still kept open
32354 # by configure, so config.status won't be able to write to it; its
32355 # output is simply discarded. So we exec the FD to /dev/null,
32356 # effectively closing config.log, so it can be properly (re)opened and
32357 # appended to by config.status. When coming back to configure, we
32358 # need to make the FD available again.
32359 if test "$no_create" != yes; then
32361 ac_config_status_args=
32362 test "$silent" = yes &&
32363 ac_config_status_args="$ac_config_status_args --quiet"
32365 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32367 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32368 # would make configure fail if this is the last instruction.
32369 $ac_cs_success || { (exit 1); exit 1; }
32373 # Tell Emacs to edit this file in shell mode.